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
226a852665ed98a7f1ee1db815a362ed10f10051
9,515
py
Python
tree.py
s-gehring/modules
c0438c429979223087e1420cddc29f58590ccf5f
[ "MIT" ]
null
null
null
tree.py
s-gehring/modules
c0438c429979223087e1420cddc29f58590ccf5f
[ "MIT" ]
null
null
null
tree.py
s-gehring/modules
c0438c429979223087e1420cddc29f58590ccf5f
[ "MIT" ]
null
null
null
import network import string import io import pdf_files as pdf global_leaves= 0 global_nodes = 0 global_lectures=0 def get_tree(link, deep_search=False, first_iteration=True): global global_leaves, global_nodes c = network.get_content(link) #print c.prettify() if is_leaf(c): #leaf glo...
30.015773
113
0.579296
1,266
9,515
4.167457
0.192733
0.023882
0.039424
0.014594
0.293404
0.223275
0.191433
0.179682
0.153525
0.146702
0
0.01671
0.308145
9,515
316
114
30.110759
0.784749
0.098581
0
0.305085
0
0
0.05718
0
0
0
0
0
0
0
null
null
0.008475
0.016949
null
null
0.004237
0
0
0
null
0
0
0
0
0
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
226c56dca0c7c2a293376d1f62a63d14d06cb160
656
py
Python
src/learning_history_analyze.py
ishota/CarND-Traffic-Sign-Classifier
c5769a13c8391a238d4b253bba7e659339170548
[ "MIT" ]
null
null
null
src/learning_history_analyze.py
ishota/CarND-Traffic-Sign-Classifier
c5769a13c8391a238d4b253bba7e659339170548
[ "MIT" ]
null
null
null
src/learning_history_analyze.py
ishota/CarND-Traffic-Sign-Classifier
c5769a13c8391a238d4b253bba7e659339170548
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import matplotlib.pyplot as plt def history_analyze(history): plt.figure(figsize=(12, 8)) plt.subplot(1, 2, 1) plt.plot(history.history['accuracy']) plt.plot(history.history['val_accuracy']) plt.title('model accuracy') plt.ylabel('accuracy') plt.xlabel('epoch') ...
24.296296
52
0.625
89
656
4.483146
0.41573
0.070175
0.140351
0.210526
0.360902
0.240602
0.240602
0.240602
0.240602
0.240602
0
0.018587
0.179878
656
26
53
25.230769
0.723048
0.032012
0
0.2
0
0
0.199052
0
0
0
0
0
0
1
0.05
false
0.05
0.05
0
0.1
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
226f194530429447cee149b4fb5bf70e9132898c
615
py
Python
tests/tstprovider_subscribe.py
flzara/shaystack
6bf815f25f3a5d64494ec1c4a34a7b23ea0ad4ce
[ "BSD-2-Clause" ]
9
2021-04-30T13:04:31.000Z
2022-01-11T14:11:53.000Z
tests/tstprovider_subscribe.py
flzara/shaystack
6bf815f25f3a5d64494ec1c4a34a7b23ea0ad4ce
[ "BSD-2-Clause" ]
1
2021-05-05T18:15:30.000Z
2021-06-29T12:57:23.000Z
tests/tstprovider_subscribe.py
flzara/shaystack
6bf815f25f3a5d64494ec1c4a34a7b23ea0ad4ce
[ "BSD-2-Clause" ]
5
2021-04-29T11:51:04.000Z
2022-02-22T21:10:19.000Z
from typing import List, Optional from overrides import overrides from shaystack import Grid, Ref from shaystack.providers import HaystackInterface class Provider(HaystackInterface): @overrides def watch_sub(self, watch_dis: str, watch_id: Optional[str], ids: List[Ref], lease: Optional[int...
27.954545
78
0.695935
72
615
5.847222
0.416667
0.085511
0.12114
0.061758
0.213777
0.213777
0
0
0
0
0
0
0.213008
615
21
79
29.285714
0.869835
0
0
0.4
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.266667
0
0.533333
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
227174c25eee0e04d5b79f47f42f73494b79f28e
2,272
py
Python
tools/ipynb2md.py
xudong-sun/mxnet
fe42d30d5885dd576cb871fd70594c53efce9b42
[ "Apache-2.0" ]
399
2017-05-30T05:12:48.000Z
2022-01-29T05:53:08.000Z
tools/ipynb2md.py
greenpea0104/incubator-mxnet
fc9e70bf2d349ad4c6cb65ff3f0958e23a7410bf
[ "Apache-2.0" ]
58
2017-05-30T23:25:32.000Z
2019-11-18T09:30:54.000Z
tools/ipynb2md.py
greenpea0104/incubator-mxnet
fc9e70bf2d349ad4c6cb65ff3f0958e23a7410bf
[ "Apache-2.0" ]
107
2017-05-30T05:53:22.000Z
2021-06-24T02:43:31.000Z
#!/usr/bin/env python # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "L...
29.506494
86
0.700704
327
2,272
4.761468
0.464832
0.038536
0.016699
0.020552
0.037251
0.037251
0
0
0
0
0
0.011507
0.196743
2,272
76
87
29.894737
0.841644
0.340229
0
0
0
0
0.168935
0
0
0
0
0
0
0
null
null
0
0.142857
null
null
0.028571
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
2279b89acabf2f8fa4aa51eb5f011498a1f36e79
48,569
py
Python
src/sage/combinat/skew_tableau.py
felix-salfelder/sage
5d8b2ff4794c44c7fa7a9d86ec567ecfa337e566
[ "BSL-1.0" ]
2
2021-08-20T00:30:35.000Z
2021-11-17T10:54:00.000Z
src/sage/combinat/skew_tableau.py
felix-salfelder/sage
5d8b2ff4794c44c7fa7a9d86ec567ecfa337e566
[ "BSL-1.0" ]
null
null
null
src/sage/combinat/skew_tableau.py
felix-salfelder/sage
5d8b2ff4794c44c7fa7a9d86ec567ecfa337e566
[ "BSL-1.0" ]
null
null
null
r""" Skew Tableaux """ #***************************************************************************** # Copyright (C) 2007 Mike Hansen <mhansen@gmail.com>, # # Distributed under the terms of the GNU General Public License (GPL) # # This code is distributed in the hope that it will be useful, # but WITHOUT ...
32.379333
195
0.527641
6,129
48,569
4.096427
0.082558
0.006851
0.009798
0.006413
0.517625
0.443462
0.370614
0.315888
0.267336
0.215358
0
0.038947
0.333381
48,569
1,499
196
32.400934
0.73651
0.038214
0
0.253456
0
0
0.065399
0.022783
0
0
0
0
0
0
null
null
0
0.041475
null
null
0.002304
0
0
0
null
0
0
0
0
0
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
97d2f505166cd30e1f5b300314f82d2dd3b0ebbe
395
py
Python
contracts/Counter.py
mikesizz/tezos-smartpy-example-box
89bdad2b57b7a2b9dc3a52f39edc5f0fa24c1cc5
[ "MIT" ]
7
2020-04-07T06:05:50.000Z
2022-01-07T23:55:24.000Z
contracts/Counter.py
mikesizz/tezos-smartpy-example-box
89bdad2b57b7a2b9dc3a52f39edc5f0fa24c1cc5
[ "MIT" ]
null
null
null
contracts/Counter.py
mikesizz/tezos-smartpy-example-box
89bdad2b57b7a2b9dc3a52f39edc5f0fa24c1cc5
[ "MIT" ]
4
2020-11-01T16:13:17.000Z
2021-11-17T10:01:05.000Z
# Counter - Example for illustrative purposes only. import smartpy as sp class Counter(sp.Contract): def __init__(self, initialValue = 0): self.init(storedValue = initialValue) @sp.entry_point def increment(self, params): self.data.storedValue += params.value @sp.entry_point ...
24.6875
51
0.681013
47
395
5.595745
0.531915
0.053232
0.091255
0.114068
0.304183
0.304183
0.304183
0
0
0
0
0.003257
0.222785
395
15
52
26.333333
0.85342
0.124051
0
0.2
0
0
0
0
0
0
0
0
0
1
0.3
false
0
0.1
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
97dfd3069f4d00e969c1a10eb556e87c5eb1390a
481
py
Python
drdown/users/migrations/0018_auto_20180526_2237.py
fga-gpp-mds/2018.1-Cris-Down
3423374360105b06ac2c57a320bf2ee8deaa08a3
[ "MIT" ]
11
2018-03-11T01:21:43.000Z
2018-06-19T21:51:33.000Z
drdown/users/migrations/0018_auto_20180526_2237.py
fga-gpp-mds/2018.1-Grupo12
3423374360105b06ac2c57a320bf2ee8deaa08a3
[ "MIT" ]
245
2018-03-13T19:07:14.000Z
2018-07-07T22:46:00.000Z
drdown/users/migrations/0018_auto_20180526_2237.py
fga-gpp-mds/2018.1-Grupo12
3423374360105b06ac2c57a320bf2ee8deaa08a3
[ "MIT" ]
12
2018-08-24T13:26:04.000Z
2021-03-27T16:28:22.000Z
# Generated by Django 2.0.3 on 2018-05-26 22:37 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('users', '0017_remove_patient_priority'), ] operations = [ migrations.AlterField( model_name='user', name='photo', ...
25.315789
145
0.62578
57
481
5.140351
0.807018
0.061433
0
0
0
0
0
0
0
0
0
0.060606
0.245322
481
18
146
26.722222
0.746556
0.093555
0
0
1
0
0.154378
0.064516
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
97e0e1dd7a401e06731a96fc9410eaedbabdca8f
1,338
py
Python
setup.py
olorin/prettyqr
6206c32ce6f3a8c91ee5f25b4d71b49d4c0b7cde
[ "MIT" ]
2
2018-05-13T14:42:36.000Z
2021-12-17T15:08:15.000Z
setup.py
olorin/prettyqr
6206c32ce6f3a8c91ee5f25b4d71b49d4c0b7cde
[ "MIT" ]
4
2021-03-18T20:25:28.000Z
2022-01-13T00:42:14.000Z
setup.py
olorin/prettyqr
6206c32ce6f3a8c91ee5f25b4d71b49d4c0b7cde
[ "MIT" ]
null
null
null
""" prettyqr https://github.com/olorin/prettyqr """ from setuptools import setup, find_packages from codecs import open from os import path here = path.abspath(path.dirname(__file__)) with open(path.join(here, "README.rst"), encoding="utf-8") as f: desc = f.read() setup( name="prettyqr", version="0.0.2...
26.76
64
0.59716
147
1,338
5.360544
0.571429
0.168782
0.222081
0.13198
0.139594
0
0
0
0
0
0
0.020813
0.245889
1,338
49
65
27.306122
0.760159
0.032885
0
0.075
0
0
0.46112
0.020218
0
0
0
0
0
1
0
false
0
0.075
0
0.075
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
97e4549f6668977543def67ad3baa572cf56d8f9
6,285
py
Python
lino_xl/lib/cal/workflows/feedback.py
khchine5/xl
b1634937a9ce87af1e948eb712b934b11f221d9d
[ "BSD-2-Clause" ]
1
2018-01-12T14:09:48.000Z
2018-01-12T14:09:48.000Z
lino_xl/lib/cal/workflows/feedback.py
khchine5/xl
b1634937a9ce87af1e948eb712b934b11f221d9d
[ "BSD-2-Clause" ]
1
2019-09-10T05:03:47.000Z
2019-09-10T05:03:47.000Z
lino_xl/lib/cal/workflows/feedback.py
khchine5/xl
b1634937a9ce87af1e948eb712b934b11f221d9d
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: UTF-8 -*- # Copyright 2013-2016 Luc Saffre # # License: BSD (see file COPYING for details) """Adds feedback-based workflow to :mod:`lino_xl.lib.cal`. Used e.g. by :ref:`welfare`. """ from __future__ import unicode_literals import logging logger = logging.getLogger(__name__) from django.utils.transla...
32.396907
81
0.68751
768
6,285
5.471354
0.320313
0.026178
0.036173
0.020942
0.241076
0.209424
0.189434
0.116135
0.099952
0.063303
0
0.012831
0.193954
6,285
193
82
32.564767
0.814449
0.281464
0
0.215686
0
0
0.122227
0
0
0
0
0
0
1
0.068627
false
0
0.078431
0.019608
0.529412
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
97ead13f9d3fb4bb849a8c329d528423e1df7b94
1,672
py
Python
gae_matplotlib_demo.py
dimaqq/recipes
e424ef3ab68a38f9cabc47ee142147fa578f2c81
[ "MIT" ]
null
null
null
gae_matplotlib_demo.py
dimaqq/recipes
e424ef3ab68a38f9cabc47ee142147fa578f2c81
[ "MIT" ]
1
2015-12-15T12:59:37.000Z
2015-12-15T12:59:37.000Z
gae_matplotlib_demo.py
dimaqq/recipes
e424ef3ab68a38f9cabc47ee142147fa578f2c81
[ "MIT" ]
null
null
null
#!/usr/bin/python import logging try: import webapp2 except: logging.exception("no webapp") import pprint import os import StringIO os.environ["MATPLOTLIBDATA"] = os.getcwdu() os.environ["MPLCONFIGDIR"] = os.getcwdu() import subprocess def no_popen(*args, **kwargs): raise OSError("forbjudet") subprocess.Popen =...
27.866667
99
0.634569
205
1,672
5.097561
0.468293
0.038278
0.065072
0.03445
0.151196
0.151196
0.151196
0.151196
0.151196
0.151196
0
0.01434
0.207536
1,672
59
100
28.338983
0.77434
0.060407
0
0.288462
0
0
0.108349
0.020395
0
0
0
0
0
0
null
null
0
0.134615
null
null
0.076923
0
0
0
null
0
0
0
0
0
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
97ebd6358d3c1eee568a3c742350025ab73eca75
1,509
py
Python
tests/utils.py
Simple2B/cortex-backend
9cf6802b0eff9254875bcbe553517500ccfc9082
[ "MIT" ]
1
2021-10-17T13:28:51.000Z
2021-10-17T13:28:51.000Z
tests/utils.py
Simple2B/cortex-backend
9cf6802b0eff9254875bcbe553517500ccfc9082
[ "MIT" ]
null
null
null
tests/utils.py
Simple2B/cortex-backend
9cf6802b0eff9254875bcbe553517500ccfc9082
[ "MIT" ]
null
null
null
# from fastapi import Depends, HTTPException # from fastapi.security import OAuth2PasswordRequestForm from admin.config import BaseConfig as conf # fastapi - > login def login(client, username=conf.ADMIN_EMAIL, password=conf.ADMIN_PASSWORD) -> str: """get token""" data = dict( grant_type="password", ...
28.471698
88
0.675944
177
1,509
5.644068
0.333333
0.056056
0.03003
0.04004
0.309309
0.264264
0.264264
0.202202
0.202202
0.202202
0
0.006606
0.197482
1,509
52
89
29.019231
0.818332
0.463221
0
0
0
0
0.100637
0
0
0
0
0
0.142857
1
0.142857
false
0.238095
0.047619
0.095238
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
97f647fe3f4fe2493f374a276ab43e99743f7687
7,628
py
Python
tests/unittests/test_mysqlhelper.py
novaweb-mobi/nova-api
2887118ff10d18f366ce661262bd25bb96648470
[ "MIT" ]
3
2020-09-08T23:33:41.000Z
2021-12-24T20:50:13.000Z
tests/unittests/test_mysqlhelper.py
novaweb-mobi/nova-api
2887118ff10d18f366ce661262bd25bb96648470
[ "MIT" ]
39
2020-07-29T12:34:14.000Z
2022-03-05T16:50:29.000Z
tests/unittests/test_mysqlhelper.py
novaweb-mobi/nova-api
2887118ff10d18f366ce661262bd25bb96648470
[ "MIT" ]
1
2021-03-05T19:41:58.000Z
2021-03-05T19:41:58.000Z
from dataclasses import dataclass from datetime import date, datetime import mysql.connector from mock import call from mysql.connector import DatabaseError, Error, InterfaceError from pytest import fixture, mark, raises from nova_api.entity import Entity from nova_api.persistence.mysql_helper import MySQLHelper @d...
38.14
79
0.56096
832
7,628
4.935096
0.158654
0.052606
0.037993
0.061374
0.637604
0.587433
0.516074
0.479299
0.444228
0.429128
0
0.028793
0.307944
7,628
199
80
38.331658
0.749005
0
0
0.376471
0
0
0.117724
0.015076
0
0
0
0
0.058824
1
0.123529
false
0.082353
0.047059
0.011765
0.205882
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
3f01c1b20813b8f2fbe8393426c8a1fba775afa9
3,631
py
Python
py2/testdir_rapids/test_rapids_vec_fail.py
ahmedengu/h2o-3
ac2c0a6fbe7f8e18078278bf8a7d3483d41aca11
[ "Apache-2.0" ]
2
2020-09-23T14:23:55.000Z
2020-09-23T19:26:30.000Z
py2/testdir_rapids/test_rapids_vec_fail.py
ahmedengu/h2o-3
ac2c0a6fbe7f8e18078278bf8a7d3483d41aca11
[ "Apache-2.0" ]
2
2021-06-02T02:24:03.000Z
2021-11-15T17:51:49.000Z
py2/testdir_rapids/test_rapids_vec_fail.py
ahmedengu/h2o-3
ac2c0a6fbe7f8e18078278bf8a7d3483d41aca11
[ "Apache-2.0" ]
1
2020-04-17T13:06:26.000Z
2020-04-17T13:06:26.000Z
import unittest, random, sys, time, re sys.path.extend(['.','..','../..','py']) import h2o2 as h2o import h2o_browse as h2b, h2o_exec as h2e, h2o_import as h2i, h2o_gbm, h2o_cmd class Basic(unittest.TestCase): def tearDown(self): h2o.check_sandbox_for_errors() @classmethod def setUpClass(cls): ...
32.711712
118
0.548334
405
3,631
4.802469
0.397531
0.028792
0.028278
0.082262
0.330591
0.22365
0.22365
0.185604
0.185604
0.185604
0
0.034469
0.320848
3,631
110
119
33.009091
0.754258
0.121454
0
0.285714
0
0
0.101385
0.006612
0
0
0
0
0
0
null
null
0
0.057143
null
null
0.028571
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
3f02f50d7582e251aa08140a0449625cdbe84ae2
681
py
Python
SEResNet/SE_block.py
Yfyangd/TaiwanTree
6c1d929a127bb717ec98dec05b63ac5c258f4187
[ "MIT" ]
null
null
null
SEResNet/SE_block.py
Yfyangd/TaiwanTree
6c1d929a127bb717ec98dec05b63ac5c258f4187
[ "MIT" ]
null
null
null
SEResNet/SE_block.py
Yfyangd/TaiwanTree
6c1d929a127bb717ec98dec05b63ac5c258f4187
[ "MIT" ]
null
null
null
from keras.models import Model from keras.layers import * from keras.regularizers import l2 from keras import backend as K from keras.callbacks import EarlyStopping, ModelCheckpoint from keras.utils import to_categorical from keras import layers, Input, models import tensorflow as tf def squeeze_excite_block(...
35.842105
72
0.715125
94
681
5.085106
0.457447
0.131799
0.062762
0.066946
0
0
0
0
0
0
0
0.012681
0.189427
681
19
73
35.842105
0.853261
0
0
0
0
0
0.016566
0
0
0
0
0
0
1
0.055556
false
0
0.444444
0
0.555556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
3f0424ad1eba6fa27a839c706618be270dd08a93
372
py
Python
lantz/drivers/newport/__init__.py
noelniles/lantz
08b5d23674566e200e24d8baf13e454a0917cb58
[ "BSD-3-Clause" ]
88
2015-02-10T09:49:53.000Z
2021-11-21T20:17:44.000Z
lantz/drivers/newport/__init__.py
varses/awsch
6fbff4dd293d4110d002d477d2642a7e75cc9ace
[ "BSD-3-Clause" ]
34
2015-02-08T05:35:21.000Z
2021-01-04T17:45:00.000Z
lantz/drivers/newport/__init__.py
varses/awsch
6fbff4dd293d4110d002d477d2642a7e75cc9ace
[ "BSD-3-Clause" ]
38
2015-02-11T07:25:52.000Z
2021-11-05T02:41:53.000Z
# -*- coding: utf-8 -*- """ lantz.drivers.newport ~~~~~~~~~~~~~~~~~~~~~ :company: Newport. :description: Test and Measurement Equipment. :website: http://www.newport.com/ --- :copyright: 2015 by Lantz Authors, see AUTHORS for more details. :license: BSD, """ from .powermeter1830c im...
18.6
68
0.612903
36
372
6.222222
0.833333
0
0
0
0
0
0
0
0
0
0
0.057432
0.204301
372
19
69
19.578947
0.699324
0.677419
0
0
0
0
0.189873
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
3f06074a3e1d0c21fe358bbef31887aabd2e981f
9,997
py
Python
common.py
petmir/corpedit
35fd40e740434e77764a57e0930c658d273b019b
[ "MIT" ]
null
null
null
common.py
petmir/corpedit
35fd40e740434e77764a57e0930c658d273b019b
[ "MIT" ]
null
null
null
common.py
petmir/corpedit
35fd40e740434e77764a57e0930c658d273b019b
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf8 -*- import os import io import traceback import logging import datetime import subprocess this_dir = os.path.dirname(os.path.realpath(__file__)) ################################################### # --- set up global settings (done only once) --- # ##########################...
34.119454
133
0.576173
1,234
9,997
4.535656
0.233387
0.035733
0.023584
0.026264
0.377345
0.334644
0.300875
0.289798
0.28015
0.256923
0
0.009408
0.298289
9,997
292
134
34.236301
0.788453
0.260078
0
0.434783
0
0
0.087765
0
0
0
0
0
0.016304
0
null
null
0.01087
0.048913
null
null
0.005435
0
0
0
null
0
0
0
0
0
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
3f065b4f5ced2048f1a4fc96db5855953594388c
9,470
py
Python
lib.py
Varmaiit/Python-script-to-clone-a-replica-of-production-website
1b630c991a0014ab74868f8f3a5ba89cbfbcc628
[ "MIT" ]
null
null
null
lib.py
Varmaiit/Python-script-to-clone-a-replica-of-production-website
1b630c991a0014ab74868f8f3a5ba89cbfbcc628
[ "MIT" ]
null
null
null
lib.py
Varmaiit/Python-script-to-clone-a-replica-of-production-website
1b630c991a0014ab74868f8f3a5ba89cbfbcc628
[ "MIT" ]
null
null
null
import json, jinja2, shlex from subprocess import call, check_output, Popen, PIPE from shovel import task with open('config.json') as data_file: CONFIG = json.load(data_file) @task def create_test_db_from_backupfile(dbName, tldName = CONFIG['tldName'], sqlDumpFilePath = CONFIG['sqlDumpFilePath'], hostName =...
48.564103
291
0.71056
1,028
9,470
6.474708
0.225681
0.02479
0.033654
0.011268
0.430439
0.366136
0.295222
0.215895
0.20598
0.181641
0
0.0027
0.178669
9,470
195
292
48.564103
0.853047
0.38585
0
0.25
0
0
0.22496
0.018162
0
0
0
0
0
1
0.05
false
0.15
0.083333
0
0.133333
0.266667
0
0
0
null
0
0
0
0
0
0
0
0
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
3f095342eb1ff4768b62daab63c4c5199750e7c7
1,465
py
Python
amd64-linux/lib/python/mod_AM79C973_commands.py
qiyancos/Simics-3.0.31
9bd52d5abad023ee87a37306382a338abf7885f1
[ "BSD-4-Clause", "FSFAP" ]
1
2020-06-15T10:41:18.000Z
2020-06-15T10:41:18.000Z
amd64-linux/lib/python/mod_AM79C973_commands.py
qiyancos/Simics-3.0.31
9bd52d5abad023ee87a37306382a338abf7885f1
[ "BSD-4-Clause", "FSFAP" ]
null
null
null
amd64-linux/lib/python/mod_AM79C973_commands.py
qiyancos/Simics-3.0.31
9bd52d5abad023ee87a37306382a338abf7885f1
[ "BSD-4-Clause", "FSFAP" ]
3
2020-08-10T10:25:02.000Z
2021-09-12T01:12:09.000Z
# Copyright 2006-2007 Virtutech AB import sim_commands def checkbit(a, bit): if a & (1 << bit): return 1 else: return 0 def get_info(obj): return [ (None, [ ("PHY object", obj.phy), ] ) ] + sim_commands.get_pci_info(obj) def get_status(obj): csr0 = obj.csr_csr0 cs...
38.552632
92
0.564505
206
1,465
3.873786
0.364078
0.240602
0.022556
0.033835
0
0
0
0
0
0
0
0.081801
0.257338
1,465
37
93
39.594595
0.651654
0.021843
0
0
0
0.064516
0.152341
0
0
0
0
0
0
1
0.096774
false
0
0.032258
0.032258
0.258065
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
3f0de14fb3ae8142f6b477a64333ccfd12633d33
20,246
py
Python
hydra_login2f/routes.py
epandurski/hydra_login2f
e384a1e9faca2b8202e8d88930158dd8fb790f70
[ "MIT" ]
16
2018-12-05T14:24:47.000Z
2021-12-24T07:56:46.000Z
hydra_login2f/routes.py
epandurski/hydra_login2f
e384a1e9faca2b8202e8d88930158dd8fb790f70
[ "MIT" ]
null
null
null
hydra_login2f/routes.py
epandurski/hydra_login2f
e384a1e9faca2b8202e8d88930158dd8fb790f70
[ "MIT" ]
2
2019-06-01T14:14:55.000Z
2019-09-17T16:58:18.000Z
from urllib.parse import urljoin from flask import request, redirect, url_for, flash, render_template, abort,\ make_response, current_app, Blueprint from flask_babel import gettext, get_locale import user_agents from . import utils, captcha, emails, hydra from .redis import SignUpRequest, LoginVerificationRequest, ...
41.234216
116
0.661168
2,279
20,246
5.571303
0.113646
0.04631
0.022683
0.013389
0.552178
0.477672
0.411278
0.337403
0.262109
0.208868
0
0.003735
0.246221
20,246
490
117
41.318367
0.828255
0.039069
0
0.433915
0
0
0.117075
0.040243
0
0
0
0
0
1
0.067332
false
0.127182
0.01995
0.024938
0.201995
0.007481
0
0
0
null
0
0
0
0
0
0
0
0
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
3f117586185d2dc38741893107af51e6925da805
620
py
Python
day3.py
PrajjawalBanati/100-Days-Of-ML-Code
373c7693a3b0378c7f684930e2ffcc0691f4e661
[ "MIT" ]
1
2022-03-07T14:53:37.000Z
2022-03-07T14:53:37.000Z
day3.py
PrajjawalBanati/100-Days-Of-ML-Code
373c7693a3b0378c7f684930e2ffcc0691f4e661
[ "MIT" ]
null
null
null
day3.py
PrajjawalBanati/100-Days-Of-ML-Code
373c7693a3b0378c7f684930e2ffcc0691f4e661
[ "MIT" ]
1
2020-04-20T17:28:24.000Z
2020-04-20T17:28:24.000Z
import pandas as pd import numpy as np from sklearn.model_selection import train_test_split from sklearn.linear_model import LinearRegression from sklearn.preprocessing import LabelEncoder if __name__ == '__main__': df = pd.read_csv('datasets/50_Startups.csv') X = df.iloc[:, :-1].values Y = df.iloc[:, -1]...
26.956522
93
0.704839
94
620
4.361702
0.446809
0.080488
0.068293
0.063415
0
0
0
0
0
0
0
0.017578
0.174194
620
22
94
28.181818
0.783203
0
0
0
0
0
0.051613
0.03871
0
0
0
0
0
1
0
false
0
0.3125
0
0.3125
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
1
0
0
0
0
1
3f13c68df18672f1414888d3cfc44989c14dab39
1,361
py
Python
ssguan/ignitor/registry/model.py
samuelbaizg/ssguan
97def0609d61e40472554464470758b5fb9eca35
[ "Apache-2.0" ]
1
2015-07-14T14:24:05.000Z
2015-07-14T14:24:05.000Z
ssguan/ignitor/registry/model.py
samuelbaizg/ssguan
97def0609d61e40472554464470758b5fb9eca35
[ "Apache-2.0" ]
null
null
null
ssguan/ignitor/registry/model.py
samuelbaizg/ssguan
97def0609d61e40472554464470758b5fb9eca35
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2015 www.suishouguan.com # # Licensed under the Private License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://github.com/samuelbaizg/ssguan/blob/master/LICENSE # # Unless ...
36.783784
99
0.730345
174
1,361
5.649425
0.563218
0.061038
0.069176
0.061038
0.07528
0
0
0
0
0
0
0.01
0.191771
1,361
36
100
37.805556
0.883636
0.43424
0
0
0
0
0.01669
0
0
0
0
0
0
1
0.071429
false
0
0.285714
0.071429
0.928571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
3f166fd792afbd448d9904fbd84d65fcca9bea4c
4,213
py
Python
viya_ark_library/k8s/k8s_resource_keys.py
mauriziopinzi/viya4-ark
fa3545a6e985150bbcd8504d9fc2b3c07810c31c
[ "Apache-2.0" ]
null
null
null
viya_ark_library/k8s/k8s_resource_keys.py
mauriziopinzi/viya4-ark
fa3545a6e985150bbcd8504d9fc2b3c07810c31c
[ "Apache-2.0" ]
null
null
null
viya_ark_library/k8s/k8s_resource_keys.py
mauriziopinzi/viya4-ark
fa3545a6e985150bbcd8504d9fc2b3c07810c31c
[ "Apache-2.0" ]
null
null
null
#################################################################### # ### k8s_resource_keys.py ### #################################################################### # ### Author: SAS Institute Inc. ### ############################################...
34.252033
113
0.580584
354
4,213
6.706215
0.550847
0.01011
0.012637
0
0
0
0
0
0
0
0
0.002239
0.258011
4,213
122
114
34.532787
0.757198
0.109186
0
0
0
0
0.323653
0.048802
0
0
0
0
0
1
0
false
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
3f1caa2c17418ede34359337b49107e02d2a38c1
2,207
py
Python
paperboy/resources/login.py
chris-aeviator/paperboy
604c912c3530cd37fb07dcf22321d9dde15465ee
[ "Apache-2.0" ]
233
2018-11-01T09:17:08.000Z
2022-03-22T08:27:24.000Z
paperboy/resources/login.py
chris-aeviator/paperboy
604c912c3530cd37fb07dcf22321d9dde15465ee
[ "Apache-2.0" ]
99
2018-10-17T21:48:42.000Z
2021-05-07T08:33:36.000Z
paperboy/resources/login.py
chris-aeviator/paperboy
604c912c3530cd37fb07dcf22321d9dde15465ee
[ "Apache-2.0" ]
29
2018-11-01T11:33:08.000Z
2022-01-12T22:12:19.000Z
import falcon import jinja2 from .base import BaseResource from .html import read class LoginResource(BaseResource): '''Falcon resource for user authentication''' auth_required = False def __init__(self, *args, **kwargs): super(LoginResource, self).__init__(*args, **kwargs) def on_get(self,...
43.27451
122
0.535569
218
2,207
5.293578
0.348624
0.129983
0.058925
0.034662
0.469671
0.469671
0.469671
0.469671
0.469671
0.469671
0
0.004329
0.371998
2,207
50
123
44.14
0.828283
0.067059
0
0.486486
0
0
0.03477
0
0
0
0
0
0
1
0.081081
false
0.054054
0.108108
0
0.243243
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
3f1d2e30a0c4ad938b87de9ea9b78a2a7cd3d6c0
5,735
py
Python
testws.py
DunnCreativeSS/cash_carry_leveraged_futures_arbitrageur
1120ebfb487ce4987fe70e6645b36e0d7ce041ec
[ "Apache-2.0" ]
1
2021-09-06T00:09:11.000Z
2021-09-06T00:09:11.000Z
testws.py
DunnCreativeSS/cash_carry_leveraged_futures_arbitrageur
1120ebfb487ce4987fe70e6645b36e0d7ce041ec
[ "Apache-2.0" ]
null
null
null
testws.py
DunnCreativeSS/cash_carry_leveraged_futures_arbitrageur
1120ebfb487ce4987fe70e6645b36e0d7ce041ec
[ "Apache-2.0" ]
null
null
null
import datetime import uuid import urllib import asyncio import websockets import json import hmac import base64 import hashlib import gzip import traceback def generate_signature(host, method, params, request_path, secret_key): """Generate signature of huobi future. Args: host: api doma...
33.934911
117
0.531125
634
5,735
4.665615
0.315457
0.042596
0.024341
0.024341
0.182218
0.126437
0.116633
0.116633
0.116633
0.116633
0
0.007632
0.337402
5,735
168
118
34.136905
0.770789
0.106016
0
0.2
1
0
0.117749
0.006494
0
0
0
0
0
1
0.008696
false
0
0.121739
0
0.13913
0.069565
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
3f258137c065f664efd863d9a61dd8aafb47a34a
3,935
py
Python
tests/test_subtitle.py
314eter/subliminal
160ea63bef0650a6f7f2e6e0d84c828c5cbbccde
[ "MIT" ]
null
null
null
tests/test_subtitle.py
314eter/subliminal
160ea63bef0650a6f7f2e6e0d84c828c5cbbccde
[ "MIT" ]
null
null
null
tests/test_subtitle.py
314eter/subliminal
160ea63bef0650a6f7f2e6e0d84c828c5cbbccde
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import os import six from babelfish import Language from subliminal.subtitle import Subtitle, fix_line_ending, get_subtitle_path def test_subtitle_text(): subtitle = Subtitle(Language('eng')) subtitle.content = b'Some ascii text' assert subtitle.text == 'Some ascii text' def te...
33.632479
113
0.697078
564
3,935
4.702128
0.228723
0.042232
0.062217
0.025641
0.65083
0.559201
0.465686
0.415913
0.383484
0.342006
0
0.034188
0.167471
3,935
116
114
33.922414
0.775336
0.034816
0
0.397436
0
0
0.171368
0.037701
0
0
0
0
0.24359
1
0.205128
false
0
0.051282
0
0.25641
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
3f268e4ad0489b41329cc44fa535a2d259ff8c2a
341
py
Python
app/migrations/0003_auto_20200912_2310.py
vivi1231/aiot-django-dashboard-adminlte
c0a11979c718d26047c2197090cafed7b1fd9274
[ "MIT" ]
null
null
null
app/migrations/0003_auto_20200912_2310.py
vivi1231/aiot-django-dashboard-adminlte
c0a11979c718d26047c2197090cafed7b1fd9274
[ "MIT" ]
null
null
null
app/migrations/0003_auto_20200912_2310.py
vivi1231/aiot-django-dashboard-adminlte
c0a11979c718d26047c2197090cafed7b1fd9274
[ "MIT" ]
1
2020-09-13T11:48:49.000Z
2020-09-13T11:48:49.000Z
# Generated by Django 2.2.10 on 2020-09-12 15:10 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('app', '0002_auto_20200912_2309'), ] operations = [ migrations.AlterModelOptions( name='face', options={'ordering': ['-time'...
18.944444
48
0.580645
35
341
5.571429
0.828571
0
0
0
0
0
0
0
0
0
0
0.131687
0.28739
341
17
49
20.058824
0.670782
0.134897
0
0
1
0
0.146758
0.078498
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
3f2d425f8f2e4f306420ee05a72373af001b6bcf
5,534
py
Python
acs/acs/Device/DeviceCapability/DeviceCapabilityManager.py
intel/test-framework-and-suites-for-android
3aae8452ae931437b3b5ac30f068dc22a8dc5b85
[ "Apache-2.0" ]
8
2018-09-14T01:34:01.000Z
2021-07-01T02:00:23.000Z
acs/acs/Device/DeviceCapability/DeviceCapabilityManager.py
intel/test-framework-and-suites-for-android
3aae8452ae931437b3b5ac30f068dc22a8dc5b85
[ "Apache-2.0" ]
3
2019-09-10T11:39:50.000Z
2019-10-10T08:26:22.000Z
acs/acs/Device/DeviceCapability/DeviceCapabilityManager.py
intel/test-framework-and-suites-for-android
3aae8452ae931437b3b5ac30f068dc22a8dc5b85
[ "Apache-2.0" ]
9
2018-10-11T15:14:03.000Z
2021-02-17T11:37:20.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Copyright (C) 2018 Intel Corporation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required b...
42.244275
115
0.667691
650
5,534
5.530769
0.290769
0.105146
0.022253
0.01669
0.204451
0.170236
0.100139
0.082337
0.031154
0
0
0.008126
0.266173
5,534
130
116
42.569231
0.877124
0.045898
0
0.103448
0
0
0.116454
0.012457
0
0
0
0
0
0
null
null
0
0.103448
null
null
0.051724
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
3f2e3f83af5759b9b60d790b3aebd7b939dc3489
692
py
Python
Moderate/number_swapper.py
will300/Algorithms
7042756610fbe639c32dcd12b099444d61a0c1b1
[ "CNRI-Python" ]
null
null
null
Moderate/number_swapper.py
will300/Algorithms
7042756610fbe639c32dcd12b099444d61a0c1b1
[ "CNRI-Python" ]
null
null
null
Moderate/number_swapper.py
will300/Algorithms
7042756610fbe639c32dcd12b099444d61a0c1b1
[ "CNRI-Python" ]
null
null
null
def swap_in_place(arr, idx1, idx2): new_arr = arr[:] if idx1 > len(arr) - 1 or idx2 > len(arr) - 1: return arr new_arr.insert(idx1, new_arr.pop(idx2)) #print(new_arr) new_arr.insert(idx2, new_arr.pop(idx1 + 1)) return new_arr def test_case(arr, idx1, idx2, solution, test_func): out...
30.086957
64
0.598266
125
692
3.12
0.256
0.107692
0.141026
0.076923
0.202564
0.202564
0.148718
0
0
0
0
0.087361
0.222543
692
22
65
31.454545
0.637546
0.020231
0
0
0
0
0.069424
0
0
0
0
0
0
1
0.117647
false
0.058824
0
0
0.235294
0.117647
0
0
0
null
0
0
0
0
0
0
0
0
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
3f312f7d79a7fce837a46708b9cdef89f06fcffa
1,840
py
Python
easiercfg/easiercfg.py
kistee/easiercfg
ee0e76c628caf5ab1d3baabf180ceeb983db909e
[ "MIT" ]
null
null
null
easiercfg/easiercfg.py
kistee/easiercfg
ee0e76c628caf5ab1d3baabf180ceeb983db909e
[ "MIT" ]
null
null
null
easiercfg/easiercfg.py
kistee/easiercfg
ee0e76c628caf5ab1d3baabf180ceeb983db909e
[ "MIT" ]
null
null
null
from configparser import RawConfigParser import os import sys class Config(RawConfigParser): """ Class for easy config file usage. """ def __init__(self): """ Initialize Class. """ # Parameter self.filename = 'config.ini' # Call parent constructor ...
24.864865
72
0.530978
197
1,840
4.822335
0.365482
0.067368
0.042105
0.063158
0.162105
0.162105
0.162105
0.162105
0.101053
0.101053
0
0.002504
0.348913
1,840
73
73
25.205479
0.790484
0.222283
0
0
0
0
0.030155
0
0
0
0
0
0
1
0.258065
false
0
0.096774
0
0.451613
0.032258
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
3f3291436953c72106c453e1b2ec9cc8a6e2955e
342
py
Python
hypotenuse.py
Dikaeinstein/Think_Python
370cb5af25230ff20994206e2d8023fd1d4c2c74
[ "MIT" ]
null
null
null
hypotenuse.py
Dikaeinstein/Think_Python
370cb5af25230ff20994206e2d8023fd1d4c2c74
[ "MIT" ]
null
null
null
hypotenuse.py
Dikaeinstein/Think_Python
370cb5af25230ff20994206e2d8023fd1d4c2c74
[ "MIT" ]
null
null
null
import math def hypotenuse ( opp, adj ): ''' hypotenuse: Calculates the hypotenuse of a right-angle triangle opp: Length of side opposite the hypotenuse adj: Length of side adjacent the hypotenuse ''' dsquared = opp**2 + adj**2 return math.sqrt(dsquared) p...
24.428571
50
0.614035
42
342
5
0.571429
0.185714
0.114286
0
0
0
0
0
0
0
0
0.016807
0.304094
342
14
51
24.428571
0.865546
0.482456
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.2
0
0.6
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
3f39b9f23b8b61b902bb9fc913f828d5a7686ea3
298
py
Python
19/test_part2.py
jcsesznegi/advent-of-code-2017
9710e184e092b82aa798076b9ce3915c6e42758d
[ "MIT" ]
1
2020-04-12T17:54:52.000Z
2020-04-12T17:54:52.000Z
19/test_part2.py
jcsesznegi/advent-of-code-2017
9710e184e092b82aa798076b9ce3915c6e42758d
[ "MIT" ]
null
null
null
19/test_part2.py
jcsesznegi/advent-of-code-2017
9710e184e092b82aa798076b9ce3915c6e42758d
[ "MIT" ]
null
null
null
from network import Network def test_traveled_steps(): diagram = ([ ' | ', ' | +--+ ', ' A | C ', ' F---|----E|--+ ', ' | | | D ', ' +B-+ +--+ ', ]) n = Network(diagram) n.run() assert n.getTraveledSteps() == 38
14.9
37
0.345638
24
298
4.208333
0.791667
0
0
0
0
0
0
0
0
0
0
0.011834
0.432886
298
19
38
15.684211
0.585799
0
0
0
0
0
0.324324
0
0
0
0
0
0.076923
1
0.076923
false
0
0.076923
0
0.153846
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
3f3fc370621f22da90ba9078c4e318f97be49635
4,748
py
Python
hard-gists/5284646/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
21
2019-07-08T08:26:45.000Z
2022-01-24T23:53:25.000Z
hard-gists/5284646/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
5
2019-06-15T14:47:47.000Z
2022-02-26T05:02:56.000Z
hard-gists/5284646/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
17
2019-05-16T03:50:34.000Z
2021-01-14T14:35:12.000Z
#/usr/bin/env python # encoding: utf-8 import os import sys import atexit import json import time import tempfile import wave import traceback import urllib2 from subprocess import check_output from Queue import Queue, Empty import numpy as np import pyaudio class Spectrum(object): FORMAT = pyaudio.paFloat32 ...
31.236842
99
0.537068
564
4,748
4.453901
0.340426
0.051752
0.025876
0.015525
0.050557
0.050557
0.050557
0.04379
0.04379
0
0
0.031946
0.347304
4,748
151
100
31.443709
0.778638
0.049705
0
0.164063
0
0.007813
0.038427
0
0
0
0
0
0
0
null
null
0.007813
0.101563
null
null
0.023438
0
0
0
null
0
0
0
0
0
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
3f4562feff638c7cdaff4cce87624a06f2568510
650
py
Python
conduit/fair/data/datamodules/tabular/law.py
predictive-analytics-lab/pal-bolts
5f1932f351f2e551276b47dfeda7888772d99895
[ "MIT" ]
2
2021-07-15T20:36:25.000Z
2021-08-04T15:53:50.000Z
conduit/fair/data/datamodules/tabular/law.py
predictive-analytics-lab/conduit
919c1032b940fcb8b07dbe6564e255f135e2698a
[ "MIT" ]
18
2021-09-07T13:50:10.000Z
2021-12-06T19:02:23.000Z
conduit/fair/data/datamodules/tabular/law.py
predictive-analytics-lab/pal-bolts
5f1932f351f2e551276b47dfeda7888772d99895
[ "MIT" ]
1
2021-08-11T14:35:40.000Z
2021-08-11T14:35:40.000Z
"""Law Admissions Dataset.""" from enum import Enum import attr import ethicml as em from conduit.fair.data.datamodules.tabular.base import EthicMlDataModule __all__ = ["LawDataModule", "LawSens"] class LawSens(Enum): sex = "Sex" race = "Race" sexRace = "Sex-Race" @attr.define(kw_only=True) class Law...
20.967742
98
0.692308
83
650
5.240964
0.53012
0.05977
0.091954
0
0
0
0
0
0
0
0
0
0.196923
650
30
99
21.666667
0.833333
0.08
0
0
0
0
0.059625
0
0
0
0
0
0
1
0.055556
false
0
0.222222
0.055556
0.722222
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
3f4d370c027be2bb3576afaa16331002d34f0f1a
587
py
Python
setup.py
MagnaXSoftware/popo
e601690caf9ef96b4bfe5aa93f8675098648fff8
[ "MIT" ]
null
null
null
setup.py
MagnaXSoftware/popo
e601690caf9ef96b4bfe5aa93f8675098648fff8
[ "MIT" ]
null
null
null
setup.py
MagnaXSoftware/popo
e601690caf9ef96b4bfe5aa93f8675098648fff8
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages setup( name="popo", version="0.0.1", url="https://github.com/MagnaXSoftware/popo", license="MIT", author="MagnaX Software", author_email="info@magnax.ca", description="POPO gives you a simple, small, clean ORM with Plain Old Python Objects.", ...
29.35
91
0.625213
66
587
5.515152
0.80303
0.065934
0
0
0
0
0
0
0
0
0
0.011136
0.235094
587
19
92
30.894737
0.799555
0
0
0
0
0
0.519591
0
0
0
0
0
0
1
0
true
0
0.055556
0
0.055556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
3f4ec48b5ad433da34a67333454dcd682c7d2ce2
1,940
py
Python
tests/functional/tabloid/test_optimizer_index_navigation.py
FirebirdSQL/firebird-qa
96af2def7f905a06f178e2a80a2c8be4a4b44782
[ "MIT" ]
1
2022-02-05T11:37:13.000Z
2022-02-05T11:37:13.000Z
tests/functional/tabloid/test_optimizer_index_navigation.py
FirebirdSQL/firebird-qa
96af2def7f905a06f178e2a80a2c8be4a4b44782
[ "MIT" ]
1
2021-09-03T11:47:00.000Z
2021-09-03T12:42:10.000Z
tests/functional/tabloid/test_optimizer_index_navigation.py
FirebirdSQL/firebird-qa
96af2def7f905a06f178e2a80a2c8be4a4b44782
[ "MIT" ]
1
2021-06-30T14:14:16.000Z
2021-06-30T14:14:16.000Z
#coding:utf-8 # # id: functional.tabloid.optimizer_index_navigation # title: Check that optimizer takes in account presense of index and does navigation instead of external sort. # decription: # Verified commit: https://github.com/FirebirdSQL/firebird/actions/runs/176006556 # ...
29.393939
117
0.657732
312
1,940
3.923077
0.400641
0.017974
0.034314
0.03268
0.248366
0.19281
0.19281
0.166667
0.166667
0.166667
0
0.06445
0.240206
1,940
65
118
29.846154
0.765943
0.312887
0
0.125
0
0.125
0.631459
0
0
0
0
0
0.03125
1
0.03125
false
0
0.0625
0
0.09375
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
3f5044f6749edbe411f1d7bc0a7f0e45fe0a2ff4
12,697
py
Python
tools/wptserve/wptserve/server.py
Acidburn0zzz/web-testing-service
1b46978e27a2e04f322d0f05f606ee96716642aa
[ "BSD-3-Clause" ]
null
null
null
tools/wptserve/wptserve/server.py
Acidburn0zzz/web-testing-service
1b46978e27a2e04f322d0f05f606ee96716642aa
[ "BSD-3-Clause" ]
null
null
null
tools/wptserve/wptserve/server.py
Acidburn0zzz/web-testing-service
1b46978e27a2e04f322d0f05f606ee96716642aa
[ "BSD-3-Clause" ]
null
null
null
import BaseHTTPServer import errno import logging import os import re import socket from SocketServer import ThreadingMixIn import ssl import sys import threading import traceback import types import urlparse from request import Server, Request from response import Response from router import Router import routes from...
37.454277
121
0.611798
1,486
12,697
5.130552
0.241588
0.010231
0.006296
0.006821
0.112539
0.056139
0.04276
0.036464
0.036464
0.028594
0
0.006044
0.32236
12,697
338
122
37.565089
0.880056
0.014492
0
0.165746
0
0
0.030588
0
0
0
0
0
0.005525
0
null
null
0.01105
0.099448
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
3f540f7d9c28af1aa8cf04f845866a95254bd94c
529
py
Python
django_pro1_iot/rooms/models.py
splinter-NGoH/django-iot
c45b70ebcfeb4728655f993a1db31e6234caaf1e
[ "MIT" ]
null
null
null
django_pro1_iot/rooms/models.py
splinter-NGoH/django-iot
c45b70ebcfeb4728655f993a1db31e6234caaf1e
[ "MIT" ]
4
2022-03-18T13:52:20.000Z
2022-03-25T13:38:35.000Z
django_pro1_iot/rooms/models.py
splinter-NGoH/django-iot
c45b70ebcfeb4728655f993a1db31e6234caaf1e
[ "MIT" ]
null
null
null
from django.db import models from django_pro1_iot.users.models import User class Room(models.Model): user = models.ForeignKey(User, on_delete=models.CASCADE, related_name='user_rooms') room_name = models.CharField(max_length=255) slug = models.SlugField(max_length=255) description = models.TextField()...
26.45
88
0.703214
69
529
5.144928
0.565217
0.056338
0.067606
0
0
0
0
0
0
0
0
0.016588
0.202268
529
19
89
27.842105
0.824645
0
0
0
0
0
0.036053
0
0
0
0
0
0
1
0.076923
false
0
0.153846
0.076923
0.846154
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
3f59251e1c9ec0194e6731edb2581336d69d76f4
440
py
Python
apps/events/migrations/0023_auto_20190903_1411.py
mariusaarsnes/onlineweb4
3495321dabfd7a7236e6d841b004e9f855b6f30e
[ "MIT" ]
null
null
null
apps/events/migrations/0023_auto_20190903_1411.py
mariusaarsnes/onlineweb4
3495321dabfd7a7236e6d841b004e9f855b6f30e
[ "MIT" ]
null
null
null
apps/events/migrations/0023_auto_20190903_1411.py
mariusaarsnes/onlineweb4
3495321dabfd7a7236e6d841b004e9f855b6f30e
[ "MIT" ]
null
null
null
# Generated by Django 2.1.9 on 2019-09-03 12:11 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('events', '0022_auto_20190903_1410'), ] operations = [ migrations.AlterField( model_name='reservee', name='allergies'...
23.157895
100
0.622727
49
440
5.469388
0.836735
0
0
0
0
0
0
0
0
0
0
0.104294
0.259091
440
18
101
24.444444
0.717791
0.102273
0
0
1
0
0.139949
0.058524
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
3f5abe36698e81cefd70a69e34d0be09de0ada7d
511
py
Python
core/migrations/0004_estudio_instituciones.py
fiv21/SIIEC-WEB
7927276fd1b2c4dd6dc819fd275d3e6d654cb1e2
[ "MIT" ]
null
null
null
core/migrations/0004_estudio_instituciones.py
fiv21/SIIEC-WEB
7927276fd1b2c4dd6dc819fd275d3e6d654cb1e2
[ "MIT" ]
1
2019-07-03T15:17:23.000Z
2019-07-03T15:17:23.000Z
core/migrations/0004_estudio_instituciones.py
fiv21/SIIEC-WEB
7927276fd1b2c4dd6dc819fd275d3e6d654cb1e2
[ "MIT" ]
1
2019-05-12T23:21:36.000Z
2019-05-12T23:21:36.000Z
# Generated by Django 2.1.2 on 2019-05-22 18:16 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('core', '0003_estudio_pacientes'), ] operations = [ migrations.AddField( model_nam...
25.55
122
0.624266
55
511
5.727273
0.672727
0.07619
0.088889
0.139683
0
0
0
0
0
0
0
0.050398
0.262231
511
19
123
26.894737
0.785146
0.088063
0
0
1
0
0.152809
0.098876
0
0
0
0
0
1
0
false
0
0.153846
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
3f5b4a65cecf602ad8c157cc22687d4db630be53
631
py
Python
setup.py
Kasraghasemi/pypolycontain
5a5d8152282b9cd7f061eb90ce568763603bf4a6
[ "AFL-1.1" ]
null
null
null
setup.py
Kasraghasemi/pypolycontain
5a5d8152282b9cd7f061eb90ce568763603bf4a6
[ "AFL-1.1" ]
null
null
null
setup.py
Kasraghasemi/pypolycontain
5a5d8152282b9cd7f061eb90ce568763603bf4a6
[ "AFL-1.1" ]
null
null
null
from setuptools import setup, find_packages setup( name='pypolycontain', author='Sadra Sadraddini', description='A python package for polytopic objects, operations, and containment encodings', author_email='sadra@mit.edu', version='1.3', packages=['pypolycontain'], #fix long_description='A...
35.055556
101
0.721078
72
631
6.25
0.666667
0.053333
0.08
0.111111
0.342222
0.342222
0.342222
0.342222
0.342222
0.342222
0
0.003745
0.153724
631
17
102
37.117647
0.838951
0.069731
0
0
0
0
0.582906
0
0
0
0
0
0
1
0
true
0
0.071429
0
0.071429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
3f618a6fd09cd4d12278a38db0f9666518cbdce4
4,434
py
Python
models.py
yosukesuzuki/url-shortner
0ea9d45a9463056114a93f21e17cbbe5043616ac
[ "BSD-2-Clause" ]
1
2018-05-27T15:10:17.000Z
2018-05-27T15:10:17.000Z
models.py
yosukesuzuki/url-shortner
0ea9d45a9463056114a93f21e17cbbe5043616ac
[ "BSD-2-Clause" ]
25
2017-08-12T02:39:03.000Z
2018-12-15T17:05:34.000Z
models.py
yosukesuzuki/url-shortner
0ea9d45a9463056114a93f21e17cbbe5043616ac
[ "BSD-2-Clause" ]
null
null
null
import datetime import validators from google.appengine.api import datastore_errors from google.appengine.ext import ndb def domain_validator(prop, value): if validators.domain(value) is not True: raise datastore_errors.BadValueError(prop._name) return value.lower() class CustomDomain(ndb.Model): ...
35.190476
109
0.731168
537
4,434
5.841713
0.249534
0.167995
0.09372
0.111572
0.49219
0.361173
0.331527
0.3073
0.3073
0.268091
0
0.000269
0.162607
4,434
125
110
35.472
0.8446
0.071267
0
0.290698
0
0
0.012652
0
0
0
0
0
0
1
0.011628
false
0
0.046512
0
0.976744
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
3f687baf816f0b50f1f43c98962348bd91485a18
751
py
Python
homedir/getbnitems/common/cmdLib.py
junneyang/easybenchmarktesttool4pbrpc
89fdd2c8f3968b8e6e32e646eaadfa5b2591cbfc
[ "MIT" ]
null
null
null
homedir/getbnitems/common/cmdLib.py
junneyang/easybenchmarktesttool4pbrpc
89fdd2c8f3968b8e6e32e646eaadfa5b2591cbfc
[ "MIT" ]
null
null
null
homedir/getbnitems/common/cmdLib.py
junneyang/easybenchmarktesttool4pbrpc
89fdd2c8f3968b8e6e32e646eaadfa5b2591cbfc
[ "MIT" ]
1
2021-01-04T04:31:19.000Z
2021-01-04T04:31:19.000Z
#!/usr/bin/env python #-*- coding: utf-8 -*- import sys import os sys.path.append("%s/../"%os.path.dirname(os.path.realpath(__file__))) from logLib import * import subprocess import commands def cmd_execute(cmd,mode="commands"): logging.debug("cmdStr:"+cmd) if(mode == "subprocess"): ps=subprocess.Pope...
27.814815
111
0.676431
98
751
5.040816
0.540816
0.08502
0
0
0
0
0
0
0
0
0
0.001616
0.175766
751
26
112
28.884615
0.796446
0.054594
0
0
0
0
0.135785
0
0
0
0
0
0
0
null
null
0
0.25
null
null
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
3f68d8439d992e8de8946aa3baaf04967c05d738
3,761
py
Python
flink-python/pyflink/examples/datastream/windowing/sliding_time_window.py
rudikershaw/flink
bfd708a5b081c097ee8b14ef1357d62dcfa46701
[ "Apache-2.0" ]
9
2016-09-22T22:53:13.000Z
2019-11-30T03:07:29.000Z
flink-python/pyflink/examples/datastream/windowing/sliding_time_window.py
rudikershaw/flink
bfd708a5b081c097ee8b14ef1357d62dcfa46701
[ "Apache-2.0" ]
null
null
null
flink-python/pyflink/examples/datastream/windowing/sliding_time_window.py
rudikershaw/flink
bfd708a5b081c097ee8b14ef1357d62dcfa46701
[ "Apache-2.0" ]
null
null
null
################################################################################ # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this...
39.589474
97
0.654613
421
3,761
5.71734
0.456057
0.024927
0.026174
0.013295
0.024096
0.024096
0
0
0
0
0
0.006372
0.207126
3,761
94
98
40.010638
0.800805
0.23398
0
0
0
0
0.052983
0
0
0
0
0
0
1
0.035714
false
0.053571
0.142857
0.035714
0.25
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
1
0
0
0
0
0
1
3f6af377fc770f41c3465d588dc59c63ab5d0c69
1,623
py
Python
src/app/dependencies/auth.py
Ra-Ni/Conupedia
165d0b43098edcdf1058e244c1751c09e53f741c
[ "MIT" ]
null
null
null
src/app/dependencies/auth.py
Ra-Ni/Conupedia
165d0b43098edcdf1058e244c1751c09e53f741c
[ "MIT" ]
null
null
null
src/app/dependencies/auth.py
Ra-Ni/Conupedia
165d0b43098edcdf1058e244c1751c09e53f741c
[ "MIT" ]
null
null
null
from datetime import datetime, timedelta from typing import Optional from fastapi import Response, Cookie from jose import jwt, JWTError, ExpiredSignatureError from jose.exceptions import JWTClaimsError from starlette import status from ..internals.globals import ENCRYPTION_SECRET_KEY, ENCRYPTION_ALGORITHM, TOKEN_KEE...
33.8125
94
0.758472
203
1,623
5.871921
0.349754
0.07047
0.090604
0.120805
0.199664
0.176175
0.171141
0.115772
0
0
0
0.01311
0.154036
1,623
47
95
34.531915
0.855062
0
0
0.147059
0
0
0.017252
0
0
0
0
0
0
1
0
false
0.058824
0.235294
0
0.411765
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
3f6b385ddcbf92d49560dd7331fb1928eb933dbb
25,222
py
Python
tf3d/object_detection/data_preparation_utils.py
shaun95/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
1
2022-03-13T21:48:52.000Z
2022-03-13T21:48:52.000Z
tf3d/object_detection/data_preparation_utils.py
shaun95/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
null
null
null
tf3d/object_detection/data_preparation_utils.py
shaun95/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
1
2022-03-30T07:20:29.000Z
2022-03-30T07:20:29.000Z
# coding=utf-8 # Copyright 2022 The Google Research 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 applicab...
44.79929
80
0.702244
2,967
25,222
5.718234
0.106842
0.103973
0.174349
0.200106
0.743841
0.694566
0.656195
0.618472
0.556171
0.511494
0
0.013255
0.207319
25,222
562
81
44.879004
0.835342
0.143565
0
0.529976
0
0
0.087958
0.055306
0
0
0
0.003559
0
1
0.019185
false
0
0.019185
0
0.069544
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
58b7b6a4df02b005edfd4ad198d9378085c37c0f
940
py
Python
garageofcode/sampling/timeseries.py
tpi12jwe/garageofcode
3cfaf01f6d77130bb354887e6ed9921c791db849
[ "MIT" ]
2
2020-02-11T10:32:06.000Z
2020-02-11T17:00:47.000Z
garageofcode/sampling/timeseries.py
jonatanwestholm/garageofcode
630e99c6fb4c42875beadb6adf8dc958501c5ab8
[ "MIT" ]
null
null
null
garageofcode/sampling/timeseries.py
jonatanwestholm/garageofcode
630e99c6fb4c42875beadb6adf8dc958501c5ab8
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt from statsmodels.tsa.arima_process import ArmaProcess def poles(k): """ Generates k pairs of poles in the unit circle Returns the resulting polynomial coefficients """ pol = np.array([1]) for _ in range(k): theta = np.random.random()*n...
23.5
66
0.605319
146
940
3.808219
0.486301
0.010791
0.028777
0.014388
0
0
0
0
0
0
0
0.026648
0.241489
940
40
67
23.5
0.753156
0.212766
0
0
1
0
0.038997
0
0
0
0
0
0
1
0.12
false
0
0.12
0.04
0.32
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
58b8f44681b0228604a275c089dfdd6547810e8f
4,370
py
Python
gehomesdk/erd/erd_encoder.py
willhayslett/gehome
7e407a1d31cede1453656eaef948332e808484ea
[ "MIT" ]
2
2020-12-28T02:06:00.000Z
2021-04-16T16:44:40.000Z
gehomesdk/erd/erd_encoder.py
willhayslett/gehome
7e407a1d31cede1453656eaef948332e808484ea
[ "MIT" ]
1
2021-05-16T18:59:54.000Z
2021-05-16T18:59:54.000Z
gehomesdk/erd/erd_encoder.py
willhayslett/gehome
7e407a1d31cede1453656eaef948332e808484ea
[ "MIT" ]
2
2021-02-05T05:58:05.000Z
2021-05-02T23:11:04.000Z
from gehomesdk.erd.erd_code_class import ErdCodeClass import logging from typing import Any from ..exception import GeUnsupportedOperationError from .erd_configuration import ErdConfigurationEntry, _configuration from .erd_codes import ErdCode, ErdCodeType from .converters import * _LOGGER = logging.getLogger(__name...
32.61194
110
0.628833
554
4,370
4.783394
0.216607
0.134717
0.029057
0.058113
0.40566
0.355094
0.32566
0.31283
0.3
0.280377
0
0.00033
0.305721
4,370
134
111
32.61194
0.873105
0.31373
0
0.455882
0
0
0.018519
0
0
0
0
0
0
1
0.117647
false
0.014706
0.102941
0
0.514706
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
58c262e838d35220c0b1606f813580c3a51f883f
4,067
py
Python
test/cymel_test/utils/namespace.py
ryusas/cymel
88c9fa221399737a35d5e1866d31f9ecdaf7890f
[ "MIT" ]
15
2020-10-13T04:56:39.000Z
2021-04-20T01:31:58.000Z
test/cymel_test/utils/namespace.py
ryusas/cymel
88c9fa221399737a35d5e1866d31f9ecdaf7890f
[ "MIT" ]
5
2020-10-19T05:14:52.000Z
2021-04-07T04:00:06.000Z
test/cymel_test/utils/namespace.py
ryusas/cymel
88c9fa221399737a35d5e1866d31f9ecdaf7890f
[ "MIT" ]
2
2020-10-19T02:56:18.000Z
2020-12-25T06:22:48.000Z
# -*- coding: utf-8 -*- u""" Test of cymel.utils.namespace """ from __future__ import absolute_import from __future__ import division from __future__ import print_function import sys import unittest import maya.cmds as cmds from cymel.utils.namespace import Namespace, RelativeNS #----------------------------------...
32.277778
83
0.545365
429
4,067
5.107226
0.174825
0.198539
0.065723
0.098585
0.373346
0.326791
0.137837
0.137837
0.136924
0.09037
0
0.002015
0.267765
4,067
125
84
32.536
0.733714
0.05852
0
0.172414
0
0
0.043638
0
0
0
0
0
0.586207
1
0.034483
false
0
0.08046
0.011494
0.137931
0.011494
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
1
58c279b2b92597e86a62d3a82b197875471ab87d
418
py
Python
artifacts/migrations/0010_auto_20201201_1208.py
Joe-Bentley/team_totem
0458447619b1480027168d3b704c401ab7db1e0e
[ "Unlicense" ]
null
null
null
artifacts/migrations/0010_auto_20201201_1208.py
Joe-Bentley/team_totem
0458447619b1480027168d3b704c401ab7db1e0e
[ "Unlicense" ]
25
2020-11-30T14:32:43.000Z
2020-12-04T10:35:58.000Z
artifacts/migrations/0010_auto_20201201_1208.py
Joe-Bentley/team_totem
0458447619b1480027168d3b704c401ab7db1e0e
[ "Unlicense" ]
2
2020-12-01T18:08:24.000Z
2020-12-04T10:44:11.000Z
# Generated by Django 3.1.3 on 2020-12-01 12:08 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('artifacts', '0009_auto_20201201_1205'), ] operations = [ migrations.AlterField( model_name='artifact', name='image',...
22
79
0.607656
45
418
5.533333
0.822222
0
0
0
0
0
0
0
0
0
0
0.101307
0.267943
418
18
80
23.222222
0.712418
0.107656
0
0
1
0
0.167116
0.061995
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
58c2ec78c5429051310c0c76c605e82d747dfb3e
5,022
py
Python
moneyforecast/tests/records/test_record_crud.py
curaloucura/money-forecast
b6032028106772526a96c3329c8af66f9b9d0930
[ "Unlicense" ]
7
2015-02-01T21:44:23.000Z
2021-04-19T07:45:06.000Z
moneyforecast/tests/records/test_record_crud.py
curaloucura/money-forecast
b6032028106772526a96c3329c8af66f9b9d0930
[ "Unlicense" ]
null
null
null
moneyforecast/tests/records/test_record_crud.py
curaloucura/money-forecast
b6032028106772526a96c3329c8af66f9b9d0930
[ "Unlicense" ]
4
2015-06-27T15:05:06.000Z
2020-06-14T05:14:43.000Z
import pytest import json from pyquery import PyQuery from django.core.urlresolvers import reverse from records.models import Record, OUTCOME, INCOME pytest_plugins = ['tests.records.fixtures'] @pytest.fixture def user_client(user, client): result = client.login(username=user.username, password=user.raw_passwo...
34.39726
79
0.627838
580
5,022
5.191379
0.162069
0.053138
0.037197
0.039854
0.762537
0.728662
0.684822
0.658253
0.565261
0.565261
0
0.009272
0.269813
5,022
145
80
34.634483
0.811835
0
0
0.624
0
0
0.093588
0.004381
0
0
0
0
0.136
1
0.096
false
0.008
0.04
0.016
0.2
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
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
58c836955a287f6eaec532528ced09abdac5616f
640
py
Python
stim/scripts/convert.py
shariliu/doe-lookit
43eea4b72bed58d59ac6115019ed94eaf5c986eb
[ "MIT" ]
null
null
null
stim/scripts/convert.py
shariliu/doe-lookit
43eea4b72bed58d59ac6115019ed94eaf5c986eb
[ "MIT" ]
null
null
null
stim/scripts/convert.py
shariliu/doe-lookit
43eea4b72bed58d59ac6115019ed94eaf5c986eb
[ "MIT" ]
null
null
null
import os import subprocess as sp import sys videoPath = '/Users/shariliu/Documents/HarvardLDS/Studies/DOE-lookit/stim/mp4/' videoFiles = os.listdir(videoPath) for video in videoFiles: (shortname, ext) = os.path.splitext(video) # if ["control"] in shortname: print(shortname) if ext in ['.mp4']: ...
29.090909
103
0.625
80
640
5
0.5
0.075
0.1
0.19
0.325
0.185
0.185
0.185
0.185
0
0
0.005814
0.19375
640
22
104
29.090909
0.76938
0.04375
0
0.142857
0
0
0.208197
0.106557
0
0
0
0
0
1
0
false
0
0.214286
0
0.214286
0.071429
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
58c8efb7aad0b4a40a3639017ae3378b2a07b58d
6,097
py
Python
pylearn2/sandbox/rnn/space/__init__.py
capybaralet/pylearn2
78d78a99bc6114616a22a4d798c7fedfe4489c58
[ "BSD-3-Clause" ]
null
null
null
pylearn2/sandbox/rnn/space/__init__.py
capybaralet/pylearn2
78d78a99bc6114616a22a4d798c7fedfe4489c58
[ "BSD-3-Clause" ]
null
null
null
pylearn2/sandbox/rnn/space/__init__.py
capybaralet/pylearn2
78d78a99bc6114616a22a4d798c7fedfe4489c58
[ "BSD-3-Clause" ]
null
null
null
""" Spaces specific to the RNN framework, specifically the SequenceSpace """ from functools import wraps import numpy as np from theano import tensor from pylearn2 import space from pylearn2.utils import is_iterable class SequenceSpace(space.CompositeSpace): """ This space represents sequences. In order to c...
34.84
79
0.649664
755
6,097
4.931126
0.172185
0.059092
0.064464
0.041096
0.583669
0.56621
0.543379
0.496105
0.467634
0.445608
0
0.002862
0.254879
6,097
174
80
35.04023
0.816641
0.15565
0
0.589286
0
0
0.012746
0
0
0
0
0
0.026786
1
0.214286
false
0
0.044643
0.098214
0.464286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
58cb619051cee4f326939627df8903dc988f5bef
7,765
py
Python
lib/vrd/eval_jb.py
yjy941124/PPR-FCN
1eba5515b37e7b32413efdf14bb0c22a2e46fee9
[ "MIT" ]
20
2017-10-16T18:12:51.000Z
2021-12-23T02:34:20.000Z
lib/vrd/eval_jb.py
yjy941124/PPR-FCN
1eba5515b37e7b32413efdf14bb0c22a2e46fee9
[ "MIT" ]
1
2018-11-10T04:59:48.000Z
2021-01-21T04:51:31.000Z
lib/vrd/eval_jb.py
yjy941124/PPR-FCN
1eba5515b37e7b32413efdf14bb0c22a2e46fee9
[ "MIT" ]
5
2017-10-17T00:54:42.000Z
2018-04-08T15:09:40.000Z
import _init_paths from fast_rcnn.config import cfg, cfg_from_file, cfg_from_list from datasets.factory import get_imdb import caffe import argparse import pprint import time, os, sys import numpy as np import h5py import cv2 import scipy.io as sio from numpy.core.records import fromarrays from fast_rcnn.bbox_transfor...
39.217172
180
0.641983
1,165
7,765
4.024034
0.193133
0.032423
0.017065
0.024317
0.339377
0.269411
0.200085
0.166809
0.133106
0.12244
0
0.024221
0.202447
7,765
198
181
39.217172
0.732763
0.189053
0
0.115646
0
0
0.095063
0.018693
0
0
0
0
0
0
null
null
0.006803
0.183673
null
null
0.020408
0
0
0
null
0
0
0
0
0
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
58cd6e34f41cbf24a43fd0dc976e030938bbee6e
352
py
Python
zipline/data/fx/__init__.py
liudengfeng/zipline
01fdd51d83efeb3453e92b7d02c255a06eba49ac
[ "Apache-2.0" ]
6
2017-12-11T06:12:00.000Z
2019-05-23T17:39:10.000Z
zipline/data/fx/__init__.py
liudengfeng/zipline
01fdd51d83efeb3453e92b7d02c255a06eba49ac
[ "Apache-2.0" ]
null
null
null
zipline/data/fx/__init__.py
liudengfeng/zipline
01fdd51d83efeb3453e92b7d02c255a06eba49ac
[ "Apache-2.0" ]
1
2018-01-26T14:19:38.000Z
2018-01-26T14:19:38.000Z
from .base import FXRateReader, DEFAULT_FX_RATE from .in_memory import InMemoryFXRateReader from .exploding import ExplodingFXRateReader from .hdf5 import HDF5FXRateReader, HDF5FXRateWriter __all__ = [ 'DEFAULT_FX_RATE', 'ExplodingFXRateReader', 'FXRateReader', 'HDF5FXRateReader', 'HDF5FXRateWriter...
27.076923
52
0.775568
30
352
8.8
0.533333
0.068182
0.098485
0
0
0
0
0
0
0
0
0.016667
0.147727
352
13
53
27.076923
0.863333
0
0
0
0
0
0.283286
0.05949
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
58d16789bd9ee833747311ef143635d00025f91d
404
py
Python
models/lessers/knn.py
steve-levesque/Portfolio-ML-KaggleComp
f4506471b525e045402ddf81d9979cbd278f02ca
[ "MIT" ]
null
null
null
models/lessers/knn.py
steve-levesque/Portfolio-ML-KaggleComp
f4506471b525e045402ddf81d9979cbd278f02ca
[ "MIT" ]
null
null
null
models/lessers/knn.py
steve-levesque/Portfolio-ML-KaggleComp
f4506471b525e045402ddf81d9979cbd278f02ca
[ "MIT" ]
null
null
null
from sklearn.neighbors import KNeighborsClassifier import warnings from utils import predict warnings.filterwarnings('ignore') def knn_train(): model = KNeighborsClassifier(n_neighbors=1) return model def knn_predict(model, X_train, y_train, test, metric_type): y_pred, result = predict.get_prediction...
21.263158
99
0.779703
55
404
5.472727
0.490909
0.039867
0.046512
0.079734
0.106312
0
0
0
0
0
0
0.002899
0.14604
404
18
100
22.444444
0.869565
0
0
0
0
0
0.014851
0
0
0
0
0
0
1
0.2
false
0
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
0
0
0
1
0
0
1
58d19fcce9928f080108ff3235d5fac382d07588
2,565
py
Python
adam/capital-sales.py
capitalch/python
5bc6b4bda2378c20e9c49e21d794175c39487f00
[ "Apache-2.0" ]
null
null
null
adam/capital-sales.py
capitalch/python
5bc6b4bda2378c20e9c49e21d794175c39487f00
[ "Apache-2.0" ]
null
null
null
adam/capital-sales.py
capitalch/python
5bc6b4bda2378c20e9c49e21d794175c39487f00
[ "Apache-2.0" ]
null
null
null
import pandas as pd import sqlanydb from string import Template mydf1 = pd.read_csv('mydata/test.txt') sql = '''select item, brand, model, qty, price, "date" from bill_memo key join bill_memo_product key join inv_main key join product order by "date" ''' def getconn(db): ret...
37.173913
93
0.672125
422
2,565
3.966825
0.274882
0.040621
0.121864
0.101553
0.48626
0.388889
0.150538
0.150538
0.046595
0
0
0.036292
0.108382
2,565
68
94
37.720588
0.695671
0.015205
0
0
0
0
0.230495
0
0
0
0
0
0
0
null
null
0
0.055556
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
58d4aa36c250623e60e976677f2a766bae757bbe
5,351
py
Python
tfx/orchestration/portable/beam_dag_runner.py
rclough/tfx
7af15f2cf92b8b46f43c3e9b1589d55aacba2155
[ "Apache-2.0" ]
3
2020-07-20T18:37:16.000Z
2021-11-17T11:24:27.000Z
tfx/orchestration/portable/beam_dag_runner.py
rclough/tfx
7af15f2cf92b8b46f43c3e9b1589d55aacba2155
[ "Apache-2.0" ]
2
2020-08-11T00:19:14.000Z
2020-08-26T20:10:31.000Z
tfx/orchestration/portable/beam_dag_runner.py
18jeffreyma/tfx
ff6917997340401570d05a4d3ebd6e8ab5760495
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Google LLC. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
39.637037
80
0.689217
662
5,351
5.401813
0.34139
0.033557
0.026566
0.02349
0.108221
0.052573
0.041946
0.02349
0.02349
0
0
0.010266
0.23547
5,351
134
81
39.932836
0.863847
0.384975
0
0
0
0
0.072647
0.010739
0
0
0
0.014925
0.03125
1
0.078125
false
0
0.15625
0
0.28125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
58d55df618f79d196333821719650e3d77e57dcd
5,552
py
Python
python/search.py
LukeMcCulloch/Grids
7dbdb65f2819293c95f025239219043bc65107f1
[ "MIT" ]
null
null
null
python/search.py
LukeMcCulloch/Grids
7dbdb65f2819293c95f025239219043bc65107f1
[ "MIT" ]
null
null
null
python/search.py
LukeMcCulloch/Grids
7dbdb65f2819293c95f025239219043bc65107f1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Jul 24 23:31:29 2015 @author: lukemcculloch """ import numpy as np def search(seed, xt, yt, x, y, tri, nbr ): """ seed = self.seed xt,yt = the point we want to find x,y = the poins that make up triangle element nodes seed = self.seed ...
27.082927
92
0.398415
713
5,552
3.077139
0.196353
0.028715
0.040109
0.025524
0.238833
0.238833
0.213309
0.213309
0.193254
0.193254
0
0.040108
0.465598
5,552
204
93
27.215686
0.69936
0.205512
0
0.160714
0
0
0.008174
0
0
0
0
0
0
0
null
null
0
0.008929
null
null
0.008929
0
0
0
null
0
0
0
0
0
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
58dd52e7e352a93a70a379d7969fac84eeef7048
488
py
Python
RS_scpFile.py
Ryodor/PythonThiefOfPhotos
b72662ff0647a9b3144ac1274357230c8db8e30f
[ "MIT" ]
2
2019-01-24T08:52:09.000Z
2019-01-24T08:52:11.000Z
RS_scpFile.py
Ryodor/CFG1
b72662ff0647a9b3144ac1274357230c8db8e30f
[ "MIT" ]
5
2019-01-24T09:18:46.000Z
2019-01-24T10:18:19.000Z
RS_scpFile.py
Ryodor/PythonThiefOfPhotos
b72662ff0647a9b3144ac1274357230c8db8e30f
[ "MIT" ]
null
null
null
import paramiko #hostname = '10.57.29.175' hostname = '10.57.29.175' password = 'coding' username = "coding4" port = 22 mypath='/Users/alan/Desktop/my_file' remotepath='/Users/coding4/my_file' t = paramiko.Transport((hostname, 22)) t.connect(username=username, password=password) sftp = paramiko.SFTPClient.from_tran...
18.074074
47
0.69877
66
488
5.106061
0.560606
0.059347
0.071217
0.083086
0.10089
0
0
0
0
0
0
0.058537
0.159836
488
26
48
18.769231
0.763415
0.211066
0
0
0
0
0.203297
0.134615
0
0
0
0
0
1
0.083333
false
0.166667
0.083333
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
58dd99875ceb0ae5622062469a6fecd0634751e9
1,192
py
Python
python/problems/escape_the_ghosts.py
vivaxy/algorithms
b2e49476ed2ad1fd82a1183f656d1907a666c347
[ "MIT" ]
1
2019-05-04T13:21:41.000Z
2019-05-04T13:21:41.000Z
python/problems/escape_the_ghosts.py
vivaxy/algorithms
b2e49476ed2ad1fd82a1183f656d1907a666c347
[ "MIT" ]
1
2021-08-30T09:34:58.000Z
2021-08-30T09:34:58.000Z
python/problems/escape_the_ghosts.py
vivaxy/algorithms
b2e49476ed2ad1fd82a1183f656d1907a666c347
[ "MIT" ]
null
null
null
""" https://leetcode.com/problems/escape-the-ghosts/ https://leetcode.com/submissions/detail/148753087/ """ class Solution: def escapeGhosts(self, ghosts, target): """ :type ghosts: List[List[int]] :type target: List[int] :rtype: bool """ def distance(point, target...
29.073171
79
0.552013
143
1,192
4.545455
0.335664
0.018462
0.176923
0.269231
0.321538
0.204615
0.204615
0.132308
0
0
0
0.060296
0.262584
1,192
40
80
29.8
0.679181
0.140101
0
0.090909
0
0
0.00818
0
0
0
0
0
0.227273
1
0.136364
false
0
0.045455
0.045455
0.409091
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
58e35d297988520358840768506986445f555e82
7,159
py
Python
python/omnisci/common/ttypes.py
intel-go/omniscidb
86068a229beddf7b117febcacdbd6b60a0279282
[ "Apache-2.0" ]
2
2020-03-04T12:01:10.000Z
2020-07-24T15:12:55.000Z
python/omnisci/common/ttypes.py
intel-go/omniscidb
86068a229beddf7b117febcacdbd6b60a0279282
[ "Apache-2.0" ]
18
2019-11-20T11:11:19.000Z
2020-08-27T13:21:12.000Z
python/omnisci/common/ttypes.py
intel-go/omniscidb
86068a229beddf7b117febcacdbd6b60a0279282
[ "Apache-2.0" ]
1
2020-04-04T06:25:32.000Z
2020-04-04T06:25:32.000Z
# # Autogenerated by Thrift Compiler (0.13.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # # options string: py # from thrift.Thrift import TType, TMessageType, TFrozenDict, TException, TApplicationException from thrift.protocol.TProtocol import TProtocolException from thrift.TRecursive impo...
27.429119
134
0.514597
790
7,159
4.510127
0.193671
0.040415
0.030312
0.045467
0.309571
0.201235
0.176537
0.161942
0.088689
0.088689
0
0.03992
0.370163
7,159
260
135
27.534615
0.750277
0.034223
0
0.199074
1
0
0.061898
0
0
0
0
0
0
1
0.032407
false
0
0.023148
0.013889
0.236111
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
58fbf26262366f6416b6a429d45f94d9861470c7
5,311
py
Python
response_view_mixin/view_mixins.py
frankhood/django-response-viewset-mixin
b758f5348306824217e1f9d0eeeb47b56db78cae
[ "MIT" ]
null
null
null
response_view_mixin/view_mixins.py
frankhood/django-response-viewset-mixin
b758f5348306824217e1f9d0eeeb47b56db78cae
[ "MIT" ]
null
null
null
response_view_mixin/view_mixins.py
frankhood/django-response-viewset-mixin
b758f5348306824217e1f9d0eeeb47b56db78cae
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ frankhood.fhcore.views.view_mixins.py @author: Frankhood Business Solutions @date : 20/set/2013 """ import csv import json import os import logging from django.utils.translation import ugettext_lazy as _ from django.conf import settings from django.core.serializers.json import Djan...
36.881944
116
0.562982
521
5,311
5.554703
0.309021
0.038701
0.03801
0.026261
0.298894
0.198341
0.153421
0.153421
0.123013
0.123013
0
0.003678
0.23216
5,311
143
117
37.13986
0.705983
0.206741
0
0.293478
0
0
0.099119
0.011013
0
0
0
0
0
1
0.130435
false
0
0.130435
0.043478
0.532609
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
450106f9fec43c1eec8c65c70477c55f5be4ecb7
2,522
py
Python
h2o-bindings/bin/custom/R/gen_aggregator.py
kernelrich/h2o-3
16bd6be6d0ac22b037cb55b4c647e63e2b112e1e
[ "Apache-2.0" ]
6,098
2015-05-22T02:46:12.000Z
2022-03-31T16:54:51.000Z
h2o-bindings/bin/custom/R/gen_aggregator.py
kernelrich/h2o-3
16bd6be6d0ac22b037cb55b4c647e63e2b112e1e
[ "Apache-2.0" ]
2,517
2015-05-23T02:10:54.000Z
2022-03-30T17:03:39.000Z
h2o-bindings/bin/custom/R/gen_aggregator.py
kernelrich/h2o-3
16bd6be6d0ac22b037cb55b4c647e63e2b112e1e
[ "Apache-2.0" ]
2,199
2015-05-22T04:09:55.000Z
2022-03-28T22:20:45.000Z
rest_api_version = 99 extensions = dict( required_params=['training_frame', 'x'], validate_required_params="", set_required_params=""" parms$training_frame <- training_frame if(!missing(x)) parms$ignored_columns <- .verify_datacols(training_frame, x)$cols_ignore """, with_model=""" model@model$aggreg...
31.924051
100
0.593577
277
2,522
5.155235
0.32852
0.10084
0.07563
0.07563
0.533613
0.455182
0.455182
0.455182
0.455182
0.455182
0
0.033258
0.29659
2,522
78
101
32.333333
0.771702
0
0
0.08
0
0.013333
0.88977
0.17843
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
450abb90e9f0f1fb20353b78ec05122e85f22ffe
1,336
py
Python
app/model/Users.py
emmamartins/shopcart-pytonik
ff8e8b5d260ecf6029844415014106dcb9087022
[ "MIT" ]
null
null
null
app/model/Users.py
emmamartins/shopcart-pytonik
ff8e8b5d260ecf6029844415014106dcb9087022
[ "MIT" ]
null
null
null
app/model/Users.py
emmamartins/shopcart-pytonik
ff8e8b5d260ecf6029844415014106dcb9087022
[ "MIT" ]
null
null
null
from pytonik.Model import Model from pytonik.Session import Session from pytonik.Functions.path import path class Users(Model, path): def __getattr__(self, item): return item def __call__(self, *args, **kwargs): return None def __init__(self, *args, **kwargs): self.Sessio...
29.043478
78
0.587575
166
1,336
4.614458
0.26506
0.070496
0.109661
0.148825
0.356397
0.356397
0.318538
0.270235
0.186684
0.138381
0
0.006129
0.267216
1,336
46
79
29.043478
0.775281
0
0
0.257143
0
0
0.062079
0
0
0
0
0
0
1
0.285714
false
0
0.085714
0.057143
0.685714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
4514a7660a4effa0c4ab62b0fdba6090578bbceb
19,309
py
Python
Peach/MutateStrategies/sequencial.py
aleasims/Peach
bb56841e943d719d5101fee0a503ed34308eda04
[ "MIT" ]
null
null
null
Peach/MutateStrategies/sequencial.py
aleasims/Peach
bb56841e943d719d5101fee0a503ed34308eda04
[ "MIT" ]
null
null
null
Peach/MutateStrategies/sequencial.py
aleasims/Peach
bb56841e943d719d5101fee0a503ed34308eda04
[ "MIT" ]
1
2020-07-26T03:57:45.000Z
2020-07-26T03:57:45.000Z
''' Mutation Strategies @author: Michael Eddington @version: $Id$ ''' # # Copyright (c) Michael Eddington # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction,...
26.523352
92
0.656378
2,240
19,309
5.588839
0.180357
0.022366
0.014378
0.008627
0.472242
0.423037
0.390207
0.378545
0.373752
0.366563
0
0.001947
0.255218
19,309
727
93
26.559835
0.868577
0.211559
0
0.570588
0
0
0.026421
0
0
0
0
0
0
0
null
null
0.008824
0.014706
null
null
0.002941
0
0
0
null
0
0
0
0
0
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
4519fad71be4181f3066789353f5480330321a57
1,141
py
Python
src/models/table.py
danielvcm/to-do-api
ca560dec3672222c98cd287961ebcd41f2792a7b
[ "MIT" ]
null
null
null
src/models/table.py
danielvcm/to-do-api
ca560dec3672222c98cd287961ebcd41f2792a7b
[ "MIT" ]
null
null
null
src/models/table.py
danielvcm/to-do-api
ca560dec3672222c98cd287961ebcd41f2792a7b
[ "MIT" ]
null
null
null
from ..databases.to_do_database import ToDoDatabase class Table: def __init__(self,id=None): self.id = id self.schema = 'to_do' self.database = ToDoDatabase() def execute(self, statement, values = None, operation = 'read'): cursor = self.database.get_cursor(operation) ...
31.694444
68
0.62752
123
1,141
5.731707
0.308943
0.170213
0.107801
0.130496
0.329078
0.178723
0.178723
0.178723
0.178723
0.178723
0
0
0.268186
1,141
35
69
32.6
0.844311
0
0
0.172414
0
0
0.016652
0
0
0
0
0
0
1
0.206897
false
0
0.034483
0
0.344828
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
451a6f613f1fce304144590b49add20ec2f9269d
381
py
Python
documentation/get_position_demo.py
Swiss-Polar-Institute/science-cruise-data-management
67721a0f4a1255b8ac43e530ed95a8c324239c7c
[ "MIT" ]
6
2017-10-06T09:18:04.000Z
2022-02-10T08:54:56.000Z
documentation/get_position_demo.py
Swiss-Polar-Institute/science-cruise-data-management
67721a0f4a1255b8ac43e530ed95a8c324239c7c
[ "MIT" ]
12
2020-02-27T09:24:50.000Z
2021-09-22T17:39:55.000Z
documentation/get_position_demo.py
Swiss-Polar-Institute/science-cruise-data-management
67721a0f4a1255b8ac43e530ed95a8c324239c7c
[ "MIT" ]
1
2017-10-16T13:49:33.000Z
2017-10-16T13:49:33.000Z
#!/usr/bin/env python3 import requests def get_position_from_spi(date_str): auth = (user, password) params = {'date': date_str} r = requests.get('https://scdm-ace.swisspolar.ch/api/position', params=params, auth=auth) result = r.json() return result['latitude'], result['longitude'] position = get_po...
34.636364
93
0.708661
56
381
4.678571
0.607143
0.045802
0.114504
0.137405
0
0
0
0
0
0
0
0.057229
0.128609
381
10
94
38.1
0.731928
0.055118
0
0
0
0
0.247911
0.069638
0
0
0
0
0
1
0.111111
false
0.111111
0.111111
0
0.333333
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
1
0
0
0
0
0
1
451ed2a037f74efbff66fecd9dd9be601331b05b
4,892
py
Python
version/models.py
0lidaxiang/WeArt
088bc2cdc7c653d4e4a84dea8f70cc86e12a8db9
[ "BSD-3-Clause" ]
1
2017-07-12T14:53:45.000Z
2017-07-12T14:53:45.000Z
version/models.py
0lidaxiang/WeArt
088bc2cdc7c653d4e4a84dea8f70cc86e12a8db9
[ "BSD-3-Clause" ]
null
null
null
version/models.py
0lidaxiang/WeArt
088bc2cdc7c653d4e4a84dea8f70cc86e12a8db9
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from django.db import models from tool.tools import createId from time import localtime,strftime from chapter.models import chapter from reader.models import reader from book.models import book # Create your models here. class version(models.Model): class Meta: ...
39.451613
157
0.586877
512
4,892
5.576172
0.240234
0.063047
0.044834
0.05324
0.474956
0.34606
0.322592
0.147461
0.124343
0
0
0.059141
0.319092
4,892
123
158
39.772358
0.797959
0.049264
0
0.392523
0
0
0.072136
0.009044
0
0
0
0
0
0
null
null
0
0.056075
null
null
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
1
0
0
0
0
0
0
0
0
1
45227189756e6230aa22a743802ff1990a644cfd
716
py
Python
saleor/glovo/__init__.py
Chaoslecion123/Diver
8c5c493701422eada49cbf95b0b0add08f1ea561
[ "BSD-3-Clause" ]
null
null
null
saleor/glovo/__init__.py
Chaoslecion123/Diver
8c5c493701422eada49cbf95b0b0add08f1ea561
[ "BSD-3-Clause" ]
null
null
null
saleor/glovo/__init__.py
Chaoslecion123/Diver
8c5c493701422eada49cbf95b0b0add08f1ea561
[ "BSD-3-Clause" ]
null
null
null
from django.utils.translation import ugettext_lazy as _ class GlovoAddrressType(object): PICKUP = 'PICKUP' DELIVERY = 'DELIVERY' CHOICES = ( (PICKUP, _("Recojo")), (DELIVERY, _("Entrega")) ) DICT = dict(CHOICES) @classmethod def get_label(cls, address_type): retu...
19.888889
55
0.613128
66
716
6.454545
0.515152
0.037559
0.070423
0.122066
0.187793
0.187793
0.187793
0.187793
0
0
0
0
0.261173
716
35
56
20.457143
0.805293
0
0
0.24
0
0
0.113128
0
0
0
0
0
0
1
0.08
false
0
0.04
0.08
0.64
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
4523b63dc67a08eb451f2b511013d93a86c9f502
1,073
py
Python
smacha/src/smacha/exceptions.py
ReconCell/smacha
253215a35d2d091bf50c28c1ba876209b82d2400
[ "BSD-3-Clause" ]
16
2019-04-16T07:44:30.000Z
2022-03-10T08:04:45.000Z
smacha/src/smacha/exceptions.py
ReconCell/smacha
253215a35d2d091bf50c28c1ba876209b82d2400
[ "BSD-3-Clause" ]
2
2019-07-18T09:11:00.000Z
2019-09-26T10:21:26.000Z
smacha/src/smacha/exceptions.py
ReconCell/smacha
253215a35d2d091bf50c28c1ba876209b82d2400
[ "BSD-3-Clause" ]
2
2019-08-21T20:14:54.000Z
2019-09-19T13:26:34.000Z
from smacha.util import bcolors class ScriptNotFoundError(Exception): """The requested SMACHA YAML script was not found.""" class ParsingError(BaseException): """Parse exception class.""" def __init__(self, error=None, line_number=None, line=None): if error is not None and line_number is not Non...
46.652174
127
0.65424
147
1,073
4.673469
0.278912
0.058224
0.104803
0.181951
0.497817
0.454148
0.454148
0.403202
0.346434
0.346434
0
0.009709
0.23206
1,073
22
128
48.772727
0.824029
0.065238
0
0
0
0
0.138105
0
0
0
0
0
0
1
0.066667
false
0
0.066667
0
0.266667
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
452d2142a3b622af1a065515fdc17b563ff34a11
6,089
py
Python
modules/tests/photons_canvas_tests/points/test_set64.py
Djelibeybi/photons
bc0aa91771d8e88fd3c691fb58f18cb876f292ec
[ "MIT" ]
51
2020-07-03T08:34:48.000Z
2022-03-16T10:56:08.000Z
modules/tests/photons_canvas_tests/points/test_set64.py
delfick/photons
bc0aa91771d8e88fd3c691fb58f18cb876f292ec
[ "MIT" ]
81
2020-07-03T08:13:59.000Z
2022-03-31T23:02:54.000Z
modules/tests/photons_canvas_tests/points/test_set64.py
Djelibeybi/photons
bc0aa91771d8e88fd3c691fb58f18cb876f292ec
[ "MIT" ]
8
2020-07-24T23:48:20.000Z
2021-05-24T17:20:16.000Z
# coding: spec from photons_canvas.points.simple_messages import Set64 from photons_messages import TileMessages from photons_messages.fields import Color from delfick_project.norms import sb import binascii import pytest @pytest.fixture def seed(): return TileMessages.Set64.create( source=0, s...
27.552036
82
0.493349
671
6,089
4.447094
0.247392
0.008713
0.008043
0.010724
0.189008
0.126676
0.126676
0.089812
0
0
0
0.085318
0.372475
6,089
220
83
27.677273
0.695629
0.001971
0
0.090909
0
0.005682
0.126914
0.00428
0
0
0
0
0.1875
0
null
null
0
0.034091
null
null
0.022727
0
0
0
null
0
0
0
0
0
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
4530c3a74873ac20683c296bc3f75253fae65a57
471
py
Python
models/oauth/google/google_scope_uri_correlation.py
Lulla-App/data_access
c8ebe473465d91d70f70ed2151e3ec7fa4ac5b0c
[ "MIT" ]
null
null
null
models/oauth/google/google_scope_uri_correlation.py
Lulla-App/data_access
c8ebe473465d91d70f70ed2151e3ec7fa4ac5b0c
[ "MIT" ]
null
null
null
models/oauth/google/google_scope_uri_correlation.py
Lulla-App/data_access
c8ebe473465d91d70f70ed2151e3ec7fa4ac5b0c
[ "MIT" ]
null
null
null
from sqlalchemy import Column, Integer, ForeignKey, Table from ... import Base google_scope_uri_correlation = Table( "google_scope_uri_correlation", Base.metadata, Column( "scope_uri_id", ForeignKey("google_scope_uri.id", ondelete="CASCADE", onupdate="CASCADE"), primary_key=True, ...
26.166667
82
0.656051
51
471
5.784314
0.392157
0.149153
0.142373
0.169492
0.311864
0.311864
0.311864
0.311864
0
0
0
0
0.220807
471
17
83
27.705882
0.803815
0
0
0.375
0
0
0.233546
0.059448
0
0
0
0
0
1
0
false
0
0.125
0
0.125
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
45323755348a473fb6e2dc2a5cdc1a1030f17d60
494
py
Python
Folder_Generator.py
hal00alex/Python_Auto_Practice
6e528326c02962897348119335db0adf86c5e9b9
[ "MIT" ]
null
null
null
Folder_Generator.py
hal00alex/Python_Auto_Practice
6e528326c02962897348119335db0adf86c5e9b9
[ "MIT" ]
null
null
null
Folder_Generator.py
hal00alex/Python_Auto_Practice
6e528326c02962897348119335db0adf86c5e9b9
[ "MIT" ]
null
null
null
import os def main(): #lets me know it didn't crash on start print "Hello Folders!\n" #home = "insert name of directoy here" for x in range(0, 3): name = home+"/Folder"+str(x) #check if folder exists if not os.path.exists(name): #create folder os.makedirs(name) #add file f = ope...
26
49
0.625506
84
494
3.678571
0.702381
0.045307
0
0
0
0
0
0
0
0
0
0.005348
0.242915
494
18
50
27.444444
0.820856
0.331984
0
0
0
0
0.212963
0
0
0
0
0
0
0
null
null
0
0.083333
null
null
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
1
0
0
0
0
0
0
0
0
1
4536368252619e46ab5efa5db29dd62d09b93f20
231
py
Python
15-ContextWithElseBlock/15-03-for.py
xiaohui100/FluentPython
b65fad00e724598657c21660ffa8fa9c5507cf3e
[ "MIT" ]
null
null
null
15-ContextWithElseBlock/15-03-for.py
xiaohui100/FluentPython
b65fad00e724598657c21660ffa8fa9c5507cf3e
[ "MIT" ]
null
null
null
15-ContextWithElseBlock/15-03-for.py
xiaohui100/FluentPython
b65fad00e724598657c21660ffa8fa9c5507cf3e
[ "MIT" ]
null
null
null
""" @author: Alfons @contact: alfons_xh@163.com @file: 15-03-for.py @time: 18-7-1 下午10:48 @version: v1.0 """ for i in range(10): print("Hello, I'm little {i}.".format(i=i)) else: print("I'm else.") # 执行完for循环后运行
17.769231
47
0.593074
41
231
3.317073
0.756098
0.029412
0
0
0
0
0
0
0
0
0
0.102151
0.194805
231
12
48
19.25
0.629032
0.493506
0
0
0
0
0.284404
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
453796aa7a577036c74b95997820fa05c61748ff
4,219
py
Python
client/tests/tests.py
nakamura9/deploy_ad_server
654b874381c88c29e3f6fd7ffdfb728ea3b03c80
[ "MIT" ]
null
null
null
client/tests/tests.py
nakamura9/deploy_ad_server
654b874381c88c29e3f6fd7ffdfb728ea3b03c80
[ "MIT" ]
null
null
null
client/tests/tests.py
nakamura9/deploy_ad_server
654b874381c88c29e3f6fd7ffdfb728ea3b03c80
[ "MIT" ]
null
null
null
import unittest as ut import os import sys import requests import test_server import datetime import platform sys.path.append(os.path.abspath("..")) from http_client import Client class TestPlayer(): def __init__(self): self.current = "video.mp4" class Client_testing(ut.TestCase): @classmethod d...
27.940397
94
0.626215
524
4,219
4.832061
0.230916
0.118483
0.039494
0.049368
0.356635
0.253949
0.228673
0.189573
0.139021
0.135861
0
0.013551
0.230386
4,219
151
95
27.940397
0.766246
0
0
0.111111
0
0
0.084713
0
0
0
0
0
0.222222
0
null
null
0.010101
0.080808
null
null
0.010101
0
0
0
null
0
0
0
0
0
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
453f945a9fa3ea9274edbaf4183b82bc1aea34de
934
py
Python
config/settings_brocade__blank.py
erictrudeau/matrix_collector_linux
44d27dba3bcd8be340c82775be083522cd1338a4
[ "BSD-3-Clause" ]
null
null
null
config/settings_brocade__blank.py
erictrudeau/matrix_collector_linux
44d27dba3bcd8be340c82775be083522cd1338a4
[ "BSD-3-Clause" ]
null
null
null
config/settings_brocade__blank.py
erictrudeau/matrix_collector_linux
44d27dba3bcd8be340c82775be083522cd1338a4
[ "BSD-3-Clause" ]
null
null
null
# Matrix # Copyright (c) 2011-2016, Eric Trudeau <erictrudeau@gmail.com>. All rights reserved. # This file and the Matrix project is licensed under the BSD 3-Clause License # http://opensource.org/licenses/BSD-3-Clause import os from settings import BASE_DIR BROCADE_CLI_COMMAND_SYNTAX = 'ssh -i %s %s@%s %s > %s' BR...
24.578947
86
0.615632
126
934
4.412698
0.563492
0.014388
0.016187
0.014388
0.244604
0.244604
0.244604
0.244604
0.244604
0.244604
0
0.046936
0.178801
934
37
87
25.243243
0.677966
0.22591
0
0.344828
0
0
0.423398
0.072423
0
0
0
0
0
1
0
false
0.068966
0.068966
0
0.068966
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
4543acfb6a81c09d8fed01773f4290044422400f
12,746
py
Python
plot_scripts/EMBRACE/plot_geopotential_dkbhu.py
peterwilletts24/Python-Scripts
975d6b2e2923cbde40d2760eb9574acee2e10388
[ "MIT" ]
4
2017-05-24T09:14:14.000Z
2019-01-02T19:20:38.000Z
plot_scripts/EMBRACE/plot_geopotential_dkbhu.py
peterwilletts24/Python-Scripts
975d6b2e2923cbde40d2760eb9574acee2e10388
[ "MIT" ]
null
null
null
plot_scripts/EMBRACE/plot_geopotential_dkbhu.py
peterwilletts24/Python-Scripts
975d6b2e2923cbde40d2760eb9574acee2e10388
[ "MIT" ]
3
2017-05-24T09:14:15.000Z
2020-09-28T08:32:02.000Z
""" Load mean geopotential heights and plot in colour """ import os, sys import matplotlib.pyplot as plt import matplotlib.cm as mpl_cm from mpl_toolkits.basemap import Basemap import iris import iris.analysis.cartography import numpy as np import imp import h5py import cartopy.crs as ccrs import scipy.interpolate ...
37.59882
208
0.633375
1,896
12,746
3.987869
0.189346
0.010581
0.021161
0.013887
0.464489
0.398095
0.343076
0.30816
0.281973
0.245073
0
0.039305
0.241488
12,746
338
209
37.710059
0.74276
0.129139
0
0.212963
0
0
0.12763
0.043099
0
0
0
0
0
0
null
null
0
0.055556
null
null
0.097222
0
0
0
null
0
0
0
0
0
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
1885cf250cefeba2c7c278081c3f393578cf2302
231
py
Python
exercise_02/save_prediction.py
machism0/deep-learn-2018
c60874f700352dbab40563366a28fd69691b481a
[ "MIT" ]
null
null
null
exercise_02/save_prediction.py
machism0/deep-learn-2018
c60874f700352dbab40563366a28fd69691b481a
[ "MIT" ]
null
null
null
exercise_02/save_prediction.py
machism0/deep-learn-2018
c60874f700352dbab40563366a28fd69691b481a
[ "MIT" ]
null
null
null
import numpy as np prediction = # THAT'S YOUR JOB # MAKE SURE THAT YOU HAVE THE RIGHT FORMAT assert prediction.ndim == 1 assert prediction.shape[0] == 2000 # AND SAVE EXACTLY AS SHOWN BELOW np.save('prediction.npy', prediction)
21
42
0.744589
37
231
4.648649
0.756757
0.186047
0
0
0
0
0
0
0
0
0
0.03125
0.168831
231
10
43
23.1
0.864583
0.380952
0
0
0
0
0.100719
0
0
0
0
0
0.4
0
null
null
0
0.2
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
188ab31bc01acb6bcde3ec91f53af7b21451eb80
2,022
py
Python
tornado/utils/accountcipher.py
maqg/wcrobot
7d026c1a34362c5434105c27c5bd25f08c6fabe2
[ "MIT" ]
null
null
null
tornado/utils/accountcipher.py
maqg/wcrobot
7d026c1a34362c5434105c27c5bd25f08c6fabe2
[ "MIT" ]
null
null
null
tornado/utils/accountcipher.py
maqg/wcrobot
7d026c1a34362c5434105c27c5bd25f08c6fabe2
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- from base64 import b64encode, b64decode RC4_Key = "octopuslink!" def gen_random_bytes(k): i = 0 j = 0 while True: i = (i + 1) % 256 j = (j + k[i]) % 256 k[i], k[j] = k[j], k[i] yield k[(k[i] + k[j]) % 256] def rc4_crypt(data, ke...
23.788235
102
0.579624
293
2,022
3.931741
0.300341
0.012153
0.010417
0.010417
0.238715
0.211806
0.147569
0.147569
0.147569
0.128472
0
0.044415
0.265084
2,022
84
103
24.071429
0.730821
0.172107
0
0.27451
0
0
0.029447
0
0
0
0
0
0
1
0.156863
false
0.156863
0.019608
0
0.313725
0.039216
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
188bb2da62219860d0685035ec6531bac9d3f8e7
477
py
Python
fine-tune-cnn/delete_instance.py
mristin/mediti-experimental
8160851911cc347bb53e418fef6604e6433cb0f7
[ "MIT" ]
null
null
null
fine-tune-cnn/delete_instance.py
mristin/mediti-experimental
8160851911cc347bb53e418fef6604e6433cb0f7
[ "MIT" ]
4
2021-06-08T20:32:12.000Z
2022-03-12T00:03:46.000Z
fine-tune-cnn/delete_instance.py
mristin/mediti-experimental
8160851911cc347bb53e418fef6604e6433cb0f7
[ "MIT" ]
1
2019-11-01T09:25:33.000Z
2019-11-01T09:25:33.000Z
#!/usr/bin/env python3 """Delete the training instance.""" import inspect import os import sys import pathlib import re import argparse from typing import List, Union, Set, Dict import datetime import subprocess INSTANCE_NAME = "mediti-train" def main() -> None: """Execute the main routine.""" print("Deleti...
18.346154
67
0.69392
59
477
5.423729
0.661017
0.075
0
0
0
0
0
0
0
0
0
0.002545
0.176101
477
25
68
19.08
0.811705
0.161426
0
0
0
0
0.18509
0
0
0
0
0
0
1
0.0625
false
0
0.5625
0
0.625
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
0
0
0
0
1
0
0
0
0
1
18a640ff2968032aecd26dcd1b3edc79d57bc82c
1,030
py
Python
creten/clients/DbExchangeDataMapper.py
nardew/Creten
15ddb0b52e6f2afec2c79b3c731fccb34a2c63d6
[ "MIT" ]
9
2019-12-17T10:42:40.000Z
2021-12-02T23:07:05.000Z
creten/clients/DbExchangeDataMapper.py
nardew/Creten
15ddb0b52e6f2afec2c79b3c731fccb34a2c63d6
[ "MIT" ]
null
null
null
creten/clients/DbExchangeDataMapper.py
nardew/Creten
15ddb0b52e6f2afec2c79b3c731fccb34a2c63d6
[ "MIT" ]
6
2019-03-04T15:01:10.000Z
2022-01-12T23:22:55.000Z
from market_data.CretenInterval import CretenInterval class DbExchangeDataMapper: @classmethod def getCretenValue(cls, value): return cls.mapping[value] @classmethod def getDbValue(cls, cretenValue): for key, value in cls.mapping.items(): if value == cretenValue: return key return None class DbExch...
31.212121
53
0.785437
100
1,030
7.93
0.39
0.416141
0
0
0
0
0
0
0
0
0
0.03943
0.113592
1,030
33
54
31.212121
0.829135
0
0
0.068966
0
0
0.084384
0
0
0
0
0
0
1
0.068966
false
0
0.034483
0.034483
0.310345
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
18adb5d8941e4e72829a9f886895ff9f92be9971
861
py
Python
FPAIT/lib/logger/logger.py
D-X-Y/MSPLD-2018
71a6a75830ac84c7a861e63367ad3ace991fae77
[ "MIT" ]
63
2018-07-12T10:36:25.000Z
2019-04-26T11:30:09.000Z
FPAIT/lib/logger/logger.py
D-X-Y/MSPLD-2018
71a6a75830ac84c7a861e63367ad3ace991fae77
[ "MIT" ]
null
null
null
FPAIT/lib/logger/logger.py
D-X-Y/MSPLD-2018
71a6a75830ac84c7a861e63367ad3ace991fae77
[ "MIT" ]
8
2018-07-14T02:47:12.000Z
2019-06-03T07:39:13.000Z
# https://sherlockliao.github.io/2017/06/29/tensorboard/ from pathlib import Path import time, sys, numpy as np class Logger(object): def __init__(self, log_dir): """Create a summary writer logging to log_dir.""" self.log_dir = Path(log_dir) self.model_dir = Path(log_dir) / 'checkpoint' self.log...
31.888889
118
0.681765
131
861
4.19084
0.435115
0.087432
0.07286
0.047359
0.123862
0.123862
0.123862
0.123862
0
0
0
0.010989
0.154472
861
26
119
33.115385
0.743132
0.114983
0
0
0
0
0.074074
0.027778
0
0
0
0
0
1
0.277778
false
0
0.111111
0.055556
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
18afde5e9330ff05a79dde249af587f0d6269e83
6,694
py
Python
Part Refiner/test_part_refiner.py
Hao-HUST/G2LGAN
35f3f451cfdec9e8ab300a62dc21ede5428b5555
[ "MIT" ]
24
2019-01-04T14:08:05.000Z
2021-10-13T09:26:52.000Z
Part Refiner/test_part_refiner.py
Hao-HUST/G2LGAN
35f3f451cfdec9e8ab300a62dc21ede5428b5555
[ "MIT" ]
9
2019-07-29T03:07:42.000Z
2021-05-22T10:40:24.000Z
Part Refiner/test_part_refiner.py
Hao-HUST/G2LGAN
35f3f451cfdec9e8ab300a62dc21ede5428b5555
[ "MIT" ]
4
2019-04-15T00:30:26.000Z
2020-06-03T18:35:06.000Z
import tensorflow as tf import numpy as np import scipy.io as scio import os import sys import scipy.io as sio import part_ae as nw from utils import * import argparse from utils import separate_parts #The hyper-parameter for trainig model LEARNING_RATE = 0.0005 Z_SIZE = 64 RATIO = '9-1' TEST_SET = 'ICON2-crop-cube' ...
39.146199
139
0.620705
992
6,694
3.938508
0.207661
0.057333
0.043
0.040952
0.375736
0.328129
0.299207
0.224725
0.171231
0.151267
0
0.027455
0.254556
6,694
170
140
39.376471
0.755511
0.076935
0
0.038462
0
0
0.086702
0.004871
0
0
0
0
0
0
null
null
0
0.096154
null
null
0.038462
0
0
0
null
0
0
0
0
0
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
18c22fbd18f4291ec91f64cae7066fdd042344db
1,512
py
Python
src/ggrc/migrations/versions/20161229191611_4fcaef05479f_strip_titles_spaces.py
Killswitchz/ggrc-core
2460df94daf66727af248ad821462692917c97a9
[ "ECL-2.0", "Apache-2.0" ]
1
2018-03-30T11:28:48.000Z
2018-03-30T11:28:48.000Z
src/ggrc/migrations/versions/20161229191611_4fcaef05479f_strip_titles_spaces.py
trevordonnelly/ggrc-core
499cf0d3cce70737b080991b12c203ec22015cea
[ "ECL-2.0", "Apache-2.0" ]
10
2018-07-06T00:04:23.000Z
2021-02-26T21:13:20.000Z
src/ggrc/migrations/versions/20161229191611_4fcaef05479f_strip_titles_spaces.py
zidarsk8/ggrc-core
2509c989eddf434249d3bef50c21e08dbf56c1a4
[ "ECL-2.0", "Apache-2.0" ]
1
2017-11-11T22:16:56.000Z
2017-11-11T22:16:56.000Z
# Copyright (C) 2017 Google Inc. # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> """ Strip titles' trailing/leading spaces Create Date: 2016-12-29 19:16:11.268293 """ # disable Invalid constant name pylint warning for mandatory Alembic variables. # pylint: disable=invalid-name from ggr...
38.769231
79
0.670635
162
1,512
6.123457
0.635802
0.030242
0.034274
0.042339
0.362903
0.316532
0.316532
0.316532
0.316532
0.316532
0
0.033252
0.184524
1,512
38
80
39.789474
0.77129
0.306878
0
0
0
0
0.453216
0.054581
0
0
0
0
0
1
0.111111
false
0.055556
0.055556
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
18cc31eba3b9f76afef5eb5ce5ab9fb431e5113d
1,630
py
Python
006/app.py
hugozamian/estudo_python
e6be6501a882e9d3b858067a84e8f93180462ef2
[ "MIT" ]
null
null
null
006/app.py
hugozamian/estudo_python
e6be6501a882e9d3b858067a84e8f93180462ef2
[ "MIT" ]
null
null
null
006/app.py
hugozamian/estudo_python
e6be6501a882e9d3b858067a84e8f93180462ef2
[ "MIT" ]
null
null
null
#Collections, Lists and Tubles - colecao de dados familia = ["Hugo", "Louyse", "Julieta"] #listas podem ser feitas com qualquer tipo de dado, bool, int, float, string print(familia[0]) #primeiro dado print(familia[-1]) #ultimo dado print(familia[0:2]) #intervalo de dado, sem exclui o ultimo dado do vetor, neste caso ...
28.596491
116
0.750307
238
1,630
5.113445
0.462185
0.147905
0.109285
0.059162
0
0
0
0
0
0
0
0.019774
0.131288
1,630
57
117
28.596491
0.839689
0.435583
0
0.325
0
0
0.115684
0
0
0
0
0
0
1
0
false
0
0
0
0
0.55
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
18cf448081509954302e79a28e8f10e3065a1f68
674
py
Python
setup.py
hedderich/flask-real-time-map
532f08a49403fcb9dde6e9bcd159e17f86a75500
[ "MIT" ]
7
2019-06-18T01:14:04.000Z
2022-03-01T14:05:26.000Z
setup.py
hedderich/flask-real-time-map
532f08a49403fcb9dde6e9bcd159e17f86a75500
[ "MIT" ]
null
null
null
setup.py
hedderich/flask-real-time-map
532f08a49403fcb9dde6e9bcd159e17f86a75500
[ "MIT" ]
4
2020-09-23T14:14:13.000Z
2021-12-19T22:18:37.000Z
from setuptools import find_packages, setup setup( name='flask-real-time-map', version='0.1.0', license='MIT', url='https://github.com/hedderich/flask-real-time-map', author='Marvin Hedderich', author_email='dev@hedderich.info', description='Display a live visualization of vehicle position...
24.071429
72
0.633531
74
674
5.648649
0.72973
0.057416
0.062201
0.076555
0
0
0
0
0
0
0
0.005736
0.224036
674
27
73
24.962963
0.793499
0
0
0
0
0
0.388724
0
0
0
0
0
0
1
0
true
0
0.041667
0
0.041667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
18cf7e3a7b2f12f5265209ca45d46c7bfb4945b8
59,674
py
Python
lib/dblatex-0.3.2/lib/dbtexmf/dblatex/unient.py
jonathanmorley/HR-XSL
799b1075cbec4cda3d686d588eea92a62d59963f
[ "Apache-2.0" ]
1
2017-12-29T23:23:14.000Z
2017-12-29T23:23:14.000Z
lib/dblatex-0.3.2/lib/dbtexmf/dblatex/unient.py
jonathanmorley/HR-XSL
799b1075cbec4cda3d686d588eea92a62d59963f
[ "Apache-2.0" ]
null
null
null
lib/dblatex-0.3.2/lib/dbtexmf/dblatex/unient.py
jonathanmorley/HR-XSL
799b1075cbec4cda3d686d588eea92a62d59963f
[ "Apache-2.0" ]
null
null
null
# # Unicode Mapping generated by uni2python.xsl # unicode_map = { 0x00100: r"\={A}", # LATIN CAPITAL LETTER A WITH MACRON 0x00101: r"\={a}", # LATIN SMALL LETTER A WITH MACRON 0x00102: r"\u{A}", # LATIN CAPITAL LETTER A WITH BREVE 0x00103: r"\u{a}", # LATIN SMALL LETTER A WITH BREVE 0x00104: r"\k{A}", # LATIN CAPITAL L...
58.850099
103
0.7301
8,213
59,674
5.304517
0.258493
0.094431
0.044347
0.008676
0.17151
0.089336
0.031401
0.004453
0
0
0
0.111921
0.119751
59,674
1,013
104
58.908193
0.717465
0.462697
0
0
1
0
0.514249
0.219675
0
0
0.226308
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
18d439a3da451d004a94b3e2d1a519f58934faae
383
py
Python
km_api/know_me/journal/tests/conftest.py
knowmetools/km-api
e4b72484c42e88a6c0087c9b1d5fef240e66cbb0
[ "Apache-2.0" ]
4
2017-08-03T00:46:31.000Z
2018-11-06T03:32:32.000Z
km_api/know_me/journal/tests/conftest.py
knowmetools/km-api
e4b72484c42e88a6c0087c9b1d5fef240e66cbb0
[ "Apache-2.0" ]
526
2017-06-27T18:13:59.000Z
2021-06-10T18:00:21.000Z
km_api/know_me/journal/tests/conftest.py
knowmetools/km-api
e4b72484c42e88a6c0087c9b1d5fef240e66cbb0
[ "Apache-2.0" ]
1
2017-07-10T19:46:27.000Z
2017-07-10T19:46:27.000Z
import pytest from know_me.journal import factories @pytest.fixture def entry_comment_factory(db): """ Fixture to get the factory used to create journal entry comments. """ return factories.EntryCommentFactory @pytest.fixture def entry_factory(db): """ Fixture to get the factory used to cre...
19.15
69
0.725849
48
383
5.708333
0.479167
0.094891
0.116788
0.153285
0.364964
0.364964
0.364964
0.364964
0.364964
0.364964
0
0
0.203655
383
19
70
20.157895
0.898361
0.32376
0
0.25
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.25
0
0.75
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
18d51caf53b30dc72817b33e5e7b381be966652b
9,501
py
Python
modules/GridMaker.py
MA0R/Ref-Step-Algorithm
7a30bbbd454339f5c3b634a81831d73e2cc2a688
[ "Apache-2.0" ]
null
null
null
modules/GridMaker.py
MA0R/Ref-Step-Algorithm
7a30bbbd454339f5c3b634a81831d73e2cc2a688
[ "Apache-2.0" ]
null
null
null
modules/GridMaker.py
MA0R/Ref-Step-Algorithm
7a30bbbd454339f5c3b634a81831d73e2cc2a688
[ "Apache-2.0" ]
null
null
null
import wx import wx.grid import numpy as np """ This code makes a printer to a specified grid, capable of printing columns and rows. It also generates the necessary columns for the ref-step algorithm based on the ranges of the instruments sent. Only the funcitons to do with printing to a grid are specific to th...
45.45933
178
0.600989
1,399
9,501
3.93138
0.203002
0.05
0.026182
0.012364
0.364182
0.339818
0.297273
0.264727
0.218182
0.207636
0
0.020191
0.296285
9,501
208
179
45.677885
0.802423
0.255447
0
0.112
1
0
0.025645
0
0
0
0
0
0
1
0.08
false
0
0.032
0
0.152
0.032
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
18dffde28f6daf2c8c187d89a022c7809e4c5b1c
533
py
Python
evaluation/hand_calculation/yaku_list/riichi.py
VictorZXY/meowjong
ec71171f7dc2369c55f5e3bd3302cbaa76346561
[ "MIT" ]
null
null
null
evaluation/hand_calculation/yaku_list/riichi.py
VictorZXY/meowjong
ec71171f7dc2369c55f5e3bd3302cbaa76346561
[ "MIT" ]
null
null
null
evaluation/hand_calculation/yaku_list/riichi.py
VictorZXY/meowjong
ec71171f7dc2369c55f5e3bd3302cbaa76346561
[ "MIT" ]
null
null
null
from evaluation.hand_calculation.yaku import Yaku class Riichi(Yaku): """ Concealed waiting hand declared at 1000 points stake. """ def __init__(self): super().__init__() def set_attributes(self): self.name = 'Riichi' self.english = 'Riichi' self.japanese = '立直' ...
21.32
57
0.613508
66
533
4.69697
0.606061
0.064516
0
0
0
0
0
0
0
0
0
0.013158
0.287054
533
24
58
22.208333
0.802632
0.099437
0
0
0
0
0.034483
0
0
0
0
0
0
1
0.214286
false
0
0.071429
0.071429
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
18e4c054f59a409b6f2d69ae1bc1e895a2b31b39
1,767
py
Python
dispass/commands/help.py
babab/DisPass
9563ddeef60fc580ce13fa3bfdedea56225ea099
[ "0BSD" ]
3
2015-02-03T05:49:40.000Z
2016-06-24T01:44:38.000Z
dispass/commands/help.py
babab/DisPass
9563ddeef60fc580ce13fa3bfdedea56225ea099
[ "0BSD" ]
56
2016-01-25T17:44:15.000Z
2018-11-02T18:05:51.000Z
dispass/commands/help.py
babab/DisPass
9563ddeef60fc580ce13fa3bfdedea56225ea099
[ "0BSD" ]
1
2016-01-25T17:58:53.000Z
2016-01-25T17:58:53.000Z
'''Subcommand module `help`; contains only a single class `Command`''' # Copyright (c) 2012-2016 Tom Willemse <tom@ryuslash.org> # Copyright (c) 2011-2018 Benjamin Althues <benjamin@babab.nl> # # Permission to use, copy, modify, and distribute this software for any # purpose with or without fee is hereby granted, pr...
35.34
74
0.654782
219
1,767
5.278539
0.56621
0.027682
0.032872
0
0
0
0
0
0
0
0
0.016241
0.268251
1,767
49
75
36.061224
0.877804
0.508772
0
0.083333
0
0
0.133886
0
0
0
0
0
0
1
0.041667
false
0.166667
0.208333
0
0.5
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
1
0
0
0
0
0
1
18edbc006586e8c47db15c334d77bddb434c72cd
913
py
Python
app/migrations/0002_item.py
malrefai/todo
8c650f4f416fec34e38bfc524e5422b15555d26c
[ "MIT" ]
null
null
null
app/migrations/0002_item.py
malrefai/todo
8c650f4f416fec34e38bfc524e5422b15555d26c
[ "MIT" ]
5
2018-09-14T10:51:30.000Z
2021-06-10T20:47:46.000Z
app/migrations/0002_item.py
malrefai/todo
8c650f4f416fec34e38bfc524e5422b15555d26c
[ "MIT" ]
1
2018-09-14T10:49:09.000Z
2018-09-14T10:49:09.000Z
# Generated by Django 2.1.1 on 2018-09-13 13:27 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('app', '0001_initial'), ] operations = [ migrations.CreateModel( name='Item', fields...
31.482759
114
0.561884
91
913
5.538462
0.604396
0.047619
0.055556
0.087302
0
0
0
0
0
0
0
0.034161
0.294633
913
28
115
32.607143
0.748447
0.049288
0
0
1
0
0.084296
0
0
0
0
0
0
1
0
false
0
0.090909
0
0.227273
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
18ee2ac0bbdd529b7bea6d8546b0345b98b734db
8,778
py
Python
LazyBudgetServer.py
makuto/Lazy-Budget
4a3b96598e14f00f1eef10ee102aa7fbd877a8ae
[ "MIT" ]
null
null
null
LazyBudgetServer.py
makuto/Lazy-Budget
4a3b96598e14f00f1eef10ee102aa7fbd877a8ae
[ "MIT" ]
null
null
null
LazyBudgetServer.py
makuto/Lazy-Budget
4a3b96598e14f00f1eef10ee102aa7fbd877a8ae
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import tornado.ioloop import tornado.web import tornado.websocket import tornado.httpclient import tornado.gen import os import random import webbrowser # Require a username and password in order to use the web interface. See ReadMe.org for details. #enable_authentication = False enable_authen...
38
154
0.629073
943
8,778
5.734889
0.322375
0.018121
0.038831
0.01997
0.24057
0.217456
0.188794
0.163462
0.102811
0.102811
0
0.003774
0.275461
8,778
230
155
38.165217
0.846541
0.179995
0
0.378205
0
0.019231
0.172808
0.036572
0
0
0
0
0
1
0.096154
false
0.076923
0.057692
0.012821
0.262821
0.089744
0
0
0
null
0
0
0
0
0
0
0
0
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
18ee9fde56690a2c7babf965b2c5b4af1d48a668
23,279
py
Python
tools/result_analysis_rdmm.py
norveclibalikci/easyreg-mirror
a16254733fe957cc4024923f8dce91412966a189
[ "Apache-2.0" ]
null
null
null
tools/result_analysis_rdmm.py
norveclibalikci/easyreg-mirror
a16254733fe957cc4024923f8dce91412966a189
[ "Apache-2.0" ]
null
null
null
tools/result_analysis_rdmm.py
norveclibalikci/easyreg-mirror
a16254733fe957cc4024923f8dce91412966a189
[ "Apache-2.0" ]
null
null
null
""" ================================= Box plots with custom fill colors ================================= This plot illustrates how to create two types of box plots (rectangular and notched), and how to fill them with custom colors by accessing the properties of the artists of the box plots. Additionally, the ``labels...
46.839034
274
0.71107
3,451
23,279
4.438713
0.119096
0.02879
0.052161
0.064434
0.735213
0.711451
0.672085
0.61542
0.577882
0.536101
0
0.022663
0.147042
23,279
496
275
46.933468
0.748791
0.266549
0
0.356115
0
0.003597
0.279678
0.217058
0
0
0
0
0
1
0.07554
false
0.003597
0.014388
0
0.129496
0.017986
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
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
18f2522e6c5bf0121944674045a5f81375b93006
556
py
Python
reports/migrations/0005_moneyback_payment_system.py
Igorishe/Report_Traker
886da5d5dd40247779a76611cf6b66cb95963ad7
[ "MIT" ]
null
null
null
reports/migrations/0005_moneyback_payment_system.py
Igorishe/Report_Traker
886da5d5dd40247779a76611cf6b66cb95963ad7
[ "MIT" ]
null
null
null
reports/migrations/0005_moneyback_payment_system.py
Igorishe/Report_Traker
886da5d5dd40247779a76611cf6b66cb95963ad7
[ "MIT" ]
null
null
null
# Generated by Django 3.2.3 on 2021-09-13 09:54 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('reports', '0004_alter_moneyback_wallet'), ] operations = [ migrations.AddField( model_name='moneyback', name='paymen...
29.263158
207
0.624101
58
556
5.862069
0.741379
0
0
0
0
0
0
0
0
0
0
0.048387
0.219424
556
18
208
30.888889
0.735023
0.080935
0
0
1
0
0.265226
0.053045
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
18f398d6d0810569f970a1991807dbfe2cea4c46
2,492
py
Python
test/unit_tests/braket/circuits/test_gate.py
jrrhuang/amazon-braket-sdk-python
76be20d5c4b4d333e594a4dea419e3ebf302ae48
[ "Apache-2.0" ]
null
null
null
test/unit_tests/braket/circuits/test_gate.py
jrrhuang/amazon-braket-sdk-python
76be20d5c4b4d333e594a4dea419e3ebf302ae48
[ "Apache-2.0" ]
null
null
null
test/unit_tests/braket/circuits/test_gate.py
jrrhuang/amazon-braket-sdk-python
76be20d5c4b4d333e594a4dea419e3ebf302ae48
[ "Apache-2.0" ]
null
null
null
# Copyright Amazon.com Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). You # may not use this file except in compliance with the License. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file accompany...
26.510638
99
0.702247
350
2,492
4.762857
0.345714
0.059988
0.041992
0.038392
0.323935
0.287343
0.239952
0.14997
0.05039
0
0
0.015686
0.18138
2,492
93
100
26.795699
0.801471
0.214286
0
0.150943
0
0
0.041645
0
0
0
0
0
0.207547
1
0.264151
false
0
0.037736
0.037736
0.377358
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
18f43939bb8f5a87bacbcc1c8ae2ca35276f759d
399
py
Python
cart/migrations/0002_alter_order_order_amount.py
samuelodhiambo/SupplyChainSolutions
d7b9181a708d5a4f6ba034c852f7b8f3dc3bbc17
[ "MIT" ]
null
null
null
cart/migrations/0002_alter_order_order_amount.py
samuelodhiambo/SupplyChainSolutions
d7b9181a708d5a4f6ba034c852f7b8f3dc3bbc17
[ "MIT" ]
10
2022-03-22T06:32:27.000Z
2022-03-25T02:15:26.000Z
cart/migrations/0002_alter_order_order_amount.py
samuelodhiambo/SupplyChainSolutions
d7b9181a708d5a4f6ba034c852f7b8f3dc3bbc17
[ "MIT" ]
4
2022-03-21T19:24:29.000Z
2022-03-22T13:14:33.000Z
# Generated by Django 4.0.3 on 2022-03-23 20:07 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('cart', '0001_initial'), ] operations = [ migrations.AlterField( model_name='order', name='order_amount', ...
21
72
0.596491
44
399
5.340909
0.818182
0.076596
0
0
0
0
0
0
0
0
0
0.06993
0.283208
399
18
73
22.166667
0.751748
0.112782
0
0
1
0
0.09375
0
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
18fa8dd7714afe01388e52f233a330f8640b6c78
4,606
py
Python
bioleaflets/preparation/EMA_documents.py
bayer-science-for-a-better-life/data2text-bioleaflets
6e5127473f26376551b79fbe746d308f7b6d310d
[ "Apache-2.0" ]
13
2021-09-06T02:17:36.000Z
2022-03-26T21:35:08.000Z
bioleaflets/preparation/EMA_documents.py
angeloziletti/data2text-bioleaflets
6e5127473f26376551b79fbe746d308f7b6d310d
[ "Apache-2.0" ]
null
null
null
bioleaflets/preparation/EMA_documents.py
angeloziletti/data2text-bioleaflets
6e5127473f26376551b79fbe746d308f7b6d310d
[ "Apache-2.0" ]
2
2021-11-10T18:49:53.000Z
2021-12-20T10:50:46.000Z
""" Represent classes found in European Medicines Agency (EMA) documents """ class SectionLeaflet: """ Class to represent individual section of a Package Leaflet """ def __init__(self, title, section_content, entity_recognition=None): self.title = title self.section_conten...
41.495495
109
0.554711
511
4,606
4.864971
0.164384
0.024135
0.054304
0.031376
0.338697
0.293242
0.211585
0.185438
0.185438
0.185438
0
0.014833
0.297438
4,606
110
110
41.872727
0.753399
0.120929
0
0.144928
0
0
0.219979
0.071429
0
0
0
0
0
1
0.115942
false
0
0
0
0.144928
0.42029
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
7a06bc455c1eddc192b260faf7f6abce1f2f0e65
919
py
Python
step_3/ring-and-tweet.py
ecaron/twitter-doorbell
de72eb10919285f9f69edf06c8a1a60716424c2b
[ "MIT" ]
1
2020-10-06T16:20:29.000Z
2020-10-06T16:20:29.000Z
step_3/ring-and-tweet.py
ecaron/twitter-doorbell
de72eb10919285f9f69edf06c8a1a60716424c2b
[ "MIT" ]
null
null
null
step_3/ring-and-tweet.py
ecaron/twitter-doorbell
de72eb10919285f9f69edf06c8a1a60716424c2b
[ "MIT" ]
null
null
null
from gpiozero import LED, Button from signal import pause from dotenv import load_dotenv import time, os, tweepy load_dotenv() start_time = 0 auth = tweepy.OAuthHandler(os.getenv("consumer_key"), os.getenv("consumer_secret")) auth.set_access_token(os.getenv("access_token"), os.getenv("access_token_secret")) api = t...
22.414634
83
0.714908
137
919
4.635037
0.40146
0.056693
0.047244
0.059843
0.143307
0.143307
0.066142
0
0
0
0
0.012821
0.151251
919
40
84
22.975
0.801282
0
0
0.193548
0
0
0.168662
0
0
0
0
0
0
0
null
null
0
0.129032
null
null
0.064516
0
0
0
null
0
0
0
0
0
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
7a07dc5f7ae2cd056ab1bef888454b8c42a9c0ed
806
py
Python
config.py
tylerweston/talc
1f30466146df7d3c1267ae8935705eb3d1399306
[ "MIT" ]
null
null
null
config.py
tylerweston/talc
1f30466146df7d3c1267ae8935705eb3d1399306
[ "MIT" ]
null
null
null
config.py
tylerweston/talc
1f30466146df7d3c1267ae8935705eb3d1399306
[ "MIT" ]
null
null
null
import random # TODO: Get this outta here! spinner_choice = random.choice(['aesthetic', 'arc', 'arrow3', 'betaWave', 'balloon', 'bounce', 'bouncingBar', 'circle', 'dots', 'line', 'squish', 'toggle10', 'pong']) # TODO: Replace these removed soundtracks soundtrack_files = [ "talc_soundtrack.mp3", "talc_soundtrac...
22.388889
84
0.722084
106
806
5.216981
0.707547
0.050633
0.050633
0
0
0
0
0
0
0
0
0.048105
0.148883
806
36
85
22.388889
0.758017
0.225806
0
0
0
0
0.286872
0
0
0
0
0.027778
0
1
0
false
0
0.047619
0
0.047619
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1