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
9c7db6d021abe53926601b1834856be78ee60324
8,949
py
Python
RequestHandler.py
robot0nfire/behem0th
3931f2a9a2f00b95d82ccb3c5e7c13b3fbb5f4d7
[ "MIT" ]
2
2016-09-08T18:38:35.000Z
2016-09-14T11:05:34.000Z
RequestHandler.py
robot0nfire/behem0th
3931f2a9a2f00b95d82ccb3c5e7c13b3fbb5f4d7
[ "MIT" ]
1
2016-09-29T17:36:49.000Z
2016-09-29T17:36:49.000Z
RequestHandler.py
robot0nfire/behem0th
3931f2a9a2f00b95d82ccb3c5e7c13b3fbb5f4d7
[ "MIT" ]
null
null
null
# # Copyright (c) 2016 Christoph Heiss <me@christoph-heiss.me> # # 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 # to use, copy, m...
24.927577
91
0.684769
1,275
8,949
4.723137
0.265098
0.041016
0.012953
0.014115
0.141315
0.097808
0.054799
0.02358
0
0
0
0.008927
0.18639
8,949
358
92
24.997207
0.818157
0.211644
0
0.220588
0
0
0.098266
0
0
0
0
0.002793
0
1
0.073529
false
0.004902
0.04902
0
0.161765
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
9c7e8f9016c9cbf4f8f05d18b1e14e707c0c6a3e
27,504
py
Python
scripts/blenderseed.package.py
rgirish28/blenderseed
fee897620d0348f4ea1f5722e1a82c3682ca0178
[ "MIT" ]
null
null
null
scripts/blenderseed.package.py
rgirish28/blenderseed
fee897620d0348f4ea1f5722e1a82c3682ca0178
[ "MIT" ]
null
null
null
scripts/blenderseed.package.py
rgirish28/blenderseed
fee897620d0348f4ea1f5722e1a82c3682ca0178
[ "MIT" ]
null
null
null
#!/usr/bin/python # # This source file is part of appleseed. # Visit https://appleseedhq.net/ for additional information and resources. # # This software is released under the MIT license. # # Copyright (c) 2017-2018 Esteban Tovagliari, The appleseedhq Organization # # Permission is hereby granted, free of charge, to ...
37.98895
148
0.597186
3,191
27,504
4.949859
0.166719
0.02735
0.02849
0.025704
0.414435
0.345173
0.312124
0.277746
0.262805
0.220766
0
0.004969
0.239056
27,504
723
149
38.041494
0.749725
0.168339
0
0.252677
0
0
0.165723
0.01058
0
0
0
0.001383
0
1
0.11349
false
0.002141
0.036403
0.004283
0.190578
0.059957
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9c7f69a036f4358b44b78abe3f34ed429e5fbfef
1,420
py
Python
wagtailkatex/wagtail_hooks.py
ongchi/wagtail-katex
c64b491e765e6b87a90d7cd8602153826ee9fe07
[ "Apache-2.0" ]
null
null
null
wagtailkatex/wagtail_hooks.py
ongchi/wagtail-katex
c64b491e765e6b87a90d7cd8602153826ee9fe07
[ "Apache-2.0" ]
null
null
null
wagtailkatex/wagtail_hooks.py
ongchi/wagtail-katex
c64b491e765e6b87a90d7cd8602153826ee9fe07
[ "Apache-2.0" ]
null
null
null
from django.utils.translation import gettext from wagtail.admin.rich_text.editors.draftail import features as draftail_features from wagtail.core import hooks from .richtext import KaTeXEntityElementHandler, katex_entity_decorator @hooks.register('register_rich_text_features') def register_katex_features(features):...
32.272727
90
0.607042
143
1,420
5.832168
0.482517
0.047962
0.047962
0.040767
0
0
0
0
0
0
0
0.001947
0.276761
1,420
43
91
33.023256
0.810127
0
0
0
0
0
0.231392
0.11246
0
0
0
0
0
1
0.030303
false
0
0.121212
0
0.151515
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
9c7f9627f318b3e1570c92823a8ee10c19ec9aa5
8,991
py
Python
test/tests/bootstrap/test_api20_windows_bootstrap.py
arunrordell/RackHD
079c21f45cb38f538c502363aa1ff86dbcac3169
[ "Apache-2.0" ]
451
2015-11-09T13:19:25.000Z
2022-03-16T08:00:16.000Z
test/tests/bootstrap/test_api20_windows_bootstrap.py
arunrordell/RackHD
079c21f45cb38f538c502363aa1ff86dbcac3169
[ "Apache-2.0" ]
824
2015-11-10T15:25:50.000Z
2018-04-09T09:59:49.000Z
test/tests/bootstrap/test_api20_windows_bootstrap.py
arunrordell/RackHD
079c21f45cb38f538c502363aa1ff86dbcac3169
[ "Apache-2.0" ]
221
2015-11-10T23:00:46.000Z
2022-03-16T08:00:22.000Z
''' Copyright 2017 Dell Inc. or its subsidiaries. All Rights Reserved. This script tests arbitrary payload of the RackHD API 2.0 OS bootstrap workflows. The default case is running a minimum payload Windows OS install. Other Windows-type OS install cases can be specified by creating a payload file and specifiying it u...
45.872449
127
0.587031
1,034
8,991
4.971954
0.27853
0.029955
0.032678
0.023342
0.390196
0.371329
0.335343
0.307722
0.255009
0.231667
0
0.024258
0.280169
8,991
195
128
46.107692
0.770087
0.264375
0
0.269841
0
0
0.234892
0.017613
0
0
0
0
0.039683
1
0.039683
false
0.02381
0.071429
0
0.150794
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
9c806e8f0ae3b3c96a9df2eadcd9d67e2ad3e5fe
602
py
Python
random_number.py
till-h/alexa
47891eb97fff375500a032b23fef7a2681b50735
[ "MIT" ]
null
null
null
random_number.py
till-h/alexa
47891eb97fff375500a032b23fef7a2681b50735
[ "MIT" ]
null
null
null
random_number.py
till-h/alexa
47891eb97fff375500a032b23fef7a2681b50735
[ "MIT" ]
null
null
null
from flask import Flask, render_template from flask_ask import Ask, statement import random app = Flask(__name__) ask = Ask(app, '/') @ask.intent('RandomNumber', convert={'lowerLimit': int, 'upperLimit': int}) def hello(lowerLimit, upperLimit): if lowerLimit == None: lowerLimit = 0 if upperLimit == None: upperL...
31.684211
101
0.749169
75
602
5.786667
0.426667
0.138249
0
0
0
0
0
0
0
0
0
0.007605
0.126246
602
19
102
31.684211
0.81749
0
0
0
0
0
0.127695
0
0
0
0
0
0
1
0.0625
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
9c81af124f83929d36674b85f7157b8a2ef4f4b9
9,686
py
Python
model/losses.py
askerlee/rift
d4dbf42b82f1f83dfab18f8da8fe3a1d0a716fa2
[ "MIT" ]
11
2022-02-14T08:31:04.000Z
2022-03-29T08:20:17.000Z
model/losses.py
askerlee/rift
d4dbf42b82f1f83dfab18f8da8fe3a1d0a716fa2
[ "MIT" ]
3
2022-02-14T11:19:15.000Z
2022-03-19T05:11:25.000Z
model/losses.py
askerlee/rift
d4dbf42b82f1f83dfab18f8da8fe3a1d0a716fa2
[ "MIT" ]
null
null
null
import torch import numpy as np import torch.nn as nn import torch.nn.functional as F import torchvision.models as models from model.laplacian import LapLoss device = torch.device("cuda" if torch.cuda.is_available() else "cpu") class EPE(nn.Module): def __init__(self): super(EPE, self).__init__() de...
39.696721
134
0.601693
1,459
9,686
3.827964
0.203564
0.0188
0.009848
0.010743
0.209669
0.163653
0.126768
0.107789
0.053357
0.045121
0
0.038462
0.259137
9,686
243
135
39.860082
0.739827
0.196263
0
0.102857
0
0
0.006196
0
0
0
0
0.004115
0
1
0.12
false
0
0.034286
0
0.274286
0.005714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9c820bdf9b7f916cd742cf712e94425ee24e76e1
5,847
py
Python
project/python/swarm_simulation.py
righetti/swarmrobotics
f8f6bf72c3aae1f432f3306aebb48fd32a6dd2a7
[ "BSD-3-Clause" ]
8
2019-09-14T11:55:49.000Z
2022-02-05T23:06:33.000Z
project/python/swarm_simulation.py
righetti/swarmrobotics
f8f6bf72c3aae1f432f3306aebb48fd32a6dd2a7
[ "BSD-3-Clause" ]
null
null
null
project/python/swarm_simulation.py
righetti/swarmrobotics
f8f6bf72c3aae1f432f3306aebb48fd32a6dd2a7
[ "BSD-3-Clause" ]
7
2019-09-16T02:42:41.000Z
2021-09-07T03:26:22.000Z
import numpy as np import pybullet as p import itertools from robot import Robot class World(): def __init__(self): # create the physics simulator self.physicsClient = p.connect(p.GUI) p.setGravity(0,0,-9.81) self.max_communication_distance = 2.0 # We will int...
43.634328
96
0.540277
745
5,847
4.212081
0.173154
0.044614
0.042065
0.133843
0.538241
0.520076
0.501593
0.499363
0.494264
0.494264
0
0.067262
0.272789
5,847
133
97
43.962406
0.670743
0.380708
0
0.222222
0
0
0.060374
0
0
0
0
0
0
1
0.047619
false
0
0.063492
0
0.126984
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
9c82ce7669d0a4f2d3645ab5502b497296602411
31,437
py
Python
boto/ec2/elb/__init__.py
wt/boto
83d5b256c8333307233e1ec7c1e21696e8d32437
[ "MIT" ]
15
2015-03-25T05:24:11.000Z
2021-12-18T04:24:06.000Z
boto/ec2/elb/__init__.py
wt/boto
83d5b256c8333307233e1ec7c1e21696e8d32437
[ "MIT" ]
null
null
null
boto/ec2/elb/__init__.py
wt/boto
83d5b256c8333307233e1ec7c1e21696e8d32437
[ "MIT" ]
10
2015-04-26T17:56:37.000Z
2020-09-24T14:01:53.000Z
# Copyright (c) 2006-2012 Mitch Garnaat http://garnaat.org/ # Copyright (c) 2012 Amazon.com, Inc. or its affiliates. # All Rights Reserved # # 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 wi...
42.946721
91
0.633426
3,484
31,437
5.612227
0.151837
0.065054
0.027004
0.012274
0.472971
0.436659
0.393495
0.367207
0.357899
0.349307
0
0.004867
0.29408
31,437
731
92
43.005472
0.876217
0.424659
0
0.388489
0
0
0.196384
0.134539
0
0
0
0
0
1
0.104317
false
0.007194
0.032374
0.003597
0.269784
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
9c836060b9b7e80140ebb8a9cc363bc2e1d5ff72
9,677
py
Python
basis_set_exchange/cli/bse_cli.py
atomse/basis_set_exchange
7ffd64082c14d2f61eb43f1c2d44792e8b0e394e
[ "BSD-3-Clause" ]
null
null
null
basis_set_exchange/cli/bse_cli.py
atomse/basis_set_exchange
7ffd64082c14d2f61eb43f1c2d44792e8b0e394e
[ "BSD-3-Clause" ]
null
null
null
basis_set_exchange/cli/bse_cli.py
atomse/basis_set_exchange
7ffd64082c14d2f61eb43f1c2d44792e8b0e394e
[ "BSD-3-Clause" ]
null
null
null
''' Command line interface for the basis set exchange ''' import argparse import argcomplete from .. import version from .bse_handlers import bse_cli_handle_subcmd from .check import cli_check_normalize_args from .complete import (cli_case_insensitive_validator, cli_family_completer, cli_role_co...
59.368098
160
0.673349
1,288
9,677
4.938665
0.177795
0.076089
0.094325
0.057853
0.510926
0.45606
0.374627
0.314888
0.285804
0.285804
0
0.001463
0.15263
9,677
162
161
59.734568
0.774268
0.103338
0
0.084337
0
0
0.448428
0
0
0
0
0
0
1
0.012048
false
0
0.072289
0
0.096386
0.012048
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
92bb5127dacf316c62cd64b3874b283309deffd5
42,452
py
Python
tensorflow/tools/quantization/quantize_graph_test.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
374
2018-12-02T06:59:44.000Z
2022-03-15T10:34:00.000Z
tensorflow/tools/quantization/quantize_graph_test.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
157
2018-12-02T07:37:39.000Z
2022-03-16T09:49:11.000Z
tensorflow/tools/quantization/quantize_graph_test.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
141
2018-12-12T11:57:59.000Z
2022-02-28T13:12:58.000Z
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
43.900724
80
0.692123
5,933
42,452
4.607281
0.072139
0.084178
0.068813
0.038851
0.716993
0.664496
0.59861
0.54026
0.512018
0.455643
0
0.029637
0.193254
42,452
966
81
43.94617
0.768512
0.08141
0
0.408451
0
0
0.054351
0.006456
0
0
0
0.001035
0.048656
1
0.046095
false
0
0.020487
0
0.076825
0.00128
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
92bc543d24e721550df8b06cf7b80bb7637df99c
910
py
Python
SETTINGS.py
pirica/fortnite-leaks-image-generator
c23633862fd7d2286700f932e5dab41decd2ff72
[ "CC0-1.0" ]
5
2020-10-07T23:53:30.000Z
2021-09-18T17:50:11.000Z
SETTINGS.py
pirica/fortnite-leaks-image-generator
c23633862fd7d2286700f932e5dab41decd2ff72
[ "CC0-1.0" ]
null
null
null
SETTINGS.py
pirica/fortnite-leaks-image-generator
c23633862fd7d2286700f932e5dab41decd2ff72
[ "CC0-1.0" ]
5
2020-12-13T16:49:41.000Z
2021-09-18T17:50:14.000Z
backgroundurl = "https://storage.needpix.com/rsynced_images/colored-background.jpg" # <- Need to be a Image URL!!! lang = "en" # <- language code displayset = True # <- Display the Set of the Item raritytext = True # <- Display the Rarity of the Item typeconfig = { "BannerToken": True, "AthenaBackpack":...
28.4375
115
0.66044
98
910
6.122449
0.72449
0.025
0.046667
0
0
0
0
0
0
0
0
0.005579
0.212088
910
31
116
29.354839
0.831241
0.271429
0
0
0
0
0.432061
0.032061
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
92bc6a8a2905baaef24ea73868b39d5f28b0a445
592
py
Python
src/healthvaultlib/tests/testbase.py
rajeevs1992/pyhealthvault
2b6fa7c1687300bcc2e501368883fbb13dc80495
[ "MIT" ]
1
2015-12-19T09:09:15.000Z
2015-12-19T09:09:15.000Z
src/healthvaultlib/tests/testbase.py
rajeevs1992/pyhealthvault
2b6fa7c1687300bcc2e501368883fbb13dc80495
[ "MIT" ]
6
2015-12-19T07:53:44.000Z
2021-12-13T19:35:10.000Z
src/healthvaultlib/tests/testbase.py
rajeevs1992/pyhealthvault
2b6fa7c1687300bcc2e501368883fbb13dc80495
[ "MIT" ]
2
2018-02-20T08:34:50.000Z
2018-03-28T14:29:52.000Z
import unittest import settings from healthvaultlib.helpers.connection import Connection class TestBase(unittest.TestCase): def setUp(self): self.connection = self.get_connection() def get_connection(self): conn = Connection(settings.HV_APPID, settings.HV_SERVICE_SERVER) conn...
31.157895
90
0.72973
69
592
6.014493
0.492754
0.079518
0
0
0
0
0
0
0
0
0
0
0.201014
592
18
91
32.888889
0.877378
0
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0.214286
0
0.5
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
92bcfabb83b949d7b865d6edb058159c8c815b8b
628
py
Python
regtests/bench/thread_collision.py
secureosv/pythia
459f9e2bc0bb2da57e9fa8326697d9ef3386883a
[ "BSD-3-Clause" ]
17
2015-12-13T23:11:31.000Z
2020-07-19T00:40:18.000Z
regtests/bench/thread_collision.py
secureosv/pythia
459f9e2bc0bb2da57e9fa8326697d9ef3386883a
[ "BSD-3-Clause" ]
8
2016-02-22T19:42:56.000Z
2016-07-13T10:58:04.000Z
regtests/bench/thread_collision.py
secureosv/pythia
459f9e2bc0bb2da57e9fa8326697d9ef3386883a
[ "BSD-3-Clause" ]
3
2016-04-11T20:34:31.000Z
2021-03-12T10:33:02.000Z
''' multi-threading (python3 version) https://docs.python.org/3/library/threading.html ''' from time import clock import threading THREADS=2 lock = threading.Lock() A = 0 B = 0 C = 0 def test_globals(): global A, B, C for i in range(1024*1024): lock.acquire() A += 1 B += 2 C = A + B lock.release() def...
14.604651
54
0.630573
98
628
4.020408
0.459184
0.055838
0.030457
0.055838
0
0
0
0
0
0
0
0.031809
0.199045
628
43
55
14.604651
0.751491
0.130573
0
0
0
0
0.053803
0
0
0
0
0
0
1
0.066667
false
0
0.066667
0
0.133333
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
92bd6cd2780084175f5bca66b4d32f6768777683
2,270
py
Python
game/board.py
scooler/checkers
90bfe8702c6005c767a8673caed6e7e2f0ce5879
[ "MIT" ]
null
null
null
game/board.py
scooler/checkers
90bfe8702c6005c767a8673caed6e7e2f0ce5879
[ "MIT" ]
null
null
null
game/board.py
scooler/checkers
90bfe8702c6005c767a8673caed6e7e2f0ce5879
[ "MIT" ]
null
null
null
import numpy as np class Board: """ 0 - black 1 - white """ def __init__(self): board = [ [0, 1] * 4, [1, 0] * 4 ] * 4 players_board = [ [0, 1] * 4, # player 1 [1, 0] * 4 ] + [[0] * 8] * 4 + [ # 4 rows of nothing [0, 2] * 4, # player 2 [2, 0] * 4 ] se...
28.024691
93
0.574009
341
2,270
3.633431
0.199413
0.129136
0.094431
0.116223
0.425343
0.425343
0.408394
0.408394
0.374496
0.374496
0
0.027811
0.271366
2,270
80
94
28.375
0.721282
0.697357
0
0.173913
0
0
0
0
0
0
0
0
0
1
0.130435
false
0
0.043478
0.043478
0.347826
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
92bed45f1cd8f2bc90c85f74109f48fc3d320089
5,261
py
Python
zge/engine.py
zhester/zge
246096a8c1fd26472091aac747a3fffda58f3072
[ "BSD-2-Clause" ]
null
null
null
zge/engine.py
zhester/zge
246096a8c1fd26472091aac747a3fffda58f3072
[ "BSD-2-Clause" ]
null
null
null
zge/engine.py
zhester/zge
246096a8c1fd26472091aac747a3fffda58f3072
[ "BSD-2-Clause" ]
null
null
null
""" Zoe Game Engine Core Implementation =================================== Requirements ------------ [pygame](http://www.pygame.org/) """ # core packages # third-party packages import pygame # local package import layer __version__ = '0.0.0' #===================================================================...
27.118557
78
0.472914
533
5,261
4.499062
0.360225
0.033361
0.025021
0.021268
0.091743
0.025021
0.025021
0
0
0
0
0.012299
0.350884
5,261
193
79
27.259067
0.689898
0.345942
0
0.103896
0
0
0.028817
0
0
0
0
0
0
1
0.064935
false
0
0.025974
0
0.116883
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
92c3f1ad626b115da6ffe9d3c9d13ac69cd2a64e
18,742
py
Python
litex_boards/platforms/xilinx_kcu105.py
smunaut/litex-boards
caac75c7dbcba68d9f4fb948107cb5d6ff60e05f
[ "BSD-2-Clause" ]
177
2019-06-13T09:54:49.000Z
2022-03-29T02:25:13.000Z
litex_boards/platforms/xilinx_kcu105.py
smunaut/litex-boards
caac75c7dbcba68d9f4fb948107cb5d6ff60e05f
[ "BSD-2-Clause" ]
347
2019-06-12T17:47:45.000Z
2022-03-30T21:59:01.000Z
litex_boards/platforms/xilinx_kcu105.py
smunaut/litex-boards
caac75c7dbcba68d9f4fb948107cb5d6ff60e05f
[ "BSD-2-Clause" ]
202
2019-06-11T15:01:26.000Z
2022-03-31T16:25:19.000Z
# # This file is part of LiteX-Boards. # # Copyright (c) 2017-2019 Florent Kermarrec <florent@enjoy-digital.fr> # SPDX-License-Identifier: BSD-2-Clause from litex.build.generic_platform import * from litex.build.xilinx import XilinxPlatform, VivadoProgrammer # IOs -----------------------------------------------------...
34.836431
100
0.442642
2,041
18,742
3.825086
0.372366
0.026258
0.039452
0.021135
0.236839
0.165493
0.149353
0.139106
0.117587
0.117587
0
0.137697
0.354445
18,742
537
101
34.901304
0.507563
0.045139
0
0.130977
0
0
0.297391
0.007222
0
0
0
0
0
1
0.006237
false
0
0.004158
0.002079
0.018711
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
92c62cbe56cec51196d1580ada73d616cb7c64b7
1,543
py
Python
code/advent_of_code_day3.py
erinleeryan/2020adventofcode
69f21d3458f57d8fcf006c451416e0509a66cd7a
[ "Unlicense" ]
null
null
null
code/advent_of_code_day3.py
erinleeryan/2020adventofcode
69f21d3458f57d8fcf006c451416e0509a66cd7a
[ "Unlicense" ]
null
null
null
code/advent_of_code_day3.py
erinleeryan/2020adventofcode
69f21d3458f57d8fcf006c451416e0509a66cd7a
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # In[1]: import numpy as np import math # In[2]: fileObj = open('../data/advent_of_code_input_day_three.txt', "r") #opens the file in read mode. items = fileObj. read(). splitlines() #puts the file into an array. # In[3]: #print (items) def split(line): return lis...
20.302632
106
0.700583
225
1,543
4.64
0.4
0.034483
0.063218
0.05364
0.088123
0.05364
0
0
0
0
0
0.033052
0.156837
1,543
75
107
20.573333
0.769408
0.089436
0
0
0
0
0.032351
0.030194
0
0
0
0
0
1
0.057143
false
0
0.057143
0.028571
0.171429
0.085714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
92c8fb39f9443d549d8e36137c05b64ee86a7a00
13,786
py
Python
pysh/transforms/alpha/bangexpr.py
drslump/pysh
673cdf2b5ea95dc3209cb294bb91cb2f298bb888
[ "MIT" ]
3
2018-07-09T04:39:24.000Z
2020-11-27T05:44:56.000Z
pysh/transforms/alpha/bangexpr.py
drslump/pysh
673cdf2b5ea95dc3209cb294bb91cb2f298bb888
[ "MIT" ]
null
null
null
pysh/transforms/alpha/bangexpr.py
drslump/pysh
673cdf2b5ea95dc3209cb294bb91cb2f298bb888
[ "MIT" ]
1
2018-08-02T21:57:11.000Z
2018-08-02T21:57:11.000Z
from io import StringIO import re import tokenize import os from collections import deque, ChainMap from functools import lru_cache from enum import Enum import pysh from pysh.path import PathWrapper, Path from typing import List, Callable, Iterator, Tuple, NamedTuple, Deque, Union, Any TBangTransformer = Callable[ [...
31.260771
153
0.533585
1,591
13,786
4.52357
0.195475
0.013617
0.030013
0.014173
0.184104
0.175212
0.128804
0.128804
0.128804
0.094484
0
0.006526
0.321993
13,786
441
154
31.260771
0.763454
0.072828
0
0.235474
0
0
0.100653
0.006134
0
0
0
0.004535
0.033639
1
0.088685
false
0.003058
0.039755
0.024465
0.269113
0.018349
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
92ca0cfb3a6ca200081a09f8a2c36869b58c22cb
2,449
py
Python
example/bayesian-methods/data_loader.py
Vikas-kum/incubator-mxnet
ba02bf2fe2da423caa59ddb3fd5e433b90b730bf
[ "Apache-2.0" ]
54
2018-11-27T06:00:52.000Z
2022-03-24T09:41:01.000Z
example/bayesian-methods/data_loader.py
Vikas-kum/incubator-mxnet
ba02bf2fe2da423caa59ddb3fd5e433b90b730bf
[ "Apache-2.0" ]
27
2017-07-04T17:45:51.000Z
2019-09-12T06:56:27.000Z
example/bayesian-methods/data_loader.py
Vikas-kum/incubator-mxnet
ba02bf2fe2da423caa59ddb3fd5e433b90b730bf
[ "Apache-2.0" ]
51
2019-07-12T05:10:25.000Z
2021-07-28T16:19:06.000Z
# 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 # "License"); you may not u...
40.147541
95
0.683953
371
2,449
4.377358
0.401617
0.024631
0.024631
0.027094
0.178571
0.093596
0.030788
0.030788
0.030788
0
0
0.023046
0.184973
2,449
60
96
40.816667
0.790581
0.307064
0
0.054054
0
0.027027
0.121429
0.01369
0
0
0
0
0
1
0.081081
false
0
0.135135
0
0.297297
0.081081
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
92ca255eec01c1e82a3ad0136582786783c1c0bd
4,743
py
Python
start.py
mickeyckm/nanodegree-freshtomatoes
12776f7e46d6c42a4755a0b81e60eb1a5a65de08
[ "MIT" ]
1
2016-10-13T05:25:36.000Z
2016-10-13T05:25:36.000Z
start.py
mickeyckm/freshtomatoes
12776f7e46d6c42a4755a0b81e60eb1a5a65de08
[ "MIT" ]
null
null
null
start.py
mickeyckm/freshtomatoes
12776f7e46d6c42a4755a0b81e60eb1a5a65de08
[ "MIT" ]
null
null
null
import os import tmdbsimple as tmdb import media import fresh_tomatoes as ft movies = [] if os.environ.get('TMDB_API', False): # Retrieve API KEY tmdb.API_KEY = os.environ['TMDB_API'] # TMDB Movie Ids movie_ids = [271110, 297761, 246655, 278154, 135397, 188927] # Get Configuration configurat...
43.916667
78
0.59688
540
4,743
5.140741
0.435185
0.037464
0.037824
0.040346
0.167147
0.167147
0.167147
0.167147
0.0317
0
0
0.020091
0.3074
4,743
107
79
44.327103
0.824962
0.036264
0
0
0
0
0.439886
0.030057
0
0
0
0
0
1
0
false
0
0.051282
0
0.051282
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
92cd8cee441a839cf57967c393c922a1fab007b8
1,203
py
Python
tests/test_runner.py
elifesciences/proofreader-python
89d807253e17a1731c7ce15f7dd382e49c1c835a
[ "MIT" ]
1
2018-06-26T21:49:31.000Z
2018-06-26T21:49:31.000Z
tests/test_runner.py
elifesciences/proofreader-python
89d807253e17a1731c7ce15f7dd382e49c1c835a
[ "MIT" ]
8
2017-12-05T08:34:25.000Z
2018-04-30T08:58:18.000Z
tests/test_runner.py
elifesciences/proofreader-python
89d807253e17a1731c7ce15f7dd382e49c1c835a
[ "MIT" ]
null
null
null
try: from unittest.mock import patch except ImportError: # pragma: no cover from mock import patch from proofreader.runner import run, _run_command def test_it_will_return_1_exit_code_on_failure(bad_py_file): try: run(targets=[bad_py_file.strpath]) except SystemExit as exception: ass...
28.642857
83
0.729842
169
1,203
4.810651
0.325444
0.059041
0.04428
0.059041
0.471095
0.377614
0.377614
0.377614
0.319803
0.319803
0
0.006167
0.191189
1,203
41
84
29.341463
0.829394
0.0133
0
0.4
0
0
0.027848
0.020253
0
0
0
0
0.166667
1
0.166667
false
0
0.133333
0
0.3
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
92ce1ba4b6776bf939e55fcd9a49ebf0d28494b0
1,266
py
Python
tanim/core/container/container.py
wofeicaoge/Tanim
8ef17834a4ba51092f28c0d5becec25aecd01a62
[ "MIT" ]
null
null
null
tanim/core/container/container.py
wofeicaoge/Tanim
8ef17834a4ba51092f28c0d5becec25aecd01a62
[ "MIT" ]
5
2020-04-13T15:31:37.000Z
2022-03-12T00:23:27.000Z
tanim/core/container/container.py
wofeicaoge/Tanim
8ef17834a4ba51092f28c0d5becec25aecd01a62
[ "MIT" ]
null
null
null
from tanim.utils.config_ops import digest_config from tanim.utils.iterables import list_update # Currently, this is only used by both Scene and Mobject. # Still, we abstract its functionality here, albeit purely nominally. # All actual implementation has to be handled by derived classes for now. class Container(obj...
32.461538
76
0.657188
147
1,266
5.557823
0.462585
0.128519
0.034272
0
0
0
0
0
0
0
0
0
0.263823
1,266
38
77
33.315789
0.876609
0.188784
0
0.115385
0
0
0.026419
0
0
0
0
0
0
1
0.192308
false
0
0.076923
0
0.461538
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
92ce6473bab7c8882ecd1ab85554b02e243b4587
5,076
py
Python
article.py
ZACHSTRIVES/AUCSS-StaffPlatform
f2d6597853e85b06f057292025d83edbb4184361
[ "MIT" ]
3
2020-10-01T08:46:12.000Z
2021-01-25T11:32:16.000Z
article.py
ZACHSTRIVES/AUCSS-StaffPlatform
f2d6597853e85b06f057292025d83edbb4184361
[ "MIT" ]
null
null
null
article.py
ZACHSTRIVES/AUCSS-StaffPlatform
f2d6597853e85b06f057292025d83edbb4184361
[ "MIT" ]
1
2020-09-24T11:20:23.000Z
2020-09-24T11:20:23.000Z
from config import * def fetch_all_article(): try: cur = db.cursor() sql = "SELECT * FROM article WHERE article_status='N'" db.ping(reconnect=True) cur.execute(sql) result = cur.fetchall() db.commit() cur.close() return result except Exception as...
25.766497
121
0.573483
675
5,076
4.162963
0.134815
0.019573
0.043061
0.054804
0.575445
0.567616
0.552669
0.469751
0.457651
0.402491
0
0.004863
0.311269
5,076
196
122
25.897959
0.798913
0
0
0.636364
0
0.006061
0.162136
0.022262
0
0
0
0
0
1
0.090909
false
0
0.006061
0
0.157576
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
92cea7421504e38a8678084f761b6c6af9dcfff2
1,231
py
Python
12-Querying-Data-II/just_filtering.py
dwang-ischool/w205
ebcdf684dc653951691faaa2787896a2d2406539
[ "Apache-2.0" ]
23
2018-10-21T17:47:56.000Z
2022-03-06T04:50:27.000Z
12a/just_filtering.py
FuriousGeorge19/W205-Course-Content
f51046d7507fba9ba9f7521cda437d7dad803e5b
[ "Apache-2.0" ]
null
null
null
12a/just_filtering.py
FuriousGeorge19/W205-Course-Content
f51046d7507fba9ba9f7521cda437d7dad803e5b
[ "Apache-2.0" ]
9
2020-03-16T08:52:58.000Z
2022-02-09T09:31:51.000Z
#!/usr/bin/env python """Extract events from kafka and write them to hdfs """ import json from pyspark.sql import SparkSession, Row from pyspark.sql.functions import udf @udf('boolean') def is_purchase(event_as_json): event = json.loads(event_as_json) if event['event_type'] == 'purchase_sword': return...
25.122449
73
0.613323
133
1,231
5.466165
0.518797
0.096286
0.094911
0
0
0
0
0
0
0
0
0.005365
0.242892
1,231
48
74
25.645833
0.774678
0.064175
0
0
0
0
0.148246
0.020175
0
0
0
0
0
1
0.058824
false
0
0.088235
0
0.205882
0.029412
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
92cec8b3278d323143a4d7cc2f5e6ab7db12785e
434
py
Python
test.py
navjotk/pysz
6d75aa4fe24713ed893a2301c143006dace6fd77
[ "MIT" ]
3
2020-03-14T04:43:00.000Z
2022-02-02T15:22:48.000Z
test.py
navjotk/pysz
6d75aa4fe24713ed893a2301c143006dace6fd77
[ "MIT" ]
null
null
null
test.py
navjotk/pysz
6d75aa4fe24713ed893a2301c143006dace6fd77
[ "MIT" ]
null
null
null
import numpy as np from pysz import compress, decompress def test_compress_decompress(): a = np.linspace(0, 100, num=1000000).reshape((100, 100, 100)).astype(np.float32) tolerance = 0.0001 compressed = compress(a, tolerance=tolerance) recovered = decompress(compressed, a.shape, a.dtype) asse...
25.529412
84
0.71659
57
434
5.385965
0.491228
0.175896
0.143322
0
0
0
0
0
0
0
0
0.07438
0.163594
434
16
85
27.125
0.77135
0
0
0
0
0
0
0
0
0
0
0
0.2
1
0.1
false
0
0.2
0
0.3
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
92d067e85ffe42672816ef3e9eaff85647966d45
1,312
py
Python
webhooks/sentry/alerta_sentry.py
dunzoit/alerta-contrib
57dd47d5bb0c994fce036ae1eea2c3a88ef352c4
[ "MIT" ]
null
null
null
webhooks/sentry/alerta_sentry.py
dunzoit/alerta-contrib
57dd47d5bb0c994fce036ae1eea2c3a88ef352c4
[ "MIT" ]
null
null
null
webhooks/sentry/alerta_sentry.py
dunzoit/alerta-contrib
57dd47d5bb0c994fce036ae1eea2c3a88ef352c4
[ "MIT" ]
null
null
null
from alerta.models.alert import Alert from alerta.webhooks import WebhookBase class SentryWebhook(WebhookBase): def incoming(self, query_string, payload): # For Sentry v9 # Defaults to value before Sentry v9 if 'request' in payload.get('event'): key = 'request' else:...
32
108
0.529726
131
1,312
5.282443
0.503817
0.069364
0.043353
0.052023
0.078035
0.078035
0.078035
0.078035
0.078035
0
0
0.002188
0.303354
1,312
40
109
32.8
0.754923
0.036585
0
0.1
0
0
0.17619
0.01746
0
0
0
0
0
1
0.033333
false
0
0.066667
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
92d135cd3396bc2bfc2ba5711e29b118672c8503
1,676
py
Python
setup.py
dolfim/django-mail-gmailapi
c2f7319329d07d6ecd41e4addc05e47c38fd5e19
[ "Apache-2.0" ]
null
null
null
setup.py
dolfim/django-mail-gmailapi
c2f7319329d07d6ecd41e4addc05e47c38fd5e19
[ "Apache-2.0" ]
null
null
null
setup.py
dolfim/django-mail-gmailapi
c2f7319329d07d6ecd41e4addc05e47c38fd5e19
[ "Apache-2.0" ]
null
null
null
import re from setuptools import setup, find_packages import sys if sys.version_info < (3, 5): raise 'must use Python version 3.5 or higher' with open('./gmailapi_backend/__init__.py', 'r') as f: MATCH_EXPR = "__version__[^'\"]+(['\"])([^'\"]+)" VERSION = re.search(MATCH_EXPR, f.read()).group(2).strip() ...
33.52
79
0.614558
189
1,676
5.31746
0.555556
0.113433
0.149254
0.129353
0
0
0
0
0
0
0
0.021705
0.23031
1,676
49
80
34.204082
0.757364
0
0
0.044444
0
0
0.538783
0.102625
0
0
0
0
0
1
0
false
0
0.066667
0
0.066667
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
92d23334c19f98d7d5d931da713ce60c1a673466
1,351
py
Python
openpeerpower/scripts/ensure_config.py
OpenPeerPower/openpeerpower
940a04a88e8f78e2d010dc912ad6905ae363503c
[ "Apache-2.0" ]
null
null
null
openpeerpower/scripts/ensure_config.py
OpenPeerPower/openpeerpower
940a04a88e8f78e2d010dc912ad6905ae363503c
[ "Apache-2.0" ]
null
null
null
openpeerpower/scripts/ensure_config.py
OpenPeerPower/openpeerpower
940a04a88e8f78e2d010dc912ad6905ae363503c
[ "Apache-2.0" ]
1
2019-04-24T14:10:08.000Z
2019-04-24T14:10:08.000Z
"""Script to ensure a configuration file exists.""" import argparse import os import openpeerpower.config as config_util from openpeerpower.core import OpenPeerPower # mypy: allow-untyped-calls, allow-untyped-defs def run(args): """Handle ensure config commandline script.""" parser = argparse.ArgumentParser...
28.145833
79
0.687639
170
1,351
5.294118
0.423529
0.08
0.028889
0
0
0
0
0
0
0
0
0.000935
0.208734
1,351
47
80
28.744681
0.840973
0.127313
0
0
0
0
0.182938
0
0
0
0
0
0
1
0.03125
false
0
0.125
0
0.21875
0.0625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
92d3126cd9f9279a6936076ceba3b9c4bff9aa48
11,146
py
Python
dabl/plot/tests/test_supervised.py
nrohan09-cloud/dabl
ebc4686c7b16c011bf5266cb6335221309aacb80
[ "BSD-3-Clause" ]
500
2019-04-01T13:50:18.000Z
2022-03-07T01:50:45.000Z
dabl/plot/tests/test_supervised.py
nrohan09-cloud/dabl
ebc4686c7b16c011bf5266cb6335221309aacb80
[ "BSD-3-Clause" ]
111
2019-04-01T17:48:40.000Z
2020-03-27T16:39:19.000Z
dabl/plot/tests/test_supervised.py
nrohan09-cloud/dabl
ebc4686c7b16c011bf5266cb6335221309aacb80
[ "BSD-3-Clause" ]
60
2019-04-01T14:58:35.000Z
2021-08-13T02:58:20.000Z
import pytest import numpy as np import pandas as pd import matplotlib.pyplot as plt import itertools from sklearn.datasets import (make_regression, make_blobs, load_digits, fetch_openml, load_diabetes) from sklearn.preprocessing import KBinsDiscretizer from dabl.preprocessing import cle...
35.610224
79
0.63386
1,494
11,146
4.513387
0.190094
0.029364
0.017945
0.01661
0.390479
0.298235
0.258639
0.228533
0.205102
0.148747
0
0.027443
0.241522
11,146
312
80
35.724359
0.770168
0.083707
0
0.258621
0
0
0.123171
0.019841
0
0
0
0.003205
0.155172
1
0.077586
false
0
0.047414
0
0.125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
92d3e306e086847f38535479f8de8893955d728c
4,480
py
Python
scripts/calculate_rank.py
daniel-theis/multicore-test-harness
d0ff54ef1c9f9637dd16dd8b85ac1cee8dc49e19
[ "MIT" ]
15
2018-05-06T20:54:41.000Z
2020-12-04T05:36:11.000Z
scripts/calculate_rank.py
daniel-theis/multicore-test-harness
d0ff54ef1c9f9637dd16dd8b85ac1cee8dc49e19
[ "MIT" ]
null
null
null
scripts/calculate_rank.py
daniel-theis/multicore-test-harness
d0ff54ef1c9f9637dd16dd8b85ac1cee8dc49e19
[ "MIT" ]
3
2020-12-04T05:36:13.000Z
2021-09-08T11:53:16.000Z
################################################################################ # Copyright (c) 2017 Dan Iorga, Tyler Sorenson, Alastair Donaldson # 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...
39.646018
107
0.579241
582
4,480
4.328179
0.324742
0.072251
0.023819
0.017467
0.191346
0.144502
0.131798
0.092894
0.092894
0.034935
0
0.009597
0.302232
4,480
112
108
40
0.796225
0.359375
0
0.135593
0
0
0.066468
0.010456
0
0
0
0
0
1
0.033898
false
0
0.050847
0
0.101695
0.135593
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
92d713c9c1666b57fdf260fc3597ec5bb433209c
1,886
py
Python
scripts/spacy_files/similarity_replacement.py
HighDeFing/thesis_v4
2dc9288af75a8b51fe54ed66f520e8aa8a0ab3c7
[ "Apache-2.0" ]
null
null
null
scripts/spacy_files/similarity_replacement.py
HighDeFing/thesis_v4
2dc9288af75a8b51fe54ed66f520e8aa8a0ab3c7
[ "Apache-2.0" ]
null
null
null
scripts/spacy_files/similarity_replacement.py
HighDeFing/thesis_v4
2dc9288af75a8b51fe54ed66f520e8aa8a0ab3c7
[ "Apache-2.0" ]
null
null
null
#!/bin/env python from black import main import spacy import json from spacy import displacy import unidecode import pandas as pd import numpy as np import os csv_source = "scripts/spacy_files/data/thesis_200_with_school.csv" df = pd.read_csv(csv_source) df = df[df['isScan']==False] df = df.sort_values('isScan', asce...
25.486486
83
0.718982
271
1,886
4.738007
0.339483
0.009346
0.016355
0.03271
0.063863
0.021807
0
0
0
0
0
0.01025
0.172322
1,886
73
84
25.835616
0.8123
0.040297
0
0
0
0
0.102664
0.04939
0
0
0
0
0
1
0.075472
false
0
0.150943
0
0.301887
0.09434
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
92d920562d22f1142cab1ea79e81051636bf317f
7,212
py
Python
test/unittest_base.py
dat-boris/tensorforce
d777121b1c971da5500572c5f83173b9229f7370
[ "Apache-2.0" ]
null
null
null
test/unittest_base.py
dat-boris/tensorforce
d777121b1c971da5500572c5f83173b9229f7370
[ "Apache-2.0" ]
null
null
null
test/unittest_base.py
dat-boris/tensorforce
d777121b1c971da5500572c5f83173b9229f7370
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Tensorforce Team. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable la...
35.880597
97
0.634498
849
7,212
5.123675
0.228504
0.035172
0.037241
0.016552
0.341839
0.287816
0.247356
0.247356
0.238161
0.223448
0
0.007704
0.262063
7,212
200
98
36.06
0.809658
0.116195
0
0.095588
0
0
0.040973
0
0
0
0
0
0.051471
1
0.036765
false
0
0.080882
0
0.227941
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
92dc54efa676f164aaadbce167924df2d1df95ab
7,112
py
Python
webcam_demo.py
taranek/tennis-stats-provider
e95093679a194d30d0727ec8e11d44fc462f6adc
[ "Apache-2.0" ]
null
null
null
webcam_demo.py
taranek/tennis-stats-provider
e95093679a194d30d0727ec8e11d44fc462f6adc
[ "Apache-2.0" ]
null
null
null
webcam_demo.py
taranek/tennis-stats-provider
e95093679a194d30d0727ec8e11d44fc462f6adc
[ "Apache-2.0" ]
null
null
null
import tensorflow as tf import json import math import cv2 import time import argparse import concurrent.futures import posenet import keyboard import sys import numpy as np from threading import Thread from slugify import slugify parser = argparse.ArgumentParser() parser.add_argument('--model', type=int, default=101)...
37.829787
137
0.564398
804
7,112
4.81592
0.304726
0.028409
0.026343
0.018595
0.187758
0.146952
0.146952
0.116994
0.094525
0.094525
0
0.02937
0.310602
7,112
188
138
37.829787
0.760351
0.158043
0
0.123077
0
0
0.070181
0
0
0
0
0.005319
0
1
0.046154
false
0
0.1
0
0.176923
0.046154
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
92df29892405e44dded087915f2a1792a9fb1160
6,265
py
Python
otcextensions/tests/unit/osclient/dcs/v1/fakes.py
zsoltn/python-otcextensions
4c0fa22f095ebd5f9636ae72acbae5048096822c
[ "Apache-2.0" ]
null
null
null
otcextensions/tests/unit/osclient/dcs/v1/fakes.py
zsoltn/python-otcextensions
4c0fa22f095ebd5f9636ae72acbae5048096822c
[ "Apache-2.0" ]
null
null
null
otcextensions/tests/unit/osclient/dcs/v1/fakes.py
zsoltn/python-otcextensions
4c0fa22f095ebd5f9636ae72acbae5048096822c
[ "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 # distrib...
36.005747
77
0.555148
698
6,265
4.853868
0.269341
0.124852
0.16647
0.049587
0.513282
0.418241
0.32438
0.243802
0.195986
0.195986
0
0.029717
0.307103
6,265
173
78
36.213873
0.750749
0.109018
0
0.335878
0
0
0.161226
0
0
0
0
0
0
1
0.045802
false
0
0.076336
0
0.206107
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
92dfa8870f87fbcfb31691bd442140d0c802358d
4,121
py
Python
torchattacks/attacks/multiattack.py
Harry24k/adversarial-attacks-pytorch
bfa2aa8d6f0c3b8086718f9f31526fcafa6995bb
[ "MIT" ]
782
2020-03-28T01:56:36.000Z
2022-03-31T14:54:02.000Z
torchattacks/attacks/multiattack.py
Harry24k/adversarial-attacks-pytorch
bfa2aa8d6f0c3b8086718f9f31526fcafa6995bb
[ "MIT" ]
48
2020-04-18T23:06:30.000Z
2022-03-24T01:54:50.000Z
torchattacks/attacks/multiattack.py
Harry24k/adversarial-attacks-pytorch
bfa2aa8d6f0c3b8086718f9f31526fcafa6995bb
[ "MIT" ]
197
2020-03-31T05:21:02.000Z
2022-03-31T15:24:29.000Z
import copy import torch from ..attack import Attack class MultiAttack(Attack): r""" MultiAttack is a class to attack a model with various attacks agains same images and labels. Arguments: model (nn.Module): model to attack. attacks (list): list of attacks. Examples:: >>> at...
33.778689
108
0.626062
522
4,121
4.66092
0.247126
0.088779
0.166461
0.070284
0.306617
0.194821
0.16605
0.079737
0.047678
0.047678
0
0.018403
0.261587
4,121
121
109
34.057851
0.781137
0.127639
0
0.109589
0
0
0.054932
0
0
0
0
0
0
1
0.109589
false
0
0.041096
0
0.219178
0.041096
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
92e0877363cacd633cbbf12e0ee4175cb9564598
2,627
py
Python
src/manager/om/script/gspylib/inspection/items/os/CheckPortConflict.py
wotchin/openGauss-server
ebd92e92b0cfd76b121d98e4c57a22d334573159
[ "MulanPSL-1.0" ]
1
2020-06-30T15:00:50.000Z
2020-06-30T15:00:50.000Z
src/manager/om/script/gspylib/inspection/items/os/CheckPortConflict.py
wotchin/openGauss-server
ebd92e92b0cfd76b121d98e4c57a22d334573159
[ "MulanPSL-1.0" ]
null
null
null
src/manager/om/script/gspylib/inspection/items/os/CheckPortConflict.py
wotchin/openGauss-server
ebd92e92b0cfd76b121d98e4c57a22d334573159
[ "MulanPSL-1.0" ]
null
null
null
# -*- coding:utf-8 -*- # Copyright (c) 2020 Huawei Technologies Co.,Ltd. # # openGauss is licensed under Mulan PSL v2. # You can use this software according to the terms # and conditions of the Mulan PSL v2. # You may obtain a copy of Mulan PSL v2 at: # # http://license.coscl.org.cn/MulanPSL2 # # THIS SOFTWARE...
39.80303
79
0.53445
303
2,627
4.580858
0.458746
0.072046
0.056196
0.011527
0.245677
0.224784
0.224784
0.190202
0.06196
0.06196
0
0.023783
0.311762
2,627
65
80
40.415385
0.743916
0.229159
0
0.222222
0
0.044444
0.190239
0
0
0
0
0
0
1
0.066667
false
0
0.066667
0
0.155556
0.022222
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
92e16c1fa8d877e82eb805100d17b73907afb25e
646
py
Python
_scripts/_build.py
dfreeman06/wxyz
663cf6593f4c0ca12f7b94b61e34c0a8d3cbcdfd
[ "BSD-3-Clause" ]
1
2021-06-20T12:21:27.000Z
2021-06-20T12:21:27.000Z
_scripts/_build.py
nrbgt/wxyz
663cf6593f4c0ca12f7b94b61e34c0a8d3cbcdfd
[ "BSD-3-Clause" ]
null
null
null
_scripts/_build.py
nrbgt/wxyz
663cf6593f4c0ca12f7b94b61e34c0a8d3cbcdfd
[ "BSD-3-Clause" ]
null
null
null
import subprocess import sys from . import ROOT, PY_SRC, _run, PY, DIST CONDA_ORDER = [ "core", "html", "lab", "datagrid", "svg", "tpl-jjinja" "yaml" ] CONDA_BUILD_ARGS = [ "conda-build", "-c", "conda-forge", "--output-folder", DIST / "conda-bld", ] if __name__ == "__main__": f...
20.83871
83
0.560372
83
646
4.084337
0.542169
0.117994
0.123894
0.100295
0
0
0
0
0
0
0
0
0.23839
646
30
84
21.533333
0.689024
0
0
0
0
0
0.256966
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
92e2096dcbe8b31e8b6213b7078b62e4efd23dd0
3,318
py
Python
Mmint/CGratio.py
lijiacd985/Mplot
adea07aa78a5495cf3551618f6ec2c08fa7c1029
[ "MIT" ]
5
2018-07-02T16:33:23.000Z
2021-03-23T00:32:31.000Z
Mmint/CGratio.py
lijiacd985/Mplot
adea07aa78a5495cf3551618f6ec2c08fa7c1029
[ "MIT" ]
1
2017-09-19T19:46:11.000Z
2020-02-28T05:00:49.000Z
Mmint/CGratio.py
lijiacd985/Mplot
adea07aa78a5495cf3551618f6ec2c08fa7c1029
[ "MIT" ]
4
2017-11-16T15:26:24.000Z
2020-02-13T16:25:25.000Z
import subprocess from .Genome_fasta import get_fasta import matplotlib matplotlib.use('Agg') from matplotlib import pyplot as plt import numpy as np import pysam def run(parser): args = parser.parse_args() bases,chrs = get_fasta(args.genome) l={} for c in chrs: l[c]=len(bases[c]) chrs = se...
33.857143
177
0.589813
511
3,318
3.722114
0.330724
0.033123
0.047319
0.050473
0.109359
0.09674
0.09674
0.09674
0.09674
0.09674
0
0.032462
0.238698
3,318
97
178
34.206186
0.720507
0.187764
0
0.029851
0
0
0.094828
0
0
0
0
0
0
1
0.014925
false
0
0.104478
0
0.119403
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
92e278de46c7d8190178a6e51a0f4e234995f14e
1,536
py
Python
src/furo/__init__.py
sethmlarson/furo
1257d884dae9040248380595e06d7d2a1e6eba39
[ "MIT" ]
null
null
null
src/furo/__init__.py
sethmlarson/furo
1257d884dae9040248380595e06d7d2a1e6eba39
[ "MIT" ]
null
null
null
src/furo/__init__.py
sethmlarson/furo
1257d884dae9040248380595e06d7d2a1e6eba39
[ "MIT" ]
null
null
null
"""A clean customisable Sphinx documentation theme.""" __version__ = "2020.9.8.beta2" from pathlib import Path from .body import wrap_tables from .code import get_pygments_style_colors from .navigation import get_navigation_tree from .toc import should_hide_toc def _html_page_context(app, pagename, templatename, c...
32
73
0.69401
196
1,536
5.204082
0.47449
0.041176
0.038235
0.043137
0
0
0
0
0
0
0
0.011138
0.181641
1,536
47
74
32.680851
0.800318
0.173177
0
0
0
0
0.140239
0
0
0
0
0
0
1
0.071429
false
0
0.178571
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
92e3577604795bc43851e0afe7af80fe0fe26bbf
2,059
py
Python
experiments/mix_down.py
fretboardfreak/potty_oh
70b752c719576c0975e1d2af5aca2fc7abc8abcc
[ "Apache-2.0" ]
null
null
null
experiments/mix_down.py
fretboardfreak/potty_oh
70b752c719576c0975e1d2af5aca2fc7abc8abcc
[ "Apache-2.0" ]
1
2016-05-04T03:51:36.000Z
2016-05-16T19:08:02.000Z
experiments/mix_down.py
fretboardfreak/potty_oh
70b752c719576c0975e1d2af5aca2fc7abc8abcc
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # Copyright 2016 Curtis Sand # # 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 la...
34.898305
78
0.736765
287
2,059
5.108014
0.452962
0.040928
0.04502
0.043656
0.094134
0.094134
0.050477
0
0
0
0
0.007096
0.178728
2,059
58
79
35.5
0.859846
0.318601
0
0
0
0
0.011561
0
0
0
0
0
0
1
0.032258
false
0
0.193548
0
0.258065
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
92e37ec4545956a8e8242b1871fea16288a1a867
8,704
py
Python
tests/test_hrepr.py
fabaff/hrepr
f6de915f1d34c47ceab11f5f70e433a30e6de174
[ "MIT" ]
null
null
null
tests/test_hrepr.py
fabaff/hrepr
f6de915f1d34c47ceab11f5f70e433a30e6de174
[ "MIT" ]
null
null
null
tests/test_hrepr.py
fabaff/hrepr
f6de915f1d34c47ceab11f5f70e433a30e6de174
[ "MIT" ]
null
null
null
from dataclasses import dataclass from hrepr import H from hrepr import hrepr as real_hrepr from hrepr.h import styledir from .common import one_test_per_assert css_hrepr = open(f"{styledir}/hrepr.css", encoding="utf-8").read() hrepr = real_hrepr.variant(fill_resources=False) @dataclass class Point: x: int ...
29.110368
79
0.443934
1,033
8,704
3.687318
0.136496
0.07561
0.095301
0.058808
0.611447
0.586768
0.547125
0.494618
0.444474
0.440798
0
0.026088
0.335018
8,704
298
80
29.208054
0.631652
0
0
0.449799
0
0
0.240924
0.008157
0
0
0
0
0.148594
1
0.072289
false
0.004016
0.02008
0.004016
0.11245
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
92e5bc0e9b68f032b202632a0013f3e6bb85256a
11,460
py
Python
supervisor/const.py
peddamat/home-assistant-supervisor-test
5da55772bcb2db3c6d8432cbc08e2ac9fbf480c4
[ "Apache-2.0" ]
null
null
null
supervisor/const.py
peddamat/home-assistant-supervisor-test
5da55772bcb2db3c6d8432cbc08e2ac9fbf480c4
[ "Apache-2.0" ]
null
null
null
supervisor/const.py
peddamat/home-assistant-supervisor-test
5da55772bcb2db3c6d8432cbc08e2ac9fbf480c4
[ "Apache-2.0" ]
null
null
null
"""Constants file for Supervisor.""" from enum import Enum from ipaddress import ip_network from pathlib import Path SUPERVISOR_VERSION = "DEV" URL_HASSIO_ADDONS = "https://github.com/home-assistant/addons" URL_HASSIO_APPARMOR = "https://version.home-assistant.io/apparmor.txt" URL_HASSIO_VERSION = "https://version.ho...
25.986395
84
0.755585
1,483
11,460
5.492245
0.262306
0.017188
0.01989
0.006139
0.00663
0
0
0
0
0
0
0.007001
0.127487
11,460
440
85
26.045455
0.807581
0.050436
0
0.027174
0
0
0.285134
0.009972
0
0
0
0
0
1
0
false
0.002717
0.008152
0
0.127717
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
92e5e938e0e0af1229cd08971df68b5917c123c7
8,334
py
Python
quaesit/agent.py
jgregoriods/quaesit
3846f5084ea4d6c1cbd9a93176ee9dee25e12105
[ "MIT" ]
null
null
null
quaesit/agent.py
jgregoriods/quaesit
3846f5084ea4d6c1cbd9a93176ee9dee25e12105
[ "MIT" ]
null
null
null
quaesit/agent.py
jgregoriods/quaesit
3846f5084ea4d6c1cbd9a93176ee9dee25e12105
[ "MIT" ]
null
null
null
import inspect from math import hypot, sin, asin, cos, radians, degrees from abc import ABCMeta, abstractmethod from random import randint, choice from typing import Dict, List, Tuple, Union class Agent(metaclass=ABCMeta): """ Class to represent an agent in an agent-based model. """ _id = 0 colo...
35.016807
76
0.517639
1,004
8,334
4.213147
0.177291
0.070213
0.043026
0.032151
0.380378
0.356501
0.315839
0.282742
0.250118
0.223877
0
0.012739
0.37833
8,334
237
77
35.164557
0.803706
0.164027
0
0.296875
0
0
0.013134
0
0
0
0
0
0
1
0.140625
false
0
0.039063
0
0.28125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
92e5fb97c8f7793e1b150c9be5289156548c78e6
15,337
py
Python
models/LRF_COCO_300.py
vaesl/LRF-Net
e44b120dd55288c02852f8e58cda31313525d748
[ "MIT" ]
180
2019-10-24T01:55:54.000Z
2022-02-07T11:26:49.000Z
models/LRF_COCO_300.py
CV-Rookie/LRF-Net
e44b120dd55288c02852f8e58cda31313525d748
[ "MIT" ]
11
2019-11-06T08:46:00.000Z
2020-06-20T02:30:32.000Z
models/LRF_COCO_300.py
CV-Rookie/LRF-Net
e44b120dd55288c02852f8e58cda31313525d748
[ "MIT" ]
29
2019-10-28T03:26:27.000Z
2021-05-03T02:32:06.000Z
import torch import torch.nn as nn import os import torch.nn.functional as F class LDS(nn.Module): def __init__(self,): super(LDS, self).__init__() self.pool1 = nn.MaxPool2d(kernel_size=(2, 2), stride=2, padding=0) self.pool2 = nn.MaxPool2d(kernel_size=(2, 2), stride=2, padding=0) ...
36.516667
154
0.579774
2,134
15,337
4.017338
0.13074
0.051324
0.025662
0.023796
0.502275
0.450018
0.41794
0.371632
0.322174
0.278782
0
0.064213
0.298363
15,337
419
155
36.603819
0.73246
0.122319
0
0.284746
0
0
0.015987
0
0
0
0
0
0
1
0.077966
false
0.00339
0.013559
0
0.166102
0.013559
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
92e751e7128a30f8b366e1182af0f9e14b4591cd
25,418
py
Python
tests/test.py
chromia/wandplus
815127aeee85dbac3bc8fca35971d2153b1898a9
[ "ImageMagick", "MIT" ]
null
null
null
tests/test.py
chromia/wandplus
815127aeee85dbac3bc8fca35971d2153b1898a9
[ "ImageMagick", "MIT" ]
null
null
null
tests/test.py
chromia/wandplus
815127aeee85dbac3bc8fca35971d2153b1898a9
[ "ImageMagick", "MIT" ]
null
null
null
#!/usr/bin/env python from wand.image import Image from wand.drawing import Drawing from wand.color import Color import wandplus.image as wpi from wandplus.textutil import calcSuitableFontsize, calcSuitableImagesize import os import unittest tmpdir = '_tmp/' def save(img, function, channel=False, ext='.png'): ...
29.487239
81
0.464395
3,438
25,418
3.392379
0.103839
0.033096
0.054017
0.037726
0.481694
0.427334
0.383949
0.347852
0.27883
0.217611
0
0.040395
0.405893
25,418
861
82
29.521487
0.731938
0.02215
0
0.41255
0
0
0.051059
0.00608
0
0
0
0.001161
0.008011
1
0.129506
false
0.00267
0.012016
0
0.145527
0.004005
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
92e78a29e0f69d74c35aa00744e686a1763079d2
7,652
py
Python
src/librender/tests/test_mesh.py
tizian/layer-laboratory
008cc94b76127e9eb74227fcd3d0145da8ddec30
[ "CNRI-Python" ]
7
2020-07-24T03:19:59.000Z
2022-03-30T10:56:12.000Z
src/librender/tests/test_mesh.py
tizian/layer-laboratory
008cc94b76127e9eb74227fcd3d0145da8ddec30
[ "CNRI-Python" ]
1
2021-04-07T22:30:23.000Z
2021-04-08T00:55:36.000Z
src/librender/tests/test_mesh.py
tizian/layer-laboratory
008cc94b76127e9eb74227fcd3d0145da8ddec30
[ "CNRI-Python" ]
2
2020-06-08T08:25:09.000Z
2021-04-05T22:13:08.000Z
import mitsuba import pytest import enoki as ek from enoki.dynamic import Float32 as Float from mitsuba.python.test.util import fresolver_append_path from mitsuba.python.util import traverse def test01_create_mesh(variant_scalar_rgb): from mitsuba.core import Struct, float_dtype from mitsuba.render import Me...
32.561702
93
0.611997
1,151
7,652
3.939183
0.166811
0.026026
0.018527
0.009704
0.542347
0.473313
0.425232
0.362373
0.354433
0.346052
0
0.082012
0.233534
7,652
235
94
32.561702
0.691049
0.027052
0
0.467033
0
0.005495
0.257456
0.03995
0
0
0
0
0.186813
1
0.049451
false
0
0.115385
0
0.17033
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
92ec31910f4ccb9a9e9fdaf1976491caf430c06d
1,067
py
Python
tests/slicebuilders/subpopulations/test_length.py
ANarayan/robustness-gym
eed2800985631fbbe6491b5f6f0731a067eef78e
[ "Apache-2.0" ]
null
null
null
tests/slicebuilders/subpopulations/test_length.py
ANarayan/robustness-gym
eed2800985631fbbe6491b5f6f0731a067eef78e
[ "Apache-2.0" ]
null
null
null
tests/slicebuilders/subpopulations/test_length.py
ANarayan/robustness-gym
eed2800985631fbbe6491b5f6f0731a067eef78e
[ "Apache-2.0" ]
null
null
null
from unittest import TestCase import numpy as np from robustnessgym.cachedops.spacy import Spacy from robustnessgym.slicebuilders.subpopulations.length import LengthSubpopulation from tests.testbeds import MockTestBedv0 class TestLengthSubpopulation(TestCase): def setUp(self): self.testbed = MockTestBed...
34.419355
81
0.686036
125
1,067
5.824
0.448
0.105769
0.148352
0.103022
0.127747
0
0
0
0
0
0
0.017381
0.19119
1,067
30
82
35.566667
0.826188
0.10403
0
0
0
0
0.016824
0
0
0
0
0
0.117647
1
0.117647
false
0
0.294118
0
0.470588
0.117647
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
92eca5c1a6337291d863c933685487ea52da0c9b
1,146
py
Python
pulsar_spectra/catalogue_papers/Jankowski_2018_raw_to_yaml.py
NickSwainston/pulsar_spectra
b264aab3f8fc1bb3cad14ef1b93cab519ed5bc69
[ "MIT" ]
null
null
null
pulsar_spectra/catalogue_papers/Jankowski_2018_raw_to_yaml.py
NickSwainston/pulsar_spectra
b264aab3f8fc1bb3cad14ef1b93cab519ed5bc69
[ "MIT" ]
4
2021-12-17T04:24:13.000Z
2022-02-24T14:51:18.000Z
pulsar_spectra/catalogue_papers/Jankowski_2018_raw_to_yaml.py
NickSwainston/pulsar_spectra
b264aab3f8fc1bb3cad14ef1b93cab519ed5bc69
[ "MIT" ]
null
null
null
import json from astroquery.vizier import Vizier with open("Jankowski_2018_raw.txt", "r") as raw_file: lines = raw_file.readlines() print(lines) pulsar_dict = {} for row in lines[3:]: row = row.split("|") print(row) pulsar = row[0].strip().replace("−", "-") freqs = [] fluxs = [] flux_e...
34.727273
111
0.604712
167
1,146
4.05988
0.39521
0.097345
0.123894
0.084071
0.119469
0.119469
0
0
0
0
0
0.036224
0.205061
1,146
33
112
34.727273
0.706915
0.057592
0
0
0
0
0.089898
0.020389
0
0
0
0
0
1
0
false
0
0.068966
0
0.068966
0.103448
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
92ee36608ac8edb00b879a89f8f1eafb4cb4fb04
15,018
py
Python
integration-tests/run-intg-test.py
NishikaDeSilva/identity-test-integration
dbd1db07aa6d4f4942d772cd56c0b06c355bd43b
[ "Apache-2.0" ]
4
2017-10-23T05:25:27.000Z
2018-01-10T08:00:14.000Z
integration-tests/run-intg-test.py
NishikaDeSilva/identity-test-integration
dbd1db07aa6d4f4942d772cd56c0b06c355bd43b
[ "Apache-2.0" ]
42
2018-05-21T12:55:49.000Z
2020-01-17T06:40:25.000Z
integration-tests/run-intg-test.py
NishikaDeSilva/identity-test-integration
dbd1db07aa6d4f4942d772cd56c0b06c355bd43b
[ "Apache-2.0" ]
46
2017-10-04T05:45:52.000Z
2018-05-05T14:32:26.000Z
# Copyright (c) 2018, WSO2 Inc. (http://wso2.com) 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 ap...
46.639752
127
0.671195
1,930
15,018
4.935233
0.192746
0.014488
0.030236
0.018898
0.328189
0.23937
0.200735
0.174908
0.136693
0.126824
0
0.001915
0.234852
15,018
321
128
46.785047
0.826995
0.152617
0
0.131148
0
0.004098
0.158385
0.05198
0
0
0
0.003115
0
1
0.036885
false
0.028689
0.081967
0
0.127049
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
92eed01036cb07058175a69126f2f5a418891a9a
2,376
py
Python
src/pytest_notification/sound.py
rhpvorderman/pytest-notification
3f322ab04914f52525e1b07bc80537d5f9a00250
[ "MIT" ]
2
2020-08-27T03:14:05.000Z
2020-10-24T17:17:36.000Z
src/pytest_notification/sound.py
rhpvorderman/pytest-notification
3f322ab04914f52525e1b07bc80537d5f9a00250
[ "MIT" ]
5
2019-12-02T08:49:15.000Z
2020-06-22T08:38:34.000Z
src/pytest_notification/sound.py
rhpvorderman/pytest-notification
3f322ab04914f52525e1b07bc80537d5f9a00250
[ "MIT" ]
null
null
null
# Copyright (c) 2019 Leiden University Medical Center # # 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 # to use, copy, modify, me...
43.2
79
0.731481
336
2,376
5.08631
0.479167
0.047396
0.02282
0.031597
0.050322
0.037449
0.037449
0
0
0
0
0.002614
0.194865
2,376
54
80
44
0.890748
0.63931
0
0
0
0
0.134161
0
0
0
0
0
0
1
0.117647
false
0
0.176471
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
92ef37eb449c4f50b5c90c7a720a5f53652a647c
420
py
Python
7KYU/next_prime.py
yaznasivasai/python_codewars
25493591dde4649dc9c1ec3bece8191a3bed6818
[ "MIT" ]
4
2021-07-17T22:48:03.000Z
2022-03-25T14:10:58.000Z
7KYU/next_prime.py
yaznasivasai/python_codewars
25493591dde4649dc9c1ec3bece8191a3bed6818
[ "MIT" ]
null
null
null
7KYU/next_prime.py
yaznasivasai/python_codewars
25493591dde4649dc9c1ec3bece8191a3bed6818
[ "MIT" ]
3
2021-06-14T14:18:16.000Z
2022-03-16T06:02:02.000Z
from math import sqrt def is_simple(n: int) -> bool: if n % 2 == 0 and n != 2: return False for i in range (3, int(sqrt(n)) + 2, 2): if n % i == 0 and n != i: return False return True def next_prime(n: int) -> int: n += 1 if n <= 2: return 2 else: i...
20
44
0.435714
69
420
2.608696
0.405797
0.066667
0.066667
0.055556
0
0
0
0
0
0
0
0.059829
0.442857
420
21
45
20
0.709402
0
0
0.222222
0
0
0
0
0
0
0
0
0
1
0.111111
false
0
0.055556
0
0.444444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
92ef91238a4d28bed6389f80b7547828e84737ba
6,622
py
Python
cozmo_sdk_examples/if_this_then_that/ifttt_gmail.py
manxueitp/cozmo-test
a91b1a4020544cb622bd67385f317931c095d2e8
[ "MIT" ]
null
null
null
cozmo_sdk_examples/if_this_then_that/ifttt_gmail.py
manxueitp/cozmo-test
a91b1a4020544cb622bd67385f317931c095d2e8
[ "MIT" ]
null
null
null
cozmo_sdk_examples/if_this_then_that/ifttt_gmail.py
manxueitp/cozmo-test
a91b1a4020544cb622bd67385f317931c095d2e8
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2016 Anki, 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 in the file LICENSE.txt or at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unles...
41.3875
105
0.67457
985
6,622
4.467005
0.35533
0.012727
0.011364
0.015909
0.048636
0.031818
0.011818
0
0
0
0
0.010126
0.254304
6,622
159
106
41.647799
0.880923
0.685744
0
0.078947
0
0
0.143097
0.016769
0
0
0
0
0
1
0
false
0
0.210526
0
0.236842
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
92f0c7d812707a316f1c04c4ec3e35722444b8b5
13,843
py
Python
plotutils.py
parkus/mypy
21043c559dca14abe7508e0f6b2f8053bf376bb8
[ "MIT" ]
1
2015-11-06T06:27:59.000Z
2015-11-06T06:27:59.000Z
plotutils.py
parkus/mypy
21043c559dca14abe7508e0f6b2f8053bf376bb8
[ "MIT" ]
null
null
null
plotutils.py
parkus/mypy
21043c559dca14abe7508e0f6b2f8053bf376bb8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri May 30 17:15:27 2014 @author: Parke """ from __future__ import division, print_function, absolute_import import numpy as np import matplotlib as mplot import matplotlib.pyplot as plt import mypy.my_numpy as mnp dpi = 100 fullwidth = 10.0 halfwidth = 5.0 # use these with li...
31.461364
117
0.582388
2,185
13,843
3.623341
0.230664
0.007579
0.005305
0.003537
0.100164
0.073639
0.059871
0.035114
0.030062
0.020462
0
0.039837
0.274651
13,843
439
118
31.53303
0.748631
0.162682
0
0.109966
0
0.061856
0.045223
0
0
0
0
0.002278
0
1
0.065292
false
0
0.024055
0
0.168385
0.006873
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
92f9c4373d43c67eefcb0f04052b7d238d59ad11
2,297
py
Python
integrations/tensorflow/bindings/python/pyiree/tf/compiler/saved_model_test.py
rise-lang/iree
46ad3fe392d38ce3df6eff7826cc1ab331a40b72
[ "Apache-2.0" ]
1
2020-08-13T09:25:59.000Z
2020-08-13T09:25:59.000Z
integrations/tensorflow/bindings/python/pyiree/tf/compiler/saved_model_test.py
rise-lang/iree
46ad3fe392d38ce3df6eff7826cc1ab331a40b72
[ "Apache-2.0" ]
null
null
null
integrations/tensorflow/bindings/python/pyiree/tf/compiler/saved_model_test.py
rise-lang/iree
46ad3fe392d38ce3df6eff7826cc1ab331a40b72
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
29.831169
80
0.727035
337
2,297
4.79822
0.510386
0.037106
0.029685
0.01979
0.050711
0
0
0
0
0
0
0.01016
0.185895
2,297
76
81
30.223684
0.854545
0.415324
0
0
0
0
0.095639
0
0
0
0
0
0.025641
1
0.076923
false
0.025641
0.25641
0.025641
0.410256
0.102564
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
92fa506f1dc831d005f72a65f033e46f94fe54e8
9,084
py
Python
iRep/gc_skew.py
scottdaniel/iRep
5d31688eeeab057ce54f39698e3f9cc5738e05ad
[ "MIT" ]
55
2016-06-17T17:31:48.000Z
2022-01-19T08:24:43.000Z
iRep/gc_skew.py
scottdaniel/iRep
5d31688eeeab057ce54f39698e3f9cc5738e05ad
[ "MIT" ]
35
2016-06-24T17:19:04.000Z
2021-11-06T16:08:43.000Z
iRep/gc_skew.py
scottdaniel/iRep
5d31688eeeab057ce54f39698e3f9cc5738e05ad
[ "MIT" ]
14
2016-07-21T17:34:16.000Z
2020-03-18T03:45:55.000Z
#!/usr/bin/env python3 """ script for calculating gc skew Chris Brown ctb@berkeley.edu """ # python modules import os import sys import argparse import numpy as np from scipy import signal from itertools import cycle, product # plotting modules from matplotlib import use as mplUse mplUse('Agg') import matplotlib.py...
36.191235
95
0.55295
1,308
9,084
3.762232
0.228593
0.026417
0.012193
0.007112
0.178622
0.150986
0.112172
0.104857
0.080065
0.050396
0
0.022972
0.295575
9,084
250
96
36.336
0.746054
0.161052
0
0.114754
0
0
0.089092
0
0
0
0
0
0
1
0.032787
false
0
0.060109
0
0.136612
0.027322
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
92fa730397bfd4949cfd5d8aa12c70a6b5cb5576
2,429
py
Python
examples/send_governance_vote_transaction.py
Algofiorg/algofi-py-sdk
6100a6726d36db4d4d3287064f0ad1d0b9a05e03
[ "MIT" ]
38
2021-12-30T02:32:57.000Z
2022-03-23T22:09:16.000Z
examples/send_governance_vote_transaction.py
Algofiorg/algofi-py-sdk
6100a6726d36db4d4d3287064f0ad1d0b9a05e03
[ "MIT" ]
4
2021-11-03T00:14:46.000Z
2022-03-28T02:17:33.000Z
examples/send_governance_vote_transaction.py
Algofiorg/algofi-py-sdk
6100a6726d36db4d4d3287064f0ad1d0b9a05e03
[ "MIT" ]
8
2021-12-15T05:29:55.000Z
2022-02-08T03:45:11.000Z
# This sample is provided for demonstration purposes only. # It is not intended for production use. # This example does not constitute trading advice. import os from dotenv import dotenv_values from algosdk import mnemonic, account from algofi.v1.asset import Asset from algofi.v1.client import AlgofiTestnetClient, Algo...
42.614035
121
0.799918
350
2,429
5.4
0.434286
0.038095
0.036508
0.052381
0.07037
0.07037
0.047619
0
0
0
0
0.007863
0.109922
2,429
57
122
42.614035
0.866327
0.461095
0
0.142857
0
0
0.130334
0.024825
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0.285714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
92fa7f11780de4e7d336cb67c51c29ac5c8fbc36
9,059
py
Python
bid/inventoryClient.py
franklx/SOAPpy-py3
f25afba322e9300ba4ebdd281118b629ca63ba24
[ "BSD-3-Clause" ]
7
2018-01-03T18:24:43.000Z
2022-03-07T04:34:01.000Z
bid/inventoryClient.py
franklx/SOAPpy-py3
f25afba322e9300ba4ebdd281118b629ca63ba24
[ "BSD-3-Clause" ]
null
null
null
bid/inventoryClient.py
franklx/SOAPpy-py3
f25afba322e9300ba4ebdd281118b629ca63ba24
[ "BSD-3-Clause" ]
18
2018-08-06T11:30:16.000Z
2022-03-09T11:24:24.000Z
#!/usr/bin/env python import getopt import sys import string import re import time sys.path.insert(1,"..") from SOAPpy import SOAP import traceback DEFAULT_SERVERS_FILE = './inventory.servers' DEFAULT_METHODS = ('SimpleBuy', 'RequestForQuote','Buy','Ping') def usage (error = None): sys.stdout = sys.std...
31.130584
139
0.486919
1,027
9,059
4.252191
0.290166
0.025647
0.010305
0.010992
0.110373
0.063659
0.050836
0.050836
0.027479
0.027479
0
0.023651
0.369908
9,059
290
140
31.237931
0.741416
0.033227
0
0.184685
0
0.009009
0.248486
0.003315
0
0
0
0
0
1
0.040541
false
0
0.036036
0
0.112613
0.099099
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
92fb1af4be141cb39cbab935a9b9551b1ec5b453
934
py
Python
src/compile.py
Pixxeasy/WinTools
e67c365cd4a7a47a410c25b7df8eeaeedc05dd8d
[ "MIT" ]
null
null
null
src/compile.py
Pixxeasy/WinTools
e67c365cd4a7a47a410c25b7df8eeaeedc05dd8d
[ "MIT" ]
null
null
null
src/compile.py
Pixxeasy/WinTools
e67c365cd4a7a47a410c25b7df8eeaeedc05dd8d
[ "MIT" ]
null
null
null
import os import json import shutil with open("entry.tp") as entry: entry = json.loads(entry.read()) startcmd = entry['plugin_start_cmd'].split("%TP_PLUGIN_FOLDER%")[1].split("\\") filedirectory = startcmd[0] fileName = startcmd[1] if os.path.exists(filedirectory): os.remove(os.path.join(os.getcwd(), "Wi...
33.357143
127
0.674518
131
934
4.717557
0.465649
0.048544
0.064725
0.058252
0.119741
0.090615
0.090615
0
0
0
0
0.003659
0.122056
934
27
128
34.592593
0.75
0
0
0
0
0
0.255889
0
0
0
0
0
0
1
0
false
0
0.15
0
0.15
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
92ff4f4bfa893dc686e0e12fb0d4936e8c8b259d
272
py
Python
basic_and.py
Verkhovskaya/PyDL
4c3f2d952dd988ff27bf359d2f2cdde65737e062
[ "MIT" ]
5
2018-07-28T18:18:59.000Z
2022-01-05T19:01:50.000Z
basic_and.py
Verkhovskaya/PyDL
4c3f2d952dd988ff27bf359d2f2cdde65737e062
[ "MIT" ]
null
null
null
basic_and.py
Verkhovskaya/PyDL
4c3f2d952dd988ff27bf359d2f2cdde65737e062
[ "MIT" ]
null
null
null
from pywire import * def invert(signal): if signal: return False else: return True class Inverter: def __init__(self, a, b): b.drive(invert, a) width = 4 a = Signal(width, io="in") b = Signal(width, io="out") Inverter(a, b) build()
14.315789
29
0.591912
40
272
3.925
0.6
0.025478
0.165605
0
0
0
0
0
0
0
0
0.005076
0.275735
272
19
30
14.315789
0.791878
0
0
0
0
0
0.018315
0
0
0
0
0
0
1
0.142857
false
0
0.071429
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
13003b62c91dfe370f2b6ae3d293c73a5a463179
4,521
py
Python
network/evaluate_keypoints.py
mhsung/deep-functional-dictionaries
8b3d70c3376339cb1b7baacf7753094cd1ffef45
[ "MIT" ]
41
2018-07-10T10:15:02.000Z
2021-04-20T03:10:16.000Z
network/evaluate_keypoints.py
Yajha/deep-functional-dictionaries
deecf8c6c85e253cfa52be7c6b3c308d5e5aaf81
[ "MIT" ]
2
2018-07-05T06:34:13.000Z
2019-09-18T08:57:56.000Z
network/evaluate_keypoints.py
Yajha/deep-functional-dictionaries
deecf8c6c85e253cfa52be7c6b3c308d5e5aaf81
[ "MIT" ]
7
2018-07-28T00:00:08.000Z
2021-06-30T13:39:44.000Z
# Minhyuk Sung (mhsung@cs.stanford.edu) # April 2018 import os, sys BASE_DIR = os.path.normpath( os.path.join(os.path.dirname(os.path.abspath(__file__)))) sys.path.append(os.path.join(BASE_DIR, '..')) from datasets import * from generate_outputs import * from scipy.optimize import linear_sum_assignment #impor...
26.438596
76
0.601858
726
4,521
3.522039
0.198347
0.052796
0.023465
0.021119
0.533438
0.499413
0.416895
0.40086
0.33203
0.317951
0
0.012364
0.266534
4,521
170
77
26.594118
0.758745
0.097102
0
0.352273
0
0
0.016274
0
0
0
0
0
0.125
1
0.056818
false
0
0.056818
0
0.147727
0.011364
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
13008c4023106e4274d2b92d9aa79a58e4551138
2,388
py
Python
recipes/cxxopts/all/conanfile.py
dvirtz/conan-center-index
2e7a6337804325616f8d97e3a5b6f66cc72699cb
[ "MIT" ]
562
2019-09-04T12:23:43.000Z
2022-03-29T16:41:43.000Z
recipes/cxxopts/all/conanfile.py
dvirtz/conan-center-index
2e7a6337804325616f8d97e3a5b6f66cc72699cb
[ "MIT" ]
9,799
2019-09-04T12:02:11.000Z
2022-03-31T23:55:45.000Z
recipes/cxxopts/all/conanfile.py
dvirtz/conan-center-index
2e7a6337804325616f8d97e3a5b6f66cc72699cb
[ "MIT" ]
1,126
2019-09-04T11:57:46.000Z
2022-03-31T16:43:38.000Z
import os from conans import ConanFile, tools from conans.errors import ConanInvalidConfiguration class CxxOptsConan(ConanFile): name = "cxxopts" homepage = "https://github.com/jarro2783/cxxopts" url = "https://github.com/conan-io/conan-center-index" description = "Lightweight C++ option parser librar...
36.738462
132
0.641122
274
2,388
5.441606
0.416058
0.075117
0.080483
0.036217
0.037559
0.037559
0
0
0
0
0
0.008161
0.230318
2,388
64
133
37.3125
0.803047
0
0
0.09434
0
0
0.219012
0
0
0
0
0
0
1
0.169811
false
0
0.056604
0.056604
0.490566
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
1300c8abfbfcff2fad07bdd38a7b66244215a15d
1,868
py
Python
p_030_039/problem31.py
ericgreveson/projecteuler
1844bf383fca871b82d88ef1eb3a9b1a0e363054
[ "Apache-2.0" ]
null
null
null
p_030_039/problem31.py
ericgreveson/projecteuler
1844bf383fca871b82d88ef1eb3a9b1a0e363054
[ "Apache-2.0" ]
null
null
null
p_030_039/problem31.py
ericgreveson/projecteuler
1844bf383fca871b82d88ef1eb3a9b1a0e363054
[ "Apache-2.0" ]
null
null
null
class CoinArray(list): """ Coin list that is hashable for storage in sets The 8 entries are [1p count, 2p count, 5p count, ... , 200p count] """ def __hash__(self): """ Hash this as a string """ return hash(" ".join([str(i) for i in self])) def main(): """ En...
31.661017
89
0.534261
274
1,868
3.507299
0.419708
0.014568
0.012487
0.008325
0.097815
0.087409
0.087409
0.087409
0.087409
0.087409
0
0.053422
0.358672
1,868
58
90
32.206897
0.747913
0.34743
0
0.071429
0
0
0.050479
0
0
0
0
0
0
1
0.071429
false
0
0
0
0.178571
0.035714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1300e7747076d34572209fef1029da836f1dbf7b
2,358
py
Python
video/cloud-client/quickstart/quickstart.py
nasirdec/GCP-AppEngine-Example
3f5ad26ad2c1e3c8deceb5844adfb40cf7c2e53f
[ "Apache-2.0" ]
1
2019-11-17T08:59:14.000Z
2019-11-17T08:59:14.000Z
video/cloud-client/quickstart/quickstart.py
nasirdec/GCP-AppEngine-Example
3f5ad26ad2c1e3c8deceb5844adfb40cf7c2e53f
[ "Apache-2.0" ]
16
2019-06-15T00:02:56.000Z
2021-03-25T23:22:38.000Z
video/cloud-client/quickstart/quickstart.py
nasirdec/GCP-AppEngine-Example
3f5ad26ad2c1e3c8deceb5844adfb40cf7c2e53f
[ "Apache-2.0" ]
3
2019-02-11T16:16:11.000Z
2019-04-19T21:34:37.000Z
#!/usr/bin/env python # Copyright 2017 Google Inc. 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...
37.428571
75
0.697201
282
2,358
5.687943
0.5
0.037406
0.016209
0.01995
0.078554
0
0
0
0
0
0
0.00914
0.211196
2,358
62
76
38.032258
0.853226
0.349449
0
0
0
0
0.129801
0.01457
0
0
0
0
0
1
0.035714
false
0
0.035714
0
0.071429
0.25
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
13058e5281c2e6d308c1c802707f6f83b62cdc9b
1,809
py
Python
darts/models/linear_regression_model.py
BiancaMT25/darts
bb550dede6d8927a45aea0d9f3df53de32a6eee2
[ "Apache-2.0" ]
1
2021-07-15T11:12:05.000Z
2021-07-15T11:12:05.000Z
darts/models/linear_regression_model.py
BiancaMT25/darts
bb550dede6d8927a45aea0d9f3df53de32a6eee2
[ "Apache-2.0" ]
null
null
null
darts/models/linear_regression_model.py
BiancaMT25/darts
bb550dede6d8927a45aea0d9f3df53de32a6eee2
[ "Apache-2.0" ]
null
null
null
""" Standard Regression model ------------------------- """ import numpy as np import pandas as pd from typing import Union from ..logging import get_logger from .regression_model import RegressionModel from sklearn.linear_model import LinearRegression logger = get_logger(__name__) class LinearRegressionModel(Regre...
38.489362
111
0.640133
224
1,809
5.040179
0.401786
0.056687
0.042516
0.028344
0.26395
0.26395
0.221435
0.221435
0.221435
0.221435
0
0
0.273079
1,809
47
112
38.489362
0.858555
0.526258
0
0
0
0
0.053942
0.034578
0
0
0
0
0
1
0.1
false
0
0.3
0.05
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
13064197a568b4ea0fdb674d3a8685e3b27e92eb
863
py
Python
hood/urls.py
wadi-1000/Vicinity
a41f6ec2c532cb06f7444b55073b6879a1fce63a
[ "MIT" ]
null
null
null
hood/urls.py
wadi-1000/Vicinity
a41f6ec2c532cb06f7444b55073b6879a1fce63a
[ "MIT" ]
null
null
null
hood/urls.py
wadi-1000/Vicinity
a41f6ec2c532cb06f7444b55073b6879a1fce63a
[ "MIT" ]
null
null
null
from django.urls import path,include from . import views urlpatterns = [ path('home/', views.home, name = 'home'), path('add_hood/',views.uploadNeighbourhood, name = 'add_hood'), path('viewhood/',views.viewHood, name = 'viewhood'), path('hood/<int:pk>/',views.hood, name = 'hood'), path('add_bizna/'...
47.944444
74
0.665122
108
863
5.203704
0.305556
0.042705
0.035587
0
0
0
0
0
0
0
0
0
0.130939
863
18
75
47.944444
0.749333
0
0
0
0
0
0.271991
0
0
0
0
0
0
1
0
false
0
0.117647
0
0.117647
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
1306e647595d1f2f64e2d6dd214b9b25580f3ed1
8,305
py
Python
src/licensedcode/tokenize.py
chetanya-shrimali/scancode-toolkit
a1a22fb225cbeb211bd6f92272a46f1351f57d6b
[ "Apache-2.0", "CC0-1.0" ]
null
null
null
src/licensedcode/tokenize.py
chetanya-shrimali/scancode-toolkit
a1a22fb225cbeb211bd6f92272a46f1351f57d6b
[ "Apache-2.0", "CC0-1.0" ]
null
null
null
src/licensedcode/tokenize.py
chetanya-shrimali/scancode-toolkit
a1a22fb225cbeb211bd6f92272a46f1351f57d6b
[ "Apache-2.0", "CC0-1.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (c) 2017 nexB Inc. and others. All rights reserved. # http://nexb.com and https://github.com/nexB/scancode-toolkit/ # The ScanCode software is licensed under the Apache License version 2.0. # Data generated with ScanCode require an acknowledgment. # ScanCode is a trademark of nexB ...
36.425439
105
0.646117
1,245
8,305
4.244177
0.271486
0.006435
0.003974
0.013626
0.181491
0.149697
0.130394
0.126987
0.123202
0.117903
0
0.030436
0.232511
8,305
227
106
36.585903
0.798557
0.628657
0
0.239437
0
0
0.03263
0
0.014085
0
0
0.008811
0
1
0.084507
false
0
0.112676
0
0.28169
0.014085
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
130a61bee54706bd995afa354e7681d8726e5d5d
3,764
py
Python
src/model.py
palucki/RememberIt
1d66616d4bb1bca026dda031d876dca226ba71ad
[ "MIT" ]
null
null
null
src/model.py
palucki/RememberIt
1d66616d4bb1bca026dda031d876dca226ba71ad
[ "MIT" ]
null
null
null
src/model.py
palucki/RememberIt
1d66616d4bb1bca026dda031d876dca226ba71ad
[ "MIT" ]
null
null
null
import random from pymongo import MongoClient from observable import Observable from phrase import Phrase class MongoDbProxy: """Proxy for MongoDB""" def __init__(self, url, dbName, tableName): self.client = MongoClient(url) self.db = self.client[dbName] self.table = tableName ...
30.852459
85
0.562965
411
3,764
5.094891
0.277372
0.048711
0.052531
0.071633
0.189589
0.114136
0.088348
0.088348
0.072588
0.038204
0
0.003497
0.316153
3,764
121
86
31.107438
0.810023
0.064293
0
0.186047
0
0
0.052467
0.007414
0
0
0
0
0
1
0.186047
false
0
0.046512
0.023256
0.313953
0.069767
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
130ad5b5c3caa22c7668a018ea30cf4d2bc3c2f4
1,381
py
Python
sampleApplication/clientGenerator.py
chall68/BlackWatch
0b95d69e4b7de9213a031557e9aff54ce35b12dd
[ "MIT" ]
null
null
null
sampleApplication/clientGenerator.py
chall68/BlackWatch
0b95d69e4b7de9213a031557e9aff54ce35b12dd
[ "MIT" ]
null
null
null
sampleApplication/clientGenerator.py
chall68/BlackWatch
0b95d69e4b7de9213a031557e9aff54ce35b12dd
[ "MIT" ]
null
null
null
#!flask/bin/python #from user import User from sampleObjects.User import User from datetime import datetime from sampleObjects.DetectionPoint import DetectionPoint import time, requests, random, atexit def requestGenerator(): userObject = randomUser() detectionPointObject = randomDetectionPoint() req = r...
27.62
187
0.674873
164
1,381
5.634146
0.5
0.038961
0.030303
0.038961
0
0
0
0
0
0
0
0.05694
0.186097
1,381
49
188
28.183673
0.765125
0.027516
0
0
0
0
0.206562
0
0
0
0
0
0
1
0.114286
false
0
0.114286
0
0.285714
0.085714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
130c49099f8aa40a9dd92ff170ecb6c15b43d8f9
1,873
py
Python
news_collector/collector/consumers.py
ridwaniyas/channels-examples
9e6a26c8e6404483695cbd96ebf12fc4ed9956b2
[ "BSD-3-Clause" ]
null
null
null
news_collector/collector/consumers.py
ridwaniyas/channels-examples
9e6a26c8e6404483695cbd96ebf12fc4ed9956b2
[ "BSD-3-Clause" ]
null
null
null
news_collector/collector/consumers.py
ridwaniyas/channels-examples
9e6a26c8e6404483695cbd96ebf12fc4ed9956b2
[ "BSD-3-Clause" ]
null
null
null
import asyncio import json import datetime from aiohttp import ClientSession from channels.generic.http import AsyncHttpConsumer from .constants import BLOGS class NewsCollectorAsyncConsumer(AsyncHttpConsumer): """ Async HTTP consumer that fetches URLs. """ async def handle(self, body): # Ad...
35.339623
91
0.615056
218
1,873
5.256881
0.56422
0.015707
0.029668
0
0
0
0
0
0
0
0
0.011338
0.293647
1,873
52
92
36.019231
0.854875
0.288841
0
0
0
0
0.076511
0
0
0
0
0
0
1
0
false
0
0.2
0
0.266667
0.066667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
130d77d6c796e047f21c43df476be8389b35aecb
737
py
Python
src/randomcsv/FileUtils.py
PhilipBuhr/randomCsv
34b1da62134077dfe4db2682ee0da386ef380c1d
[ "MIT" ]
null
null
null
src/randomcsv/FileUtils.py
PhilipBuhr/randomCsv
34b1da62134077dfe4db2682ee0da386ef380c1d
[ "MIT" ]
null
null
null
src/randomcsv/FileUtils.py
PhilipBuhr/randomCsv
34b1da62134077dfe4db2682ee0da386ef380c1d
[ "MIT" ]
null
null
null
import os from pathlib import Path def write(file_name, content): Path(os.path.dirname(file_name)).mkdir(parents=True, exist_ok=True) with open(file_name, 'w') as file: file.write(content) def read_line_looping(file_name, count): i = 0 lines = [] file = open(file_name, 'r') line = fi...
23.03125
80
0.591588
96
737
4.4375
0.5
0.131455
0.084507
0.075117
0.220657
0.15493
0.15493
0.15493
0
0
0
0.003781
0.282225
737
31
81
23.774194
0.801512
0
0
0.36
0
0
0.067843
0
0
0
0
0
0
1
0.08
false
0.04
0.08
0
0.24
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
130ec5dfef9f34118ca5d16b6a8a1a90a53517da
5,495
py
Python
aux_sys_err_prediction_module/additive/R_runmed_spline/my_R_runmed_spline_analysis.py
PNNL-Comp-Mass-Spec/DtaRefinery
609cc90d0322af69aea43c2fc21d9cf05a06797a
[ "BSD-2-Clause" ]
null
null
null
aux_sys_err_prediction_module/additive/R_runmed_spline/my_R_runmed_spline_analysis.py
PNNL-Comp-Mass-Spec/DtaRefinery
609cc90d0322af69aea43c2fc21d9cf05a06797a
[ "BSD-2-Clause" ]
null
null
null
aux_sys_err_prediction_module/additive/R_runmed_spline/my_R_runmed_spline_analysis.py
PNNL-Comp-Mass-Spec/DtaRefinery
609cc90d0322af69aea43c2fc21d9cf05a06797a
[ "BSD-2-Clause" ]
null
null
null
from aux_sys_err_prediction_module.additive.R_runmed_spline.my_R_runmed_spline_fit import R_runmed_smooth_spline from numpy import random, array, median, zeros, arange, hstack from win32com.client import Dispatch import math myName = 'R_runmed_spline' useMAD = True # use median absolute deviations instead of ...
32.323529
113
0.499363
648
5,495
4.143519
0.29784
0.036499
0.048417
0.029795
0.179143
0.13743
0.13743
0.105028
0.05959
0.05959
0
0.029544
0.273157
5,495
169
114
32.514793
0.642714
0.22475
0
0.173077
0
0
0.035422
0.007431
0
0
0
0
0
1
0.028846
false
0
0.076923
0
0.134615
0.019231
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
130f0d527db89218f9714b016db75a6b60750779
2,721
py
Python
setup.py
Ms2ger/python-zstandard
b8ea1f6722a710e252b452554442b84c81049439
[ "BSD-3-Clause" ]
null
null
null
setup.py
Ms2ger/python-zstandard
b8ea1f6722a710e252b452554442b84c81049439
[ "BSD-3-Clause" ]
null
null
null
setup.py
Ms2ger/python-zstandard
b8ea1f6722a710e252b452554442b84c81049439
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2016-present, Gregory Szorc # All rights reserved. # # This software may be modified and distributed under the terms # of the BSD license. See the LICENSE file for details. import os import sys from setuptools import setup try: import cffi except ImportError: cffi = None ...
27.765306
78
0.655274
343
2,721
5.084548
0.469388
0.036697
0.06422
0.044725
0.041284
0.041284
0.041284
0
0
0
0
0.011967
0.232268
2,721
97
79
28.051546
0.822882
0.180448
0
0.029412
0
0
0.305681
0.042381
0
0
0
0
0
1
0
false
0
0.102941
0
0.102941
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
1312f8f0f49eb471bc17c6830c67ae3b593f1370
8,694
py
Python
mmdet/models/losses/ranking_losses.py
VietDunghacker/VarifocalNet
f57917afb3c29ceba1d3c4f824d10b9cc53aaa40
[ "Apache-2.0" ]
null
null
null
mmdet/models/losses/ranking_losses.py
VietDunghacker/VarifocalNet
f57917afb3c29ceba1d3c4f824d10b9cc53aaa40
[ "Apache-2.0" ]
null
null
null
mmdet/models/losses/ranking_losses.py
VietDunghacker/VarifocalNet
f57917afb3c29ceba1d3c4f824d10b9cc53aaa40
[ "Apache-2.0" ]
null
null
null
import torch class RankSort(torch.autograd.Function): @staticmethod def forward(ctx, logits, targets, delta_RS=0.50, eps=1e-10): classification_grads=torch.zeros(logits.shape).cuda() #Filter fg logits fg_labels = (targets > 0.) fg_logits = logits[fg_labels] fg_targets = targets[fg_labels] fg_num = l...
35.198381
96
0.743961
1,362
8,694
4.533774
0.133627
0.046964
0.022672
0.021862
0.711903
0.680324
0.660891
0.632065
0.597085
0.58753
0
0.011546
0.163216
8,694
246
97
35.341463
0.837251
0.320451
0
0.58209
0
0
0
0
0
0
0
0
0
1
0.044776
false
0
0.007463
0
0.119403
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
1314a6b3e97ad080ab7cf47017455ad35f9e033a
34,521
py
Python
maint/MultiStage2.py
Liastre/pcre2
ca4fd145ee16acbc67b52b8563ab6e25c67ddfc8
[ "BSD-3-Clause" ]
null
null
null
maint/MultiStage2.py
Liastre/pcre2
ca4fd145ee16acbc67b52b8563ab6e25c67ddfc8
[ "BSD-3-Clause" ]
1
2020-04-07T10:42:22.000Z
2020-04-07T10:42:22.000Z
maint/MultiStage2.py
Liastre/pcre2
ca4fd145ee16acbc67b52b8563ab6e25c67ddfc8
[ "BSD-3-Clause" ]
null
null
null
#! /usr/bin/python # Multistage table builder # (c) Peter Kankowski, 2008 ############################################################################## # This script was submitted to the PCRE project by Peter Kankowski as part of # the upgrading of Unicode property support. The new code speeds up property # matching...
42.72401
143
0.625648
4,909
34,521
4.31208
0.218578
0.01318
0.012283
0.005716
0.17295
0.128968
0.078468
0.061177
0.050548
0.045682
0
0.035126
0.239651
34,521
807
144
42.776952
0.771335
0.383564
0
0.207459
0
0.004662
0.325809
0.035675
0
0
0.00131
0
0.002331
1
0.027972
false
0
0.006993
0.002331
0.062937
0.265734
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1314ffbb2b5a881e8cbdb62ecc8a53c659f4f382
638
py
Python
setup.py
ihayhurst/RetroBioCat
d674897459c0ab65faad5ed3017c55cf51bcc020
[ "MIT" ]
9
2020-12-01T16:33:02.000Z
2022-01-19T20:02:42.000Z
setup.py
ihayhurst/RetroBioCat
d674897459c0ab65faad5ed3017c55cf51bcc020
[ "MIT" ]
4
2020-10-02T14:38:32.000Z
2021-08-02T09:23:58.000Z
setup.py
ihayhurst/RetroBioCat
d674897459c0ab65faad5ed3017c55cf51bcc020
[ "MIT" ]
6
2021-01-14T07:48:36.000Z
2022-03-20T17:34:27.000Z
from setuptools import setup, find_packages from retrobiocat_web import __version__ with open('requirements.txt') as f: requirements = f.read().splitlines() setup( name = 'retrobiocat_web', packages = find_packages(), include_package_data=True, version = __version__, license='', description = 'Retrosynt...
26.583333
45
0.694357
67
638
6.358209
0.731343
0.056338
0
0
0
0
0
0
0
0
0
0.003788
0.172414
638
24
46
26.583333
0.80303
0
0
0
0
0
0.300469
0.032864
0
0
0
0
0
1
0
false
0
0.090909
0
0.090909
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
131631df01aa9316264d6c8b1aaa6ecfd1254785
1,748
py
Python
rxn_yield_context/preprocess_data/preprocess/augmentation_utils.py
Lung-Yi/rxn_yield_context
116d6f21a1b6dc39016d87c001dc5b142cfb697a
[ "MIT" ]
null
null
null
rxn_yield_context/preprocess_data/preprocess/augmentation_utils.py
Lung-Yi/rxn_yield_context
116d6f21a1b6dc39016d87c001dc5b142cfb697a
[ "MIT" ]
null
null
null
rxn_yield_context/preprocess_data/preprocess/augmentation_utils.py
Lung-Yi/rxn_yield_context
116d6f21a1b6dc39016d87c001dc5b142cfb697a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import pickle import numpy as np from rdkit import Chem from rdkit.Chem import AllChem,DataStructs def get_classes(path): f = open(path, 'rb') dict_ = pickle.load(f) f.close() classes = sorted(dict_.items(), key=lambda d: d[1],reverse=True) classes = [(x,y) fo...
33.615385
140
0.642449
217
1,748
5.105991
0.400922
0.054152
0.061372
0.064982
0.430505
0.409747
0.373646
0.274368
0.274368
0.274368
0
0.016204
0.258581
1,748
52
141
33.615385
0.838735
0.065217
0
0.363636
0
0
0.058824
0
0
0
0
0
0
1
0.045455
false
0
0.090909
0
0.272727
0.113636
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
131665ba7b9465c31b9a3f7865c4b018c27a3aec
6,434
py
Python
src/webstruct-demo/__init__.py
zanachka/webstruct-demo
f5b5081760d9a2b7924704041cd74748a5c98664
[ "MIT" ]
5
2019-04-15T14:54:23.000Z
2020-10-03T04:47:12.000Z
src/webstruct-demo/__init__.py
zanachka/webstruct-demo
f5b5081760d9a2b7924704041cd74748a5c98664
[ "MIT" ]
2
2021-06-01T22:49:44.000Z
2021-12-13T19:51:11.000Z
src/webstruct-demo/__init__.py
zanachka/webstruct-demo
f5b5081760d9a2b7924704041cd74748a5c98664
[ "MIT" ]
3
2019-06-25T10:31:30.000Z
2020-10-03T04:49:01.000Z
import functools import logging import random from flask import Flask, render_template, request import joblib from lxml.html import html5parser import lxml.html import requests import yarl import webstruct.model import webstruct.sequence_encoding import webstruct.webannotator webstruct_demo = Flask(__name__, instan...
28.981982
121
0.617656
766
6,434
5.002611
0.224543
0.025574
0.024791
0.02714
0.161273
0.10334
0.084551
0.084551
0.066806
0.066806
0
0.004483
0.271993
6,434
221
122
29.113122
0.813621
0
0
0.192771
0
0
0.061859
0
0
0
0
0
0
1
0.060241
false
0.018072
0.072289
0
0.240964
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
13178607e92d499e0a8fa091130826ae93f57d37
757
py
Python
setup.py
Liang813/einops
9edce3d9a2d0a2abc51a6aaf86678eac43ffac0c
[ "MIT" ]
4,738
2018-10-30T08:38:50.000Z
2022-03-31T17:35:50.000Z
setup.py
Liang813/einops
9edce3d9a2d0a2abc51a6aaf86678eac43ffac0c
[ "MIT" ]
120
2018-10-30T09:04:01.000Z
2022-03-27T11:27:30.000Z
setup.py
Liang813/einops
9edce3d9a2d0a2abc51a6aaf86678eac43ffac0c
[ "MIT" ]
216
2018-11-09T02:50:30.000Z
2022-03-30T05:46:44.000Z
__author__ = 'Alex Rogozhnikov' from setuptools import setup setup( name="einops", version='0.3.2', description="A new flavour of deep learning operations", long_description=open('README.md', encoding='utf-8').read(), long_description_content_type='text/markdown', url='https://github.com/arogo...
29.115385
86
0.668428
80
757
6.2125
0.8
0.040241
0.084507
0
0
0
0
0
0
0
0
0.008278
0.202114
757
25
87
30.28
0.81457
0.059445
0
0.1
0
0
0.483099
0
0
0
0
0
0
1
0
false
0
0.05
0
0.05
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
1317fa461eecfb928fe1d73e0f3c19ec9defb396
14,667
py
Python
ldp/tasks/dlp.py
evandez/low-dimensional-probing
3e4af6644a4db7fdf48bc40c5de4815f9db52a6e
[ "MIT" ]
1
2022-03-06T06:59:42.000Z
2022-03-06T06:59:42.000Z
ldp/tasks/dlp.py
evandez/low-dimensional-probing
3e4af6644a4db7fdf48bc40c5de4815f9db52a6e
[ "MIT" ]
null
null
null
ldp/tasks/dlp.py
evandez/low-dimensional-probing
3e4af6644a4db7fdf48bc40c5de4815f9db52a6e
[ "MIT" ]
null
null
null
"""Core experiments for the dependency label prediction task.""" import collections import copy import logging from typing import (Any, Dict, Iterator, Optional, Sequence, Set, Tuple, Type, Union) from ldp import datasets, learning from ldp.models import probes, projections from ldp.parse import pt...
38.395288
79
0.614986
1,733
14,667
5.128679
0.201962
0.013614
0.020477
0.011026
0.227385
0.199145
0.169442
0.135239
0.118587
0.118587
0
0.00272
0.29822
14,667
381
80
38.496063
0.860779
0.380991
0
0.169312
0
0
0.047956
0.002638
0
0
0
0.002625
0.031746
1
0.084656
false
0
0.063492
0
0.227513
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
1318a68dfab5df9c8cd4a02ab91e86cccb7f469d
23,613
py
Python
pycquery_krb/common/ccache.py
naver/PyCQuery
a72f74f9b7c208a263fc7cdb14a30d0fe21e63b9
[ "Apache-2.0" ]
2
2021-11-17T03:13:16.000Z
2021-12-03T05:30:22.000Z
pycquery_krb/common/ccache.py
naver/PyCQuery
a72f74f9b7c208a263fc7cdb14a30d0fe21e63b9
[ "Apache-2.0" ]
1
2021-05-04T06:02:40.000Z
2021-05-04T06:02:40.000Z
pycquery_krb/common/ccache.py
naver/PyCQuery
a72f74f9b7c208a263fc7cdb14a30d0fe21e63b9
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # # Author: # Tamas Jos (@skelsec) # import os import io import datetime import glob import hashlib from pycquery_krb.protocol.asn1_structs import Ticket, EncryptedData, \ krb5_pvno, KrbCredInfo, EncryptionKey, KRBCRED, TicketFlags, EncKrbCredPart from pycquery_krb.common.utils import dt_to_k...
31.909459
151
0.707915
3,534
23,613
4.574986
0.106395
0.021215
0.046759
0.059748
0.509278
0.419718
0.357806
0.311541
0.285007
0.234537
0
0.010742
0.152374
23,613
739
152
31.952639
0.797052
0.12256
0
0.327172
0
0
0.064923
0.0052
0
0
0.000297
0
0
1
0.121996
false
0
0.018484
0.011091
0.253235
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
131ada8dd58eaa29a8303d1a7138ffe5d3485877
6,861
py
Python
src/tracks/settings.py
adcarmichael/tracks
04108bbdaf8554e57e278c1556efa9c5b9603973
[ "Apache-2.0" ]
null
null
null
src/tracks/settings.py
adcarmichael/tracks
04108bbdaf8554e57e278c1556efa9c5b9603973
[ "Apache-2.0" ]
41
2019-06-14T21:19:31.000Z
2022-02-10T14:41:00.000Z
src/tracks/settings.py
adcarmichael/tracks
04108bbdaf8554e57e278c1556efa9c5b9603973
[ "Apache-2.0" ]
null
null
null
import os import sentry_sdk from sentry_sdk.integrations.django import DjangoIntegration # Build paths inside the project like this: os.path.join(BASE_DIR, ...) BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) PWA_SERVICE_WORKER_PATH = os.path.join( BASE_DIR, 'routes/static/routes/js', 'serv...
28.5875
91
0.655735
746
6,861
5.836461
0.353887
0.050758
0.041341
0.020671
0.215893
0.176849
0.120808
0.107487
0.107487
0.078548
0
0.022198
0.192392
6,861
239
92
28.707113
0.763581
0.189768
0
0.095808
0
0
0.472388
0.28499
0
0
0
0
0
1
0
false
0.041916
0.017964
0
0.017964
0.005988
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
131b0afb1746ef9363aae186aba698e6731a895a
2,647
py
Python
examples/04-lights/plotter_builtins.py
akeshavan/pyvista
45fe8b1c38712776f9b628a60a8662d0716dd52b
[ "MIT" ]
null
null
null
examples/04-lights/plotter_builtins.py
akeshavan/pyvista
45fe8b1c38712776f9b628a60a8662d0716dd52b
[ "MIT" ]
6
2022-03-11T23:21:22.000Z
2022-03-25T03:32:21.000Z
examples/04-lights/plotter_builtins.py
akeshavan/pyvista
45fe8b1c38712776f9b628a60a8662d0716dd52b
[ "MIT" ]
null
null
null
""" Plotter Lighting Systems ~~~~~~~~~~~~~~~~~~~~~~~~ The :class:`pyvista.Plotter` class comes with three options for the default lighting system: * a light kit consisting of a headlight and four camera lights, * an illumination system containing three lights arranged around the camera, * no lighting. With mes...
30.77907
79
0.66377
336
2,647
5.160714
0.443452
0.031719
0.046136
0.031142
0.258362
0.258362
0.201845
0.201845
0.156863
0.156863
0
0.001731
0.126936
2,647
85
80
31.141176
0.748594
0.572346
0
0.695652
0
0
0.054499
0
0
0
0
0
0
1
0
false
0
0.086957
0
0.086957
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
131c13cd6c6c6b833141fea96f58ed4c3b53dc38
272
py
Python
src/swimport/tests/15_char_arrays/main.py
talos-gis/swimport
e8f0fcf02b0c9751b199f750f1f8bc57c8ff54b3
[ "MIT" ]
1
2019-03-07T20:43:42.000Z
2019-03-07T20:43:42.000Z
src/swimport/tests/15_char_arrays/main.py
talos-gis/swimport
e8f0fcf02b0c9751b199f750f1f8bc57c8ff54b3
[ "MIT" ]
null
null
null
src/swimport/tests/15_char_arrays/main.py
talos-gis/swimport
e8f0fcf02b0c9751b199f750f1f8bc57c8ff54b3
[ "MIT" ]
null
null
null
from swimport.all import * src = FileSource('src.h') swim = Swim('example') swim(pools.c_string) swim(pools.numpy_arrays(r"../resources", allow_char_arrays=True)) swim(pools.include(src)) assert swim(Function.Behaviour()(src)) > 0 swim.write('example.i') print('ok!')
19.428571
65
0.720588
41
272
4.682927
0.682927
0.140625
0
0
0
0
0
0
0
0
0
0.004032
0.088235
272
14
66
19.428571
0.770161
0
0
0
0
0
0.131868
0
0
0
0
0
0.111111
1
0
false
0
0.111111
0
0.111111
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
131c14184c1fb810c136590d143d0fdf3f83e6df
4,523
py
Python
ipyvolume/astro.py
larsoner/ipyvolume
8603a47aff4531df69ace44efdcf6b85d6e51e51
[ "MIT" ]
1
2019-04-09T11:57:07.000Z
2019-04-09T11:57:07.000Z
ipyvolume/astro.py
larsoner/ipyvolume
8603a47aff4531df69ace44efdcf6b85d6e51e51
[ "MIT" ]
null
null
null
ipyvolume/astro.py
larsoner/ipyvolume
8603a47aff4531df69ace44efdcf6b85d6e51e51
[ "MIT" ]
null
null
null
import numpy as np import PIL.Image import pythreejs import ipyvolume as ipv from .datasets import UrlCached def _randomSO3(): """return random rotatation matrix, algo by James Arvo""" u1 = np.random.random() u2 = np.random.random() u3 = np.random.random() R = np.array([[np.cos(2*np.pi*u1), np.si...
41.118182
198
0.640946
721
4,523
3.898752
0.245492
0.021345
0.012451
0.025614
0.283885
0.154749
0.076485
0.051227
0.039132
0.039132
0
0.045894
0.20031
4,523
110
199
41.118182
0.731269
0.033827
0
0.021505
0
0
0.029594
0
0
0
0
0
0
1
0.053763
false
0
0.075269
0
0.182796
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
131e1d61812e10d7ea42b3ca418199cd229845a3
1,157
py
Python
deepfunning/function.py
Zrealshadow/DeepFunning
5c44210a6b30ea57a0be5f930da4ada540e7e3d0
[ "MIT" ]
null
null
null
deepfunning/function.py
Zrealshadow/DeepFunning
5c44210a6b30ea57a0be5f930da4ada540e7e3d0
[ "MIT" ]
null
null
null
deepfunning/function.py
Zrealshadow/DeepFunning
5c44210a6b30ea57a0be5f930da4ada540e7e3d0
[ "MIT" ]
null
null
null
''' * @author Waldinsamkeit * @email Zenglz_pro@163.com * @create date 2020-09-25 14:33:38 * @desc ''' import torch '''--------------------- Weighted Binary cross Entropy ----------------------''' ''' In Torch BCELoss, weight is set to every element of input instead of to every class ''' def weighted_binary_cr...
28.925
84
0.577355
161
1,157
4.055901
0.453416
0.053599
0.085758
0.068913
0.067381
0.067381
0
0
0
0
0
0.041304
0.20484
1,157
39
85
29.666667
0.668478
0.081245
0
0
0
0
0
0
0
0
0
0
0.071429
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
131e36d011ba94f7784c802143deb17326553c0e
7,055
py
Python
dlms_cosem/hdlc/address.py
pwitab/dlms-cosem
aa9e18e6ef8a4fee30da8b797dad03b0b7847780
[ "MIT" ]
35
2018-05-24T08:16:35.000Z
2022-02-24T16:07:07.000Z
dlms_cosem/hdlc/address.py
Layty/dlms-cosem
95b67054a1dfb928e960547b0246b7b6794f0594
[ "MIT" ]
41
2020-12-18T16:31:40.000Z
2021-12-13T20:59:42.000Z
dlms_cosem/hdlc/address.py
Layty/dlms-cosem
95b67054a1dfb928e960547b0246b7b6794f0594
[ "MIT" ]
19
2019-04-02T14:32:01.000Z
2021-12-14T13:24:29.000Z
from typing import * import attr from dlms_cosem.hdlc import validators @attr.s(auto_attribs=True) class HdlcAddress: """ A client address shall always be expressed on one byte. To enable addressing more than one logical device within a single physical device and to support the multi-drop configurat...
36.554404
88
0.624522
822
7,055
5.113139
0.180049
0.059957
0.029979
0.031644
0.402332
0.316916
0.265287
0.265287
0.157507
0.089936
0
0.031199
0.300354
7,055
192
89
36.744792
0.820097
0.152516
0
0.176923
0
0
0.009955
0
0
0
0
0
0
1
0.061538
false
0
0.023077
0.007692
0.176923
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
131e68c02091db60b313cb5f13708b590b55dc83
3,676
py
Python
benchmarks/benchmarks/stats.py
RasmusSemmle/scipy
4ffeafe269597e6d41b3335549102cd5611b12cb
[ "FSFAP" ]
1
2019-04-13T01:41:50.000Z
2019-04-13T01:41:50.000Z
benchmarks/benchmarks/stats.py
RasmusSemmle/scipy
4ffeafe269597e6d41b3335549102cd5611b12cb
[ "FSFAP" ]
1
2018-10-16T01:50:18.000Z
2018-10-16T01:50:18.000Z
benchmarks/benchmarks/stats.py
RasmusSemmle/scipy
4ffeafe269597e6d41b3335549102cd5611b12cb
[ "FSFAP" ]
null
null
null
from __future__ import division, absolute_import, print_function import warnings import numpy as np try: import scipy.stats as stats except ImportError: pass from .common import Benchmark class Anderson_KSamp(Benchmark): def setup(self, *args): self.rand = [np.random.normal(loc=i, size=1000) fo...
32.530973
98
0.596572
473
3,676
4.556025
0.236786
0.045476
0.050116
0.061253
0.353596
0.304408
0.284919
0.192575
0.107193
0.07471
0
0.058757
0.273123
3,676
112
99
32.821429
0.747754
0.044614
0
0.211765
0
0
0.059595
0.018249
0
0
0
0
0
1
0.129412
false
0.011765
0.070588
0
0.329412
0.011765
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1325fa5a7b424ce8ba5d22a0e7ac2e6be5ce3b49
9,890
py
Python
docs/schema_mapping.py
NoAnyLove/pydantic
50fd2c5b48ffe611b5c4feb24f26f7202217faab
[ "MIT" ]
1
2020-11-01T00:04:04.000Z
2020-11-01T00:04:04.000Z
docs/schema_mapping.py
NoAnyLove/pydantic
50fd2c5b48ffe611b5c4feb24f26f7202217faab
[ "MIT" ]
null
null
null
docs/schema_mapping.py
NoAnyLove/pydantic
50fd2c5b48ffe611b5c4feb24f26f7202217faab
[ "MIT" ]
1
2021-03-02T02:49:05.000Z
2021-03-02T02:49:05.000Z
#!/usr/bin/env python3 """ Build a table of Python / Pydantic to JSON Schema mappings. Done like this rather than as a raw rst table to make future edits easier. Please edit this file directly not .tmp_schema_mappings.rst """ table = [ [ 'bool', 'boolean', '', 'JSON Schema Core', ...
23.491686
120
0.458544
873
9,890
5.174112
0.258877
0.090768
0.092982
0.102944
0.43768
0.366394
0.330529
0.303299
0.288466
0.288466
0
0.010464
0.381598
9,890
420
121
23.547619
0.72809
0.022042
0
0.536765
0
0.014706
0.529077
0.004967
0.007353
0
0
0
0
1
0
false
0.009804
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
13261dbcef738304d7319335d93a1caa3393465f
2,798
py
Python
hubspot3/test/test_broadcast.py
kevin2357/hubspot3
488f6ff4195034317d99431439087443bca1469f
[ "MIT" ]
1
2019-02-25T01:09:51.000Z
2019-02-25T01:09:51.000Z
hubspot3/test/test_broadcast.py
kevin2357/hubspot3
488f6ff4195034317d99431439087443bca1469f
[ "MIT" ]
null
null
null
hubspot3/test/test_broadcast.py
kevin2357/hubspot3
488f6ff4195034317d99431439087443bca1469f
[ "MIT" ]
null
null
null
import time import unittest from nose.plugins.attrib import attr from hubspot3.test import helper from hubspot3.broadcast import Broadcast, BroadcastClient class BroadcastClientTest(unittest.TestCase): """ Unit tests for the HubSpot Broadcast API Python client. This file contains some unittest tests for the ...
34.121951
78
0.651537
318
2,798
5.606918
0.396226
0.03926
0.050477
0.023556
0.063937
0.044868
0.044868
0
0
0
0
0.011063
0.256969
2,798
81
79
34.54321
0.846561
0.162974
0
0.055556
0
0
0.092401
0
0
0
0
0
0.148148
1
0.092593
false
0
0.092593
0
0.203704
0.018519
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1326b5cc799b2031e2e9803af2d0899c97761474
5,166
py
Python
benchmark/benchmarks/testdata.py
theroggy/geofile_ops
1b5ab42169d5c3332c0d8298c5a036257cfd68d5
[ "BSD-3-Clause" ]
null
null
null
benchmark/benchmarks/testdata.py
theroggy/geofile_ops
1b5ab42169d5c3332c0d8298c5a036257cfd68d5
[ "BSD-3-Clause" ]
26
2021-12-01T07:46:53.000Z
2022-03-30T23:40:43.000Z
benchmark/benchmarks/testdata.py
theroggy/geofile_ops
1b5ab42169d5c3332c0d8298c5a036257cfd68d5
[ "BSD-3-Clause" ]
1
2021-11-30T17:51:34.000Z
2021-11-30T17:51:34.000Z
# -*- coding: utf-8 -*- """ Module to prepare test data for benchmarking geo operations. """ import enum import logging from pathlib import Path import pprint import shutil import sys import tempfile from typing import Optional import urllib.request import zipfile # Add path so the benchmark packages are found sys.pa...
34.44
196
0.587108
630
5,166
4.625397
0.288889
0.04324
0.0151
0.025738
0.184626
0.138298
0.107756
0.043926
0
0
0
0.016918
0.267712
5,166
149
197
34.671141
0.75337
0.202284
0
0.111111
0
0.011111
0.218943
0.031661
0
0
0
0
0
1
0.044444
false
0
0.122222
0
0.266667
0.022222
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
132764a2c0f4e72e8781ad3a0b75e85eb885eb90
12,911
py
Python
python-client/trustedanalytics/core/atktypes.py
blbarker/atk
bcb747d053e801820233a6439c88a457c8cf2438
[ "Apache-2.0" ]
1
2016-04-05T21:57:16.000Z
2016-04-05T21:57:16.000Z
python-client/trustedanalytics/core/atktypes.py
blbarker/atk
bcb747d053e801820233a6439c88a457c8cf2438
[ "Apache-2.0" ]
null
null
null
python-client/trustedanalytics/core/atktypes.py
blbarker/atk
bcb747d053e801820233a6439c88a457c8cf2438
[ "Apache-2.0" ]
null
null
null
# vim: set encoding=utf-8 # # Copyright (c) 2015 Intel Corporation  # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # #       http://www.apache.org/licenses/LICENSE-2.0 # # Unless requi...
31.036058
191
0.629386
1,609
12,911
4.830329
0.196395
0.055584
0.019815
0.01544
0.265183
0.212429
0.16405
0.141662
0.09264
0.070767
0
0.014162
0.283557
12,911
415
192
31.110843
0.826054
0.293471
0
0.300926
0
0
0.05398
0
0
0
0
0.004819
0
1
0.134259
false
0.013889
0.023148
0.041667
0.421296
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
132884f1556370e07396101f0cb65bd3696963c4
6,530
py
Python
srd/pageaggregator.py
poikilos/tabletopManualMiner
94a824feabdf0a8efa1bf28670af44820aff9923
[ "MIT" ]
null
null
null
srd/pageaggregator.py
poikilos/tabletopManualMiner
94a824feabdf0a8efa1bf28670af44820aff9923
[ "MIT" ]
null
null
null
srd/pageaggregator.py
poikilos/tabletopManualMiner
94a824feabdf0a8efa1bf28670af44820aff9923
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import math try: # from PDFPageDetailedAggregator: from pdfminer.pdfdocument import PDFDocument, PDFNoOutlines from pdfminer.pdfparser import PDFParser from pdfminer.pdfinterp import PDFResourceManager, PDFPageInterpreter from pdfminer.converter import PDFPageAggregator ...
36.077348
91
0.467994
568
6,530
5.306338
0.318662
0.021234
0.019907
0.013935
0.091573
0.091573
0.050431
0.050431
0.027206
0.027206
0
0.014963
0.44732
6,530
180
92
36.277778
0.820172
0.072435
0
0.168142
0
0
0.048513
0
0
0
0
0.005556
0
1
0.035398
false
0.00885
0.061947
0.00885
0.123894
0.00885
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1328be197a55352f7669047e01b9ed9e941d72e5
1,131
py
Python
ctrltest.py
dkim286/cpsc454-proj
16314802bae3cfbd4d1bf6d7f75a9e6adeb6700d
[ "FTL", "CNRI-Python" ]
null
null
null
ctrltest.py
dkim286/cpsc454-proj
16314802bae3cfbd4d1bf6d7f75a9e6adeb6700d
[ "FTL", "CNRI-Python" ]
null
null
null
ctrltest.py
dkim286/cpsc454-proj
16314802bae3cfbd4d1bf6d7f75a9e6adeb6700d
[ "FTL", "CNRI-Python" ]
null
null
null
from pox.core import core import pox.openflow.libopenflow_01 as of from forwarding.l2_learning import * from tkinter import * from project.firewall import TestFW from project.ui import UI def setup(): top = Toplevel() # quit POX when window is killed top.protocol("WM_DELETE_WINDOW", core.quit) t...
23.5625
82
0.654288
162
1,131
4.462963
0.475309
0.041494
0.045643
0.058091
0
0
0
0
0
0
0
0.028058
0.212202
1,131
47
83
24.06383
0.783389
0.096375
0
0
0
0
0.06588
0
0
0
0
0
0
1
0.153846
false
0
0.230769
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
1328eb00ae7fa054c34be04f558ebc32d9e45ce4
10,911
py
Python
image_classification/T2T_ViT/load_pytorch_weights.py
RangeKing/PaddleViT
0e25958686e04ed8872cf67fba0dfd6918e9b4dd
[ "Apache-2.0" ]
null
null
null
image_classification/T2T_ViT/load_pytorch_weights.py
RangeKing/PaddleViT
0e25958686e04ed8872cf67fba0dfd6918e9b4dd
[ "Apache-2.0" ]
null
null
null
image_classification/T2T_ViT/load_pytorch_weights.py
RangeKing/PaddleViT
0e25958686e04ed8872cf67fba0dfd6918e9b4dd
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021 PPViT Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
38.284211
93
0.563926
1,475
10,911
3.871864
0.154576
0.048328
0.029942
0.026966
0.421993
0.389074
0.345474
0.257748
0.22693
0.199265
0
0.026944
0.285675
10,911
284
94
38.419014
0.705799
0.089268
0
0.257919
0
0
0.263801
0.141689
0
0
0
0
0.004525
1
0.027149
false
0
0.040724
0
0.076923
0.122172
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
132a98c8a3d62474bea30c75b83e6ea4827d2ca4
265
py
Python
examples/get_message.py
NeroAsmarr/fz-api
d688277b4c616e93c809381ab082cba834964681
[ "MIT" ]
71
2019-12-04T03:58:33.000Z
2022-03-19T11:38:54.000Z
examples/get_message.py
NeroAsmarr/fz-api
d688277b4c616e93c809381ab082cba834964681
[ "MIT" ]
6
2020-01-03T09:56:45.000Z
2022-03-10T09:29:04.000Z
examples/get_message.py
NeroAsmarr/fz-api
d688277b4c616e93c809381ab082cba834964681
[ "MIT" ]
12
2019-11-23T03:37:39.000Z
2021-08-15T09:41:21.000Z
# 获取调课、改课通知例子 from zfnew import GetInfo, Login base_url = '学校教务系统的主页url' lgn = Login(base_url=base_url) lgn.login('账号', '密码') cookies = lgn.cookies # cookies获取方法 person = GetInfo(base_url=base_url, cookies=cookies) message = person.get_message() print(message)
20.384615
52
0.754717
38
265
5.105263
0.5
0.180412
0.123711
0.14433
0
0
0
0
0
0
0
0
0.120755
265
12
53
22.083333
0.832618
0.086792
0
0
0
0
0.066946
0
0
0
0
0
0
1
0
false
0
0.125
0
0.125
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
132acdacf1ba08411631ef7d5debcacf7e313231
1,030
py
Python
input/gera_entradas.py
AtilioA/Sort-merge-join
6ed3199aada921973833cafffc8cbde5062b76fb
[ "Unlicense" ]
null
null
null
input/gera_entradas.py
AtilioA/Sort-merge-join
6ed3199aada921973833cafffc8cbde5062b76fb
[ "Unlicense" ]
null
null
null
input/gera_entradas.py
AtilioA/Sort-merge-join
6ed3199aada921973833cafffc8cbde5062b76fb
[ "Unlicense" ]
null
null
null
import sys import random from faker import Faker def gera(nLinhas=100, nCampos=None): with open(f"{path}/file{nLinhas}-{nCampos}_python.txt", "w+", encoding="utf8") as file: if not nCampos: nCampos = random.randint(2, 10) camposFuncs = [ fake.name, fake.date, ...
23.953488
91
0.523301
116
1,030
4.508621
0.517241
0.068834
0.038241
0.080306
0
0
0
0
0
0
0
0.035608
0.345631
1,030
42
92
24.52381
0.740356
0
0
0
0
0
0.104854
0.039806
0
0
0
0
0
1
0.029412
false
0
0.088235
0
0.117647
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
132ade11b48d56eee57560835a5c3f4f30719ed6
1,639
py
Python
lessons 20/HomeWork/task9.py
zainllw0w/skillbox
896287b6f7f5612cf589094131fd1a12b0b192ba
[ "MIT" ]
null
null
null
lessons 20/HomeWork/task9.py
zainllw0w/skillbox
896287b6f7f5612cf589094131fd1a12b0b192ba
[ "MIT" ]
null
null
null
lessons 20/HomeWork/task9.py
zainllw0w/skillbox
896287b6f7f5612cf589094131fd1a12b0b192ba
[ "MIT" ]
null
null
null
def sort(data, time): tt = False ft = True st = False is_find = True winers_name = set() index = 0 while is_find: index += 1 for key, values in data.items(): if time[0 - index] == int(values[1]) and ft and values[0] not in winers_name: first_id = k...
32.78
90
0.534472
241
1,639
3.510373
0.273859
0.07565
0.042553
0.046099
0.387707
0.364066
0.307329
0.191489
0.078014
0.078014
0
0.027372
0.3313
1,639
50
91
32.78
0.744526
0
0
0.111111
0
0
0.092073
0
0
0
0
0
0
1
0.022222
false
0
0
0
0.044444
0.088889
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
132c604ed66d104dc1d0fc33432f244eb013965a
7,620
py
Python
esm/model.py
crochereau/esm
881a3b924d3f74e3cddeb6929e91ee7224ef2ebd
[ "MIT" ]
1
2021-01-21T17:54:20.000Z
2021-01-21T17:54:20.000Z
esm/model.py
crochereau/esm
881a3b924d3f74e3cddeb6929e91ee7224ef2ebd
[ "MIT" ]
null
null
null
esm/model.py
crochereau/esm
881a3b924d3f74e3cddeb6929e91ee7224ef2ebd
[ "MIT" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import math import torch import torch.nn as nn import torch.nn.functional as F from .modules import ( TransformerLayer, LearnedPosit...
38.1
121
0.600656
927
7,620
4.702265
0.206041
0.038541
0.026841
0.033035
0.283092
0.177564
0.14407
0.086717
0.051847
0.051847
0
0.013564
0.293701
7,620
199
122
38.291457
0.796358
0.065879
0
0.169811
0
0
0.043931
0
0
0
0
0
0.006289
1
0.056604
false
0
0.031447
0.012579
0.119497
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
132d17111128f658179267c44013a769265d45f3
3,392
py
Python
python/tink/aead/kms_envelope_aead.py
bfloch/tink
aac780590902f726a8e7d6c4e3aa1cd75f4b0ed5
[ "Apache-2.0" ]
null
null
null
python/tink/aead/kms_envelope_aead.py
bfloch/tink
aac780590902f726a8e7d6c4e3aa1cd75f4b0ed5
[ "Apache-2.0" ]
null
null
null
python/tink/aead/kms_envelope_aead.py
bfloch/tink
aac780590902f726a8e7d6c4e3aa1cd75f4b0ed5
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Google LLC. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
36.085106
79
0.740861
502
3,392
4.844622
0.328685
0.034539
0.031661
0.01727
0.099918
0.058388
0.058388
0.032072
0
0
0
0.006541
0.188679
3,392
93
80
36.473118
0.87718
0.479068
0
0.114286
0
0
0.002381
0
0
0
0
0
0
1
0.085714
false
0
0.2
0
0.371429
0.028571
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
132da230699a189c6467f4c2e09699a5bd87f139
2,168
py
Python
tests/pyb/can.py
LabAixBidouille/micropython
11aa6ba456287d6c80598a7ebbebd2887ce8f5a2
[ "MIT" ]
null
null
null
tests/pyb/can.py
LabAixBidouille/micropython
11aa6ba456287d6c80598a7ebbebd2887ce8f5a2
[ "MIT" ]
null
null
null
tests/pyb/can.py
LabAixBidouille/micropython
11aa6ba456287d6c80598a7ebbebd2887ce8f5a2
[ "MIT" ]
null
null
null
from pyb import CAN CAN.initfilterbanks(14) can = CAN(1) print(can) can.init(CAN.LOOPBACK) print(can) print(can.any(0)) # Catch all filter can.setfilter(0, CAN.MASK16, 0, (0, 0, 0, 0)) can.send('abcd', 123) print(can.any(0)) print(can.recv(0)) can.send('abcd', -1) print(can.recv(0)) can.send('abcd', 0x7FF + 1) pr...
17.626016
45
0.600092
339
2,168
3.837758
0.224189
0.098386
0.10146
0.069946
0.472713
0.392775
0.357417
0.274404
0.233666
0.233666
0
0.107351
0.20941
2,168
122
46
17.770492
0.651692
0.042897
0
0.612903
0
0
0.121857
0
0
0
0.009671
0
0
1
0.043011
false
0.021505
0.010753
0
0.053763
0.397849
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0