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
846eee1f9835a8d69195c6aee569d75cbf67c8ca
716
py
Python
lang/py/pylib/code/struct/struct_buffers.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
13
2020-01-04T07:37:38.000Z
2021-08-31T05:19:58.000Z
lang/py/pylib/code/struct/struct_buffers.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
3
2020-06-05T22:42:53.000Z
2020-08-24T07:18:54.000Z
lang/py/pylib/code/struct/struct_buffers.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
9
2020-10-19T04:53:06.000Z
2021-08-31T05:20:01.000Z
#!/usr/bin/env python # encoding: utf-8 # # Copyright (c) 2008 Doug Hellmann All rights reserved. # """ """ __version__ = "$Id$" #end_pymotw_header import struct import binascii s = struct.Struct('I 2s f') values = (1, 'ab', 2.7) print 'Original:', values print print 'ctypes string buffer' import ctypes b = ctypes....
19.351351
55
0.685754
112
716
4.276786
0.464286
0.125261
0.041754
0.066806
0.363257
0.263048
0
0
0
0
0
0.022801
0.142458
716
36
56
19.888889
0.757329
0.149441
0
0.090909
0
0
0.172819
0
0
0
0
0
0
0
null
null
0
0.181818
null
null
0.5
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
1
0
2
8470cc594037f191b3b43b6897fa69a25d35dce1
2,890
py
Python
tests/test_time_res_method.py
GispoCoding/datacube-ows
4ffe14ccf9f382bff8f4a33fc54729d3e18b670e
[ "Apache-2.0" ]
null
null
null
tests/test_time_res_method.py
GispoCoding/datacube-ows
4ffe14ccf9f382bff8f4a33fc54729d3e18b670e
[ "Apache-2.0" ]
null
null
null
tests/test_time_res_method.py
GispoCoding/datacube-ows
4ffe14ccf9f382bff8f4a33fc54729d3e18b670e
[ "Apache-2.0" ]
null
null
null
import pytest from datetime import datetime import pytz from datacube_ows.ows_configuration import OWSProductLayer, TIMERES_RAW, TIMERES_MON, TIMERES_YR def dummy_timeres_layer(time_res): prod = product_layer = OWSProductLayer.__new__(OWSProductLayer) prod.time_resolution = time_res return prod class Th...
30.104167
96
0.689619
418
2,890
4.466507
0.23445
0.041243
0.048741
0.03428
0.504017
0.498125
0.371719
0.343867
0.247456
0.247456
0
0.058257
0.210035
2,890
95
97
30.421053
0.759527
0
0
0.307692
0
0
0.038062
0
0
0
0
0
0.269231
1
0.115385
false
0
0.089744
0.038462
0.282051
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
8472be5ff4c0eb90b45ae9ec3a6f3d498c42634d
8,846
py
Python
ini/types.py
ClementJ18/ini_parser
68bee79af6319cc967c3fa13e4ba7b5ef0485fa0
[ "MIT" ]
null
null
null
ini/types.py
ClementJ18/ini_parser
68bee79af6319cc967c3fa13e4ba7b5ef0485fa0
[ "MIT" ]
null
null
null
ini/types.py
ClementJ18/ini_parser
68bee79af6319cc967c3fa13e4ba7b5ef0485fa0
[ "MIT" ]
null
null
null
from .utils import to_float from .enums import * import regex import sys from itertools import zip_longest from collections import defaultdict class Bool: @classmethod def convert(cls, parser, value): value = parser.get_macro(value) if isinstance(value, bool): return value ...
30.191126
144
0.553697
970
8,846
4.903093
0.174227
0.041632
0.026493
0.025231
0.301514
0.226451
0.165265
0.128469
0.067283
0.067283
0
0.004987
0.342641
8,846
292
145
30.294521
0.812898
0.009835
0
0.232227
0
0.004739
0.053555
0.012271
0
0
0
0
0
1
0.146919
false
0.009479
0.028436
0.047393
0.450237
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
8473a16363e9a185f76eb2bc8c324f1926385713
8,299
py
Python
ina233.py
scottvr/pi-ina233
906d4349fffbe06a14c9fd9bf9dc2f32c50ccdc2
[ "MIT" ]
1
2021-02-21T09:18:47.000Z
2021-02-21T09:18:47.000Z
ina233.py
scottvr/pi-ina233
906d4349fffbe06a14c9fd9bf9dc2f32c50ccdc2
[ "MIT" ]
null
null
null
ina233.py
scottvr/pi-ina233
906d4349fffbe06a14c9fd9bf9dc2f32c50ccdc2
[ "MIT" ]
1
2021-07-27T06:08:34.000Z
2021-07-27T06:08:34.000Z
""" This library supports the TI INA233 current and power monitor with a Raspberry PI using SMBus/I2C. By scottvr for 1SimplePhone.com """ from smbus2 import SMBus class INA233: CLEAR_FAULTS = 0x03 RESTORE_DEFAULT_ALL = 0x12 CAPABILITY = 0x19 IOUT_OC_WARN_LIMIT = 0x4A VI...
35.314894
106
0.599108
1,152
8,299
3.913194
0.198785
0.051242
0.036602
0.036602
0.486025
0.405501
0.374889
0.374889
0.318101
0.318101
0
0.056239
0.314375
8,299
234
107
35.465812
0.735852
0.177732
0
0.234286
0
0
0
0
0
0
0.020381
0
0
1
0.097143
false
0
0.005714
0
0.468571
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
8474415733d26503f0e0b41a1a2b80c15eaec5b3
530
py
Python
but/trades/serializers/api_sell_base.py
yevgnenll/but
2cb3d7b8fd4b898440f9a74ee4b6b8fbdff32bb1
[ "MIT" ]
4
2017-02-25T04:46:41.000Z
2021-03-16T21:41:51.000Z
but/trades/serializers/api_sell_base.py
yevgnenll/but
2cb3d7b8fd4b898440f9a74ee4b6b8fbdff32bb1
[ "MIT" ]
18
2016-04-09T07:29:33.000Z
2017-04-06T04:39:54.000Z
but/trades/serializers/api_sell_base.py
yevgnenll/but
2cb3d7b8fd4b898440f9a74ee4b6b8fbdff32bb1
[ "MIT" ]
null
null
null
from rest_framework import serializers from trades.models import Sell class SellBaseModelSerializer(serializers.ModelSerializer): username = serializers.CharField( source="user.username", ) class Meta: model = Sell fields = ( 'pk', 'title', ...
19.62963
59
0.475472
38
530
6.5
0.763158
0
0
0
0
0
0
0
0
0
0
0
0.437736
530
26
60
20.384615
0.828859
0
0
0
0
0
0.150943
0
0
0
0
0
0
1
0
false
0
0.105263
0
0.263158
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
847868d3c9616a1cdde5e7750cd9b87f9b453bed
988
py
Python
application/__init__.py
oicr-gsi/dashi
34bf96a7d447095df525df3ad27dbe10f4e3dde0
[ "MIT" ]
2
2020-03-27T21:20:20.000Z
2022-02-09T07:42:51.000Z
application/__init__.py
oicr-gsi/dashi
34bf96a7d447095df525df3ad27dbe10f4e3dde0
[ "MIT" ]
89
2019-06-06T18:31:19.000Z
2022-03-07T20:38:36.000Z
application/__init__.py
oicr-gsi/dashi
34bf96a7d447095df525df3ad27dbe10f4e3dde0
[ "MIT" ]
2
2019-06-06T17:50:53.000Z
2019-06-06T17:52:32.000Z
from flask import Flask from flask_caching import Cache from prometheus_flask_exporter import PrometheusMetrics import pandas import sys import numpy ## Set up Flask application, attach extensions, and load configuration def create_app(debug=False): # pandas debug options pandas.set_option('display.max_rows',...
26
70
0.711538
122
988
5.581967
0.434426
0.026432
0.044053
0.064611
0.073421
0
0
0
0
0
0
0
0.213563
988
37
71
26.702703
0.876448
0.211538
0
0
0
0
0.083225
0
0
0
0
0
0
1
0.05
false
0
0.4
0
0.5
0.05
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
8478a40f6283841cbeef90271865092b9e8ed207
3,484
py
Python
bootstrap.py
ptweir/pyresampling
7d81e2b3b2af57e43e24dddd2e04918f73f9f290
[ "MIT" ]
4
2015-11-18T18:27:38.000Z
2017-01-18T18:20:22.000Z
bootstrap.py
ptweir/pyresampling
7d81e2b3b2af57e43e24dddd2e04918f73f9f290
[ "MIT" ]
null
null
null
bootstrap.py
ptweir/pyresampling
7d81e2b3b2af57e43e24dddd2e04918f73f9f290
[ "MIT" ]
null
null
null
import numpy as np import collections try: from scipy.stats import scoreatpercentile except: # in case no scipy scoreatpercentile = False def _confidence_interval_1d(A, alpha=.05, metric=np.mean, numResamples=10000, interpolate=True): """Calculates bootstrap confidence interval along one dimensional ar...
43.55
129
0.705511
424
3,484
5.742925
0.287736
0.103491
0.041068
0.034497
0.243121
0.232444
0.183573
0.183573
0.138398
0.059138
0
0.024845
0.214409
3,484
79
130
44.101266
0.864815
0.367968
0
0.153846
0
0
0.021614
0
0
0
0
0
0
1
0.076923
false
0
0.076923
0
0.230769
0.025641
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
84791502a9e42427caeb5f730a6711482d65741e
806
py
Python
suasor/suasor/auxilium.py
campovski/suasor
11bd745b8e023d9cf79ce23bec992e23a6427613
[ "MIT" ]
null
null
null
suasor/suasor/auxilium.py
campovski/suasor
11bd745b8e023d9cf79ce23bec992e23a6427613
[ "MIT" ]
14
2018-04-09T15:51:18.000Z
2018-04-16T13:44:22.000Z
suasor/suasor/auxilium.py
campovski/suasor
11bd745b8e023d9cf79ce23bec992e23a6427613
[ "MIT" ]
null
null
null
import datetime import os from .models import Log, LogType from .settings import DEBUG, DIR_DATA, DIR_DATA_DEBUG, DIR_DATA_IMAGES, DIR_DATA_PEOPLE, DIR_DATA_LOG """ Writes information about error that occured (like name or image could not be extracted). @param at: The name of function that this error occured in @p...
32.24
101
0.684864
127
806
4.181102
0.464567
0.079096
0.045198
0
0
0
0
0
0
0
0
0.006154
0.193548
806
24
102
33.583333
0.810769
0
0
0
0
0
0.050489
0
0
0
0
0
0
1
0.0625
false
0
0.25
0
0.3125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
847c619b59a80ff4f78080c906715a33d7fa95e3
14,327
py
Python
05/solution.py
AlecRosenbaum/adventofcode2017
9214a64db77492790d30bbd22e835535d05abb25
[ "MIT" ]
null
null
null
05/solution.py
AlecRosenbaum/adventofcode2017
9214a64db77492790d30bbd22e835535d05abb25
[ "MIT" ]
null
null
null
05/solution.py
AlecRosenbaum/adventofcode2017
9214a64db77492790d30bbd22e835535d05abb25
[ "MIT" ]
null
null
null
""" Day 5 challenge """ import attr def solution_part_one(arg): instructions = arg[:] n = 0 pos = 0 while pos < len(instructions): idx = pos pos += instructions[idx] instructions[idx] += 1 n += 1 return n def solution_part_two(arg): instructions = arg[:] ...
13.710048
42
0.209046
1,087
14,327
2.73781
0.478381
0.040323
0.016129
0.012769
0.064516
0.064516
0.064516
0.047715
0.047715
0.047715
0
0.517207
0.6471
14,327
1,044
43
13.72318
0.0714
0.001047
0
0.742248
0
0
0.000559
0
0
0
0
0
0
1
0.001938
false
0
0.000969
0
0.004845
0.001938
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
1
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
847cbacea93949610c39623fec080a8c96e35146
2,091
py
Python
twitchchat_display/main.py
shughes-uk/twitchchat_display
b81157ead7007703f4f795ea4c0d4f1cd3d553ce
[ "MIT" ]
1
2015-12-17T08:12:14.000Z
2015-12-17T08:12:14.000Z
twitchchat_display/main.py
shughes-uk/twitchchat_display
b81157ead7007703f4f795ea4c0d4f1cd3d553ce
[ "MIT" ]
null
null
null
twitchchat_display/main.py
shughes-uk/twitchchat_display
b81157ead7007703f4f795ea4c0d4f1cd3d553ce
[ "MIT" ]
2
2015-09-22T00:46:44.000Z
2015-11-04T01:29:15.000Z
#!/usr/bin/env python # This Python file uses the following encoding: utf-8 import logging.config import signal import sys import time from pathlib import Path import click import pygame from twitchchat import twitch_chat from .config import get_config, logging_config from .display import TwitchChatDisplay logger =...
28.256757
80
0.645146
233
2,091
5.60515
0.44206
0.036753
0.048239
0.064319
0.052067
0
0
0
0
0
0
0.002536
0.245815
2,091
73
81
28.643836
0.825618
0.034433
0
0.065574
0
0
0.178483
0
0
0
0
0
0
1
0.032787
false
0
0.163934
0
0.196721
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
847e369447b3cdbbad166cace6b991fbfe990141
19,440
py
Python
confclass.py
eladn/confclass
5008d1ee5a18b02135a4a981b4eeab7ce9a62ab6
[ "Apache-2.0" ]
null
null
null
confclass.py
eladn/confclass
5008d1ee5a18b02135a4a981b4eeab7ce9a62ab6
[ "Apache-2.0" ]
null
null
null
confclass.py
eladn/confclass
5008d1ee5a18b02135a4a981b4eeab7ce9a62ab6
[ "Apache-2.0" ]
null
null
null
import typing from typing import Optional, Callable, Iterable, Iterator, Dict, Union import dataclasses import argparse from functools import partial import yaml import os __all__ = [ 'confclass', 'confparam' ] # A sentinel object to detect if a parameter is supplied or not. # Use an empty class to give it ...
43.882619
117
0.641358
2,362
19,440
4.832345
0.121084
0.044419
0.021027
0.023305
0.373927
0.283336
0.220343
0.160505
0.11004
0.101454
0
0.001135
0.274846
19,440
442
118
43.9819
0.808541
0.140278
0
0.1625
0
0
0.058632
0.026876
0
0
0
0.004525
0.015625
1
0.103125
false
0.003125
0.021875
0.0375
0.24375
0.015625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
847e429caaf13eb7d884539ae5c14baada32ea44
2,469
py
Python
src/samstatic_flask/app.py
city10th/samstatic_flask
f8a8934f724d85ab2eb7ae680aa7d14747377a94
[ "MIT" ]
null
null
null
src/samstatic_flask/app.py
city10th/samstatic_flask
f8a8934f724d85ab2eb7ae680aa7d14747377a94
[ "MIT" ]
null
null
null
src/samstatic_flask/app.py
city10th/samstatic_flask
f8a8934f724d85ab2eb7ae680aa7d14747377a94
[ "MIT" ]
null
null
null
from functools import lru_cache from flask import Flask from flask.ctx import RequestContext from .config import Option from .ctx import RequestContextWithSamStatic from .helper import set_samstatic_default_parm class FlaskWithSamStatic(Flask): def __init__(self, *Flask_args, **Flask_kwargs): super().__i...
44.089286
120
0.689753
288
2,469
5.600694
0.28125
0.213887
0.078115
0.069436
0.212647
0.119033
0.083075
0.083075
0.083075
0.083075
0
0.002067
0.216282
2,469
55
121
44.890909
0.831525
0.081409
0
0
0
0
0.090146
0.012815
0
0
0
0
0
1
0.097561
false
0
0.146341
0
0.414634
0.04878
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
847f1e5232818e65137a7c49cccb4f03a7eb9c35
3,334
py
Python
deploy/auto_scaling.py
danielSbastos/blue-green-aws
bb78448edd2496d69f4802ef7337ce648a965be3
[ "MIT" ]
null
null
null
deploy/auto_scaling.py
danielSbastos/blue-green-aws
bb78448edd2496d69f4802ef7337ce648a965be3
[ "MIT" ]
null
null
null
deploy/auto_scaling.py
danielSbastos/blue-green-aws
bb78448edd2496d69f4802ef7337ce648a965be3
[ "MIT" ]
null
null
null
import time from deploy.support import Client class AutoScaling: def __init__(self, state_file_content): self.auto_scaling_client = Client.auto_scaling() self.state_file_content = state_file_content def enter_standby(self, instances_ids, green_blue): if not self.state_file_content[g...
40.168675
99
0.670966
350
3,334
6.062857
0.265714
0.089067
0.158341
0.179076
0.500943
0.487276
0.359566
0.359566
0.28181
0.28181
0
0.005756
0.218356
3,334
82
100
40.658537
0.808519
0
0
0.149254
0
0
0.14847
0.039592
0
0
0
0
0
1
0.134328
false
0
0.029851
0.014925
0.238806
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
847fd9cb96497848a266a48adad5af45d252833f
4,594
py
Python
client/views.py
adwalkz/DjangoDataAnalysis
1a888fc3a5dc34651a3b25d476e985ff39d8e305
[ "MIT" ]
4
2021-08-04T17:02:56.000Z
2021-09-30T07:07:04.000Z
client/views.py
adwalkz/DjangoDataAnalysis
1a888fc3a5dc34651a3b25d476e985ff39d8e305
[ "MIT" ]
null
null
null
client/views.py
adwalkz/DjangoDataAnalysis
1a888fc3a5dc34651a3b25d476e985ff39d8e305
[ "MIT" ]
null
null
null
from django.shortcuts import render, get_object_or_404, get_list_or_404 from django.db.models import Count, Avg, Max, Min from ts.models import * from .models import SurveyQuestion, SurveyQuestionChoice, SurveyResponse import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt from fpdf import FPDF cl...
28.534161
139
0.597736
575
4,594
4.582609
0.25913
0.039469
0.020873
0.026565
0.270968
0.226186
0.182922
0.182922
0.153321
0.080455
0
0.017841
0.280148
4,594
160
140
28.7125
0.778954
0.054854
0
0.07
0
0
0.098206
0.023371
0
0
0
0
0
1
0.09
false
0
0.07
0
0.21
0.02
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
84806a239925de030e3ae5a0bfc49d874839118d
690
py
Python
plaso/formatters/android_webviewcache.py
ir4n6/plaso
010f9cbdfc82e21ed6658657fd09a7b44115c464
[ "Apache-2.0" ]
27
2019-04-05T12:01:49.000Z
2022-02-08T02:26:25.000Z
plaso/formatters/android_webviewcache.py
ir4n6/plaso
010f9cbdfc82e21ed6658657fd09a7b44115c464
[ "Apache-2.0" ]
null
null
null
plaso/formatters/android_webviewcache.py
ir4n6/plaso
010f9cbdfc82e21ed6658657fd09a7b44115c464
[ "Apache-2.0" ]
8
2019-11-28T08:06:34.000Z
2020-08-29T13:53:30.000Z
# -*- coding: utf-8 -*- """The Android WebViewCache database event formatter.""" from __future__ import unicode_literals from plaso.formatters import interface from plaso.formatters import manager # TODO: move to android_webview.py. class AndroidWebViewCacheFormatter(interface.ConditionalEventFormatter): """Forma...
24.642857
73
0.757971
69
690
7.362319
0.57971
0.149606
0.074803
0.098425
0
0
0
0
0
0
0
0.001692
0.143478
690
27
74
25.555556
0.857868
0.223188
0
0
0
0
0.188931
0
0
0
0
0.037037
0
1
0
false
0
0.230769
0
0.692308
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
1
0
0
2
84832d14bd00eb58e3c0522651cfb1e530dade7e
244
py
Python
output/models/nist_data/list_pkg/language/schema_instance/nistschema_sv_iv_list_language_length_4_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/nist_data/list_pkg/language/schema_instance/nistschema_sv_iv_list_language_length_4_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/nist_data/list_pkg/language/schema_instance/nistschema_sv_iv_list_language_length_4_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from output.models.nist_data.list_pkg.language.schema_instance.nistschema_sv_iv_list_language_length_4_xsd.nistschema_sv_iv_list_language_length_4 import NistschemaSvIvListLanguageLength4 __all__ = [ "NistschemaSvIvListLanguageLength4", ]
40.666667
187
0.889344
29
244
6.793103
0.655172
0.121827
0.142132
0.182741
0.335025
0.335025
0.335025
0
0
0
0
0.017391
0.057377
244
5
188
48.8
0.83913
0
0
0
0
0
0.135246
0.135246
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
1
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
848522d0c16945038ba7b546ab13ef5b66ef936b
78
py
Python
src/chat/urls.py
alehpineda/django_webchat
1fef369d04c9bff0b506a152d4a82d7fa14a53f2
[ "MIT" ]
null
null
null
src/chat/urls.py
alehpineda/django_webchat
1fef369d04c9bff0b506a152d4a82d7fa14a53f2
[ "MIT" ]
null
null
null
src/chat/urls.py
alehpineda/django_webchat
1fef369d04c9bff0b506a152d4a82d7fa14a53f2
[ "MIT" ]
null
null
null
from django.urls import path, re_path app_name = 'chat' urlpatterns = [ ]
8.666667
37
0.692308
11
78
4.727273
0.909091
0
0
0
0
0
0
0
0
0
0
0
0.205128
78
8
38
9.75
0.83871
0
0
0
0
0
0.051282
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
8485f70cfa4995ce66447c98e07379ae489ca9e8
10,556
py
Python
hstgrism/grismapcorr.py
bkornpob/hstgrism
f65d37454c486e1681a9f70eecbc0f3ca83c2324
[ "MIT" ]
null
null
null
hstgrism/grismapcorr.py
bkornpob/hstgrism
f65d37454c486e1681a9f70eecbc0f3ca83c2324
[ "MIT" ]
null
null
null
hstgrism/grismapcorr.py
bkornpob/hstgrism
f65d37454c486e1681a9f70eecbc0f3ca83c2324
[ "MIT" ]
null
null
null
# Kornpob Bhirombhakdi # kbhirombhakdi@stsci.edu import numpy as np from scipy.interpolate import interp2d import copy class GrismApCorr: """ GrismApCorr is a class containing tables for aperture correction (i.e., apcorr = f(wavelength, apsize)) in aXe reduction. These tables are from ISRs. Interpolaton model...
56.449198
313
0.464286
1,389
10,556
3.511159
0.263499
0.022145
0.02358
0.037728
0.198688
0.142711
0.121386
0.105598
0.105598
0.105598
0
0.230864
0.3849
10,556
186
314
56.752688
0.520253
0.184824
0
0.294872
0
0
0.098565
0
0
0
0
0
0
1
0.025641
false
0
0.019231
0
0.064103
0.012821
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
84863eae140817ec0c54b39184cf63b3eb2511d1
15,051
py
Python
Structures/Interceptor.py
saisua/Scraper
ae9f93fbb0b3350cd5c8ba8e87b7ad63461d9a30
[ "MIT" ]
null
null
null
Structures/Interceptor.py
saisua/Scraper
ae9f93fbb0b3350cd5c8ba8e87b7ad63461d9a30
[ "MIT" ]
13
2020-06-19T13:31:16.000Z
2020-06-19T14:05:44.000Z
Structures/Interceptor.py
saisua/Scraper2
ae9f93fbb0b3350cd5c8ba8e87b7ad63461d9a30
[ "MIT" ]
null
null
null
print("Starting Interceptor imports... ") import sys import socket from multiprocessing import Manager, Process from re import search, sub from os import getcwd import io import pyshark import pem from pyshark.capture.capture import Capture from pyshark.capture.live_capture import LiveCapture from pyshark.packet.pack...
42.27809
124
0.626071
1,704
15,051
5.031103
0.240023
0.017963
0.011431
0.014697
0.224775
0.185233
0.123411
0.112446
0.094716
0.085151
0
0.004065
0.248223
15,051
356
125
42.27809
0.753601
0.157332
0
0.130435
0
0
0.084678
0.047946
0
0
0
0
0
1
0.081522
false
0.016304
0.130435
0.01087
0.309783
0.038043
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8488ee1fb62a274d4553e3c32bfb9b276cd72576
354
py
Python
pyoctoprintapi/server.py
rfleming71/pyoctoprintapi
5058d163beee11329315ced814bb6aec04142d8a
[ "MIT" ]
null
null
null
pyoctoprintapi/server.py
rfleming71/pyoctoprintapi
5058d163beee11329315ced814bb6aec04142d8a
[ "MIT" ]
1
2021-11-12T05:47:05.000Z
2021-11-12T05:47:05.000Z
pyoctoprintapi/server.py
rfleming71/pyoctoprintapi
5058d163beee11329315ced814bb6aec04142d8a
[ "MIT" ]
null
null
null
"""Define information about the octoprint server""" class OctoprintServerInfo: """Current job information""" def __init__(self, raw: dict): self._raw = raw @property def safe_mode(self) -> str or None: return self._raw.get("safemode") @property def version(self) -> str: ...
23.6
51
0.635593
42
354
5.166667
0.595238
0.129032
0.119816
0.147465
0
0
0
0
0
0
0
0
0.240113
354
14
52
25.285714
0.806691
0.194915
0
0.222222
0
0
0.054745
0
0
0
0
0
0
1
0.333333
false
0
0
0.222222
0.666667
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
1
0
0
0
1
0
0
0
2
8489217661ac1eae3afe68e1e0d39ce20002a5f3
538
py
Python
sources/rnt/mediane/normalizations/enumeration.py
bryan-brancotte/rank-aggregation-with-ties
15fffb0b1bee3d6cef7090486a7c910e5f51195d
[ "Apache-2.0" ]
null
null
null
sources/rnt/mediane/normalizations/enumeration.py
bryan-brancotte/rank-aggregation-with-ties
15fffb0b1bee3d6cef7090486a7c910e5f51195d
[ "Apache-2.0" ]
11
2018-04-04T08:24:30.000Z
2021-03-19T21:45:04.000Z
sources/rnt/mediane/normalizations/enumeration.py
bryan-brancotte/rank-aggregation-with-ties
15fffb0b1bee3d6cef7090486a7c910e5f51195d
[ "Apache-2.0" ]
1
2018-10-25T09:13:41.000Z
2018-10-25T09:13:41.000Z
from django.utils.translation import ugettext_lazy as _ NONE = 'None' UNIFICATION = 'UNIF' PROJECTION = 'PROJ' __tuple_list = ((UNIFICATION, _(UNIFICATION)), (PROJECTION, _(PROJECTION)), (NONE, _(NONE)),) def as_tuple_list(): return __tuple_list def get_from(id_enum): for k, v in __tuple_list: if ...
20.692308
93
0.654275
68
538
4.632353
0.485294
0.114286
0
0
0
0
0
0
0
0
0
0
0.208178
538
26
94
20.692308
0.739437
0
0
0
0
0
0.122449
0
0
0
0
0
0
1
0.157895
false
0
0.052632
0.052632
0.368421
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8489289f1dc2f046552b0600de1034290547537c
348
py
Python
EvoMusicCompanion/ea/util.py
Jerryhu1/MasterThesis
0e9fe1b9ae7620bbf4c7546d8d408ccea992ec5b
[ "MIT" ]
null
null
null
EvoMusicCompanion/ea/util.py
Jerryhu1/MasterThesis
0e9fe1b9ae7620bbf4c7546d8d408ccea992ec5b
[ "MIT" ]
null
null
null
EvoMusicCompanion/ea/util.py
Jerryhu1/MasterThesis
0e9fe1b9ae7620bbf4c7546d8d408ccea992ec5b
[ "MIT" ]
null
null
null
from music21 import interval, pitch def transpose_piece(piece, key): k = piece.analyze('key') if k.tonicPitchNameWithCase.islower(): return None i = interval.Interval(k.tonic, pitch.Pitch(key)) new_piece = piece.transpose(i) return new_piece def flatten(l): return [item for sublist ...
19.333333
54
0.686782
49
348
4.816327
0.510204
0.084746
0
0
0
0
0
0
0
0
0
0.007326
0.215517
348
17
55
20.470588
0.857143
0
0
0
0
0
0.008671
0
0
0
0
0
0
1
0.2
false
0
0.1
0.1
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
848a70bcaf3c6665cc367d128e79aa6e018703cf
1,932
py
Python
src/datasets.py
dmilios/dirichletGPC
7e460ca07005a5aed97937d2bf2a8a47b6f8051e
[ "Apache-2.0" ]
12
2018-12-19T15:38:20.000Z
2022-02-14T14:58:40.000Z
src/datasets.py
dmilios/dirichletGPC
7e460ca07005a5aed97937d2bf2a8a47b6f8051e
[ "Apache-2.0" ]
null
null
null
src/datasets.py
dmilios/dirichletGPC
7e460ca07005a5aed97937d2bf2a8a47b6f8051e
[ "Apache-2.0" ]
1
2019-12-25T01:51:02.000Z
2019-12-25T01:51:02.000Z
# Copyright 2018 Dimitrios Milios, Raffaello Camoriano, # Pietro Michiardi,Lorenzo Rosasco, Maurizio Filippone # 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...
32.2
75
0.624741
274
1,932
4.357664
0.456204
0.050251
0.021776
0.026801
0.103853
0.070352
0.070352
0
0
0
0
0.023726
0.258282
1,932
59
76
32.745763
0.809491
0.46118
0
0.064516
0
0
0.037149
0
0
0
0
0
0
1
0.096774
false
0
0.064516
0
0.258065
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
848b436aa24ac308d60e90b617dd1c05c1c87340
4,559
py
Python
cleanup_timescale.py
djhedges/exit_speed
86c8a36dd7c53d9f67157c359625b8d33715f917
[ "Apache-2.0" ]
10
2020-09-25T19:48:50.000Z
2021-10-13T13:42:56.000Z
cleanup_timescale.py
djhedges/exit_speed
86c8a36dd7c53d9f67157c359625b8d33715f917
[ "Apache-2.0" ]
null
null
null
cleanup_timescale.py
djhedges/exit_speed
86c8a36dd7c53d9f67157c359625b8d33715f917
[ "Apache-2.0" ]
1
2021-02-08T14:50:48.000Z
2021-02-08T14:50:48.000Z
#!/usr/bin/python3 # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
30.393333
77
0.704321
606
4,559
5.136964
0.270627
0.075169
0.026984
0.04433
0.517828
0.469643
0.42435
0.378734
0.353678
0.277867
0
0.006366
0.207502
4,559
149
78
30.597315
0.855245
0.238868
0
0.543689
0
0
0.30981
0
0
0
0
0
0
1
0.067961
false
0
0.038835
0
0.106796
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
848fe74589053694644bcad6b55e06f1a3933401
32,153
py
Python
DNATool2/Mutation.py
shambo001/peat
7a26e896aa9914b084a9064df09ed15df4047cf3
[ "MIT" ]
3
2016-11-11T06:11:03.000Z
2021-09-12T22:13:51.000Z
DNATool2/Mutation.py
shambo001/peat
7a26e896aa9914b084a9064df09ed15df4047cf3
[ "MIT" ]
null
null
null
DNATool2/Mutation.py
shambo001/peat
7a26e896aa9914b084a9064df09ed15df4047cf3
[ "MIT" ]
2
2016-02-15T16:10:36.000Z
2018-02-27T10:33:21.000Z
#!/usr/bin/env python # # Protein Engineering Analysis Tool DataBase (PEATDB) # Copyright (C) 2010 Damien Farrell & Jens Erik Nielsen # # 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 ver...
30.134021
225
0.557055
3,920
32,153
4.417602
0.179337
0.026044
0.009239
0.010972
0.168043
0.122192
0.087313
0.064792
0.058902
0.05382
0
0.015229
0.317886
32,153
1,066
226
30.162289
0.774348
0.203185
0
0.166016
0
0.001953
0.074652
0.004312
0
0
0
0
0
0
null
null
0
0.025391
null
null
0.037109
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
8490aeceeb675f3713fb1cedf7105b2e3140cf51
1,472
py
Python
tempZonal/overlay1.py
Mihir-DG/Tropospheric-Temperature-and-Zonal-Wind-Profiles
13e0c706faed446f10758341807c066670260e0b
[ "MIT" ]
null
null
null
tempZonal/overlay1.py
Mihir-DG/Tropospheric-Temperature-and-Zonal-Wind-Profiles
13e0c706faed446f10758341807c066670260e0b
[ "MIT" ]
null
null
null
tempZonal/overlay1.py
Mihir-DG/Tropospheric-Temperature-and-Zonal-Wind-Profiles
13e0c706faed446f10758341807c066670260e0b
[ "MIT" ]
null
null
null
from netCDF4 import Dataset as dst import numpy as np from matplotlib import pyplot as plt tempnc = dst("../air.mon.mean.nc", mode='r') zonalnc = dst("../uwnd.mon.mean.nc", mode='r') #Datasets downloaded 21 Aug 2020 #Time length- 871 ==> 871/12 --> 7/12 def slice_per(source, step): return [source[i::step] for i in ...
24.131148
60
0.665761
240
1,472
4.0125
0.3625
0.041537
0.018692
0.026999
0.463136
0.43406
0.43406
0.43406
0.43406
0.43406
0
0.045161
0.157609
1,472
60
61
24.533333
0.730645
0.045516
0
0.52
0
0
0.084226
0
0
0
0
0
0
1
0.06
false
0
0.06
0.02
0.18
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
849299b9fc910775a11fc0036ffa60ec51f4037c
4,609
py
Python
tests/buf_test.py
ClasherKasten/babi
e11d61da9387b3740fcf7c9ec631e51cfd4b194b
[ "MIT" ]
null
null
null
tests/buf_test.py
ClasherKasten/babi
e11d61da9387b3740fcf7c9ec631e51cfd4b194b
[ "MIT" ]
null
null
null
tests/buf_test.py
ClasherKasten/babi
e11d61da9387b3740fcf7c9ec631e51cfd4b194b
[ "MIT" ]
null
null
null
from __future__ import annotations from unittest import mock import pytest import babi.buf from babi.buf import Buf def test_buf_truthiness(): assert bool(Buf([])) is False assert bool(Buf(['a', 'b'])) is True def test_buf_repr(): ret = repr(Buf(['a', 'b', 'c'])) assert ret == "Buf(['a', 'b', 'c'...
18.659919
72
0.533521
654
4,609
3.636086
0.134557
0.029437
0.037847
0.065601
0.633305
0.612279
0.563499
0.52439
0.52439
0.495795
0
0.011354
0.254719
4,609
246
73
18.735772
0.680349
0
0
0.47973
0
0.006757
0.067694
0
0
0
0
0
0.25
1
0.128378
false
0
0.033784
0
0.162162
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
84939ced5befe433cb8498d6dccc5a7e55882a2e
236
py
Python
test_gcat.py
thecrux4020/black-widow
2bf1926ecf9431f2e88cc677554264f86c393a19
[ "MIT" ]
1
2019-01-30T14:09:09.000Z
2019-01-30T14:09:09.000Z
test_gcat.py
thecrux4020/black-widow
2bf1926ecf9431f2e88cc677554264f86c393a19
[ "MIT" ]
null
null
null
test_gcat.py
thecrux4020/black-widow
2bf1926ecf9431f2e88cc677554264f86c393a19
[ "MIT" ]
null
null
null
import gc2 gcat = gc2.Gcat() gcat.checkCommands() print gcat.pending_tasks for task in gcat.pending_tasks: gcat.sendEmail('daskjdajhdagdjhsagdsahdsgajdgashdfaghdasfdhas', task['task_id']) gcat.delete_pending_task(task['task_id'])
19.666667
81
0.79661
30
236
6.066667
0.466667
0.131868
0.175824
0
0
0
0
0
0
0
0
0.009302
0.088983
236
11
82
21.454545
0.837209
0
0
0
0
0
0.25
0.190678
0
0
0
0
0
0
null
null
0
0.142857
null
null
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
8493fc3f305b6cd5d37b4ba35bfc0dfffc975a3f
18,557
py
Python
simulation.py
laloc2496/cdn_configuration_optimization
58cf2278456d0ef8796570f12f1d00fd68aec686
[ "MIT" ]
null
null
null
simulation.py
laloc2496/cdn_configuration_optimization
58cf2278456d0ef8796570f12f1d00fd68aec686
[ "MIT" ]
null
null
null
simulation.py
laloc2496/cdn_configuration_optimization
58cf2278456d0ef8796570f12f1d00fd68aec686
[ "MIT" ]
null
null
null
import networkx as nx import random, pickle, string from src.util.gen_files import * import threading import time from src.net.topology import NetTopology from src.algorithm import * import os, sys from random import randint, shuffle, sample from src.util.utils import * from src.algorithm.cache import * from src.util.s...
49.092593
197
0.620898
1,526
18,557
7.500655
0.135649
0.017124
0.023065
0.020182
0.643107
0.614625
0.577232
0.563079
0.49004
0.440503
0
0.008328
0.28178
18,557
377
198
49.222812
0.850465
0.040254
0
0.595016
0
0
0.06101
0.01327
0
0
0
0
0
1
0.034268
false
0.012461
0.037383
0
0.140187
0.006231
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8495d4f3d80007cf3963d73184d2d8cdc2010a50
4,475
py
Python
assignment3/code/lr_1d.py
cjy513203427/SML_Assignment
630e5b73d2ce222f4adb29f91d2ee3007f8972ff
[ "MIT" ]
null
null
null
assignment3/code/lr_1d.py
cjy513203427/SML_Assignment
630e5b73d2ce222f4adb29f91d2ee3007f8972ff
[ "MIT" ]
null
null
null
assignment3/code/lr_1d.py
cjy513203427/SML_Assignment
630e5b73d2ce222f4adb29f91d2ee3007f8972ff
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- ''' @File : lr_1d.py.py @Modify Time @Author @Desciption ------------ ------- ----------- 2021/7/5 22:51 Jonas None ''' import numpy as np import math import matplotlib.pyplot as plt from scipy.stats import norm train_data = np.loadtxt("lin_reg_tr...
28.322785
111
0.576313
766
4,475
3.16188
0.197128
0.034682
0.019818
0.036334
0.199835
0.120562
0.095376
0.022296
0.022296
0
0
0.03416
0.260782
4,475
157
112
28.503185
0.698005
0.052737
0
0.017699
0
0
0.049657
0
0
0
0
0
0
1
0.079646
false
0
0.035398
0.00885
0.19469
0.035398
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
849602ab96643a0ca50a7973accb1f2950c12d70
1,252
py
Python
datasets/mvda_soil/demos.py
ryuzakyl/data-bloodhound
ae0413e748e55a0d2dbae35bbe96a672f313a64b
[ "Apache-2.0" ]
3
2019-03-18T03:22:06.000Z
2021-04-06T07:53:51.000Z
datasets/mvda_soil/demos.py
ryuzakyl/data-bloodhound
ae0413e748e55a0d2dbae35bbe96a672f313a64b
[ "Apache-2.0" ]
null
null
null
datasets/mvda_soil/demos.py
ryuzakyl/data-bloodhound
ae0413e748e55a0d2dbae35bbe96a672f313a64b
[ "Apache-2.0" ]
2
2020-10-05T08:22:25.000Z
2020-10-05T08:24:02.000Z
#!/usr/bin/env # -*- coding: utf-8 -*- # Copyright (C) Victor M. Mendiola Lau - All Rights Reserved # Unauthorized copying of this file, via any medium is strictly prohibited # Proprietary and confidential # Written by Victor M. Mendiola Lau <ryuzakyl@gmail.com>, March 2017 import pylab import numpy as np from dataset...
27.217391
79
0.632588
184
1,252
4.184783
0.538043
0.083117
0.046753
0.058442
0.101299
0.101299
0.101299
0.101299
0.101299
0.101299
0
0.009109
0.210863
1,252
45
80
27.822222
0.770243
0.464856
0
0.222222
0
0
0.012214
0
0
0
0
0
0
1
0.111111
false
0
0.166667
0
0.277778
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
8496886dbc56ebec7509a1f73cdab97ecc41c0e3
3,487
py
Python
gan_training/DCGAN.py
sanilpande/stars-align
cdf69f487d3e4d2cef1d455840f094e2df55415e
[ "MIT" ]
null
null
null
gan_training/DCGAN.py
sanilpande/stars-align
cdf69f487d3e4d2cef1d455840f094e2df55415e
[ "MIT" ]
null
null
null
gan_training/DCGAN.py
sanilpande/stars-align
cdf69f487d3e4d2cef1d455840f094e2df55415e
[ "MIT" ]
1
2020-11-04T15:08:38.000Z
2020-11-04T15:08:38.000Z
""" DCGAN Model to get Generator for DefenseGAN Baseline Implementation. References: https://www.coursera.org/learn/build-basic-generative-adversarial-networks-gans https://pytorch.org/tutorials/beginner/dcgan_faces_tutorial.html """ import torch from torch import nn class Generator(nn.Module): """Genera...
39.179775
120
0.632062
478
3,487
4.378661
0.219665
0.077401
0.042045
0.064979
0.466316
0.315815
0.311515
0.270425
0.211658
0.161491
0
0.047711
0.260683
3,487
88
121
39.625
0.764158
0.148265
0
0.172414
0
0
0
0
0
0
0
0
0
1
0.103448
false
0
0.034483
0
0.275862
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
8496d65386d0cc0e3eff34b5236093dc29e85684
3,713
py
Python
figures/scripts/metrics_roc.py
ljalil/MasterThesis
59f4ec6356f41647cc4ac9510bcdd0c8506919b8
[ "CC-BY-4.0" ]
6
2020-06-25T16:28:02.000Z
2022-02-12T19:53:37.000Z
figures/scripts/metrics_roc.py
ljalil/MasterThesis
59f4ec6356f41647cc4ac9510bcdd0c8506919b8
[ "CC-BY-4.0" ]
null
null
null
figures/scripts/metrics_roc.py
ljalil/MasterThesis
59f4ec6356f41647cc4ac9510bcdd0c8506919b8
[ "CC-BY-4.0" ]
1
2020-08-14T13:37:32.000Z
2020-08-14T13:37:32.000Z
# -*- coding: utf-8 -*- """ Created on Sat May 9 11:03:34 2020 @author: Abdeljalil """ import numpy as np np.random.seed(10) import matplotlib.pyplot as plt from sklearn.datasets import make_classification from sklearn.linear_model import LogisticRegression from sklearn.ensemble import (RandomTreesEmbedding, Rando...
33.45045
96
0.748721
647
3,713
4.017002
0.248841
0.02501
0.018469
0.030781
0.297807
0.190073
0.088111
0
0
0
0
0.029636
0.118503
3,713
111
97
33.45045
0.764436
0.173714
0
0
0
0
0.076797
0.015097
0
0
0
0
0
1
0
false
0
0.130435
0
0.130435
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
849755a42d03dcd27711cb278727ab380e899f5c
1,729
py
Python
annotate/ac_build.py
universalbenefitNLP/text_annotate_py
e60e29af410c4ec0c8a2b09de8ea772d0572e066
[ "Unlicense" ]
null
null
null
annotate/ac_build.py
universalbenefitNLP/text_annotate_py
e60e29af410c4ec0c8a2b09de8ea772d0572e066
[ "Unlicense" ]
null
null
null
annotate/ac_build.py
universalbenefitNLP/text_annotate_py
e60e29af410c4ec0c8a2b09de8ea772d0572e066
[ "Unlicense" ]
null
null
null
import sys import os import argparse import pickle import ahocorasick from utils.utils import check_file, ensure_dir sys.path.append(os.path.join(os.path.dirname(__file__), '..')) def _get_parser(): parser = argparse.ArgumentParser() parser.add_argument('--infile', type=str, default='../data/synonym', help...
28.816667
105
0.661076
227
1,729
4.881057
0.356828
0.021661
0.061372
0.032491
0.146209
0.043321
0
0
0
0
0
0.000722
0.198959
1,729
59
106
29.305085
0.799278
0
0
0.045455
0
0
0.115095
0
0
0
0
0
0.022727
1
0.045455
false
0
0.136364
0
0.204545
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
8497cd64ede98663c1b1f76b7510257ff7fd903c
1,792
py
Python
app/main/forms.py
igihozo-stella/60sec-Pitch
a4ae4ca2cf0a6d2488bd721f329e33b6f4e38fec
[ "MIT" ]
null
null
null
app/main/forms.py
igihozo-stella/60sec-Pitch
a4ae4ca2cf0a6d2488bd721f329e33b6f4e38fec
[ "MIT" ]
null
null
null
app/main/forms.py
igihozo-stella/60sec-Pitch
a4ae4ca2cf0a6d2488bd721f329e33b6f4e38fec
[ "MIT" ]
null
null
null
from flask_wtf import FlaskForm from wtforms import StringField, SelectField, TextAreaField, SubmitField,PasswordField,ValidationError from wtforms.validators import Required, Email, Length, EqualTo from wtforms.validators import Required class LoginForm(FlaskForm): username = StringField("Username:", validators=...
38.956522
128
0.714844
183
1,792
6.918033
0.333333
0.14218
0.061611
0.082938
0.531596
0.28357
0.21406
0.176935
0.096367
0.096367
0
0
0.154576
1,792
46
129
38.956522
0.835644
0
0
0.193548
0
0
0.136643
0
0
0
0
0
0
1
0.096774
false
0.129032
0.129032
0
0.806452
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
1
0
0
2
849802068a48f6b66e9845576227f8306065b792
3,368
py
Python
src/count/HashCount.py
abagaria/opiq
b7df5134d8b265972ad70f7ba92b385f1e3fe5f2
[ "MIT" ]
13
2020-02-13T16:09:16.000Z
2021-07-21T16:23:39.000Z
src/count/HashCount.py
abagaria/opiq
b7df5134d8b265972ad70f7ba92b385f1e3fe5f2
[ "MIT" ]
2
2020-08-04T01:46:37.000Z
2021-06-28T10:30:53.000Z
src/count/HashCount.py
abagaria/opiq
b7df5134d8b265972ad70f7ba92b385f1e3fe5f2
[ "MIT" ]
3
2020-08-01T07:33:02.000Z
2021-11-13T20:54:55.000Z
# Taken from https://github.com/openai/EPG/blob/master/epg/exploration.py import numpy as np import torch device = torch.device("cuda" if torch.cuda.is_available() else "cpu") class HashingBonusEvaluator(object): """Hash-based count bonus for exploration. Tang, H., Houthooft, R., Foote, D., Stooke, A., Chen...
42.632911
122
0.620546
450
3,368
4.482222
0.348889
0.076351
0.044621
0.03768
0.292018
0.271195
0.242935
0.1765
0.16113
0.131879
0
0.028991
0.252375
3,368
79
123
42.632911
0.772041
0.331057
0
0.238095
0
0
0.004521
0
0
0
0
0
0
1
0.142857
false
0
0.047619
0.02381
0.309524
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
8498d5ed9bad8601b8ff437aad645427031351bd
1,435
py
Python
app.py
salsal97/birthday-bingo-flask
e7f235d8284a2442f5e06637148f421ec7ac609c
[ "MIT" ]
null
null
null
app.py
salsal97/birthday-bingo-flask
e7f235d8284a2442f5e06637148f421ec7ac609c
[ "MIT" ]
null
null
null
app.py
salsal97/birthday-bingo-flask
e7f235d8284a2442f5e06637148f421ec7ac609c
[ "MIT" ]
null
null
null
import re import os import random import json from datetime import datetime from flask import Flask, render_template app = Flask(__name__) # using Flask's app.route decorator to map the URL route / to that function: @app.route("/") def home(): no_of_columns=4 image_path='static/index/' image_list=os.lis...
25.175439
76
0.61324
194
1,435
4.386598
0.391753
0.052879
0.070505
0.044653
0.199765
0.199765
0.199765
0.091657
0.091657
0.091657
0
0.001878
0.25784
1,435
56
77
25.625
0.797183
0.066899
0
0.177778
0
0
0.166916
0
0
0
0
0
0
1
0.066667
false
0
0.133333
0
0.266667
0.044444
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
849afa26cbaa85520b913e54c9ff304fa6ad9cd6
259
py
Python
blink_cursor.py
macshaggy/curses-example
b6b9c03b508515cf35e0a5f24963a386568c8029
[ "Unlicense" ]
1
2022-02-15T08:24:28.000Z
2022-02-15T08:24:28.000Z
blink_cursor.py
macshaggy/curses-example
b6b9c03b508515cf35e0a5f24963a386568c8029
[ "Unlicense" ]
null
null
null
blink_cursor.py
macshaggy/curses-example
b6b9c03b508515cf35e0a5f24963a386568c8029
[ "Unlicense" ]
null
null
null
import curses screen = curses.initscr() curses.curs_set(0) screen.addstr(2, 2, "Hello, I disabled the cursor!") screen.refresh() screen.getch() curses.curs_set(1) screen.addstr(2, 2, "And now it's back on.") screen.refresh() screen.getch() curses.endwin()
17.266667
52
0.722008
42
259
4.404762
0.571429
0.108108
0.140541
0.151351
0.324324
0
0
0
0
0
0
0.026087
0.111969
259
15
53
17.266667
0.778261
0
0
0.363636
0
0
0.192308
0
0
0
0
0
0
1
0
false
0
0.090909
0
0.090909
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
849b5137ce5d8ff5f15fdccb8056c6c7fb8d7923
3,028
py
Python
script/model.py
jayeolasegun/Term-Deposit-Classification
e1ce928814f26712813f600bc704183d5a9e603d
[ "CC0-1.0" ]
null
null
null
script/model.py
jayeolasegun/Term-Deposit-Classification
e1ce928814f26712813f600bc704183d5a9e603d
[ "CC0-1.0" ]
null
null
null
script/model.py
jayeolasegun/Term-Deposit-Classification
e1ce928814f26712813f600bc704183d5a9e603d
[ "CC0-1.0" ]
null
null
null
# -*- coding: utf-8 -*- """ @author: Jayeola Gbenga """ from sklearn.metrics import precision_score, recall_score, f1_score, roc_auc_score, accuracy_score, classification_report, confusion_matrix, average_precision_score from sklearn.model_selection import cross_val_score from sklearn.linear_model import LogisticRe...
30.897959
164
0.693857
379
3,028
5.327177
0.258575
0.027241
0.05894
0.076275
0.099059
0.0842
0.044577
0
0
0
0
0.00779
0.194518
3,028
98
165
30.897959
0.820008
0.05251
0
0
0
0
0.057733
0
0
0
0
0
0
1
0.123077
false
0
0.123077
0
0.261538
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
849b79c678c32714b70be8d959429c3a52dedbd6
1,096
py
Python
examples/vtrace/vtrace_main.py
cg31/cule
6cd8e06059c3c3a193a4b2e0821dc1b9daeb726c
[ "BSD-3-Clause" ]
208
2019-05-25T21:35:35.000Z
2022-03-28T17:33:13.000Z
examples/vtrace/vtrace_main.py
cg31/cule
6cd8e06059c3c3a193a4b2e0821dc1b9daeb726c
[ "BSD-3-Clause" ]
30
2019-07-27T08:23:54.000Z
2022-03-24T18:17:36.000Z
examples/vtrace/vtrace_main.py
cg31/cule
6cd8e06059c3c3a193a4b2e0821dc1b9daeb726c
[ "BSD-3-Clause" ]
27
2019-07-27T05:42:23.000Z
2022-03-05T03:08:52.000Z
import os import sys _path = os.path.abspath(os.path.pardir) if not _path in sys.path: sys.path = [_path] + sys.path from a2c.a2c_main import a2c_parser_options from utils.launcher import main def vtrace_parser_options(parser): parser = a2c_parser_options(parser) parser.add_argument('--c-hat', type=int,...
33.212121
138
0.710766
162
1,096
4.62963
0.401235
0.064
0.113333
0.06
0.170667
0.170667
0.170667
0.109333
0
0
0
0.020563
0.156934
1,096
32
139
34.25
0.791126
0
0
0
0
0
0.278285
0.020073
0
0
0
0
0
1
0.086957
false
0
0.217391
0
0.347826
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
849c298ed26bbbbaeb124ceca2c66f8a671e5b2d
370
py
Python
setup.py
abcdabcd987/torchprofile
80cb62ee2401f3118188e44f8796f0f98fd7eebf
[ "MIT" ]
216
2019-09-09T19:45:07.000Z
2020-06-15T20:17:55.000Z
setup.py
tanglang96/torchprofile
e918353e95e19a6bc9e02794d5c96510ed858741
[ "MIT" ]
10
2020-08-27T05:00:31.000Z
2022-03-18T11:10:09.000Z
setup.py
tanglang96/torchprofile
e918353e95e19a6bc9e02794d5c96510ed858741
[ "MIT" ]
16
2020-07-16T00:53:28.000Z
2022-03-09T03:09:24.000Z
from setuptools import find_packages, setup from torchprofile import __version__ setup( name='torchprofile', version=__version__, packages=find_packages(exclude=['examples']), install_requires=[ 'numpy>=1.14', 'torch>=1.4', 'torchvision>=0.4', ], url='https://github.com...
21.764706
55
0.645946
40
370
5.7
0.7
0.105263
0
0
0
0
0
0
0
0
0
0.023729
0.202703
370
16
56
23.125
0.749153
0
0
0
0
0
0.281081
0
0
0
0
0
0
1
0
true
0
0.142857
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
849cae0812bd0c8ef041e12b52ebe1e5cee5e1af
199
py
Python
01_foundation/00_basic/31_lambda.py
bluehenry/python.best.practices
99fde3557b0c423d3050e988e82a641ccd75b644
[ "MIT" ]
null
null
null
01_foundation/00_basic/31_lambda.py
bluehenry/python.best.practices
99fde3557b0c423d3050e988e82a641ccd75b644
[ "MIT" ]
null
null
null
01_foundation/00_basic/31_lambda.py
bluehenry/python.best.practices
99fde3557b0c423d3050e988e82a641ccd75b644
[ "MIT" ]
null
null
null
# The power of lambda is better shown when you use them as an anonymous function inside another function double = lambda x: x * 2 print(double(10)) x = lambda a, b, c: a + b + c print(x(5, 6, 2))
22.111111
104
0.678392
39
199
3.461538
0.692308
0.02963
0.044444
0
0
0
0
0
0
0
0
0.03871
0.221106
199
8
105
24.875
0.832258
0.512563
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
2
849f1663037c03aefdc00d959fd1e18344b99975
806
py
Python
mlflow/utils/mlflow_tags.py
kylemeyer1/mlflow
56d080707853fedcb0ddc5febf4d30ff3e47000e
[ "Apache-2.0" ]
2
2019-09-09T23:45:08.000Z
2021-11-02T04:35:49.000Z
mlflow/utils/mlflow_tags.py
kylemeyer1/mlflow
56d080707853fedcb0ddc5febf4d30ff3e47000e
[ "Apache-2.0" ]
null
null
null
mlflow/utils/mlflow_tags.py
kylemeyer1/mlflow
56d080707853fedcb0ddc5febf4d30ff3e47000e
[ "Apache-2.0" ]
null
null
null
""" File containing all of the run tags in the mlflow. namespace. """ MLFLOW_DATABRICKS_NOTEBOOK_ID = "mlflow.databricks.notebookID" MLFLOW_DATABRICKS_NOTEBOOK_PATH = "mlflow.databricks.notebookPath" MLFLOW_DATABRICKS_WEBAPP_URL = "mlflow.databricks.webappURL" MLFLOW_DATABRICKS_RUN_URL = "mlflow.databricks.runURL" MLFL...
42.421053
70
0.832506
106
806
5.943396
0.358491
0.304762
0.107937
0.07619
0.093651
0.093651
0.093651
0
0
0
0
0
0.07196
806
18
71
44.777778
0.842246
0.075682
0
0
0
0
0.423338
0.290366
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
84a012f24f108575663854888f3fc180d2554f18
1,783
py
Python
tests/parse_string_jsc_test.py
xmzxmz/Python_jsonsimpleconfig
7e7d15bb91c22156a8a54323b57bb0d5424dd06a
[ "MIT" ]
null
null
null
tests/parse_string_jsc_test.py
xmzxmz/Python_jsonsimpleconfig
7e7d15bb91c22156a8a54323b57bb0d5424dd06a
[ "MIT" ]
null
null
null
tests/parse_string_jsc_test.py
xmzxmz/Python_jsonsimpleconfig
7e7d15bb91c22156a8a54323b57bb0d5424dd06a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # * ********************************************************************* * # * Copyright (C) 2020 by xmz * # * ********************************************************************* * """ JSON Simple Config Tests - Parsing """ __author__ = "Marcin Ze...
36.387755
113
0.35502
98
1,783
6.132653
0.55102
0.083195
0.036606
0.153078
0.163062
0
0
0
0
0
0
0.003658
0.233315
1,783
48
114
37.145833
0.435991
0.320808
0
0
0
0
0.167164
0.077612
0
0
0
0
0.230769
1
0.153846
false
0
0.153846
0
0.461538
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
84a079370d636370f1b591d1c907976b21011209
740
py
Python
test/Fitting/Helper/covariance.py
Marcel-Rodekamp/qcdanalysistools
945c8201337ba0d52bc37267198d367bbe3e75e3
[ "MIT" ]
null
null
null
test/Fitting/Helper/covariance.py
Marcel-Rodekamp/qcdanalysistools
945c8201337ba0d52bc37267198d367bbe3e75e3
[ "MIT" ]
null
null
null
test/Fitting/Helper/covariance.py
Marcel-Rodekamp/qcdanalysistools
945c8201337ba0d52bc37267198d367bbe3e75e3
[ "MIT" ]
null
null
null
import numpy as np import qcdanalysistools as tools Nt = 6 data = np.random.randn(1000,Nt) # for different analysis style set Jackknife,Bootstrap or Blocking params = tools.analysis.BootstrapParams( t_data_size = data.shape[0], t_num_subdatasets = 1000, t_with_blocking = True, t_num_blocks = 50) #par...
22.424242
66
0.685135
107
740
4.514019
0.439252
0.041408
0.118012
0.080745
0.335404
0.335404
0.335404
0.293996
0.198758
0.198758
0
0.037099
0.198649
740
32
67
23.125
0.777403
0.497297
0
0
0
0
0.061281
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
84a0c42a501327d6e6e83f835c0bdd92be6060d5
13,096
py
Python
holominecraft.py
jankais3r/HoloMinecraft
2a78ead99a0a4287f0c6c8e616996a2c28affe95
[ "MIT" ]
4
2020-12-31T01:54:19.000Z
2021-09-27T15:10:45.000Z
holominecraft.py
jankais3r/HoloMinecraft
2a78ead99a0a4287f0c6c8e616996a2c28affe95
[ "MIT" ]
null
null
null
holominecraft.py
jankais3r/HoloMinecraft
2a78ead99a0a4287f0c6c8e616996a2c28affe95
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import sys import math import time import ctypes import socket import urllib.request from threading import Event, Thread from socketserver import ThreadingMixIn from http.server import BaseHTTPRequestHandler, HTTPServer try: import mss except: print('Inst...
35.978022
391
0.60171
1,547
13,096
5.064641
0.267615
0.005871
0.019655
0.009955
0.355201
0.314359
0.284876
0.281302
0.256286
0.256286
0
0.041278
0.230452
13,096
363
392
36.077135
0.736158
0.01909
0
0.255319
0
0.033435
0.651295
0.210201
0
0
0
0
0
1
0.009119
false
0.012158
0.048632
0
0.094225
0.021277
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
84a2c67d501b3191d0fcf4e3e728aec5720bd5db
351
py
Python
reverse.py
abishak-cit/Python_Abi
77008ac06d38a3838eb1b0e8408586584ad457a6
[ "Apache-2.0" ]
null
null
null
reverse.py
abishak-cit/Python_Abi
77008ac06d38a3838eb1b0e8408586584ad457a6
[ "Apache-2.0" ]
null
null
null
reverse.py
abishak-cit/Python_Abi
77008ac06d38a3838eb1b0e8408586584ad457a6
[ "Apache-2.0" ]
null
null
null
#input of num num = int(input()) #initial value of reverse reverse_num = 0 #conditon for entry using while loop while(num>0): #remainder of the given no remainder = num % 10 # formula of the reverse reverse_num = (reverse_num * 10) + remainder #floor division of the num num = num//10 #display th...
23.4
47
0.689459
54
351
4.407407
0.444444
0.168067
0.142857
0
0
0
0
0
0
0
0
0.02952
0.22792
351
14
48
25.071429
0.848708
0.464387
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
84a3e9346e45cdbf522211ee45267fc97ad43b01
2,079
py
Python
service/src/repositories/job.py
xuqiongkai/ALTER
a9ec98c0ed576a68f14711eeff6f1c7d2d34c6f7
[ "MIT" ]
8
2019-09-18T01:14:07.000Z
2022-02-05T03:43:24.000Z
service/src/repositories/job.py
xuqiongkai/ALTER
a9ec98c0ed576a68f14711eeff6f1c7d2d34c6f7
[ "MIT" ]
4
2019-11-15T03:09:52.000Z
2022-03-24T15:01:55.000Z
service/src/repositories/job.py
xuqiongkai/ALTER
a9ec98c0ed576a68f14711eeff6f1c7d2d34c6f7
[ "MIT" ]
4
2019-09-17T22:17:30.000Z
2022-02-05T03:43:28.000Z
from models import Job from models import History # class JobRepository: # @staticmethod # def get(user_id, task_id, doc_num): # """ Query a user by name """ # return Job.query.filter_by(user_id=user_id, task_id=task_id, doc_num=doc_num).one() # @staticmethod # def create(user_id, task...
30.130435
93
0.604137
278
2,079
4.327338
0.172662
0.069825
0.086451
0.089776
0.491272
0.39734
0.266002
0.154613
0.154613
0.154613
0
0
0.278499
2,079
68
94
30.573529
0.802
0.483405
0
0.2
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.066667
0.133333
0.466667
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
1
0
0
0
1
84a49193faa3400bd4fa365a90e6b414e14d0e54
544
py
Python
PyCharm/primer11.py
PervykhDarya/LR3
55a4c379c29e167eb3257b4cff4cf9b717906236
[ "MIT" ]
null
null
null
PyCharm/primer11.py
PervykhDarya/LR3
55a4c379c29e167eb3257b4cff4cf9b717906236
[ "MIT" ]
null
null
null
PyCharm/primer11.py
PervykhDarya/LR3
55a4c379c29e167eb3257b4cff4cf9b717906236
[ "MIT" ]
null
null
null
# !/usr/bin/env python3 # -*- cosing: utf-8 -*- if __name__ == "__main__": with open("test.txt", "w", encoding="utf-8") as fileptr: print( "UTF-8 is a variable-width character encoding used for electronic communication.", file=fileptr ) print( "UTF-8 is ...
30.222222
94
0.544118
67
544
4.298507
0.701493
0.055556
0.104167
0.111111
0.125
0
0
0
0
0
0
0.036212
0.340074
544
18
95
30.222222
0.766017
0.079044
0
0.428571
0
0
0.462926
0
0
0
0
0
0
1
0
true
0
0
0
0
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
1
0
0
0
0
0
0
1
84a547509ec65dec6e191c361cddf25cb75a0e8e
1,153
py
Python
backend/urls.py
worm2fed/itsphere_hakaton
5a04741208497935396198bc5e6b93e133d90126
[ "Unlicense" ]
null
null
null
backend/urls.py
worm2fed/itsphere_hakaton
5a04741208497935396198bc5e6b93e133d90126
[ "Unlicense" ]
null
null
null
backend/urls.py
worm2fed/itsphere_hakaton
5a04741208497935396198bc5e6b93e133d90126
[ "Unlicense" ]
null
null
null
import django from django.conf import settings from django.contrib import admin from django.conf.urls import url, include from rest_framework.routers import DefaultRouter from backend.views import IndexView from rest_framework_jwt.views import obtain_jwt_token, verify_jwt_token from apps.auth_api import views router...
28.121951
72
0.724198
151
1,153
5.384106
0.384106
0.03936
0.02583
0.051661
0
0
0
0
0
0
0
0
0.134432
1,153
40
73
28.825
0.814629
0.051171
0
0
0
0
0.105408
0
0
0
0
0
0
1
0
false
0
0.310345
0
0.310345
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
84a5a559826a0b1cfc3399aa82d37b0bf832ff51
4,536
py
Python
ppgan/datasets/photopen_dataset.py
pcwuyu/PaddleGAN
b4ff90f0c92c4d8dcaa8e25267151b82fc7aa268
[ "Apache-2.0" ]
3
2022-02-20T11:40:50.000Z
2022-02-20T11:46:29.000Z
ppgan/datasets/photopen_dataset.py
pcwuyu/PaddleGAN
b4ff90f0c92c4d8dcaa8e25267151b82fc7aa268
[ "Apache-2.0" ]
38
2021-10-14T12:55:45.000Z
2021-12-24T06:09:10.000Z
ppgan/datasets/photopen_dataset.py
pcwuyu/PaddleGAN
b4ff90f0c92c4d8dcaa8e25267151b82fc7aa268
[ "Apache-2.0" ]
1
2021-09-22T09:29:19.000Z
2021-09-22T09:29:19.000Z
# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserve. # # 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 applic...
38.440678
115
0.659392
663
4,536
4.280543
0.239819
0.059197
0.054968
0.059197
0.585624
0.572234
0.572234
0.572234
0.547569
0.487667
0
0.012557
0.227513
4,536
117
116
38.769231
0.797374
0.133818
0
0.55814
0
0
0.030659
0
0
0
0
0
0
1
0.104651
false
0
0.116279
0.046512
0.325581
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
84a6b1e5ab5cd7f82f9bd61960155e59f8a3cb0c
464
py
Python
scrappers/plugins/aljazeera/__init__.py
nathanIL/openews
17f07de528342944f26855192db8019a0dbcc3a0
[ "Apache-2.0" ]
2
2016-01-10T08:45:29.000Z
2019-10-25T06:53:39.000Z
scrappers/plugins/aljazeera/__init__.py
nathanIL/openews
17f07de528342944f26855192db8019a0dbcc3a0
[ "Apache-2.0" ]
3
2016-01-07T15:43:40.000Z
2016-01-09T14:44:08.000Z
scrappers/plugins/aljazeera/__init__.py
nathanIL/openews
17f07de528342944f26855192db8019a0dbcc3a0
[ "Apache-2.0" ]
null
null
null
import scrappers import scrappers.mixins class ALJazeera(scrappers.mixins.RSSScrapper, scrappers.Scrapper): """AL Jazeera RSS feed scrapper. """ def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) def should_translate(self): return False def encoding(self): ...
23.2
92
0.644397
55
464
5.254545
0.618182
0.103806
0
0
0
0
0
0
0
0
0
0.002725
0.209052
464
19
93
24.421053
0.784741
0.0625
0
0
0
0
0.150943
0
0
0
0
0
0
1
0.363636
false
0
0.181818
0.272727
0.909091
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
84a8ab03d12084e27de0595a388320ee876c313d
49,028
py
Python
dnanexus/chip_workflow.py
strattan/test-merge2
2bc5a7c94fb06cff163ab3674dbb319e45976d17
[ "MIT" ]
null
null
null
dnanexus/chip_workflow.py
strattan/test-merge2
2bc5a7c94fb06cff163ab3674dbb319e45976d17
[ "MIT" ]
null
null
null
dnanexus/chip_workflow.py
strattan/test-merge2
2bc5a7c94fb06cff163ab3674dbb319e45976d17
[ "MIT" ]
null
null
null
#!/usr/bin/env python '''Instantiate the ENCODE ChIP-seq workflow''' import sys import logging import re import dxpy import time import pprint EPILOG = '''Notes: Examples: # Build blank TF workflow from fastq to peaks %(prog)s --target tf --name "ENCODE TF ChIP-seq (no reference)" --outf "/ChIP-seq/" # ...
46.122295
182
0.571755
5,559
49,028
4.767764
0.089764
0.025091
0.029995
0.01811
0.596061
0.530486
0.449743
0.394318
0.339005
0.293654
0
0.015842
0.32149
49,028
1,062
183
46.165725
0.780887
0.057212
0
0.388286
0
0.0141
0.234162
0.034362
0
0
0
0.000942
0.006508
1
0.011931
false
0
0.007592
0.001085
0.037961
0.004338
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
84aa7a485b23bade222cd7a7bb91c2a1c86b90b1
5,893
py
Python
research/cv/centernet_det/infer/sdk/main.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/centernet_det/infer/sdk/main.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/centernet_det/infer/sdk/main.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# !/usr/bin/env python # Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the BSD 3-Clause License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://opensource.org/licenses/BSD-3-Clause # # Unless required by applica...
35.077381
108
0.642797
787
5,893
4.590851
0.316391
0.024356
0.023526
0.022142
0.052311
0
0
0
0
0
0
0.02816
0.246733
5,893
167
109
35.287425
0.785763
0.119294
0
0.113821
0
0.00813
0.129781
0.018931
0
0
0
0
0
1
0.02439
false
0
0.121951
0
0.162602
0.04878
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
84ab6622c15775e0c314c7eb24ce994a183ded45
151
py
Python
config_example.py
retdop/chess_weaknesses
c954557777a213a07a3564fef27263d81a20e0a3
[ "MIT" ]
1
2020-03-25T14:02:25.000Z
2020-03-25T14:02:25.000Z
config_example.py
retdop/chess_weaknesses
c954557777a213a07a3564fef27263d81a20e0a3
[ "MIT" ]
1
2020-04-04T14:02:39.000Z
2020-04-04T14:02:39.000Z
config_example.py
retdop/chess_weaknesses
c954557777a213a07a3564fef27263d81a20e0a3
[ "MIT" ]
1
2020-04-02T09:44:58.000Z
2020-04-02T09:44:58.000Z
ENGINE_PATH = './stockfish-11-linux/src/stockfish' GAMES_FILENAME = 'lichess_username_2019-12-31.pgn' DEFAULT_GAMES_ANALYSES_FILENAME = 'scores.pkl'
25.166667
50
0.801325
21
151
5.428571
0.857143
0
0
0
0
0
0
0
0
0
0
0.071429
0.072848
151
5
51
30.2
0.742857
0
0
0
0
0
0.496689
0.430464
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
84abbac99b299b7a8c9758a8ae39816ceda356cf
1,734
py
Python
raiden/constants.py
anmolshl/raiden
f1cecb68cb43a2c00b2f719eadbe83137611a92a
[ "MIT" ]
null
null
null
raiden/constants.py
anmolshl/raiden
f1cecb68cb43a2c00b2f719eadbe83137611a92a
[ "MIT" ]
null
null
null
raiden/constants.py
anmolshl/raiden
f1cecb68cb43a2c00b2f719eadbe83137611a92a
[ "MIT" ]
null
null
null
UINT64_MAX = 2 ** 64 - 1 UINT64_MIN = 0 INT64_MAX = 2 ** 63 - 1 INT64_MIN = -(2 ** 63) UINT256_MAX = 2 ** 256 - 1 # Deployed to Ropsten revival on 2017-09-03 from commit f4f8dcbe791b7be8bc15475f79ad9cbbfe15435b ROPSTEN_REGISTRY_ADDRESS = '0x66eea3159A01d134DD64Bfe36fde4bE9ED9c1695' ROPSTEN_DISCOVERY_ADDRESS = '0x1E3...
26.272727
96
0.764706
238
1,734
5.369748
0.613445
0.00939
0.026604
0
0
0
0
0
0
0
0
0.165414
0.156286
1,734
65
97
26.676923
0.708134
0.363899
0
0
0
0
0.179487
0.115385
0.025641
0
0.115385
0.015385
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
1
0
0
0
0
0
0
0
0
0
0
1
84ac7100c4712d1ce87ee51e11280bbc7f7e34ca
12,760
py
Python
oneclick-env.py
hmsjy2017/rpi.sh
93fce371afbda13981b46dfdda8fb3658dc69add
[ "MIT" ]
null
null
null
oneclick-env.py
hmsjy2017/rpi.sh
93fce371afbda13981b46dfdda8fb3658dc69add
[ "MIT" ]
null
null
null
oneclick-env.py
hmsjy2017/rpi.sh
93fce371afbda13981b46dfdda8fb3658dc69add
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os import base64 import argparse import platform bit = platform.architecture()[0] def logo(): print(""" ___ ____ _ _ _ _____ / _ \ _ __ ___ / ___| (_) ___| | __ | ____|_ ____ __ | | | | '_ \ / _ \ | | | |/...
40.125786
177
0.636755
1,864
12,760
4.266094
0.18133
0.105634
0.073944
0.032067
0.451836
0.392354
0.368209
0.287852
0.239562
0.215292
0
0.031334
0.18464
12,760
317
178
40.252366
0.732987
0.128527
0
0.117155
0
0.150628
0.584695
0.100442
0
0
0
0
0
1
0.066946
false
0.004184
0.016736
0
0.087866
0.309623
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
84ad50f2f03d0cad17c4fe4359296551cb23b81c
2,550
py
Python
microphone.py
nittika/music-transcription
5468b30055ef45b54517ea3cd62d380a344977cc
[ "MIT" ]
42
2015-02-07T19:19:39.000Z
2022-03-23T20:00:13.000Z
microphone.py
nittika/music-transcription
5468b30055ef45b54517ea3cd62d380a344977cc
[ "MIT" ]
1
2021-08-05T12:56:27.000Z
2021-08-05T12:56:27.000Z
microphone.py
nittika/music-transcription
5468b30055ef45b54517ea3cd62d380a344977cc
[ "MIT" ]
19
2015-06-10T19:38:32.000Z
2021-03-12T00:28:19.000Z
# CITE http://people.csail.mit.edu/hubert/pyaudio/ import pyaudio, time class Microphone(object): """Sets up an instance of a microphone recording stream using PyAudio.""" def __init__(self, format=None, channels=None, rate=None): self.format = format or pyaudio.paInt16 # records in WAV format; 16-bit integers s...
30.357143
82
0.690588
339
2,550
5.147493
0.41003
0.052149
0.017192
0.024069
0.143266
0.143266
0.114613
0.114613
0.114613
0.114613
0
0.011247
0.198039
2,550
84
83
30.357143
0.842054
0.095686
0
0.178571
0
0
0.093442
0
0
0
0
0
0
0
null
null
0
0.017857
null
null
0.071429
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
84b0bec30f453aa165d3b13115fa78f5cf8b59c7
2,842
py
Python
models/ssl_online.py
SaeidAbdolian/seasonal-contrast
5395c027922569f5c5b1785ad1ccddd839749c36
[ "Apache-2.0" ]
74
2021-04-25T13:56:50.000Z
2022-03-25T08:01:14.000Z
models/ssl_online.py
SaeidAbdolian/seasonal-contrast
5395c027922569f5c5b1785ad1ccddd839749c36
[ "Apache-2.0" ]
11
2021-05-28T00:24:51.000Z
2022-03-26T17:41:47.000Z
models/ssl_online.py
SaeidAbdolian/seasonal-contrast
5395c027922569f5c5b1785ad1ccddd839749c36
[ "Apache-2.0" ]
8
2021-07-04T18:04:53.000Z
2022-02-05T16:30:16.000Z
import torch from torch import nn from pytorch_lightning import Callback from pl_bolts.models.self_supervised.evaluator import SSLEvaluator from sklearn.metrics import average_precision_score from datasets.bigearthnet_datamodule import BigearthnetDataModule class SSLOnlineEvaluator(Callback): def __init__(self,...
35.525
115
0.64145
320
2,842
5.45
0.371875
0.03211
0.029817
0.03211
0.268349
0.24656
0.183486
0.149083
0.149083
0.149083
0
0.011116
0.271992
2,842
79
116
35.974684
0.831803
0
0
0.163934
0
0
0.006685
0
0
0
0
0
0
1
0.04918
false
0
0.098361
0
0.180328
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
84b1824993fb34ce81a489b1f8e43254234f59ba
342
py
Python
kitchen/check_in/migrations/0002_auto_20171214_1506.py
ZhukovGreen/kitchen-check-in
ce5327353cd9db32389da1678a37ac3d647b7c32
[ "MIT" ]
null
null
null
kitchen/check_in/migrations/0002_auto_20171214_1506.py
ZhukovGreen/kitchen-check-in
ce5327353cd9db32389da1678a37ac3d647b7c32
[ "MIT" ]
null
null
null
kitchen/check_in/migrations/0002_auto_20171214_1506.py
ZhukovGreen/kitchen-check-in
ce5327353cd9db32389da1678a37ac3d647b7c32
[ "MIT" ]
null
null
null
# Generated by Django 2.0 on 2017-12-14 15:06 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('check_in', '0001_initial'), ] operations = [ migrations.AlterUniqueTogether( name='lunch', unique_together={('employee', 'date...
19
51
0.587719
34
342
5.823529
0.882353
0
0
0
0
0
0
0
0
0
0
0.07377
0.28655
342
17
52
20.117647
0.737705
0.125731
0
0
1
0
0.124579
0
0
0
0
0
0
1
0
false
0
0.090909
0
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
84b19438f6b673af236947b014e7e41a4f339821
4,063
py
Python
message.py
Max00355/ByteMail-1
576f765da9fb88f23b4d5c46868e0ce16db83c7c
[ "MIT" ]
4
2016-02-18T15:11:58.000Z
2020-01-16T11:07:50.000Z
message.py
Max00355/ByteMail-1
576f765da9fb88f23b4d5c46868e0ce16db83c7c
[ "MIT" ]
1
2021-03-06T00:07:14.000Z
2021-03-06T00:15:26.000Z
message.py
Max00355/ByteMail-1
576f765da9fb88f23b4d5c46868e0ce16db83c7c
[ "MIT" ]
1
2017-11-08T04:33:38.000Z
2017-11-08T04:33:38.000Z
import db import ssl import json import uuid from rsa import * import base64 import antispam import aes import time def message(obj, ip, data): addr = db.data.find("data", "all")[0]['addr'] msg = data['message'] from_ = data['from'] title = data['title'] to = data['to'] id = data['id'] as_n...
39.067308
233
0.545656
518
4,063
4.200772
0.23166
0.022518
0.012868
0.025735
0.272978
0.22886
0.212316
0.161765
0.143382
0.090074
0
0.015956
0.290426
4,063
103
234
39.446602
0.738814
0.069161
0
0.154639
0
0
0.163087
0
0
0
0
0
0
0
null
null
0
0.092784
null
null
0.030928
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
84b391a0cb7210f33bf6584b75034c4d8d4bdff6
15,852
py
Python
Python/impedance_heater.py
ultpnml/ult_instruments
3c9dd6b26e993bba3e20c7f91af6510152850cfd
[ "BSD-3-Clause" ]
null
null
null
Python/impedance_heater.py
ultpnml/ult_instruments
3c9dd6b26e993bba3e20c7f91af6510152850cfd
[ "BSD-3-Clause" ]
null
null
null
Python/impedance_heater.py
ultpnml/ult_instruments
3c9dd6b26e993bba3e20c7f91af6510152850cfd
[ "BSD-3-Clause" ]
null
null
null
#This program monitors the 1K pot, sorb, and needle valve #temperatures. If the temperatures are too high, the program #will shut down the Keithley that controls the fixed impedance #heater. #Python 2 only #TO DO: Python 3 compatibility import thread import time import datetime import traceback import socket import ...
46.081395
136
0.563588
1,661
15,852
5.086093
0.15894
0.065696
0.032197
0.019531
0.490767
0.384351
0.297112
0.278646
0.260653
0.25142
0
0.014002
0.355728
15,852
343
137
46.215743
0.813179
0.031542
0
0.401929
0
0
0.114923
0.010044
0
0
0
0
0
0
null
null
0.006431
0.025723
null
null
0.128617
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
84b481634f7f37995b27de2c74c109a567cd3989
10,111
py
Python
deprecated/word_index_transform/word_index_transform.py
thhapke/di_textanalysis
1a2866e9d19df3f49931dc774d0223e5600895f4
[ "MIT" ]
2
2020-04-09T06:41:02.000Z
2020-05-07T10:56:03.000Z
deprecated/word_index_transform/word_index_transform.py
thhapke/di_textanalysis
1a2866e9d19df3f49931dc774d0223e5600895f4
[ "MIT" ]
null
null
null
deprecated/word_index_transform/word_index_transform.py
thhapke/di_textanalysis
1a2866e9d19df3f49931dc774d0223e5600895f4
[ "MIT" ]
2
2020-05-19T18:30:56.000Z
2021-11-18T09:03:50.000Z
import json import os import csv import re import pickle import collections import subprocess import spacy import sdi_utils.gensolution as gs import sdi_utils.set_logging as slog import sdi_utils.textfield_parser as tfp import sdi_utils.tprogress as tp supported_languages = ['DE', 'EN', 'ES', 'FR'] lexicon_language...
34.986159
152
0.584908
1,206
10,111
4.768657
0.208126
0.014606
0.011302
0.013911
0.291949
0.214745
0.199444
0.188141
0.159972
0.147453
0
0.007583
0.282662
10,111
288
153
35.107639
0.78533
0.094353
0
0.197115
0
0.004808
0.205589
0.042411
0
0
0
0
0
1
0.038462
false
0.004808
0.057692
0
0.149038
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
84b7c410edf7c271a3e1fd7e4b7628ff057b3c2c
21,371
py
Python
overrule/BCS/overlap_boolean_rule.py
Viktour19/overlap-code
f5c6e63146a00f65710c38b9181bb9d12de6454f
[ "MIT" ]
2
2020-07-09T03:15:58.000Z
2022-03-09T11:57:17.000Z
overrule/BCS/overlap_boolean_rule.py
Viktour19/overlap-code
f5c6e63146a00f65710c38b9181bb9d12de6454f
[ "MIT" ]
null
null
null
overrule/BCS/overlap_boolean_rule.py
Viktour19/overlap-code
f5c6e63146a00f65710c38b9181bb9d12de6454f
[ "MIT" ]
1
2021-05-18T11:55:04.000Z
2021-05-18T11:55:04.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # ----------------------------------------------# # OverRule: Overlap Estimation using Rule Sets # # @Authors: Dennis Wei, Michael Oberst, # # Fredrik D. Johansson # # ----------------------------------------------# import logging import ...
39.212844
156
0.48271
2,658
21,371
3.820918
0.162528
0.023927
0.015754
0.020087
0.451457
0.401438
0.372095
0.34807
0.339602
0.330445
0
0.016931
0.39198
21,371
544
157
39.284926
0.764661
0.187029
0
0.52
0
0
0.027349
0
0
0
0
0.003676
0.010667
1
0.034667
false
0
0.021333
0
0.088
0.002667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
84b9e9871acbe9ff363a0e59ef9598addf9b4e9d
16,463
py
Python
src/quo/i_o/termui.py
secretuminc/quo
c4f77d52f015c612d32ed0fc2fc79545af598f10
[ "MIT" ]
1
2021-02-15T03:56:00.000Z
2021-02-15T03:56:00.000Z
src/quo/i_o/termui.py
chouette254/quo
fec78ae3b4a6d70501e2119868336c28c590fa50
[ "MIT" ]
3
2021-02-22T11:49:23.000Z
2021-02-28T06:47:41.000Z
src/quo/i_o/termui.py
secretuminc/quo
c4f77d52f015c612d32ed0fc2fc79545af598f10
[ "MIT" ]
null
null
null
import inspect import io import itertools import os import struct import sys import math from typing import Any, Optional, IO from quo.accordance import ( DEFAULT_COLUMNS, get_winterm_size, bit_bytes, isatty, strip_ansi_colors, ) from quo.color import ansi_color_codes, _a...
32.860279
227
0.615137
2,246
16,463
4.461264
0.234194
0.007984
0.013473
0.011677
0.163772
0.151397
0.120559
0.07006
0.061677
0.056487
0
0.010602
0.283849
16,463
500
228
32.926
0.839271
0.47707
0
0.2
0
0
0.088082
0.013894
0
0
0
0
0
1
0.062745
false
0.011765
0.086275
0
0.239216
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
84b9eb0c102288c50bbed9bdfca4a239cee038fc
3,026
py
Python
Magnetic Field/biot_square.py
ValeriaTelles/Physics-Programs
9fdd1b60ad5dd9c6750855bf63c2aa89383a0b1a
[ "MIT" ]
null
null
null
Magnetic Field/biot_square.py
ValeriaTelles/Physics-Programs
9fdd1b60ad5dd9c6750855bf63c2aa89383a0b1a
[ "MIT" ]
null
null
null
Magnetic Field/biot_square.py
ValeriaTelles/Physics-Programs
9fdd1b60ad5dd9c6750855bf63c2aa89383a0b1a
[ "MIT" ]
null
null
null
# Name: Valeria Telles # Date: 2 March 2020 # Program: biot_square.py import numpy as np import matplotlib.pyplot as plt import time as time from matplotlib.patches import Circle def biot(Rvec, wire, I): mu_4pi = 10 dB = np.zeros((len(wire), 3)) R = Rvec - wire Rsqr = np.sum( R**2, axis = 1 ) ...
25.863248
89
0.616986
552
3,026
3.358696
0.326087
0.011866
0.008091
0.010787
0.161273
0.130529
0.053937
0.053937
0.053937
0.031284
0
0.050146
0.209187
3,026
117
89
25.863248
0.724613
0.307667
0
0.066667
0
0
0.055985
0
0
0
0
0
0
1
0.05
false
0
0.066667
0.016667
0.166667
0.066667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
84bb50006f22e7f74b51168de711fdca99d21854
1,612
py
Python
RCN_for_CAPTCHA_v1.0/src/get_test_data.py
ZhongqiuWang/RCN_for_CAPTCHA
ea231c63ea72437e1b47f8b0684f1dcbf1973fa3
[ "MIT" ]
2
2021-02-20T15:43:43.000Z
2021-02-20T15:43:51.000Z
RCN_for_CAPTCHA_v1.0/src/get_test_data.py
ZhongqiuWang/RCN_for_CAPTCHA
ea231c63ea72437e1b47f8b0684f1dcbf1973fa3
[ "MIT" ]
null
null
null
RCN_for_CAPTCHA_v1.0/src/get_test_data.py
ZhongqiuWang/RCN_for_CAPTCHA
ea231c63ea72437e1b47f8b0684f1dcbf1973fa3
[ "MIT" ]
null
null
null
import os import shutil import numpy as np from cv2 import imread def get_captcha_data_iters(data_dir, test_size, target_data_dir, seed=5): """ 获取测试图片 :param data_dir: 测试图片文件所在路径 :param test_size: 测试图片张数 :param target_data_dir: 将选出的测试图片放到该路径下 :param seed: 随机种子 :return: test_set ...
29.309091
85
0.616625
212
1,612
4.429245
0.386792
0.089457
0.046858
0.031949
0
0
0
0
0
0
0
0.005195
0.283499
1,612
54
86
29.851852
0.807792
0.175558
0
0
0
0
0.030087
0
0
0
0
0
0
1
0.096774
false
0
0.129032
0
0.290323
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
84bbf74c66ef9175123833be8f994d71b7109552
262
py
Python
10 Days of Statistics/Day 6/Day 6 - The Central Limit Theorem II.py
BHAVJOT14/HackerRank-Solutions
8fe0280f5ce150a28598be71dc7ab6f06318e4d5
[ "MIT" ]
null
null
null
10 Days of Statistics/Day 6/Day 6 - The Central Limit Theorem II.py
BHAVJOT14/HackerRank-Solutions
8fe0280f5ce150a28598be71dc7ab6f06318e4d5
[ "MIT" ]
null
null
null
10 Days of Statistics/Day 6/Day 6 - The Central Limit Theorem II.py
BHAVJOT14/HackerRank-Solutions
8fe0280f5ce150a28598be71dc7ab6f06318e4d5
[ "MIT" ]
null
null
null
import math TICKETS = 250 STUDENTS = 100 MEAN = 2.4 SD = 2 MU = STUDENTS * MEAN S = math.sqrt(100)*SD def normal_distribution(x, mu, sd): return 1/2*(1+math.erf((x-mu)/(sd*math.sqrt(2)))) print(round(normal_distribution(x=TICKETS, mu=MU, sd=S), 4))
16.375
60
0.648855
48
262
3.5
0.458333
0.071429
0.22619
0
0
0
0
0
0
0
0
0.078341
0.171756
262
16
60
16.375
0.695853
0
0
0
0
0
0
0
0
0
0
0
0
1
0.1
false
0
0.1
0.1
0.3
0.1
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
84bc5d7d573cdb6bddc0ddf48f7da1392c0896e8
448
py
Python
src/MapMyNotesApplication/migrations/versions/a533873cebfc_.py
Ryan-Gouldsmith/MajorProject-MapMyNotes
2c350f68f992e454e88d3653e46e7607e224e3ae
[ "MIT" ]
null
null
null
src/MapMyNotesApplication/migrations/versions/a533873cebfc_.py
Ryan-Gouldsmith/MajorProject-MapMyNotes
2c350f68f992e454e88d3653e46e7607e224e3ae
[ "MIT" ]
null
null
null
src/MapMyNotesApplication/migrations/versions/a533873cebfc_.py
Ryan-Gouldsmith/MajorProject-MapMyNotes
2c350f68f992e454e88d3653e46e7607e224e3ae
[ "MIT" ]
null
null
null
"""empty message Revision ID: a533873cebfc Revises: 6a19b5a07897 Create Date: 2016-03-03 17:58:46.629869 """ # revision identifiers, used by Alembic. revision = 'a533873cebfc' down_revision = '6a19b5a07897' from alembic import op import sqlalchemy as sa def upgrade(): op.add_column('notes', sa.Column('module_...
19.478261
107
0.743304
62
448
5.225806
0.612903
0.067901
0.074074
0
0
0
0
0
0
0
0
0.128205
0.129464
448
22
108
20.363636
0.702564
0.316964
0
0
0
0
0.278523
0.07047
0
0
0
0
0
1
0.25
false
0
0.25
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
84bd5f607b82fa8a39bd0ca835a5cf720f40f089
27,550
py
Python
overrides.py
inuitwallet/plunge_android
0a23a78218a9852f0b9363b276c942ca2e517823
[ "MIT" ]
null
null
null
overrides.py
inuitwallet/plunge_android
0a23a78218a9852f0b9363b276c942ca2e517823
[ "MIT" ]
null
null
null
overrides.py
inuitwallet/plunge_android
0a23a78218a9852f0b9363b276c942ca2e517823
[ "MIT" ]
null
null
null
import json from kivy.app import App from kivy.config import ConfigParser from kivy.core.window import Window from kivy.uix.boxlayout import BoxLayout from kivy.uix.button import Button from kivy.uix.label import Label from kivy.uix.popup import Popup from kivy.uix.slider import Slider from kivy.metrics import dp from ...
40.754438
140
0.616189
3,590
27,550
4.521727
0.100836
0.028461
0.026612
0.019898
0.509826
0.435779
0.358899
0.325633
0.300499
0.284852
0
0.014646
0.271361
27,550
675
141
40.814815
0.794012
0.094483
0
0.309381
0
0
0.054775
0
0
0
0
0
0
1
0.05988
false
0
0.037924
0
0.161677
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
84bfb20ccc017f5c1536067957e13d0482a7d66c
3,370
py
Python
scripts/read_msd2.py
pzarabadip/thermof
44c33e37aeadce31241a878135b1531757a2b1c4
[ "MIT" ]
null
null
null
scripts/read_msd2.py
pzarabadip/thermof
44c33e37aeadce31241a878135b1531757a2b1c4
[ "MIT" ]
11
2017-08-15T22:11:32.000Z
2017-08-22T23:32:17.000Z
scripts/read_msd2.py
pzarabadip/thermof
44c33e37aeadce31241a878135b1531757a2b1c4
[ "MIT" ]
1
2017-01-31T19:44:02.000Z
2017-01-31T19:44:02.000Z
""" Reads mean squared displacement for a list of trials and saves results to a yaml file """ import os import yaml from thermof.trajectory import Trajectory from thermof.read import read_run_info # -------------------------------------------------------------------------------------------------- main = '' box1_atoms =...
43.205128
123
0.563501
465
3,370
3.931183
0.251613
0.032823
0.027352
0.021882
0.137856
0.071116
0.053611
0.028446
0.028446
0.028446
0
0.052731
0.217804
3,370
77
124
43.766234
0.640744
0.084273
0
0
0
0.016393
0.067598
0.010725
0
0
0
0
0
1
0.016393
false
0
0.065574
0
0.098361
0.032787
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
84c0de3f23adbe842d0efaadf9c2467bc66d8a1e
4,230
py
Python
LineDetection/line_following_opencv.py
angrajales/SDC_Eafit
ecbde0235100655baa1cbd189ab02ac2c9f35e67
[ "Apache-2.0" ]
null
null
null
LineDetection/line_following_opencv.py
angrajales/SDC_Eafit
ecbde0235100655baa1cbd189ab02ac2c9f35e67
[ "Apache-2.0" ]
null
null
null
LineDetection/line_following_opencv.py
angrajales/SDC_Eafit
ecbde0235100655baa1cbd189ab02ac2c9f35e67
[ "Apache-2.0" ]
null
null
null
import cv2 import numpy as np class LineFollowing(object): def __init__(self): self.polyLeft1 = 450 self.polyRight1 = 320 self.polyLeft2 = 500 self.polyRight2 = 320 self.ignore_mask_color = 255 # White color def next_action(self, frame, slope=-1): p_next_action =...
45.483871
169
0.500709
487
4,230
4.112936
0.293635
0.074888
0.038442
0.019471
0.164254
0.081378
0.069895
0.03994
0.03994
0
0
0.053507
0.346099
4,230
92
170
45.978261
0.670644
0.134279
0
0.114286
0
0
0.026988
0
0
0
0
0
0
1
0.057143
false
0
0.028571
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
84c3cea9dc12aa3420d6ff9210c1914628e6a05f
760
py
Python
application/__init__.py
pauperbattlebox/mvb-api
d4cacad1c4763d82757ef7a7ed6d56f325ddf6f0
[ "MIT" ]
null
null
null
application/__init__.py
pauperbattlebox/mvb-api
d4cacad1c4763d82757ef7a7ed6d56f325ddf6f0
[ "MIT" ]
5
2022-02-02T03:49:02.000Z
2022-03-29T01:15:17.000Z
application/__init__.py
pauperbattlebox/mvb-api
d4cacad1c4763d82757ef7a7ed6d56f325ddf6f0
[ "MIT" ]
null
null
null
from flask import Flask from werkzeug.middleware.proxy_fix import ProxyFix from .extensions import cache, db, limiter current_version = "/api/v1/" def create_app(): app = Flask(__name__) app.config.from_pyfile("config.py") db.init_app(app) cache.init_app(app) limiter.init_app(app) from ap...
21.714286
54
0.681579
101
760
4.940594
0.39604
0.06012
0.160321
0.096192
0
0
0
0
0
0
0
0.003436
0.234211
760
34
55
22.352941
0.853952
0
0
0
0
0
0.022368
0
0
0
0
0
0
1
0.045455
false
0
0.363636
0
0.454545
0.181818
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
84c4318fb98bf099642661dc62436fb1ca14b9d3
748
py
Python
Company-Based/amazon/load_balancer.py
saisankargochhayat/algo_quest
a24f9a22c019ab31d56bd5a7ca5ba790d54ce5dc
[ "Apache-2.0" ]
3
2017-02-15T20:55:04.000Z
2018-09-26T18:48:24.000Z
Company-Based/amazon/load_balancer.py
saisankargochhayat/algo_quest
a24f9a22c019ab31d56bd5a7ca5ba790d54ce5dc
[ "Apache-2.0" ]
4
2017-10-07T18:59:20.000Z
2019-10-08T05:43:25.000Z
Company-Based/amazon/load_balancer.py
saisankargochhayat/algo_quest
a24f9a22c019ab31d56bd5a7ca5ba790d54ce5dc
[ "Apache-2.0" ]
1
2017-10-08T06:52:21.000Z
2017-10-08T06:52:21.000Z
def load_balance(arr): """ :type arr: List[int] :rtype: bool """ if len(arr) < 5: return False p_sum = [arr[0]] # Calc prefix sum for i in range(1, len(arr)): p_sum.append(p_sum[-1]+arr[i]) low = 1 high = len(arr)-1 while low < high: lower = p_sum[low-...
23.375
53
0.490642
115
748
3.095652
0.365217
0.089888
0.039326
0
0
0
0
0
0
0
0
0.050314
0.362299
748
31
54
24.129032
0.696017
0.147059
0
0.095238
0
0
0
0
0
0
0
0
0
1
0.047619
false
0
0
0
0.190476
0.095238
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
84c71a7531ae9fa2ac7181c6e7cdd2b229658408
1,058
py
Python
Data Structure/Recursion/Problems/FibonacciNumber.py
xiaomaomi7/DSA
e5cb88c9f1d39fd305c0f92db4ecae6e846cff01
[ "MIT" ]
null
null
null
Data Structure/Recursion/Problems/FibonacciNumber.py
xiaomaomi7/DSA
e5cb88c9f1d39fd305c0f92db4ecae6e846cff01
[ "MIT" ]
null
null
null
Data Structure/Recursion/Problems/FibonacciNumber.py
xiaomaomi7/DSA
e5cb88c9f1d39fd305c0f92db4ecae6e846cff01
[ "MIT" ]
null
null
null
''' Author: Hongxiang Qi Date: 22/06/2021 Description: Write a recursive function called fib which accepts a number and returns the nth number in the Fibonacci sequence. Recall that the Fibonacci sequence is the sequence of whole numbers 0,1,1,2,3,5,8,... which starts with 0 and 1, and where every number thereafter is ...
27.128205
109
0.643667
168
1,058
4.053571
0.5
0.035242
0.058737
0.023495
0.208517
0.208517
0.179148
0.179148
0.179148
0
0
0.072704
0.258979
1,058
39
110
27.128205
0.795918
0.42155
0
0
0
0
0.226804
0
0
0
0
0
0.142857
1
0.142857
false
0
0
0
0.428571
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
84c95a79b4a208b7a4541951452956d90d7692cd
472
py
Python
tools/segtree/segtree_node.py
NekohimeMusou/advent-of-code
a1215336a24713e63f77018f379ff90675afdd0d
[ "MIT" ]
null
null
null
tools/segtree/segtree_node.py
NekohimeMusou/advent-of-code
a1215336a24713e63f77018f379ff90675afdd0d
[ "MIT" ]
null
null
null
tools/segtree/segtree_node.py
NekohimeMusou/advent-of-code
a1215336a24713e63f77018f379ff90675afdd0d
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod class SegmentTreeNode(ABC): @classmethod @abstractmethod def create_leaf(cls, start, end, value): pass @classmethod @abstractmethod def merge(cls, start, end, left, right): pass @property @abstractmethod def score(self): ...
18.88
49
0.663136
47
472
6.638298
0.574468
0.217949
0.179487
0
0
0
0
0
0
0
0
0
0.262712
472
24
50
19.666667
0.896552
0.059322
0
0.555556
0
0
0
0
0
0
0
0
0
1
0.222222
false
0.222222
0.055556
0
0.388889
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
3
84c9685f6724825c2da54b5eb9563b4f035887ea
46
py
Python
2021/CourseraPython/course2-data-structures/hey.py
Muramatsu2602/python-study
c81eb5d2c343817bc29b2763dcdcabed0f6a42c6
[ "MIT" ]
2
2021-01-11T16:13:40.000Z
2022-03-02T02:03:46.000Z
2021/CourseraPython/course2-data-structures/hey.py
Muramatsu2602/python-study
c81eb5d2c343817bc29b2763dcdcabed0f6a42c6
[ "MIT" ]
null
null
null
2021/CourseraPython/course2-data-structures/hey.py
Muramatsu2602/python-study
c81eb5d2c343817bc29b2763dcdcabed0f6a42c6
[ "MIT" ]
null
null
null
print("data structs baby!!") # asdadadadadadad
23
28
0.76087
5
46
7
1
0
0
0
0
0
0
0
0
0
0
0
0.086957
46
2
29
23
0.833333
0.326087
0
0
0
0
0.633333
0
0
0
0
0
0
1
0
true
0
0
0
0
1
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
1
0
0
0
0
1
0
6
84cb010d5b5c6e2312275904e2f2082e3246dbef
1,216
py
Python
test/asyncpool.py
timgates42/stream.py
6a4945cbddaf74138eee5ba33eee3988cfceb84d
[ "MIT" ]
34
2015-02-04T15:00:52.000Z
2021-08-24T01:33:36.000Z
test/asyncpool.py
timgates42/stream.py
6a4945cbddaf74138eee5ba33eee3988cfceb84d
[ "MIT" ]
2
2016-02-16T22:02:02.000Z
2016-03-02T18:25:00.000Z
test/asyncpool.py
timgates42/stream.py
6a4945cbddaf74138eee5ba33eee3988cfceb84d
[ "MIT" ]
7
2015-10-14T19:58:53.000Z
2022-03-28T04:18:36.000Z
#!/usr/bin/env python2.6 import os import sys from pprint import pprint from random import randint sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..')) from stream import filter, map, ThreadPool, ProcessPool ## The test data dataset = [] def alternating(n): values = [] for i in range(1, n+1): v...
17.623188
65
0.683388
181
1,216
4.508287
0.348066
0.034314
0.022059
0.040441
0.230392
0.230392
0.230392
0.122549
0.122549
0.122549
0
0.025743
0.169408
1,216
68
66
17.882353
0.782178
0.050987
0
0.292683
0
0
0.008718
0
0
0
0
0
0.04878
1
0.146341
false
0
0.146341
0
0.341463
0.073171
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
84cb2cabfe9208f760a24e58bd6dd1d371426e23
502
py
Python
apps/catalog/migrations/0002_auto_20210811_0837.py
lucasjaroszewski/incremental-game
bae8823f986be0fd046bd50195d43fbc548fad90
[ "MIT" ]
null
null
null
apps/catalog/migrations/0002_auto_20210811_0837.py
lucasjaroszewski/incremental-game
bae8823f986be0fd046bd50195d43fbc548fad90
[ "MIT" ]
5
2021-06-09T17:54:51.000Z
2022-03-12T00:46:49.000Z
apps/catalog/migrations/0002_auto_20210811_0837.py
lucasjaroszewski/incremental-game
bae8823f986be0fd046bd50195d43fbc548fad90
[ "MIT" ]
1
2020-09-27T18:26:15.000Z
2020-09-27T18:26:15.000Z
# Generated by Django 3.2.6 on 2021-08-11 11:37 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('catalog', '0001_initial'), ] operations = [ migrations.RenameField( model_name='cat', old_name='liked_gifs', new...
20.916667
47
0.553785
52
502
5.134615
0.615385
0.157303
0.194757
0.224719
0.299625
0.299625
0.299625
0
0
0
0
0.056716
0.332669
502
23
48
21.826087
0.740299
0.089641
0
0.352941
1
0
0.147253
0
0
0
0
0
0
1
0
false
0
0.058824
0
0.235294
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
84cb4b2d578ea0ddb93b0e6e664df51f2ba921d1
398
py
Python
mongodb_consistent_backup/Upload/__init__.py
cprato79/mongodb_consistent_backup
d780ad545b603d3a2f807e1813f1de407e81f1ba
[ "Apache-2.0" ]
1
2020-10-20T06:01:21.000Z
2020-10-20T06:01:21.000Z
mongodb_consistent_backup/Upload/__init__.py
cprato79/mongodb_consistent_backup
d780ad545b603d3a2f807e1813f1de407e81f1ba
[ "Apache-2.0" ]
null
null
null
mongodb_consistent_backup/Upload/__init__.py
cprato79/mongodb_consistent_backup
d780ad545b603d3a2f807e1813f1de407e81f1ba
[ "Apache-2.0" ]
1
2020-10-20T06:01:25.000Z
2020-10-20T06:01:25.000Z
from Upload import Upload def config(parser): parser.add_argument("--upload.method", dest="upload.method", help="Uploader method (default: none)", default='none', choices=['s3', 'none']) parser.add_argument("--upload.remove_uploaded", dest="upload.remove_uploaded",help="Remove source files after successful up...
49.75
186
0.738693
51
398
5.666667
0.529412
0.062284
0.117647
0.15917
0
0
0
0
0
0
0
0.002809
0.105528
398
7
187
56.857143
0.808989
0
0
0
0
0
0.464824
0.115578
0
0
0
0
0
1
0.2
false
0
0.2
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
2
84cca71da31c1ea4b30e9f06c0f56ba5e046faf3
10,977
py
Python
train.py
UB-A2IL-Lab/SemaFor-Fake-News
c61802d7683496c87970d3393787dd9c6dfcf230
[ "MIT" ]
null
null
null
train.py
UB-A2IL-Lab/SemaFor-Fake-News
c61802d7683496c87970d3393787dd9c6dfcf230
[ "MIT" ]
null
null
null
train.py
UB-A2IL-Lab/SemaFor-Fake-News
c61802d7683496c87970d3393787dd9c6dfcf230
[ "MIT" ]
null
null
null
from __future__ import division import sys import argparse import torch import os import torch.nn as nn import torch.optim as optim import numpy as np import json import pickle from sklearn.metrics import average_precision_score from torch.utils.data import Dataset, DataLoader from dataloader import Loader from model ...
45.17284
166
0.672224
1,503
10,977
4.696607
0.193613
0.103272
0.19507
0.072532
0.432923
0.357699
0.302309
0.248902
0.182745
0.116164
0
0.01867
0.175367
10,977
242
167
45.359504
0.761158
0.039719
0
0.031579
0
0
0.15737
0.037442
0
0
0
0
0
1
0.010526
false
0
0.084211
0
0.1
0.036842
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
84cd56fca980259077c65ad0249f033a1888e7ce
1,404
py
Python
application/model/entity/video.py
UniversidadeDeVassouras/labproghiper-2020.1-MatheusTelles-p1
d0d81fc82d031f7add9e38add765aad0c404ee35
[ "Apache-2.0" ]
1
2020-07-15T14:23:30.000Z
2020-07-15T14:23:30.000Z
application/model/entity/video.py
UniversidadeDeVassouras/labproghiper-2020.1-MatheusTelles-p1
d0d81fc82d031f7add9e38add765aad0c404ee35
[ "Apache-2.0" ]
null
null
null
application/model/entity/video.py
UniversidadeDeVassouras/labproghiper-2020.1-MatheusTelles-p1
d0d81fc82d031f7add9e38add765aad0c404ee35
[ "Apache-2.0" ]
null
null
null
class Video: def __init__(self, id, title, description, thumb, url_video, category_id, date): self._id = id self._title = title self._description = description self._thumb = thumb self._url_video = url_video self._category_id = category_id self._likes = 0 ...
20.647059
84
0.611111
167
1,404
4.850299
0.197605
0.111111
0.155556
0.037037
0.108642
0
0
0
0
0
0
0.00206
0.308405
1,404
68
85
20.647059
0.832132
0
0
0.266667
0
0
0
0
0
0
0
0
0
1
0.4
false
0
0
0.2
0.622222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
84ceb7de86289497443ba36288d408d44c8ab72e
2,779
py
Python
sagas/ofbiz/entity_meta_indexer.py
samlet/stack
47db17fd4fdab264032f224dca31a4bb1d19b754
[ "Apache-2.0" ]
3
2020-01-11T13:55:38.000Z
2020-08-25T22:34:15.000Z
sagas/ofbiz/entity_meta_indexer.py
samlet/stack
47db17fd4fdab264032f224dca31a4bb1d19b754
[ "Apache-2.0" ]
null
null
null
sagas/ofbiz/entity_meta_indexer.py
samlet/stack
47db17fd4fdab264032f224dca31a4bb1d19b754
[ "Apache-2.0" ]
1
2021-01-01T05:21:44.000Z
2021-01-01T05:21:44.000Z
from sagas.ofbiz.entities import OfEntity as e, oc, MetaEntity, all_entities import resources_pb2 as res import protobuf_utils def build_field_index(ents): field_index={} for ent_name in ents: ent=MetaEntity(ent_name) if not oc.j.Utils.isViewEntity(ent.model): for fld in ent.model.g...
30.877778
79
0.593739
344
2,779
4.607558
0.27907
0.037855
0.028391
0.035962
0.196845
0.078233
0.078233
0.078233
0
0
0
0.000512
0.297589
2,779
89
80
31.224719
0.810963
0.062612
0
0.031746
0
0
0.09209
0.026761
0
0
0
0
0
1
0.126984
false
0
0.079365
0
0.285714
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
84cebcba7d82ad0421772f1cc2c1ed6a4c0f886b
261
py
Python
exercicios-com-funcoes/exercicio01.py
diegolinkk/exercicios-python-brasil
3bf7bdf0e98cdd06c115eedae4fa01e0c25fdba5
[ "MIT" ]
null
null
null
exercicios-com-funcoes/exercicio01.py
diegolinkk/exercicios-python-brasil
3bf7bdf0e98cdd06c115eedae4fa01e0c25fdba5
[ "MIT" ]
null
null
null
exercicios-com-funcoes/exercicio01.py
diegolinkk/exercicios-python-brasil
3bf7bdf0e98cdd06c115eedae4fa01e0c25fdba5
[ "MIT" ]
null
null
null
# Faça um programa para imprimir: # 1 # 2 2 # 3 3 3 # ..... # n n n n n n ... n def contador(n): for numero in range(1,n): string = str(numero) + " " string *= numero print(string) contador(15)
17.4
34
0.448276
36
261
3.25
0.527778
0.102564
0.128205
0.136752
0.059829
0.059829
0
0
0
0
0
0.059603
0.421456
261
15
35
17.4
0.715232
0.398467
0
0
0
0
0.006623
0
0
0
0
0
0
1
0.166667
false
0
0
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
84d22ac92da6a7038aa58f693b963ea0ca124211
234
py
Python
quantifiers/CC.py
andregustavom/quantifiers4python
433b564599cdedffa711d64392381aebdccaad41
[ "MIT" ]
null
null
null
quantifiers/CC.py
andregustavom/quantifiers4python
433b564599cdedffa711d64392381aebdccaad41
[ "MIT" ]
null
null
null
quantifiers/CC.py
andregustavom/quantifiers4python
433b564599cdedffa711d64392381aebdccaad41
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np def CC(test_scores,thr=0.5): count = len([i for i in test_scores if i >= thr]) pos_prop = round(count/len(test_scores),2) num_predict = count return pos_prop
13.764706
53
0.628205
40
234
3.525
0.65
0.212766
0
0
0
0
0
0
0
0
0
0.017857
0.282051
234
16
54
14.625
0.821429
0
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0.285714
0
0.571429
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
2
84d53ac24c7879eddf6eb1cc6dd18e51a194809c
4,592
py
Python
pythonlibs/mantis/sg/fisher/stbase/market.py
adoggie/Tibet.6
3c53060edafd80b9c4dafa10699a68d86a410c66
[ "MIT" ]
22
2019-10-28T07:28:12.000Z
2022-03-19T15:36:41.000Z
pythonlibs/mantis/sg/fisher/stbase/market.py
adoggie/Tibet.6
3c53060edafd80b9c4dafa10699a68d86a410c66
[ "MIT" ]
1
2019-11-07T04:54:14.000Z
2019-11-07T07:12:48.000Z
pythonlibs/mantis/sg/fisher/stbase/market.py
adoggie/Tibet.6
3c53060edafd80b9c4dafa10699a68d86a410c66
[ "MIT" ]
13
2019-10-28T07:29:07.000Z
2021-11-03T06:53:12.000Z
#coding:utf-8 import time,datetime import os,os.path import json import traceback from threading import Thread,Condition from Queue import Queue from collections import OrderedDict from mantis.fundamental.utils.timeutils import timestamp_current, timestamp_to_str,datetime_to_timestamp,\ current_datetim...
29.818182
107
0.574477
470
4,592
5.544681
0.282979
0.041443
0.030698
0.036838
0.300844
0.23868
0.123561
0.088258
0.05449
0.05449
0
0.005756
0.319033
4,592
153
108
30.013072
0.82763
0.059016
0
0.318584
0
0
0.01404
0
0
0
0
0
0
1
0.141593
false
0.017699
0.106195
0.00885
0.336283
0.00885
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
84d6b98590fb4046c65ce15b09a1a6c1ece9068c
14,409
py
Python
ai/experiment.py
lgoodridge/Asteroids-AI
bf6abd2b42db1b13667060c30de13a53aaa05110
[ "MIT" ]
4
2018-11-06T16:27:11.000Z
2021-11-12T12:23:54.000Z
ai/experiment.py
lgoodridge/Asteroids-AI
bf6abd2b42db1b13667060c30de13a53aaa05110
[ "MIT" ]
null
null
null
ai/experiment.py
lgoodridge/Asteroids-AI
bf6abd2b42db1b13667060c30de13a53aaa05110
[ "MIT" ]
1
2022-02-25T10:35:34.000Z
2022-02-25T10:35:34.000Z
""" Defines functions for running AI experiments. """ from __future__ import print_function from ai.ai_app import AI_App from ai.generation import Generation from ai.utils import algorithm_id_to_generation_class, \ BEST_BRAIN_FILENAME, LOG_FILENAME, META_FILENAME from collections import OrderedDict from dateti...
39.368852
83
0.630162
1,775
14,409
4.886761
0.154366
0.042541
0.021905
0.028476
0.468296
0.434402
0.3733
0.338022
0.295135
0.285681
0
0.003776
0.264904
14,409
365
84
39.476712
0.815144
0.16219
0
0.418972
0
0
0.15801
0.020204
0
0
0
0
0
1
0.023715
false
0
0.047431
0
0.102767
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
84d726cdadffb9899d6b5d6a67cdc9191f4d113d
2,655
py
Python
tests/test_SpellingResolver.py
microsoft/cai-advanced-processing-service
91fce8048fe275aa870083bed22d452d330ef535
[ "MIT" ]
9
2021-11-17T11:50:47.000Z
2022-02-15T14:48:32.000Z
tests/test_SpellingResolver.py
microsoft/cai-advanced-processing-service
91fce8048fe275aa870083bed22d452d330ef535
[ "MIT" ]
7
2021-12-03T17:05:26.000Z
2022-03-02T04:59:50.000Z
tests/test_SpellingResolver.py
microsoft/cai-advanced-processing-service
91fce8048fe275aa870083bed22d452d330ef535
[ "MIT" ]
null
null
null
import unittest, json import azure.functions as func from ddt import ddt, data, unpack from SpellingResolver.main import main @ddt class TestSpellingResolver(unittest.TestCase): @data( ({"query":"anton marta 123", "convertnumbers": True, "convertsymbols": True, "addit...
32.777778
63
0.448588
221
2,655
5.257919
0.384615
0.082616
0.110155
0.123924
0.313253
0.313253
0.313253
0.313253
0.285714
0.285714
0
0.045984
0.418456
2,655
81
64
32.777778
0.706606
0.020716
0
0.293333
0
0
0.332936
0.041716
0
0
0
0
0.013333
1
0.013333
false
0
0.053333
0
0.08
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
84db039c9f5c049f0b4ccd9906d76791791b4bff
603
py
Python
ex112/UtilidadesCeV/dados/__init__.py
LucasIdalino/Exerc-cios-do-Curso
4ca4610d1acfe4672c20114f891b6aabae816049
[ "MIT" ]
null
null
null
ex112/UtilidadesCeV/dados/__init__.py
LucasIdalino/Exerc-cios-do-Curso
4ca4610d1acfe4672c20114f891b6aabae816049
[ "MIT" ]
null
null
null
ex112/UtilidadesCeV/dados/__init__.py
LucasIdalino/Exerc-cios-do-Curso
4ca4610d1acfe4672c20114f891b6aabae816049
[ "MIT" ]
null
null
null
def leiadinheiro(msg): validade = False while not validade: entrada = str(input(msg)).replace(',', '.').strip() if entrada.isalpha() or entrada == "": print(f'Erro! {entrada} não é um preço válido') else: validade = True return float(entrada) def lei...
22.333333
59
0.500829
68
603
4.441176
0.588235
0.05298
0.072848
0
0
0
0
0
0
0
0
0.002695
0.384743
603
26
60
23.192308
0.811321
0
0
0.090909
0
0
0.124792
0
0
0
0
0
0
1
0.090909
false
0
0
0
0.181818
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
84db537f5dfccd0dd8727dd1268abb3d016e064b
2,105
py
Python
examples/client-temp.py
keiichishima/echonetlite
b8f1cfcf57bae75b76262a7a13b9bb27f36fc1dc
[ "BSD-2-Clause" ]
5
2018-01-15T08:18:12.000Z
2021-05-27T02:53:28.000Z
examples/client-temp.py
keiichishima/echonetlite
b8f1cfcf57bae75b76262a7a13b9bb27f36fc1dc
[ "BSD-2-Clause" ]
1
2019-02-20T09:26:22.000Z
2019-04-02T01:00:21.000Z
examples/client-temp.py
keiichishima/echonetlite
b8f1cfcf57bae75b76262a7a13b9bb27f36fc1dc
[ "BSD-2-Clause" ]
2
2017-04-05T04:04:27.000Z
2018-01-22T14:22:22.000Z
import argparse import struct from echonetlite.interfaces import monitor from echonetlite import middleware from echonetlite.protocol import * class Temperature(middleware.RemoteDevice): def __init__(self, eoj, node_id): super(Temperature, self).__init__(eoj=eoj) self._node_id = node_id mo...
35.677966
77
0.619952
243
2,105
5.00823
0.353909
0.059162
0.026294
0.027116
0.021364
0
0
0
0
0
0
0.003296
0.279335
2,105
58
78
36.293103
0.798945
0.044656
0
0
0
0
0.044323
0
0
0
0
0
0
1
0.108696
false
0
0.108696
0
0.326087
0.021739
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
84dc9c31a5cc661992aad0e76ac68cd3af26038d
369
py
Python
tests/unit/test_filehandling.py
conradstorz/utilities
cf7c93c983d88d9fc6a8fcc5a6a5a97887e1f2d9
[ "MIT" ]
null
null
null
tests/unit/test_filehandling.py
conradstorz/utilities
cf7c93c983d88d9fc6a8fcc5a6a5a97887e1f2d9
[ "MIT" ]
null
null
null
tests/unit/test_filehandling.py
conradstorz/utilities
cf7c93c983d88d9fc6a8fcc5a6a5a97887e1f2d9
[ "MIT" ]
null
null
null
from pathlib import Path import cfsiv_utils.filehandling as fh def test_clean_filename_str(): data = ['qwerty~!@#$%^&*().ext', Path('qwerty~!@#$%^&().ext')] reslt = fh.clean_filename_str(data[0]) assert data[1] == reslt def test_new_name_if_exists(): testname = fh.new_name_if_exists(Path('README.m...
23.0625
66
0.663957
53
369
4.377358
0.528302
0.060345
0.137931
0.172414
0
0
0
0
0
0
0
0.009585
0.151762
369
15
67
24.6
0.731629
0
0
0
0
0
0.168022
0.056911
0
0
0
0
0.222222
1
0.222222
false
0
0.222222
0
0.444444
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
2
84dd31cbf0da03f0ef4963eb4fc603ec03fcce39
169
py
Python
pycrostates/utils/__init__.py
mscheltienne/pycrostates
be87adf69c94b2b179064f337acd8a49d01c305d
[ "BSD-3-Clause" ]
1
2021-12-14T09:58:57.000Z
2021-12-14T09:58:57.000Z
pycrostates/utils/__init__.py
mscheltienne/pycrostates
be87adf69c94b2b179064f337acd8a49d01c305d
[ "BSD-3-Clause" ]
null
null
null
pycrostates/utils/__init__.py
mscheltienne/pycrostates
be87adf69c94b2b179064f337acd8a49d01c305d
[ "BSD-3-Clause" ]
null
null
null
"""Utils module for utilities.""" from ._config import get_config from .utils import _compare_infos, _copy_info, _corr_vectors # noqa: F401 __all__ = ("get_config",)
24.142857
74
0.751479
23
169
4.956522
0.73913
0.157895
0
0
0
0
0
0
0
0
0
0.020548
0.136095
169
6
75
28.166667
0.760274
0.230769
0
0
0
0
0.080645
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
84de102e5ee01fe8ec6a89f884d0e2ea1b8a60c6
943
py
Python
setdb2env.py
rmayherr/python
830aec82e3ab155b66d01032eac71bbe6f961fce
[ "MIT" ]
null
null
null
setdb2env.py
rmayherr/python
830aec82e3ab155b66d01032eac71bbe6f961fce
[ "MIT" ]
null
null
null
setdb2env.py
rmayherr/python
830aec82e3ab155b66d01032eac71bbe6f961fce
[ "MIT" ]
null
null
null
NodeName=AdminControl.getNode() def SetDB2Variables(): WFound=0 WVariables={"DB2UNIVERSAL_JDBC_DRIVER_NATIVEPATH" : "/??????????ult/etc/DB2JDBC", "MQ_INSTALL_ROOT" : "/?????????", "DB2UNIVERSAL_JDBC_DRIVER_PATH" : "/?????????lt/etc/DB2JDBC/classes"} Node=AdminConfig.getid("/Node:"+Node...
42.863636
104
0.650053
95
943
6.368421
0.568421
0.054545
0.072727
0.046281
0.082645
0.082645
0
0
0
0
0
0.011628
0.179215
943
21
105
44.904762
0.770026
0
0
0
0
0
0.321315
0.155885
0
0
0
0
0
0
null
null
0
0
null
null
0.095238
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
84df22e953bad2bfd61c9c777a6347a614ce9c26
6,167
py
Python
bot.py
LFRusso/QCircuit-Bot
b392036b061342beddcb4338fc64e4b8aba0fb8e
[ "MIT" ]
3
2020-09-29T14:13:54.000Z
2020-10-23T04:55:35.000Z
bot.py
LFRusso/QCircuit-Bot
b392036b061342beddcb4338fc64e4b8aba0fb8e
[ "MIT" ]
1
2020-10-01T16:30:50.000Z
2020-10-01T16:30:50.000Z
bot.py
LFRusso/QCircuit-Bot
b392036b061342beddcb4338fc64e4b8aba0fb8e
[ "MIT" ]
1
2020-10-22T01:55:29.000Z
2020-10-22T01:55:29.000Z
from telegram.ext import Updater, CommandHandler from telegram import InlineKeyboardButton, InlineKeyboardMarkup import logging from interpreter import * import os import numpy as np def parse_result(count): message=[] for state in count.keys(): message.append(f"P(|{state}〉)={round(count[state]/100,2)...
33.335135
374
0.630128
847
6,167
4.486423
0.288076
0.044211
0.075
0.082895
0.305789
0.292105
0.277368
0.262632
0.262632
0.262632
0
0.009436
0.22669
6,167
185
375
33.335135
0.786957
0.020756
0
0.176056
0
0.028169
0.380676
0.006629
0
0
0
0
0
1
0.056338
false
0
0.042254
0
0.126761
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
84e061e707eaf0e1adb8a679861ce9147fc31a9f
285
py
Python
tensorflow_serving_client/proto_util.py
wadefelix/tensorflow-serving-client
8d6455268a1b7f99c1a55916661f299218d0e8eb
[ "MIT" ]
8
2017-12-08T06:37:30.000Z
2021-03-28T22:16:59.000Z
tensorflow_serving_client/proto_util.py
wadefelix/tensorflow-serving-client
8d6455268a1b7f99c1a55916661f299218d0e8eb
[ "MIT" ]
3
2017-08-07T05:13:42.000Z
2019-11-21T18:50:06.000Z
tensorflow_serving_client/proto_util.py
wadefelix/tensorflow-serving-client
8d6455268a1b7f99c1a55916661f299218d0e8eb
[ "MIT" ]
12
2017-11-27T19:55:49.000Z
2021-03-28T22:16:38.000Z
def copy_message(src, dst): """ Copy the contents of a src proto message to a destination proto message via string serialization :param src: Source proto :param dst: Destination proto :return: """ dst.ParseFromString(src.SerializeToString()) return dst
28.5
100
0.694737
36
285
5.472222
0.555556
0.121827
0
0
0
0
0
0
0
0
0
0
0.22807
285
9
101
31.666667
0.895455
0.561404
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
2
84e17acc54a7c04765942b57041fe49ffee8eae2
180
py
Python
Common/Loger.py
aoii103/EarthquakeSpy
437228128dbe40bd7976013d4187c062109360bc
[ "MIT" ]
3
2018-09-19T10:57:27.000Z
2019-05-08T02:10:41.000Z
Common/Loger.py
aoii103/EarthquakeSpy
437228128dbe40bd7976013d4187c062109360bc
[ "MIT" ]
null
null
null
Common/Loger.py
aoii103/EarthquakeSpy
437228128dbe40bd7976013d4187c062109360bc
[ "MIT" ]
1
2020-08-31T11:33:54.000Z
2020-08-31T11:33:54.000Z
import logging logging.basicConfig( format="[%(asctime)s] >>> %(levelname)s %(name)s: %(message)s", level=logging.INFO) def GetLoger(Name): return logging.getLogger(Name)
30
88
0.694444
23
180
5.434783
0.652174
0
0
0
0
0
0
0
0
0
0
0
0.122222
180
6
89
30
0.791139
0
0
0
0
0
0.298343
0
0
0
0
0
0
1
0.2
false
0
0.2
0.2
0.6
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
1
0
0
4
84e25762f2a9ce14a1245e3ca792cf375bb93498
859
py
Python
utils.py
longyuanli/VSMHN
13d5ad64474c3fcc4b1dab8ac27d4c97b0b43ca8
[ "MIT" ]
6
2021-02-08T10:35:33.000Z
2021-09-16T02:02:38.000Z
utils.py
longyuanli/VSMHN
13d5ad64474c3fcc4b1dab8ac27d4c97b0b43ca8
[ "MIT" ]
null
null
null
utils.py
longyuanli/VSMHN
13d5ad64474c3fcc4b1dab8ac27d4c97b0b43ca8
[ "MIT" ]
3
2021-02-20T01:55:59.000Z
2022-03-05T12:13:48.000Z
def convert_wind_to_events(event_series, top_C, start_C): flag = False event_start = [] for i in range(len(event_series)): if not flag: if event_series[i] > top_C: event_start.append(i) flag = True else: if event_series[i] < top_C: ...
40.904762
151
0.600698
131
859
3.648855
0.206107
0.230126
0.138075
0.069038
0.548117
0.39749
0.121339
0.121339
0
0
0
0.011236
0.274738
859
20
152
42.95
0.756019
0
0
0.1
0
0
0
0
0
0
0
0
0
1
0.05
false
0
0
0
0.1
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
84e265f70fc5288f1bd0bfec111a051b8a3777eb
149
py
Python
tests/cpydiff/core_fstring_raw.py
rxchen/micropython
037b2c72a1d5b54a5508a58ab2044628a7a39fa4
[ "MIT" ]
13,648
2015-01-01T01:34:51.000Z
2022-03-31T16:19:53.000Z
tests/cpydiff/core_fstring_raw.py
rxchen/micropython
037b2c72a1d5b54a5508a58ab2044628a7a39fa4
[ "MIT" ]
7,092
2015-01-01T07:59:11.000Z
2022-03-31T23:52:18.000Z
tests/cpydiff/core_fstring_raw.py
rxchen/micropython
037b2c72a1d5b54a5508a58ab2044628a7a39fa4
[ "MIT" ]
4,942
2015-01-02T11:48:50.000Z
2022-03-31T19:57:10.000Z
""" categories: Core description: Raw f-strings are not supported cause: MicroPython is optimised for code space. workaround: Unknown """ rf"hello"
16.555556
47
0.765101
20
149
5.7
1
0
0
0
0
0
0
0
0
0
0
0
0.14094
149
8
48
18.625
0.890625
0.865772
0
0
0
0
0.416667
0
0
0
0
0
0
1
0
true
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
84e32a3f56750d951d976dd05b43bd476893aedc
1,487
py
Python
src/torso.py
kneave/MacFeeglePrime-ROS
d73081190155bb20119f4b9a7216d730c0a1e8b2
[ "MIT" ]
null
null
null
src/torso.py
kneave/MacFeeglePrime-ROS
d73081190155bb20119f4b9a7216d730c0a1e8b2
[ "MIT" ]
null
null
null
src/torso.py
kneave/MacFeeglePrime-ROS
d73081190155bb20119f4b9a7216d730c0a1e8b2
[ "MIT" ]
null
null
null
#!/usr/bin/env python import rospy import time import sys sys.path.append('/home/ubuntu/RedBoard') import redboard from std_msgs.msg import Int16MultiArray # Servo values, 0 is centre pan_value = 0 tilt_value = 0 def callback(data): rospy.loginfo(rospy.get_caller_id() + 'RCVD: %s', data.data) setservos...
26.087719
72
0.694015
213
1,487
4.652582
0.497653
0.040363
0.030272
0
0
0
0
0
0
0
0
0.018739
0.210491
1,487
56
73
26.553571
0.825383
0.305313
0
0.0625
0
0
0.08317
0.020548
0
0
0
0
0
1
0.09375
false
0
0.15625
0
0.25
0.03125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
84e3985260d9d57b8161b7b1a75f1fd40cce4250
10,943
py
Python
S4/S4 Library/simulation/broadcasters/environment_score/environment_score_mixin.py
NeonOcean/Environment
ca658cf66e8fd6866c22a4a0136d415705b36d26
[ "CC-BY-4.0" ]
1
2021-05-20T19:33:37.000Z
2021-05-20T19:33:37.000Z
S4/S4 Library/simulation/broadcasters/environment_score/environment_score_mixin.py
NeonOcean/Environment
ca658cf66e8fd6866c22a4a0136d415705b36d26
[ "CC-BY-4.0" ]
null
null
null
S4/S4 Library/simulation/broadcasters/environment_score/environment_score_mixin.py
NeonOcean/Environment
ca658cf66e8fd6866c22a4a0136d415705b36d26
[ "CC-BY-4.0" ]
null
null
null
from collections import Counter import operator import weakref from broadcasters.environment_score.environment_score_tuning import EnvironmentScoreTuning import alarms import clock import gsi_handlers import services import sims4.log import sims4.reload logger = sims4.log.Logger('Environment Score') with sims4.reload.p...
55.831633
359
0.72704
1,214
10,943
6.092257
0.11285
0.153597
0.081125
0.050974
0.553678
0.420903
0.346809
0.275284
0.227961
0.196187
0
0.002802
0.217216
10,943
195
360
56.117949
0.860612
0
0
0.284091
0
0
0.015444
0
0
0
0
0
0
1
0.090909
false
0
0.056818
0
0.1875
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