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
d9e182705452fe461a2142c0afa4786d47f19c46
2,131
py
Python
dags/treinos_igti/treino03.py
rafaelols/airflow
8e4af5fb576a9568af476c0607819649b724adea
[ "Apache-2.0" ]
null
null
null
dags/treinos_igti/treino03.py
rafaelols/airflow
8e4af5fb576a9568af476c0607819649b724adea
[ "Apache-2.0" ]
null
null
null
dags/treinos_igti/treino03.py
rafaelols/airflow
8e4af5fb576a9568af476c0607819649b724adea
[ "Apache-2.0" ]
null
null
null
from airflow import DAG from airflow.operators.bash_operator import BashOperator from airflow.operators.python_operator import PythonOperator, BranchPythonOperator from datetime import datetime, timedelta import pandas as pd import random # Default args definition default_args = { 'owner': 'Rafael', 'depends_o...
25.987805
147
0.697325
290
2,131
4.934483
0.406897
0.025157
0.025157
0.039832
0.125087
0.125087
0.106219
0.071279
0.071279
0.071279
0
0.011878
0.170343
2,131
81
148
26.308642
0.797511
0.017832
0
0.107692
0
0.015385
0.300478
0.047368
0
0
0
0
0
1
0.061538
false
0
0.092308
0.015385
0.2
0.030769
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9e359c85a06bdc44937457ee401aaa8bebc7f50
2,560
py
Python
tclCommands/TclCommandListSys.py
DannyPol/flatcam
25a8634d0658e98b7fae31a095f8bef40c1b3067
[ "MIT" ]
1
2022-02-11T06:19:34.000Z
2022-02-11T06:19:34.000Z
tclCommands/TclCommandListSys.py
MRemy2/FlatCam
d4f941335ca8a8d5351aab23b396f99da06a9029
[ "MIT" ]
null
null
null
tclCommands/TclCommandListSys.py
MRemy2/FlatCam
d4f941335ca8a8d5351aab23b396f99da06a9029
[ "MIT" ]
null
null
null
# ########################################################## # FlatCAM: 2D Post-processing for Manufacturing # # File Author: Marius Adrian Stanciu (c) # # Date: 8/17/2019 # # MIT Licence # # #############...
37.647059
120
0.55
290
2,560
4.8
0.437931
0.030172
0.036638
0.034483
0.103448
0.067529
0.067529
0.067529
0.067529
0.067529
0
0.004585
0.318359
2,560
67
121
38.208955
0.793123
0.3125
0
0.0625
0
0.03125
0.410863
0
0
0
0
0
0
1
0.03125
false
0
0.03125
0
0.34375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9e3f1d0e6ad9650ceb745dc1536525917eaef63
2,694
py
Python
ogs5py/fileclasses/mcp/core.py
MuellerSeb/ogs5py
752e7bd2298fbd476406d168f6b7d1a85863dccd
[ "MIT" ]
3
2018-05-27T15:39:07.000Z
2018-10-29T17:02:11.000Z
ogs5py/fileclasses/mcp/core.py
MuellerSeb/ogs5py
752e7bd2298fbd476406d168f6b7d1a85863dccd
[ "MIT" ]
1
2018-11-12T11:32:12.000Z
2018-11-12T13:07:48.000Z
ogs5py/fileclasses/mcp/core.py
MuellerSeb/ogs5py
752e7bd2298fbd476406d168f6b7d1a85863dccd
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Class for the ogs COMPONENT_PROPERTIES file.""" from ogs5py.fileclasses.base import BlockFile class MCP(BlockFile): """ Class for the ogs COMPONENT_PROPERTIES file. Parameters ---------- task_root : str, optional Path to the destiny model folder. ...
25.415094
78
0.485523
213
2,694
5.868545
0.516432
0.076
0.0216
0.0224
0.0592
0.0592
0.0592
0
0
0
0
0.005105
0.418337
2,694
105
79
25.657143
0.792597
0.464736
0
0
0
0
0.346667
0.048
0
0
0
0
0
1
0.025
false
0
0.025
0
0.15
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9e4389915d24f650fdb65abd21f0125dba8ab5c
175,651
py
Python
keystone/tests/unit/test_v3_assignment.py
crowdy/keystone
1e7ecca881a51144d61ae8026e1a77d6669997e2
[ "Apache-2.0" ]
null
null
null
keystone/tests/unit/test_v3_assignment.py
crowdy/keystone
1e7ecca881a51144d61ae8026e1a77d6669997e2
[ "Apache-2.0" ]
4
2021-10-05T12:01:08.000Z
2021-10-10T07:06:33.000Z
keystone/tests/unit/test_v3_assignment.py
crowdy/keystone
1e7ecca881a51144d61ae8026e1a77d6669997e2
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
43.434965
79
0.628166
21,383
175,651
4.906047
0.031614
0.024365
0.01487
0.029512
0.814167
0.772139
0.735268
0.705336
0.675834
0.649953
0
0.005015
0.275723
175,651
4,043
80
43.445709
0.819588
0.191032
0
0.639313
0
0
0.098023
0.052226
0
0
0
0.000247
0.119084
1
0.055725
false
0.004962
0.00458
0.000382
0.072901
0
0
0
0
null
0
0
0
1
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
d9e48585d735333916bf5e8b10a68c72e4541093
248,866
py
Python
pysnmp-with-texts/XXX-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/XXX-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/XXX-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module XXX-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/XXX-MIB # Produced by pysmi-0.3.4 at Wed May 1 15:44:42 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)...
141.884835
10,350
0.750826
35,253
248,866
5.18007
0.032933
0.019035
0.128912
0.013427
0.785557
0.679399
0.599393
0.548658
0.529563
0.47282
0
0.093998
0.084889
248,866
1,753
10,351
141.965773
0.707851
0.001238
0
0
0
0.014327
0.195744
0.018616
0
0
0.000322
0
0
1
0
false
0.001146
0.003438
0
0.003438
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
d9e551f94d290cc9b470d1fddfc0e91666dab7ba
444
py
Python
setup.py
zhanghang1989/notedown
b0fa1eac88d1cd7fa2261d6c454f82669e6f552b
[ "BSD-2-Clause" ]
null
null
null
setup.py
zhanghang1989/notedown
b0fa1eac88d1cd7fa2261d6c454f82669e6f552b
[ "BSD-2-Clause" ]
null
null
null
setup.py
zhanghang1989/notedown
b0fa1eac88d1cd7fa2261d6c454f82669e6f552b
[ "BSD-2-Clause" ]
null
null
null
from setuptools import setup # create __version__ exec(open('./_version.py').read()) setup( name="notedown", version=__version__, description="Convert markdown to IPython notebook.", author="Aaron O'Leary", author_email='dev@aaren.me', url='http://github.com/aaren/notedown', install_requir...
22.2
56
0.628378
47
444
5.659574
0.787234
0
0
0
0
0
0
0
0
0
0
0
0.218468
444
19
57
23.368421
0.766571
0.040541
0
0
0
0
0.377358
0
0
0
0
0
0
1
0
true
0
0.0625
0
0.0625
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
d9e5c18f6a37dd4a96dd21f7ddefb31b197848dd
2,853
py
Python
multithreaded_webcrawler.py
the-muses-ltd/Multithreaded-Webcrawler-Cassandra-
eee68faf3c6ecb548edd0e96ce445dcd366fb735
[ "MIT" ]
null
null
null
multithreaded_webcrawler.py
the-muses-ltd/Multithreaded-Webcrawler-Cassandra-
eee68faf3c6ecb548edd0e96ce445dcd366fb735
[ "MIT" ]
null
null
null
multithreaded_webcrawler.py
the-muses-ltd/Multithreaded-Webcrawler-Cassandra-
eee68faf3c6ecb548edd0e96ce445dcd366fb735
[ "MIT" ]
null
null
null
# This is a reusable webcraawler architecture that can be adapted to scrape any webstie. # RESULTS: # Roughly 24 seconds per thousand courses scraped for ThreadPoolExecutor vs 63s for unthreaded script. # This is a very basic implementation of multithreading in order to show the proof of concept, but is a good base to...
42.58209
164
0.667368
383
2,853
4.859008
0.506527
0.021494
0.024181
0
0
0
0
0
0
0
0
0.009767
0.246407
2,853
66
165
43.227273
0.855814
0.317911
0
0.045455
0
0
0.1797
0
0
0
0
0
0
1
0.068182
false
0
0.159091
0.022727
0.25
0.068182
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9e62b20786a73ca86ccde01bde160623cc32657
3,710
py
Python
genyrator/entities/Template.py
jumblesale/genyrator
c4429f689e92e8447b0b944e7d9b434f99cae51d
[ "MIT" ]
1
2020-07-01T16:54:39.000Z
2020-07-01T16:54:39.000Z
genyrator/entities/Template.py
jumblesale/genyrator
c4429f689e92e8447b0b944e7d9b434f99cae51d
[ "MIT" ]
10
2018-11-16T15:04:21.000Z
2021-06-01T22:27:38.000Z
genyrator/entities/Template.py
jumblesale/genyrator
c4429f689e92e8447b0b944e7d9b434f99cae51d
[ "MIT" ]
2
2018-08-08T10:42:35.000Z
2019-07-25T11:56:06.000Z
from typing import List, Optional, NewType, Tuple, NamedTuple, Type import attr from jinja2 import Template as JinjaTemplate, StrictUndefined from genyrator.entities.Entity import Entity from genyrator.path import create_relative_path OutPath = NewType('OutPath', Tuple[List[str], str]) Import = NamedTuple('Import', ...
24.090909
73
0.616712
444
3,710
4.990991
0.175676
0.102888
0.113718
0.105596
0.421029
0.361913
0.304152
0.278881
0.24639
0.146209
0
0.001836
0.265768
3,710
153
74
24.248366
0.811674
0
0
0.419643
0
0
0.014555
0
0
0
0
0
0
1
0.035714
false
0
0.133929
0.017857
0.696429
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
d9e78859b4482aaef1db18210493138799d91b2f
1,969
py
Python
MIDI Remote Scripts/Push2/mode_collector.py
aarkwright/ableton_devices
fe5df3bbd64ccbc136bba722ba1e131a02969798
[ "MIT" ]
null
null
null
MIDI Remote Scripts/Push2/mode_collector.py
aarkwright/ableton_devices
fe5df3bbd64ccbc136bba722ba1e131a02969798
[ "MIT" ]
null
null
null
MIDI Remote Scripts/Push2/mode_collector.py
aarkwright/ableton_devices
fe5df3bbd64ccbc136bba722ba1e131a02969798
[ "MIT" ]
null
null
null
# uncompyle6 version 3.3.5 # Python bytecode 2.7 (62211) # Decompiled from: Python 3.7.3 (default, Apr 24 2019, 15:29:51) [MSC v.1915 64 bit (AMD64)] # Embedded file name: c:\Jenkins\live\output\win_64_static\Release\python-bundle\MIDI Remote Scripts\Push2\mode_collector.py # Compiled at: 2018-11-30 15:48:11 from __fut...
37.865385
124
0.742509
278
1,969
4.827338
0.298561
0.059613
0.052161
0.056632
0.42623
0.271237
0.201192
0.153502
0.153502
0.153502
0
0.031882
0.171661
1,969
52
125
37.865385
0.790926
0.151854
0
0.216216
0
0
0.031231
0
0
0
0
0
0
1
0.243243
false
0
0.054054
0.108108
0.432432
0.027027
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
2
d9e7a46d631c672aae25d04f18b75876427b787e
817
py
Python
src/topicModel.py
daidaotong/SingleView
db3249ca5afba97f750495cccbc185de88bf2287
[ "MIT" ]
null
null
null
src/topicModel.py
daidaotong/SingleView
db3249ca5afba97f750495cccbc185de88bf2287
[ "MIT" ]
null
null
null
src/topicModel.py
daidaotong/SingleView
db3249ca5afba97f750495cccbc185de88bf2287
[ "MIT" ]
null
null
null
from gensim import corpora, models, similarities, matutils,utils from gensim.models import KeyedVectors import numpy as np #Word2vec Experiment testString = ['PAST_MEDICAL_HISTORY','PAST_SURGICAL_HISTORY','PHYSICAL_EXAMINATION'] ''' word_vectors = KeyedVectors.load_word2vec_format('~/Downloads/GoogleNews-vectors-negat...
35.521739
111
0.71481
106
817
5.349057
0.528302
0.116402
0.112875
0.10582
0.185185
0.185185
0
0
0
0
0
0.023591
0.066095
817
22
112
37.136364
0.719528
0.051408
0
0
0
0
0.226766
0.078067
0
0
0
0
0
0
null
null
0
0.428571
null
null
0.285714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
2
d9e8867f9d8fa5dbea3f62a0b298eac5f535d37a
9,499
py
Python
src/bots/test/test_inputs.py
drewbitt/lightnovel-crawler
fa9546ad9dcff49c75296b0b8772f6578689adcc
[ "Apache-2.0" ]
1
2019-03-10T13:02:23.000Z
2019-03-10T13:02:23.000Z
src/bots/test/test_inputs.py
drewbitt/lightnovel-crawler
fa9546ad9dcff49c75296b0b8772f6578689adcc
[ "Apache-2.0" ]
null
null
null
src/bots/test/test_inputs.py
drewbitt/lightnovel-crawler
fa9546ad9dcff49c75296b0b8772f6578689adcc
[ "Apache-2.0" ]
null
null
null
from base64 import decodestring as b64decode allowed_failures = [ 'https://ranobelib.me/', 'https://www.aixdzs.com/', 'https://webnovelindonesia.com/', b64decode("aHR0cHM6Ly9jb21yYWRlbWFvLmNvbS8=".encode()).decode() ] test_user_inputs = { b64decode("aHR0cHM6Ly9jb21yYWRlbWFvLmNvbS8=".encode()).deco...
34.922794
117
0.596694
1,009
9,499
5.611497
0.331021
0.08195
0.036913
0.018368
0.11798
0.102437
0.084776
0.084776
0.068174
0.044507
0
0.024765
0.192336
9,499
271
118
35.051661
0.713243
0
0
0.33829
0
0.052045
0.713759
0.015581
0
0
0
0
0
1
0
false
0
0.003717
0
0.003717
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
d9ea76a8227b5405cef7b2e6991bcba1911971f4
5,819
py
Python
wikisourcesort.py
ostropunk/wikisourcesort
3af2d086df0818a75b3e6c34550e2cc1382911a5
[ "MIT" ]
null
null
null
wikisourcesort.py
ostropunk/wikisourcesort
3af2d086df0818a75b3e6c34550e2cc1382911a5
[ "MIT" ]
null
null
null
wikisourcesort.py
ostropunk/wikisourcesort
3af2d086df0818a75b3e6c34550e2cc1382911a5
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # In[1]: import pandas as pd import re # In[2]: def get_excel_dict(excelfile, key=None, index_col=0, header=0): dataframe = pd.read_excel(excelfile, index_col=index_col, header=header) dictionary = dataframe.to_dict() if key is None: return dictionary ...
23.75102
104
0.598385
766
5,819
4.374674
0.206266
0.056699
0.032229
0.03581
0.231274
0.177261
0.177261
0.168606
0.149508
0.149508
0
0.012192
0.238873
5,819
244
105
23.848361
0.744412
0.210174
0
0.116071
0
0
0.11455
0.015364
0
0
0
0
0
1
0.151786
false
0
0.017857
0
0.321429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9ea7ffbac1c307ae6a48a478a94b12a44b81de1
3,325
py
Python
backend/radar/engine/body_objects.py
me-anton/radar-app
cc7d1e876e0ce9b6173b6d7b484d5553e247166e
[ "MIT" ]
null
null
null
backend/radar/engine/body_objects.py
me-anton/radar-app
cc7d1e876e0ce9b6173b6d7b484d5553e247166e
[ "MIT" ]
null
null
null
backend/radar/engine/body_objects.py
me-anton/radar-app
cc7d1e876e0ce9b6173b6d7b484d5553e247166e
[ "MIT" ]
null
null
null
import logging import json from dataclasses import dataclass from redis import Redis from typing import Iterable, Tuple, List, Iterator, Union, Dict from typing_extensions import TypedDict from backend import settings from caching.scripts import RedisScriptsPool from share.metaclasses import Singleton from radar.model...
33.25
76
0.657143
406
3,325
5.135468
0.320197
0.026859
0.023022
0.034532
0.11223
0.035492
0.035492
0.035492
0.035492
0.035492
0
0.002837
0.258045
3,325
99
77
33.585859
0.842319
0.111278
0
0.101449
0
0
0.026371
0
0
0
0
0
0
1
0.15942
false
0
0.15942
0.072464
0.565217
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
d9eb0ee449a6b916e969b15c42a07550484f36ad
959
py
Python
djangocms_baseplugins/spacer/cms_plugins.py
benzkji/djangocms-baseplugins
7f041a030ed93dcdec70e4ca777b841846b8f2f2
[ "MIT" ]
2
2019-04-14T01:31:22.000Z
2020-03-05T13:06:57.000Z
djangocms_baseplugins/spacer/cms_plugins.py
benzkji/djangocms-baseplugins
7f041a030ed93dcdec70e4ca777b841846b8f2f2
[ "MIT" ]
32
2017-04-04T09:28:06.000Z
2021-08-18T16:23:02.000Z
djangocms_baseplugins/spacer/cms_plugins.py
bnzk/djangocms-baseplugins
7f041a030ed93dcdec70e4ca777b841846b8f2f2
[ "MIT" ]
null
null
null
# coding: utf-8 from cms.plugin_base import CMSPluginBase from cms.plugin_pool import plugin_pool from django import forms from django.utils.translation import ugettext_lazy as _ from djangocms_baseplugins.baseplugin import defaults from djangocms_baseplugins.baseplugin.cms_plugins import BasePluginMixin from djangocm...
29.96875
100
0.788321
112
959
6.526786
0.419643
0.109439
0.098495
0.139535
0
0
0
0
0
0
0
0.001233
0.154327
959
31
101
30.935484
0.900123
0.027112
0
0.090909
0
0
0.041935
0.035484
0
0
0
0
0
1
0
false
0
0.409091
0
0.818182
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
d9ec253823566d98d214c4860b8c8d8ac8c80515
2,188
py
Python
python_utilities/plotting/util.py
sdaxen/python_utilities
7b9d6cc21bfc31be83629d2ac02b27e886ebc2bb
[ "MIT" ]
2
2020-04-13T20:17:36.000Z
2020-05-12T01:13:12.000Z
python_utilities/plotting/util.py
sethaxen/python_utilities
7b9d6cc21bfc31be83629d2ac02b27e886ebc2bb
[ "MIT" ]
5
2015-10-20T22:57:51.000Z
2017-09-07T01:10:23.000Z
python_utilities/plotting/util.py
sethaxen/python_utilities
7b9d6cc21bfc31be83629d2ac02b27e886ebc2bb
[ "MIT" ]
3
2015-08-17T17:55:41.000Z
2018-09-19T13:56:42.000Z
"""Utility functions for plotting. Author: Seth Axen E-mail: seth.axen@gmail.com""" from collections import deque import numpy as np def rgb_to_hsv(rgb): """Convert RGB colors to HSV colors.""" r, g, b = tuple(map(float, rgb)) if any([r > 1, g > 1, b > 1]): r /= 255. g /= 255. b ...
24.863636
74
0.472121
336
2,188
3.017857
0.300595
0.053254
0.008876
0.021696
0.04142
0
0
0
0
0
0
0.078652
0.349177
2,188
87
75
25.149425
0.633427
0.153565
0
0.03125
0
0
0
0
0
0
0
0
0
1
0.09375
false
0
0.03125
0
0.21875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9ec2cc7a1a6ba6f4583fe5b1a6bc53ffc63f837
618
py
Python
tests/test_process.py
confluentinc/utils-core
6001b4c61f7d923d273a23dc5a1580e0fa277d2c
[ "MIT" ]
null
null
null
tests/test_process.py
confluentinc/utils-core
6001b4c61f7d923d273a23dc5a1580e0fa277d2c
[ "MIT" ]
null
null
null
tests/test_process.py
confluentinc/utils-core
6001b4c61f7d923d273a23dc5a1580e0fa277d2c
[ "MIT" ]
1
2021-01-14T11:33:35.000Z
2021-01-14T11:33:35.000Z
import pytest from utils.process import run, silent_run, RunError from utils.fs import in_temp_dir def test_run(capsys): with in_temp_dir(): assert run('echo hello > hello.txt; echo world >> hello.txt', shell=True) out = run('ls', return_output=True) assert out == 'hello.txt\n' ...
24.72
81
0.600324
83
618
4.349398
0.433735
0.088643
0.049862
0.121884
0.166205
0.166205
0
0
0
0
0
0
0.26699
618
24
82
25.75
0.796909
0
0
0
0
0
0.160194
0
0
0
0
0
0.375
1
0.0625
false
0
0.1875
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9ec7fb034397cf9a445f613d02c81768a1461eb
3,410
py
Python
bokeh/client/util.py
areaweb/bokeh
9d131e45d626a912e85aee5b2647139c194dc893
[ "BSD-3-Clause" ]
1
2021-01-31T22:13:13.000Z
2021-01-31T22:13:13.000Z
bokeh/client/util.py
adsbxchange/bokeh
47aa8f8420944c47e876c1c36be182d257c14b87
[ "BSD-3-Clause" ]
1
2017-01-12T00:37:38.000Z
2017-01-12T00:37:38.000Z
bokeh/client/util.py
adsbxchange/bokeh
47aa8f8420944c47e876c1c36be182d257c14b87
[ "BSD-3-Clause" ]
null
null
null
#----------------------------------------------------------------------------- # Copyright (c) 2012 - 2017, Anaconda, Inc. All rights reserved. # # Powered by the Bokeh Development Team. # # The full license is in the file LICENSE.txt, distributed with this software. #---------------------------------------------------...
31.574074
82
0.389443
271
3,410
4.830258
0.383764
0.024446
0.018335
0.016807
0.210848
0.151261
0.097785
0.097785
0.097785
0.097785
0
0.006702
0.168622
3,410
107
83
31.869159
0.455026
0.65044
0
0.185185
0
0
0.123928
0
0
0
0
0
0
1
0.074074
false
0
0.111111
0
0.296296
0.037037
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
d9ed79fef6ca74a4e312f154a876ffa2123179f7
16,276
py
Python
slim/nets/inception_resnet_v2.py
PPTMiao/mtl-ssl
b61449c3f902414304657de6ec217077e441a6b9
[ "Apache-2.0" ]
90
2019-06-12T06:11:39.000Z
2022-03-21T22:28:38.000Z
slim/nets/inception_resnet_v2.py
PPTMiao/mtl-ssl
b61449c3f902414304657de6ec217077e441a6b9
[ "Apache-2.0" ]
3
2020-03-24T17:01:25.000Z
2021-02-02T22:00:11.000Z
slim/nets/inception_resnet_v2.py
PPTMiao/mtl-ssl
b61449c3f902414304657de6ec217077e441a6b9
[ "Apache-2.0" ]
17
2019-06-15T08:49:46.000Z
2022-01-24T06:46:23.000Z
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
45.085873
80
0.616552
2,204
16,276
4.310345
0.158802
0.049474
0.041263
0.056
0.526737
0.469368
0.439368
0.371789
0.352
0.337474
0
0.07204
0.281887
16,276
360
81
45.211111
0.74076
0.232735
0
0.300448
0
0
0.107128
0
0
0
0
0.002778
0
1
0.03139
false
0
0.017937
0
0.076233
0.004484
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9ee27c57dbf76a3c2165139cae647ead0e58c46
6,479
py
Python
tests/boilerplate_client/boilerplate_cmd.py
LedgerHQ/ledger-app-neo3
48e1e0dec3e4801fc3ab1b07c4fe4ed86735a642
[ "MIT" ]
null
null
null
tests/boilerplate_client/boilerplate_cmd.py
LedgerHQ/ledger-app-neo3
48e1e0dec3e4801fc3ab1b07c4fe4ed86735a642
[ "MIT" ]
5
2021-09-13T16:41:52.000Z
2022-01-12T16:00:21.000Z
tests/boilerplate_client/boilerplate_cmd.py
isabella232/app-neo3
c48ec5032143fe606d694372c2cfc02082b2ce03
[ "MIT" ]
3
2021-09-01T11:40:09.000Z
2022-03-06T06:45:13.000Z
import struct from typing import Tuple from ledgercomm import Transport from boilerplate_client.boilerplate_cmd_builder import BoilerplateCommandBuilder, InsType from boilerplate_client.button import Button from boilerplate_client.exception import DeviceException from boilerplate_client.transaction import Transaction...
34.462766
131
0.533416
659
6,479
5.048558
0.174507
0.109107
0.158702
0.072738
0.607454
0.607454
0.581004
0.562369
0.562369
0.495041
0
0.022061
0.384319
6,479
188
132
34.462766
0.811983
0.104491
0
0.565574
0
0
0.003123
0
0
0
0.00694
0
0.016393
1
0.057377
false
0
0.065574
0
0.180328
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9efa4ffda8cacd286187e29ce110d292c7a1e64
946
py
Python
clpy/sparse/util.py
fixstars/clpy
693485f85397cc110fa45803c36c30c24c297df0
[ "BSD-3-Clause" ]
142
2018-06-07T07:43:10.000Z
2021-10-30T21:06:32.000Z
clpy/sparse/util.py
fixstars/clpy
693485f85397cc110fa45803c36c30c24c297df0
[ "BSD-3-Clause" ]
282
2018-06-07T08:35:03.000Z
2021-03-31T03:14:32.000Z
clpy/sparse/util.py
fixstars/clpy
693485f85397cc110fa45803c36c30c24c297df0
[ "BSD-3-Clause" ]
19
2018-06-19T11:07:53.000Z
2021-05-13T20:57:04.000Z
import clpy import clpy.sparse.base _preamble_atomic_add = ''' #if __CUDA_ARCH__ < 600 __device__ double atomicAdd(double* address, double val) { unsigned long long* address_as_ull = (unsigned long long*)address; unsigned long long old = *address_as_ull, assumed; ...
24.25641
76
0.60148
118
946
4.567797
0.449153
0.06679
0.089054
0.085343
0
0
0
0
0
0
0
0.007496
0.294926
946
38
77
24.894737
0.8006
0
0
0.066667
0
0
0.547569
0.113108
0
0
0
0
0
1
0.1
false
0
0.066667
0.033333
0.366667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9efc68d74f0ff6411265258b8ee1094b0fa820e
1,316
py
Python
test/test_cartesian.py
hwazni/discopy
812a4c77de4c766591bad74306720b518cdc54fc
[ "BSD-3-Clause" ]
205
2019-12-29T09:45:09.000Z
2022-03-24T09:29:13.000Z
test/test_cartesian.py
hwazni/discopy
812a4c77de4c766591bad74306720b518cdc54fc
[ "BSD-3-Clause" ]
61
2019-12-11T10:46:38.000Z
2022-03-28T17:10:52.000Z
test/test_cartesian.py
hwazni/discopy
812a4c77de4c766591bad74306720b518cdc54fc
[ "BSD-3-Clause" ]
46
2020-04-08T23:33:31.000Z
2022-03-18T21:58:35.000Z
from pytest import raises from discopy.cartesian import * def test_Box_repr(): f = Box('f', 1, 2, lambda x: (x, x)) assert "Box('f', 1, 2" in repr(f) def test_Function_str(): f = Function(2, 1, lambda x, y: x + y) assert 'Function(dom=2, cod=1,' in str(f) def test_Function_call(): f = Swap(2, ...
25.803922
78
0.595745
221
1,316
3.447964
0.217195
0.073491
0.11811
0.08399
0.423885
0.391076
0.358268
0.358268
0.332021
0.262467
0
0.039039
0.240881
1,316
50
79
26.32
0.723724
0
0
0.333333
0
0
0.027356
0
0
0
0
0
0.222222
1
0.194444
false
0
0.055556
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9f04eac1f39d4c14950ae0caf3dff21f18defd4
84,990
py
Python
source/browseMode.py
neal-hub/nvda-test
4c3a67b2eafa9721c5de3f671d10e60ab2d43865
[ "bzip2-1.0.6" ]
1
2022-02-20T23:10:39.000Z
2022-02-20T23:10:39.000Z
source/browseMode.py
neal-hub/nvda-test
4c3a67b2eafa9721c5de3f671d10e60ab2d43865
[ "bzip2-1.0.6" ]
null
null
null
source/browseMode.py
neal-hub/nvda-test
4c3a67b2eafa9721c5de3f671d10e60ab2d43865
[ "bzip2-1.0.6" ]
null
null
null
# A part of NonVisual Desktop Access (NVDA) # Copyright (C) 2007-2021 NV Access Limited, Babbage B.V., James Teh, Leonard de Ruijter, # Thomas Stivers, Accessolutions, Julien Cochuyt # This file is covered by the GNU General Public License. # See the file COPYING for more details. from typing import Any, Callabl...
44.265625
229
0.740899
10,985
84,990
5.67929
0.117979
0.025005
0.015837
0.019491
0.365092
0.303765
0.279145
0.263516
0.258243
0.249427
0
0.002256
0.181245
84,990
1,919
230
44.288692
0.894289
0.426191
0
0.297735
0
0.000809
0.134236
0.011349
0
0
0
0
0
1
0.072816
false
0.072006
0.032362
0.008091
0.193366
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
d9f0ba759404ab21f8b93c6f40fde8e030bbf8a1
12,904
py
Python
qiskit_metal/qlibrary/qubits/Transmon_Interdigitated.py
PatrickSJacobs/qiskit-metal
9628369c4b880d1e13199e559f898c5e0b96eecb
[ "Apache-2.0" ]
null
null
null
qiskit_metal/qlibrary/qubits/Transmon_Interdigitated.py
PatrickSJacobs/qiskit-metal
9628369c4b880d1e13199e559f898c5e0b96eecb
[ "Apache-2.0" ]
null
null
null
qiskit_metal/qlibrary/qubits/Transmon_Interdigitated.py
PatrickSJacobs/qiskit-metal
9628369c4b880d1e13199e559f898c5e0b96eecb
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM 2017, 2021. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any...
45.43662
93
0.577805
1,763
12,904
4.056154
0.152014
0.014543
0.018878
0.01762
0.420361
0.379108
0.346665
0.312823
0.284016
0.275766
0
0.043438
0.327418
12,904
283
94
45.597173
0.780505
0.376317
0
0.262411
0
0
0.018596
0
0
0
0
0
0
1
0.014184
false
0
0.028369
0
0.070922
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9f1f15178cb9e26d9b4f91695b333a07eaa59d6
74,778
py
Python
sqlova/model/nl2sql/wikisql_models.py
guotong1988/Rule-SQL
e826c0d659c8b35a72b64aa2b50d4d943fdd70f1
[ "Apache-2.0" ]
15
2019-07-25T12:13:31.000Z
2020-10-17T13:42:58.000Z
sqlova/model/nl2sql/wikisql_models.py
guotong1988/Rule-SQL
e826c0d659c8b35a72b64aa2b50d4d943fdd70f1
[ "Apache-2.0" ]
1
2020-01-07T05:49:15.000Z
2020-04-22T01:22:00.000Z
sqlova/model/nl2sql/wikisql_models.py
guotong1988/Rule-SQL
e826c0d659c8b35a72b64aa2b50d4d943fdd70f1
[ "Apache-2.0" ]
3
2019-10-01T09:14:35.000Z
2020-07-18T08:39:48.000Z
# Copyright 2019-present NAVER Corp. # Apache License v2.0 # Wonseok Hwang import os, json from copy import deepcopy from matplotlib.pylab import * import torch import torch.nn as nn import torch.nn.functional as F device = torch.device("cuda" if torch.cuda.is_available() else "cpu") from sqlova.utils.utils impor...
39.419083
161
0.555163
10,973
74,778
3.441903
0.05313
0.039187
0.02187
0.018005
0.766522
0.732075
0.704671
0.683595
0.661115
0.641284
0
0.030277
0.333948
74,778
1,896
162
39.439873
0.728025
0.168378
0
0.597066
0
0
0.006951
0
0
0
0
0
0
1
0.035375
false
0.002588
0.006903
0
0.077653
0
0
0
0
null
0
0
0
0
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
d9f2ed71da13f5b57b61c1c386731f8180c40992
667
py
Python
www/app.py
leeeGreat/xlw_study_python
03d8eb59f6826b4689d6598ede6393ecbb5058fb
[ "MIT" ]
1
2018-03-12T12:29:21.000Z
2018-03-12T12:29:21.000Z
www/app.py
leeeGreat/xlw_study_python
03d8eb59f6826b4689d6598ede6393ecbb5058fb
[ "MIT" ]
null
null
null
www/app.py
leeeGreat/xlw_study_python
03d8eb59f6826b4689d6598ede6393ecbb5058fb
[ "MIT" ]
1
2018-04-13T13:26:50.000Z
2018-04-13T13:26:50.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = 'Michael Liao' ''' async web application. ''' import logging; logging.basicConfig(level=logging.INFO) import asyncio, os, json, time from datetime import datetime from aiohttp import web def index(request): return web.Response(body=b'<h1>Awesome</h1>...
22.233333
73
0.698651
99
667
4.585859
0.59596
0.052863
0.022026
0.026432
0.044053
0
0
0
0
0
0
0.041885
0.14093
667
29
74
23
0.750436
0.064468
0
0
0
0
0.140203
0
0
0
0
0
0
1
0.0625
false
0
0.25
0.0625
0.4375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9f306cc03073671d285f885169a3fe6dd743eef
684
py
Python
examples/Testing/flopy3_plotdata.py
ritchie46/flopy
8e7284dcb3aaf5c12293d442248c2c2d9959f835
[ "CC0-1.0", "BSD-3-Clause" ]
1
2021-03-17T09:15:54.000Z
2021-03-17T09:15:54.000Z
examples/Testing/flopy3_plotdata.py
ritchie46/flopy
8e7284dcb3aaf5c12293d442248c2c2d9959f835
[ "CC0-1.0", "BSD-3-Clause" ]
null
null
null
examples/Testing/flopy3_plotdata.py
ritchie46/flopy
8e7284dcb3aaf5c12293d442248c2c2d9959f835
[ "CC0-1.0", "BSD-3-Clause" ]
1
2021-08-05T19:11:27.000Z
2021-08-05T19:11:27.000Z
from __future__ import print_function import os import numpy as np import matplotlib.pyplot as plt import flopy fb = flopy.modflow.Modflow.load('freyberg', version='mf2005', model_ws=os.path.join('..', 'data', 'freyberg'), verbose=True) dis = fb.dis top = fb.dis.top fb.dis.top.plot(grid=True, colorbar=True) fb.d...
20.727273
124
0.71345
121
684
3.966942
0.421488
0.083333
0.066667
0.041667
0.466667
0.410417
0.245833
0
0
0
0
0.019704
0.109649
684
33
125
20.727273
0.768473
0
0
0.238095
0
0
0.091971
0
0
0
0
0
0
1
0
false
0
0.238095
0
0.238095
0.095238
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9f32d2b9e677d6893c7269bf23bcedaa4e7f68a
363
py
Python
chia/components/sample_transformers/__init__.py
cabrust/chia
3eaf815b261dc8a85d64fd698e0079515ec0dde9
[ "BSD-3-Clause" ]
null
null
null
chia/components/sample_transformers/__init__.py
cabrust/chia
3eaf815b261dc8a85d64fd698e0079515ec0dde9
[ "BSD-3-Clause" ]
2
2021-10-06T13:19:09.000Z
2021-10-20T17:32:36.000Z
chia/components/sample_transformers/__init__.py
cabrust/chia
3eaf815b261dc8a85d64fd698e0079515ec0dde9
[ "BSD-3-Clause" ]
null
null
null
from chia import components from chia.components.sample_transformers import identity from chia.components.sample_transformers.sample_transformer import SampleTransformer class SampleTransformerFactory(components.Factory): name_to_class_mapping = {"identity": identity.IdentitySampleTransformer} __all__ = ["Sampl...
33
84
0.85124
34
363
8.794118
0.5
0.080268
0.120401
0.160535
0.240803
0
0
0
0
0
0
0
0.082645
363
10
85
36.3
0.897898
0
0
0
0
0
0.134986
0.066116
0
0
0
0
0
1
0
false
0
0.5
0
0.833333
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
1
0
1
0
0
3
d9f3cb72d610ec30e4ecf05d60ba2025dc849112
416
py
Python
3/3.6/add_guest.py
singi2016cn/python-scaffold
274e508d1919da67e599aa73be139800c043bce4
[ "MIT" ]
null
null
null
3/3.6/add_guest.py
singi2016cn/python-scaffold
274e508d1919da67e599aa73be139800c043bce4
[ "MIT" ]
null
null
null
3/3.6/add_guest.py
singi2016cn/python-scaffold
274e508d1919da67e599aa73be139800c043bce4
[ "MIT" ]
null
null
null
# 添加嘉宾 names = [] names.append('singi') names.append('lily') names.append('sam') print('I find a big dining-table,I can invite more friends.') names.insert(0, 'xiaoling') names.insert(2, 'fangsi') names.append('zhangqing') greets = ',would you like to have dinner with me ?' print(names[0]+greets) print(names[1]+gre...
20.8
61
0.711538
67
416
4.41791
0.537313
0.202703
0.27027
0
0
0
0
0
0
0
0
0.02139
0.100962
416
20
62
20.8
0.770053
0.009615
0
0
0
0
0.309002
0
0
0
0
0
0
1
0
false
0
0
0
0
0.466667
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
3
d9f53b3bd4af7f2d655423b3e5a97d903f5c6dac
2,025
py
Python
apps/pypi/tests/test_slurper.py
cartwheelweb/packaginator
f6ce11da22154bce9cba42e896989bdb0fd5e865
[ "MIT" ]
1
2015-11-08T11:31:09.000Z
2015-11-08T11:31:09.000Z
apps/pypi/tests/test_slurper.py
cartwheelweb/packaginator
f6ce11da22154bce9cba42e896989bdb0fd5e865
[ "MIT" ]
null
null
null
apps/pypi/tests/test_slurper.py
cartwheelweb/packaginator
f6ce11da22154bce9cba42e896989bdb0fd5e865
[ "MIT" ]
null
null
null
from django.template.defaultfilters import slugify from django.test import TestCase from package.models import Package, Version from pypi.slurper import Slurper TEST_PACKAGE_NAME = 'Django' TEST_PACKAGE_VERSION = '1.3' TEST_PACKAGE_REPO_NAME = 'django-uni-form' class SlurpAllTests(TestCase): def tes...
39.705882
89
0.718025
244
2,025
5.602459
0.20082
0.160936
0.109729
0.13899
0.663497
0.625457
0.602048
0.602048
0.530358
0.530358
0
0.003766
0.213333
2,025
51
90
39.705882
0.854363
0.039506
0
0.352941
0
0
0.012352
0
0
0
0
0
0.294118
1
0.117647
false
0
0.117647
0
0.264706
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9f57949a15383ed2a070813678af904fe2e2df0
1,145
py
Python
azure-mgmt-logic/azure/mgmt/logic/models/recurrence_schedule_occurrence.py
azuresdkci1x/azure-sdk-for-python-1722
e08fa6606543ce0f35b93133dbb78490f8e6bcc9
[ "MIT" ]
1
2017-10-29T15:14:35.000Z
2017-10-29T15:14:35.000Z
azure-mgmt-logic/azure/mgmt/logic/models/recurrence_schedule_occurrence.py
azuresdkci1x/azure-sdk-for-python-1722
e08fa6606543ce0f35b93133dbb78490f8e6bcc9
[ "MIT" ]
null
null
null
azure-mgmt-logic/azure/mgmt/logic/models/recurrence_schedule_occurrence.py
azuresdkci1x/azure-sdk-for-python-1722
e08fa6606543ce0f35b93133dbb78490f8e6bcc9
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
34.69697
76
0.590393
116
1,145
5.775862
0.672414
0.041791
0
0
0
0
0
0
0
0
0
0.001056
0.172926
1,145
32
77
35.78125
0.706441
0.655022
0
0
0
0
0.146479
0
0
0
0
0
0
1
0.111111
false
0
0.111111
0
0.444444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9f6bdae288edaa527af57b654eafa00cfa5047b
11,757
py
Python
pandas/core/apply.py
AakankshaAshok/pandas
6498bc1e8a12003640139db4794bd5cd2462c116
[ "BSD-3-Clause" ]
null
null
null
pandas/core/apply.py
AakankshaAshok/pandas
6498bc1e8a12003640139db4794bd5cd2462c116
[ "BSD-3-Clause" ]
null
null
null
pandas/core/apply.py
AakankshaAshok/pandas
6498bc1e8a12003640139db4794bd5cd2462c116
[ "BSD-3-Clause" ]
null
null
null
import inspect import numpy as np from pandas._libs import reduction as libreduction from pandas.util._decorators import cache_readonly from pandas.core.dtypes.common import ( is_dict_like, is_extension_array_dtype, is_list_like, is_sequence, ) from pandas.core.dtypes.generic import ABCSeries def f...
28.745721
88
0.575572
1,409
11,757
4.676366
0.176721
0.030809
0.027622
0.01548
0.222492
0.148733
0.108059
0.078009
0.06435
0.048262
0
0.003227
0.340988
11,757
408
89
28.816176
0.847186
0.150549
0
0.328244
0
0
0.025836
0
0
0
0
0.002451
0
1
0.099237
false
0.01145
0.030534
0.045802
0.28626
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9f7ffc0611459c276e6f9ae99c70b7e8ba1a1c3
707
py
Python
tests/test_model/test_recognizer/test_shufflenetv1.py
YinAoXiong/ZCls
8aeea3640f8456937db35d043e37cf2c03ac9017
[ "Apache-2.0" ]
null
null
null
tests/test_model/test_recognizer/test_shufflenetv1.py
YinAoXiong/ZCls
8aeea3640f8456937db35d043e37cf2c03ac9017
[ "Apache-2.0" ]
null
null
null
tests/test_model/test_recognizer/test_shufflenetv1.py
YinAoXiong/ZCls
8aeea3640f8456937db35d043e37cf2c03ac9017
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ @date: 2021/5/16 下午10:22 @file: test_shufflenetv1.py @author: zj @description: """ import torch from zcls.config import cfg from zcls.config.key_word import KEY_OUTPUT from zcls.model.recognizers.build import build_recognizer def test_data(model): data = torch.randn(1, 3, 224, 224)...
19.638889
98
0.711457
99
707
4.828283
0.535354
0.050209
0.058577
0
0
0
0
0
0
0
0
0.053872
0.15983
707
35
99
20.2
0.750842
0.144272
0
0
0
0
0.137353
0.118928
0
0
0
0
0.058824
1
0.117647
false
0
0.235294
0
0.352941
0.176471
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9f8dcb19533a96faaad26bde1b0790a5c363c97
142,263
py
Python
autotest/gcore/vsis3.py
jpapadakis/gdal
f07aa15fd65af36b04291303cc6834c87f662814
[ "MIT" ]
18
2021-01-27T00:07:35.000Z
2022-03-25T22:20:13.000Z
autotest/gcore/vsis3.py
jpapadakis/gdal
f07aa15fd65af36b04291303cc6834c87f662814
[ "MIT" ]
1
2015-04-14T00:19:57.000Z
2015-04-14T00:29:29.000Z
autotest/gcore/vsis3.py
jpapadakis/gdal
f07aa15fd65af36b04291303cc6834c87f662814
[ "MIT" ]
1
2021-11-21T02:33:51.000Z
2021-11-21T02:33:51.000Z
#!/usr/bin/env pytest ############################################################################### # $Id$ # # Project: GDAL/OGR Test Suite # Purpose: Test /vsis3 # Author: Even Rouault <even dot rouault at spatialys dot com> # ############################################################################### # Copy...
40.974366
335
0.610749
16,318
142,263
5.142971
0.04351
0.025261
0.020447
0.035461
0.893867
0.873872
0.856726
0.826603
0.807776
0.782837
0
0.038421
0.23214
142,263
3,471
336
40.986171
0.729838
0.044319
0
0.765104
0
0.014787
0.315852
0.162256
0
0
0
0
0.107309
1
0.038445
false
0
0.00338
0
0.064639
0.002112
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
d9f92ab910680bac296e7b003e06e2747df83ea4
882
py
Python
day06/part1.py
bugra-yilmaz/adventofcode2021
136cb1d4fba42af4eea934a73714c93710c8741e
[ "MIT" ]
null
null
null
day06/part1.py
bugra-yilmaz/adventofcode2021
136cb1d4fba42af4eea934a73714c93710c8741e
[ "MIT" ]
null
null
null
day06/part1.py
bugra-yilmaz/adventofcode2021
136cb1d4fba42af4eea934a73714c93710c8741e
[ "MIT" ]
null
null
null
import os.path from collections import Counter import pytest INPUT_TXT = os.path.join(os.path.dirname(__file__), 'input.txt') def compute(s: str) -> int: lines = s.splitlines() numbers = Counter(int(f) for f in lines[0].split(",")) for d in range(80): numbers2 = Counter({8: numbers[0], 6: numbe...
18.765957
64
0.580499
123
882
4.00813
0.479675
0.060852
0.085193
0.068966
0
0
0
0
0
0
0
0.033588
0.25737
882
46
65
19.173913
0.719084
0
0
0
0
0
0.052154
0
0
0
0
0
0.03125
1
0.09375
false
0
0.09375
0
0.25
0.03125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9f9595b5ef66170be57096ea8261b3da13883ac
132
py
Python
functional_tests.py
gustavomazevedo/tbackup-client
eb2fdf75eff7abf17c9bce12920de793ba760f61
[ "MIT" ]
null
null
null
functional_tests.py
gustavomazevedo/tbackup-client
eb2fdf75eff7abf17c9bce12920de793ba760f61
[ "MIT" ]
null
null
null
functional_tests.py
gustavomazevedo/tbackup-client
eb2fdf75eff7abf17c9bce12920de793ba760f61
[ "MIT" ]
null
null
null
from selenium import webdriver browser = webdriver.Firefox() browser.get('http://localhost:8000') assert 'Django' in browser.title
22
36
0.780303
17
132
6.058824
0.823529
0
0
0
0
0
0
0
0
0
0
0.033613
0.098485
132
6
37
22
0.831933
0
0
0
0
0
0.203008
0
0
0
0
0
0.25
1
0
false
0
0.25
0
0.25
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
d9f9cd4e7a0b73e79eb71d2bdbfa755d69a9cc9d
597
py
Python
examples/first_char_last_column.py
clarkfitzg/sta141c
129704ba0952a4b80f9b093dcfa49f49f37b052d
[ "MIT" ]
24
2019-01-08T20:10:11.000Z
2021-11-26T12:18:58.000Z
examples/first_char_last_column.py
timilchene/sta141c-winter19
129704ba0952a4b80f9b093dcfa49f49f37b052d
[ "MIT" ]
1
2017-06-25T05:35:24.000Z
2017-06-25T05:35:24.000Z
examples/first_char_last_column.py
timilchene/sta141c-winter19
129704ba0952a4b80f9b093dcfa49f49f37b052d
[ "MIT" ]
22
2019-01-08T20:02:15.000Z
2021-12-16T23:27:56.000Z
#!/usr/bin/env python3 """ For the last column, print only the first character. Usage: $ printf "100,200\n0,\n" | python3 first_char_last_column.py Should print "100,2\n0," """ import csv from sys import stdin, stdout def main(): reader = csv.reader(stdin) writer = csv.writer(stdout) for row in re...
19.258065
64
0.606365
79
597
4.443038
0.696203
0.05698
0
0
0
0
0
0
0
0
0
0.03972
0.283082
597
30
65
19.9
0.780374
0.425461
0
0
0
0
0.024242
0
0
0
0
0
0
1
0.076923
false
0.076923
0.153846
0
0.230769
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
d9fb744315858b3e553e097f0866c6de49262adf
1,996
py
Python
env_ci.py
reloadware/stickybeak
8ac52a80849a3098fb6b2f47115970a734a73c14
[ "Apache-2.0" ]
null
null
null
env_ci.py
reloadware/stickybeak
8ac52a80849a3098fb6b2f47115970a734a73c14
[ "Apache-2.0" ]
null
null
null
env_ci.py
reloadware/stickybeak
8ac52a80849a3098fb6b2f47115970a734a73c14
[ "Apache-2.0" ]
1
2022-01-01T15:14:42.000Z
2022-01-01T15:14:42.000Z
from pathlib import Path root = Path(__file__).parent.absolute() import envo envo.add_source_roots([root]) from pathlib import Path from typing import Any, Dict, List, Optional, Tuple from envo import Env, Namespace, env_var, logger, run from env_comm import StickybeakCommEnv as ParentEnv p = Namespace("p") cl...
22.942529
117
0.613727
251
1,996
4.752988
0.36255
0.067058
0.092205
0.03772
0.093881
0.093881
0.053646
0.053646
0
0
0
0.002003
0.249499
1,996
86
118
23.209302
0.793725
0.051102
0
0.298246
0
0
0.130619
0.038604
0
0
0
0
0
1
0.192982
false
0.087719
0.122807
0
0.385965
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
d9fb745b63e853aa5e221b1f87db67c0723efc2d
394
py
Python
zmq_srv.py
iyedb/boost_asio_zeromq
63110c18540c8303ac29d574f25cba234a00a22d
[ "MIT" ]
4
2015-04-07T06:00:34.000Z
2019-09-10T01:45:41.000Z
zmq_srv.py
iyedb/boost_asio_zeromq
63110c18540c8303ac29d574f25cba234a00a22d
[ "MIT" ]
null
null
null
zmq_srv.py
iyedb/boost_asio_zeromq
63110c18540c8303ac29d574f25cba234a00a22d
[ "MIT" ]
3
2015-06-30T07:37:41.000Z
2019-09-10T01:45:47.000Z
from __future__ import print_function import zmq import time ADDR='tcp://127.0.0.1:11155' ctx = zmq.Context() srv = ctx.socket(zmq.REP) srv.bind(ADDR) #srv.setsockopt(zmq.RCVTIMEO, 3000); while True: try: msg = srv.recv() except Exception as e: print('zmq socket revc timedout:', e) else: print('cl...
17.130435
41
0.659898
62
394
4.112903
0.677419
0.047059
0
0
0
0
0
0
0
0
0
0.050314
0.192893
394
22
42
17.909091
0.751572
0.088832
0
0
0
0
0.209497
0.058659
0
0
0
0
0
1
0
false
0
0.1875
0
0.1875
0.1875
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9fdf7b2da8d5e9203d4272f61f62e3af6000e66
10,408
py
Python
mypy/server/aststrip.py
mmaryada27/mypy
39103273d705fe45a55c4879779a0d5567f01876
[ "PSF-2.0" ]
null
null
null
mypy/server/aststrip.py
mmaryada27/mypy
39103273d705fe45a55c4879779a0d5567f01876
[ "PSF-2.0" ]
null
null
null
mypy/server/aststrip.py
mmaryada27/mypy
39103273d705fe45a55c4879779a0d5567f01876
[ "PSF-2.0" ]
null
null
null
"""Strip/reset AST in-place to match state after semantic analysis pass 1. Fine-grained incremental mode reruns semantic analysis (passes 2 and 3) and type checking for *existing* AST nodes (targets) when changes are propagated using fine-grained dependencies. AST nodes attributes are often changed during semantic an...
41.13834
95
0.662952
1,391
10,408
4.83537
0.24371
0.016652
0.019625
0.017841
0.241005
0.195956
0.163247
0.154326
0.14273
0.128159
0
0.002363
0.267967
10,408
252
96
41.301587
0.880431
0.359531
0
0.344371
0
0
0.00682
0
0
0
0
0.007937
0.013245
1
0.145695
false
0
0.092715
0
0.291391
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9fe5aa1f8632d451d56260ea6fb9079bd975a31
475
py
Python
bsp/nrf5x/tools/sdk_dist.py
BreederBai/rt-thread
53ed0314982556dfa9c5db75d4f3e02485d16ab5
[ "Apache-2.0" ]
7,482
2015-01-01T09:23:08.000Z
2022-03-31T19:34:05.000Z
bsp/nrf5x/tools/sdk_dist.py
ArdaFu/rt-thread
eebb2561ec166e0016187c7b7998ada4f8212b3a
[ "Apache-2.0" ]
2,543
2015-01-09T02:01:34.000Z
2022-03-31T23:10:14.000Z
bsp/nrf5x/tools/sdk_dist.py
ArdaFu/rt-thread
eebb2561ec166e0016187c7b7998ada4f8212b3a
[ "Apache-2.0" ]
4,645
2015-01-06T07:05:31.000Z
2022-03-31T18:21:50.000Z
import os import sys import shutil cwd_path = os.getcwd() sys.path.append(os.path.join(os.path.dirname(cwd_path), 'rt-thread', 'tools')) # BSP dist function def dist_do_building(BSP_ROOT, dist_dir): from mkdist import bsp_copy_files import rtconfig library_dir = os.path.join(dist_dir, 'libraries') p...
26.388889
78
0.734737
74
475
4.5
0.405405
0.09009
0.09009
0.072072
0.138138
0.138138
0
0
0
0
0
0.004926
0.145263
475
17
79
27.941176
0.815271
0.035789
0
0
0
0
0.129386
0
0
0
0
0
0
1
0.083333
false
0
0.416667
0
0.5
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
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
d9fe6882b9e62ad1b9764fdded272caab1b5cf79
9,991
py
Python
lib/spack/spack/multimethod.py
kkauder/spack
6ae8d5c380c1f42094b05d38be26b03650aafb39
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2020-09-10T22:50:08.000Z
2021-01-12T22:18:54.000Z
lib/spack/spack/multimethod.py
kkauder/spack
6ae8d5c380c1f42094b05d38be26b03650aafb39
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
17
2019-03-21T15:54:00.000Z
2022-03-29T19:34:28.000Z
lib/spack/spack/multimethod.py
kkauder/spack
6ae8d5c380c1f42094b05d38be26b03650aafb39
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2018-04-06T09:04:11.000Z
2020-01-24T12:52:12.000Z
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) """This module contains utilities for using multi-methods in spack. You can think of multi-methods like overloaded methods...
38.875486
77
0.651887
1,302
9,991
4.87404
0.268817
0.008667
0.007879
0.013237
0.102584
0.075796
0.058935
0.041286
0.011031
0.011031
0
0.005444
0.282955
9,991
256
78
39.027344
0.880374
0.57772
0
0.025
0
0
0.020088
0
0
0
0
0
0.0125
1
0.1375
false
0
0.075
0
0.3875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9fe73cee8f0ad5d98f81eb365b256cba7970cbe
13,093
gyp
Python
third_party/protobuf/protobuf.gyp
meego-tablet-ux/meego-app-browser
0f4ef17bd4b399c9c990a2f6ca939099495c2b9c
[ "BSD-3-Clause" ]
1
2015-10-12T09:14:22.000Z
2015-10-12T09:14:22.000Z
third_party/protobuf/protobuf.gyp
meego-tablet-ux/meego-app-browser
0f4ef17bd4b399c9c990a2f6ca939099495c2b9c
[ "BSD-3-Clause" ]
null
null
null
third_party/protobuf/protobuf.gyp
meego-tablet-ux/meego-app-browser
0f4ef17bd4b399c9c990a2f6ca939099495c2b9c
[ "BSD-3-Clause" ]
1
2020-11-04T07:22:28.000Z
2020-11-04T07:22:28.000Z
# Copyright (c) 2009 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. { 'conditions': [ ['OS!="win"', { 'variables': { 'config_h_dir': '.', # crafted for gcc/linux. }, }, { # else, ...
41.302839
81
0.621554
1,560
13,093
5.064103
0.186538
0.269367
0.273291
0.196203
0.700127
0.478734
0.360633
0.256582
0.064937
0.025949
0
0.002701
0.236462
13,093
316
82
41.433544
0.787536
0.21523
0
0.218107
0
0
0.677521
0.62348
0
0
0
0.003165
0
1
0
true
0
0.00823
0
0.00823
0.00823
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
null
0
0
0
0
0
0
1
0
0
0
0
0
0
6
d9ff0e5cd63921d7a1a7f3f682d268671ab38688
834
py
Python
main.py
Yash-s-Code-Camp/Python-Day-4
887c4e172905b2b0dea493a3c9c1f61e403556fc
[ "MIT" ]
null
null
null
main.py
Yash-s-Code-Camp/Python-Day-4
887c4e172905b2b0dea493a3c9c1f61e403556fc
[ "MIT" ]
null
null
null
main.py
Yash-s-Code-Camp/Python-Day-4
887c4e172905b2b0dea493a3c9c1f61e403556fc
[ "MIT" ]
null
null
null
# def mul(a): # return lambda b:b*a # singler = mul(1) # addition = lambda b:b*1 # doubler = mul(2) # addition = lambda b:b*2 # tripler = mul(3) # addition = lambda b:b*3 # print(doubler(7)) # 7*2 = 14 # print(tripler(7)) # 7*3 = 21 # print(singler(7)) # 7*1 = 7 class Student: def __init__(self, fna...
17.020408
47
0.603118
128
834
3.804688
0.34375
0.057495
0.065708
0.098563
0
0
0
0
0
0
0
0.089368
0.221823
834
48
48
17.375
0.661017
0.423261
0
0
0
0
0.111597
0
0
0
0
0
0
1
0.222222
false
0
0
0.111111
0.444444
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
2
8a00049d0a23118a6b45ced9a50bf455984aaa3c
8,974
py
Python
paperstream/create_diary.py
MarcoRosso/paperstream
f8d5485ea337334b036393f9566b74394b5dd234
[ "MIT" ]
null
null
null
paperstream/create_diary.py
MarcoRosso/paperstream
f8d5485ea337334b036393f9566b74394b5dd234
[ "MIT" ]
null
null
null
paperstream/create_diary.py
MarcoRosso/paperstream
f8d5485ea337334b036393f9566b74394b5dd234
[ "MIT" ]
null
null
null
""" Create diaries in A5 and A4 sizes based on PDF templates. Julio Vega """ import datetime import math import sys from io import BytesIO from pathlib import Path from PyPDF2 import PdfFileReader, PdfFileWriter from reportlab.lib.pagesizes import A5, A4 from reportlab.lib.utils import ImageReader from reportlab.pdfb...
33.864151
97
0.613885
1,121
8,974
4.723461
0.257806
0.020397
0.014731
0.014353
0.109726
0.043626
0.029084
0.016997
0.016997
0.016997
0
0.018318
0.20916
8,974
265
98
33.864151
0.727772
0.17651
0
0.074324
0
0
0.046234
0.008879
0
0
0
0
0
1
0.087838
false
0.006757
0.074324
0
0.243243
0.02027
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8a009f467895ff4a7817d2ca2bfbdacdd183cb58
2,459
py
Python
wextractor/extractors/csv_extractor.py
codeforamerica/w-drive-extractor
1c62bfff6fc21c4cce4a4409b76355ec4e07daae
[ "MIT" ]
3
2015-01-14T06:27:16.000Z
2015-02-26T23:39:39.000Z
wextractor/extractors/csv_extractor.py
codeforamerica/w-drive-extractor
1c62bfff6fc21c4cce4a4409b76355ec4e07daae
[ "MIT" ]
8
2015-01-15T17:50:30.000Z
2015-05-12T17:09:04.000Z
wextractor/extractors/csv_extractor.py
codeforamerica/w-drive-extractor
1c62bfff6fc21c4cce4a4409b76355ec4e07daae
[ "MIT" ]
4
2015-01-14T15:20:49.000Z
2021-04-16T10:45:22.000Z
#!/usr/bin/env python import urllib2 import httplib from urlparse import urlparse import csv from wextractor.extractors.extractor import Extractor class CsvExtractor(Extractor): def __init__(self, target, header=None, dtypes=None, url=None): ''' CsvExtractor initializes with an optional url flag ...
34.152778
118
0.604311
308
2,459
4.737013
0.467532
0.038382
0.027416
0.039753
0.031528
0.031528
0
0
0
0
0
0.012528
0.285889
2,459
71
119
34.633803
0.818337
0.220415
0
0.065217
0
0
0.041689
0
0
0
0
0
0
1
0.065217
false
0
0.108696
0
0.23913
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8a01b2b39f8bda22480b43b79a5034c95f31f8f0
9,010
py
Python
pyscf/geomopt/berny_solver.py
r-peng/pyscf
9a14f9bcc63bc75f5939cb4d00eb47861d8d8989
[ "Apache-2.0" ]
2
2021-06-30T22:33:35.000Z
2021-11-22T18:02:36.000Z
pyscf/geomopt/berny_solver.py
r-peng/pyscf
9a14f9bcc63bc75f5939cb4d00eb47861d8d8989
[ "Apache-2.0" ]
null
null
null
pyscf/geomopt/berny_solver.py
r-peng/pyscf
9a14f9bcc63bc75f5939cb4d00eb47861d8d8989
[ "Apache-2.0" ]
2
2021-09-16T23:37:42.000Z
2021-10-14T23:00:39.000Z
#!/usr/bin/env python # Copyright 2014-2019 The PySCF Developers. 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 # # U...
34.787645
91
0.642619
1,204
9,010
4.687708
0.274917
0.034018
0.007442
0.007087
0.245571
0.220943
0.193125
0.167789
0.148476
0.123671
0
0.038166
0.249723
9,010
258
92
34.922481
0.796746
0.287569
0
0.069182
0
0
0.131452
0.014588
0
0
0
0
0.037736
1
0.062893
false
0
0.081761
0.006289
0.213836
0.012579
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8a01ccf4f5933cd1046863655e9835118928c6fc
1,838
py
Python
src/main/python/taf/foundation/api/ui/aut.py
WesleyPeng/uiXautomation
2d2c4d5a774ffda934d5615036a80c449bac930d
[ "Apache-2.0" ]
6
2017-09-19T15:05:47.000Z
2021-07-16T16:07:46.000Z
src/main/python/taf/foundation/api/ui/aut.py
WesleyPeng/uiXautomation
2d2c4d5a774ffda934d5615036a80c449bac930d
[ "Apache-2.0" ]
1
2018-06-02T18:45:51.000Z
2018-06-02T18:45:51.000Z
src/main/python/taf/foundation/api/ui/aut.py
WesleyPeng/uiXautomation
2d2c4d5a774ffda934d5615036a80c449bac930d
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2017-2018 {Flair Inc.} WESLEY PENG # # 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 agre...
25.887324
74
0.62568
220
1,838
5.154545
0.477273
0.05291
0.042328
0.028219
0.037037
0
0
0
0
0
0
0.009238
0.293254
1,838
70
75
26.257143
0.863741
0.307943
0
0.119048
0
0
0.054054
0
0
0
0
0
0
1
0.166667
false
0
0.02381
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8a02d8606a3a24d720ef5682953d80e75a8dcabc
1,758
py
Python
algo/vigenere.py
dkushche/Crypto
75919d6df2084aee1de76c9999ac4e361c4efd48
[ "MIT" ]
3
2020-05-07T22:03:48.000Z
2021-03-11T16:36:56.000Z
algo/vigenere.py
dkushche/Crypto
75919d6df2084aee1de76c9999ac4e361c4efd48
[ "MIT" ]
null
null
null
algo/vigenere.py
dkushche/Crypto
75919d6df2084aee1de76c9999ac4e361c4efd48
[ "MIT" ]
null
null
null
import crypto_tools from itertools import cycle def vigenere_little_doc(): return "encrypt/decrypt using vigenere cypher" def vigenere_full_doc(): return """ Advanced caesar we change dict on each char """ def vigenere_str_to_list(string, vigenere_dict): result = list() for char in string:...
30.310345
78
0.660978
236
1,758
4.669492
0.326271
0.069873
0.046279
0.046279
0.137931
0.137931
0.137931
0.058076
0.058076
0.058076
0
0
0.236064
1,758
57
79
30.842105
0.820551
0
0
0
0
0
0.147327
0
0
0
0
0
0
1
0.111111
false
0
0.044444
0.044444
0.266667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8a03248b6fead646cb68e7a6a935435de664969c
14,492
py
Python
anaconda-mode/0.1.13/jedi-0.15.1-py3.7.egg/jedi/evaluate/base_context.py
space-scl/emacs.d
6285c38714023b72a023fe24cbcb5e4fcdcdb949
[ "Apache-2.0" ]
4
2019-07-26T11:32:22.000Z
2019-09-11T05:34:59.000Z
anaconda-mode/0.1.13/jedi-0.15.1-py3.7.egg/jedi/evaluate/base_context.py
space-scl/emacs.d
6285c38714023b72a023fe24cbcb5e4fcdcdb949
[ "Apache-2.0" ]
10
2020-05-11T20:29:28.000Z
2022-01-13T01:41:27.000Z
anaconda-mode/0.1.13/jedi-0.15.1-py3.7.egg/jedi/evaluate/base_context.py
space-scl/emacs.d
6285c38714023b72a023fe24cbcb5e4fcdcdb949
[ "Apache-2.0" ]
2
2019-08-28T14:57:54.000Z
2019-11-26T16:18:30.000Z
""" Contexts are the "values" that Python would return. However Contexts are at the same time also the "contexts" that a user is currently sitting in. A ContextSet is typically used to specify the return of a function or any other static analysis operation. In jedi there are always multiple returns and not just one. "...
33.162471
94
0.637524
1,718
14,492
5.089639
0.185681
0.030878
0.021958
0.011436
0.237077
0.180009
0.141468
0.087374
0.064959
0.042543
0
0.001151
0.280638
14,492
436
95
33.238532
0.837602
0.110199
0
0.248322
0
0
0.045142
0.004025
0
0
0
0.006881
0.003356
1
0.204698
false
0.010067
0.067114
0.110738
0.526846
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
8a036923cf292987a326de518f02ae1d70e60da4
974
py
Python
kiwi_scp/commands/cmd_cmd.py
yavook/kiwi-scp
ca4263d913cfbdedc8b14334e3cad61c3b95f0a7
[ "MIT" ]
null
null
null
kiwi_scp/commands/cmd_cmd.py
yavook/kiwi-scp
ca4263d913cfbdedc8b14334e3cad61c3b95f0a7
[ "MIT" ]
null
null
null
kiwi_scp/commands/cmd_cmd.py
yavook/kiwi-scp
ca4263d913cfbdedc8b14334e3cad61c3b95f0a7
[ "MIT" ]
null
null
null
from typing import Tuple import click from .cmd import KiwiCommandType, KiwiCommand from .decorators import kiwi_command from ..executable import COMPOSE_EXE from ..instance import Instance from ..project import Project @click.argument( "compose_args", metavar="[ARG]...", nargs=-1, ) @click.argument( ...
26.324324
91
0.708419
116
974
5.793103
0.482759
0.049107
0.059524
0
0
0
0
0
0
0
0
0.001267
0.189938
974
36
92
27.055556
0.850444
0.129363
0
0.074074
0
0
0.102259
0.026159
0
0
0
0
0
1
0.037037
false
0
0.259259
0
0.407407
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8a036ee66041ffdf97db3dd3911676a6d37fc888
4,339
py
Python
homework/Testing with Examples (Network)/impl_fail-add_relation-does_not_fail_when_person1_is_non_existent.py
rvprasad/software-testing-course
3803851dcf9f7bbd0f0b89fca6c9c5e3a48f22e0
[ "CC-BY-4.0" ]
11
2018-02-08T05:23:28.000Z
2021-05-24T13:23:56.000Z
homework/Testing with Examples (Network)/impl_fail-add_relation-does_not_fail_when_person1_is_non_existent.py
rvprasad/software-testing-course
3803851dcf9f7bbd0f0b89fca6c9c5e3a48f22e0
[ "CC-BY-4.0" ]
null
null
null
homework/Testing with Examples (Network)/impl_fail-add_relation-does_not_fail_when_person1_is_non_existent.py
rvprasad/software-testing-course
3803851dcf9f7bbd0f0b89fca6c9c5e3a48f22e0
[ "CC-BY-4.0" ]
2
2020-09-15T08:51:22.000Z
2021-01-26T12:07:18.000Z
class MyError(Exception): pass class PropertyContainer(object): def __init__(self): self.props = {} def set_property(self, prop, value): self.props[prop] = value def get_property(self, prop): return self.props.get(prop) def has_property(self, prop...
34.991935
76
0.569717
533
4,339
4.536585
0.178236
0.022333
0.037221
0.028122
0.295285
0.24483
0.174938
0.163772
0.163772
0.163772
0
0.017662
0.347546
4,339
123
77
35.276423
0.836454
0.144042
0
0.202247
0
0
0.061418
0
0
0
0
0
0
1
0.134831
false
0.022472
0
0.022472
0.280899
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8a03ced3330b9102f19e53ae0f85a628054986d1
36
py
Python
tools/__init__.py
BranKein/Flask-template
3d8f43b3c44163e855c727de2a0dfe37d3b788f9
[ "MIT" ]
null
null
null
tools/__init__.py
BranKein/Flask-template
3d8f43b3c44163e855c727de2a0dfe37d3b788f9
[ "MIT" ]
null
null
null
tools/__init__.py
BranKein/Flask-template
3d8f43b3c44163e855c727de2a0dfe37d3b788f9
[ "MIT" ]
null
null
null
from . import ip __all__ = ['ip']
7.2
16
0.583333
5
36
3.4
0.8
0
0
0
0
0
0
0
0
0
0
0
0.25
36
4
17
9
0.62963
0
0
0
0
0
0.055556
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
8a040db174b4e066ad1fcf13a9fc64667e2a81e2
274
py
Python
leetCode/algorithms/easy/count_and_say.py
ferhatelmas/algo
a7149c7a605708bc01a5cd30bf5455644cefd04d
[ "WTFPL" ]
25
2015-01-21T16:39:18.000Z
2021-05-24T07:01:24.000Z
leetCode/algorithms/easy/count_and_say.py
gauravsingh58/algo
397859a53429e7a585e5f6964ad24146c6261326
[ "WTFPL" ]
2
2020-09-30T19:39:36.000Z
2020-10-01T17:15:16.000Z
leetCode/algorithms/easy/count_and_say.py
ferhatelmas/algo
a7149c7a605708bc01a5cd30bf5455644cefd04d
[ "WTFPL" ]
15
2015-01-21T16:39:27.000Z
2020-10-01T17:00:22.000Z
from itertools import groupby class Solution: def countAndSay(self, n): def gen(s): return "".join(str(len(list(g))) + k for k, g in groupby(s)) s, i = "1", 1 while i < n: s = gen(s) i += 1 return s
19.571429
72
0.463504
40
274
3.175
0.6
0.062992
0.047244
0
0
0
0
0
0
0
0
0.018519
0.408759
274
13
73
21.076923
0.765432
0
0
0
0
0
0.00365
0
0
0
0
0
0
1
0.2
false
0
0.1
0.1
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
8a045d9a56c4a8715b77c0b2cd2d5ff977fa98ed
609
py
Python
conf/feature_config.py
pupuwudi/nlp_xiaojiang
182ac4522b6012a52de6e1d0db7e6a47cb716e5b
[ "MIT" ]
null
null
null
conf/feature_config.py
pupuwudi/nlp_xiaojiang
182ac4522b6012a52de6e1d0db7e6a47cb716e5b
[ "MIT" ]
null
null
null
conf/feature_config.py
pupuwudi/nlp_xiaojiang
182ac4522b6012a52de6e1d0db7e6a47cb716e5b
[ "MIT" ]
2
2021-01-18T10:07:20.000Z
2022-01-12T10:09:47.000Z
# -*- coding: UTF-8 -*- # !/usr/bin/python # @time :2019/5/10 9:13 # @author :Mo # @function :path of FeatureProject import pathlib import sys import os # base dir projectdir = str(pathlib.Path(os.path.abspath(__file__)).parent.parent) sys.path.append(projectdir) # path of BERT model model_dir...
22.555556
72
0.689655
90
609
4.433333
0.655556
0.080201
0.06015
0.080201
0
0
0
0
0
0
0
0.047904
0.17734
609
26
73
23.423077
0.748503
0.284072
0
0
0
0
0.180451
0.072682
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8a047a8d5dd4c7ba8745cc48738110ca5fef1d2f
813
py
Python
tests/test_prep_read.py
taruma/hidrokit
a96c4ba2235d58d2bbc905be44d1b413ed19b3d2
[ "MIT" ]
5
2019-07-15T13:35:52.000Z
2020-04-01T17:34:16.000Z
tests/test_prep_read.py
taruma/hidrokit
a96c4ba2235d58d2bbc905be44d1b413ed19b3d2
[ "MIT" ]
107
2019-01-03T02:12:26.000Z
2020-02-18T00:48:27.000Z
tests/test_prep_read.py
hidrokit/hidrokit
c8b949aa6a81981684a24e5dd1e498ec82cbe0ca
[ "MIT" ]
2
2020-06-17T00:08:32.000Z
2020-08-24T18:55:38.000Z
"""Test for .prep.read module """ from hidrokit.prep import read import numpy as np import pandas as pd A = pd.DataFrame( data=[ [1, 3, 4, np.nan, 2, np.nan], [np.nan, 2, 3, np.nan, 1, 4], [2, np.nan, 1, 3, 4, np.nan] ], columns=['A', 'B', 'C', 'D', 'E', 'F'] ) A_date = A.set_inde...
25.40625
79
0.526445
133
813
3.067669
0.353383
0.073529
0.014706
0.02451
0.245098
0.112745
0
0
0
0
0
0.091195
0.217712
813
31
80
26.225806
0.550314
0.03198
0
0
0
0
0.079487
0
0
0
0
0
0.095238
1
0.095238
false
0
0.142857
0
0.238095
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8a047dbb3e81227c03ec206589ca325125601905
1,721
py
Python
app/blueprints/department_blueprint.py
Maxcutex/personal_ecommerce
be09fb20eae1b225523acde06f8e75effcc3676f
[ "MIT" ]
null
null
null
app/blueprints/department_blueprint.py
Maxcutex/personal_ecommerce
be09fb20eae1b225523acde06f8e75effcc3676f
[ "MIT" ]
2
2019-05-21T08:44:29.000Z
2021-04-30T20:46:08.000Z
app/blueprints/department_blueprint.py
Maxcutex/personal_ecommerce
be09fb20eae1b225523acde06f8e75effcc3676f
[ "MIT" ]
null
null
null
from flasgger import swag_from from app.blueprints.base_blueprint import Blueprint, BaseBlueprint, request, Security, Auth from app.controllers.department_controller import DepartmentController url_prefix = '{}/departments'.format(BaseBlueprint.base_url_prefix) department_blueprint = Blueprint('department', __name__,...
41.97561
91
0.820453
199
1,721
6.773869
0.241206
0.080119
0.097923
0.060089
0.405786
0.405786
0.248516
0.096439
0.096439
0.096439
0
0
0.048809
1,721
40
92
43.025
0.823458
0
0
0.151515
0
0
0.246368
0.127252
0
0
0
0
0
1
0.151515
false
0
0.090909
0.151515
0.393939
0.242424
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
8a04b26d17a373b84c1afb19abef67f291bb970a
9,747
py
Python
src/train_DFCAN.py
ikecoglu/DL-SR
5e4c794f1434cd4a9b2b1aecf3738065b11bede1
[ "MIT" ]
46
2021-01-07T03:38:07.000Z
2022-03-24T19:11:23.000Z
src/train_DFCAN.py
ikecoglu/DL-SR
5e4c794f1434cd4a9b2b1aecf3738065b11bede1
[ "MIT" ]
7
2021-02-06T14:23:18.000Z
2022-02-13T04:08:45.000Z
src/train_DFCAN.py
ikecoglu/DL-SR
5e4c794f1434cd4a9b2b1aecf3738065b11bede1
[ "MIT" ]
16
2021-01-26T16:22:49.000Z
2022-02-26T03:21:08.000Z
import argparse from keras import optimizers import matplotlib.pyplot as plt import numpy as np import datetime from keras.callbacks import TensorBoard import glob import os import tensorflow as tf from models import * from utils.lr_controller import ReduceLROnPlateau from utils.data_loader import data_loader, data_loa...
45.125
109
0.612804
1,204
9,747
4.671927
0.181063
0.048889
0.060444
0.031289
0.276978
0.2544
0.1936
0.125156
0.090667
0.074667
0
0.010528
0.171643
9,747
215
110
45.334884
0.686153
0.144968
0
0.128655
0
0
0.095187
0.012154
0
0
0
0
0
1
0.011696
false
0
0.081871
0
0.093567
0.017544
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8a04bef0858eef7458b1e38ddd409346a98cb2cc
2,635
py
Python
catalyst/exchange/live_graph_clock.py
erlendve/catalyst
463575bc23c0abd1287f8ec81c4377baabf2b8b8
[ "Apache-2.0" ]
null
null
null
catalyst/exchange/live_graph_clock.py
erlendve/catalyst
463575bc23c0abd1287f8ec81c4377baabf2b8b8
[ "Apache-2.0" ]
null
null
null
catalyst/exchange/live_graph_clock.py
erlendve/catalyst
463575bc23c0abd1287f8ec81c4377baabf2b8b8
[ "Apache-2.0" ]
null
null
null
import pandas as pd from catalyst.constants import LOG_LEVEL from catalyst.exchange.utils.stats_utils import prepare_stats from catalyst.gens.sim_engine import ( BAR, SESSION_START ) from logbook import Logger log = Logger('LiveGraphClock', level=LOG_LEVEL) class LiveGraphClock(object): """Realtime clock...
35.133333
79
0.666414
343
2,635
4.970845
0.472303
0.038123
0.028152
0.019941
0.051613
0
0
0
0
0
0
0.008831
0.26945
2,635
74
80
35.608108
0.876883
0.412144
0
0
0
0
0.029212
0
0
0
0
0
0
1
0.057143
false
0
0.171429
0
0.257143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8a04ff873e3cd041bc9cad7f7fc7707f7c185cce
6,652
py
Python
invera/api/tests.py
LeoLeiva/todo-challenge
f6f24f53758eb4e425c91516bcab7af8cad66814
[ "MIT" ]
null
null
null
invera/api/tests.py
LeoLeiva/todo-challenge
f6f24f53758eb4e425c91516bcab7af8cad66814
[ "MIT" ]
null
null
null
invera/api/tests.py
LeoLeiva/todo-challenge
f6f24f53758eb4e425c91516bcab7af8cad66814
[ "MIT" ]
1
2021-01-10T20:19:42.000Z
2021-01-10T20:19:42.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals import inspect from task.models import InveraTask from api.utils import send_test_csv_report from django.contrib.auth.models import User from rest_framework.test import APIClient, APITestCase from rest_framework.reverse import reverse from rest_framewor...
37.370787
165
0.634245
783
6,652
5.203065
0.177522
0.03731
0.029455
0.070692
0.794551
0.77246
0.751841
0.728031
0.707904
0.672067
0
0.004797
0.247895
6,652
177
166
37.581921
0.809514
0.065394
0
0.556452
0
0
0.272831
0
0
0
0
0
0
1
0.072581
false
0.193548
0.064516
0
0.153226
0.241935
0
0
0
null
0
0
0
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
6
8a06be2dde291c66efbc5f80746f557a0f2cecaa
336
py
Python
experiments/seidel-2d/tmp_files/6745.py
LoopTilingBenchmark/benchmark
52a3d2e70216552a498fd91de02a2fa9cb62122c
[ "BSD-2-Clause" ]
null
null
null
experiments/seidel-2d/tmp_files/6745.py
LoopTilingBenchmark/benchmark
52a3d2e70216552a498fd91de02a2fa9cb62122c
[ "BSD-2-Clause" ]
null
null
null
experiments/seidel-2d/tmp_files/6745.py
LoopTilingBenchmark/benchmark
52a3d2e70216552a498fd91de02a2fa9cb62122c
[ "BSD-2-Clause" ]
null
null
null
from chill import * source('/uufs/chpc.utah.edu/common/home/u1142914/lib/ytopt_vinu/polybench/polybench-code/stencils/seidel-2d/kernel.c') destination('/uufs/chpc.utah.edu/common/home/u1142914/lib/ytopt_vinu/experiments/seidel-2d/tmp_files/6745.c') procedure('kernel_seidel_2d') loop(0) known(' n > 2 ') tile(0,2,16,2)...
30.545455
118
0.764881
59
336
4.271186
0.59322
0.095238
0.095238
0.119048
0.357143
0.357143
0.357143
0.357143
0.357143
0.357143
0
0.103448
0.050595
336
10
119
33.6
0.68652
0
0
0
0
0.25
0.669643
0.60119
0
0
0
0
0
1
0
true
0
0.125
0
0.125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
1
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
8a06d974512def3c400fb25769c0185d59195602
1,405
py
Python
baymax/api.py
dmrz/baymax
60cca5ae2e7cb42e093747f91b809e34e6782fcd
[ "MIT" ]
34
2018-02-14T09:37:26.000Z
2021-02-13T10:06:54.000Z
baymax/api.py
Avishekbhattacharjee/baymax
487930c4f3021ff50504d371de09ff31e458c09f
[ "MIT" ]
1
2018-03-03T02:55:38.000Z
2018-03-17T21:57:15.000Z
baymax/api.py
Avishekbhattacharjee/baymax
487930c4f3021ff50504d371de09ff31e458c09f
[ "MIT" ]
7
2018-02-28T07:35:35.000Z
2022-01-26T11:54:40.000Z
import json import aiohttp async def request(url, payload=None, params=None, headers=None): headers = {'content-type': 'application/json', **(headers or {})} data = payload and json.dumps(payload) async with aiohttp.ClientSession() as client: async with client.post( url, data=data...
29.270833
72
0.641993
176
1,405
4.943182
0.318182
0.048276
0.062069
0.065517
0.089655
0.089655
0
0
0
0
0
0
0.251957
1,405
47
73
29.893617
0.827783
0.019217
0
0.054054
0
0
0.131541
0.053052
0
0
0
0.021277
0
1
0
false
0
0.054054
0
0.162162
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
8a072b60d911bf4164d6e02341054f5f6f3f27f0
3,479
py
Python
nautobot_device_onboarding/tests/test_netdev_keeper.py
pszulczewski/nautobot-plugin-device-onboarding
9ddec52d7bcc751c4616bd7c1180ed2a1d31ff2c
[ "Apache-2.0" ]
13
2021-03-05T10:47:50.000Z
2022-03-18T19:07:09.000Z
nautobot_device_onboarding/tests/test_netdev_keeper.py
pszulczewski/nautobot-plugin-device-onboarding
9ddec52d7bcc751c4616bd7c1180ed2a1d31ff2c
[ "Apache-2.0" ]
18
2021-03-05T10:29:13.000Z
2022-03-08T13:10:38.000Z
nautobot_device_onboarding/tests/test_netdev_keeper.py
pszulczewski/nautobot-plugin-device-onboarding
9ddec52d7bcc751c4616bd7c1180ed2a1d31ff2c
[ "Apache-2.0" ]
14
2021-03-06T19:33:46.000Z
2022-03-28T16:31:38.000Z
"""Unit tests for nautobot_device_onboarding.netdev_keeper module and its classes. (c) 2020-2021 Network To Code 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/LICE...
44.602564
108
0.728658
467
3,479
5.286938
0.357602
0.036857
0.058323
0.032402
0.387201
0.334143
0.321993
0.253949
0.238558
0.238558
0
0.022456
0.180799
3,479
77
109
45.181818
0.84386
0.29635
0
0.108108
0
0
0.131263
0.045549
0
0
0
0
0.189189
1
0.081081
false
0
0.189189
0
0.297297
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8a076cdd50a9d69b52cffcb8dbe3df578f17d801
2,577
py
Python
superneurons/tools/img_val/main.py
Phaeton-lang/baselines
472c248047fbb55b5fa0e620758047b7f0a1d041
[ "MIT" ]
null
null
null
superneurons/tools/img_val/main.py
Phaeton-lang/baselines
472c248047fbb55b5fa0e620758047b7f0a1d041
[ "MIT" ]
null
null
null
superneurons/tools/img_val/main.py
Phaeton-lang/baselines
472c248047fbb55b5fa0e620758047b7f0a1d041
[ "MIT" ]
null
null
null
# Created by ay27 at 17/4/9 import os import matplotlib.pyplot as plt import struct import numpy as np def trans(row): return list(map(lambda x: np.uint8(x), row)) def read_image(filename): with open(filename, mode='rb') as file: n = file.read(8) n = struct.unpack("<Q", n)[0] c = fi...
28.01087
84
0.509895
365
2,577
3.50137
0.290411
0.075117
0.056338
0.032864
0.367762
0.312207
0.312207
0.312207
0.245696
0.189358
0
0.038376
0.302289
2,577
92
85
28.01087
0.672414
0.282499
0
0.339623
0
0
0.045927
0.029524
0
0
0
0
0
1
0.056604
false
0
0.075472
0.018868
0.169811
0.113208
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8a0988ba1c9ee5db70eabfa7b9b35ad041f9c1f7
2,238
py
Python
pymatgen/analysis/tests/test_piezo.py
exenGT/pymatgen
a8ffb820ab8fc3f60251099e38c8888f45eae618
[ "MIT" ]
1
2021-11-02T21:10:11.000Z
2021-11-02T21:10:11.000Z
pymatgen/analysis/tests/test_piezo.py
exenGT/pymatgen
a8ffb820ab8fc3f60251099e38c8888f45eae618
[ "MIT" ]
5
2018-08-07T23:00:23.000Z
2021-01-05T22:46:23.000Z
pymatgen/analysis/tests/test_piezo.py
exenGT/pymatgen
a8ffb820ab8fc3f60251099e38c8888f45eae618
[ "MIT" ]
6
2019-04-26T18:50:41.000Z
2020-03-29T17:58:34.000Z
# Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ Test for the piezo tensor class """ __author__ = "Shyam Dwaraknath" __version__ = "0.1" __maintainer__ = "Shyam Dwaraknath" __email__ = "shyamd@lbl.gov" __status__ = "Development" __date__ = "4/1/16" import os import un...
31.521127
76
0.594281
331
2,238
3.809668
0.232628
0.137986
0.171293
0.183981
0.513085
0.478192
0.470262
0.470262
0.470262
0.470262
0
0.127108
0.258266
2,238
70
77
31.971429
0.63253
0.054066
0
0.192308
0
0
0.037951
0
0
0
0
0
0.153846
1
0.076923
false
0
0.096154
0
0.192308
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
8a0ab3edf5559c9bdaa844115d82ed95f2b065a1
63,787
py
Python
nova/virt/driver.py
larsbutler/nova
fb190f30a911658d8b0c4deaf43cbb8c9e35b672
[ "Apache-2.0" ]
null
null
null
nova/virt/driver.py
larsbutler/nova
fb190f30a911658d8b0c4deaf43cbb8c9e35b672
[ "Apache-2.0" ]
null
null
null
nova/virt/driver.py
larsbutler/nova
fb190f30a911658d8b0c4deaf43cbb8c9e35b672
[ "Apache-2.0" ]
null
null
null
# Copyright 2011 Justin Santa Barbara # 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 requ...
39.205286
79
0.651246
7,669
63,787
5.313079
0.132351
0.024027
0.055662
0.033795
0.427109
0.378712
0.345727
0.32305
0.299686
0.266971
0
0.00194
0.289024
63,787
1,626
80
39.229397
0.896518
0.61986
0
0.355932
0
0
0.035461
0.007206
0
0
0
0.011685
0
1
0.338983
false
0.039548
0.031073
0.00565
0.446328
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
1
0
0
0
0
0
0
0
2
8a0afacd436c5c382b382e786080775c8a2d6bf7
5,581
py
Python
otp/chat/ChatInputNormal.py
P1ayerOne/src
3a4343e29f844fe95da7d51aaee7fb680d02bf72
[ "BSD-3-Clause" ]
null
null
null
otp/chat/ChatInputNormal.py
P1ayerOne/src
3a4343e29f844fe95da7d51aaee7fb680d02bf72
[ "BSD-3-Clause" ]
null
null
null
otp/chat/ChatInputNormal.py
P1ayerOne/src
3a4343e29f844fe95da7d51aaee7fb680d02bf72
[ "BSD-3-Clause" ]
null
null
null
from direct.showbase import DirectObject from otp.otpbase import OTPGlobals import sys from direct.gui.DirectGui import * from pandac.PandaModules import * from otp.otpbase import OTPLocalizer class ChatInputNormal(DirectObject.DirectObject): ExecNamespace = None def __init__(self, chatMgr): self.chat...
34.450617
99
0.583766
529
5,581
6.117202
0.245747
0.058714
0.035538
0.024722
0.304388
0.272868
0.237948
0.2089
0.182324
0.144623
0
0.009757
0.320552
5,581
161
100
34.664596
0.843618
0
0
0.398601
0
0
0.046407
0
0
0
0
0
0
1
0.111888
false
0.006993
0.062937
0.006993
0.265734
0.027972
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8a0b53a65038120d7c635ea3a3f7ba3752ca109e
14,068
py
Python
train_text_summarizer.py
stevaras2/bert
1efaa300eb91dea85c40de5e1586e8d2c94b89bb
[ "Apache-2.0" ]
1
2019-11-28T10:03:09.000Z
2019-11-28T10:03:09.000Z
train_text_summarizer.py
stevaras2/bert
1efaa300eb91dea85c40de5e1586e8d2c94b89bb
[ "Apache-2.0" ]
null
null
null
train_text_summarizer.py
stevaras2/bert
1efaa300eb91dea85c40de5e1586e8d2c94b89bb
[ "Apache-2.0" ]
null
null
null
import argparse import json import numpy as np import pandas as pd import os from sklearn.linear_model import LogisticRegression from sklearn.model_selection import train_test_split from sklearn.metrics import classification_report,f1_score from keras.models import Sequential from keras.layers import Dense, Dropout fro...
35.705584
151
0.649062
1,890
14,068
4.632275
0.12963
0.033923
0.013706
0.02193
0.710565
0.68578
0.653341
0.62924
0.583895
0.57076
0
0.020858
0.216164
14,068
393
152
35.796438
0.773102
0.201521
0
0.684015
0
0
0.070995
0.023393
0
0
0
0
0
1
0.02974
false
0
0.052045
0
0.096654
0.152416
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8a0d48bd45e2a77d4024e66ae20d64213df72227
1,493
py
Python
src/test/python/apache/aurora/executor/test_status_manager.py
zmanji/incubator-aurora
9f594f1de6bbf46c74863dd3fc4d2708b7a974f2
[ "Apache-2.0" ]
null
null
null
src/test/python/apache/aurora/executor/test_status_manager.py
zmanji/incubator-aurora
9f594f1de6bbf46c74863dd3fc4d2708b7a974f2
[ "Apache-2.0" ]
null
null
null
src/test/python/apache/aurora/executor/test_status_manager.py
zmanji/incubator-aurora
9f594f1de6bbf46c74863dd3fc4d2708b7a974f2
[ "Apache-2.0" ]
null
null
null
# # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under ...
29.27451
74
0.750167
206
1,493
5.330097
0.504854
0.054645
0.035519
0.029144
0.051002
0
0
0
0
0
0
0.007293
0.173476
1,493
50
75
29.86
0.882496
0.348962
0
0
0
0
0.022965
0
0
0
0
0
0.107143
1
0.178571
false
0
0.214286
0
0.535714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8a0d98e91f0c9a170743b5f41866a399dbce8684
3,494
py
Python
Supplemental/A5. Collision estimation module/Con_est.py
wangqf1997/Human-injury-based-safety-decision-of-automated-vehicles
b104fdeb3d85e867f6b04c5ae7b5a197e705aeba
[ "CC-BY-4.0" ]
null
null
null
Supplemental/A5. Collision estimation module/Con_est.py
wangqf1997/Human-injury-based-safety-decision-of-automated-vehicles
b104fdeb3d85e867f6b04c5ae7b5a197e705aeba
[ "CC-BY-4.0" ]
null
null
null
Supplemental/A5. Collision estimation module/Con_est.py
wangqf1997/Human-injury-based-safety-decision-of-automated-vehicles
b104fdeb3d85e867f6b04c5ae7b5a197e705aeba
[ "CC-BY-4.0" ]
null
null
null
''' ------------------------------------------------------------------------------------------------- This code accompanies the paper titled "Human injury-based safety decision of automated vehicles" Author: Qingfan Wang, Qing Zhou, Miao Lin, Bingbing Nie Corresponding author: Bingbing Nie (nbb@tsinghua.edu.cn) -------...
43.135802
117
0.556955
581
3,494
3.061962
0.189329
0.040472
0.055649
0.042159
0.539629
0.470489
0.467678
0.432827
0.412591
0.412591
0
0.070189
0.257871
3,494
81
118
43.135802
0.615889
0.178878
0
0.264151
0
0
0.004203
0
0
0
0
0
0
1
0.018868
false
0
0.075472
0
0.113208
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8a0ead4871ddc6b047237522f5f34d4d48742f52
11,790
py
Python
train/train.py
TontonTremblay/pixel-nerf
349b5f3f173cd76def05b6de8aa52c69a4f0c7fa
[ "BSD-2-Clause" ]
null
null
null
train/train.py
TontonTremblay/pixel-nerf
349b5f3f173cd76def05b6de8aa52c69a4f0c7fa
[ "BSD-2-Clause" ]
null
null
null
train/train.py
TontonTremblay/pixel-nerf
349b5f3f173cd76def05b6de8aa52c69a4f0c7fa
[ "BSD-2-Clause" ]
null
null
null
# Training to a set of multiple objects (e.g. ShapeNet or DTU) # tensorboard logs available in logs/<expname> import sys import os sys.path.insert( 0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "src")) ) import warnings import trainlib from model import make_model, loss from render import NeRF...
33.976945
112
0.566073
1,605
11,790
3.917134
0.160748
0.007317
0.024495
0.017815
0.271831
0.193415
0.129633
0.112931
0.072213
0.072213
0
0.015012
0.310687
11,790
346
113
34.075145
0.758583
0.048176
0
0.190813
0
0.003534
0.063796
0
0
0
0
0
0
1
0.028269
false
0
0.042403
0.003534
0.09894
0.038869
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8a10a1ae5c36176cfdd1c3ad55656efe8325a99f
20,351
py
Python
napari/_qt/dialogs/qt_plugin_dialog.py
kne42/napari
d61d0be0ef8ea622dd3d6acd270c0529816c11ec
[ "BSD-3-Clause" ]
null
null
null
napari/_qt/dialogs/qt_plugin_dialog.py
kne42/napari
d61d0be0ef8ea622dd3d6acd270c0529816c11ec
[ "BSD-3-Clause" ]
null
null
null
napari/_qt/dialogs/qt_plugin_dialog.py
kne42/napari
d61d0be0ef8ea622dd3d6acd270c0529816c11ec
[ "BSD-3-Clause" ]
null
null
null
import os import sys from pathlib import Path from typing import Sequence from napari_plugin_engine.dist import standard_metadata from napari_plugin_engine.exceptions import PluginError from qtpy.QtCore import QEvent, QProcess, QProcessEnvironment, QSize, Qt, Slot from qtpy.QtGui import QFont, QMovie from qtpy.QtWidge...
37.617375
79
0.640214
2,146
20,351
5.852283
0.184529
0.01911
0.016641
0.013536
0.243411
0.157656
0.139502
0.092284
0.092284
0.077076
0
0.006986
0.26151
20,351
540
80
37.687037
0.828665
0.030121
0
0.15914
0
0
0.028813
0.001268
0
0
0
0.001852
0
1
0.053763
false
0
0.047312
0
0.11828
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8a112375ff4d16de8957c825f7c7971fdb15e0cc
1,179
py
Python
hata/discord/webhook/utils.py
WizzyBots/hata
f6991afc0bebf7dad932888a536f4d010f8663c7
[ "0BSD" ]
1
2022-03-02T03:59:57.000Z
2022-03-02T03:59:57.000Z
hata/discord/webhook/utils.py
m0nk3ybraindead/hata
f87ed3d7009eeae31d6ea158772efd33775c7b1c
[ "0BSD" ]
1
2022-02-08T16:54:39.000Z
2022-02-08T16:54:39.000Z
hata/discord/webhook/utils.py
WizzyBots/hata
f6991afc0bebf7dad932888a536f4d010f8663c7
[ "0BSD" ]
null
null
null
__all__ = ('create_partial_webhook_from_id', ) from scarletio import export from ..core import USERS from .preinstanced import WebhookType from .webhook import Webhook @export def create_partial_webhook_from_id(webhook_id, token, *, type_=WebhookType.bot, channel_id=0): """ Creates a partial webhook from t...
27.418605
115
0.653096
141
1,179
5.269504
0.340426
0.072678
0.072678
0.064603
0.15074
0.080754
0
0
0
0
0
0.003394
0.250212
1,179
42
116
28.071429
0.837104
0.454623
0
0
0
0
0.053286
0.053286
0
0
0
0
0
1
0.0625
false
0
0.25
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8a1292fe9e365e4f3b12243aeeeb62b3fcd34222
1,067
py
Python
MIT/600.1x - Introduction to Computer Science and Programming Using Python/Unit 4/Problem Set 4/get_word_score.py
henriqueumeda/-Python-study
28e93a377afa4732037a29eb74d4bc7c9e24b62f
[ "MIT" ]
null
null
null
MIT/600.1x - Introduction to Computer Science and Programming Using Python/Unit 4/Problem Set 4/get_word_score.py
henriqueumeda/-Python-study
28e93a377afa4732037a29eb74d4bc7c9e24b62f
[ "MIT" ]
null
null
null
MIT/600.1x - Introduction to Computer Science and Programming Using Python/Unit 4/Problem Set 4/get_word_score.py
henriqueumeda/-Python-study
28e93a377afa4732037a29eb74d4bc7c9e24b62f
[ "MIT" ]
null
null
null
SCRABBLE_LETTER_VALUES = { 'a': 1, 'b': 3, 'c': 3, 'd': 2, 'e': 1, 'f': 4, 'g': 2, 'h': 4, 'i': 1, 'j': 8, 'k': 5, 'l': 1, 'm': 3, 'n': 1, 'o': 1, 'p': 3, 'q': 10, 'r': 1, 's': 1, 't': 1, 'u': 1, 'v': 4, 'w': 4, 'x': 8, 'y': 4, 'z': 10 } def getWordScore(word, n): """ Returns the score for a word. Assu...
35.566667
115
0.585754
191
1,067
3.209424
0.439791
0.057096
0.097879
0.039152
0.052202
0
0
0
0
0
0
0.050569
0.258669
1,067
29
116
36.793103
0.724399
0.469541
0
0
0
0
0.063707
0
0
0
0
0
0
1
0.076923
false
0
0
0
0.153846
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
0
0
0
0
0
0
0
0
1
0
8a13575cd76b03c2660c0f973dca2598509c1205
34,179
py
Python
sdk/lusid/models/lusid_instrument.py
rizwansaeed/lusid-sdk-python-preview
52d092d6d4099b8526f0318f3fe1ddc0b943da6a
[ "MIT" ]
null
null
null
sdk/lusid/models/lusid_instrument.py
rizwansaeed/lusid-sdk-python-preview
52d092d6d4099b8526f0318f3fe1ddc0b943da6a
[ "MIT" ]
null
null
null
sdk/lusid/models/lusid_instrument.py
rizwansaeed/lusid-sdk-python-preview
52d092d6d4099b8526f0318f3fe1ddc0b943da6a
[ "MIT" ]
null
null
null
# coding: utf-8 """ LUSID API # Introduction This page documents the [LUSID APIs](https://www.lusid.com/api/swagger), which allows authorised clients to query and update their data within the LUSID platform. SDKs to interact with the LUSID APIs are available in the following languages : * [C#](https://gith...
221.941558
28,647
0.692179
4,703
34,179
5.007229
0.218371
0.042465
0.019873
0.016009
0.145569
0.0989
0.070704
0.064759
0.055841
0.04565
0
0.053849
0.170339
34,179
153
28,648
223.392157
0.776598
0.875128
0
0.025641
0
0
0.205901
0
0
0
0
0
0
1
0.115385
false
0
0.038462
0
0.320513
0.025641
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
8a13a931088f76e07468fa49084284d44b5cf0eb
936
py
Python
autolatex-master/exemplos_codigo/certificados/certificados.py
luizgui05/autolatex.
366eb3d88b7e60c119737f958e35cce99e8775e9
[ "MIT" ]
null
null
null
autolatex-master/exemplos_codigo/certificados/certificados.py
luizgui05/autolatex.
366eb3d88b7e60c119737f958e35cce99e8775e9
[ "MIT" ]
null
null
null
autolatex-master/exemplos_codigo/certificados/certificados.py
luizgui05/autolatex.
366eb3d88b7e60c119737f958e35cce99e8775e9
[ "MIT" ]
null
null
null
import os import sys import sqlite3 con = None filename = 'certificado' # Abrir banco de dados para ler nomes. try: con = sqlite3.connect('math.db') cur = con.cursor() cur.execute('select * from math') data = cur.fetchall() except sqlite3.Error, e: print "Error %s:" % e.args[0] sys.exit(...
20.8
85
0.569444
128
936
4.148438
0.5625
0.045198
0
0
0
0
0
0
0
0
0
0.018545
0.251068
936
44
86
21.272727
0.738944
0.145299
0
0.0625
0
0
0.148428
0
0
0
0
0
0
0
null
null
0
0.09375
null
null
0.0625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
8a13fa0bd9273ba0ef6fc5a2231a5c8269835d8e
280
py
Python
nanoepiseg/main_list_chunks.py
snajder-r/nanoepiseg
2fe36a82e5b899330da5db6559eb45fe12cad37c
[ "MIT" ]
null
null
null
nanoepiseg/main_list_chunks.py
snajder-r/nanoepiseg
2fe36a82e5b899330da5db6559eb45fe12cad37c
[ "MIT" ]
null
null
null
nanoepiseg/main_list_chunks.py
snajder-r/nanoepiseg
2fe36a82e5b899330da5db6559eb45fe12cad37c
[ "MIT" ]
null
null
null
from pathlib import Path from meth5.meth5 import MetH5File def main(m5file:Path, chunk_size:int, quiet:bool): with MetH5File(m5file, "r", chunk_size=chunk_size) as f: for chrom in f.get_chromosomes(): print(f"{chrom}: {f[chrom].get_number_of_chunks()}")
31.111111
64
0.696429
43
280
4.372093
0.627907
0.143617
0
0
0
0
0
0
0
0
0
0.026087
0.178571
280
8
65
35
0.791304
0
0
0
0
0
0.153571
0.117857
0
0
0
0
0
1
0.166667
false
0
0.333333
0
0.5
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
2
8a14e512e0f7f79c5bcbfd4af00b8cc29f035958
6,376
py
Python
qscatv2/make_seasonal_images.py
tmilliman/sir_to_netcdf
d4641cdc5a9e92a55c0edb2dc6cd8c0e2da6f1fa
[ "MIT" ]
null
null
null
qscatv2/make_seasonal_images.py
tmilliman/sir_to_netcdf
d4641cdc5a9e92a55c0edb2dc6cd8c0e2da6f1fa
[ "MIT" ]
null
null
null
qscatv2/make_seasonal_images.py
tmilliman/sir_to_netcdf
d4641cdc5a9e92a55c0edb2dc6cd8c0e2da6f1fa
[ "MIT" ]
null
null
null
#!/usr/bin/env python # script to make seasonal means and stddev images of 4-day sig0 # values. import os import sys import glob import numpy as np import sirpy2 as sp2 import argparse from osgeo import gdal DATADIR = "./" NODATA_VALUE = -9999.0 Q2M = { "JAS": list(range(7, 10)), "OND": list(range(10, 13)),...
27.601732
86
0.592848
821
6,376
4.47503
0.297199
0.016331
0.019053
0.020686
0.264017
0.264017
0.246598
0.246598
0.236255
0.236255
0
0.016043
0.266782
6,376
230
87
27.721739
0.76984
0.073557
0
0.225989
0
0
0.13425
0.008316
0
0
0
0
0
1
0.00565
false
0
0.039548
0
0.050847
0.124294
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8a15ab57e7398ab067062419a83d15fd9bf34d36
434
py
Python
ex062.py
noahbarros/Python-Exercises
fafda898473bc984280e201ed11d8ad76cc8624a
[ "MIT" ]
1
2021-07-13T21:41:00.000Z
2021-07-13T21:41:00.000Z
ex062.py
noahbarros/Python-Exercises
fafda898473bc984280e201ed11d8ad76cc8624a
[ "MIT" ]
null
null
null
ex062.py
noahbarros/Python-Exercises
fafda898473bc984280e201ed11d8ad76cc8624a
[ "MIT" ]
null
null
null
primeiro = int(input('Digite o priemiro termo da PA: ')) razão = int(input('Digite a razão da PA: ')) termo = primeiro cont = 1 total = 0 mais = 10 while mais != 0: total += mais while cont <= total: print(f'{termo} ', end='') termo += razão cont += 1 print('Pausa') mais = int(in...
27.125
66
0.612903
63
434
4.222222
0.507937
0.090226
0.105263
0
0
0
0
0
0
0
0
0.018405
0.248848
434
15
67
28.933333
0.797546
0
0
0
0
0
0.368664
0
0
0
0
0
0
1
0
false
0
0
0
0
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
0
0
1
0
8a16b528f332e28d501ffe602ae57113af02e27c
3,720
py
Python
arxml_data_extractor/handler/object_handler.py
Brokdar/ArxmlDataExtractor
2853112cbd4d001418b11ccb99f1db268347dfab
[ "MIT" ]
16
2020-08-16T09:13:35.000Z
2022-03-17T13:39:26.000Z
arxml_data_extractor/handler/object_handler.py
Brokdar/ArxmlDataExtractor
2853112cbd4d001418b11ccb99f1db268347dfab
[ "MIT" ]
null
null
null
arxml_data_extractor/handler/object_handler.py
Brokdar/ArxmlDataExtractor
2853112cbd4d001418b11ccb99f1db268347dfab
[ "MIT" ]
2
2020-10-14T10:54:37.000Z
2021-07-06T01:30:44.000Z
from lxml.etree import Element, QName from typing import Union, List, Any from tqdm import tqdm import logging from arxml_data_extractor.handler import value_handler from arxml_data_extractor.handler.path_handler import PathHandler from arxml_data_extractor.asr.asr_parser import AsrParser from arxml_data_extra...
42.272727
125
0.595968
418
3,720
5.143541
0.232057
0.04186
0.036279
0.061395
0.294419
0.223721
0.093023
0.052093
0.052093
0.052093
0
0.003868
0.305108
3,720
87
126
42.758621
0.827853
0.012366
0
0.164384
0
0.013699
0.146444
0.013947
0
0
0
0
0
1
0.054795
false
0
0.136986
0
0.273973
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8a19876a956cc7df8eee4ce39d6fc5531c4cfc7c
3,401
py
Python
src/api/datamanage/pro/lifecycle/data_trace/data_set_create.py
Chromico/bk-base
be822d9bbee544a958bed4831348185a75604791
[ "MIT" ]
84
2021-06-30T06:20:23.000Z
2022-03-22T03:05:49.000Z
src/api/datamanage/pro/lifecycle/data_trace/data_set_create.py
Chromico/bk-base
be822d9bbee544a958bed4831348185a75604791
[ "MIT" ]
7
2021-06-30T06:21:16.000Z
2022-03-29T07:36:13.000Z
src/api/datamanage/pro/lifecycle/data_trace/data_set_create.py
Chromico/bk-base
be822d9bbee544a958bed4831348185a75604791
[ "MIT" ]
40
2021-06-30T06:21:26.000Z
2022-03-29T12:42:26.000Z
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making BK-BASE 蓝鲸基础平台 available. Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. BK-BASE 蓝鲸基础平台 is licensed under the MIT License. License for BK-BASE 蓝鲸基础平台: ---------------------------------------------...
44.168831
118
0.728021
448
3,401
5.296875
0.426339
0.046355
0.03287
0.047198
0.139064
0.086389
0.086389
0.069954
0.069954
0
0
0.004278
0.175243
3,401
76
119
44.75
0.841711
0.438695
0
0
0
0
0.173518
0.050187
0
0
0
0
0
1
0.02439
false
0
0.121951
0
0.170732
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8a1ac6639a0c1cc52dd72036d5f1b225c44d7b2f
4,363
py
Python
vectors2.py
shivam13verma/judge-embeddings
9b861319a1240529d25c15799952e32dde2e894e
[ "MIT" ]
null
null
null
vectors2.py
shivam13verma/judge-embeddings
9b861319a1240529d25c15799952e32dde2e894e
[ "MIT" ]
null
null
null
vectors2.py
shivam13verma/judge-embeddings
9b861319a1240529d25c15799952e32dde2e894e
[ "MIT" ]
null
null
null
import locale import glob import os import os.path import requests import tarfile import sys import re import gensim from gensim.models.doc2vec import TaggedDocument from collections import namedtuple from gensim.models import Doc2Vec import gensim.models.doc2vec from collections import OrderedDict import multiproces...
31.388489
121
0.651845
630
4,363
4.406349
0.34127
0.043228
0.017291
0.012968
0.189481
0.091859
0.060159
0.060159
0.060159
0.025216
0
0.027606
0.18634
4,363
138
122
31.615942
0.754366
0.794637
0
0
0
0
0.039744
0
0
0
0
0
0
0
null
null
0
0.607143
null
null
0.107143
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
2
8a1c71c22813d34b18261a3c040c83b4a288d938
1,272
py
Python
caravan_search_engine/test/test_task.py
crest-cassia/caravan
0a8e606e31d2d36a9379bdc00fafe55cf9144da6
[ "MIT" ]
4
2017-12-27T06:04:46.000Z
2018-04-27T04:07:49.000Z
caravan_search_engine/test/test_task.py
crest-cassia/caravan
0a8e606e31d2d36a9379bdc00fafe55cf9144da6
[ "MIT" ]
null
null
null
caravan_search_engine/test/test_task.py
crest-cassia/caravan
0a8e606e31d2d36a9379bdc00fafe55cf9144da6
[ "MIT" ]
null
null
null
import unittest from caravan.task import Task from caravan.tables import Tables class TestRun(unittest.TestCase): def setUp(self): self.t = Tables.get() self.t.clear() def test_task(self): t = Task(1234, "echo hello world") self.assertEqual(t.id(), 1234) self.assertEqu...
30.285714
63
0.589623
180
1,272
4.061111
0.305556
0.266758
0.19699
0.045144
0.361149
0.281806
0.281806
0.281806
0.155951
0.155951
0
0.044257
0.253931
1,272
41
64
31.02439
0.726027
0
0
0.121212
0
0
0.047956
0
0
0
0
0
0.424242
1
0.151515
false
0
0.090909
0
0.272727
0
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
3
8a1cd65b30b7bbba4f6241ea55e68759c3f56fc4
15,868
py
Python
splash/render_options.py
tashidexiaoL/splashnew
2bbb886bae8fa88c30a4460f41ca940c4b010287
[ "BSD-3-Clause" ]
3,612
2015-01-04T07:22:20.000Z
2022-03-31T07:12:19.000Z
splash/render_options.py
tashidexiaoL/splashnew
2bbb886bae8fa88c30a4460f41ca940c4b010287
[ "BSD-3-Clause" ]
983
2015-01-01T17:54:49.000Z
2022-03-29T05:05:53.000Z
splash/render_options.py
tashidexiaoL/splashnew
2bbb886bae8fa88c30a4460f41ca940c4b010287
[ "BSD-3-Clause" ]
570
2015-01-06T17:48:46.000Z
2022-03-31T12:35:32.000Z
# -*- coding: utf-8 -*- import os import json from splash import defaults from splash.utils import to_bytes, path_join_secure from splash.errors import BadOption class RenderOptions(object): """ Options that control how to render a response. """ _REQUIRED = object() def __init__(self, data, max...
35.578475
91
0.568188
1,870
15,868
4.616043
0.137968
0.056766
0.035681
0.031511
0.225788
0.171455
0.124421
0.109824
0.083874
0.062095
0
0.004408
0.328019
15,868
445
92
35.658427
0.805121
0.043484
0
0.171598
0
0.002959
0.126687
0.004387
0
0
0
0
0.002959
1
0.136095
false
0.005917
0.014793
0.056213
0.301775
0.002959
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8a1d8b11d101fed7641300b2c4ef25ddc8a61c8b
362
py
Python
syntax/func.py
sangumee/Opentutorials-Webn-Python
9f813f8f342ea99ffee6e31f363f175fa023c489
[ "MIT" ]
null
null
null
syntax/func.py
sangumee/Opentutorials-Webn-Python
9f813f8f342ea99ffee6e31f363f175fa023c489
[ "MIT" ]
null
null
null
syntax/func.py
sangumee/Opentutorials-Webn-Python
9f813f8f342ea99ffee6e31f363f175fa023c489
[ "MIT" ]
null
null
null
# code.... a = 1 b = 2 c = 3 s = a+b+c r = s/3 print(r) # code.... ''' def average(): a=1 b=2 c=3 s=a+b+c r=s/3 print(r) average() ''' ''' #input #parameter #argument def average(a,b,c): s=a+b+c r=s/3 print(r) average(10,20,30) ''' def average(a, b, c): s = a+b+c r = s/3 ...
9.05
26
0.466851
75
362
2.253333
0.253333
0.071006
0.106509
0.094675
0.579882
0.579882
0.579882
0.579882
0.579882
0.579882
0
0.087649
0.30663
362
39
27
9.282051
0.585657
0.046961
0
0.363636
0
0
0
0
0
0
0
0
0
1
0.090909
false
0
0
0
0.181818
0.181818
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8a1dc389d59f49c155580d9fe0bb5e5e94a7281e
1,718
py
Python
tools/evolution/codingSnps_filter.py
ramezrawas/galaxy-1
c03748dd49c060a68d07bce56eae33e0ba154414
[ "CC-BY-3.0" ]
1
2019-11-03T11:45:43.000Z
2019-11-03T11:45:43.000Z
tools/evolution/codingSnps_filter.py
ramezrawas/galaxy-1
c03748dd49c060a68d07bce56eae33e0ba154414
[ "CC-BY-3.0" ]
7
2016-12-07T22:19:37.000Z
2019-01-30T15:04:26.000Z
tools/evolution/codingSnps_filter.py
ramezrawas/galaxy-1
c03748dd49c060a68d07bce56eae33e0ba154414
[ "CC-BY-3.0" ]
null
null
null
#!/usr/bin/env python # runs after the job (and after the default post-filter) from galaxy.tools.parameters import DataToolParameter # Older py compatibility try: set() except: from sets import Set as set def validate_input( trans, error_map, param_values, page_param_map ): dbkeys = set() data_param_...
40.904762
117
0.586147
212
1,718
4.613208
0.448113
0.056237
0.071575
0.0409
0.071575
0.071575
0.071575
0.071575
0.071575
0
0
0.002648
0.340512
1,718
41
118
41.902439
0.860547
0.082072
0
0.181818
0
0
0.173028
0
0
0
0
0
0
1
0.030303
false
0
0.060606
0
0.090909
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8a1e3dc4bc93e35762cbfc644a38e3db21861cda
5,290
py
Python
qa/rpc-tests/listtransactions.py
DeftNerd/bitcoinclassic
afff0155e0dd528145818c43f259743f54966d95
[ "MIT" ]
8
2016-03-31T18:47:31.000Z
2021-09-30T05:42:32.000Z
qa/rpc-tests/listtransactions.py
DeftNerd/bitcoinclassic
afff0155e0dd528145818c43f259743f54966d95
[ "MIT" ]
1
2017-10-06T08:55:30.000Z
2017-10-06T08:55:30.000Z
qa/rpc-tests/listtransactions.py
DeftNerd/bitcoinclassic
afff0155e0dd528145818c43f259743f54966d95
[ "MIT" ]
2
2020-02-03T03:38:10.000Z
2021-09-30T05:42:36.000Z
#!/usr/bin/env python2 # Copyright (c) 2014-2015 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # Exercise the listtransactions API from test_framework.test_framework import BitcoinTestFramework from ...
48.53211
105
0.542722
551
5,290
5.098004
0.221416
0.099324
0.091136
0.1068
0.562478
0.489142
0.484514
0.41189
0.407974
0.407974
0
0.032606
0.298488
5,290
108
106
48.981481
0.724333
0.095841
0
0.349398
0
0
0.136211
0
0
0
0
0
0.036145
1
0.024096
false
0
0.036145
0
0.072289
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8a1ef1c625b2d34cef5abbf769654ee6310e0334
25,352
py
Python
salt/modules/mount.py
aletourneau/salt
d7013a2f64eb4b79592220d76274bc5dde609e08
[ "Apache-2.0" ]
null
null
null
salt/modules/mount.py
aletourneau/salt
d7013a2f64eb4b79592220d76274bc5dde609e08
[ "Apache-2.0" ]
null
null
null
salt/modules/mount.py
aletourneau/salt
d7013a2f64eb4b79592220d76274bc5dde609e08
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' Salt module to manage unix mounts and the fstab file ''' from __future__ import absolute_import # Import python libs import os import re import logging # Import salt libs import salt.utils from salt._compat import string_types from salt.utils import which as _which from salt.exceptions imp...
30.109264
92
0.473651
2,712
25,352
4.317847
0.115782
0.016909
0.013664
0.023057
0.610845
0.568488
0.541332
0.514774
0.486422
0.454142
0
0.011916
0.407463
25,352
841
93
30.145065
0.767608
0.141093
0
0.617486
0
0.001821
0.086969
0.002358
0
0
0
0
0
1
0.041894
false
0.010929
0.014572
0
0.134791
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8a1f6ceee24cfa74cb693e71048a38117f2ad54b
907
py
Python
base/admin.py
ExpertOfNone/expert_of_none
9ff4e4279a570712766546122c014c754f753485
[ "MIT" ]
null
null
null
base/admin.py
ExpertOfNone/expert_of_none
9ff4e4279a570712766546122c014c754f753485
[ "MIT" ]
null
null
null
base/admin.py
ExpertOfNone/expert_of_none
9ff4e4279a570712766546122c014c754f753485
[ "MIT" ]
null
null
null
from django.contrib import admin from base.models import Topic, Photo class EONBaseAdmin(admin.ModelAdmin): def get_changeform_initial_data(self, request): initial = super().get_changeform_initial_data(request) if 'add' in request.META['PATH_INFO']: initial['created_by'] = request....
21.093023
96
0.675854
109
907
5.458716
0.458716
0.060504
0.065546
0.080672
0
0
0
0
0
0
0
0
0.216097
907
42
97
21.595238
0.83685
0.030871
0
0
0
0
0.107184
0
0
0
0
0.02381
0
1
0.095238
false
0.047619
0.095238
0
0.47619
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
8a1ff54283494d2484e0c67f1c0d0ff7dcc46387
1,165
py
Python
met/metadataparser/models/entity_type.py
z1digitalstudio/met
7840e7520bb4c3cb0328d5988468eefe6639f950
[ "BSD-2-Clause" ]
11
2016-06-30T13:20:39.000Z
2021-01-14T20:53:15.000Z
met/metadataparser/models/entity_type.py
z1digitalstudio/met
7840e7520bb4c3cb0328d5988468eefe6639f950
[ "BSD-2-Clause" ]
50
2016-02-03T14:49:06.000Z
2022-02-24T01:35:50.000Z
met/metadataparser/models/entity_type.py
z1digitalstudio/met
7840e7520bb4c3cb0328d5988468eefe6639f950
[ "BSD-2-Clause" ]
9
2016-04-22T19:24:36.000Z
2022-01-11T10:30:54.000Z
################################################################# # MET v2 Metadate Explorer Tool # # This Software is Open Source. See License: https://github.com/TERENA/met/blob/master/LICENSE.md # Copyright (c) 2012, TERENA All rights reserved. # # This Software is based on MET v1 developed for TERENA by Yaco Sistem...
38.833333
97
0.614592
146
1,165
4.808219
0.636986
0.029915
0.039886
0.05698
0.176638
0.176638
0.176638
0.176638
0.176638
0.176638
0
0.011543
0.181974
1,165
29
98
40.172414
0.725079
0.449785
0
0
0
0
0.031381
0
0
0
0
0
0
1
0.111111
false
0
0.222222
0.111111
0.777778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
1
0
0
2
8a2004bf04417c6b520430e6ac9ec351a3c37f83
9,312
py
Python
wxpy/bot.py
daimajia/wxpy
2b56fb67b9ccb072538fd778a27a8fef8d9c93e6
[ "MIT" ]
34
2017-03-01T06:32:04.000Z
2021-11-16T12:48:46.000Z
wxpy/bot.py
daimajia/wxpy
2b56fb67b9ccb072538fd778a27a8fef8d9c93e6
[ "MIT" ]
null
null
null
wxpy/bot.py
daimajia/wxpy
2b56fb67b9ccb072538fd778a27a8fef8d9c93e6
[ "MIT" ]
17
2017-03-01T08:41:22.000Z
2021-09-16T06:25:43.000Z
import traceback from pprint import pformat from threading import Thread import itchat import logging from wxpy.chat import Chat from wxpy.chats import Chats from wxpy.friend import Friend from wxpy.group import Group from wxpy.message import MessageConfigs, Messages, Message, MessageConfig from wxpy.mp import MP fro...
27.22807
94
0.560997
975
9,312
5.190769
0.284103
0.030034
0.027663
0.012448
0.113812
0.058091
0.036752
0.020549
0.020549
0.020549
0
0.001475
0.344609
9,312
341
95
27.307918
0.82779
0.166774
0
0.162921
0
0
0.033395
0.003821
0
0
0
0.002933
0
1
0.146067
false
0
0.08427
0.02809
0.359551
0.005618
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8a2014bc56418a4e4967160efe3f9656c573b77f
1,432
py
Python
glue/__init__.py
HPLegion/glue
1843787ccb4de852dfe103ff58473da13faccf5f
[ "BSD-3-Clause" ]
550
2015-01-08T13:51:06.000Z
2022-03-31T11:54:47.000Z
glue/__init__.py
HPLegion/glue
1843787ccb4de852dfe103ff58473da13faccf5f
[ "BSD-3-Clause" ]
1,362
2015-01-03T19:15:52.000Z
2022-03-30T13:23:11.000Z
glue/__init__.py
HPLegion/glue
1843787ccb4de852dfe103ff58473da13faccf5f
[ "BSD-3-Clause" ]
142
2015-01-08T13:08:00.000Z
2022-03-18T13:25:57.000Z
# Set up configuration variables __all__ = ['custom_viewer', 'qglue', 'test'] import os import sys from pkg_resources import get_distribution, DistributionNotFound try: __version__ = get_distribution('glue-core').version except DistributionNotFound: __version__ = 'undefined' from ._mpl_backend import Matp...
26.036364
78
0.775838
195
1,432
5.435897
0.528205
0.049057
0.039623
0.028302
0.075472
0.075472
0.075472
0.075472
0
0
0
0.001642
0.149441
1,432
54
79
26.518519
0.868637
0.293296
0
0
0
0
0.059821
0
0
0
0
0
0
1
0.074074
false
0
0.37037
0
0.481481
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
8a2036147565ecfe3e374843c7669120715a456c
93
py
Python
run.py
pran01/AlgoVision
40e85f3c55266f43ee103dfa0852a63af306a8d4
[ "MIT" ]
33
2020-10-05T01:04:55.000Z
2021-06-24T01:52:31.000Z
run.py
learning-zones/AlgoVision
9261e00ecb2540d8bb950d47d670bb6b2c69db0f
[ "MIT" ]
14
2020-10-07T03:15:12.000Z
2021-01-15T11:53:29.000Z
run.py
learning-zones/AlgoVision
9261e00ecb2540d8bb950d47d670bb6b2c69db0f
[ "MIT" ]
9
2020-10-05T07:16:45.000Z
2021-03-01T15:44:31.000Z
from algovision import app if(__name__=="__main__"): app.run(debug=True,host='0.0.0.0')
18.6
38
0.688172
16
93
3.5
0.75
0.107143
0.107143
0
0
0
0
0
0
0
0
0.04878
0.11828
93
4
39
23.25
0.634146
0
0
0
0
0
0.16129
0
0
0
0
0
0
1
0
true
0
0.333333
0
0.333333
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
8a206c0ba5cec93f4c2890bee22ea35305190260
1,477
py
Python
readthedocs/settings/proxito/base.py
rffontenelle/readthedocs.org
a7a9072215551156b9ddc22280cc085944eaa4b0
[ "MIT" ]
null
null
null
readthedocs/settings/proxito/base.py
rffontenelle/readthedocs.org
a7a9072215551156b9ddc22280cc085944eaa4b0
[ "MIT" ]
null
null
null
readthedocs/settings/proxito/base.py
rffontenelle/readthedocs.org
a7a9072215551156b9ddc22280cc085944eaa4b0
[ "MIT" ]
null
null
null
""" Base settings for Proxito Some of these settings will eventually be backported into the main settings file, but currently we have them to be able to run the site with the old middleware for a staged rollout of the proxito code. """ class CommunityProxitoSettingsMixin: ROOT_URLCONF = 'readthedocs.proxito.url...
31.425532
81
0.65606
177
1,477
5.40678
0.627119
0.025078
0.037618
0
0
0
0
0
0
0
0
0.00466
0.273527
1,477
46
82
32.108696
0.887232
0.330399
0
0.076923
0
0
0.237705
0.184426
0
0
0
0
0
1
0.076923
false
0
0
0
0.346154
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8a20872ac762ad5db9d06e05df401ef72a6b24c6
69,998
py
Python
model_selection/tests/test_search.py
jessica-tu/jupyter
917e02bc29e0fa06bd8adb25fe5388ac381ec829
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
model_selection/tests/test_search.py
jessica-tu/jupyter
917e02bc29e0fa06bd8adb25fe5388ac381ec829
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
model_selection/tests/test_search.py
jessica-tu/jupyter
917e02bc29e0fa06bd8adb25fe5388ac381ec829
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
"""Test the search module""" from collections.abc import Iterable, Sized from io import StringIO from itertools import chain, product from functools import partial import pickle import sys from types import GeneratorType import re import numpy as np import scipy.sparse as sp import pytest from sklearn.utils.fixes im...
38.18767
79
0.629904
9,397
69,998
4.462594
0.087581
0.029617
0.008346
0.007082
0.466627
0.388291
0.342792
0.298581
0.273471
0.249696
0
0.022237
0.258622
69,998
1,832
80
38.208515
0.785837
0.151319
0
0.311344
0
0
0.085834
0.00207
0
0
0
0.001092
0.152856
1
0.085278
false
0.001609
0.051488
0.012872
0.168946
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8a20b188a03474ef2ca2b4263906e89597ed6c86
6,029
py
Python
src/economy/migrations/0027_zettlebalance_zettlereceipt.py
bornhack/bornhack-website
40ed0875f5129a4c8ae1887e33e7dedb4981dadc
[ "BSD-3-Clause" ]
7
2017-04-14T15:28:29.000Z
2021-09-10T09:45:38.000Z
src/economy/migrations/0027_zettlebalance_zettlereceipt.py
bornhack/bornhack-website
40ed0875f5129a4c8ae1887e33e7dedb4981dadc
[ "BSD-3-Clause" ]
799
2016-04-28T09:31:50.000Z
2022-03-29T09:05:02.000Z
src/economy/migrations/0027_zettlebalance_zettlereceipt.py
bornhack/bornhack-website
40ed0875f5129a4c8ae1887e33e7dedb4981dadc
[ "BSD-3-Clause" ]
35
2016-04-28T09:23:53.000Z
2021-05-02T12:36:01.000Z
# Generated by Django 3.2.7 on 2021-09-13 03:52 import uuid from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("economy", "0026_alter_clearhaussettlement_options"), ] operations = [ migrations.CreateModel( name="ZettleBalance",...
35.674556
137
0.379499
423
6,029
5.262411
0.304965
0.061096
0.074124
0.083558
0.510332
0.434412
0.434412
0.404762
0.34681
0.306379
0
0.020727
0.543871
6,029
168
138
35.886905
0.788727
0.007464
0
0.590062
1
0.006211
0.203611
0.006352
0
0
0
0
0
1
0
false
0
0.012422
0
0.031056
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
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
2
8a20b1d12635ada6c636b100e165021b86485320
2,854
py
Python
main.py
vkumarma/Complete-Interpreter
5ec15ea84b0e7e735328511cc504efa43638f720
[ "MIT" ]
null
null
null
main.py
vkumarma/Complete-Interpreter
5ec15ea84b0e7e735328511cc504efa43638f720
[ "MIT" ]
null
null
null
main.py
vkumarma/Complete-Interpreter
5ec15ea84b0e7e735328511cc504efa43638f720
[ "MIT" ]
null
null
null
import re import sys class Lexer: def __init__(self, inp_str): self.index = 0 self.s = inp_str def get_char(self): if self.index < len(self.s): var = self.s[self.index] self.index += 1 return var input_file = open(str(sys.argv[1]), 'r') # Open fi...
23.983193
72
0.590049
383
2,854
4.185379
0.211488
0.204616
0.121647
0.07985
0.46413
0.412352
0.355583
0.213974
0.213974
0.213974
0
0.005261
0.267344
2,854
118
73
24.186441
0.761358
0.061317
0
0.363636
0
0.011364
0.058757
0.035554
0
0
0
0
0
1
0.090909
false
0
0.022727
0.011364
0.204545
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
8a20dee928bb3a353769ebc5d7c40156ab5eb131
306
py
Python
deduplicate.py
Ghostofapacket/NewsGrabber-Deduplicate
0b8152af2e1c6c87cf8540970f42084b96a99d9c
[ "Unlicense" ]
null
null
null
deduplicate.py
Ghostofapacket/NewsGrabber-Deduplicate
0b8152af2e1c6c87cf8540970f42084b96a99d9c
[ "Unlicense" ]
null
null
null
deduplicate.py
Ghostofapacket/NewsGrabber-Deduplicate
0b8152af2e1c6c87cf8540970f42084b96a99d9c
[ "Unlicense" ]
null
null
null
import sys sys.path.append('/usr/local/lib/python3.4/site-packages/') from warc_dedup import deduplicate def main(): if len(sys.argv) == 1: raise Exception('Please provide the WARC file as argument.') deduplicate.Warc(*sys.argv[1:]).deduplicate() if __name__ == '__main__': main()
20.4
68
0.679739
43
306
4.627907
0.697674
0.070352
0.080402
0
0
0
0
0
0
0
0
0.015748
0.169935
306
14
69
21.857143
0.767717
0
0
0
0
0
0.288525
0.127869
0
0
0
0
0
1
0.111111
true
0
0.222222
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
1
0
0
0
0
0
0
1
8a20fc9b93bd3fc7e19c79190d5875b049bc7526
4,136
py
Python
build/lib/FinMesh/usgov/__init__.py
johnjdailey/FinMesh
64048b02bfec1a24de840877b38e82f4fa813d22
[ "MIT" ]
1
2020-08-14T16:09:54.000Z
2020-08-14T16:09:54.000Z
build/lib/FinMesh/usgov/__init__.py
johnjdailey/FinMesh
64048b02bfec1a24de840877b38e82f4fa813d22
[ "MIT" ]
null
null
null
build/lib/FinMesh/usgov/__init__.py
johnjdailey/FinMesh
64048b02bfec1a24de840877b38e82f4fa813d22
[ "MIT" ]
null
null
null
import os import requests import xmltodict import csv import json # # # # # # # # # # # FRED DATA BELOW # # # # # # # # # # # FRED_BASE_URL = 'https://api.stlouisfed.org/fred/' GEOFRED_BASE_URL = 'https://api.stlouisfed.org/geofred/' def append_fred_token(url): token = os.getenv('FRED_TOKEN') return f'{url}&...
44
259
0.676499
573
4,136
4.663176
0.228621
0.02994
0.053518
0.061752
0.242141
0.203219
0.158308
0.147081
0.119386
0.119386
0
0.013392
0.169487
4,136
93
260
44.473118
0.764483
0.138781
0
0.176471
0
0.014706
0.3033
0.122525
0
0
0
0
0
1
0.073529
false
0
0.073529
0
0.220588
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8a22e67655b4062b0aecbc7e8062db32e1383d10
1,268
py
Python
settings.py
Cradac/mattermost-octane-integration
6a3cb4d2e0854cbf190f66467b604e6e4344a907
[ "MIT" ]
null
null
null
settings.py
Cradac/mattermost-octane-integration
6a3cb4d2e0854cbf190f66467b604e6e4344a907
[ "MIT" ]
null
null
null
settings.py
Cradac/mattermost-octane-integration
6a3cb4d2e0854cbf190f66467b604e6e4344a907
[ "MIT" ]
null
null
null
''' This is the Settings File for the Mattermost-Octane Bridge. You can change various variables here to customize and set up the client. ''' '''----------------------Mattermost Webhook Configuration----------------------''' #URL of the webhook from mattermost. To create one go to `Main Menu -> Integrations -> Incom...
34.27027
138
0.706625
184
1,268
4.831522
0.554348
0.008999
0.022497
0
0
0
0
0
0
0
0
0.027726
0.146688
1,268
36
139
35.222222
0.7939
0.656151
0
0
0
0
0.407843
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8a23dbe8e2d12d3a5feea4e2c5b3fc204f837e5d
10
py
Python
python/testData/console/indent7.after.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
2
2019-04-28T07:48:50.000Z
2020-12-11T14:18:08.000Z
python/testData/console/indent7.after.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
173
2018-07-05T13:59:39.000Z
2018-08-09T01:12:03.000Z
python/testData/console/indent7.after.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
2
2020-03-15T08:57:37.000Z
2020-04-07T04:48:14.000Z
print(1)
10
10
0.6
2
10
3
1
0
0
0
0
0
0
0
0
0
0
0.125
0.2
10
1
10
10
0.625
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
1
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
1
0
5