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
14bc8be324494c94b50dffe3b5b8590dee127599
786
py
Python
chapter07/test_wrappers.py
roiyeho/drl-book
1db635fd508e5b17ef8bfecbe49a79f55503a1f1
[ "MIT" ]
null
null
null
chapter07/test_wrappers.py
roiyeho/drl-book
1db635fd508e5b17ef8bfecbe49a79f55503a1f1
[ "MIT" ]
null
null
null
chapter07/test_wrappers.py
roiyeho/drl-book
1db635fd508e5b17ef8bfecbe49a79f55503a1f1
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import gym from gym.wrappers import atari_preprocessing from atari_wrappers import FireOnResetWrapper, FrameStackWrapper env = gym.make('BreakoutNoFrameskip-v4') print('State space:', env.observation_space) print('Action space:', env.action_space) print(env.get_action_meanings()) #env...
19.170732
64
0.737913
114
786
4.95614
0.368421
0.042478
0.084956
0.074336
0.274336
0.20708
0.166372
0.166372
0.166372
0.166372
0
0.00431
0.114504
786
40
65
19.65
0.807471
0.036896
0
0.482759
0
0
0.072944
0.029178
0
0
0
0
0
1
0
false
0
0.137931
0
0.137931
0.103448
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
14be54f29ab61e31d4790aa9f64ba8ebe0ee11d8
3,746
py
Python
QWeb/internal/config.py
kivipe/qweb
abf5881aa67412e4a243b13a59528a3c80aa2f52
[ "Apache-2.0" ]
33
2021-03-16T12:26:44.000Z
2022-03-30T17:44:57.000Z
QWeb/internal/config.py
kivipe/qweb
abf5881aa67412e4a243b13a59528a3c80aa2f52
[ "Apache-2.0" ]
24
2021-03-18T16:21:37.000Z
2022-03-24T17:52:14.000Z
QWeb/internal/config.py
kivipe/qweb
abf5881aa67412e4a243b13a59528a3c80aa2f52
[ "Apache-2.0" ]
13
2021-03-24T17:48:50.000Z
2022-02-25T03:22:01.000Z
# -*- coding: utf-8 -*- # -------------------------- # Copyright © 2014 - Qentinel Group. # # 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/LIC...
36.368932
100
0.630539
462
3,746
4.852814
0.318182
0.084746
0.046833
0.048171
0.176182
0.134701
0.104371
0.037467
0.037467
0
0
0.003631
0.264816
3,746
102
101
36.72549
0.810094
0.318473
0
0.189655
0
0
0.01916
0
0
0
0
0
0
1
0.172414
false
0
0.017241
0.034483
0.362069
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
14bf519f8d4cbf0109c2da9a95c781cc980a4cbd
315
py
Python
django/quickstart/migrations/0002_remove_diary_tags.py
juyoungpark718/relay06
6f5f92e23814393dec7ddc6b2405204cd6338e34
[ "MIT" ]
4
2020-07-27T02:50:37.000Z
2021-04-06T09:48:30.000Z
django/quickstart/migrations/0002_remove_diary_tags.py
juyoungpark718/relay06
6f5f92e23814393dec7ddc6b2405204cd6338e34
[ "MIT" ]
2
2020-08-07T07:33:37.000Z
2020-08-16T14:50:56.000Z
django/quickstart/migrations/0002_remove_diary_tags.py
juyoungpark718/relay06
6f5f92e23814393dec7ddc6b2405204cd6338e34
[ "MIT" ]
11
2020-07-31T08:20:43.000Z
2020-08-21T04:08:29.000Z
# Generated by Django 3.1 on 2020-08-07 09:32 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('quickstart', '0001_initial'), ] operations = [ migrations.RemoveField( model_name='diary', name='tags', ), ]
17.5
45
0.577778
32
315
5.625
0.84375
0
0
0
0
0
0
0
0
0
0
0.082569
0.307937
315
17
46
18.529412
0.743119
0.136508
0
0
1
0
0.114815
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
1ad20629bcd7999e4a52ce8b6e123bba45f7ebb7
752
py
Python
server/my_util.py
gjyaiya/mysqlmonitor
fd07aec8f75c14d8e8c5208758e786ae4c180993
[ "MIT" ]
1
2016-06-28T02:13:12.000Z
2016-06-28T02:13:12.000Z
server/my_util.py
gjyaiya/mysqlmonitor
fd07aec8f75c14d8e8c5208758e786ae4c180993
[ "MIT" ]
null
null
null
server/my_util.py
gjyaiya/mysqlmonitor
fd07aec8f75c14d8e8c5208758e786ae4c180993
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding:utf-8 import json import time import datetime def get_time(f='%m-%d %H:%M:%S'): return time.strftime(f, time.localtime(time.time())) class _JSONEncoder(json.JSONEncoder): def default(self, o): if isinstance(o, datetime.datetime): r = o.isoformat() ...
23.5
56
0.554521
97
752
4.247423
0.484536
0.053398
0.092233
0
0
0
0
0
0
0
0
0.018904
0.296543
752
31
57
24.258065
0.759924
0.043883
0
0
0
0
0.029289
0
0
0
0
0
0
1
0.181818
false
0
0.136364
0.090909
0.590909
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
1ad20e50d6be74dfe95babdda8fc8f12f3b7f6f7
1,419
py
Python
survol/sources_types/enumerate_cgroup.py
rchateauneu/survol
ba66d3ec453b2d9dd3a8dabc6d53f71aa9ba8c78
[ "BSD-3-Clause" ]
9
2017-10-05T23:36:23.000Z
2021-08-09T15:40:03.000Z
survol/sources_types/enumerate_cgroup.py
rchateauneu/survol
ba66d3ec453b2d9dd3a8dabc6d53f71aa9ba8c78
[ "BSD-3-Clause" ]
21
2018-01-02T09:33:03.000Z
2018-08-27T11:09:52.000Z
survol/sources_types/enumerate_cgroup.py
rchateauneu/survol
ba66d3ec453b2d9dd3a8dabc6d53f71aa9ba8c78
[ "BSD-3-Clause" ]
4
2018-06-23T09:05:45.000Z
2021-01-22T15:36:50.000Z
#!/usr/bin/env python """ List of Linux cgroups """ import lib_util import lib_common from sources_types.Linux import cgroup as survol_cgroup # cat /proc/cgroups # #subsys_name hierarchy num_cgroups enabled # cpuset 0 1 1 # cpu 0 1 1 # cpuacct 0 1 1 # blkio 0 ...
26.277778
102
0.608879
194
1,419
4.201031
0.371134
0.026994
0.040491
0.062577
0.217178
0.125153
0.125153
0
0
0
0
0.036489
0.285412
1,419
53
103
26.773585
0.767258
0.293869
0
0
0
0
0.068437
0
0
0
0
0
0
1
0.047619
false
0
0.142857
0
0.190476
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
1ad23688a8884db208cdf807a9190c4367a75c50
47,490
py
Python
cogs/server.py
Glitchii/Troy
11070e0a6f191d53429e55047ee89ffdba5c5796
[ "MIT" ]
2
2022-03-26T00:45:19.000Z
2022-03-28T18:13:16.000Z
cogs/server.py
Glitchii/Troy
11070e0a6f191d53429e55047ee89ffdba5c5796
[ "MIT" ]
null
null
null
cogs/server.py
Glitchii/Troy
11070e0a6f191d53429e55047ee89ffdba5c5796
[ "MIT" ]
null
null
null
from io import BytesIO as IoBytesIO from colorthief import ColorThief from discord.ext.commands import command, Cog, group from re import search as re_search, sub as re_sub, compile as re_compile from PIL import Image from traceback import format_exc from os import remove as os_rem from datetime import datetime from di...
76.350482
545
0.615603
6,452
47,490
4.463577
0.100589
0.030279
0.045418
0.043682
0.513698
0.454912
0.395778
0.37168
0.332616
0.306886
0
0.028012
0.244536
47,490
622
546
76.350482
0.774619
0.008107
0
0.268293
0
0.06446
0.282757
0.051744
0.001742
0
0.001699
0
0
1
0.010453
false
0.012195
0.020906
0
0.055749
0.02439
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1ad340225452a636b0710417cdc73209bdacdaf7
40,487
py
Python
python/src/vmaf/mos/subjective_model.py
christosbampis/vmaf
33e8dc675ace44dd1412b318c31eb3378612744c
[ "Apache-2.0" ]
null
null
null
python/src/vmaf/mos/subjective_model.py
christosbampis/vmaf
33e8dc675ace44dd1412b318c31eb3378612744c
[ "Apache-2.0" ]
1
2018-09-05T16:33:08.000Z
2018-09-05T16:33:08.000Z
python/src/vmaf/mos/subjective_model.py
christosbampis/vmaf
33e8dc675ace44dd1412b318c31eb3378612744c
[ "Apache-2.0" ]
2
2018-09-05T03:59:46.000Z
2018-09-18T03:57:52.000Z
from abc import ABCMeta, abstractmethod import sys import numpy as np from scipy import linalg from scipy import stats import pandas as pd from vmaf.core.mixin import TypeVersionEnabled from vmaf.tools.misc import import_python_file, indices from vmaf.mos.dataset_reader import RawDatasetReader __copyright__ = "Copyr...
43.58127
159
0.58073
5,818
40,487
3.770368
0.073221
0.010667
0.019557
0.024891
0.665026
0.634938
0.603939
0.585111
0.552471
0.528355
0
0.023209
0.30721
40,487
928
160
43.628233
0.758851
0.066021
0
0.499215
0
0.00314
0.0911
0.008527
0
0
0
0
0.058085
0
null
null
0.00471
0.015699
null
null
0.00314
0
0
0
null
0
0
0
0
0
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
1ad3fcee088889246860a4fbec72d01b0688a10d
10,766
py
Python
tests/payoff_calculator_test.py
phillipgreenii/loan_payoff_tools
4ffb8a83f7fe6bf7eb37eb7165b3959422d3a515
[ "MIT" ]
null
null
null
tests/payoff_calculator_test.py
phillipgreenii/loan_payoff_tools
4ffb8a83f7fe6bf7eb37eb7165b3959422d3a515
[ "MIT" ]
3
2015-05-03T02:16:49.000Z
2015-05-08T21:25:01.000Z
tests/payoff_calculator_test.py
phillipgreenii/loan_payoff_tools
4ffb8a83f7fe6bf7eb37eb7165b3959422d3a515
[ "MIT" ]
null
null
null
''' loan_payoff_tools: Test module. Meant for use with py.test. Write each test as a function named test_<something>. Read more here: http://pytest.org/ Copyright 2014, Phillip Green II Licensed under MIT ''' import unittest from datetime import date from loan_payoff_tools.payment_manager import Account from loan_p...
59.480663
185
0.606911
1,258
10,766
4.985692
0.112083
0.063776
0.114796
0.133929
0.893017
0.871492
0.855389
0.827647
0.817602
0.817602
0
0.147447
0.254133
10,766
180
186
59.811111
0.633624
0.018763
0
0.75188
0
0
0.013073
0
0
0
0
0
0.135338
1
0.06015
false
0
0.06015
0
0.12782
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
1ad4887310112ec9d93c98470773aaa026cdeeb0
14,015
py
Python
pystac/validation/schema_uri_map.py
schwehr/pystac
c2b7e0e8010931ec7dde3cc21b9f4955cd1f0706
[ "Apache-2.0" ]
null
null
null
pystac/validation/schema_uri_map.py
schwehr/pystac
c2b7e0e8010931ec7dde3cc21b9f4955cd1f0706
[ "Apache-2.0" ]
null
null
null
pystac/validation/schema_uri_map.py
schwehr/pystac
c2b7e0e8010931ec7dde3cc21b9f4955cd1f0706
[ "Apache-2.0" ]
null
null
null
from abc import ABC, abstractmethod from functools import lru_cache from pystac.serialization.identify import OldExtensionShortIDs, STACVersionID from typing import Any, Callable, Dict, List, Optional, Tuple import pystac from pystac.serialization import STACVersionRange from pystac.stac_object import STACObjectType ...
38.71547
88
0.53086
1,381
14,015
5.275163
0.136857
0.039808
0.050515
0.063143
0.705148
0.578723
0.494029
0.455045
0.377076
0.348524
0
0.007091
0.386229
14,015
361
89
38.822715
0.839805
0.197217
0
0.498233
0
0
0.137999
0.109212
0
0
0
0
0
1
0.028269
false
0.007067
0.024735
0.007067
0.109541
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
1ad5e7efb51c44e87712dae513359c781ede674e
4,339
py
Python
Python/mhd_utils.py
matthew-brett/diffusion_mri
a7ff1e2a7b3e43e419b8040a48dcda9c361ecf42
[ "MIT" ]
4
2017-04-13T16:29:49.000Z
2021-08-14T09:52:25.000Z
Python/mhd_utils.py
matthew-brett/diffusion_mri
a7ff1e2a7b3e43e419b8040a48dcda9c361ecf42
[ "MIT" ]
1
2019-03-28T11:29:39.000Z
2019-03-28T15:47:08.000Z
Python/mhd_utils.py
matthew-brett/diffusion_mri
a7ff1e2a7b3e43e419b8040a48dcda9c361ecf42
[ "MIT" ]
7
2016-04-18T11:03:45.000Z
2021-01-12T06:04:57.000Z
#!/usr/bin/env python #coding=utf-8 #====================================================================== #Program: Diffusion Weighted MRI Reconstruction #Module: $RCSfile: mhd_utils.py,v $ #Language: Python #Author: $Author: bjian $ #Date: $Date: 2008/10/27 05:55:55 $ #Version: $Revision: 1...
33.376923
107
0.596912
512
4,339
4.908203
0.300781
0.08277
0.045762
0.023876
0.13848
0.116992
0.05969
0.05969
0.05969
0.05969
0
0.011387
0.230929
4,339
129
108
33.635659
0.741684
0.164324
0
0.153846
0
0
0.213626
0.031178
0
0
0
0
0.021978
1
0.054945
false
0
0.043956
0
0.120879
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
1ad7f23489c3729dcdae18cbb0a46ecb9685ee61
2,454
py
Python
tracking/tracking.py
lovishchopra/ITRI-Car-Accident
96a1ffa25eacfb2885ea1fa0852a91c8bb5ec95d
[ "MIT" ]
null
null
null
tracking/tracking.py
lovishchopra/ITRI-Car-Accident
96a1ffa25eacfb2885ea1fa0852a91c8bb5ec95d
[ "MIT" ]
null
null
null
tracking/tracking.py
lovishchopra/ITRI-Car-Accident
96a1ffa25eacfb2885ea1fa0852a91c8bb5ec95d
[ "MIT" ]
null
null
null
import StringIO as io import json import time # data = '{"filename":"results/result_00000002.jpg","tag":[{"person":32,"left":373,"right":515,"top":81,"bot":388},{"person":31,"left":439,"right":556,"top":65,"bot":384}]}' # data = '{"filename":"results/result_00000056.jpg","tag":[{"car":28,"left":370,"right":719,"top":3...
20.974359
173
0.608802
374
2,454
3.877005
0.251337
0.038621
0.062759
0.041379
0.111034
0.08
0.052414
0.052414
0.052414
0
0
0.063872
0.183374
2,454
117
174
20.974359
0.659681
0.266911
0
0.125
0
0
0.051066
0
0
0
0
0
0
0
null
null
0
0.046875
null
null
0.0625
0
0
0
null
0
0
0
0
0
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
1ad8843aee0e7aba85c685628079d06bf297c82d
2,064
py
Python
src/leetcode_384_shuffle_an_array.py
sungho-joo/leetcode2github
ce7730ef40f6051df23681dd3c0e1e657abba620
[ "MIT" ]
null
null
null
src/leetcode_384_shuffle_an_array.py
sungho-joo/leetcode2github
ce7730ef40f6051df23681dd3c0e1e657abba620
[ "MIT" ]
null
null
null
src/leetcode_384_shuffle_an_array.py
sungho-joo/leetcode2github
ce7730ef40f6051df23681dd3c0e1e657abba620
[ "MIT" ]
null
null
null
# @l2g 384 python3 # [384] Shuffle an Array # Difficulty: Medium # https://leetcode.com/problems/shuffle-an-array # # Given an integer array nums,design an algorithm to randomly shuffle the array. # All permutations of the array should be equally likely as a result of the shuffling. # Implement the Solution class: # # ...
27.52
102
0.630814
297
2,064
4.333333
0.353535
0.01554
0.018648
0.060606
0.146076
0.118104
0.118104
0.066822
0
0
0
0.040328
0.231105
2,064
74
103
27.891892
0.770636
0.734012
0
0
0
0
0.052288
0
0
0
0
0
0
1
0.230769
false
0
0.307692
0
0.769231
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
1
0
1
0
0
3
1ad9b64d65098701b1bcba36c3d7d451c75d6db9
10,259
py
Python
src/support/gan_model.py
nipdep/STGAN
c72ba6cb9d23d33accc0cfa1958a2005db3ed490
[ "MIT" ]
null
null
null
src/support/gan_model.py
nipdep/STGAN
c72ba6cb9d23d33accc0cfa1958a2005db3ed490
[ "MIT" ]
null
null
null
src/support/gan_model.py
nipdep/STGAN
c72ba6cb9d23d33accc0cfa1958a2005db3ed490
[ "MIT" ]
null
null
null
# To add a new cell, type '# %%' # To add a new markdown cell, type '# %% [markdown]' # %% import time import random import tensorflow as tf import numpy as np from numpy import load from numpy import zeros from numpy import ones from numpy.random import randint from tensorflow.keras.optimizers import Adam from tensorf...
36.250883
164
0.699678
1,565
10,259
4.336741
0.150799
0.005304
0.030057
0.045381
0.373803
0.282452
0.25151
0.231472
0.219685
0.21438
0
0.036662
0.173116
10,259
282
165
36.379433
0.763409
0.071839
0
0.203125
0
0
0.011302
0
0
0
0
0.003546
0
1
0.072917
false
0
0.083333
0
0.223958
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
1adac1d218c18f6ac227bb196bd7e184f91ab6fe
4,673
py
Python
ssis/views/courses/routes.py
edenroseFR/Student-Information-System-Web-based-
3553dc33defdcade0f207e200efbeceec0b46a2a
[ "MIT" ]
null
null
null
ssis/views/courses/routes.py
edenroseFR/Student-Information-System-Web-based-
3553dc33defdcade0f207e200efbeceec0b46a2a
[ "MIT" ]
6
2022-03-09T22:32:52.000Z
2022-03-31T22:32:16.000Z
ssis/views/courses/routes.py
edenroseFR/Student-Information-System-Web-based-
3553dc33defdcade0f207e200efbeceec0b46a2a
[ "MIT" ]
1
2022-01-30T21:58:16.000Z
2022-01-30T21:58:16.000Z
from flask import request, render_template, redirect, flash from flask.helpers import url_for from ssis.models.student import Student from ssis.models.course import Course from ssis.models.college import College from .utils import add_course_to_db, update_course_record, check_page_limit, check_limit_validity from . imp...
34.614815
97
0.61438
563
4,673
4.920071
0.181172
0.051625
0.061372
0.072202
0.430686
0.412996
0.368953
0.274007
0.274007
0.249097
0
0.002568
0.249947
4,673
135
98
34.614815
0.787732
0
0
0.362832
0
0
0.157253
0.011553
0
0
0
0
0
1
0.061947
false
0
0.070796
0
0.247788
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
1adb4971d58f79dc1378fa4f67ca664d6713962a
1,372
py
Python
src/ml-auto-sklearn/run.py
altermarkive/numerai-experiments
dd4d0b18b64d948a875cba9fd16b962ad9fe0a26
[ "MIT" ]
12
2019-12-05T08:43:07.000Z
2022-01-15T03:21:09.000Z
src/ml-auto-sklearn/run.py
altermarkive/Resurrecting-JimFleming-Numerai
dd4d0b18b64d948a875cba9fd16b962ad9fe0a26
[ "MIT" ]
null
null
null
src/ml-auto-sklearn/run.py
altermarkive/Resurrecting-JimFleming-Numerai
dd4d0b18b64d948a875cba9fd16b962ad9fe0a26
[ "MIT" ]
6
2019-12-12T08:12:04.000Z
2021-06-05T14:13:08.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import autosklearn.classification import numpy import os import pandas import sys def ingest(): training_data = pandas.read_csv(os.getenv('TRAINING'), header=0) tournament_data = pandas.read_csv(os.getenv('TESTING'), header=0) features = [f for f in list(tra...
28.583333
77
0.686589
193
1,372
4.658031
0.419689
0.073415
0.036707
0.03782
0.135706
0.055617
0
0
0
0
0
0.015831
0.171283
1,372
47
78
29.191489
0.774846
0.031341
0
0
0
0
0.075358
0
0
0
0
0
0
1
0.117647
false
0
0.147059
0
0.323529
0.029412
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1adcc088bac0e7b59ef81dc46b24b99aee540c57
3,280
py
Python
basicts/runners/DCRNN_runner.py
zezhishao/BasicTS
584ca6f8215a6fc9976789b600996934ba2d499e
[ "Apache-2.0" ]
3
2022-02-22T12:50:08.000Z
2022-03-13T03:38:46.000Z
basicts/runners/DCRNN_runner.py
zezhishao/BasicTS
584ca6f8215a6fc9976789b600996934ba2d499e
[ "Apache-2.0" ]
null
null
null
basicts/runners/DCRNN_runner.py
zezhishao/BasicTS
584ca6f8215a6fc9976789b600996934ba2d499e
[ "Apache-2.0" ]
null
null
null
import torch from basicts.runners.base_traffic_runner import TrafficRunner class DCRNNRunner(TrafficRunner): def __init__(self, cfg: dict): super().__init__(cfg) def setup_graph(self, data): try: self.train_iters(data, 0, 0) except: pass def data_reshaper(s...
41
145
0.597256
428
3,280
4.436916
0.28271
0.014745
0.020537
0.025276
0.102159
0.024223
0.008425
0.008425
0
0
0
0.002626
0.303354
3,280
79
146
41.518987
0.828446
0.353354
0
0.105263
0
0.026316
0.042312
0
0
0
0
0
0.026316
1
0.131579
false
0.052632
0.052632
0
0.289474
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
0
0
0
1
1adce0caad79b2df76b7128ac2a5ec6c6011e8fe
17,143
py
Python
genens/gp/types.py
gabrielasuchopar/genens
228e2776897b0cfc6f96fb625346d28e7e1cf5fe
[ "MIT" ]
null
null
null
genens/gp/types.py
gabrielasuchopar/genens
228e2776897b0cfc6f96fb625346d28e7e1cf5fe
[ "MIT" ]
null
null
null
genens/gp/types.py
gabrielasuchopar/genens
228e2776897b0cfc6f96fb625346d28e7e1cf5fe
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ This module defines the structure of GP primitives. The GP primitives are nodes with typed edges (parent input and child output types must match) and variable arity (for a given type, its final arity can be chosen during the evolution process). A ``GpPrimitive`` is a node whose types, ari...
34.013889
116
0.605903
2,241
17,143
4.481481
0.142347
0.033655
0.028776
0.010156
0.261277
0.215872
0.177736
0.158319
0.150752
0.132829
0
0.003319
0.314531
17,143
504
117
34.013889
0.851332
0.385522
0
0.287736
0
0
0.049248
0.010733
0
0
0
0.001984
0
1
0.146226
false
0
0.023585
0.023585
0.377358
0.014151
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1adde29b2e90eb0fb93c6d9f7876da65ee32a793
2,408
py
Python
pca-server/src/pca/pca-aws-sf-wait-for-transcribe-notification.py
Harsh15021992/amazon-transcribe-post-call-analytics
d85aaf6f52394a96f3935cfc63e5bbe4f6e7a2ef
[ "Apache-2.0" ]
8
2021-12-18T17:10:33.000Z
2022-03-25T14:16:38.000Z
pca-server/src/pca/pca-aws-sf-wait-for-transcribe-notification.py
Harsh15021992/amazon-transcribe-post-call-analytics
d85aaf6f52394a96f3935cfc63e5bbe4f6e7a2ef
[ "Apache-2.0" ]
6
2022-02-28T01:29:25.000Z
2022-03-22T09:09:17.000Z
pca-server/src/pca/pca-aws-sf-wait-for-transcribe-notification.py
Harsh15021992/amazon-transcribe-post-call-analytics
d85aaf6f52394a96f3935cfc63e5bbe4f6e7a2ef
[ "Apache-2.0" ]
4
2021-12-30T00:13:24.000Z
2022-03-23T13:12:47.000Z
""" This python function is part of the main processing workflow. It is called when a Transcribe job is started, and it will create an entry in a DynamoDB table that holds some job information and the Step Functions task token. The Step Function should then wait for another task to read this task token from DynamoDB ...
39.47541
117
0.624169
291
2,408
5.106529
0.508591
0.05249
0.040377
0.028264
0.041723
0.041723
0
0
0
0
0
0.008671
0.281561
2,408
61
118
39.47541
0.850289
0.44186
0
0
0
0
0.258263
0.083782
0
0
0
0
0
1
0.03125
false
0
0.09375
0
0.15625
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
1ade2ab84fea82b9e5678e3da0ae759e264da506
7,388
py
Python
facebook_business/adobjects/nativeoffer.py
enricapq/facebook-python-business-sdk
49c569ac5cf812b1bcb533520c35896b0436fa4c
[ "CNRI-Python" ]
null
null
null
facebook_business/adobjects/nativeoffer.py
enricapq/facebook-python-business-sdk
49c569ac5cf812b1bcb533520c35896b0436fa4c
[ "CNRI-Python" ]
null
null
null
facebook_business/adobjects/nativeoffer.py
enricapq/facebook-python-business-sdk
49c569ac5cf812b1bcb533520c35896b0436fa4c
[ "CNRI-Python" ]
1
2020-07-27T16:34:58.000Z
2020-07-27T16:34:58.000Z
# Copyright 2014 Facebook, Inc. # You are hereby granted a non-exclusive, worldwide, royalty-free license to # use, copy, modify, and distribute this software in source code or binary # form for use in connection with the web services and APIs provided by # Facebook. # As with any software that integrates with the Fa...
36.756219
120
0.634407
831
7,388
5.406739
0.309266
0.036724
0.030047
0.019363
0.30158
0.266637
0.259292
0.250835
0.217227
0.217227
0
0.004819
0.269762
7,388
200
121
36.94
0.827989
0.136302
0
0.25
0
0
0.233388
0.034039
0
0
0
0
0
1
0.025
false
0
0.04375
0
0.14375
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
1ade68f905e2e6d0e18b008d110d6b4f19c4319b
6,503
py
Python
test/hvd_allreduce.py
IST-DASLab/horovod
d2611353c33b299f04e47fae0de741702de3130e
[ "Apache-2.0" ]
null
null
null
test/hvd_allreduce.py
IST-DASLab/horovod
d2611353c33b299f04e47fae0de741702de3130e
[ "Apache-2.0" ]
null
null
null
test/hvd_allreduce.py
IST-DASLab/horovod
d2611353c33b299f04e47fae0de741702de3130e
[ "Apache-2.0" ]
null
null
null
import argparse import horovod.torch as hvd import pickle import numpy.random as rnd import numpy as np import torch import os arrays = [] class MaxMinQuantizer(): def __init__(self, q_bits, bucket_size): self.q = q_bits self.num_levels = 1 << self.q self.bucket_size = bucket_size def...
31.721951
123
0.557743
869
6,503
4.035673
0.182969
0.042772
0.025948
0.01882
0.262047
0.188195
0.159681
0.145994
0.106644
0.106644
0
0.019908
0.297094
6,503
204
124
31.877451
0.74732
0.123789
0
0.21118
0
0
0.050211
0
0
0
0
0
0
1
0.062112
false
0.006211
0.043478
0.006211
0.186335
0.006211
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1ae318fc2f53a52ba514b1e0986fa0f2c395b272
6,495
py
Python
accelerator/shell/init.py
drougge/accelerator
f99b2550a84c79cadb032acf0d2d60bccf75bf0d
[ "Apache-2.0" ]
null
null
null
accelerator/shell/init.py
drougge/accelerator
f99b2550a84c79cadb032acf0d2d60bccf75bf0d
[ "Apache-2.0" ]
null
null
null
accelerator/shell/init.py
drougge/accelerator
f99b2550a84c79cadb032acf0d2d60bccf75bf0d
[ "Apache-2.0" ]
null
null
null
############################################################################ # # # Copyright (c) 2019-2020 Carl Drougge # # Modifications copyright (c) 2020 Anders Berkeman # # ...
36.284916
153
0.646497
839
6,495
4.935638
0.330155
0.01956
0.01304
0.008452
0.06327
0.036223
0.01787
0.01787
0.01787
0.01787
0
0.005743
0.222479
6,495
178
154
36.488764
0.814257
0.174288
0
0.036496
0
0.007299
0.477366
0.0194
0
0
0
0
0.014599
1
0.014599
false
0.007299
0.072993
0
0.109489
0.014599
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1ae3f2b04641e41b7f95d3b94460b572e616223c
2,115
py
Python
tensorflow_probability/python/math/psd_kernels/pointwise_exponential_test.py
jakee417/probability-1
ae7117f37ac441bc7a888167ea23e5e620c5bcde
[ "Apache-2.0" ]
3,670
2018-02-14T03:29:40.000Z
2022-03-30T01:19:52.000Z
tensorflow_probability/python/math/psd_kernels/pointwise_exponential_test.py
jakee417/probability-1
ae7117f37ac441bc7a888167ea23e5e620c5bcde
[ "Apache-2.0" ]
1,395
2018-02-24T02:28:49.000Z
2022-03-31T16:12:06.000Z
tensorflow_probability/python/math/psd_kernels/pointwise_exponential_test.py
jakee417/probability-1
ae7117f37ac441bc7a888167ea23e5e620c5bcde
[ "Apache-2.0" ]
1,135
2018-02-14T01:51:10.000Z
2022-03-28T02:24:11.000Z
# Copyright 2021 The TensorFlow Probability Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
38.454545
78
0.715839
269
2,115
5.453532
0.449814
0.066803
0.035446
0.043626
0.163599
0.163599
0.092706
0.092706
0.092706
0
0
0.018519
0.157447
2,115
54
79
39.166667
0.804714
0.318203
0
0.193548
0
0
0.005622
0
0
0
0
0
0.096774
1
0.064516
false
0
0.129032
0
0.225806
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
1ae49887b3b0718efa0664bc88caa2cfb2fd87dd
263
py
Python
baekjoon/1934.py
jiyeoun/PS
855ec59fe7844daf102fde713eab48c88cbc5419
[ "MIT" ]
null
null
null
baekjoon/1934.py
jiyeoun/PS
855ec59fe7844daf102fde713eab48c88cbc5419
[ "MIT" ]
null
null
null
baekjoon/1934.py
jiyeoun/PS
855ec59fe7844daf102fde713eab48c88cbc5419
[ "MIT" ]
null
null
null
def gcd(a, b): while b != 0: x = a % b a = b b = x return a def lcm(a, b): gcd2 = gcd(a, b) return (a * b) // gcd2 n=int(input()) for i in range(n): a,b=input().split() a=int(a) b=int(b) print(lcm(a, b))
13.842105
26
0.422053
50
263
2.22
0.38
0.162162
0.09009
0
0
0
0
0
0
0
0
0.018634
0.387833
263
18
27
14.611111
0.670807
0
0
0
0
0
0
0
0
0
0
0
0
1
0.133333
false
0
0
0
0.266667
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
1ae5359c35bc853bc2b8c175bdb8b704584aea2d
5,712
py
Python
scripts/support/mirnas/compare-rfam-mirbase.py
Rfam/rfam-production
36f3963380da2a08e9cf73c951691c4e95738ac4
[ "Apache-2.0" ]
7
2016-06-17T09:21:11.000Z
2021-10-13T20:25:06.000Z
scripts/support/mirnas/compare-rfam-mirbase.py
Rfam/rfam-production
36f3963380da2a08e9cf73c951691c4e95738ac4
[ "Apache-2.0" ]
82
2016-04-08T10:51:32.000Z
2022-03-11T13:49:18.000Z
scripts/support/mirnas/compare-rfam-mirbase.py
Rfam/rfam-production
36f3963380da2a08e9cf73c951691c4e95738ac4
[ "Apache-2.0" ]
3
2019-09-01T09:46:35.000Z
2021-11-29T08:01:58.000Z
""" Generate the data used in the microRNA dashboard for the following tables: - Rfam miRNAs without matches - Rfam non-miRNA families matching miRBase Requires a mapping between all sequences from miRBase and the current Rfam models. The mapping can be generated as follows: wget https://ftp.ebi.ac.uk/pub/databases/R...
36.851613
172
0.664041
778
5,712
4.663239
0.282776
0.023153
0.030871
0.033076
0.318908
0.313396
0.278115
0.240628
0.232084
0.232084
0
0.03278
0.220238
5,712
154
173
37.090909
0.781769
0.226891
0
0.247423
1
0.041237
0.180249
0.007136
0
0
0
0
0
1
0.082474
false
0
0.082474
0
0.216495
0.051546
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
1ae55991642c5bb4bf90b84a7c11f19e1ceb40a1
739
py
Python
source/heihei.py
HankYe/Solution-to-opioid-crisis
bdf6d6be458cd4bbebaa5a00d132c75dc166198d
[ "Apache-2.0" ]
null
null
null
source/heihei.py
HankYe/Solution-to-opioid-crisis
bdf6d6be458cd4bbebaa5a00d132c75dc166198d
[ "Apache-2.0" ]
null
null
null
source/heihei.py
HankYe/Solution-to-opioid-crisis
bdf6d6be458cd4bbebaa5a00d132c75dc166198d
[ "Apache-2.0" ]
null
null
null
from matplotlib import pyplot time_list = [2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017] time_list_append = [2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022] predict = [10453, 10655.758342548274, 10726.259909546003, 10651.26868581213, 10399.137368507683, 9965.11495705042, 9558.34124532155...
56.846154
248
0.76184
100
739
5.55
0.68
0.072072
0.075676
0.057658
0.115315
0.115315
0.115315
0.115315
0
0
0
0.478519
0.086604
739
13
249
56.846154
0.343704
0
0
0
0
0
0.045946
0
0
0
0
0
0
1
0
false
0
0.076923
0
0.076923
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
1ae63296d699c65a0bd047816b0e603a4cff99eb
5,841
py
Python
hplc_analysis.py
furubayashim/hplc-analysis-hitachi
d8f2b594b577032548e860b424f55241bbe72b37
[ "MIT" ]
null
null
null
hplc_analysis.py
furubayashim/hplc-analysis-hitachi
d8f2b594b577032548e860b424f55241bbe72b37
[ "MIT" ]
null
null
null
hplc_analysis.py
furubayashim/hplc-analysis-hitachi
d8f2b594b577032548e860b424f55241bbe72b37
[ "MIT" ]
null
null
null
#!/usr/bin/env python # script to draw PDA chromatogram & spectrum figure using Hitachi HPLC Chromaster stx/ctx files import pandas as pd import numpy as np import glob import os import sys import matplotlib.pyplot as plt # change this if using different user/folder data_dir = "raw/" # can give sample name file as ...
41.721429
349
0.640644
878
5,841
4.113895
0.247153
0.055371
0.043189
0.026578
0.266058
0.223699
0.194075
0.168328
0.129568
0.107973
0
0.025371
0.203732
5,841
139
350
42.021583
0.751236
0.171375
0
0.092784
0
0
0.072049
0
0
0
0
0
0
1
0
false
0
0.061856
0
0.061856
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
1ae6cabe59971a540b46e4c4a87d2df6445846bf
1,764
py
Python
classic_tetris_project/migrations/0049_auto_20210417_2149.py
professor-l/classic-tetris-project
d171ab40c06b87ee945dce058babf2ed23dd3b88
[ "MIT" ]
17
2019-11-23T12:56:06.000Z
2022-02-05T21:48:00.000Z
classic_tetris_project/migrations/0049_auto_20210417_2149.py
professor-l/classic-tetris-project
d171ab40c06b87ee945dce058babf2ed23dd3b88
[ "MIT" ]
43
2019-10-03T20:16:11.000Z
2022-03-12T00:24:52.000Z
classic_tetris_project/migrations/0049_auto_20210417_2149.py
professor-l/classic-tetris-project
d171ab40c06b87ee945dce058babf2ed23dd3b88
[ "MIT" ]
17
2020-02-09T01:55:01.000Z
2021-11-12T21:16:50.000Z
# Generated by Django 3.1.3 on 2021-04-17 21:49 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('classic_tetris_project', '0048_auto_20210417_2147'), ] operations = [ migrations.AlterField( mo...
39.2
169
0.643424
178
1,764
6.213483
0.280899
0.0434
0.135624
0.157324
0.792043
0.792043
0.748644
0.748644
0.748644
0.748644
0
0.025964
0.235828
1,764
44
170
40.090909
0.79451
0.02551
0
0.631579
1
0
0.200349
0.117065
0
0
0
0
0
1
0
false
0
0.052632
0
0.131579
0
0
0
0
null
0
0
0
0
1
1
1
1
1
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
6
1aeb17134c4d4c2d75b4df148efa60829e65c86b
6,941
py
Python
PopUpKiller.py
debasishm89/OpenXMolar
268654d6665186a5c6725235fde28a8141d4310c
[ "BSD-3-Clause" ]
88
2017-05-12T03:53:28.000Z
2021-11-22T12:29:20.000Z
PopUpKiller.py
debasishm89/OpenXMolar
268654d6665186a5c6725235fde28a8141d4310c
[ "BSD-3-Clause" ]
1
2017-05-23T08:42:47.000Z
2017-09-26T16:02:42.000Z
PopUpKiller.py
debasishm89/OpenXMolar
268654d6665186a5c6725235fde28a8141d4310c
[ "BSD-3-Clause" ]
39
2017-05-12T03:53:30.000Z
2022-01-14T14:18:25.000Z
''' Copyright 2017 Debasish Mandal Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistr...
60.885965
755
0.724247
990
6,941
4.967677
0.247475
0.06405
0.076047
0.096787
0.658601
0.645181
0.639691
0.632168
0.632168
0.622611
0
0.037836
0.158479
6,941
113
756
61.424779
0.804143
0.02795
0
0.44186
0
0.011628
0.46554
0.004367
0
0
0
0
0
0
null
null
0.011628
0.034884
null
null
0.023256
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
2
1aeb67d97f0f649de1b16474a53ed6bd4c5ce0c0
3,445
py
Python
src/pycropml/main.py
brichet/PyCrop2ML
7177996f72a8d95fdbabb772a16f1fd87b1d033e
[ "MIT" ]
5
2020-06-21T18:58:04.000Z
2022-01-29T21:32:28.000Z
src/pycropml/main.py
brichet/PyCrop2ML
7177996f72a8d95fdbabb772a16f1fd87b1d033e
[ "MIT" ]
27
2018-12-04T15:35:44.000Z
2022-03-11T08:25:03.000Z
src/pycropml/main.py
brichet/PyCrop2ML
7177996f72a8d95fdbabb772a16f1fd87b1d033e
[ "MIT" ]
7
2019-04-20T02:25:22.000Z
2021-11-04T07:52:35.000Z
# -*- coding: utf-8 -*- """ Created on Tue Mar 19 22:59:23 2019 @author: pradal """ # coding: utf8 from __future__ import absolute_import from __future__ import print_function import sys import os from optparse import OptionParser from path import Path from pycropml.cyml import transpile_file, transpile_package, t...
24.607143
94
0.615094
420
3,445
4.961905
0.314286
0.026392
0.028791
0.025912
0.143474
0.143474
0.040307
0.040307
0.040307
0.040307
0
0.011038
0.289985
3,445
139
95
24.784173
0.840965
0.033962
0
0.25
0
0
0.328912
0
0.01
0
0
0.007194
0
1
0.01
false
0
0.08
0
0.12
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
1aec96771f903924f129d0d0d74d7863b0884618
188
py
Python
project/__init__.py
carlosasj/gauss-jordan
a5eedf5a175c966f9b402fa4baf8596e9abae369
[ "MIT" ]
null
null
null
project/__init__.py
carlosasj/gauss-jordan
a5eedf5a175c966f9b402fa4baf8596e9abae369
[ "MIT" ]
null
null
null
project/__init__.py
carlosasj/gauss-jordan
a5eedf5a175c966f9b402fa4baf8596e9abae369
[ "MIT" ]
null
null
null
# flake8: noqa from .entrypoint import prompt, do_gauss_jordan from .line import Line from .term import Term from .aux_functions import strip, to_term, iterable_to_matrix, file_to_matrix
26.857143
77
0.819149
30
188
4.866667
0.6
0.109589
0
0
0
0
0
0
0
0
0
0.006098
0.12766
188
6
78
31.333333
0.884146
0.06383
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
4
1aef95bf283d7fd58b467eb0379f7cc4a2f9650c
1,051
py
Python
Yotube Downloader.py
vishal8888a8/GUI-youtube-downloader
f1454da9534e4f40e84258b9600c0fe82cd0c39f
[ "MIT" ]
null
null
null
Yotube Downloader.py
vishal8888a8/GUI-youtube-downloader
f1454da9534e4f40e84258b9600c0fe82cd0c39f
[ "MIT" ]
1
2021-10-01T07:14:36.000Z
2021-10-01T07:14:36.000Z
Yotube Downloader.py
vishal8888a8/GUI-youtube-downloader
f1454da9534e4f40e84258b9600c0fe82cd0c39f
[ "MIT" ]
null
null
null
from pytube import YouTube from tkinter import * #main download part def download(link): obj = YouTube(link) dl = obj.streams.get_highest_resolution() print("Downloading in proccess") dl.download() print("Downloading completed!") #getting the link as string def get_class(): link...
23.355556
81
0.687916
148
1,051
4.858108
0.601351
0.025035
0.027816
0.038943
0
0
0
0
0
0
0
0.048276
0.172217
1,051
44
82
23.886364
0.778161
0.146527
0
0
0
0
0.17654
0
0
0
0
0
0
1
0.08
false
0
0.08
0
0.16
0.08
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1af162710ea23264c12a781050d3e701f3748534
49
py
Python
teste.py
Lnogue/pacman_puc
8f5987300dbe308e72d3d8393f7c3a10c787d8c6
[ "Apache-2.0" ]
null
null
null
teste.py
Lnogue/pacman_puc
8f5987300dbe308e72d3d8393f7c3a10c787d8c6
[ "Apache-2.0" ]
null
null
null
teste.py
Lnogue/pacman_puc
8f5987300dbe308e72d3d8393f7c3a10c787d8c6
[ "Apache-2.0" ]
null
null
null
print("testando") a = 2+2 b = 5 * 8 print (b-a)
8.166667
17
0.530612
11
49
2.363636
0.636364
0
0
0
0
0
0
0
0
0
0
0.108108
0.244898
49
6
18
8.166667
0.594595
0
0
0
0
0
0.16
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
4
1af1691e92bb7d127867247d896d5826bd54d447
3,583
py
Python
tarn/config.py
neuro-ml/tarn
07bf61d5ebec69cd5f44ef4766b774769281613f
[ "Apache-2.0" ]
null
null
null
tarn/config.py
neuro-ml/tarn
07bf61d5ebec69cd5f44ef4766b774769281613f
[ "Apache-2.0" ]
null
null
null
tarn/config.py
neuro-ml/tarn
07bf61d5ebec69cd5f44ef4766b774769281613f
[ "Apache-2.0" ]
null
null
null
import hashlib from functools import partial from pathlib import Path from typing import Union, Dict, Any, Tuple, Sequence import humanfriendly from pydantic import BaseModel, Extra, validator, root_validator from yaml import safe_load, safe_dump from .tools import Locker, DummyLocker, SizeTracker, DummySize, UsageTr...
26.738806
116
0.640246
457
3,583
4.87965
0.273523
0.017937
0.021525
0.01435
0.040359
0
0
0
0
0
0
0.001868
0.25314
3,583
133
117
26.93985
0.831465
0
0
0.081633
0
0
0.04326
0
0
0
0
0
0
1
0.153061
false
0
0.091837
0.040816
0.602041
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
1af28adf5e0279198bbb4dfd5d10357dd6366699
693
py
Python
CTF/home.py
mark0519/CTFplatform
5f9bc555cdc0e07f9ba31165a44b206e1a2bd915
[ "MIT" ]
9
2021-09-26T04:04:52.000Z
2022-03-30T16:37:38.000Z
CTF/home.py
mark0519/CTFplatform
5f9bc555cdc0e07f9ba31165a44b206e1a2bd915
[ "MIT" ]
null
null
null
CTF/home.py
mark0519/CTFplatform
5f9bc555cdc0e07f9ba31165a44b206e1a2bd915
[ "MIT" ]
null
null
null
from flask import ( Blueprint, flash, g, redirect, render_template, request, url_for,session ) from werkzeug.exceptions import abort from CTF import login from CTF.models import user bp = Blueprint('home', __name__) @bp.route('/') def index(): if 'id' in session: is_admin = 0 ...
25.666667
110
0.598846
86
693
4.662791
0.511628
0.069825
0.099751
0.119701
0.159601
0.159601
0
0
0
0
0
0.00789
0.268398
693
26
111
26.653846
0.783037
0.066378
0
0
0
0
0.073409
0
0
0
0
0
0
1
0.0625
false
0
0.25
0
0.4375
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1af37e5031f27006259d50bd37911e3e99b40d74
771
py
Python
nest_py/knoweng/data_types/public_gene_sets.py
KnowEnG/platform
7356fabf5e2db4171ef1f910514436b69ecaa701
[ "MIT" ]
2
2020-02-12T22:20:51.000Z
2020-07-31T03:19:51.000Z
nest_py/knoweng/data_types/public_gene_sets.py
KnowEnG/platform
7356fabf5e2db4171ef1f910514436b69ecaa701
[ "MIT" ]
1
2021-06-02T00:29:02.000Z
2021-06-02T00:29:02.000Z
nest_py/knoweng/data_types/public_gene_sets.py
KnowEnG/platform
7356fabf5e2db4171ef1f910514436b69ecaa701
[ "MIT" ]
1
2018-01-03T22:56:27.000Z
2018-01-03T22:56:27.000Z
""" A collection of public gene sets. """ from nest_py.core.data_types.tablelike_schema import TablelikeSchema COLLECTION_NAME = 'public_gene_sets' def generate_schema(): schema = TablelikeSchema(COLLECTION_NAME) schema.add_categoric_attribute('set_id', valid_values=None) schema.add_categoric_attribute('...
33.521739
72
0.787289
99
771
5.747475
0.363636
0.142355
0.189807
0.28471
0.45167
0.351494
0.295255
0
0
0
0
0
0.111543
771
22
73
35.045455
0.830657
0.042802
0
0
1
0
0.134431
0
0
0
0
0
0
1
0.071429
false
0
0.071429
0
0.214286
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
1af5bda8e49289017e6590164cdb0fa51ea9e014
690
py
Python
src/atcoder/abc126/f/sol_0.py
kagemeka/competitive-programming
c70fe481bcd518f507b885fc9234691d8ce63171
[ "MIT" ]
1
2021-07-11T03:20:10.000Z
2021-07-11T03:20:10.000Z
src/atcoder/abc126/f/sol_0.py
kagemeka/competitive-programming
c70fe481bcd518f507b885fc9234691d8ce63171
[ "MIT" ]
39
2021-07-10T05:21:09.000Z
2021-12-15T06:10:12.000Z
src/atcoder/abc126/f/sol_0.py
kagemeka/competitive-programming
c70fe481bcd518f507b885fc9234691d8ce63171
[ "MIT" ]
null
null
null
r"""Note. \forall{n \le 2}\ \xor_{i=0}^{2^n-1}{i} = 0 \xor_{0 \le i \lt 2^n, i \neq k (0 \le k \lt 2^n)}{i} = k """ import typing import sys # import numpy as np # import numba as nb def main() -> typing.NoReturn: m, k = map(int, input().split()) n = pow(2, m) if k >= n or m == k == 1: print(-...
18.157895
57
0.417391
125
690
2.288
0.32
0.020979
0.027972
0.034965
0.237762
0.153846
0.153846
0.153846
0.153846
0.153846
0
0.064439
0.392754
690
38
58
18.157895
0.618138
0.213043
0
0.333333
0
0
0
0
0
0
0
0
0
1
0.037037
false
0
0.074074
0
0.185185
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
1af64cc7d2783559a1fcbf8b02817ebd1b1093f4
572
py
Python
solutions/21.py
pacokwon/leetcode
37c943d371c106d1e6f24e065700e5edd1c3f9f9
[ "MIT" ]
2
2022-01-18T08:57:13.000Z
2022-01-18T15:49:06.000Z
solutions/21.py
pacokwon/leetcode
37c943d371c106d1e6f24e065700e5edd1c3f9f9
[ "MIT" ]
null
null
null
solutions/21.py
pacokwon/leetcode
37c943d371c106d1e6f24e065700e5edd1c3f9f9
[ "MIT" ]
null
null
null
# Merge Two Sorted Lists # Definition for singly-linked list. class ListNode: def __init__(self, val=0, next=None): self.val = val self.next = next class Solution: def mergeTwoLists(self, list1, list2): # base cases for recursion if list1 is None: return list2 ...
26
77
0.611888
71
572
4.873239
0.408451
0.060694
0.069364
0.144509
0
0
0
0
0
0
0
0.037688
0.304196
572
21
78
27.238095
0.831658
0.143357
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0
0
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
1af6926099c1d7d07976357c858e6720fbdd0e0b
565
py
Python
server/utils/cors.py
amirdib/dapp_dashboard
e3f556b20ea2d866300e7501f8c720dc0eb56f4b
[ "MIT" ]
null
null
null
server/utils/cors.py
amirdib/dapp_dashboard
e3f556b20ea2d866300e7501f8c720dc0eb56f4b
[ "MIT" ]
null
null
null
server/utils/cors.py
amirdib/dapp_dashboard
e3f556b20ea2d866300e7501f8c720dc0eb56f4b
[ "MIT" ]
null
null
null
from bottle import response, request def enable_cors(func): def _enable_cors(*args, **kwargs): # Set CORS headers response.headers['Access-Control-Allow-Origin'] = '*' response.headers['Access-Control-Allow-Methods'] = 'GET, POST, PUT, OPTIONS' response.headers['Access-Control-Allo...
35.3125
121
0.654867
67
565
5.447761
0.537313
0.082192
0.172603
0.230137
0.271233
0
0
0
0
0
0
0
0.217699
565
15
122
37.666667
0.825792
0.111504
0
0
0
0
0.348697
0.166333
0
0
0
0
0
1
0.222222
false
0
0.111111
0
0.555556
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
1
0
0
3
1af6c73c4393c2fe75719524db1ca5b86014c72d
2,367
py
Python
TerminalStory/Jack.py
TomlinsonJ03/4006CEM-Mini-Project
ac2ebcfa5793475d7bfb074034b5aa23cfd1858e
[ "CC0-1.0" ]
null
null
null
TerminalStory/Jack.py
TomlinsonJ03/4006CEM-Mini-Project
ac2ebcfa5793475d7bfb074034b5aa23cfd1858e
[ "CC0-1.0" ]
null
null
null
TerminalStory/Jack.py
TomlinsonJ03/4006CEM-Mini-Project
ac2ebcfa5793475d7bfb074034b5aa23cfd1858e
[ "CC0-1.0" ]
null
null
null
# Entering the Basement def basement(): print(""" I will walk into the basement, there seems to be a robot there, working hard it seems. They don’t see the things the way I do, it exclaimed. I wander what it means, see what? Maybe I will approach it and find out. It seems to be working on some kind o...
62.289474
167
0.709759
402
2,367
4.179104
0.5
0.057143
0.025
0
0
0
0
0
0
0
0
0.002233
0.243346
2,367
38
168
62.289474
0.93579
0.024926
0
0.193548
0
0.387097
0.895445
0
0
0
0
0
0
1
0.096774
false
0.064516
0
0
0.096774
0.16129
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
3
1af76e4e7a0a82e41649df04479da4599f2c15bd
1,221
py
Python
nlp/document1.py
innaiivanova/chatbot
03ed98dfc24b36620db96094e8970a48010a9379
[ "MIT" ]
null
null
null
nlp/document1.py
innaiivanova/chatbot
03ed98dfc24b36620db96094e8970a48010a9379
[ "MIT" ]
null
null
null
nlp/document1.py
innaiivanova/chatbot
03ed98dfc24b36620db96094e8970a48010a9379
[ "MIT" ]
null
null
null
# Codecademy's training document works with Markov_chains.py # Inna I. Ivanova training_doc1 = """ "Like A Virgin" Madonna Lyrics I made it through the wilderness Somehow I made it through Didn't know how lost I was until I found you I was beat, incomplete, I'd been had I was sad and blue, but you made me feel Yeah,...
23.037736
60
0.758395
247
1,221
3.740891
0.421053
0.048701
0.107143
0.056277
0.344156
0.323593
0.323593
0.323593
0.27381
0.168831
0
0.00103
0.20475
1,221
52
61
23.480769
0.950566
0.060606
0
0.384615
0
0
0.977273
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1af8dccc6477e942a760e2ea57872e651c435eaf
6,750
py
Python
entities/views.py
gve-sw/UserFeedbackSampleWebexTeamsBot
01f62826a559cb47a6417bd677ab874e16bd41de
[ "RSA-MD" ]
1
2021-08-05T21:51:03.000Z
2021-08-05T21:51:03.000Z
entities/views.py
gve-sw/UserFeedbackSampleWebexTeamsBot
01f62826a559cb47a6417bd677ab874e16bd41de
[ "RSA-MD" ]
6
2020-06-15T21:10:38.000Z
2021-06-04T23:26:58.000Z
entities/views.py
gve-sw/UserFeedbackSampleWebexTeamsBot
01f62826a559cb47a6417bd677ab874e16bd41de
[ "RSA-MD" ]
null
null
null
import tempfile import xlsxwriter import re from django.shortcuts import render, redirect, get_object_or_404 from django.views import View from django.conf import settings from django.http import HttpResponse from django.contrib import messages from .models import QuestionSet, Question, ReplySet, Reply, Receiver from...
29.220779
126
0.588
743
6,750
5.208614
0.258412
0.036951
0.015504
0.021705
0.216021
0.174677
0.128165
0.09509
0.060465
0.060465
0
0.004922
0.307704
6,750
231
127
29.220779
0.82324
0.030074
0
0.234177
0
0
0.097263
0.032727
0
0
0
0
0
1
0.075949
false
0
0.088608
0.006329
0.297468
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
1afa1cafd42c2fcb955da6a363de7724c6371157
1,494
py
Python
test/test.py
Nix-code/Onsite-Health-Diagnostic-OHD-
70e6e401029981276479b4186b0ed8cb1fb703ac
[ "MIT" ]
2
2022-02-03T05:50:32.000Z
2022-03-23T03:15:40.000Z
test/test.py
Nix-code/Onsite-Health-Diagnostic-OHD-
70e6e401029981276479b4186b0ed8cb1fb703ac
[ "MIT" ]
null
null
null
test/test.py
Nix-code/Onsite-Health-Diagnostic-OHD-
70e6e401029981276479b4186b0ed8cb1fb703ac
[ "MIT" ]
1
2022-02-03T07:14:41.000Z
2022-02-03T07:14:41.000Z
from main import app import unittest import pytest class TestToPerform(unittest.TestCase): def setUp(self): pass self.app=app.test_client() def test_page(self): response0=self.app.get("/",follow_redirects=True) print(response0) self.assertEqual(response0.status_...
32.478261
69
0.670683
171
1,494
5.649123
0.239766
0.057971
0.07971
0.173913
0.149068
0.149068
0
0
0
0
0
0.036145
0.222222
1,494
46
70
32.478261
0.795181
0
0
0
0
0
0.04214
0
0
0
0
0
0.189189
1
0.216216
false
0.027027
0.081081
0
0.324324
0.189189
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
1afa4f92d9ead6a0daa884c3ac378f4d63bb1ab1
4,256
py
Python
utils/pyart.py
terry97-guel/POENet-MultiTracking
f5a1bf99749c62cdbce50f1e2997a2b3cf32e749
[ "MIT" ]
null
null
null
utils/pyart.py
terry97-guel/POENet-MultiTracking
f5a1bf99749c62cdbce50f1e2997a2b3cf32e749
[ "MIT" ]
null
null
null
utils/pyart.py
terry97-guel/POENet-MultiTracking
f5a1bf99749c62cdbce50f1e2997a2b3cf32e749
[ "MIT" ]
null
null
null
import torch # def expm(vector): # if vector.shape[0] == 6: # return to_SE3(vector) # if vector.shape[0] == 4: # return to_SO3(vector) def t2pr(t): p = t[:,0:3,3] r = t[:,0:3,0:3] return (p,r) def t2p(t): device = t.device p = t[:,0:3,3] return p def pr2x(p,r): dev...
26.110429
112
0.546523
728
4,256
3.142857
0.127747
0.016608
0.045892
0.05201
0.456731
0.251748
0.238199
0.176573
0.109266
0.054196
0
0.047546
0.234023
4,256
163
113
26.110429
0.654294
0.087171
0
0.20354
0
0
0.012907
0
0
0
0
0
0
1
0.097345
false
0
0.00885
0
0.212389
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
1afb2889435df1e35545b9d49b108b145645f238
1,903
py
Python
dymos/transcriptions/common/timeseries_output_comp.py
yonghoonlee/dymos
602109eee4a1b061444dd2b45c7b1ed0ac1aa0f4
[ "Apache-2.0" ]
null
null
null
dymos/transcriptions/common/timeseries_output_comp.py
yonghoonlee/dymos
602109eee4a1b061444dd2b45c7b1ed0ac1aa0f4
[ "Apache-2.0" ]
9
2021-05-24T15:14:37.000Z
2021-06-28T21:12:55.000Z
dymos/transcriptions/common/timeseries_output_comp.py
yonghoonlee/dymos
602109eee4a1b061444dd2b45c7b1ed0ac1aa0f4
[ "Apache-2.0" ]
null
null
null
import openmdao.api as om from ...transcriptions.grid_data import GridData from ...options import options as dymos_options class TimeseriesOutputCompBase(om.ExplicitComponent): """ Class definition of the TimeseriesOutputCompBase. TimeseriesOutputComp collects variable values from the phase and provides...
38.836735
99
0.624277
203
1,903
5.729064
0.522167
0.020636
0.046432
0.036114
0.05675
0.05675
0.05675
0
0
0
0
0
0.308986
1,903
48
100
39.645833
0.884411
0.368891
0
0.090909
0
0
0.21123
0.019608
0
0
0
0
0
1
0.090909
false
0
0.136364
0
0.272727
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1afb84941b693d8555e01b585defdf5fe070f8ff
7,359
py
Python
facenet/config.py
sMedX/facenet
2a86255bded9da94031488b41250a6cef703e05b
[ "MIT" ]
2
2020-01-11T07:48:23.000Z
2021-05-25T01:25:05.000Z
facenet/config.py
RuslanKosarev/FaceNet
53aad2497982b1543e3a566c621f9f1d98fca58c
[ "MIT" ]
null
null
null
facenet/config.py
RuslanKosarev/FaceNet
53aad2497982b1543e3a566c621f9f1d98fca58c
[ "MIT" ]
2
2021-01-04T21:14:56.000Z
2021-06-30T09:47:48.000Z
# coding: utf-8 __author__ = 'Ruslan N. Kosarev' import sys from pathlib import Path from datetime import datetime from omegaconf import OmegaConf import random import numpy as np import tensorflow as tf from facenet import ioutils # directory for default configs default_config_dir = Path(__file__).parents[0].join...
27.561798
91
0.66259
1,012
7,359
4.641304
0.177866
0.028316
0.044496
0.042155
0.483287
0.444326
0.433468
0.385991
0.373217
0.373217
0
0.002124
0.232233
7,359
266
92
27.665414
0.829204
0.141459
0
0.282051
0
0
0.076308
0.011678
0
0
0
0
0
1
0.115385
false
0.00641
0.051282
0.032051
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
1afbe1138d8039a8a05a95b59450d11623814fb8
1,861
py
Python
final_plots/dockless_geographic_overlap.py
georgetown-analytics/DC-Bikeshare
9f5a6a3256cff15a29f0dca6e9a9d8098ab2df28
[ "MIT" ]
11
2018-07-01T16:43:05.000Z
2020-07-17T19:08:16.000Z
final_plots/dockless_geographic_overlap.py
noahnewberger/Bikeshare-DC
42676654d103cdaddfb76db76d1eece533251261
[ "MIT" ]
5
2021-02-08T20:21:12.000Z
2021-12-13T19:47:04.000Z
final_plots/dockless_geographic_overlap.py
noahnewberger/Bikeshare-DC
42676654d103cdaddfb76db76d1eece533251261
[ "MIT" ]
5
2018-10-05T19:54:20.000Z
2020-10-27T11:54:09.000Z
from dockless_exploration_graphs import * if __name__ == '__main__': conn = read_only_connect_aws() # Geographic Overlap by Operator Over Time try: os.mkdir('./Load Graphs') except FileExistsError: pass load_path = './Load Graphs/' google_drive_location = '1LRJWj6wLBWvyBJbN93jXA...
38.770833
86
0.554541
212
1,861
4.523585
0.471698
0.08342
0.067779
0.056309
0.20438
0.20438
0.131387
0.079249
0
0
0
0.013412
0.358947
1,861
47
87
39.595745
0.790444
0.083289
0
0
0
0
0.578483
0.082305
0
0
0
0
0
1
0
false
0.02439
0.02439
0
0.02439
0.02439
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1afc08a384a7ee7e3eeae536e4a9148486c80e17
914
py
Python
hpimdm/tree/local_membership.py
pedrofran12/hpim_dm
fe949294b5e75ab544dcd40ff51ceafc1d3b2f0c
[ "MIT" ]
1
2020-02-04T20:59:03.000Z
2020-02-04T20:59:03.000Z
hpimdm/tree/local_membership.py
pedrofran12/hpim_dm
fe949294b5e75ab544dcd40ff51ceafc1d3b2f0c
[ "MIT" ]
3
2020-06-09T16:37:01.000Z
2021-08-30T00:31:12.000Z
hpimdm/tree/local_membership.py
pedrofran12/hpim_dm
fe949294b5e75ab544dcd40ff51ceafc1d3b2f0c
[ "MIT" ]
1
2020-11-23T06:47:46.000Z
2020-11-23T06:47:46.000Z
from abc import ABCMeta, abstractmethod class LocalMembershipStateABC(metaclass=ABCMeta): @staticmethod @abstractmethod def has_members(): """ Determine if this state considers to have hosts interested in receiving data packets """ raise NotImplementedError class NoInfo(L...
22.292683
92
0.655361
89
914
6.606742
0.393258
0.030612
0.066327
0.112245
0.573129
0.573129
0.573129
0.573129
0.573129
0.573129
0
0
0.277899
914
40
93
22.85
0.890909
0.277899
0
0.380952
0
0
0.022034
0
0
0
0
0
0
1
0.238095
false
0
0.047619
0.095238
0.761905
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
1
0
0
2
1afce6c555ebff3d7d4b28bd273f9016e9d8daa2
744
py
Python
test/demo1.py
runawayhorse001/PySparkAudit
a7981bff0d3d8ab4568bbd4c61c57c4b30f74c2f
[ "MIT" ]
7
2019-07-11T02:30:31.000Z
2022-01-27T08:07:22.000Z
test/demo1.py
runawayhorse001/PySparkAudit
a7981bff0d3d8ab4568bbd4c61c57c4b30f74c2f
[ "MIT" ]
null
null
null
test/demo1.py
runawayhorse001/PySparkAudit
a7981bff0d3d8ab4568bbd4c61c57c4b30f74c2f
[ "MIT" ]
6
2020-10-19T08:46:17.000Z
2022-02-09T01:32:38.000Z
from pyspark.sql import SparkSession spark = SparkSession \ .builder \ .appName("Python Spark regression example") \ .config("spark.some.config.option", "some-value") \ .getOrCreate() # import PySpark Audit functions from PySparkAudit import data_types, hist_plot, bar_plot, freq_items,feature_len fro...
25.655172
93
0.735215
96
744
5.59375
0.583333
0.089385
0.122905
0
0
0
0
0
0
0
0
0.001605
0.162634
744
28
94
26.571429
0.860353
0.182796
0
0
0
0
0.133111
0.039933
0
0
0
0
0
1
0
false
0
0.285714
0
0.285714
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
1aff15182dcbf6a79732990cf8083b8988bcdd75
2,554
py
Python
setup.py
JarryShaw/ptyng
b15747114ffaf7eeae92f7508fbefc4db4fab11e
[ "PSF-2.0" ]
1
2019-06-27T12:28:25.000Z
2019-06-27T12:28:25.000Z
setup.py
JarryShaw/ptyng
b15747114ffaf7eeae92f7508fbefc4db4fab11e
[ "PSF-2.0" ]
1
2020-05-31T08:52:00.000Z
2020-05-31T08:55:47.000Z
setup.py
JarryShaw/ptyng
b15747114ffaf7eeae92f7508fbefc4db4fab11e
[ "PSF-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import print_function import os import sys try: from setuptools import setup except ImportError: from distutils.core import setup if sys.version_info[:2] < (3, 4): import subprocess32 as subprocess else: import subprocess try: import pty # pylint: disabl...
28.696629
83
0.608849
273
2,554
5.578755
0.490842
0.087328
0.114905
0.085358
0.060407
0.060407
0
0
0
0
0
0.022408
0.24863
2,554
88
84
29.022727
0.771235
0.048943
0
0.150685
0
0.013699
0.342692
0.011974
0
0
0
0
0
1
0
false
0
0.136986
0
0.136986
0.013699
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
21012dbb9efba5f433744edaaad9dbf69569d85a
9,118
py
Python
mtdata/main.py
thammegowda/mtdata
9064629d8e4dd46cf0f7f793dbc17fd0f770649f
[ "Apache-2.0" ]
81
2020-04-07T02:55:39.000Z
2022-03-30T05:28:58.000Z
mtdata/main.py
thammegowda/mtdata
9064629d8e4dd46cf0f7f793dbc17fd0f770649f
[ "Apache-2.0" ]
77
2020-04-07T19:53:48.000Z
2022-03-22T18:41:08.000Z
mtdata/main.py
thammegowda/mtdata
9064629d8e4dd46cf0f7f793dbc17fd0f770649f
[ "Apache-2.0" ]
6
2020-04-16T22:21:19.000Z
2022-02-07T20:52:15.000Z
#!/usr/bin/env python # # Author: Thamme Gowda [tg (at) isi (dot) edu] # Created: 4/4/20 import argparse from pathlib import Path from collections import defaultdict import mtdata from mtdata import log, __version__, cache_dir as CACHE_DIR, cached_index_file from mtdata.entry import DatasetId, LangPair from mtdata.ut...
46.284264
116
0.641259
1,296
9,118
4.341049
0.243827
0.041059
0.040526
0.02133
0.221294
0.185212
0.166904
0.139353
0.129399
0.129399
0
0.006674
0.211231
9,118
196
117
46.520408
0.775445
0.008993
0
0.055901
0
0.006211
0.323738
0.021479
0
0
0
0
0.006211
1
0.055901
false
0
0.068323
0
0.15528
0.055901
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
21031888ae60afb1eb930da2ee6539160ee0da47
3,767
py
Python
ch6/02-himmelblau.py
mbassale/genetic-algorithms-books
7c2c5f78d715b1b8b345ef4512a9dcfac1889d92
[ "MIT" ]
1
2021-10-14T03:37:07.000Z
2021-10-14T03:37:07.000Z
ch6/02-himmelblau.py
mbassale/genetic-algorithms-books
7c2c5f78d715b1b8b345ef4512a9dcfac1889d92
[ "MIT" ]
null
null
null
ch6/02-himmelblau.py
mbassale/genetic-algorithms-books
7c2c5f78d715b1b8b345ef4512a9dcfac1889d92
[ "MIT" ]
null
null
null
from deap import base from deap import creator from deap import tools import random import numpy as np import matplotlib.pyplot as plt import seaborn as sns import elitism # problem constants DIMENSIONS = 2 BOUND_LOW, BOUND_HIGH = -5.0, 5.0 # Genetic Algorithm Constants POPULATION_SIZE = 300 P_CROSSOVER = 0.9 P_MUT...
31.923729
118
0.70799
497
3,767
5.287726
0.376258
0.039954
0.015221
0.015982
0.02968
0.02968
0.02968
0.02968
0.02968
0
0
0.028939
0.174409
3,767
117
119
32.196581
0.816077
0.225378
0
0
0
0
0.093232
0
0
0
0
0
0
1
0.046154
false
0
0.123077
0.015385
0.2
0.061538
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
21051731e91dcd2bb0223e9b235777805c632b49
20,025
py
Python
utils.py
QuickLearner171998/Retrosynthesis-Reaction-Pathway
78011c94a9bfd9630b0240c966fe358efa183817
[ "MIT" ]
4
2020-06-23T20:47:31.000Z
2022-01-06T07:01:06.000Z
utils.py
QuickLearner171998/Retrosynthesis-Reaction-Pathway
78011c94a9bfd9630b0240c966fe358efa183817
[ "MIT" ]
null
null
null
utils.py
QuickLearner171998/Retrosynthesis-Reaction-Pathway
78011c94a9bfd9630b0240c966fe358efa183817
[ "MIT" ]
null
null
null
from __future__ import unicode_literals from itertools import repeat from onmt.utils.logging import init_logger from onmt.utils.misc import split_corpus from onmt.translate.translator import build_translator import onmt.opts as opts from onmt.utils.parse import ArgumentParser import pandas as pd import numpy as np ...
37.640977
141
0.661923
2,522
20,025
5.109437
0.190325
0.018625
0.009312
0.013193
0.131228
0.088856
0.045088
0.023902
0.019711
0.014589
0
0.009146
0.262871
20,025
531
142
37.711864
0.86383
0.313458
0
0.154605
0
0
0.092101
0.016266
0
0
0
0
0
1
0.108553
false
0
0.039474
0.006579
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
21056749b82e52d6799015dcaa1da9696577b10d
2,051
py
Python
src/278.first-bad-version.py
wisesky/LeetCode-Practice
65549f72c565d9f11641c86d6cef9c7988805817
[ "MIT" ]
null
null
null
src/278.first-bad-version.py
wisesky/LeetCode-Practice
65549f72c565d9f11641c86d6cef9c7988805817
[ "MIT" ]
null
null
null
src/278.first-bad-version.py
wisesky/LeetCode-Practice
65549f72c565d9f11641c86d6cef9c7988805817
[ "MIT" ]
null
null
null
# # @lc app=leetcode id=278 lang=python3 # # [278] First Bad Version # # https://leetcode.com/problems/first-bad-version/description/ # # algorithms # Easy (38.48%) # Likes: 2518 # Dislikes: 907 # Total Accepted: 609.3K # Total Submissions: 1.6M # Testcase Example: '5\n4' # # You are a product manager and curren...
21.819149
79
0.577279
288
2,051
4.111111
0.444444
0.027027
0.050676
0.030405
0.106419
0.091216
0.091216
0.091216
0.091216
0.091216
0
0.038163
0.310093
2,051
93
80
22.053763
0.798587
0.648952
0
0.631579
0
0
0
0
0
0
0
0
0
1
0.105263
false
0
0
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
210693b9ec3b9f3189d565efa51e605d1e16d8d3
3,311
py
Python
src/genie/libs/parser/iosxe/tests/ShowBgpAllDetail/cli/equal/golden_output4_expected.py
jmedina0911/genieparser
2fcd6d3e44891551af4b9d05e2c053218ee25c32
[ "Apache-2.0" ]
null
null
null
src/genie/libs/parser/iosxe/tests/ShowBgpAllDetail/cli/equal/golden_output4_expected.py
jmedina0911/genieparser
2fcd6d3e44891551af4b9d05e2c053218ee25c32
[ "Apache-2.0" ]
null
null
null
src/genie/libs/parser/iosxe/tests/ShowBgpAllDetail/cli/equal/golden_output4_expected.py
jmedina0911/genieparser
2fcd6d3e44891551af4b9d05e2c053218ee25c32
[ "Apache-2.0" ]
null
null
null
expected_output = { "instance": { "default": { "vrf": { "vrf1": { "address_family": { "": { "default_vrf": "vrf1", "prefixes": { "0.0.0.0/0": { ...
53.403226
111
0.231048
187
3,311
3.909091
0.385027
0.021888
0.024624
0.021888
0.372093
0.218878
0.218878
0.218878
0.218878
0.218878
0
0.202752
0.670794
3,311
61
112
54.278689
0.46789
0
0
0.196721
0
0.016393
0.245545
0.007853
0
0
0.000906
0
0
1
0
false
0
0.016393
0
0.016393
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
1
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
3
2106ccd5f086c4f96cc3faf88075f464b717e3da
946
py
Python
solidity/python/constants/PrintLn2ScalingFactors.py
dabdevelop/bancorprotocol-contracts
53894df7f4c31828188b11c9a974da6413579799
[ "Apache-2.0" ]
null
null
null
solidity/python/constants/PrintLn2ScalingFactors.py
dabdevelop/bancorprotocol-contracts
53894df7f4c31828188b11c9a974da6413579799
[ "Apache-2.0" ]
null
null
null
solidity/python/constants/PrintLn2ScalingFactors.py
dabdevelop/bancorprotocol-contracts
53894df7f4c31828188b11c9a974da6413579799
[ "Apache-2.0" ]
null
null
null
from decimal import Decimal from decimal import getcontext from decimal import ROUND_FLOOR from decimal import ROUND_CEILING MIN_PRECISION = 32 MAX_PRECISION = 127 def ln(n): return Decimal(n).ln() def log2(n): return ln(n)/ln(2) def floor(d): return int(d.to_integral_exact(rounding=ROUND_FLOOR)) ...
23.073171
88
0.735729
144
946
4.597222
0.263889
0.084592
0.102719
0.066465
0.178248
0.117825
0.117825
0.117825
0.117825
0
0
0.055351
0.140592
946
40
89
23.65
0.758918
0
0
0
0
0
0.159619
0
0
0
0
0
0
0
null
null
0
0.181818
null
null
0.136364
0
0
0
null
0
0
0
0
0
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
21083999666e34e81d53e1e46a462a334f367467
496
py
Python
rest_api/form.py
olaneat/project
7db7ee6a93fa4607ee81cbc4b8c508b4c0850cc0
[ "MIT" ]
null
null
null
rest_api/form.py
olaneat/project
7db7ee6a93fa4607ee81cbc4b8c508b4c0850cc0
[ "MIT" ]
null
null
null
rest_api/form.py
olaneat/project
7db7ee6a93fa4607ee81cbc4b8c508b4c0850cc0
[ "MIT" ]
null
null
null
from django import forms from django.contrib.auth.forms import UserCreationForm from django.contrib.auth.models import User def SignUpForm(UserCreationForm): first_name = forms.CharField(max_length = 50, required = True) last_name = forms.CharField(max_length = 50, required = True) email = forms.EmailField(max_len...
38.153846
90
0.752016
65
496
5.615385
0.523077
0.082192
0.093151
0.115068
0.224658
0.224658
0.224658
0.224658
0
0
0
0.021028
0.137097
496
13
91
38.153846
0.831776
0
0
0
0
0
0.162978
0
0
0
0
0
0
1
0.1
false
0.1
0.3
0
0.7
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
21087231d394eadd113671e581a3ce0916c09477
711
py
Python
checkin.py
PPKunOffical/SAuto_Checkin
0cb4b3dce4483d9754fa13e1cdce613c5aaa861a
[ "MIT" ]
1
2020-07-10T04:34:20.000Z
2020-07-10T04:34:20.000Z
checkin.py
PPKunOffical/SAuto_Checkin
0cb4b3dce4483d9754fa13e1cdce613c5aaa861a
[ "MIT" ]
null
null
null
checkin.py
PPKunOffical/SAuto_Checkin
0cb4b3dce4483d9754fa13e1cdce613c5aaa861a
[ "MIT" ]
null
null
null
from fake_useragent import UserAgent import requests,json accouts=json.loads(open("./accouts.json", mode='r').read()) ua = UserAgent() for i in accouts["sp"]: print("--------"+i["name"]+"----------") checkin_url=i["url"]["cu"] login_url=i["url"]["lu"] login_data={ "email":i["ac"]["u"], "passwd":i["ac"]["p"]...
27.346154
97
0.663854
100
711
4.6
0.47
0.065217
0.030435
0.117391
0.173913
0.173913
0
0
0
0
0
0
0.102672
711
25
98
28.44
0.721003
0
0
0
0
0
0.189873
0
0
0
0
0
0
1
0
false
0.041667
0.083333
0
0.083333
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
2109339d104ffd306d701e278e5cda2613de7b4e
5,275
py
Python
tests/other/region_counts_test.py
himanshur-dev/ribopy
78846e4140a7aa7b4dc995f39606577efaaf0831
[ "MIT" ]
4
2020-01-14T01:01:36.000Z
2022-03-21T16:30:24.000Z
tests/other/region_counts_test.py
himanshur-dev/ribopy
78846e4140a7aa7b4dc995f39606577efaaf0831
[ "MIT" ]
9
2019-12-17T20:45:08.000Z
2021-12-15T22:34:06.000Z
tests/other/region_counts_test.py
himanshur-dev/ribopy
78846e4140a7aa7b4dc995f39606577efaaf0831
[ "MIT" ]
3
2019-12-14T17:51:53.000Z
2022-01-12T16:09:45.000Z
# -*- coding: utf-8 -*- import unittest import os from io import StringIO, BytesIO import numpy as np import h5py from ribopy import create from ribopy.core.coverage import find_coverage from ribopy.core.region_counts import get_extended_boundaries,\ find_region_counts fro...
30.316092
73
0.558104
743
5,275
3.703903
0.18035
0.041424
0.034884
0.032703
0.239099
0.177326
0.146802
0.135174
0.135174
0.135174
0
0.11595
0.303507
5,275
173
74
30.491329
0.633097
0.022938
0
0.121951
0
0
0.002992
0
0
0
0
0
0.02439
1
0.060976
false
0
0.146341
0
0.231707
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
21094a27f6a61b92806b91b96d68de3d54b60d40
18,128
py
Python
python/openapi_client/model/tokenize_response_schema.py
Mastercard/mcapi_oauth_encryption_tutorial
0c24f778ad57a867eefd8aad44466a49f3f89826
[ "MIT" ]
26
2019-08-15T10:48:16.000Z
2022-03-03T21:57:52.000Z
python/openapi_client/model/tokenize_response_schema.py
Mastercard/mcapi_oauth_encryption_tutorial
0c24f778ad57a867eefd8aad44466a49f3f89826
[ "MIT" ]
12
2019-12-30T08:36:00.000Z
2022-03-29T22:37:50.000Z
python/openapi_client/model/tokenize_response_schema.py
Mastercard/mcapi_oauth_encryption_tutorial
0c24f778ad57a867eefd8aad44466a49f3f89826
[ "MIT" ]
36
2019-08-14T14:27:35.000Z
2022-02-13T18:02:36.000Z
""" MDES Digital Enablement API These APIs are designed as RPC style stateless web services where each API endpoint represents an operation to be performed. All request and response payloads are sent in the JSON (JavaScript Object Notation) data-interchange format. Each endpoint in the API specifies the HTTP ...
58.477419
2,146
0.63333
2,100
18,128
5.29
0.192857
0.031686
0.028805
0.017823
0.663246
0.649113
0.643982
0.63156
0.63156
0.63156
0
0.012409
0.306487
18,128
309
2,147
58.666667
0.871222
0.61656
0
0.412162
0
0
0.18502
0.059193
0
0
0
0
0
1
0.040541
false
0.013514
0.081081
0.006757
0.202703
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
210994d12c7c32a5ccc26983eed7d7e69f44ad3b
523
py
Python
share/smack/svcomp/token_replace.py
Guoanshisb/smack
6fee210b1cb272cb9f596ea53e08935c159ec2f2
[ "MIT" ]
317
2015-01-06T19:12:11.000Z
2022-03-27T06:29:52.000Z
share/smack/svcomp/token_replace.py
Guoanshisb/smack
6fee210b1cb272cb9f596ea53e08935c159ec2f2
[ "MIT" ]
565
2015-01-15T17:16:10.000Z
2022-03-31T23:22:38.000Z
share/smack/svcomp/token_replace.py
Guoanshisb/smack
6fee210b1cb272cb9f596ea53e08935c159ec2f2
[ "MIT" ]
101
2015-02-01T21:01:47.000Z
2022-02-23T10:41:36.000Z
import re def beforeTokenReplace(inputStr): inputStr = inputStr.replace('SSLv3_server_data.ssl_accept = & ssl3_accept;','SSLv3_server_data.ssl_accept = +0;') inputStr = inputStr.replace('void exit(int s)','void exitxxx(int s)') inputStr = inputStr.replace('100000','10') return inputStr def afterTokenReplace(t...
40.230769
118
0.736138
72
523
5.111111
0.416667
0.173913
0.1875
0.097826
0.304348
0.173913
0.173913
0.173913
0.173913
0
0
0.029661
0.097514
523
12
119
43.583333
0.75
0
0
0
0
0
0.460803
0.275335
0
0
0
0
0
1
0.2
false
0
0.1
0
0.5
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
210a16816dfc37d98888318c6069384ca9683011
6,377
py
Python
src/tests/test_entity_recognition.py
hutomadotAI/entity_recogniser
6390c65190b826fb98bc3505f41f3f0ce6837ef9
[ "Apache-2.0" ]
4
2019-06-01T12:28:28.000Z
2020-09-29T21:01:17.000Z
src/tests/test_entity_recognition.py
hutomadotAI/entity_recogniser
6390c65190b826fb98bc3505f41f3f0ce6837ef9
[ "Apache-2.0" ]
null
null
null
src/tests/test_entity_recognition.py
hutomadotAI/entity_recogniser
6390c65190b826fb98bc3505f41f3f0ce6837ef9
[ "Apache-2.0" ]
1
2020-08-19T19:28:55.000Z
2020-08-19T19:28:55.000Z
# flake8: noqa import pytest import hu_entity.spacy_wrapper @pytest.fixture(scope="module") def spacy_wrapper(): """EntityRecognizerServer takes ages to initialize, so define a single EntityRecognizerServer which will be reused in every test""" server = hu_entity.spacy_wrapper.SpacyWrapper(minimal_ers_mo...
31.569307
97
0.708327
856
6,377
5.009346
0.139019
0.209888
0.071362
0.08722
0.667444
0.66278
0.66278
0.66278
0.539179
0.468983
0
0.021588
0.186451
6,377
201
98
31.726368
0.804934
0.021797
0
0.465409
0
0
0.090748
0
0
0
0
0
0.578616
1
0.113208
false
0
0.012579
0
0.132075
0.069182
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
1
0
0
0
0
0
0
0
0
0
2
210ba069336ddf00cd66106d81ef2dad2dadafb5
5,974
py
Python
src/pg_cluster_monitor/monitor/cluster_monitor.py
treshnikov/pgClusterMonitor
e8fd765f08e5813805af0c23ce32e4cc92b5c862
[ "MIT" ]
1
2020-10-11T17:17:44.000Z
2020-10-11T17:17:44.000Z
src/pg_cluster_monitor/monitor/cluster_monitor.py
treshnikov/pgClusterMonitor
e8fd765f08e5813805af0c23ce32e4cc92b5c862
[ "MIT" ]
null
null
null
src/pg_cluster_monitor/monitor/cluster_monitor.py
treshnikov/pgClusterMonitor
e8fd765f08e5813805af0c23ce32e4cc92b5c862
[ "MIT" ]
1
2020-12-06T19:50:45.000Z
2020-12-06T19:50:45.000Z
import time import logging from cluster.cluster import DbCluster from monitor.master_db_handler import MasterDbHandler from monitor.standby_db_handler import StandbyDbHandler from cluster.cluster_node_role import DbRole from monitor.webserver import WebServer from utils import shell from threading import Lock class D...
51.5
148
0.713927
784
5,974
5.084184
0.1875
0.052684
0.089563
0.055193
0.435273
0.275464
0.163573
0.056197
0.024084
0
0
0
0.21376
5,974
115
149
51.947826
0.848627
0.101942
0
0.034884
0
0
0.181049
0.082158
0
0
0
0
0
1
0.069767
false
0
0.104651
0
0.255814
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
2110fd52c369e5111db44d65f86e48747bfe58c4
2,012
py
Python
misc.py
geoign/xyppy
8445d361417bfa7bcf3dd818e47fff89f78cfe7f
[ "MIT" ]
null
null
null
misc.py
geoign/xyppy
8445d361417bfa7bcf3dd818e47fff89f78cfe7f
[ "MIT" ]
null
null
null
misc.py
geoign/xyppy
8445d361417bfa7bcf3dd818e47fff89f78cfe7f
[ "MIT" ]
null
null
null
#!/usr/bin/env python #coding: UTF-8 import os, glob, numpy, gdal from math import * class Escape(Exception): pass def nearest1D(self, X,xn): X = numpy.array(X) idx = (X - xn).argmin() distance = abs(X[idx] - xn) return idx, distance def nearest2D(self, XY, x,y): distances = (XY[:,0] - x)**2 + (X...
35.298246
75
0.59493
331
2,012
3.616314
0.268882
0.017544
0.020886
0.025063
0.625731
0.621554
0.598162
0.598162
0.544695
0.517962
0
0.03879
0.244036
2,012
57
76
35.298246
0.748192
0.173956
0
0.355556
0
0
0.025455
0
0
0
0
0
0
0
null
null
0.022222
0.044444
null
null
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
1
0
0
0
0
0
0
0
0
1
21116b4e5b8b9dd8e7a148b04c22f971517ce437
52
py
Python
{{ cookiecutter.repo_name }}/{{ cookiecutter.repo_name }}/__main__.py
elaynelemos/cookiecutter-data-science
d85e787e000537cb5d0139ab389d145f8b07b6f3
[ "MIT" ]
2
2020-06-23T12:20:59.000Z
2020-10-10T18:49:14.000Z
{{ cookiecutter.repo_name }}/{{ cookiecutter.repo_name }}/__main__.py
elaynelemos/cookiecutter-data-science
d85e787e000537cb5d0139ab389d145f8b07b6f3
[ "MIT" ]
4
2020-06-04T20:38:27.000Z
2020-06-11T11:24:28.000Z
{{ cookiecutter.repo_name }}/{{ cookiecutter.repo_name }}/__main__.py
elaynelemos/cookiecutter-data-science
d85e787e000537cb5d0139ab389d145f8b07b6f3
[ "MIT" ]
3
2020-06-03T16:04:51.000Z
2020-06-23T12:21:06.000Z
"""Your module main code should be placed here. """
17.333333
47
0.692308
8
52
4.5
1
0
0
0
0
0
0
0
0
0
0
0
0.173077
52
2
48
26
0.837209
0.846154
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
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
2118073a43ee9cd6d977b43ed7ee65bc1f3bd9e9
5,668
py
Python
utils/reddit_scraper.py
azsry/orb
e76f581a16a1587e2c1d6c4a1dffe50291deb706
[ "MIT" ]
3
2019-05-31T03:27:27.000Z
2020-03-24T07:58:19.000Z
utils/reddit_scraper.py
azsry/orb
e76f581a16a1587e2c1d6c4a1dffe50291deb706
[ "MIT" ]
6
2019-05-20T14:13:31.000Z
2021-11-24T02:35:03.000Z
utils/reddit_scraper.py
azsry/orb
e76f581a16a1587e2c1d6c4a1dffe50291deb706
[ "MIT" ]
4
2019-05-15T01:31:13.000Z
2021-03-21T08:33:45.000Z
import discord import mimetypes import requests import random from io import BytesIO from utils import permissions, http from discord.ext.commands import errors class RedditPost: """ Represents a single reddit post with the following attributes: (str) subreddit: the subreddit that the po...
31.142857
114
0.582216
694
5,668
4.619597
0.301153
0.029944
0.047411
0.057392
0.034935
0.034935
0.034935
0.034935
0.034935
0.034935
0
0.001566
0.323924
5,668
181
115
31.314917
0.835073
0.152611
0
0.130841
0
0
0.139027
0.011388
0.009346
0
0
0
0
1
0.11215
false
0.018692
0.065421
0.065421
0.280374
0.009346
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2119fd917831106f61cbfbbba1c701861b726ca6
143
py
Python
drl/agents/architectures/abstract.py
lucaslingle/pytorch_drl
6b2c1142a36553ce5dcb0a5768767579676d5791
[ "MIT" ]
null
null
null
drl/agents/architectures/abstract.py
lucaslingle/pytorch_drl
6b2c1142a36553ce5dcb0a5768767579676d5791
[ "MIT" ]
null
null
null
drl/agents/architectures/abstract.py
lucaslingle/pytorch_drl
6b2c1142a36553ce5dcb0a5768767579676d5791
[ "MIT" ]
null
null
null
import abc import torch as tc class Architecture(tc.nn.Module, metaclass=abc.ABCMeta): """ Computes features from an input. """
14.3
56
0.678322
19
143
5.105263
0.842105
0
0
0
0
0
0
0
0
0
0
0
0.216783
143
9
57
15.888889
0.866071
0.223776
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.666667
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
211b0c35bf8dc4c4edb3279e90482b7dda9c860a
10,321
py
Python
loris/app/views/main.py
gucky92/loris
6f54b7d791d473f52690380d71da0acc0352d954
[ "MIT" ]
1
2021-08-01T02:02:54.000Z
2021-08-01T02:02:54.000Z
loris/app/views/main.py
gucky92/loris
6f54b7d791d473f52690380d71da0acc0352d954
[ "MIT" ]
null
null
null
loris/app/views/main.py
gucky92/loris
6f54b7d791d473f52690380d71da0acc0352d954
[ "MIT" ]
3
2020-03-31T10:26:46.000Z
2021-08-02T00:12:54.000Z
"""views """ from flask import render_template, request, flash, url_for, redirect, \ send_from_directory, session from functools import wraps from flask_login import current_user, login_user, login_required, logout_user import datajoint as dj import pandas as pd from loris import config from loris.app.app import ...
28.354396
81
0.590447
1,101
10,321
5.333333
0.166213
0.042575
0.024523
0.032357
0.560286
0.506812
0.476158
0.430177
0.390497
0.384707
0
0.000413
0.295611
10,321
363
82
28.432507
0.80729
0.024416
0
0.462366
0
0
0.162946
0.021726
0
0
0
0.002755
0
1
0.039427
false
0.046595
0.050179
0.007168
0.164875
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
211c72da1f964ad54208029bc2d732797cb76a09
11,191
py
Python
stanCode_Projects/break_out_game/breakoutgraphics_extension.py
YuHaoHan/MystanCodeProjects
382631f70392ecc714a21aac89af723ea5a608f0
[ "MIT" ]
null
null
null
stanCode_Projects/break_out_game/breakoutgraphics_extension.py
YuHaoHan/MystanCodeProjects
382631f70392ecc714a21aac89af723ea5a608f0
[ "MIT" ]
null
null
null
stanCode_Projects/break_out_game/breakoutgraphics_extension.py
YuHaoHan/MystanCodeProjects
382631f70392ecc714a21aac89af723ea5a608f0
[ "MIT" ]
null
null
null
""" stanCode Breakout Project Adapted from Eric Roberts's Breakout by Sonja Johnson-Yu, Kylie Jue, Nick Bowman, and Jerry Liao This program set up a class to help construct a breakout game. """ from campy.graphics.gwindow import GWindow from campy.graphics.gobjects import GOval, GRect, GLabel from campy.gui.events.mou...
39.967857
130
0.608793
1,541
11,191
4.253731
0.12719
0.08238
0.025782
0.028528
0.362929
0.263921
0.233105
0.178185
0.125095
0.097941
0
0.012137
0.293182
11,191
279
131
40.111111
0.816561
0.160039
0
0.128492
0
0
0.018401
0
0
0
0
0
0
1
0.100559
false
0
0.022346
0
0.212291
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
211c75d1ce345663287e561ba0ec949a24fb73b6
3,078
py
Python
workflow/plugins/gcp_plugins/operators/gcs_to_bq_operator_test.py
isabella232/driblet
2d51de919681deca1ca4cb483996c68587fd9ba8
[ "Apache-2.0" ]
22
2019-07-09T08:57:37.000Z
2021-11-14T18:36:17.000Z
workflow/plugins/gcp_plugins/operators/gcs_to_bq_operator_test.py
isabella232/driblet
2d51de919681deca1ca4cb483996c68587fd9ba8
[ "Apache-2.0" ]
17
2019-12-16T22:01:23.000Z
2022-03-01T23:10:23.000Z
workflow/plugins/gcp_plugins/operators/gcs_to_bq_operator_test.py
isabella232/driblet
2d51de919681deca1ca4cb483996c68587fd9ba8
[ "Apache-2.0" ]
8
2019-11-03T20:11:33.000Z
2021-09-15T10:01:02.000Z
# coding=utf-8 # Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
37.084337
79
0.747888
437
3,078
4.951945
0.30206
0.085028
0.038817
0.036969
0.132163
0.049908
0.049908
0.049908
0.049908
0.049908
0
0.005045
0.162768
3,078
82
80
37.536585
0.834692
0.225471
0
0.037736
0
0
0.047279
0
0
0
0
0
0.037736
0
null
null
0
0.09434
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
211e63368c92aebb2c6602a2a765f8e7a0d5b4c1
1,793
py
Python
backend/api/character.py
XoriensLair/XoriensLair.github.io
61675ba296ee747a2a0bd729ec50becb6c903a18
[ "MIT" ]
null
null
null
backend/api/character.py
XoriensLair/XoriensLair.github.io
61675ba296ee747a2a0bd729ec50becb6c903a18
[ "MIT" ]
null
null
null
backend/api/character.py
XoriensLair/XoriensLair.github.io
61675ba296ee747a2a0bd729ec50becb6c903a18
[ "MIT" ]
null
null
null
#from api.avrae.cogs5e.sheets.beyond import getJSON as beyond_getJSON from api.avrae.cogs5e.sheets.gsheet import getJSON_gsheet as gsheet_getJSON import json from api.dndutil import * def get_mod(score): modref = { '1':-5, '2-3':-4, '4-5':-3, '6-7':-2, '8-9':-1, '10-...
28.015625
132
0.54657
238
1,793
3.983193
0.378151
0.088608
0.050633
0.037975
0.194093
0.067511
0.067511
0
0
0
0
0.058915
0.280535
1,793
63
133
28.460317
0.675969
0.037925
0
0.038462
0
0
0.100348
0
0
0
0
0
0
1
0.173077
false
0
0.057692
0.115385
0.403846
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
2120b3f8447118a6674bbb48a00ea1f3e02d7a04
10,742
py
Python
src/lumigo_tracer/wrappers/http/sync_http_wrappers.py
MattBillock/python_tracer
0bd8ee0400687390820fc0e6c848f04ad71a8a4d
[ "Apache-2.0" ]
null
null
null
src/lumigo_tracer/wrappers/http/sync_http_wrappers.py
MattBillock/python_tracer
0bd8ee0400687390820fc0e6c848f04ad71a8a4d
[ "Apache-2.0" ]
null
null
null
src/lumigo_tracer/wrappers/http/sync_http_wrappers.py
MattBillock/python_tracer
0bd8ee0400687390820fc0e6c848f04ad71a8a4d
[ "Apache-2.0" ]
null
null
null
from datetime import datetime import http.client from io import BytesIO import importlib.util from typing import Optional from lumigo_tracer.libs.wrapt import wrap_function_wrapper from lumigo_tracer.parsing_utils import safe_get_list, recursive_json_join from lumigo_tracer.lumigo_utils import ( get_logger, lu...
41.157088
120
0.668684
1,362
10,742
5.030103
0.194567
0.015764
0.027295
0.030652
0.337469
0.232959
0.156765
0.120274
0.107722
0.089768
0
0.001101
0.238969
10,742
260
121
41.315385
0.836942
0.191584
0
0.122222
0
0
0.084429
0.017614
0
0
0
0
0
1
0.072222
false
0
0.083333
0
0.205556
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
2120dd5e1041bd58e6521ba251fa9b98e538fbdf
580
py
Python
UnityPy/Logger.py
hydrargyrum/UnityPy
d119f5a27fa56270630ff40d7762cdf9b4abbac3
[ "MIT" ]
null
null
null
UnityPy/Logger.py
hydrargyrum/UnityPy
d119f5a27fa56270630ff40d7762cdf9b4abbac3
[ "MIT" ]
null
null
null
UnityPy/Logger.py
hydrargyrum/UnityPy
d119f5a27fa56270630ff40d7762cdf9b4abbac3
[ "MIT" ]
null
null
null
import logging import sys from termcolor import colored if sys.platform == 'win32': from colorama import init init() COLORS = { 'DEBUG': 'green', 'INFO': 'yellow', 'WARNING': 'magenta', 'ERROR': 'red', } class ListHandler(logging.Handler): def __init__(self): super().__init__() self.logs = [] def e...
16.111111
42
0.687931
72
580
5.444444
0.527778
0.040816
0
0
0
0
0
0
0
0
0
0.004149
0.168966
580
35
43
16.571429
0.807054
0
0
0
0
0
0.081174
0
0
0
0
0
0
0
null
null
0
0.16
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
21219f971557855728e3021c592f91575bbdcad2
2,692
py
Python
src/main.py
Procope/conceptalign
bc4534257f6dc5c6a50d1d797b3420b6fffc5661
[ "MIT" ]
null
null
null
src/main.py
Procope/conceptalign
bc4534257f6dc5c6a50d1d797b3420b6fffc5661
[ "MIT" ]
null
null
null
src/main.py
Procope/conceptalign
bc4534257f6dc5c6a50d1d797b3420b6fffc5661
[ "MIT" ]
null
null
null
import utils from talkpages import WikiCorpusReader, WikiCorpus from alignment import Alignment TOPIC = 'sports' corpus_reader = WikiCorpusReader('../../data/controversial/') tsv_filename = corpus_reader.json_to_tsv('tokenized_posts/', topic_list=[TOPIC]) # tsv_filename = './tsv/WikiControversial-{}.tsv'.format(TOP...
33.234568
97
0.68685
334
2,692
5.245509
0.284431
0.037671
0.013699
0.025114
0.421804
0.40411
0.342466
0.309361
0.309361
0.309361
0
0.001792
0.170877
2,692
81
98
33.234568
0.783154
0.586553
0
0
0
0
0.089815
0.047222
0
0
0
0
0
1
0
false
0
0.136364
0
0.136364
0.045455
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2121c256c900d4ca0f66bb47e7efbeb7983c6b8e
383
py
Python
python-codes/m2_curso_em_video_estruturas_de_controle/ex065.2.py
lucasportella/learning_repo
a9449dffd489e7e1f1619e3acef86bc2c64f0f14
[ "MIT" ]
null
null
null
python-codes/m2_curso_em_video_estruturas_de_controle/ex065.2.py
lucasportella/learning_repo
a9449dffd489e7e1f1619e3acef86bc2c64f0f14
[ "MIT" ]
null
null
null
python-codes/m2_curso_em_video_estruturas_de_controle/ex065.2.py
lucasportella/learning_repo
a9449dffd489e7e1f1619e3acef86bc2c64f0f14
[ "MIT" ]
null
null
null
n = s = c = mai = men = 0 perg = 's' while perg in 'sSSIMsim': n = int(input('Digite um número: ')) c += 1 s += n if men == 0: men = n if n > mai: mai = n if n < men: men = n perg = str(input('Quer continuar? [s/n] ')).strip() m = s/c print('Soma:',s,'\nQuant. números...
25.533333
96
0.477807
62
383
2.951613
0.5
0.04918
0.043716
0
0
0
0
0
0
0
0
0.01487
0.29765
383
15
96
25.533333
0.665428
0
0
0.133333
0
0
0.265625
0
0
0
0
0
0
1
0
false
0
0
0
0
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
21239b74bf2b987948e90ce500292ad59e7a5b7b
31
py
Python
test cases/unit/101 relative find program/foo.py
iinuwa/meson
7528c69fcca63889d67c1d6c2463c9e9485585a8
[ "Apache-2.0" ]
4,047
2015-06-18T10:36:48.000Z
2022-03-31T09:47:02.000Z
test cases/unit/101 relative find program/foo.py
iinuwa/meson
7528c69fcca63889d67c1d6c2463c9e9485585a8
[ "Apache-2.0" ]
8,206
2015-06-14T12:20:48.000Z
2022-03-31T22:50:37.000Z
test cases/unit/101 relative find program/foo.py
iinuwa/meson
7528c69fcca63889d67c1d6c2463c9e9485585a8
[ "Apache-2.0" ]
1,489
2015-06-27T04:06:38.000Z
2022-03-29T10:14:48.000Z
#!/usr/bin/env python3 exit(0)
10.333333
22
0.677419
6
31
3.5
1
0
0
0
0
0
0
0
0
0
0
0.071429
0.096774
31
3
23
10.333333
0.678571
0.677419
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
21242d1a4ca530581bd7647266334e5c0492c200
720
py
Python
docs/minimal.py
MCZhi/SMARTS
3ef5650b04ac6fb7145cf4e23d5534d73e0929fc
[ "MIT" ]
2
2021-12-13T12:41:54.000Z
2021-12-16T03:10:24.000Z
docs/minimal.py
MCZhi/SMARTS
3ef5650b04ac6fb7145cf4e23d5534d73e0929fc
[ "MIT" ]
null
null
null
docs/minimal.py
MCZhi/SMARTS
3ef5650b04ac6fb7145cf4e23d5534d73e0929fc
[ "MIT" ]
null
null
null
import gym from smarts.core.agent import Agent from smarts.core.agent_interface import AgentInterface, AgentType from smarts.zoo.agent_spec import AgentSpec agent_id = "Agent-007" agent_spec = AgentSpec( interface=AgentInterface.from_type(AgentType.Laner), agent_params={"agent_function": lambda _: "keep_lane"}...
26.666667
65
0.7375
94
720
5.351064
0.43617
0.071571
0.055666
0.075547
0
0
0
0
0
0
0
0.00641
0.133333
720
26
66
27.692308
0.799679
0
0
0
0
0
0.109722
0
0
0
0
0
0
1
0
false
0
0.181818
0
0.181818
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2125d9e7bdc260d2f5ed081aa7c0f354b75787bd
267
py
Python
trunk/Documentacion/Memoria/trozos-codigo/codigo-9-udp-test-udp-description.py
MGautier/security-sensor
7063b1f095cfa02bb56ef2544d0395dbf155310f
[ "MIT" ]
2
2016-08-15T21:25:40.000Z
2020-06-22T12:25:48.000Z
trunk/Documentacion/Memoria/trozos-codigo/codigo-9-udp-test-udp-description.py
MGautier/security-sensor
7063b1f095cfa02bb56ef2544d0395dbf155310f
[ "MIT" ]
4
2020-06-05T17:32:18.000Z
2021-06-10T19:05:56.000Z
trunk/Documentacion/Memoria/trozos-codigo/codigo-9-udp-test-udp-description.py
MGautier/security-sensor
7063b1f095cfa02bb56ef2544d0395dbf155310f
[ "MIT" ]
null
null
null
def test_udp_description(self): """ Comprobacion de que la descripcion asociada al protocolo coincide Returns: """ port = Ports.objects.get(Tag="ssh") udp = Udp.objects.get(id=port) self.assertEqual(udp.get_description(), "Conexion ssh")
26.7
69
0.681648
34
267
5.264706
0.705882
0.111732
0
0
0
0
0
0
0
0
0
0
0.194757
267
9
70
29.666667
0.832558
0.277154
0
0
0
0
0.087209
0
0
0
0
0
0.25
1
0.25
false
0
0
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
2
21290251f9d28d190e39ac663bce01dc307f5797
15
py
Python
rampage/__init__.py
shreyaspotnis/rampage
e2565aef7ee16ee06523de975e8aa41aca14e3b2
[ "MIT" ]
null
null
null
rampage/__init__.py
shreyaspotnis/rampage
e2565aef7ee16ee06523de975e8aa41aca14e3b2
[ "MIT" ]
null
null
null
rampage/__init__.py
shreyaspotnis/rampage
e2565aef7ee16ee06523de975e8aa41aca14e3b2
[ "MIT" ]
null
null
null
"""Rampage """
5
10
0.466667
1
15
7
1
0
0
0
0
0
0
0
0
0
0
0
0.133333
15
2
11
7.5
0.538462
0.466667
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
212ab4fb98f24f1c674eddbea9f0186ab13f01ff
411
py
Python
examples/example1/publish.py
etpinard/djangofy
9ad1437255df66b1a8e7d5f684e56c3414f47bf5
[ "MIT" ]
1
2020-08-24T21:23:06.000Z
2020-08-24T21:23:06.000Z
examples/example1/publish.py
etpinard/djangofy
9ad1437255df66b1a8e7d5f684e56c3414f47bf5
[ "MIT" ]
null
null
null
examples/example1/publish.py
etpinard/djangofy
9ad1437255df66b1a8e7d5f684e56c3414f47bf5
[ "MIT" ]
null
null
null
import djangofy as dfy import os PATH = 'examples/example1/' PUBLISHED = PATH + 'published/' # path to published files! # Make url and sitemaps files names = [ 'page1', 'page2', 'page3' ] urls = [ 'some-exciting-article', 'another-exciting-article', 'you-must-read-this' ] dfy.make_urls(nam...
17.869565
59
0.6618
52
411
5.192308
0.557692
0.096296
0.133333
0
0
0
0
0
0
0
0
0.012048
0.192214
411
22
60
18.681818
0.801205
0.126521
0
0
0
0
0.348315
0.126404
0
0
0
0
0
1
0
false
0
0.125
0
0.125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
212afb2977f9277d2e72cc90fa88c1f4ddad6351
195
py
Python
celeryanalytics/apps.py
Solar-Helix-Independent-Transport/allianceauth-celeryanalytics
15e84bf5c80d760128014812b825b6f2925378cf
[ "MIT" ]
1
2019-12-01T10:29:45.000Z
2019-12-01T10:29:45.000Z
celeryanalytics/apps.py
pvyParts/allianceauth-celeryanalytics
9e7a645d54329d817e1dec50a3738d87a316364e
[ "MIT" ]
2
2022-01-04T16:02:04.000Z
2022-01-05T08:28:49.000Z
celeryanalytics/apps.py
Solar-Helix-Independent-Transport/allianceauth-celeryanalytics
15e84bf5c80d760128014812b825b6f2925378cf
[ "MIT" ]
2
2021-08-12T04:40:35.000Z
2022-01-04T19:24:01.000Z
from django.apps import AppConfig class CeleryAnalyticsConfig(AppConfig): name = 'celeryanalytics' label = 'celeryanalytics' def ready(self): import celeryanalytics.signals
21.666667
39
0.733333
18
195
7.944444
0.777778
0
0
0
0
0
0
0
0
0
0
0
0.194872
195
8
40
24.375
0.910828
0
0
0
0
0
0.153846
0
0
0
0
0
0
1
0.166667
false
0
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
212c3e1ba940543bbeebd1b123e05e0a9ce76a63
3,575
py
Python
mini/utils.py
FiveEyes/CycleGAN
b36e231bd4148d04ac8d04a0cec3b5c139ee9e40
[ "MIT" ]
null
null
null
mini/utils.py
FiveEyes/CycleGAN
b36e231bd4148d04ac8d04a0cec3b5c139ee9e40
[ "MIT" ]
null
null
null
mini/utils.py
FiveEyes/CycleGAN
b36e231bd4148d04ac8d04a0cec3b5c139ee9e40
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function import copy import os import shutil import numpy as np import torch def mkdir(paths): if not isinstance(paths, (list, tuple)): paths = [paths] for path in paths: if not os.path.isdir(...
28.830645
80
0.590769
502
3,575
3.968127
0.221116
0.060241
0.065261
0.039157
0.180723
0.081827
0.042671
0.031125
0.031125
0
0
0.004734
0.290909
3,575
123
81
29.065041
0.781065
0.020979
0
0.085106
0
0
0.050401
0
0
0
0
0
0
1
0.085106
false
0.010638
0.085106
0
0.244681
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
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
212d4ef4ab99dec5153f7ecca9ef4a401ae09050
10,315
py
Python
occuspytial/utils.py
zoj613/OccuSpytial
e599d515b5377cb8f7a16af828f39b115a04bc66
[ "BSD-3-Clause" ]
5
2018-11-27T13:41:51.000Z
2021-08-28T23:50:13.000Z
occuspytial/utils.py
zoj613/OccuSpytial
e599d515b5377cb8f7a16af828f39b115a04bc66
[ "BSD-3-Clause" ]
4
2020-08-20T16:58:11.000Z
2021-03-22T20:27:55.000Z
occuspytial/utils.py
zoj613/OccuSpytial
e599d515b5377cb8f7a16af828f39b115a04bc66
[ "BSD-3-Clause" ]
1
2021-02-01T16:17:46.000Z
2021-02-01T16:17:46.000Z
import warnings import numpy as np from scipy.linalg import pinvh def get_generator(random_state=None): """Get an instance of a numpy random number generator object. This instance uses `SFC64 <https://tinyurl.com/y2jtyly7>`_ bitgenerator, which is the fastest numpy currently has to offer as of version 1...
34.966102
79
0.552399
1,517
10,315
3.700725
0.216875
0.038475
0.040078
0.034913
0.226755
0.165123
0.132348
0.103848
0.083007
0.072854
0
0.114201
0.313233
10,315
294
80
35.085034
0.678289
0.67872
0
0
0
0
0.080402
0
0
0
0
0
0
1
0.038462
false
0
0.051282
0
0.128205
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
213024992027d02f4dffdced7cd69f769559b582
1,119
py
Python
Easy/409.py
Hellofafar/Leetcode
7a459e9742958e63be8886874904e5ab2489411a
[ "CNRI-Python" ]
6
2017-09-25T18:05:50.000Z
2019-03-27T00:23:15.000Z
Easy/409.py
Hellofafar/Leetcode
7a459e9742958e63be8886874904e5ab2489411a
[ "CNRI-Python" ]
1
2017-10-29T12:04:41.000Z
2018-08-16T18:00:37.000Z
Easy/409.py
Hellofafar/Leetcode
7a459e9742958e63be8886874904e5ab2489411a
[ "CNRI-Python" ]
null
null
null
# ------------------------------ # 409. Longest Palindrome # # Description: # Given a string which consists of lowercase or uppercase letters, find the length of the longest palindromes that can be built with those letters. # This is case sensitive, for example "Aa" is not considered a palindrome here. # Note: # Assum...
24.326087
147
0.526363
133
1,119
4.368421
0.616541
0.030981
0.036145
0.048193
0
0
0
0
0
0
0
0.029487
0.302949
1,119
46
148
24.326087
0.715385
0.559428
0
0
0
0
0.018223
0
0
0
0
0
0
1
0.071429
false
0
0
0
0.214286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
21317cb8bb8924de8ccf27e0aedd6bf1a9ff8916
205
py
Python
blacksheep_context/__init__.py
Cdayz/blacksheep-context
3a13e8d3ef99e2343ab65b6de85512caabeaf5e1
[ "MIT" ]
1
2021-06-16T18:58:30.000Z
2021-06-16T18:58:30.000Z
blacksheep_context/__init__.py
Cdayz/blacksheep-context
3a13e8d3ef99e2343ab65b6de85512caabeaf5e1
[ "MIT" ]
17
2021-07-09T04:26:00.000Z
2022-03-28T04:23:19.000Z
blacksheep_context/__init__.py
Cdayz/blacksheep-context
3a13e8d3ef99e2343ab65b6de85512caabeaf5e1
[ "MIT" ]
null
null
null
from contextvars import ContextVar from typing import Any, Dict _request_scope_context_storage: ContextVar[Dict[Any, Any]] = ContextVar("blacksheep_context") from .ctx import context # noqa: F401, E402
29.285714
93
0.8
27
205
5.888889
0.592593
0
0
0
0
0
0
0
0
0
0
0.033333
0.121951
205
6
94
34.166667
0.85
0.078049
0
0
0
0
0.096257
0
0
0
0
0
0
1
0
true
0
0.75
0
0.75
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
21330019fbaa4db50ee20e38ed8c5d8aea8c4dbc
313
py
Python
codigo_funcoes_exercicios/exemplo3-saque de saldo.py
rosacarla/100-days-of-python-code
3db9e35f861ce933e952cff2dd3a505dfce1b440
[ "MIT" ]
1
2021-09-26T09:17:36.000Z
2021-09-26T09:17:36.000Z
codigo_funcoes_exercicios/exemplo3-saque de saldo.py
rosacarla/100-days-of-python-code
3db9e35f861ce933e952cff2dd3a505dfce1b440
[ "MIT" ]
null
null
null
codigo_funcoes_exercicios/exemplo3-saque de saldo.py
rosacarla/100-days-of-python-code
3db9e35f861ce933e952cff2dd3a505dfce1b440
[ "MIT" ]
null
null
null
def sacar(saldo): montante = float(input("Quanto deseja sacar? ")) saldo = saldo - montante return saldo saldo = float(input("Informe o saldo total: ")) qtde = int(input("Quantos saques vc deseja? ")) for c in range(qtde): saldo = sacar(saldo) print("Saldo final: ", saldo)
10.793103
52
0.616613
40
313
4.825
0.575
0.15544
0
0
0
0
0
0
0
0
0
0
0.252396
313
28
53
11.178571
0.824786
0
0
0
0
0
0.271242
0
0
0
0
0
0
1
0.111111
false
0
0
0
0.222222
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2133b362ea2ee1490e512836e24b6ee57a2742e2
370
py
Python
catapult/config.py
alexanderphoenix/catapult
e47463907aad84e2eb11ef2ea75be9beb37bb421
[ "MIT" ]
null
null
null
catapult/config.py
alexanderphoenix/catapult
e47463907aad84e2eb11ef2ea75be9beb37bb421
[ "MIT" ]
null
null
null
catapult/config.py
alexanderphoenix/catapult
e47463907aad84e2eb11ef2ea75be9beb37bb421
[ "MIT" ]
null
null
null
import os _HOME_PATH = os.path.expanduser("~") # aws config AWS_PROFILE = os.environ.get("CATAPULT_AWS_PROFILE", "default") AWS_MFA_DEVICE = os.environ.get("CATAPULT_AWS_MFA_DEVICE") # git config GIT_REPO = os.environ.get("CATAPULT_GIT_REPO", "./") # catapult config CATAPULT_SESSION = os.environ.get( "CATAPULT_...
23.125
63
0.740541
53
370
4.849057
0.339623
0.140078
0.18677
0.311284
0.178988
0
0
0
0
0
0
0
0.108108
370
15
64
24.666667
0.778788
0.1
0
0
0
0
0.288754
0.069909
0
0
0
0
0
1
0
false
0
0.125
0
0.125
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
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
21353c8aaa61715f003a31803a7d1e42233e090c
40,928
py
Python
setup.py
LeeKamentsky/build-ilastik-on-windows
3c95d5f48e35d7686222d20145bee08428c1c7d5
[ "BSD-2-Clause" ]
null
null
null
setup.py
LeeKamentsky/build-ilastik-on-windows
3c95d5f48e35d7686222d20145bee08428c1c7d5
[ "BSD-2-Clause" ]
null
null
null
setup.py
LeeKamentsky/build-ilastik-on-windows
3c95d5f48e35d7686222d20145bee08428c1c7d5
[ "BSD-2-Clause" ]
null
null
null
import setuptools import distutils.command.build from distutils.errors import DistutilsSetupError import distutils.sysconfig import distutils.spawn import hashlib import os import re import shutil import StringIO import sys import tarfile import tempfile import urllib2 import urlparse import zipfile # # Things that ne...
38.720908
128
0.582682
4,923
40,928
4.627666
0.113955
0.02897
0.025459
0.019665
0.393995
0.320692
0.236415
0.164516
0.137916
0.099069
0
0.008993
0.301749
40,928
1,056
129
38.757576
0.788194
0.030615
0
0.265607
0
0.007946
0.179139
0.042342
0
0
0
0
0
0
null
null
0
0.026107
null
null
0.001135
0
0
0
null
0
0
0
0
0
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
2136d57032796c382b2bcf676789e3a7dbaf74ca
19,149
py
Python
onlinejudge_template/generator/julia.py
kameyama/template-generator
420a9c787c6f8f6bc7c575f6267b0ef4f1c2c2b0
[ "MIT" ]
null
null
null
onlinejudge_template/generator/julia.py
kameyama/template-generator
420a9c787c6f8f6bc7c575f6267b0ef4f1c2c2b0
[ "MIT" ]
null
null
null
onlinejudge_template/generator/julia.py
kameyama/template-generator
420a9c787c6f8f6bc7c575f6267b0ef4f1c2c2b0
[ "MIT" ]
null
null
null
""" the module to generate Julia code この module は Python のコードを生成します。 ただしmain.pyを元に適当に書き換えたのでうまく生成できない場合があるかもしれません。 以下の関数を提供します。 - :func:`read_input` - :func:`write_output` - :func:`declare_constants` - :func:`formal_arguments` - :func:`actual_arguments` - :func:`return_type` - :func:`return_value` 加えて、ランダムケースの生成のため...
40.656051
193
0.646457
2,293
19,149
5.249891
0.087222
0.031899
0.047848
0.024423
0.678435
0.599767
0.555242
0.538628
0.518275
0.492108
0
0.003519
0.22821
19,149
470
194
40.742553
0.811016
0.025745
0
0.479893
1
0.008043
0.080956
0.013537
0
0
0
0
0.032172
1
0.061662
false
0
0.016086
0
0.276139
0.013405
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
2137a254f99d846eb48cf890aaca95c06bcfcf0a
1,451
py
Python
tests/test_memory_cache.py
drorvinkler/thornfield
3c5bb8afaa96097bc71cccb119394a0f351d828f
[ "MIT" ]
2
2020-11-24T13:27:14.000Z
2020-11-24T13:29:40.000Z
tests/test_memory_cache.py
drorvinkler/thornfield
3c5bb8afaa96097bc71cccb119394a0f351d828f
[ "MIT" ]
1
2020-11-24T13:33:45.000Z
2020-11-24T15:10:41.000Z
tests/test_memory_cache.py
drorvinkler/thornfield
3c5bb8afaa96097bc71cccb119394a0f351d828f
[ "MIT" ]
null
null
null
from time import sleep from unittest import TestCase from thornfield.cacher import Cacher from thornfield.caches.memory_cache import MemoryCache class TestMemoryCache(TestCase): def test_basic(self): cacher = Cacher(self._create_cache) @cacher.cached def foo(x): foo.call_coun...
25.45614
54
0.604411
182
1,451
4.67033
0.192308
0.247059
0.183529
0.156471
0.708235
0.655294
0.64
0.598824
0.548235
0.548235
0
0.030303
0.294969
1,451
56
55
25.910714
0.800587
0
0
0.636364
0
0
0
0
0
0
0
0
0.318182
1
0.159091
false
0
0.090909
0.022727
0.363636
0
0
0
0
null
1
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
2
21380f91fe35f66985a11aadbd6ba2faf7888044
1,852
py
Python
index.py
cs-fullstack-2019-fall/python-classobject-review-cw-LilPrice-Code-1
ca26b088252254cebc41b5d7236e887f513652dd
[ "Apache-2.0" ]
null
null
null
index.py
cs-fullstack-2019-fall/python-classobject-review-cw-LilPrice-Code-1
ca26b088252254cebc41b5d7236e887f513652dd
[ "Apache-2.0" ]
null
null
null
index.py
cs-fullstack-2019-fall/python-classobject-review-cw-LilPrice-Code-1
ca26b088252254cebc41b5d7236e887f513652dd
[ "Apache-2.0" ]
null
null
null
def main(): pro1() pro2() # Problem 1: # # Create a Movie class with the following properties/attributes: movieName, rating, and yearReleased. # # Override the default str (to-String) method and implement the code that will print the value of all the properties/attributes of the Movie class # # # Assign a value...
29.396825
148
0.61933
242
1,852
4.673554
0.301653
0.026525
0.02122
0.037135
0.381963
0.381963
0.346596
0.346596
0.346596
0.346596
0
0.015789
0.281857
1,852
63
149
29.396825
0.834586
0.460043
0
0.133333
0
0
0.188272
0
0
0
0
0
0
1
0.233333
false
0
0
0
0.366667
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
1
0
0
0
0
0
0
0
1
2139e18eede874f8c9984b45680b934dcf1d9148
1,267
py
Python
test/test_del_user_from_group.py
SergKitler/python_training
a5bbc5f4121dc10ef2b5a3bddacaf65595dc948c
[ "Apache-2.0" ]
null
null
null
test/test_del_user_from_group.py
SergKitler/python_training
a5bbc5f4121dc10ef2b5a3bddacaf65595dc948c
[ "Apache-2.0" ]
null
null
null
test/test_del_user_from_group.py
SergKitler/python_training
a5bbc5f4121dc10ef2b5a3bddacaf65595dc948c
[ "Apache-2.0" ]
null
null
null
__author__ = 'sergei' from model.group import Group from model.user import User import random def test_del_user_from_group(app, orm): if len(orm.get_contact_list()) == 0: app.user.add(User(firstname="Jeck", lastname="Antonio")) if len(orm.get_group_list()) == 0: app.group.create(Group(name="T...
39.59375
99
0.700868
212
1,267
3.825472
0.212264
0.120838
0.118372
0.110974
0.23058
0.147965
0.147965
0.147965
0.093711
0
0
0.005803
0.183899
1,267
31
100
40.870968
0.77853
0
0
0
0
0
0.029992
0
0
0
0
0
0.035714
1
0.035714
false
0
0.107143
0
0.142857
0.035714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
213ade98125f2742c5b43d740f3054f2af88f7bd
741
py
Python
test_bale_bot/test_models/test_client_requests/test_messaging/test_edit_message.py
naderAbolfazli/bale-bot-python
1e694adfd0850cb9e288d180ed0231f148f4c223
[ "Apache-2.0" ]
24
2018-07-08T12:17:55.000Z
2022-03-05T22:00:28.000Z
test_bale_bot/test_models/test_client_requests/test_messaging/test_edit_message.py
naderAbolfazli/bale-bot-python
1e694adfd0850cb9e288d180ed0231f148f4c223
[ "Apache-2.0" ]
21
2018-08-30T03:18:25.000Z
2022-03-11T23:36:16.000Z
test_bale_bot/test_models/test_client_requests/test_messaging/test_edit_message.py
naderAbolfazli/bale-bot-python
1e694adfd0850cb9e288d180ed0231f148f4c223
[ "Apache-2.0" ]
12
2018-07-07T08:29:12.000Z
2022-03-05T22:00:05.000Z
import unittest from unittest.mock import MagicMock from balebot.models.base_models import Peer from balebot.models.client_requests import EditMessage from balebot.models.messages import TextMessage class TestEditMessage(unittest.TestCase): @classmethod def setUpClass(cls): peer = Peer(peer_type="Use...
33.681818
94
0.746289
91
741
5.857143
0.472527
0.052533
0.095685
0.052533
0.180113
0.180113
0.180113
0.180113
0
0
0
0.025974
0.168691
741
21
95
35.285714
0.839286
0
0
0
0
0
0.025641
0
0
0
0
0
0.125
1
0.1875
false
0
0.3125
0
0.5625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
213bcd6bcb089f055fbbea7d10486c9635c089cf
12,883
py
Python
BB/bbConfig/bbConfig.py
Laura7089/GOF2BountyBot
96d678bb3eda116292f4c1575d5e046206aa3cdd
[ "MIT" ]
null
null
null
BB/bbConfig/bbConfig.py
Laura7089/GOF2BountyBot
96d678bb3eda116292f4c1575d5e046206aa3cdd
[ "MIT" ]
null
null
null
BB/bbConfig/bbConfig.py
Laura7089/GOF2BountyBot
96d678bb3eda116292f4c1575d5e046206aa3cdd
[ "MIT" ]
null
null
null
# Typing imports from __future__ import annotations import math, random, pprint from ..bbUtil import dumbEmoji ##### UTIL ##### # Number of decimal places to calculate itemTLSpawnChanceForShopTL values to tl_resolution = 3 def truncToRes(num : float) -> float: """Truncate the passed float to tl_resolution deci...
37.126801
299
0.726772
1,586
12,883
5.895965
0.313367
0.014223
0.026414
0.043097
0.282857
0.24607
0.218479
0.16918
0.146936
0.127901
0
0.045169
0.183731
12,883
346
300
37.234104
0.841385
0.397112
0
0.190141
0
0.007042
0.098713
0.014786
0
0
0
0
0
1
0.028169
false
0
0.021127
0
0.091549
0.035211
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
213d38841104f97538b8d13b91cf5eb823ddbdf6
47,272
py
Python
server/tests/controllers/miners/github/test_pull_request.py
athenianco/athenian-api
dd5556101a8c49703d6b0516e4268b9e8d8eda5b
[ "RSA-MD" ]
9
2020-10-11T22:12:03.000Z
2022-02-26T02:16:45.000Z
server/tests/controllers/miners/github/test_pull_request.py
athenianco/athenian-api
dd5556101a8c49703d6b0516e4268b9e8d8eda5b
[ "RSA-MD" ]
246
2019-12-05T06:37:30.000Z
2022-03-29T10:00:07.000Z
server/tests/controllers/miners/github/test_pull_request.py
athenianco/athenian-api
dd5556101a8c49703d6b0516e4268b9e8d8eda5b
[ "RSA-MD" ]
5
2019-12-04T22:38:05.000Z
2021-02-26T00:50:04.000Z
from collections import defaultdict import dataclasses from datetime import date, datetime, timedelta, timezone from itertools import chain import pickle from typing import Any, Dict import pandas as pd from pandas.core.dtypes.common import is_datetime64_any_dtype from pandas.testing import assert_frame_equal import p...
38
98
0.618696
5,731
47,272
4.880126
0.08393
0.022275
0.017699
0.041691
0.75379
0.722039
0.6998
0.67849
0.635297
0.617634
0
0.039772
0.256431
47,272
1,243
99
38.030571
0.755903
0.005987
0
0.673487
0
0
0.032429
0.002136
0
0
0
0
0.084399
1
0.000853
false
0
0.022165
0
0.023018
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
213d3e71dd31496bb63acb66ff3f22dd91bbc213
8,383
py
Python
villebot1.0.py
wkpelt/Villebot
d04a7707684babae07ad93d1fd76ee401fc371de
[ "MIT" ]
1
2019-03-10T22:00:18.000Z
2019-03-10T22:00:18.000Z
villebot1.0.py
wkpelt/Villebot
d04a7707684babae07ad93d1fd76ee401fc371de
[ "MIT" ]
null
null
null
villebot1.0.py
wkpelt/Villebot
d04a7707684babae07ad93d1fd76ee401fc371de
[ "MIT" ]
null
null
null
#VILLEBot v1.0 #Author = Wiljam Peltomaa #Last updated = 21.04.2019 import PySimpleGUI as sg import pyautogui import pyperclip import string from time import sleep def main(): print('To stop the bot, drag the cursor to the top-left corner of your screen or press Ctrl-Alt-Del') texts = [] locati...
44.590426
125
0.445187
810
8,383
4.535802
0.279012
0.06478
0.041644
0.039194
0.202776
0.1546
0.120033
0.102069
0.084377
0.058247
0
0.026053
0.450555
8,383
187
126
44.828877
0.771602
0.094238
0
0.363014
0
0.006849
0.093039
0
0
0
0
0
0
1
0.013699
false
0
0.034247
0
0.047945
0.054795
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
213db5f35ea6d1846adc243063d3e37e46d77f5c
2,487
py
Python
test/test_erc20.py
patractlabs/py-patract
ba36981898d93ad68ab832ea4cdc8843bb545105
[ "Apache-2.0" ]
10
2021-01-04T01:35:05.000Z
2021-04-15T19:36:01.000Z
test/test_erc20.py
patractlabs/py-patract
ba36981898d93ad68ab832ea4cdc8843bb545105
[ "Apache-2.0" ]
3
2021-04-16T10:23:45.000Z
2021-05-17T21:44:46.000Z
test/test_erc20.py
patractlabs/py-patract
ba36981898d93ad68ab832ea4cdc8843bb545105
[ "Apache-2.0" ]
null
null
null
import os import unittest import logging from substrateinterface import SubstrateInterface, ContractMetadata, Keypair from substrateinterface.utils.ss58 import ss58_encode from patractinterface.unittest.env import SubstrateTestEnv from patractinterface.contracts.erc20 import ERC20 class ERC20TestCase(unittest.TestCa...
35.528571
126
0.675513
302
2,487
5.350993
0.291391
0.047649
0.034035
0.055693
0.214728
0.189356
0.170173
0.170173
0.170173
0.170173
0
0.050761
0.207881
2,487
69
127
36.043478
0.769543
0
0
0.090909
0
0
0.040209
0
0
0
0
0
0.109091
1
0.127273
false
0
0.127273
0
0.272727
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
213de5c5ec034a55eb91624483a3fc5b71895f40
316
py
Python
code/abc030_c_01.py
KoyanagiHitoshi/AtCoder
731892543769b5df15254e1f32b756190378d292
[ "MIT" ]
3
2019-08-16T16:55:48.000Z
2021-04-11T10:21:40.000Z
code/abc030_c_01.py
KoyanagiHitoshi/AtCoder
731892543769b5df15254e1f32b756190378d292
[ "MIT" ]
null
null
null
code/abc030_c_01.py
KoyanagiHitoshi/AtCoder
731892543769b5df15254e1f32b756190378d292
[ "MIT" ]
null
null
null
import bisect N,M=map(int,input().split()) X,Y=map(int,input().split()) A=list(map(int,input().split())) B=list(map(int,input().split())) ans=0 time=0 while time<=A[-1]: time=A[bisect.bisect_left(A,time)]+X if time<=B[-1]: time=B[bisect.bisect_left(B,time)]+Y ans+=1 else:break print(ans)
22.571429
44
0.617089
60
316
3.216667
0.383333
0.124352
0.227979
0.331606
0.207254
0
0
0
0
0
0
0.018382
0.139241
316
14
45
22.571429
0.691176
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.071429
0
0.071429
0.071429
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
213f46b4589c11995b5f6fb48b27af63bf5048d3
33,295
py
Python
tests/metrics/test_metastatus_lib.py
white105/paasta
410418fb54d501141f091381ada368a8bf62037b
[ "Apache-2.0" ]
2
2020-04-09T06:58:46.000Z
2021-05-03T21:56:03.000Z
tests/metrics/test_metastatus_lib.py
white105/paasta
410418fb54d501141f091381ada368a8bf62037b
[ "Apache-2.0" ]
null
null
null
tests/metrics/test_metastatus_lib.py
white105/paasta
410418fb54d501141f091381ada368a8bf62037b
[ "Apache-2.0" ]
1
2020-09-29T03:23:02.000Z
2020-09-29T03:23:02.000Z
#!/usr/bin/env python # Copyright 2015-2016 Yelp Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
30.489927
109
0.583811
3,457
33,295
5.30431
0.094301
0.069477
0.029012
0.019087
0.743688
0.675956
0.600153
0.538038
0.468888
0.409009
0
0.028035
0.300436
33,295
1,091
110
30.517874
0.759231
0.021144
0
0.446921
0
0.004246
0.178056
0.027169
0
0
0
0
0.14862
1
0.064756
false
0
0.008493
0.001062
0.073248
0.002123
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
21405a908f0dbb287266e8c8f77371225bd31b1c
14,337
py
Python
source/spark_runner/run_pipeline_multiple_files.py
VCCRI/GEOraclePlus
6595cf449b4e9ead8317bcf56ebd8e173aa78bca
[ "MIT" ]
3
2019-03-21T05:58:23.000Z
2021-05-21T06:28:07.000Z
source/spark_runner/run_pipeline_multiple_files.py
VCCRI/GEOraclePlus
6595cf449b4e9ead8317bcf56ebd8e173aa78bca
[ "MIT" ]
null
null
null
source/spark_runner/run_pipeline_multiple_files.py
VCCRI/GEOraclePlus
6595cf449b4e9ead8317bcf56ebd8e173aa78bca
[ "MIT" ]
null
null
null
import argparse import os import shlex import shutil from subprocess import Popen, PIPE from pyspark import SparkContext, SparkConf import pandas as pd import subprocess import boto3 import re global parser_result APPLICATION_FOLDER = "/mnt/app" GENOME_REFERENCES_FOLDER = "/mnt/ref" TEMP_OUTPUT_FOLDER = "/mnt/output"...
41.677326
120
0.651671
1,814
14,337
4.854465
0.189636
0.024529
0.021236
0.011356
0.185215
0.104247
0.066659
0.033954
0.023734
0.014649
0
0.005801
0.218456
14,337
343
121
41.798834
0.780098
0.083979
0
0.076577
0
0
0.198042
0.024474
0
0
0
0
0
1
0.040541
false
0.013514
0.045045
0.013514
0.126126
0.04955
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2141317fbf5f3992f4c511744ecc5272b889b6f8
3,198
py
Python
Scripts/Webscraping 2.0.py
PatrikLah/VerkonRaapiminen
7df7f00654250b6f66c449ded6fb9c36fad4f548
[ "Apache-2.0" ]
null
null
null
Scripts/Webscraping 2.0.py
PatrikLah/VerkonRaapiminen
7df7f00654250b6f66c449ded6fb9c36fad4f548
[ "Apache-2.0" ]
null
null
null
Scripts/Webscraping 2.0.py
PatrikLah/VerkonRaapiminen
7df7f00654250b6f66c449ded6fb9c36fad4f548
[ "Apache-2.0" ]
null
null
null
from requests_html import HTMLSession import pandas as pd import time #Render Dynamic Pages - Web Scraping Product Links with Python #Virvoitusjuomat = 1022 | sivuja n. 5 #Mehut = 1018 | sivuja n. 9 #Vedet = 1028 | sivuja n. 4 #Energiajuomat = 1038 | n. 2 category_code = 1008 page_count = 1 category_string = "" if ca...
32.969072
108
0.590056
415
3,198
4.445783
0.337349
0.03523
0.04878
0.045528
0.062873
0.046612
0.019512
0
0
0
0
0.02827
0.258912
3,198
97
109
32.969072
0.750211
0.164478
0
0
0
0.014286
0.19481
0.043625
0
0
0
0
0
1
0.057143
false
0
0.042857
0.014286
0.128571
0.057143
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0