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
7d702e229890e1a0e38bb9dc45ff5dead9dc3d80
14,391
py
Python
hatspil/core/utils.py
dodomorandi/hatspil
99c4d255b3f9836b32506636c84b16b3456bd74c
[ "MIT" ]
2
2018-12-20T08:54:17.000Z
2019-10-19T18:35:33.000Z
hatspil/core/utils.py
dodomorandi/hatspil
99c4d255b3f9836b32506636c84b16b3456bd74c
[ "MIT" ]
null
null
null
hatspil/core/utils.py
dodomorandi/hatspil
99c4d255b3f9836b32506636c84b16b3456bd74c
[ "MIT" ]
null
null
null
"""A collection of utility function, shared across modules.""" import collections import datetime import gzip as gz import logging import os import re import shutil import subprocess from argparse import ArgumentTypeError from copy import deepcopy from logging import Logger from typing import (Any, Callable, Dict, Gene...
32.485327
87
0.625599
1,892
14,391
4.664905
0.180233
0.02266
0.022094
0.008158
0.241332
0.175391
0.153637
0.119533
0.049739
0.032064
0
0.008063
0.276075
14,391
442
88
32.558824
0.839125
0.350636
0
0.205761
0
0
0.047538
0.008036
0
0
0
0
0.020576
1
0.09465
false
0
0.061728
0
0.345679
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
7d7258deda24afb1f717d1778a24d42c5aaa3305
2,556
py
Python
DistrictData.py
robbierobinette/rcv-tensorflow
984852902f465bb6f61ba863e4b76092249911d0
[ "MIT" ]
null
null
null
DistrictData.py
robbierobinette/rcv-tensorflow
984852902f465bb6f61ba863e4b76092249911d0
[ "MIT" ]
null
null
null
DistrictData.py
robbierobinette/rcv-tensorflow
984852902f465bb6f61ba863e4b76092249911d0
[ "MIT" ]
null
null
null
import csv from typing import List from CombinedPopulation import CombinedPopulation from PopulationGroup import PopulationGroup, Democrats, Republicans, Independents class DistrictVotingRecord: def __init__(self, district: str, incumbent: str, expected_lean: flo...
29.72093
103
0.534429
318
2,556
4.166667
0.27044
0.036226
0.016604
0.018113
0.051321
0.030189
0.030189
0
0
0
0
0.056872
0.339593
2,556
85
104
30.070588
0.728081
0
0
0.029412
0
0
0.023865
0
0
0
0
0
0
1
0.088235
false
0
0.058824
0
0.205882
0.058824
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7d7502212e99f51f8f089c24fff476d5cecb479f
5,137
py
Python
warehouse/email/services.py
pradyunsg/warehouse
82815b06d9f98deed5f205c66e054de59d22a10d
[ "Apache-2.0" ]
1
2022-03-29T11:56:45.000Z
2022-03-29T11:56:45.000Z
warehouse/email/services.py
pradyunsg/warehouse
82815b06d9f98deed5f205c66e054de59d22a10d
[ "Apache-2.0" ]
358
2022-01-03T05:30:40.000Z
2022-03-31T05:40:50.000Z
warehouse/email/services.py
anthonysidesap/warehouse
140a2cc3cc007daca5f7fa2878a43e7e152d8959
[ "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 the Li...
32.308176
87
0.647265
589
5,137
5.512733
0.320883
0.03203
0.035417
0.038189
0.160148
0.119495
0.089313
0.089313
0.089313
0.089313
0
0.002896
0.260658
5,137
158
88
32.512658
0.852027
0.134514
0
0.155172
0
0
0.072218
0.019183
0
0
0
0
0
1
0.103448
false
0
0.103448
0.008621
0.293103
0.008621
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7d765dcd0b83ec7b2f5cef707b8de57d0e0211e3
1,399
py
Python
model/rcnn/network.py
da-h/tf-boilerplate
ab8409c935d3fcbed07bbefd1cb0049d45283222
[ "MIT" ]
null
null
null
model/rcnn/network.py
da-h/tf-boilerplate
ab8409c935d3fcbed07bbefd1cb0049d45283222
[ "MIT" ]
null
null
null
model/rcnn/network.py
da-h/tf-boilerplate
ab8409c935d3fcbed07bbefd1cb0049d45283222
[ "MIT" ]
null
null
null
import tensorflow as tf import tensorflow.contrib.layers as tfl """Copied from the almighty Christian Hundt; CECAM/CSM/IRTG School 2018: Machine Learning in Scientific Computing https://github.com/CECAML/school_nierstein_2018/blob/master/Convnet%20TF.ipynb """ def prelu(net): alpha = tf.Variable(0.0, dtype=net....
31.795455
104
0.717655
215
1,399
4.530233
0.465116
0.061602
0.087269
0.102669
0.282341
0.258727
0.161191
0.084189
0.084189
0
0
0.032618
0.167262
1,399
43
105
32.534884
0.803433
0.113653
0
0
0
0
0.011561
0
0
0
0
0
0
1
0.15
false
0
0.1
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7d76a9eff5e5d91d0da51d617aa1f132efbb6c52
517
py
Python
app/application.py
dulin/tornado-test
8ceeb9f2b50b4cd0f18baa9149140721feec1925
[ "MIT" ]
null
null
null
app/application.py
dulin/tornado-test
8ceeb9f2b50b4cd0f18baa9149140721feec1925
[ "MIT" ]
null
null
null
app/application.py
dulin/tornado-test
8ceeb9f2b50b4cd0f18baa9149140721feec1925
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # -*- mode: python -*- import tornado.web from app.views import HelloWorld from app.ws.communication import CommunicationSocketHandler class Application(tornado.web.Application): def __init__(self, db=None): self.db = db handlers = [ (r"/...
23.5
63
0.599613
51
517
5.921569
0.627451
0.066225
0
0
0
0
0
0
0
0
0
0.002639
0.266925
517
21
64
24.619048
0.794195
0.121857
0
0
0
0
0.006652
0
0
0
0
0
0
1
0.071429
false
0
0.214286
0
0.357143
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
7d76d0e887ea0135157eb8f9b5b96280465e3061
31,326
py
Python
python-fmclient/fmclient/fmclient/common/wrapping_formatters.py
starlingx/fault
6105f83a85a8ca2e5ed8f33e0f5ed5455c8f0e17
[ "Apache-2.0" ]
2
2020-02-07T19:02:07.000Z
2021-05-28T15:44:48.000Z
python-fmclient/fmclient/fmclient/common/wrapping_formatters.py
starlingx/fault
6105f83a85a8ca2e5ed8f33e0f5ed5455c8f0e17
[ "Apache-2.0" ]
null
null
null
python-fmclient/fmclient/fmclient/common/wrapping_formatters.py
starlingx/fault
6105f83a85a8ca2e5ed8f33e0f5ed5455c8f0e17
[ "Apache-2.0" ]
null
null
null
# # Copyright (c) 2018 Wind River Systems, Inc. # # SPDX-License-Identifier: Apache-2.0 # """ Manages WrapperFormatter objects. WrapperFormatter objects can be used for wrapping CLI column celldata in order for the CLI table (using prettyTable) to fit the terminal screen The basic idea is: Once celldata is retri...
38.721879
137
0.632925
3,796
31,326
4.965227
0.122497
0.023557
0.010187
0.012256
0.352557
0.269365
0.216946
0.183521
0.166914
0.1493
0
0.004147
0.291738
31,326
808
138
38.769802
0.84536
0.270255
0
0.225383
0
0.008753
0.052061
0.007171
0
0
0
0.001238
0
1
0.129103
false
0
0.021882
0.026258
0.306346
0.004376
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7d77a229da1b2cdc8c56a9c402927cc2d1140814
2,139
py
Python
simple.py
vaiorabbit/python-glfw
b5984650e976f4702c3dc06db7115aebc13698ca
[ "Zlib" ]
null
null
null
simple.py
vaiorabbit/python-glfw
b5984650e976f4702c3dc06db7115aebc13698ca
[ "Zlib" ]
null
null
null
simple.py
vaiorabbit/python-glfw
b5984650e976f4702c3dc06db7115aebc13698ca
[ "Zlib" ]
1
2020-03-04T08:59:15.000Z
2020-03-04T08:59:15.000Z
# Ref.: https://github.com/vaiorabbit/ruby-opengl/blob/master/sample/simple.rb from ctypes import * from OpenGL.GL import * import GLFW from GLFW import * def key_callback_fn(window_handle, key, scancode, action, mods): if key == GLFW_KEY_ESCAPE and action == GLFW_PRESS: glfwSetWindowShouldClose(window_han...
28.905405
78
0.632071
260
2,139
5.019231
0.407692
0.030651
0.022989
0.015326
0.100383
0.098084
0.045977
0.045977
0.045977
0.045977
0
0.043179
0.252922
2,139
73
79
29.30137
0.773467
0.035531
0
0.035714
0
0
0.015526
0
0
0
0
0
0
1
0.035714
false
0
0.071429
0
0.107143
0.071429
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7d78bb6905459ba9f8b320facebb6b0cf69eca83
3,401
py
Python
src/arche/readers/schema.py
WinterComes/arche
6be3d7a4ec66f33f7af544aa7af4ea95c35bef2e
[ "MIT" ]
52
2019-03-18T21:12:59.000Z
2022-01-24T05:49:23.000Z
src/arche/readers/schema.py
WinterComes/arche
6be3d7a4ec66f33f7af544aa7af4ea95c35bef2e
[ "MIT" ]
173
2019-03-18T15:50:14.000Z
2019-12-09T18:03:07.000Z
src/arche/readers/schema.py
WinterComes/arche
6be3d7a4ec66f33f7af544aa7af4ea95c35bef2e
[ "MIT" ]
21
2019-03-20T17:14:22.000Z
2022-01-30T18:33:22.000Z
from collections import defaultdict from enum import Enum import json import pprint from typing import Dict, List, Union, Any, Set, DefaultDict from arche.tools import s3 import perfect_jsonschema EXTENDED_KEYWORDS = {"tag", "unique", "coverage_percentage"} SchemaObject = Dict[str, Union[str, bool, int, float, None,...
31.490741
95
0.605116
409
3,401
4.877751
0.281174
0.054135
0.015038
0.027068
0
0
0
0
0
0
0
0.004549
0.289033
3,401
107
96
31.785047
0.820513
0
0
0.079545
0
0
0.112026
0.020582
0
0
0
0
0
1
0.102273
false
0
0.079545
0.022727
0.386364
0.034091
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7d7a5b43416629a61d913d56e3d15ecd4f2e0f5f
5,620
py
Python
tensorflow_probability/python/mcmc/eight_schools_hmc.py
hephaex/probability
740d0db0bf2b1e1a04cfd0b55481c44380b3cb05
[ "Apache-2.0" ]
4
2019-03-07T05:15:13.000Z
2019-06-13T20:35:45.000Z
tensorflow_probability/python/mcmc/eight_schools_hmc.py
hephaex/probability
740d0db0bf2b1e1a04cfd0b55481c44380b3cb05
[ "Apache-2.0" ]
2
2019-08-01T18:31:41.000Z
2019-08-01T19:42:15.000Z
tensorflow_probability/python/mcmc/eight_schools_hmc.py
hephaex/probability
740d0db0bf2b1e1a04cfd0b55481c44380b3cb05
[ "Apache-2.0" ]
1
2019-09-18T15:17:53.000Z
2019-09-18T15:17:53.000Z
# Copyright 2018 The TensorFlow Probability Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
34.691358
80
0.724377
740
5,620
5.128378
0.278378
0.075889
0.071146
0.075889
0.350988
0.296179
0.249802
0.147036
0.147036
0.130435
0
0.016738
0.170819
5,620
161
81
34.906832
0.797639
0.205516
0
0.138889
0
0
0.084769
0.064597
0
0
0
0
0
1
0.101852
false
0
0.064815
0
0.222222
0.009259
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7d7a5e990271c6f1b8c5e7eefd58b31203c16bfb
16,456
py
Python
src/pyspex/dem_io.py
rmvanhees/pyspex
1e1370e57d131dba6880bdf7a56808e5ce638ca5
[ "BSD-3-Clause" ]
null
null
null
src/pyspex/dem_io.py
rmvanhees/pyspex
1e1370e57d131dba6880bdf7a56808e5ce638ca5
[ "BSD-3-Clause" ]
1
2022-02-06T14:21:48.000Z
2022-03-22T15:19:40.000Z
src/pyspex/dem_io.py
rmvanhees/pyspex
1e1370e57d131dba6880bdf7a56808e5ce638ca5
[ "BSD-3-Clause" ]
null
null
null
""" This file is part of pyspex https://github.com/rmvanhees/pyspex.git Python implementation to read SPEXone DEM output Copyright (c) 2019-2021 SRON - Netherlands Institute for Space Research All Rights Reserved License: BSD-3-Clause """ from pathlib import Path import numpy as np from .lib.tmtc_def import t...
34.426778
79
0.49131
1,931
16,456
3.932677
0.206111
0.066368
0.044245
0.005531
0.185278
0.146168
0.114432
0.092705
0.085594
0.070055
0
0.052977
0.342732
16,456
477
80
34.498952
0.649131
0.214268
0
0.060498
0
0
0.21692
0.002316
0
0
0.002894
0
0
1
0.067616
false
0.010676
0.010676
0
0.145907
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
7d7bdf74580e44ae7e0eab89dc294d34670eb290
7,827
py
Python
tests/util/test_parsing_helpers.py
lkattis-signal/SignalSDK
f085b9cae0495f4e016b9982df271efc6fd0a8f5
[ "Apache-2.0" ]
10
2020-09-29T06:36:45.000Z
2022-03-14T18:15:50.000Z
tests/util/test_parsing_helpers.py
lkattis-signal/SignalSDK
f085b9cae0495f4e016b9982df271efc6fd0a8f5
[ "Apache-2.0" ]
53
2020-10-08T10:05:00.000Z
2022-03-29T14:21:18.000Z
tests/util/test_parsing_helpers.py
lkattis-signal/SignalSDK
f085b9cae0495f4e016b9982df271efc6fd0a8f5
[ "Apache-2.0" ]
5
2020-09-25T07:48:04.000Z
2021-11-23T07:08:56.000Z
from dataclasses import dataclass, field from datetime import datetime, timezone from typing import Union, Type, List, Optional, Any, Tuple import pytest from signal_ocean.util import parsing_helpers @pytest.mark.parametrize("cap_words, snake_cased", [('VesselTypeId', 'vessel_type_id'), ...
36.919811
84
0.54542
827
7,827
4.957678
0.140266
0.046341
0.058537
0.058537
0.684146
0.619024
0.568293
0.495854
0.45439
0.419512
0
0.026167
0.321324
7,827
211
85
37.094787
0.74567
0
0
0.389222
0
0
0.08279
0.006133
0
0
0
0
0.11976
1
0.083832
false
0
0.02994
0
0.287425
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
7d7ca170be35a492481ffa204124b3d8dffb5cdc
2,931
py
Python
density-based/train.py
ramonpeter/UnbinnedMeasurements
31c0a8125d48216718c22721cba63544d6b8897a
[ "MIT" ]
null
null
null
density-based/train.py
ramonpeter/UnbinnedMeasurements
31c0a8125d48216718c22721cba63544d6b8897a
[ "MIT" ]
null
null
null
density-based/train.py
ramonpeter/UnbinnedMeasurements
31c0a8125d48216718c22721cba63544d6b8897a
[ "MIT" ]
null
null
null
import tensorflow as tf import pandas as pd import numpy as np import sys import time from cflow import ConditionalFlow from MoINN.modules.subnetworks import DenseSubNet from utils import train_density_estimation, plot_loss, plot_tau_ratio # import data tau1_gen = np.reshape(np.load("../data/tau1s_Pythia_gen.npy"), ...
32.566667
113
0.702491
448
2,931
4.354911
0.321429
0.039467
0.022553
0.030753
0.210149
0.102512
0.096361
0
0
0
0
0.030084
0.149437
2,931
90
114
32.566667
0.752507
0.068236
0
0
0
0
0.114947
0.041131
0
0
0
0
0
1
0
false
0
0.131148
0
0.131148
0.065574
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7d7cdf2a362ccd086f161b36591ea27b0857e365
2,408
py
Python
assignment5/code/src/decoder.py
jschmidtnj/cs584
d1d4d485d1fac8743cdbbc2996792db249dcf389
[ "MIT" ]
null
null
null
assignment5/code/src/decoder.py
jschmidtnj/cs584
d1d4d485d1fac8743cdbbc2996792db249dcf389
[ "MIT" ]
null
null
null
assignment5/code/src/decoder.py
jschmidtnj/cs584
d1d4d485d1fac8743cdbbc2996792db249dcf389
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ decoder file decoder class """ import tensorflow as tf class BahdanauAttention(tf.keras.layers.Layer): def __init__(self, units): """ attention layer from Bahdanau paper """ super().__init__() self.w1 = tf.keras.layers.Dense(units) self....
31.684211
102
0.581395
272
2,408
4.933824
0.290441
0.046945
0.077496
0.053651
0.149031
0.116244
0.076006
0.076006
0.076006
0
0
0.007917
0.318106
2,408
75
103
32.106667
0.809379
0.097176
0
0.1
0
0
0.00675
0
0
0
0
0
0
1
0.1
false
0
0.025
0
0.225
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
7d7cfad6e60102e07f57c14396b2297a35ac5b1c
2,203
py
Python
camos/model/inputdata.py
danilexn/camos
88d2457d3d71bb9f60a9b376a4b2dbeb611fd90d
[ "MIT" ]
1
2022-01-18T09:43:24.000Z
2022-01-18T09:43:24.000Z
camos/model/inputdata.py
danilexn/camos
88d2457d3d71bb9f60a9b376a4b2dbeb611fd90d
[ "MIT" ]
null
null
null
camos/model/inputdata.py
danilexn/camos
88d2457d3d71bb9f60a9b376a4b2dbeb611fd90d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Created on Sat Jun 05 2021 # Last modified on Mon Jun 07 2021 # Copyright (c) CaMOS Development Team. All Rights Reserved. # Distributed under a MIT License. See LICENSE for more info. import numpy as np import camos.model.image as img from camos.utils.apptools import getGui class InputData...
34.968254
177
0.625057
284
2,203
4.802817
0.503521
0.032991
0.016129
0
0
0
0
0
0
0
0
0.013505
0.294144
2,203
62
178
35.532258
0.863666
0.477531
0
0
0
0
0.040856
0.026265
0
0
0
0
0
1
0.1
false
0
0.1
0
0.266667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7d7f83cb6c3e80ad4e030d0441da9a9587d821b7
10,462
py
Python
src/compas_fab/backends/ros/messages/services.py
Kathrin3010/compas_fab
18230b70479ab57635b24832762c340e41102c10
[ "MIT" ]
null
null
null
src/compas_fab/backends/ros/messages/services.py
Kathrin3010/compas_fab
18230b70479ab57635b24832762c340e41102c10
[ "MIT" ]
null
null
null
src/compas_fab/backends/ros/messages/services.py
Kathrin3010/compas_fab
18230b70479ab57635b24832762c340e41102c10
[ "MIT" ]
null
null
null
from __future__ import absolute_import from .geometry_msgs import PoseStamped from .moveit_msgs import Constraints from .moveit_msgs import MoveItErrorCodes from .moveit_msgs import PlannerParams from .moveit_msgs import PlanningScene from .moveit_msgs import PlanningSceneComponents from .moveit_msgs import PositionIK...
45.290043
124
0.677882
1,213
10,462
5.549876
0.14427
0.050505
0.022876
0.027778
0.410131
0.374332
0.327243
0.295306
0.279857
0.270945
0
0.013549
0.209903
10,462
230
125
45.486957
0.800871
0.38874
0
0.241667
0
0
0.031577
0
0
0
0
0
0
1
0.141667
false
0
0.116667
0.008333
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7d813b04029d3a96ccc4d0891812f3cdb0a8afd7
385
py
Python
Photo.py
Matsoy/hashcode2019-qualificationRound
e663c93987dda07fafddf6ca006278d4aa0f1b26
[ "Unlicense" ]
null
null
null
Photo.py
Matsoy/hashcode2019-qualificationRound
e663c93987dda07fafddf6ca006278d4aa0f1b26
[ "Unlicense" ]
null
null
null
Photo.py
Matsoy/hashcode2019-qualificationRound
e663c93987dda07fafddf6ca006278d4aa0f1b26
[ "Unlicense" ]
null
null
null
class Photo: def __init__(self, lid, tags_list, orientation): """ Constructor :param lid: Photo identifier :param tags_list: List of tags :param orientation: Orientation. "H" for horizontal or "V" for vertical """ self.id = lid self...
32.083333
79
0.566234
41
385
5.121951
0.487805
0.152381
0
0
0
0
0
0
0
0
0
0
0.355844
385
12
80
32.083333
0.846774
0.4
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7d8144c38e98997db49f5fa507e926dc5ff5e76c
979
py
Python
bert/tasks/read_file.py
rschoon/bert
5aeb394dd7c1fcf5995d2f7cd6a25ef3ac81ce13
[ "MIT" ]
null
null
null
bert/tasks/read_file.py
rschoon/bert
5aeb394dd7c1fcf5995d2f7cd6a25ef3ac81ce13
[ "MIT" ]
null
null
null
bert/tasks/read_file.py
rschoon/bert
5aeb394dd7c1fcf5995d2f7cd6a25ef3ac81ce13
[ "MIT" ]
null
null
null
import tarfile import tempfile from . import Task, TaskVar class TaskReadFile(Task, name="read-file"): """ Read contents of a file in the image into a variable. """ class Schema: path = TaskVar(help="Container file path to read data from") var = TaskVar(help="Destination variable nam...
27.971429
81
0.544433
117
979
4.521368
0.547009
0.041588
0
0
0
0
0
0
0
0
0
0.004717
0.350358
979
34
82
28.794118
0.827044
0.054137
0
0
0
0
0.115512
0
0
0
0
0
0
1
0.045455
false
0
0.136364
0
0.272727
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7d8289a62a068949c34be79180a4077eeeb19299
8,610
py
Python
p2m/layers.py
dipaco/single-viewTo3D
923a769afedd95651cc11c72bf4e744c783de87f
[ "Apache-2.0" ]
null
null
null
p2m/layers.py
dipaco/single-viewTo3D
923a769afedd95651cc11c72bf4e744c783de87f
[ "Apache-2.0" ]
null
null
null
p2m/layers.py
dipaco/single-viewTo3D
923a769afedd95651cc11c72bf4e744c783de87f
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2019 Nanyang Wang, Yinda Zhang, Zhuwen Li, Yanwei Fu, Wei Liu, Yu-Gang Jiang, Fudan University # # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may no...
32.126866
111
0.617073
1,273
8,610
4.041634
0.216025
0.020408
0.019242
0.019825
0.299903
0.24587
0.202721
0.179592
0.154325
0.123226
0
0.046901
0.237282
8,610
267
112
32.247191
0.736562
0.177003
0
0.124183
0
0
0.026931
0
0
0
0
0
0.006536
1
0.091503
false
0
0.013072
0.006536
0.196078
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
7d82c9d35fc41989289ca1ca70bcd714b7bacd76
6,477
py
Python
models/swarm_algorithm.py
AlexanderKlanovets/swarm_algorithms
8da851baccd4d074c747b7d2b4df9952918fab31
[ "MIT" ]
9
2019-10-29T13:30:57.000Z
2022-01-30T14:23:26.000Z
models/swarm_algorithm.py
AlexanderKlanovets/swarm_algorithms
8da851baccd4d074c747b7d2b4df9952918fab31
[ "MIT" ]
2
2021-06-08T22:11:11.000Z
2022-03-12T00:44:37.000Z
models/swarm_algorithm.py
AlexanderKlanovets/swarm_algorithms
8da851baccd4d074c747b7d2b4df9952918fab31
[ "MIT" ]
2
2020-02-11T09:26:48.000Z
2020-05-11T17:47:22.000Z
from abc import ABC, abstractmethod import numpy as np class SwarmAlgorithm(ABC): ''' A base abstract class for different swarm algorithms. Parameters ---------- D : int Search space dimension. N : int Population size. fit_func : callable Fitness (objective) functi...
28.407895
79
0.589007
731
6,477
5.090287
0.27223
0.029562
0.014781
0.038968
0.135985
0.036012
0.016662
0
0
0
0
0.005251
0.323761
6,477
227
80
28.53304
0.844292
0.469971
0
0.068966
0
0
0.056879
0.008839
0
0
0
0
0
1
0.155172
false
0.034483
0.034483
0
0.241379
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
7d8352a4615e2d80df5904ec6e1dc6850549b6ea
1,376
py
Python
Python-3/basic_examples/strings/python_str_to_datetime.py
ghiloufibelgacem/jornaldev
b9b27f9f7da595892520314b4ed1d2675556310a
[ "MIT" ]
1,139
2018-05-09T11:54:36.000Z
2022-03-31T06:52:50.000Z
Python-3/basic_examples/strings/python_str_to_datetime.py
iamharshverma/journaldev
af24242a1ac1b7dc3e8e2404ec916b77ccf5044a
[ "MIT" ]
56
2018-06-20T03:52:53.000Z
2022-02-09T22:57:41.000Z
Python-3/basic_examples/strings/python_str_to_datetime.py
iamharshverma/journaldev
af24242a1ac1b7dc3e8e2404ec916b77ccf5044a
[ "MIT" ]
2,058
2018-05-09T09:32:17.000Z
2022-03-29T13:19:42.000Z
from datetime import datetime # string to datetime object datetime_str = '09/19/18 13:55:26' datetime_object = datetime.strptime(datetime_str, '%m/%d/%y %H:%M:%S') print(type(datetime_object)) print(datetime_object) # printed in default format # string to date object date_str = '09-19-2018' date_object = datetime...
24.571429
70
0.713663
225
1,376
4.204444
0.253333
0.103594
0.116279
0.095137
0.290698
0.207188
0.188161
0.141649
0.093023
0
0
0.051581
0.126453
1,376
55
71
25.018182
0.735441
0.180959
0
0.181818
0
0
0.196237
0
0
0
0
0
0
1
0
false
0
0.090909
0
0.090909
0.363636
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7d85e7f96f3d8e7fbfc3a65a4dfc184c2bae42cc
7,697
py
Python
vnpy/app/cta_strategy/strategies/tsmyo_bias_accu_strategy.py
TheSuperMyo/vnpy
e38b7f4de879f1756aa664d5dfe7e0bec65c9a1b
[ "MIT" ]
null
null
null
vnpy/app/cta_strategy/strategies/tsmyo_bias_accu_strategy.py
TheSuperMyo/vnpy
e38b7f4de879f1756aa664d5dfe7e0bec65c9a1b
[ "MIT" ]
null
null
null
vnpy/app/cta_strategy/strategies/tsmyo_bias_accu_strategy.py
TheSuperMyo/vnpy
e38b7f4de879f1756aa664d5dfe7e0bec65c9a1b
[ "MIT" ]
null
null
null
from datetime import time from vnpy.app.cta_strategy import ( CtaTemplate, StopOrder, TickData, BarData, TradeData, OrderData, BarGenerator, ArrayManager ) from vnpy.app.cta_strategy.base import ( EngineType, STOPORDER_PREFIX, StopOrder, StopOrderStatus, ) from vnpy.app.c...
31.545082
127
0.572951
934
7,697
4.503212
0.216274
0.049929
0.089872
0.052306
0.390632
0.315026
0.315026
0.273657
0.273657
0.261531
0
0.018587
0.328959
7,697
244
128
31.545082
0.795741
0.070547
0
0.290123
0
0.006173
0.039321
0.014364
0
0
0
0
0
1
0.061728
false
0
0.030864
0
0.358025
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
7d86bb1a8869218343e11c5b17e9cc10ddeac450
4,249
py
Python
test/test-beam-dataflow-nlp.py
tarrade/proj_NLP_text_classification_with_GCP
ac09d6dbf8c07470d03cfb8140a26db7cd5bef9f
[ "Apache-2.0" ]
1
2020-07-19T16:10:19.000Z
2020-07-19T16:10:19.000Z
test/test-beam-dataflow-nlp.py
tarrade/proj_NLP_text_classification_with_GCP
ac09d6dbf8c07470d03cfb8140a26db7cd5bef9f
[ "Apache-2.0" ]
46
2019-11-01T08:53:32.000Z
2022-01-15T10:27:56.000Z
test/test-beam-dataflow-nlp.py
tarrade/proj_NLP_text_classification_with_GCP
ac09d6dbf8c07470d03cfb8140a26db7cd5bef9f
[ "Apache-2.0" ]
null
null
null
import sys import os import pathlib import logging import subprocess import datetime import apache_beam as beam from apache_beam.options.pipeline_options import PipelineOptions from apache_beam.options.pipeline_options import StandardOptions from apache_beam.options.pipeline_options import GoogleCloudOptions from apach...
35.408333
221
0.676865
510
4,249
5.498039
0.380392
0.022468
0.038516
0.029957
0.189372
0.126961
0.113409
0
0
0
0
0.00324
0.200988
4,249
119
222
35.705882
0.82268
0.26265
0
0
0
0
0.223339
0.03436
0.012346
0
0
0
0
1
0.024691
false
0
0.148148
0
0.185185
0.098765
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7d87158e11ce4ed100a35dda4334c28bbf1bf852
3,882
py
Python
slixmpp/plugins/xep_0405/mix_pam.py
anirudhrata/slixmpp
1fcee0e80a212eeb274d2f560e69099d8a61bf7f
[ "BSD-3-Clause" ]
86
2016-07-04T13:26:02.000Z
2022-02-19T10:26:21.000Z
slixmpp/plugins/xep_0405/mix_pam.py
anirudhrata/slixmpp
1fcee0e80a212eeb274d2f560e69099d8a61bf7f
[ "BSD-3-Clause" ]
10
2016-09-30T18:55:41.000Z
2020-05-01T14:22:47.000Z
slixmpp/plugins/xep_0405/mix_pam.py
anirudhrata/slixmpp
1fcee0e80a212eeb274d2f560e69099d8a61bf7f
[ "BSD-3-Clause" ]
45
2016-09-30T18:48:41.000Z
2022-03-18T21:39:33.000Z
# Slixmpp: The Slick XMPP Library # Copyright (C) 2020 Mathieu Pasquet <mathieui@mathieui.net> # This file is part of Slixmpp. # See the file LICENSE for copying permission. from typing import ( List, Optional, Set, Tuple, ) from slixmpp import JID, Iq from slixmpp.exceptions import IqError, IqTimeout ...
34.660714
95
0.580629
470
3,882
4.710638
0.27234
0.028907
0.04065
0.020325
0.214995
0.159892
0.159892
0.159892
0.159892
0.069557
0
0.013388
0.307316
3,882
111
96
34.972973
0.809967
0.047398
0
0.189189
0
0
0.101454
0.026768
0
0
0
0
0
1
0.013514
false
0
0.094595
0
0.243243
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7d872614c5ec53276181d661d5d56268e35d080a
1,360
py
Python
MoraisParkingPython/view/funcoes_areas.py
larissacauane/Morais-Parking-Python
9063845cabef10459dde76b53d3a51975788a54d
[ "MIT" ]
null
null
null
MoraisParkingPython/view/funcoes_areas.py
larissacauane/Morais-Parking-Python
9063845cabef10459dde76b53d3a51975788a54d
[ "MIT" ]
null
null
null
MoraisParkingPython/view/funcoes_areas.py
larissacauane/Morais-Parking-Python
9063845cabef10459dde76b53d3a51975788a54d
[ "MIT" ]
null
null
null
from control.controller_veiculos import ControllerVeiculos from control.controller_proprietario import ControllerProprietario from control.controller_area import ControllerAreaEstacionamento from model.constants import * controller_veiculo = ControllerVeiculos() controller_proprietario = ControllerProprietario() cont...
32.380952
73
0.675735
151
1,360
5.92053
0.403974
0.067114
0.07047
0.040268
0
0
0
0
0
0
0
0.008204
0.193382
1,360
41
74
33.170732
0.806746
0
0
0.125
0
0
0.215181
0
0
0
0
0
0
1
0.0625
false
0
0.125
0
0.21875
0.21875
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7d889fb0ab0b91db363297f53747bd0adaa5fe54
2,811
py
Python
tests/gold_tests/h2/h2spec.test.py
a-canary/trafficserver
df01ace2b0bdffd3ddcc5b2c7587b6d6fed5234c
[ "Apache-2.0" ]
null
null
null
tests/gold_tests/h2/h2spec.test.py
a-canary/trafficserver
df01ace2b0bdffd3ddcc5b2c7587b6d6fed5234c
[ "Apache-2.0" ]
null
null
null
tests/gold_tests/h2/h2spec.test.py
a-canary/trafficserver
df01ace2b0bdffd3ddcc5b2c7587b6d6fed5234c
[ "Apache-2.0" ]
null
null
null
''' Test HTTP/2 with h2spec ''' # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version...
37.48
121
0.743863
419
2,811
4.918854
0.448687
0.037361
0.038816
0.055798
0.127608
0.040757
0.040757
0.040757
0.040757
0
0
0.021408
0.135895
2,811
74
122
37.986486
0.827089
0.400213
0
0
0
0.029412
0.376513
0.194915
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
7d8a92045f001897812e0811e27aaab163f27e32
576
py
Python
examples/02/client.py
cjrh/aiosmartsock
a4ab5ffe5b673ada2a3002d7a9cb68ee1ea4a48f
[ "Apache-2.0" ]
9
2019-03-25T23:25:08.000Z
2022-01-17T00:49:26.000Z
examples/02/client.py
cjrh/aiomsg
74b646675e3d7296f0334d3e17c1be0370c5d852
[ "Apache-2.0" ]
33
2019-04-13T02:31:07.000Z
2022-03-21T19:12:14.000Z
examples/02/client.py
cjrh/aiosmartsock
a4ab5ffe5b673ada2a3002d7a9cb68ee1ea4a48f
[ "Apache-2.0" ]
1
2021-04-26T09:07:36.000Z
2021-04-26T09:07:36.000Z
import logging import itertools import asyncio import random import aiomsg import aiorun logging.basicConfig(level="DEBUG") async def main(): s = aiomsg.Søcket(send_mode=aiomsg.SendMode.ROUNDROBIN) await s.connect() async def receiver(): while True: msg = await s.recv_string() ...
19.2
59
0.65625
76
576
4.894737
0.605263
0.048387
0
0
0
0
0
0
0
0
0
0.008989
0.227431
576
29
60
19.862069
0.826966
0
0
0
0
0
0.03125
0
0
0
0
0
0
1
0
false
0
0.3
0
0.3
0.05
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7d8b956b2e624082889be95139c9c63feed50163
1,901
py
Python
data_structures/class_dependency_injection.py
miguelgfierro/pybase
de8e4f11ed5c655e748178e65195c7e70a9c98af
[ "BSD-3-Clause" ]
14
2020-02-07T21:36:39.000Z
2022-03-12T22:37:04.000Z
data_structures/class_dependency_injection.py
miguelgfierro/pybase
de8e4f11ed5c655e748178e65195c7e70a9c98af
[ "BSD-3-Clause" ]
19
2019-05-18T23:58:30.000Z
2022-01-09T16:45:35.000Z
data_structures/class_dependency_injection.py
miguelgfierro/pybase
de8e4f11ed5c655e748178e65195c7e70a9c98af
[ "BSD-3-Clause" ]
5
2020-10-06T06:10:27.000Z
2021-07-08T12:58:46.000Z
# Dependency injection: # Technique where one object (or static method) supplies the dependencies of another object. # The objective is to decouple objects to the extent that no client code has to be changed # simply because an object it depends on needs to be changed to a different one. # Dependency injection is one f...
35.203704
146
0.678064
269
1,901
4.669145
0.453532
0.031847
0.051752
0.025478
0.076433
0.076433
0
0
0
0
0
0.020619
0.234613
1,901
53
147
35.867925
0.842612
0.536034
0
0.148148
0
0
0.100694
0
0
0
0
0
0
1
0.111111
false
0.037037
0
0.074074
0.333333
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7d8c33c577dc39007eec8277d366b069630608c1
1,773
py
Python
backend/risk_factors/tasks.py
Doctorinna/backend
cfff4fe751d668dcaf4834ebb730f5158c26e201
[ "MIT" ]
24
2021-09-13T06:16:44.000Z
2022-01-08T08:56:04.000Z
backend/risk_factors/tasks.py
Doctorinna/backend
cfff4fe751d668dcaf4834ebb730f5158c26e201
[ "MIT" ]
32
2021-09-28T05:33:00.000Z
2021-12-12T09:51:09.000Z
backend/risk_factors/tasks.py
Doctorinna/backend
cfff4fe751d668dcaf4834ebb730f5158c26e201
[ "MIT" ]
1
2021-10-04T21:52:15.000Z
2021-10-04T21:52:15.000Z
from .utils import (get_prescription, get_attributes, get_group) from .models import Disease, Result, Score, Question, SurveyResponse from .analysis import cardio_risk_group, diabetes_risk_group, stroke_risk_group from statistics import mean from celery import shared_task @shared_task def worker(session_id): df, ...
34.764706
79
0.668359
201
1,773
5.636816
0.308458
0.079435
0.056487
0.063548
0.082966
0.056487
0
0
0
0
0
0.005197
0.240271
1,773
50
80
35.46
0.835932
0
0
0
0
0
0.084038
0
0
0
0
0
0
1
0.02381
false
0
0.119048
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7d8fe3a63259aba89e6864813dbcb43ee8122092
2,117
py
Python
stests/chain/set_transfer_native.py
goral09/stests
4de26485535cadf1b708188a7133a976536ccba3
[ "Apache-2.0" ]
4
2020-03-10T15:28:17.000Z
2021-10-02T11:41:17.000Z
stests/chain/set_transfer_native.py
goral09/stests
4de26485535cadf1b708188a7133a976536ccba3
[ "Apache-2.0" ]
1
2020-03-25T11:31:44.000Z
2020-03-25T11:31:44.000Z
stests/chain/set_transfer_native.py
goral09/stests
4de26485535cadf1b708188a7133a976536ccba3
[ "Apache-2.0" ]
9
2020-02-25T18:43:42.000Z
2021-08-10T17:08:42.000Z
import json import random import subprocess from stests.core.logging import log_event from stests.chain.utils import execute_cli from stests.chain.utils import DeployDispatchInfo from stests.core.types.chain import Account from stests.core.types.infra import Network from stests.core.types.infra import Node from stests...
34.704918
146
0.687293
271
2,117
5.199262
0.391144
0.056778
0.049681
0.040454
0.079489
0.042583
0
0
0
0
0
0.008865
0.200756
2,117
60
147
35.283333
0.823877
0.193198
0
0
0
0.025
0.156418
0.025075
0
0
0
0
0
1
0.025
false
0
0.275
0
0.325
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
7d90aa90743d9451f50ce626438114785520c9d1
1,143
py
Python
Binary Search Tree/235. Lowest Common Ancestor of a Binary Search Tree.py
beckswu/Leetcode
480e8dc276b1f65961166d66efa5497d7ff0bdfd
[ "MIT" ]
138
2020-02-08T05:25:26.000Z
2021-11-04T11:59:28.000Z
Binary Search Tree/235. Lowest Common Ancestor of a Binary Search Tree.py
beckswu/Leetcode
480e8dc276b1f65961166d66efa5497d7ff0bdfd
[ "MIT" ]
null
null
null
Binary Search Tree/235. Lowest Common Ancestor of a Binary Search Tree.py
beckswu/Leetcode
480e8dc276b1f65961166d66efa5497d7ff0bdfd
[ "MIT" ]
24
2021-01-02T07:18:43.000Z
2022-03-20T08:17:54.000Z
""" 235. Lowest Common Ancestor of a Binary Search Tree """ # Definition for a binary tree node. # class TreeNode(object): # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution(object): def lowestCommonAncestor(self, root, p, q): ...
28.575
61
0.523185
136
1,143
4.367647
0.301471
0.070707
0.035354
0.074074
0.360269
0.360269
0.360269
0.360269
0.360269
0.360269
0
0.005502
0.363955
1,143
40
62
28.575
0.811554
0.313211
0
0.375
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7d9246bc05b6e5994b39b6b9455b5e82dd240f3c
3,494
py
Python
waliki/acl.py
sckevmit/waliki
5baaf6f043275920a1174ff233726f7ff4bfb5cf
[ "BSD-3-Clause" ]
324
2015-01-02T20:48:33.000Z
2021-12-11T14:44:34.000Z
waliki/acl.py
sckevmit/waliki
5baaf6f043275920a1174ff233726f7ff4bfb5cf
[ "BSD-3-Clause" ]
103
2015-01-02T03:01:34.000Z
2020-04-02T19:03:53.000Z
waliki/acl.py
sckevmit/waliki
5baaf6f043275920a1174ff233726f7ff4bfb5cf
[ "BSD-3-Clause" ]
84
2015-01-07T08:53:05.000Z
2021-01-04T00:26:38.000Z
from functools import wraps from collections import Iterable from django.conf import settings from django.shortcuts import render from django.core.exceptions import PermissionDenied from django.utils.decorators import available_attrs from django.utils.encoding import force_str from django.utils.six.moves.urllib.parse i...
39.704545
111
0.690326
459
3,494
5.069717
0.315904
0.042974
0.025784
0.021487
0
0
0
0
0
0
0
0.006839
0.246709
3,494
87
112
40.16092
0.87728
0.202061
0
0.122807
0
0
0.010226
0
0
0
0
0
0
1
0.070175
false
0
0.263158
0
0.508772
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
7d92e1048d2857d5559e9d7bb1d06d56001488c0
4,095
py
Python
RabiesRefNAAP_CLI.py
jiangweiyao/RabiesRefNAAP
bd10ca5d9b759381e09ecc25e1456370e94a0744
[ "Apache-1.1" ]
null
null
null
RabiesRefNAAP_CLI.py
jiangweiyao/RabiesRefNAAP
bd10ca5d9b759381e09ecc25e1456370e94a0744
[ "Apache-1.1" ]
null
null
null
RabiesRefNAAP_CLI.py
jiangweiyao/RabiesRefNAAP
bd10ca5d9b759381e09ecc25e1456370e94a0744
[ "Apache-1.1" ]
1
2021-03-01T22:20:26.000Z
2021-03-01T22:20:26.000Z
#!/usr/bin/env python import sys import os import glob import re from datetime import date import argparse import subprocess from pathlib import Path def main(): local_path = os.path.dirname(os.path.realpath(__file__)) #print(local_path) data_path = f"{local_path}" scaffold_helper = f"{local_pat...
47.616279
224
0.668132
534
4,095
4.990637
0.312734
0.102064
0.086679
0.040525
0.330582
0.267917
0.145216
0.057411
0
0
0
0.006028
0.149206
4,095
85
225
48.176471
0.758898
0.083516
0
0.037037
0
0
0.307343
0.081442
0
0
0
0
0
1
0.018519
false
0
0.148148
0
0.166667
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7d93db8015155beda4e7ca3caccf0926ce883652
8,887
py
Python
mtp_cashbook/apps/disbursements/tests/test_search.py
uk-gov-mirror/ministryofjustice.money-to-prisoners-cashbook
d35a621e21631e577faacaeacb5ab9f883c9b4f4
[ "MIT" ]
4
2016-01-05T12:21:39.000Z
2016-12-22T15:56:37.000Z
mtp_cashbook/apps/disbursements/tests/test_search.py
uk-gov-mirror/ministryofjustice.money-to-prisoners-cashbook
d35a621e21631e577faacaeacb5ab9f883c9b4f4
[ "MIT" ]
132
2015-06-10T09:53:14.000Z
2022-02-01T17:35:54.000Z
mtp_cashbook/apps/disbursements/tests/test_search.py
uk-gov-mirror/ministryofjustice.money-to-prisoners-cashbook
d35a621e21631e577faacaeacb5ab9f883c9b4f4
[ "MIT" ]
3
2015-07-07T14:40:33.000Z
2021-04-11T06:20:14.000Z
import datetime from django.test import SimpleTestCase from django.urls import reverse from django.utils.html import strip_tags import responses from cashbook.tests import MTPBaseTestCase, api_url from disbursements.forms import SearchForm class DisbursementSearchViewTextCase(MTPBaseTestCase): user = {'username'...
47.271277
117
0.567008
895
8,887
5.482682
0.215642
0.068474
0.081312
0.031791
0.552476
0.503974
0.474832
0.455676
0.455676
0.436519
0
0.050532
0.291887
8,887
187
118
47.524064
0.728905
0
0
0.408046
0
0
0.255879
0.026443
0
0
0
0
0.316092
1
0.045977
false
0
0.04023
0.005747
0.109195
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
7d93e9d98b1bfee0032c7712ee1027aadf9abac0
620
py
Python
pipelines/pipeline_util/graphite_extract_utility.py
MatMoore/app-performance-summary
e94c63c26dec5da39b8458b1e46bcc4f922ab7dc
[ "MIT" ]
null
null
null
pipelines/pipeline_util/graphite_extract_utility.py
MatMoore/app-performance-summary
e94c63c26dec5da39b8458b1e46bcc4f922ab7dc
[ "MIT" ]
10
2018-03-05T17:56:11.000Z
2018-03-13T16:50:51.000Z
pipelines/pipeline_util/graphite_extract_utility.py
MatMoore/app-performance-summary
e94c63c26dec5da39b8458b1e46bcc4f922ab7dc
[ "MIT" ]
1
2021-04-10T19:50:33.000Z
2021-04-10T19:50:33.000Z
''' Utility for extracting data from the graphite API ''' import os from urllib.parse import urlencode import pandas as pd class GraphiteExtractUtility: def __init__(self, default_url): url = os.environ.get('GRAPHITE_URL', default_url) self.render_url = url + '/render/?format=csv' def get_csv...
28.181818
98
0.662903
82
620
4.804878
0.54878
0.035533
0.076142
0.091371
0
0
0
0
0
0
0
0.004158
0.224194
620
21
99
29.52381
0.814969
0.133871
0
0
0
0
0.090909
0
0
0
0
0
0
1
0.181818
false
0
0.272727
0
0.636364
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
7d9822ec626534a501f48b72a69df1f8b8c72c49
2,882
py
Python
edk2toollib/uefi/edk2/fmp_payload_header.py
mikeytdisco/edk2-pytool-library
eab28cab8cf26f1018f7cbfac510a503444f0f0d
[ "BSD-2-Clause-Patent" ]
32
2019-06-28T06:04:30.000Z
2022-03-11T10:44:44.000Z
edk2toollib/uefi/edk2/fmp_payload_header.py
mikeytdisco/edk2-pytool-library
eab28cab8cf26f1018f7cbfac510a503444f0f0d
[ "BSD-2-Clause-Patent" ]
107
2019-07-10T19:09:51.000Z
2022-03-10T22:52:58.000Z
edk2toollib/uefi/edk2/fmp_payload_header.py
mikeytdisco/edk2-pytool-library
eab28cab8cf26f1018f7cbfac510a503444f0f0d
[ "BSD-2-Clause-Patent" ]
26
2019-07-24T03:27:14.000Z
2022-03-11T10:44:49.000Z
## @file # Module that encodes and decodes a FMP_PAYLOAD_HEADER with a payload. # The FMP_PAYLOAD_HEADER is processed by the FmpPayloadHeaderLib in the # FmpDevicePkg. # # Copyright (c) 2018, Intel Corporation. All rights reserved.<BR> # SPDX-License-Identifier: BSD-2-Clause-Patent # ''' FmpPayloadHeader ''' import s...
33.905882
112
0.651631
283
2,882
6.441696
0.29682
0.06034
0.096544
0.068568
0.104224
0.085573
0.043884
0.043884
0.043884
0.043884
0
0.025381
0.248092
2,882
84
113
34.309524
0.815874
0.170715
0
0.102041
0
0
0.144731
0.065171
0
0
0.008464
0
0
1
0.122449
false
0
0.020408
0.040816
0.306122
0.102041
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7d9846b8c90e6af12c68768b068248c24ba1f30a
1,580
py
Python
21-fs-ias-lec/15-AudioLink/Testing.py
paultroeger/BACnet
855b931f2a0e9b64e9571f41de2a8cd71d7a01f4
[ "MIT" ]
8
2020-03-17T21:12:18.000Z
2021-12-12T15:55:54.000Z
21-fs-ias-lec/15-AudioLink/Testing.py
paultroeger/BACnet
855b931f2a0e9b64e9571f41de2a8cd71d7a01f4
[ "MIT" ]
2
2021-07-19T06:18:43.000Z
2022-02-10T12:17:58.000Z
21-fs-ias-lec/15-AudioLink/Testing.py
paultroeger/BACnet
855b931f2a0e9b64e9571f41de2a8cd71d7a01f4
[ "MIT" ]
25
2020-03-20T09:32:45.000Z
2021-07-18T18:12:59.000Z
from Sender import Sender from Receiver import Receiver import scipy import numpy as np import scipy.io import scipy.io.wavfile import matplotlib.pyplot as plt from scipy import signal def readFromFile(path): file = open(path, "rb") data = file.read() file.close() return data def readWav(file_name) -...
21.944444
81
0.68038
231
1,580
4.623377
0.363636
0.026217
0.033708
0.039326
0.087079
0.048689
0
0
0
0
0
0.05449
0.175316
1,580
72
82
21.944444
0.765157
0.078481
0
0.096154
0
0
0.057045
0
0
0
0
0
0
1
0.038462
false
0
0.153846
0
0.25
0.134615
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7d9928a0889c40b5a6ffd1d19e7ea9f5236cde32
7,015
py
Python
anaconda_project/requirements_registry/requirements/conda_env.py
vertingo/Anaconda_Videos_Tutos
f30f2a0549a7b81c17f4d5d249edc59eb3c05458
[ "BSD-3-Clause" ]
null
null
null
anaconda_project/requirements_registry/requirements/conda_env.py
vertingo/Anaconda_Videos_Tutos
f30f2a0549a7b81c17f4d5d249edc59eb3c05458
[ "BSD-3-Clause" ]
null
null
null
anaconda_project/requirements_registry/requirements/conda_env.py
vertingo/Anaconda_Videos_Tutos
f30f2a0549a7b81c17f4d5d249edc59eb3c05458
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- # Copyright (c) 2016, Anaconda, Inc. All rights reserved. # # Licensed under the terms of the BSD 3-Clause License. # The full license is in the file LICENSE.txt, distributed with this software. # -------------------...
41.264706
116
0.623236
759
7,015
5.516469
0.218709
0.019107
0.028421
0.035109
0.610461
0.589682
0.557201
0.499642
0.495343
0.483879
0
0.001186
0.279116
7,015
169
117
41.508876
0.826775
0.211262
0
0.438776
0
0
0.098871
0.004629
0
0
0
0
0.071429
1
0.112245
false
0
0.05102
0
0.357143
0.010204
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7d9a756d138cef5d7f938318a3b5d1bd98451587
1,055
py
Python
ohs/domain/create_component.py
codejsha/infrastructure
01ff58fea0a7980fce30e37cb02a7c1217c46d9f
[ "Apache-2.0" ]
4
2021-02-13T03:39:38.000Z
2022-01-30T19:41:43.000Z
ohs/domain/create_component.py
codejsha/infrastructure
01ff58fea0a7980fce30e37cb02a7c1217c46d9f
[ "Apache-2.0" ]
null
null
null
ohs/domain/create_component.py
codejsha/infrastructure
01ff58fea0a7980fce30e37cb02a7c1217c46d9f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python domain_home = os.environ['DOMAIN_HOME'] node_manager_name = os.environ['NODE_MANAGER_NAME'] component_name = os.environ['COMPONENT_NAME'] component_admin_listen_address = os.environ['COMPONENT_ADMIN_LISTEN_ADDRESS'] component_admin_listen_port = os.environ['COMPONENT_ADMIN_LISTEN_PORT'] component...
31.969697
77
0.777251
125
1,055
6.136
0.272
0.11734
0.140808
0.105606
0.219035
0
0
0
0
0
0
0
0.052133
1,055
32
78
32.96875
0.767
0.018957
0
0
0
0
0.225104
0.131743
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
7d9ad66a69e3d43361db2e0fdcc4e1f1ce926057
1,965
py
Python
ironicclient/tests/functional/test_driver.py
sapcc/python-ironicclient
8dcbf5b6d0bc2c2dc3881dbc557e2e403e2fe2b4
[ "Apache-2.0" ]
null
null
null
ironicclient/tests/functional/test_driver.py
sapcc/python-ironicclient
8dcbf5b6d0bc2c2dc3881dbc557e2e403e2fe2b4
[ "Apache-2.0" ]
null
null
null
ironicclient/tests/functional/test_driver.py
sapcc/python-ironicclient
8dcbf5b6d0bc2c2dc3881dbc557e2e403e2fe2b4
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2015 Mirantis, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writin...
34.473684
79
0.686514
257
1,965
5.151751
0.451362
0.081571
0.056647
0.031722
0.221299
0.164653
0.164653
0.164653
0.164653
0.164653
0
0.01
0.236641
1,965
56
80
35.089286
0.872667
0.493639
0
0.235294
0
0
0.028604
0
0
0
0
0
0.235294
1
0.176471
false
0
0.058824
0
0.294118
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
7d9bd1161fcdf87364f5ca0317aac04cfac291b2
380
py
Python
hw2/2.3 - list.py
ArtemNikolaev/gb-hw
b82403e39dc1ca530dc438309fc98ba89ce4337b
[ "Unlicense" ]
null
null
null
hw2/2.3 - list.py
ArtemNikolaev/gb-hw
b82403e39dc1ca530dc438309fc98ba89ce4337b
[ "Unlicense" ]
40
2021-12-30T15:57:10.000Z
2022-01-26T16:44:24.000Z
hw2/2.3 - list.py
ArtemNikolaev/gb-hw
b82403e39dc1ca530dc438309fc98ba89ce4337b
[ "Unlicense" ]
1
2022-03-12T19:17:26.000Z
2022-03-12T19:17:26.000Z
# https://github.com/ArtemNikolaev/gb-hw/issues/18 seasons = [ 'ЗИМА', 'ВЕСНА', 'ЛЕТО', 'ОСЕНЬ' ] month = int(input('Введите номер месяца: ')) if month < 1 or month > 12: print('Месяцев всего 12. Поэтому минимальное значение - 1, а максимальное - 12') else: seasonInt = (month % 12) // 3 p...
23.75
84
0.634211
48
380
5.020833
0.770833
0.058091
0
0
0
0
0
0
0
0
0
0.043478
0.213158
380
16
85
23.75
0.762542
0.126316
0
0
0
0
0.429003
0
0
0
0
0
0
1
0
false
0
0
0
0
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7d9c78ce7d3a0631fc266360f9979634e2fb0ff2
1,401
py
Python
psono/restapi/tests/health_check.py
psono/psono-fileserver
537fd392ea9b50807451dbb814266dfeed8c783b
[ "Apache-2.0" ]
2
2020-02-12T15:10:02.000Z
2021-07-02T18:35:34.000Z
psono/restapi/tests/health_check.py
psono/psono-fileserver
537fd392ea9b50807451dbb814266dfeed8c783b
[ "Apache-2.0" ]
2
2019-10-29T18:59:26.000Z
2019-12-28T15:43:19.000Z
psono/restapi/tests/health_check.py
psono/psono-fileserver
537fd392ea9b50807451dbb814266dfeed8c783b
[ "Apache-2.0" ]
4
2019-10-04T00:41:27.000Z
2021-04-28T13:25:37.000Z
from django.urls import reverse from rest_framework import status from .base import APITestCaseExtended from mock import patch from restapi import models class HealthCheckTest(APITestCaseExtended): """ Test for health check """ def test_put_healthcheckn(self): """ Tests PUT method o...
20.910448
82
0.631692
151
1,401
5.682119
0.284768
0.032634
0.097902
0.102564
0.613054
0.613054
0.613054
0.613054
0.613054
0.554779
0
0.011858
0.277659
1,401
66
83
21.227273
0.835968
0.109208
0
0.423077
0
0
0.03863
0
0
0
0
0
0.153846
1
0.153846
false
0
0.192308
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7d9d90a49a7ce7f5c4dc585757591fb9e4a928b7
1,217
py
Python
conftest.py
elijahr/python-portaudio
8434396cf7a9faa8934cab289749daf08b04d0b3
[ "MIT" ]
null
null
null
conftest.py
elijahr/python-portaudio
8434396cf7a9faa8934cab289749daf08b04d0b3
[ "MIT" ]
null
null
null
conftest.py
elijahr/python-portaudio
8434396cf7a9faa8934cab289749daf08b04d0b3
[ "MIT" ]
null
null
null
import asyncio import contextlib import glob import itertools import logging import os import pytest import uvloop try: import tracemalloc tracemalloc.start() except ImportError: # Not available in pypy pass # clear compiled cython tests for path in itertools.chain( glob.glob(os.path.join('...
21.350877
112
0.676253
158
1,217
5.120253
0.493671
0.034611
0.024722
0.034611
0.05686
0.05686
0
0
0
0
0
0.001048
0.216105
1,217
57
113
21.350877
0.84696
0.138044
0
0
0
0
0.056459
0
0
0
0
0
0
1
0.1
false
0.025
0.25
0.025
0.375
0.025
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7da0f8191abd59b72b6876b877822726d97f2ede
2,268
py
Python
server/test/test_serverInfoAPI.py
rmetcalf9/VirtualPresencePicture
4822d2dac0be18d0da30bab9a4f7a8b34091799e
[ "MIT" ]
null
null
null
server/test/test_serverInfoAPI.py
rmetcalf9/VirtualPresencePicture
4822d2dac0be18d0da30bab9a4f7a8b34091799e
[ "MIT" ]
null
null
null
server/test/test_serverInfoAPI.py
rmetcalf9/VirtualPresencePicture
4822d2dac0be18d0da30bab9a4f7a8b34091799e
[ "MIT" ]
null
null
null
from TestHelperSuperClass import testHelperAPIClient, env import unittest import json from appObj import appObj import pytz import datetime serverInfoWithoutAnyPictures = { 'Server': { 'Version': env['APIAPP_VERSION'] }, 'Pictures': [] } samplePictureIdentifier = 'ABC123' samplePictureContent...
36
111
0.738536
232
2,268
7.125
0.293103
0.036298
0.072595
0.098004
0.604356
0.585602
0.520266
0.520266
0.46582
0.46582
0
0.034341
0.139771
2,268
62
112
36.580645
0.812916
0
0
0.365385
0
0
0.11827
0.0203
0
0
0
0
0.192308
1
0.076923
false
0
0.115385
0
0.211538
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
7da76f883c897444204f5a70123af7ff361ec610
2,528
py
Python
pymagnitude/third_party/allennlp/tests/data/dataset_readers/snli_reader_test.py
tpeng/magnitude
aec98628b5547773ca8c4114ec6d1ad51e21b230
[ "MIT" ]
1,520
2018-03-01T13:37:49.000Z
2022-03-25T11:40:20.000Z
pymagnitude/third_party/allennlp/tests/data/dataset_readers/snli_reader_test.py
tpeng/magnitude
aec98628b5547773ca8c4114ec6d1ad51e21b230
[ "MIT" ]
87
2018-03-03T15:12:50.000Z
2022-02-21T15:24:12.000Z
pymagnitude/third_party/allennlp/tests/data/dataset_readers/snli_reader_test.py
tpeng/magnitude
aec98628b5547773ca8c4114ec6d1ad51e21b230
[ "MIT" ]
121
2018-03-03T08:40:53.000Z
2022-03-16T05:19:38.000Z
# pylint: disable=no-self-use,invalid-name from __future__ import division from __future__ import absolute_import import pytest from allennlp.data.dataset_readers import SnliReader from allennlp.common.util import ensure_list from allennlp.common.testing import AllenNlpTestCase class TestSnliReader(object): @py...
52.666667
109
0.560918
343
2,528
4.087464
0.241983
0.021398
0.032097
0.038516
0.462197
0.462197
0.462197
0.380884
0.380884
0.380884
0
0.008598
0.263845
2,528
47
110
53.787234
0.744761
0.015823
0
0.076923
0
0
0.194288
0
0
0
0
0
0.25641
1
0.025641
false
0
0.153846
0
0.205128
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
7da9d5721ae20d0a2dd2bfb648ef9c35e133f2d4
4,362
py
Python
binding/python/setup.py
pmateusz/libgexf
a25355db141a1d4e178553f42e37acfd9f485e3e
[ "MIT" ]
null
null
null
binding/python/setup.py
pmateusz/libgexf
a25355db141a1d4e178553f42e37acfd9f485e3e
[ "MIT" ]
null
null
null
binding/python/setup.py
pmateusz/libgexf
a25355db141a1d4e178553f42e37acfd9f485e3e
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ setup.py file for Libgexf """ from setuptools import Extension, setup #from distutils.core import Extension, setup libgexf_module = Extension( '_libgexf', # genere un _libgexf.so include_dirs=['/usr/include/libxml2'], sources=[ # 'libgexf.i', # genere u...
36.049587
128
0.618294
505
4,362
5.29901
0.504951
0.056054
0.013453
0.011958
0
0
0
0
0
0
0
0.003352
0.247593
4,362
120
129
36.35
0.812005
0.516506
0
0
0
0
0.508053
0.303075
0
0
0
0
0
1
0
false
0
0.019231
0
0.019231
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
7dac2231269fa172423e388357c676a691296ba3
6,241
py
Python
scripts/first_trace_success_test.py
axelzedigh/DLSCA
f4a04bbc008784cb3f48832a2b4394850048f116
[ "Unlicense" ]
9
2019-09-23T16:21:50.000Z
2021-11-23T13:14:27.000Z
scripts/first_trace_success_test.py
axelzedigh/DLSCA
f4a04bbc008784cb3f48832a2b4394850048f116
[ "Unlicense" ]
null
null
null
scripts/first_trace_success_test.py
axelzedigh/DLSCA
f4a04bbc008784cb3f48832a2b4394850048f116
[ "Unlicense" ]
7
2019-07-12T06:30:23.000Z
2021-11-23T13:14:29.000Z
import os.path import sys import h5py import numpy as np import matplotlib.pyplot as plt from keras.models import load_model from keras.losses import categorical_crossentropy import tensorflow as tf import heapq import re modelName = 'CW_validation.h5' successResultsNPY = [] ###########################################...
39.751592
108
0.628425
843
6,241
4.600237
0.553974
0.019856
0.029397
0.008767
0.074265
0.008767
0.008767
0
0
0
0
0.124901
0.189232
6,241
156
109
40.00641
0.641502
0.206217
0
0.019417
0
0
0.060462
0.010365
0
0
0.221119
0.00641
0
1
0.038835
false
0.009709
0.097087
0
0.165049
0.087379
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7dacf9f865f47f80badfe339d0f2b8574ea5fb66
360
py
Python
raptrcontainer/appropriated/admin.py
richard-parks/RAPTR
ff1342af4ee6447ab9cc21735e79efb7623df805
[ "Unlicense" ]
null
null
null
raptrcontainer/appropriated/admin.py
richard-parks/RAPTR
ff1342af4ee6447ab9cc21735e79efb7623df805
[ "Unlicense" ]
2
2018-11-29T21:03:54.000Z
2018-12-02T04:41:36.000Z
raptrcontainer/appropriated/admin.py
NOAA-PMEL/Admin_RAPTR
2353aaa9500dce2e2e65a8d21e802b37c6990054
[ "Unlicense" ]
null
null
null
from django.contrib import admin from .models import AppropriatedHistory @admin.register(AppropriatedHistory) class AppropriatedHistoryAdmin(admin.ModelAdmin): list_display = [ 'fiscal_year', 'source', 'dollars_received' ] list_editable = [ 'dollars_received', ] or...
18.947368
49
0.644444
30
360
7.533333
0.666667
0.088496
0
0
0
0
0
0
0
0
0
0
0.263889
360
18
50
20
0.85283
0
0
0.133333
0
0
0.166667
0
0
0
0
0
0
1
0
false
0
0.133333
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7dad1f1269de17e831dca23ea74171d92ef7258b
34,626
py
Python
ringallreduce_simulator.py
hgao10/horovod_simulation
3678a7d1d424931f48af4b53ef3293073af71c2e
[ "Apache-2.0" ]
null
null
null
ringallreduce_simulator.py
hgao10/horovod_simulation
3678a7d1d424931f48af4b53ef3293073af71c2e
[ "Apache-2.0" ]
null
null
null
ringallreduce_simulator.py
hgao10/horovod_simulation
3678a7d1d424931f48af4b53ef3293073af71c2e
[ "Apache-2.0" ]
null
null
null
import collections import time import heapq from horovod_simulator_config import SimulatorConfig, SchedulingDisc from utils.logger import get_logger import typing from queue import PriorityQueue class Packet(): def __init__(self, iteration_idx, layer_idx, packet_idx, packet_size_MB): # global packet_size_M...
55.313099
210
0.6591
4,404
34,626
4.936649
0.083787
0.036797
0.024838
0.030173
0.536452
0.451911
0.380525
0.356561
0.335679
0.304356
0
0.005463
0.254606
34,626
625
211
55.4016
0.836885
0.155461
0
0.291667
0
0.013158
0.14437
0.032457
0
0
0
0.0016
0
1
0.111842
false
0
0.015351
0.02193
0.184211
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7db08f8c76f09b843e5f713087e6a5fa445f6755
7,543
py
Python
core/models/sparse_bp_cnn.py
JeremieMelo/L2ight
67f93b66ddf8bb5a365834b84ed6acdbc4f48eaf
[ "MIT" ]
7
2021-11-02T16:21:47.000Z
2022-03-09T06:01:25.000Z
core/models/sparse_bp_cnn.py
JeremieMelo/L2ight
67f93b66ddf8bb5a365834b84ed6acdbc4f48eaf
[ "MIT" ]
null
null
null
core/models/sparse_bp_cnn.py
JeremieMelo/L2ight
67f93b66ddf8bb5a365834b84ed6acdbc4f48eaf
[ "MIT" ]
null
null
null
''' Description: Author: Jiaqi Gu (jqgu@utexas.edu) Date: 2021-10-24 16:23:50 LastEditors: Jiaqi Gu (jqgu@utexas.edu) LastEditTime: 2021-10-24 16:23:50 ''' from collections import OrderedDict from typing import Callable, Dict, List, Optional, Tuple, Union import numpy as np import torch import torch.nn.functional as F...
31.298755
113
0.56158
946
7,543
4.244186
0.169133
0.012951
0.019178
0.01868
0.30934
0.225903
0.199253
0.180324
0.164384
0.153425
0
0.024945
0.340978
7,543
240
114
31.429167
0.78274
0.046931
0
0.326829
0
0
0.00711
0
0
0
0
0
0
1
0.034146
false
0
0.058537
0.004878
0.121951
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
7db09573c7b7fdf192db6f472bcb81e9222dc388
9,017
py
Python
lite/demo/python/mobilenetv1_full_api.py
714627034/Paddle-Lite
015ba88a4d639db0b73603e37f83e47be041a4eb
[ "Apache-2.0" ]
3
2021-06-17T11:00:13.000Z
2021-08-10T10:28:59.000Z
lite/demo/python/mobilenetv1_full_api.py
714627034/Paddle-Lite
015ba88a4d639db0b73603e37f83e47be041a4eb
[ "Apache-2.0" ]
null
null
null
lite/demo/python/mobilenetv1_full_api.py
714627034/Paddle-Lite
015ba88a4d639db0b73603e37f83e47be041a4eb
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
38.046414
113
0.663303
1,118
9,017
5.132379
0.262075
0.041826
0.038515
0.034507
0.262287
0.201115
0.095329
0.024747
0
0
0
0.022826
0.232339
9,017
236
114
38.207627
0.806125
0.087945
0
0.230769
0
0.005917
0.148266
0.038974
0
0
0
0
0
1
0.005917
false
0
0.053254
0
0.065089
0.04142
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7db33bbd439b5c7268b5e21a4ea3bb5bcb4b092b
3,148
py
Python
libvirt_vm_optimizer/util/arg_parser.py
atiratree/libvirt-vm-optimizer
a022391ea86e3609e3b9c01fc2b84279939a26ab
[ "MIT" ]
1
2019-01-16T18:59:59.000Z
2019-01-16T18:59:59.000Z
libvirt_vm_optimizer/util/arg_parser.py
suomiy/libvirt-vm-optimizer
a022391ea86e3609e3b9c01fc2b84279939a26ab
[ "MIT" ]
null
null
null
libvirt_vm_optimizer/util/arg_parser.py
suomiy/libvirt-vm-optimizer
a022391ea86e3609e3b9c01fc2b84279939a26ab
[ "MIT" ]
1
2021-05-04T00:06:12.000Z
2021-05-04T00:06:12.000Z
import argparse from argparse import ArgumentError from libvirt_vm_optimizer.util.utils import Profile class Settings: def __init__(self, libvirt_xml=None, output_xml=None, in_place=False, profile=Profile.DEFAULT, force_multithreaded_pinning=Fal...
39.848101
126
0.542567
312
3,148
5.269231
0.294872
0.079075
0.062044
0.029197
0.086983
0.086983
0
0
0
0
0
0
0.367853
3,148
78
127
40.358974
0.826131
0
0
0.080645
0
0
0.187421
0.023189
0
0
0
0
0
1
0.048387
false
0
0.048387
0
0.16129
0.016129
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7db3b96495442c5054ba6d121c6a02f0d28e7612
8,323
py
Python
lib_bgp_data/collectors/mrt/mrt_base/mrt_file.py
jfuruness/lib_bgp_data
25f7d57b9e2101c7aefb325e8d728bd91f47d557
[ "BSD-3-Clause" ]
16
2018-09-24T05:10:03.000Z
2021-11-29T19:18:59.000Z
lib_bgp_data/collectors/mrt/mrt_base/mrt_file.py
jfuruness/lib_bgp_data
25f7d57b9e2101c7aefb325e8d728bd91f47d557
[ "BSD-3-Clause" ]
4
2019-10-09T18:54:17.000Z
2021-03-05T14:02:50.000Z
lib_bgp_data/collectors/mrt/mrt_base/mrt_file.py
jfuruness/lib_bgp_data
25f7d57b9e2101c7aefb325e8d728bd91f47d557
[ "BSD-3-Clause" ]
3
2018-09-17T17:35:18.000Z
2020-03-24T16:03:31.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """This module contains class MRT_File. The MRT_File class contains the functionality to load and parse mrt files. This is done through a series of steps, detailed in README. """ __authors__ = ["Justin Furuness", "Matt Jaccino"] __credits__ = ["Justin Furuness", "Matt J...
42.464286
78
0.622252
1,223
8,323
4.146361
0.324612
0.037862
0.017748
0.017354
0.16407
0.144942
0.134293
0.115953
0.115953
0.102544
0
0.056143
0.272378
8,323
195
79
42.682051
0.781209
0.620209
0
0.083333
0
0.020833
0.213203
0.085859
0
0
0
0
0
1
0.083333
false
0
0.104167
0
0.270833
0.020833
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7db66263d9d342b5a826306669c5a5214abeb3e7
1,611
py
Python
demo.py
mhy12345/rcaudio
90fcc3c2d2586905c7f35ea5c2ac6b2c2cf70029
[ "MIT" ]
31
2018-09-27T03:35:06.000Z
2022-01-11T09:49:26.000Z
demo.py
yeashen/rcaudio
90fcc3c2d2586905c7f35ea5c2ac6b2c2cf70029
[ "MIT" ]
3
2018-11-20T07:49:24.000Z
2021-01-06T11:48:41.000Z
demo.py
yeashen/rcaudio
90fcc3c2d2586905c7f35ea5c2ac6b2c2cf70029
[ "MIT" ]
7
2019-04-23T06:32:23.000Z
2020-09-25T14:18:32.000Z
from rcaudio import * import time import logging logging.basicConfig(level=logging.INFO, format='%(asctime)s %(filename)s[line:%(lineno)d] %(levelname)s %(message)s') def demo1(): CR = CoreRecorder( time = 10, sr = 1000, batch_num = 100, frames_per_buffer...
22.690141
85
0.556797
205
1,611
4.263415
0.419512
0.051487
0.048055
0.051487
0.312357
0.240275
0.240275
0.162471
0.162471
0.162471
0
0.051444
0.312228
1,611
70
86
23.014286
0.737365
0
0
0.316667
0
0.016667
0.060832
0.018001
0
0
0
0
0
1
0.083333
false
0
0.05
0
0.133333
0.066667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7db6de9a9058b5930c41c0b6f46d74899e0a554e
1,334
py
Python
tests/test_swagger_registry.py
niall-byrne/flask-restful-swagger
4ce4284627f27e1e8d58ff922abbefe9e7fd8c21
[ "MIT" ]
667
2015-01-05T02:11:09.000Z
2022-03-30T02:01:04.000Z
tests/test_swagger_registry.py
Deepstatsanalysis/flask-restful-swagger
4ce4284627f27e1e8d58ff922abbefe9e7fd8c21
[ "MIT" ]
83
2015-01-05T19:39:23.000Z
2021-11-22T16:39:52.000Z
tests/test_swagger_registry.py
Deepstatsanalysis/flask-restful-swagger
4ce4284627f27e1e8d58ff922abbefe9e7fd8c21
[ "MIT" ]
184
2015-01-05T19:20:23.000Z
2022-03-21T10:32:34.000Z
from flask import Flask from flask_restful_swagger.swagger import SwaggerRegistry try: from unittest.mock import patch except ImportError: from mock import patch @patch("flask_restful_swagger.swagger._get_current_registry") @patch("flask_restful_swagger.swagger.render_homepage") def test_get_swagger_registr...
26.68
67
0.676912
142
1,334
5.964789
0.387324
0.042503
0.067296
0.09209
0.160567
0.087367
0.087367
0.087367
0
0
0
0
0.226387
1,334
49
68
27.22449
0.820736
0
0
0
0
0
0.268366
0.128936
0
0
0
0
0.131579
1
0.026316
false
0
0.131579
0
0.157895
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
7db77614b73b30faa1f8658a19a8d335313caf9b
1,921
py
Python
gcp_census/bigquery/bigquery_handler.py
ocadotechnology/gcp-census
6ce7c55a798efd83c07b9677081d26bb6113e2ed
[ "Apache-2.0" ]
40
2017-05-18T12:39:11.000Z
2021-12-02T11:24:18.000Z
gcp_census/bigquery/bigquery_handler.py
ocadotechnology/gcp-census
6ce7c55a798efd83c07b9677081d26bb6113e2ed
[ "Apache-2.0" ]
35
2017-05-18T12:41:36.000Z
2019-11-15T10:06:19.000Z
gcp_census/bigquery/bigquery_handler.py
ocadotechnology/gcp-census
6ce7c55a798efd83c07b9677081d26bb6113e2ed
[ "Apache-2.0" ]
7
2018-01-18T12:39:51.000Z
2018-08-16T09:17:00.000Z
import logging import webapp2 from googleapiclient.errors import HttpError from gcp_census.bigquery.bigquery_client import BigQuery from gcp_census.bigquery.bigquery_task import BigQueryTask class BigQueryBaseClass(webapp2.RequestHandler): def __init__(self, request=None, response=None): super(BigQueryB...
36.942308
80
0.660073
202
1,921
6.034653
0.351485
0.068909
0.065628
0.088597
0.33388
0.245283
0.159967
0.073831
0
0
0
0.013466
0.265487
1,921
51
81
37.666667
0.850461
0.014576
0
0.052632
0
0
0.061872
0
0
0
0
0
0
1
0.157895
false
0
0.131579
0
0.421053
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7db9356e6b7de8c8a7ac0cabb607897d76784d53
3,056
py
Python
resources/src/gcp_iam_service_account.py
kfirz/deployster
b95fdb9cf150eee765f7ef3dbdee3666119e76f9
[ "Apache-2.0" ]
null
null
null
resources/src/gcp_iam_service_account.py
kfirz/deployster
b95fdb9cf150eee765f7ef3dbdee3666119e76f9
[ "Apache-2.0" ]
19
2017-12-28T19:39:37.000Z
2018-04-18T23:24:45.000Z
resources/src/gcp_iam_service_account.py
kfirz/deployster
b95fdb9cf150eee765f7ef3dbdee3666119e76f9
[ "Apache-2.0" ]
1
2018-04-06T16:50:49.000Z
2018-04-06T16:50:49.000Z
#!/usr/bin/env python3.6 import argparse import json import sys from typing import Sequence, MutableSequence from dresources import DAction, action from external_services import ExternalServices from gcp import GcpResource class GcpIamServiceAccount(GcpResource): def __init__(self, data: dict, svc: ExternalSer...
39.688312
108
0.620419
347
3,056
5.247839
0.291066
0.09061
0.107633
0.052169
0.263591
0.249863
0.210324
0.14168
0.14168
0.14168
0
0.003076
0.255236
3,056
76
109
40.210526
0.797012
0.013089
0
0.15
0
0
0.17651
0.016257
0
0
0
0
0
1
0.133333
false
0.016667
0.116667
0
0.316667
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
7dbac9eb3255daf0f5135503edb3305af6da290c
806
py
Python
tests/consumtodb_test.py
thomas-for-aiven/monitor
bd712fed77c3b3cea3e1dd0f99318043ff3dc166
[ "MIT" ]
null
null
null
tests/consumtodb_test.py
thomas-for-aiven/monitor
bd712fed77c3b3cea3e1dd0f99318043ff3dc166
[ "MIT" ]
null
null
null
tests/consumtodb_test.py
thomas-for-aiven/monitor
bd712fed77c3b3cea3e1dd0f99318043ff3dc166
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import pytest import monitor.monitorshared as m import monitor.consumtodb as con def test_db_connection(tmpdir): "test postgres connection" conf = m.Configuration('configx.ini', "test") # in case the field is empty if conf.db_host == '': pytest.skip("no broker configure...
23.028571
57
0.691067
113
806
4.823009
0.415929
0.047706
0.066055
0.091743
0.495413
0.495413
0.495413
0.359633
0.216514
0.216514
0
0.001582
0.215881
806
34
58
23.705882
0.860759
0.244417
0
0.25
0
0
0.205742
0
0
0
0
0
0.125
1
0.125
false
0
0.1875
0
0.3125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7dbdd82b44af43747c667e7503af84473c437bc0
4,630
py
Python
Code/chatbot.py
pavithra-b-reddy/Chatbot-CS310
0cae72c974272d00ee5db3c980f48c0dbfa16e2b
[ "MIT" ]
null
null
null
Code/chatbot.py
pavithra-b-reddy/Chatbot-CS310
0cae72c974272d00ee5db3c980f48c0dbfa16e2b
[ "MIT" ]
null
null
null
Code/chatbot.py
pavithra-b-reddy/Chatbot-CS310
0cae72c974272d00ee5db3c980f48c0dbfa16e2b
[ "MIT" ]
null
null
null
# This codes are referenced from the Github repo (https://github.com/parulnith/Building-a-Simple-Chatbot-in-Python-using-NLTK/blob/master/chatbot.py) # Loading the required packages import nltk import random import string import warnings from sklearn.feature_extraction.text import TfidfVectorizer from sklearn.metrics...
35.615385
149
0.649028
555
4,630
5.291892
0.409009
0.039837
0.011236
0.02145
0.083759
0
0
0
0
0
0
0.003231
0.264579
4,630
129
150
35.891473
0.859325
0.202808
0
0.123596
0
0
0.182314
0.006004
0
0
0
0
0
1
0.067416
false
0
0.078652
0.022472
0.292135
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
7dbec2776e2389304afbc67d66e86856becf8f17
537
py
Python
lib/showFaces.py
ZakDoesGaming/OregonTrail
90cab35536ac5c6ba9e772ac5c29c914017c9c23
[ "MIT" ]
6
2018-05-07T04:04:58.000Z
2021-05-15T17:44:16.000Z
lib/showFaces.py
ZakDoesGaming/OregonTrail
90cab35536ac5c6ba9e772ac5c29c914017c9c23
[ "MIT" ]
null
null
null
lib/showFaces.py
ZakDoesGaming/OregonTrail
90cab35536ac5c6ba9e772ac5c29c914017c9c23
[ "MIT" ]
2
2017-05-27T17:06:23.000Z
2020-08-26T17:57:10.000Z
from pygame import image class ShowFaces(): def __init__(self, filePath, colour = (0, 0, 0), posX = 0, posY = 100, resourcePath = ""): self.filePath = filePath self.colour = colour self.posX = posX self.posY = posY self.resourcePath = resourcePath self.image = image.load(self.resourcePath + "img/faces/" +...
35.8
91
0.690875
74
537
4.918919
0.391892
0.098901
0.098901
0
0
0
0
0
0
0
0
0.020089
0.165736
537
15
92
35.8
0.792411
0
0
0
0
0
0.026022
0
0
0
0
0
0
1
0.153846
false
0
0.076923
0
0.307692
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
7dc06bfcfd35ab80fe1f5fe2ede0d1828b1336ca
6,192
py
Python
Data.py
praenubilus/lc-tool
6af4c557d2780758a4d53cd70554e16b70809859
[ "MIT" ]
null
null
null
Data.py
praenubilus/lc-tool
6af4c557d2780758a4d53cd70554e16b70809859
[ "MIT" ]
null
null
null
Data.py
praenubilus/lc-tool
6af4c557d2780758a4d53cd70554e16b70809859
[ "MIT" ]
null
null
null
import subprocess import os.path import json import time import urllib.parse from typing import Any, Tuple import config from requests_html import HTMLSession from markdownify import markdownify class Data: def __init__( self, data_file_path: str = config.DATA_FILE_PATH, preload: bool = Fa...
34.786517
94
0.581234
764
6,192
4.518325
0.252618
0.01854
0.020857
0.013905
0.158459
0.136732
0.118772
0.066049
0.039397
0.024334
0
0.001797
0.280846
6,192
178
95
34.786517
0.773411
0.126776
0
0.092308
0
0
0.148052
0.051577
0
0
0
0.005618
0
1
0.130769
false
0
0.069231
0.023077
0.307692
0.053846
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7dc0ff0cd5dcfd9cb62fcfb00a3e84da41a487f5
1,407
py
Python
examples/python/WeightedCentroidalVoronoi.py
mparno/sdot2d
f632824fc4f0285eab6de911cca8932f69ece705
[ "BSD-3-Clause" ]
null
null
null
examples/python/WeightedCentroidalVoronoi.py
mparno/sdot2d
f632824fc4f0285eab6de911cca8932f69ece705
[ "BSD-3-Clause" ]
null
null
null
examples/python/WeightedCentroidalVoronoi.py
mparno/sdot2d
f632824fc4f0285eab6de911cca8932f69ece705
[ "BSD-3-Clause" ]
null
null
null
import pysdot as ot import numpy as np import matplotlib.pyplot as plt numPts = 100 xbnds = [0.0,1.0] # minimum and maximum x values ybnds = [0.0,1.0] # minimum and maximum y values Ns = [50,50] bbox = ot.BoundingBox(xbnds[0],xbnds[1],ybnds[0],ybnds[1]) grid = ot.RegularGrid(bbox, Ns[0], Ns[1]) dens = np.ones(Ns) f...
33.5
100
0.713575
241
1,407
4.149378
0.481328
0.018
0.006
0.008
0.09
0.09
0.09
0.048
0
0
0
0.047894
0.139303
1,407
41
101
34.317073
0.77787
0.393746
0
0
0
0
0.028504
0
0
0
0
0
0
1
0
false
0
0.130435
0
0.130435
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7dc217926986aef9243e5b82602418597122bc4f
6,780
py
Python
api/api_funct.py
pjclock/haproxy-wi
2ea59c892ae24d824d29dd0cee580c969f64cc87
[ "Apache-2.0" ]
null
null
null
api/api_funct.py
pjclock/haproxy-wi
2ea59c892ae24d824d29dd0cee580c969f64cc87
[ "Apache-2.0" ]
null
null
null
api/api_funct.py
pjclock/haproxy-wi
2ea59c892ae24d824d29dd0cee580c969f64cc87
[ "Apache-2.0" ]
1
2019-11-19T14:59:25.000Z
2019-11-19T14:59:25.000Z
import os import sys os.chdir(os.path.dirname(__file__)) sys.path.append(os.path.dirname(__file__)) sys.path.append(os.path.join(sys.path[0], '/var/www/haproxy-wi/app/')) from bottle import route, run, template, hook, response, request, post import sql import funct def return_dict_from_out(id, out): data = {} data...
22.450331
149
0.629499
1,027
6,780
4.035054
0.174294
0.055502
0.057432
0.037645
0.581322
0.530405
0.468629
0.468629
0.468629
0.430019
0
0.010603
0.20708
6,780
302
150
22.450331
0.760231
0
0
0.541485
0
0.008734
0.155729
0.017697
0
0
0
0
0
1
0.052402
false
0
0.026201
0
0.174672
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
7dc4cee1dbb027b9999c91c7ea99faa307db2e19
15,179
py
Python
waymo_open_dataset/waymo_detection_dataset.py
abahnasy/IDP
c131a597ad72105f67f0ff8850f4eb8275a9800b
[ "MIT" ]
null
null
null
waymo_open_dataset/waymo_detection_dataset.py
abahnasy/IDP
c131a597ad72105f67f0ff8850f4eb8275a9800b
[ "MIT" ]
null
null
null
waymo_open_dataset/waymo_detection_dataset.py
abahnasy/IDP
c131a597ad72105f67f0ff8850f4eb8275a9800b
[ "MIT" ]
null
null
null
""" Waymo dataset with votes. Author: Ahmed Bahnasy Date: 2020 """ import os import sys import numpy as np import pickle from torch.utils.data import Dataset import scipy.io as sio # to load .mat files for depth points BASE_DIR = os.path.dirname(os.path.abspath(__file__)) # ROOT_DIR = os.path.dirname(BASE_DIR) sys.pa...
46.277439
180
0.620792
2,167
15,179
4.083987
0.163359
0.040678
0.019322
0.013559
0.308701
0.211751
0.161695
0.120113
0.079322
0.079322
0
0.027877
0.243758
15,179
327
181
46.41896
0.743096
0.212992
0
0.056075
0
0
0.080761
0.003772
0
0
0
0.006116
0.014019
1
0.037383
false
0
0.046729
0.004673
0.107477
0.03271
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7dc5dc988616aaca00dd30fca002242eb44adc92
2,792
py
Python
smoketests/tests/test_dir_test.py
erlware-deprecated/sinan
5172974e75f30bd7050b99ff2e6849501008ec44
[ "MIT" ]
7
2015-06-03T19:18:39.000Z
2022-01-26T10:39:03.000Z
smoketests/tests/test_dir_test.py
ericbmerritt/sinan
36d89008a332e1283fc9f7081165e91fb0547885
[ "MIT" ]
3
2020-06-25T04:15:54.000Z
2020-06-25T04:16:13.000Z
smoketests/tests/test_dir_test.py
ericbmerritt/sinan
36d89008a332e1283fc9f7081165e91fb0547885
[ "MIT" ]
3
2015-11-27T10:33:31.000Z
2018-07-31T22:56:32.000Z
import unittest import sin_testing as st import pexpect import os class TestFail(st.SmokeTest): @st.sinan("build") def build(self, child, app_desc): if not os.path.isfile(os.path.join(os.getcwd(), "test", "test_module.erl")): raise "Nome module f...
31.370787
79
0.523997
307
2,792
4.628665
0.358306
0.07741
0.035186
0.025334
0.111189
0.067558
0.049261
0.049261
0.049261
0.049261
0
0.003891
0.355659
2,792
88
80
31.727273
0.785992
0.021132
0
0.104478
0
0
0.179121
0.007692
0
0
0
0
0
1
0.059701
false
0.014925
0.059701
0
0.134328
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
7dc85646e762b266d883108a8fd66e58db5c4d2f
7,362
py
Python
budgetportal/tests/test_management_commands.py
fluenty/datamanager
97ba9d58d4527b7d61b730ea4896f09a56e6ae60
[ "MIT" ]
null
null
null
budgetportal/tests/test_management_commands.py
fluenty/datamanager
97ba9d58d4527b7d61b730ea4896f09a56e6ae60
[ "MIT" ]
null
null
null
budgetportal/tests/test_management_commands.py
fluenty/datamanager
97ba9d58d4527b7d61b730ea4896f09a56e6ae60
[ "MIT" ]
null
null
null
from budgetportal.models import ( FinancialYear, Sphere, Government, Department, Programme, ) from django.core.management import call_command from django.test import TestCase from tempfile import NamedTemporaryFile from StringIO import StringIO import yaml class BasicPagesTestCase(TestCase): de...
40.450549
108
0.664493
790
7,362
6.044304
0.194937
0.046283
0.026806
0.04356
0.592461
0.55288
0.539476
0.489843
0.420733
0.362513
0
0.015564
0.240695
7,362
181
109
40.674033
0.83864
0.073893
0
0.282443
0
0
0.145935
0.045153
0
0
0
0
0.206107
1
0.053435
false
0
0.061069
0
0.137405
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
7dc8bc4931a3fbdfc68cead350a1a5f0c0c77747
898
py
Python
src/fedservice/utils.py
rohe/fedservice
1460d21217b804cac0f38fa26ffa24bee7cf6dad
[ "Apache-2.0" ]
3
2018-11-28T12:01:31.000Z
2020-12-16T21:43:29.000Z
src/fedservice/utils.py
peppelinux/fedservice
0dc5fd0bd33e181b6a1a9bbef6835b2ce5d2f568
[ "Apache-2.0" ]
13
2020-02-10T15:33:37.000Z
2022-02-01T16:43:36.000Z
src/fedservice/utils.py
peppelinux/fedservice
0dc5fd0bd33e181b6a1a9bbef6835b2ce5d2f568
[ "Apache-2.0" ]
4
2019-05-29T10:04:48.000Z
2020-10-14T09:52:53.000Z
import json import logging import ssl import sys from oidcrp.exception import ResponseError logger = logging.getLogger(__name__) def load_json(file_name): with open(file_name) as fp: js = json.load(fp) return js def fed_parse_response(instance, info, sformat="", state="", **kwargs): if sformat...
22.45
71
0.609131
114
898
4.692982
0.491228
0.04486
0.050467
0.082243
0
0
0
0
0
0
0
0.003101
0.281737
898
40
72
22.45
0.826357
0
0
0.137931
0
0
0.068966
0
0
0
0
0
0
1
0.103448
false
0
0.172414
0
0.413793
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
7dc8ee9b4d42b514db819f378b41dbecf850d307
3,884
py
Python
plugins/rd_bot.py
deg4uss3r/rd_bot
f82a929b59331d2ee67067369cd6ffe92a4fa7e6
[ "MIT" ]
null
null
null
plugins/rd_bot.py
deg4uss3r/rd_bot
f82a929b59331d2ee67067369cd6ffe92a4fa7e6
[ "MIT" ]
3
2016-09-17T09:51:49.000Z
2019-11-13T20:58:37.000Z
plugins/rd_bot.py
deg4uss3r/rd_bot
f82a929b59331d2ee67067369cd6ffe92a4fa7e6
[ "MIT" ]
null
null
null
from __future__ import unicode_literals import requests import json import os import sys outputs = [] def get_lat_lng(city): try: googleclientSecretFile = open('google_api_key', 'r') GCLIENTSECRET = googleclientSecretFile.read() GCLIENTSECRET = GCLIENTSECRET[:-1] except: print(...
28.77037
205
0.583162
468
3,884
4.694444
0.284188
0.031862
0.047792
0.057351
0.222576
0.127447
0.030951
0
0
0
0
0.02716
0.270082
3,884
134
206
28.985075
0.747795
0
0
0.288462
0
0
0.239444
0.013903
0
0
0
0
0
1
0.038462
false
0
0.048077
0
0.115385
0.067308
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7dcb26b78425a819dd55aa11592a32323ece117a
6,855
py
Python
swss.py
andycranston/swss
22db6b2e2eb5711d4fd06bd7a094342ad6be8b62
[ "MIT" ]
null
null
null
swss.py
andycranston/swss
22db6b2e2eb5711d4fd06bd7a094342ad6be8b62
[ "MIT" ]
null
null
null
swss.py
andycranston/swss
22db6b2e2eb5711d4fd06bd7a094342ad6be8b62
[ "MIT" ]
null
null
null
#! /usr/bin/python3 # # @(!--#) @(#) swss.py, version 002, 27-july-2018 # # open a series of home pages and take a screen shot of each one # ################################################################################################ # # imports # import sys import os import argparse import glob import shutil im...
26.467181
156
0.484318
639
6,855
5.179969
0.280125
0.04713
0.020544
0.016314
0.110574
0.110574
0.073716
0.073716
0.04713
0.04713
0
0.012026
0.27221
6,855
258
157
26.569767
0.651433
0.032969
0
0.272152
0
0
0.126441
0.004645
0
0
0
0
0
1
0.050633
false
0.006329
0.06962
0
0.208861
0.037975
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7dcb91ee413942a4aa1e8d201a6cf906a3130f7f
1,041
py
Python
api/migrations/versions/0be658f07ac6_state_consumed.py
eve-git/namex
130f261500ce595b291d5428c32e1f6cc38ea505
[ "Apache-2.0" ]
4
2018-10-05T23:41:05.000Z
2019-06-19T16:17:50.000Z
api/migrations/versions/0be658f07ac6_state_consumed.py
eve-git/namex
130f261500ce595b291d5428c32e1f6cc38ea505
[ "Apache-2.0" ]
635
2018-05-31T04:12:46.000Z
2022-03-31T18:45:42.000Z
api/migrations/versions/0be658f07ac6_state_consumed.py
thorwolpert/namex
b9d927774e4c0da0255ca5aaa7ed1890283956fd
[ "Apache-2.0" ]
71
2018-05-14T20:47:55.000Z
2022-03-31T23:08:30.000Z
"""state consumed Revision ID: 0be658f07ac6 Revises: bd1e892d0609 Create Date: 2021-07-18 21:26:04.588007 """ from alembic import op import sqlalchemy as sa from sqlalchemy.sql import table, column from sqlalchemy import String # revision identifiers, used by Alembic. revision = '0be658f07ac6' down_revision = 'bd1e...
24.785714
68
0.612872
115
1,041
5.495652
0.547826
0.042722
0.066456
0.072785
0.132911
0.132911
0.132911
0
0
0
0
0.066578
0.278578
1,041
41
69
25.390244
0.774967
0.338136
0
0
0
0
0.18894
0
0
0
0
0
0
1
0.095238
false
0
0.190476
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
7dcbb0c32530744ec259355b1498ba6ed0c58b39
2,878
py
Python
tests/test_pydantic.py
hCaptcha/hmt-basemodels
5108bf4ddf68d670607daf8d68302c01631c4be2
[ "MIT" ]
3
2020-09-08T15:03:31.000Z
2021-06-30T19:00:45.000Z
tests/test_pydantic.py
humanprotocol/hmt-basemodels
5108bf4ddf68d670607daf8d68302c01631c4be2
[ "MIT" ]
43
2019-02-28T17:43:42.000Z
2022-02-13T11:37:08.000Z
tests/test_pydantic.py
hCaptcha/hmt-basemodels
5108bf4ddf68d670607daf8d68302c01631c4be2
[ "MIT" ]
5
2019-05-09T15:58:07.000Z
2020-12-09T23:24:24.000Z
from unittest import TestCase, mock from copy import deepcopy from pydantic.error_wrappers import ValidationError from basemodels.pydantic import Manifest from basemodels.pydantic.manifest.data.taskdata import TaskDataEntry SIMPLE = { "job_mode": "batch", "request_type": "image_label_multiple_choice", "r...
33.858824
143
0.673384
297
2,878
6.329966
0.474747
0.067021
0.031915
0.046809
0.179255
0.167021
0.167021
0.067021
0.067021
0.067021
0
0.118427
0.187283
2,878
84
144
34.261905
0.685336
0.004517
0
0.149254
0
0.029851
0.422269
0.203782
0
0
0.044118
0
0.044776
1
0.074627
false
0
0.074627
0
0.164179
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
7dcc1a030ac1c718e3ae0328b8bf873af5f2d223
1,064
py
Python
olutils/path.py
OctaveLauby/olutils
9d0741fe2a3ce527be60be2bf1a6904c3340e488
[ "Apache-2.0" ]
1
2020-10-23T17:11:42.000Z
2020-10-23T17:11:42.000Z
olutils/path.py
OctaveLauby/olutils
9d0741fe2a3ce527be60be2bf1a6904c3340e488
[ "Apache-2.0" ]
4
2019-05-09T12:53:33.000Z
2020-12-03T13:49:26.000Z
olutils/path.py
OctaveLauby/olutils
9d0741fe2a3ce527be60be2bf1a6904c3340e488
[ "Apache-2.0" ]
null
null
null
from os.path import exists def get_next_path(path_frmt: str, start: int = 1) -> str: """Return next available path based on path_frmt (1 positional-placeholder)""" return path_frmt.format(get_next_path_index(path_frmt, start=start)) def get_next_path_index(path_frmt: str, start: int = 1) -> int: """Get ...
36.689655
92
0.68797
145
1,064
4.917241
0.406897
0.123422
0.046283
0.039271
0.207574
0.207574
0
0
0
0
0
0.032887
0.228383
1,064
28
93
38
0.835566
0.369361
0
0
0
0
0.166667
0.034268
0
0
0
0
0.142857
1
0.142857
false
0
0.071429
0
0.357143
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
7dcde3e58f5df9d50ac28aa03a0ad0516f667fbc
2,730
py
Python
test/patterns/joined_validation/test_joined_validation.py
acheshkov/aibolit
eed2fafa9fbc5f3359510cd80fee2ae8311d7ed8
[ "MIT" ]
null
null
null
test/patterns/joined_validation/test_joined_validation.py
acheshkov/aibolit
eed2fafa9fbc5f3359510cd80fee2ae8311d7ed8
[ "MIT" ]
null
null
null
test/patterns/joined_validation/test_joined_validation.py
acheshkov/aibolit
eed2fafa9fbc5f3359510cd80fee2ae8311d7ed8
[ "MIT" ]
null
null
null
import os from unittest import TestCase from aibolit.patterns.joined_validation.joined_validation import JoinedValidation from pathlib import Path class TestJoinedValidation(TestCase): dir_path = Path(os.path.realpath(__file__)).parent pattern = JoinedValidation() def test_canFindSimpleJoinedValidation(s...
33.292683
81
0.630037
262
2,730
6.469466
0.255725
0.103835
0.063717
0.084956
0.435988
0.435988
0.313864
0.313864
0.313864
0.313864
0
0.003584
0.284615
2,730
81
82
33.703704
0.864311
0
0
0.357143
0
0
0.250183
0.092674
0
0
0
0
0.128571
1
0.128571
false
0
0.057143
0
0.228571
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
7dce2ac1c38976edf285448acc824af893571906
971
py
Python
python_structure/data_structures/lists_tuples_dictionaries/tuple_defs.py
bangyen/pascal-triangle
0831348e93c274bdd38bba5c3aeeda7596ab97ee
[ "MIT" ]
1
2020-03-11T10:20:53.000Z
2020-03-11T10:20:53.000Z
python_structure/data_structures/lists_tuples_dictionaries/tuple_defs.py
bangyen/pascal-triangle
0831348e93c274bdd38bba5c3aeeda7596ab97ee
[ "MIT" ]
1
2020-07-06T15:45:01.000Z
2020-07-06T15:50:32.000Z
python_structure/data_structures/lists_tuples_dictionaries/tuple_defs.py
bangyen/pascal-triangle
0831348e93c274bdd38bba5c3aeeda7596ab97ee
[ "MIT" ]
1
2020-07-02T05:21:58.000Z
2020-07-02T05:21:58.000Z
""" Global tuple to avoid make a new one each time a method is called """ my_tuple = ("London", 123, 18.2) def city_tuple_declaration(): city = ("Rome", "London", "Tokyo") return city def tuple_get_element(index: int): try: element = my_tuple[index] print(element) except IndexError: ...
22.068182
69
0.676622
134
971
4.589552
0.380597
0.056911
0.058537
0.107317
0.302439
0.302439
0.113821
0
0
0
0
0.009198
0.216272
971
43
70
22.581395
0.798949
0.066941
0
0.071429
0
0
0.07461
0
0
0
0
0
0
1
0.178571
false
0
0
0
0.357143
0.214286
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7dd0263f686636079c3320a5eff927b93bd01ba9
3,016
py
Python
learning_algorithms/hysteretic_q_matrix.py
swj0418/Reinforcement_Learning_Framework
1ac6bbe31cee5ea7f1e5f28d8b53aa3985b39db8
[ "Apache-2.0" ]
1
2019-07-01T11:47:33.000Z
2019-07-01T11:47:33.000Z
learning_algorithms/hysteretic_q_matrix.py
swj0418/Reinforcement_Learning_Framework
1ac6bbe31cee5ea7f1e5f28d8b53aa3985b39db8
[ "Apache-2.0" ]
1
2019-04-13T05:46:14.000Z
2019-04-13T05:46:14.000Z
learning_algorithms/hysteretic_q_matrix.py
swj0418/Reinforcement_Learning_Framework
1ac6bbe31cee5ea7f1e5f28d8b53aa3985b39db8
[ "Apache-2.0" ]
null
null
null
import numpy as np class Agent: def __init__(self): self.q_table = np.zeros(shape=(3, )) self.rewards = [] self.averaged_rewards = [] self.total_rewards = 0 self.action_cursor = 1 class HystereticAgentMatrix: def __init__(self, environment, increasing_learning_rate=0.9...
33.511111
110
0.623342
372
3,016
4.80914
0.215054
0.050307
0.053102
0.035774
0.107323
0.062605
0
0
0
0
0
0.014459
0.289125
3,016
90
111
33.511111
0.819963
0.071618
0
0.083333
0
0
0
0
0
0
0
0
0
1
0.133333
false
0
0.016667
0.033333
0.233333
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
7dd0a1a9133fdf0ceb0199e1c5e7bef38b12567d
14,581
py
Python
psiz/keras/layers/kernel.py
asuiconlab/psiz
4f05348cf43d2d53ff9cc6dee633de385df883e3
[ "Apache-2.0" ]
null
null
null
psiz/keras/layers/kernel.py
asuiconlab/psiz
4f05348cf43d2d53ff9cc6dee633de385df883e3
[ "Apache-2.0" ]
null
null
null
psiz/keras/layers/kernel.py
asuiconlab/psiz
4f05348cf43d2d53ff9cc6dee633de385df883e3
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 The PsiZ 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 r...
32.692825
79
0.613812
1,669
14,581
5.194727
0.170761
0.012918
0.016494
0.014533
0.52722
0.471626
0.449827
0.432065
0.425375
0.403922
0
0.005604
0.290241
14,581
445
80
32.766292
0.832158
0.314519
0
0.510549
0
0
0.051058
0.009573
0
0
0
0.008989
0
1
0.105485
false
0
0.033755
0.016878
0.227848
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
7dd56ee0d12643635fe1de9999d5c50d9f66ca84
14,617
py
Python
DCSCN.py
dattv/DCSCN-Tensorflow
eaed09c1d39236617f970b16f555ae88cfa49280
[ "MIT" ]
3
2019-06-18T13:04:26.000Z
2019-06-25T07:59:10.000Z
DCSCN.py
dattv/DCSCN-Tensorflow
eaed09c1d39236617f970b16f555ae88cfa49280
[ "MIT" ]
null
null
null
DCSCN.py
dattv/DCSCN-Tensorflow
eaed09c1d39236617f970b16f555ae88cfa49280
[ "MIT" ]
null
null
null
""" """ import logging import os import random import time import matplotlib import matplotlib.pyplot as plt import numpy as np import tensorflow as tf from helper import loader, utility as util matplotlib.use("agg") INPUT_IMAGE_DIR = "input" INTERPOLATED_IMAGE_DIR = "interpolated" TRUE_IMAGE_DIR = "true" class...
46.256329
126
0.59205
1,856
14,617
4.441272
0.163254
0.027296
0.018683
0.015286
0.247604
0.190343
0.173359
0.163775
0.163775
0.159165
0
0.015039
0.308545
14,617
315
127
46.403175
0.800534
0.118834
0
0.149378
0
0.004149
0.039613
0.002417
0
0
0
0
0
1
0.049793
false
0
0.037344
0
0.112033
0.024896
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7dd999fb131d09d1bf5880249af5cf7d95c80d95
8,713
py
Python
python/housinginsights/sources/cama.py
mrkem598/housing-insights
05dffebad690bf727cbcbec53128d2fb69166e4c
[ "MIT" ]
null
null
null
python/housinginsights/sources/cama.py
mrkem598/housing-insights
05dffebad690bf727cbcbec53128d2fb69166e4c
[ "MIT" ]
null
null
null
python/housinginsights/sources/cama.py
mrkem598/housing-insights
05dffebad690bf727cbcbec53128d2fb69166e4c
[ "MIT" ]
null
null
null
# Script is deprecated, as of September 18, 2017. # zoneUnitCount now calculated with LoadData's _get_residential_units() # from pprint import pprint import os import sys import requests from collections import OrderedDict import csv import datetime PYTHON_PATH = os.path.abspath(os.path.join(os.path.dirname(__file__)...
39.247748
177
0.572019
981
8,713
4.917431
0.301733
0.032338
0.032338
0.010365
0.108624
0.038557
0.024461
0.024461
0.024461
0.024461
0
0.013952
0.317227
8,713
221
178
39.425339
0.796941
0.162975
0
0.064516
0
0
0.174366
0.018928
0
0
0
0
0
1
0.040323
false
0
0.072581
0
0.16129
0.032258
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7ddaf2399cff82d2687308f91fcf9cc720123562
1,234
py
Python
web-app/servers/card-recognize/app.py
woojae9488/HLF_chaincode
6737f70c1daea766fa567b08454b8b63a7a97d4a
[ "Apache-2.0" ]
2
2020-02-10T00:08:11.000Z
2020-02-19T02:06:14.000Z
web-app/servers/card-recognize/app.py
woojae9488/HLF_chaincode
6737f70c1daea766fa567b08454b8b63a7a97d4a
[ "Apache-2.0" ]
14
2020-04-26T13:56:38.000Z
2020-09-23T06:27:53.000Z
web-app/servers/card-recognize/app.py
woojae9488/HLF_chaincode
6737f70c1daea766fa567b08454b8b63a7a97d4a
[ "Apache-2.0" ]
3
2020-04-25T11:28:57.000Z
2022-03-28T12:19:25.000Z
from flask import Flask, make_response, request from flask_cors import CORS import json from config import * from StudentCard import * from ApiError import * App = Flask(__name__) cors = CORS(App, resources={r'*': {'origins': ENV.ADDR_API_GATEWAY}}, headers='Content-Type: application/json') ...
26.826087
64
0.63047
137
1,234
5.547445
0.467153
0.078947
0.047368
0.023684
0.039474
0
0
0
0
0
0
0.010753
0.246353
1,234
45
65
27.422222
0.806452
0
0
0.054054
0
0
0.15154
0
0
0
0
0
0
1
0.027027
false
0
0.162162
0
0.216216
0.135135
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7ddb8e0adf2de6b7f5b4a9514a61cad048355467
2,604
py
Python
smart_home/power_controller.py
achuchev/-SmartHome-AlexaLambda
0e8bfe30c76688a209ee4bc8d40016478d537aba
[ "MIT" ]
null
null
null
smart_home/power_controller.py
achuchev/-SmartHome-AlexaLambda
0e8bfe30c76688a209ee4bc8d40016478d537aba
[ "MIT" ]
null
null
null
smart_home/power_controller.py
achuchev/-SmartHome-AlexaLambda
0e8bfe30c76688a209ee4bc8d40016478d537aba
[ "MIT" ]
1
2020-06-27T15:20:29.000Z
2020-06-27T15:20:29.000Z
import logging from smart_home.mqtt_client import MQTTClient from smart_home.utils_lambda import get_utc_timestamp, error_response, success_response, get_request_message_id, get_mqtt_topics_from_request, get_request_name, get_friendly_name_from_request class PowerController(object): @staticmethod def handle_...
37.2
191
0.661674
282
2,604
5.677305
0.255319
0.069956
0.09619
0.059338
0.414116
0.351655
0.21549
0.098688
0
0
0
0.00052
0.261137
2,604
69
192
37.73913
0.831601
0
0
0.218182
0
0
0.112903
0.017665
0
0
0
0
0
1
0.072727
false
0
0.054545
0.018182
0.254545
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
7ddd6afc3df36a52da70783ec74e257d9596b945
4,082
py
Python
components/mpas-seaice/testing_and_setup/testcases/advection/plot_testcase.py
Fa-Li/E3SM
a91995093ec6fc0dd6e50114f3c70b5fb64de0f0
[ "zlib-acknowledgement", "FTL", "RSA-MD" ]
235
2018-04-23T16:30:06.000Z
2022-03-21T17:53:12.000Z
components/mpas-seaice/testing_and_setup/testcases/advection/plot_testcase.py
Fa-Li/E3SM
a91995093ec6fc0dd6e50114f3c70b5fb64de0f0
[ "zlib-acknowledgement", "FTL", "RSA-MD" ]
2,372
2018-04-20T18:12:34.000Z
2022-03-31T23:43:17.000Z
components/mpas-seaice/testing_and_setup/testcases/advection/plot_testcase.py
Fa-Li/E3SM
a91995093ec6fc0dd6e50114f3c70b5fb64de0f0
[ "zlib-acknowledgement", "FTL", "RSA-MD" ]
254
2018-04-20T20:43:32.000Z
2022-03-30T20:13:38.000Z
from netCDF4 import Dataset import matplotlib import matplotlib.pyplot as plt from matplotlib.patches import Polygon from matplotlib.collections import PatchCollection import matplotlib.cm as cm import numpy as np #------------------------------------------------------------- def plot_subfigure(axis, array, nCells, n...
31.160305
184
0.533317
397
4,082
5.410579
0.350126
0.062849
0.044693
0.051676
0.137337
0.126629
0.094972
0.094972
0.094972
0
0
0.026783
0.295688
4,082
130
185
31.4
0.720348
0.049241
0
0.022989
0
0
0.065498
0.008252
0
0
0
0
0
1
0.022989
false
0
0.08046
0
0.103448
0.034483
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7ddf431c5c2dcc581f44d2c5411d8380ca8401f0
2,278
py
Python
aeropy/filehandling/paraview.py
belac626/AeroPy
4f045306427e08b742237b7393ce9602f1072d60
[ "MIT" ]
null
null
null
aeropy/filehandling/paraview.py
belac626/AeroPy
4f045306427e08b742237b7393ce9602f1072d60
[ "MIT" ]
null
null
null
aeropy/filehandling/paraview.py
belac626/AeroPy
4f045306427e08b742237b7393ce9602f1072d60
[ "MIT" ]
null
null
null
#### import the simple module from the paraview from paraview.simple import * #### disable automatic camera reset on 'Show' paraview.simple._DisableFirstRenderCameraReset() network_number = 2 filename = 'test_network' directory = 'C:\\Users\\leal26\\Documents\\GitHub\\AeroPy\\aeropy\\CST\\' # get active view...
43.807692
127
0.763389
247
2,278
6.902834
0.489879
0.103226
0.160117
0.058651
0.005865
0
0
0
0
0
0
0.110883
0.144864
2,278
52
128
43.807692
0.764374
0.248025
0
0
0
0
0.111247
0.06357
0
0
0
0
0
1
0
false
0
0.035714
0
0.035714
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
7de07a2c955d17b395e18d20843ee393cc3f7511
21,804
py
Python
pyFIRS/utils.py
Ecotrust/pyFIRS
f4bd8e11b24f125c59b69b04a7c3d11eabc0e81b
[ "BSD-3-Clause" ]
3
2019-05-01T01:38:05.000Z
2020-02-06T01:42:00.000Z
pyFIRS/utils.py
Ecotrust/pyFIRS
f4bd8e11b24f125c59b69b04a7c3d11eabc0e81b
[ "BSD-3-Clause" ]
1
2019-09-19T00:56:58.000Z
2019-09-19T00:56:58.000Z
pyFIRS/utils.py
Ecotrust/pyFIRS
f4bd8e11b24f125c59b69b04a7c3d11eabc0e81b
[ "BSD-3-Clause" ]
null
null
null
import glob import json import os import subprocess import time import xml.etree.ElementTree as ET from xml.etree.ElementTree import ParseError import geopandas as gpd import rasterio import numpy as np from shapely.geometry import Polygon class PipelineError(RuntimeError): def __init__(self, message): s...
34.175549
83
0.631948
2,824
21,804
4.76381
0.194051
0.009366
0.010704
0.008325
0.247454
0.215788
0.19163
0.163384
0.130529
0.120345
0
0.007613
0.265043
21,804
637
84
34.229199
0.831888
0.430105
0
0.177536
0
0.007246
0.101208
0.001926
0.003623
0
0
0
0
1
0.065217
false
0.018116
0.039855
0
0.141304
0.065217
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7de18971fbc5070d8520ba99ee3a0260bc65c1f5
638
py
Python
tests/test_simulation_utils.py
burgersmoke/epysurv
606aaf1d50a8d39473dc245e78e5b2eb122c2ba3
[ "MIT" ]
8
2019-07-29T09:44:43.000Z
2021-06-29T20:54:57.000Z
tests/test_simulation_utils.py
burgersmoke/epysurv
606aaf1d50a8d39473dc245e78e5b2eb122c2ba3
[ "MIT" ]
31
2019-03-29T23:05:33.000Z
2021-10-04T16:26:46.000Z
tests/test_simulation_utils.py
burgersmoke/epysurv
606aaf1d50a8d39473dc245e78e5b2eb122c2ba3
[ "MIT" ]
4
2019-09-25T12:54:22.000Z
2021-08-11T06:40:45.000Z
import pandas as pd from rpy2 import robjects from epysurv.simulation.utils import add_date_time_index_to_frame, r_list_to_frame def test_add_date_time_index_to_frame(): df = add_date_time_index_to_frame(pd.DataFrame({"a": [1, 2, 3]})) freq = pd.infer_freq(df.index) assert freq == "W-MON" def test_r_li...
29
82
0.716301
106
638
3.933962
0.396226
0.100719
0.079137
0.115108
0.321343
0.280576
0.115108
0
0
0
0
0.024164
0.15674
638
21
83
30.380952
0.750929
0
0
0
0
0
0.094044
0
0
0
0
0
0.142857
1
0.142857
false
0
0.214286
0
0.357143
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
7de5842a34fa630d341aa9d9c697b199184bb9ae
655
py
Python
examples/python/bunny_pieline.py
Willyzw/vdbfusion
ca9107a3f44e43629b149ea80c9cd21d9f274baa
[ "MIT" ]
119
2022-02-08T15:25:25.000Z
2022-03-29T12:16:35.000Z
examples/python/bunny_pieline.py
arenas7307979/vdbfusion
7ed8d3142b4b6e164633516f0ed435e1065e5212
[ "MIT" ]
10
2022-02-09T07:54:23.000Z
2022-03-25T03:12:47.000Z
examples/python/bunny_pieline.py
arenas7307979/vdbfusion
7ed8d3142b4b6e164633516f0ed435e1065e5212
[ "MIT" ]
11
2022-02-08T15:33:44.000Z
2022-02-22T02:47:27.000Z
#!/usr/bin/env python3 # @file cow_pipeline.py # @author Ignacio Vizzo [ivizzo@uni-bonn.de] # # Copyright (c) 2021 Ignacio Vizzo, all rights reserved import argh from datasets import BunnyGeneratedDataset as Dataset from vdbfusion_pipeline import VDBFusionPipeline as Pipeline def main( data_source: s...
25.192308
60
0.708397
82
655
5.47561
0.658537
0.053452
0
0
0
0
0
0
0
0
0
0.009381
0.18626
655
25
61
26.2
0.833021
0.248855
0
0
0
0
0.062241
0
0
0
0
0
0
1
0.071429
false
0
0.214286
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
7de96af0dde6dfcdb1cd866b9ae2a4a947f6d2c2
274
py
Python
examples/python/hello2.py
redcodestudios/legion_script
565fb9bc6fe1dd9d9cf1a2111fd4e4cef4cd3565
[ "MIT" ]
13
2020-10-21T16:34:50.000Z
2022-03-16T14:37:30.000Z
examples/python/hello2.py
redcodestudios/legion_script
565fb9bc6fe1dd9d9cf1a2111fd4e4cef4cd3565
[ "MIT" ]
null
null
null
examples/python/hello2.py
redcodestudios/legion_script
565fb9bc6fe1dd9d9cf1a2111fd4e4cef4cd3565
[ "MIT" ]
null
null
null
import engine print("Python: Script 2") class Rotation(metaclass=engine.MetaComponent): def __init__(self): self.trans = 5 result = engine.query(Color) print("Python: Query colors from Script 2") for c in result: c.string() print("--------------------")
18.266667
47
0.638686
35
274
4.885714
0.685714
0.128655
0
0
0
0
0
0
0
0
0
0.013216
0.171533
274
14
48
19.571429
0.740088
0
0
0
0
0
0.255474
0
0
0
0
0
0
1
0.1
false
0
0.1
0
0.3
0.3
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7de9ef0f997041de89ca689516f1669065c3dc15
4,389
py
Python
io_scene_halo/file_tag/import_tag.py
AerialDave144/Halo-Asset-Blender-Development-Toolset
f1b0c0b22806ebabaf0126ad864896193c02307f
[ "MIT" ]
null
null
null
io_scene_halo/file_tag/import_tag.py
AerialDave144/Halo-Asset-Blender-Development-Toolset
f1b0c0b22806ebabaf0126ad864896193c02307f
[ "MIT" ]
null
null
null
io_scene_halo/file_tag/import_tag.py
AerialDave144/Halo-Asset-Blender-Development-Toolset
f1b0c0b22806ebabaf0126ad864896193c02307f
[ "MIT" ]
null
null
null
# ##### BEGIN MIT LICENSE BLOCK ##### # # MIT License # # Copyright (c) 2022 Steven Garcia # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation ...
39.1875
125
0.75188
624
4,389
5.009615
0.282051
0.083173
0.059821
0.051504
0.290787
0.244082
0.159949
0.102687
0.078375
0
0
0.004162
0.178856
4,389
111
126
39.540541
0.863208
0.261107
0
0.183333
0
0
0.092958
0
0
0
0
0
0
1
0.016667
false
0
0.3
0
0.383333
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
7deaa318807e1bc9f791206624ba77111ef68405
1,537
py
Python
pines/smartread.py
jpn--/pine
3980a9f0b09dd36b2fed7e52750847637be5f067
[ "MIT" ]
2
2017-08-09T02:42:37.000Z
2020-06-16T14:14:16.000Z
pines/smartread.py
jpn--/pine
3980a9f0b09dd36b2fed7e52750847637be5f067
[ "MIT" ]
null
null
null
pines/smartread.py
jpn--/pine
3980a9f0b09dd36b2fed7e52750847637be5f067
[ "MIT" ]
null
null
null
import gzip, os, struct, zipfile, io class SmartFileReader(object): def __init__(self, file, *args, **kwargs): if file[-3:]=='.gz': with open(file, 'rb') as f: f.seek(-4, 2) self._filesize = struct.unpack('I', f.read(4))[0] self.file = gzip.open(file, *args, **kwargs) elif file[-4:]=='.zip': ...
30.137255
94
0.657775
227
1,537
4.264317
0.378855
0.099174
0.03719
0.045455
0
0
0
0
0
0
0
0.021909
0.16851
1,537
50
95
30.74
0.735524
0
0
0.044444
0
0
0.09375
0
0
0
0
0
0
1
0.155556
false
0
0.022222
0.066667
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7def97525f164a67b3206cba17eb1da34b5d6234
3,154
py
Python
build/getversion.py
timgates42/subversion
0f088f530747140c6783c2eeb77ceff8e8613c42
[ "Apache-2.0" ]
3
2017-01-03T03:20:56.000Z
2018-12-24T22:05:09.000Z
build/getversion.py
timgates42/subversion
0f088f530747140c6783c2eeb77ceff8e8613c42
[ "Apache-2.0" ]
3
2016-06-12T17:02:25.000Z
2019-02-03T11:08:18.000Z
build/getversion.py
timgates42/subversion
0f088f530747140c6783c2eeb77ceff8e8613c42
[ "Apache-2.0" ]
3
2017-01-21T00:15:13.000Z
2020-11-04T07:23:50.000Z
#!/usr/bin/env python # # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the #...
27.426087
63
0.675333
460
3,154
4.515217
0.386957
0.028888
0.02311
0.018777
0.158883
0.158883
0.142513
0.103996
0.103996
0.103996
0
0.016135
0.194356
3,154
114
64
27.666667
0.801259
0.342422
0
0.188406
0
0
0.157136
0.02371
0
0
0
0
0
1
0.086957
false
0.014493
0.057971
0
0.188406
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
7df019fabd0e51d78fd4be6cb16ea6706b50e9be
1,136
py
Python
redis/p02-vote/client/c02.py
JoseIbanez/testing
4d6ff310cd63a8b2f8e1abcfbea0f17b23220021
[ "MIT" ]
1
2016-09-15T03:58:30.000Z
2016-09-15T03:58:30.000Z
redis/p02-vote/client/c02.py
JoseIbanez/testing
4d6ff310cd63a8b2f8e1abcfbea0f17b23220021
[ "MIT" ]
1
2020-09-13T08:44:50.000Z
2020-09-13T08:44:50.000Z
redis/p02-vote/client/c02.py
JoseIbanez/testing
4d6ff310cd63a8b2f8e1abcfbea0f17b23220021
[ "MIT" ]
null
null
null
#!/usr/bin/python import httplib import random import argparse import sys #Get options parser = argparse.ArgumentParser( description='Testing vote app') parser.add_argument( '-port', type=int, help='port of server', default=8000) parser.add_argument( '-host', ...
17.476923
60
0.647007
143
1,136
5.118881
0.48951
0.047814
0.076503
0.120219
0.15847
0.125683
0.087432
0
0
0
0
0.026201
0.193662
1,136
65
61
17.476923
0.772926
0.127641
0
0.243243
0
0
0.145473
0
0
0
0
0
0
1
0
false
0
0.108108
0
0.108108
0.108108
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7df1653c3e5e087f0be1c1ff434e58035664ddf1
8,161
py
Python
vm_manager/vm_functions/admin_functionality.py
NeCTAR-RC/bumblebee
8ba4c543695c83ea1ca532012203f05189438e23
[ "Apache-2.0" ]
3
2021-11-19T10:45:17.000Z
2022-02-15T21:57:58.000Z
vm_manager/vm_functions/admin_functionality.py
NeCTAR-RC/bumblebee
8ba4c543695c83ea1ca532012203f05189438e23
[ "Apache-2.0" ]
null
null
null
vm_manager/vm_functions/admin_functionality.py
NeCTAR-RC/bumblebee
8ba4c543695c83ea1ca532012203f05189438e23
[ "Apache-2.0" ]
null
null
null
from uuid import UUID import django_rq import logging from datetime import datetime, timezone, timedelta from django.core.mail import mail_managers from django.db.models import Count from django.db.models.functions import TruncDay from django.http import HttpResponse, HttpResponseRedirect, Http404 from django.shortcu...
41.01005
92
0.638892
980
8,161
5.073469
0.213265
0.060338
0.010459
0.016895
0.36605
0.29646
0.263475
0.25181
0.25181
0.212792
0
0.008696
0.267247
8,161
198
93
41.217172
0.822742
0.056611
0
0.189873
0
0
0.065904
0.00763
0
0
0
0
0
1
0.050633
false
0
0.094937
0
0.189873
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
7df1d68440ff66d19aea439b6b82acb020e94a8f
365
py
Python
scripts/af_renameSG.py
aaronfang/small-Scripts
890b10ab19fa9cdf2415aaf2dc08b81cc64fc79d
[ "MIT" ]
1
2018-03-08T16:34:00.000Z
2018-03-08T16:34:00.000Z
scripts/af_renameSG.py
aaronfang/personal_scripts
890b10ab19fa9cdf2415aaf2dc08b81cc64fc79d
[ "MIT" ]
null
null
null
scripts/af_renameSG.py
aaronfang/personal_scripts
890b10ab19fa9cdf2415aaf2dc08b81cc64fc79d
[ "MIT" ]
null
null
null
# rename shading group name to material name but with SG ended import pymel.core as pm import re selSG = pm.ls(sl=True,fl=True) for SG in selSG: curMat = pm.listConnections(SG,d=1) for mat in curMat: if pm.nodeType(mat) == 'blinn' or pm.nodeType(mat) == 'lambert': sgNM = re.split("_mat",str(...
33.181818
72
0.632877
61
365
3.770492
0.606557
0.086957
0.113043
0
0
0
0
0
0
0
0
0.007117
0.230137
365
10
73
36.5
0.811388
0.164384
0
0
0
0
0.059406
0
0
0
0
0
0
1
0
false
0
0.222222
0
0.222222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8145be52efea74b03f5b43c1e53cd198f1584621
729
py
Python
conftest.py
berpress/MT5WT
10826f974cd5aef14e8771e18ca0314f27a902e3
[ "Apache-2.0" ]
null
null
null
conftest.py
berpress/MT5WT
10826f974cd5aef14e8771e18ca0314f27a902e3
[ "Apache-2.0" ]
1
2019-11-26T18:12:24.000Z
2019-11-26T18:12:24.000Z
conftest.py
berpress/MT5WT
10826f974cd5aef14e8771e18ca0314f27a902e3
[ "Apache-2.0" ]
null
null
null
import pytest from common.common import NETTING_ACCOUNT from fixture.application import Application @pytest.fixture(scope="session") def app(request): base_url = request.config.getoption("--base_url") fixture = Application(base_url) fixture.wd.maximize_window() fixture.wd.implicitly_wait(10) yield...
24.3
79
0.699588
91
729
5.43956
0.472527
0.070707
0.056566
0
0
0
0
0
0
0
0
0.005017
0.179698
729
29
80
25.137931
0.822742
0
0
0
0
0
0.093278
0
0
0
0
0
0
1
0.130435
false
0.043478
0.130435
0
0.26087
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
81473d4251ec4022292a6f33a138c31e6bf74550
3,855
py
Python
chapps/tests/test_util/test_util.py
easydns/chapps
3bb54e795de1f91c6cf749f9aeb16b1211584809
[ "MIT" ]
1
2022-03-23T13:36:43.000Z
2022-03-23T13:36:43.000Z
chapps/tests/test_util/test_util.py
easydns/chapps
3bb54e795de1f91c6cf749f9aeb16b1211584809
[ "MIT" ]
2
2022-02-25T18:12:15.000Z
2022-03-07T22:32:13.000Z
chapps/tests/test_util/test_util.py
easydns/chapps
3bb54e795de1f91c6cf749f9aeb16b1211584809
[ "MIT" ]
null
null
null
"""CHAPPS Utilities Tests .. todo:: Write tests for :class:`~chapps.util.VenvDetector` """ import pytest from pprint import pprint as ppr from chapps.util import AttrDict, PostfixPolicyRequest pytestmark = pytest.mark.order(1) class Test_AttrDict: def test_attr_dict_return_int(self, mock_config_dict): ...
33.521739
82
0.628275
483
3,855
4.815735
0.246377
0.036114
0.072227
0.139295
0.479364
0.452279
0.439381
0.423474
0.406277
0.380052
0
0.002888
0.281453
3,855
114
83
33.815789
0.836823
0.262257
0
0.280702
0
0
0.049425
0
0
0
0
0.008772
0.210526
1
0.175439
false
0
0.052632
0
0.263158
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
81497b94baefb829f896f3159d41b2c5f1e8542b
2,386
py
Python
blkdiscovery/blkid.py
jaredeh/blkdiscovery
b2a73f12adfe784157783d94dbdb17a79810a680
[ "MIT" ]
null
null
null
blkdiscovery/blkid.py
jaredeh/blkdiscovery
b2a73f12adfe784157783d94dbdb17a79810a680
[ "MIT" ]
null
null
null
blkdiscovery/blkid.py
jaredeh/blkdiscovery
b2a73f12adfe784157783d94dbdb17a79810a680
[ "MIT" ]
null
null
null
import os import re #hack for python2 support try: from .blkdiscoveryutil import * except: from blkdiscoveryutil import * class Blkid(BlkDiscoveryUtil): def parse_line(self,line): details = {} diskline = line.split(':',1) if len(diskline) < 2: return path = disk...
29.45679
75
0.538139
262
2,386
4.820611
0.328244
0.035629
0.041172
0.041172
0
0
0
0
0
0
0
0.010316
0.349958
2,386
80
76
29.825
0.803997
0.03772
0
0.125
0
0
0.032258
0
0
0
0
0
0
1
0.055556
false
0
0.069444
0
0.208333
0.069444
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
81498134e7422fff5c181158b8b48f05fe97fab6
6,217
py
Python
cosa/analyzers/bmc_ltl.py
zsisco/CoSA
b7a5107fcbae9b3ed3726fbcf9240b39252ef551
[ "BSD-3-Clause" ]
52
2018-02-26T19:01:03.000Z
2022-02-24T08:30:00.000Z
cosa/analyzers/bmc_ltl.py
zsisco/CoSA
b7a5107fcbae9b3ed3726fbcf9240b39252ef551
[ "BSD-3-Clause" ]
28
2018-06-07T22:18:23.000Z
2020-10-27T01:21:01.000Z
cosa/analyzers/bmc_ltl.py
zsisco/CoSA
b7a5107fcbae9b3ed3726fbcf9240b39252ef551
[ "BSD-3-Clause" ]
12
2018-08-16T20:02:46.000Z
2021-01-20T18:17:45.000Z
# Copyright 2018 Cristian Mattarei # # Licensed under the modified BSD (3-clause BSD) License. # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the ...
32.212435
102
0.579218
823
6,217
4.211422
0.229648
0.037507
0.010387
0.01558
0.16532
0.116849
0.076168
0.057703
0.032314
0.032314
0
0.008239
0.316712
6,217
192
103
32.380208
0.807674
0.063375
0
0.101563
0
0
0.030277
0
0
0
0
0
0.039063
1
0.0625
false
0
0.078125
0
0.304688
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
81499daf35ebda15aaf719c6405036c7a52b937c
4,623
py
Python
paleomix/nodes/bowtie2.py
MikkelSchubert/paleomix
5c6414060088ba178ff1c400bdbd45d2f6b1aded
[ "MIT" ]
33
2015-04-08T10:44:19.000Z
2021-11-01T14:23:40.000Z
paleomix/nodes/bowtie2.py
MikkelSchubert/paleomix
5c6414060088ba178ff1c400bdbd45d2f6b1aded
[ "MIT" ]
41
2015-07-17T12:46:16.000Z
2021-10-13T06:47:25.000Z
paleomix/nodes/bowtie2.py
MikkelSchubert/paleomix
5c6414060088ba178ff1c400bdbd45d2f6b1aded
[ "MIT" ]
19
2015-01-23T07:09:39.000Z
2021-04-06T09:30:21.000Z
#!/usr/bin/python3 # # Copyright (c) 2012 Mikkel Schubert <MikkelSch@gmail.com> # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights ...
30.019481
79
0.605667
504
4,623
5.363095
0.373016
0.059933
0.025897
0.014428
0.052534
0.039956
0.017018
0
0
0
0
0.016843
0.306511
4,623
153
80
30.215686
0.826263
0.236859
0
0.112069
0
0
0.06931
0
0
0
0
0
0
1
0.025862
false
0
0.043103
0.008621
0.094828
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
8149af93bae69dfead5a5f9ae4e810455dcc5116
976
py
Python
modu_01/04_02_lab.py
94JuHo/study_for_deeplearning
ababf482b6a24d94b5f860ea9a68e34fe324d182
[ "MIT" ]
null
null
null
modu_01/04_02_lab.py
94JuHo/study_for_deeplearning
ababf482b6a24d94b5f860ea9a68e34fe324d182
[ "MIT" ]
null
null
null
modu_01/04_02_lab.py
94JuHo/study_for_deeplearning
ababf482b6a24d94b5f860ea9a68e34fe324d182
[ "MIT" ]
null
null
null
import os os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2' #내 맥북에서 발생되는 에러를 없애기 위한 코드 import tensorflow as tf #using matrix x_data = [[73., 80., 75.], [93., 88., 93.,], [89., 91., 90.], [96., 98., 100.], [73., 66., 70.]] y_data = [[152.], [185.], [180.], [196.], [142.]] X = tf.placeholder(tf.float32, shape=[None, 3]) #n개의 데...
32.533333
96
0.655738
159
976
3.899371
0.610063
0.016129
0.048387
0.070968
0.177419
0.1
0
0
0
0
0
0.077566
0.141393
976
29
97
33.655172
0.662291
0.082992
0
0
0
0
0.057175
0
0
0
0
0
0
1
0
false
0
0.105263
0
0.105263
0.052632
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
814a3026ad57c4136a0d1ae0e01b8c8cbeaa23f5
3,291
py
Python
freezer/storage/fslike.py
kwu83tw/freezer
5aaab1e70bf957436d888fbc3fce7af8d25eb124
[ "MIT" ]
141
2015-10-18T02:53:47.000Z
2022-03-10T11:31:30.000Z
freezer/storage/fslike.py
kwu83tw/freezer
5aaab1e70bf957436d888fbc3fce7af8d25eb124
[ "MIT" ]
1
2016-10-31T01:56:10.000Z
2016-10-31T01:56:10.000Z
freezer/storage/fslike.py
kwu83tw/freezer
5aaab1e70bf957436d888fbc3fce7af8d25eb124
[ "MIT" ]
50
2015-10-27T12:16:08.000Z
2022-02-14T07:14:01.000Z
# (c) Copyright 2014,2015 Hewlett-Packard Development Company, L.P. # # 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 ap...
32.264706
74
0.606806
388
3,291
4.984536
0.396907
0.031024
0.028956
0.027921
0.079628
0.03516
0
0
0
0
0
0.008737
0.304467
3,291
101
75
32.584158
0.836173
0.323002
0
0.042553
0
0
0.020197
0
0
0
0
0
0
1
0.148936
false
0.042553
0.06383
0
0.255319
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
814afb82812c77d3cd59d4373c1636829f4ef2dc
1,558
py
Python
rubicon/repository/asynchronous/s3.py
gforsyth/rubicon
b77c0bdfc73d3f5666f76c83240706c10cd2e88c
[ "Apache-2.0" ]
null
null
null
rubicon/repository/asynchronous/s3.py
gforsyth/rubicon
b77c0bdfc73d3f5666f76c83240706c10cd2e88c
[ "Apache-2.0" ]
null
null
null
rubicon/repository/asynchronous/s3.py
gforsyth/rubicon
b77c0bdfc73d3f5666f76c83240706c10cd2e88c
[ "Apache-2.0" ]
null
null
null
from rubicon.repository.asynchronous import AsynchronousBaseRepository from rubicon.repository.utils import json class S3Repository(AsynchronousBaseRepository): """The asynchronous S3 repository uses `asyncio` to persist Rubicon data to a remote S3 bucket. S3 credentials can be specified via environment ...
33.869565
73
0.67715
187
1,558
5.55615
0.497326
0.017324
0.05486
0.038499
0.152069
0.109721
0.109721
0.109721
0.109721
0.109721
0
0.009402
0.249037
1,558
45
74
34.622222
0.878632
0.339538
0
0
0
0
0.003839
0
0
0
0
0
0
1
0
false
0
0.2
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
814b91426dfa04f0937c2eaf434296d7b486ca56
1,660
py
Python
examples/multidata_example.py
zssherman/ACT
db87008aa6649d3d21b79ae97ea0f11d7f1f1935
[ "BSD-3-Clause" ]
62
2020-01-13T19:48:49.000Z
2022-03-22T07:56:37.000Z
examples/multidata_example.py
zssherman/ACT
db87008aa6649d3d21b79ae97ea0f11d7f1f1935
[ "BSD-3-Clause" ]
215
2020-01-07T20:17:11.000Z
2022-03-31T18:49:57.000Z
examples/multidata_example.py
zssherman/ACT
db87008aa6649d3d21b79ae97ea0f11d7f1f1935
[ "BSD-3-Clause" ]
16
2020-01-13T21:25:55.000Z
2022-03-26T18:01:29.000Z
""" ================================================== Example on how to plot multiple datasets at a time ================================================== This is an example of how to download and plot multiple datasets at a time. .. image:: ../../multi_ds_plot1.png """ import act import matplotlib.pyplot as plt ...
32.54902
88
0.689759
239
1,660
4.65272
0.426778
0.032374
0.046763
0.039568
0.366906
0.311151
0.217626
0.091727
0.091727
0.091727
0
0.039041
0.120482
1,660
50
89
33.2
0.722603
0.355422
0
0.166667
0
0
0.165877
0.034123
0
0
0
0
0
1
0
false
0
0.083333
0
0.083333
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