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
e67c4fd8a3c5596d48b8a646fabb758b7a09bb66
6,909
py
Python
electrum_zcash/tests/test_network.py
zebra-lucky/electrum-zcash
2e66d47fa043d8c5ea536cd27a09dfb9e4ec314b
[ "MIT" ]
11
2018-08-06T22:37:42.000Z
2021-09-19T12:44:16.000Z
electrum_zcash/tests/test_network.py
zebra-lucky/electrum-zcash
2e66d47fa043d8c5ea536cd27a09dfb9e4ec314b
[ "MIT" ]
9
2019-04-28T18:33:24.000Z
2021-07-12T07:17:48.000Z
electrum_zcash/tests/test_network.py
zebra-lucky/electrum-zcash
2e66d47fa043d8c5ea536cd27a09dfb9e4ec314b
[ "MIT" ]
14
2018-04-29T16:30:44.000Z
2022-03-25T13:42:40.000Z
import asyncio import tempfile import unittest from electrum_zcash import constants from electrum_zcash.simple_config import SimpleConfig from electrum_zcash import blockchain from electrum_zcash.interface import Interface, ServerAddr from electrum_zcash.crypto import sha256 from electrum_zcash.util import bh2u from ...
56.170732
155
0.656245
901
6,909
4.865705
0.127636
0.065465
0.089416
0.093066
0.658531
0.645529
0.625
0.617016
0.607208
0.606524
0
0.016283
0.182226
6,909
122
156
56.631148
0.759646
0
0
0.352381
0
0
0.142278
0
0
0
0
0
0.114286
1
0.114286
false
0
0.095238
0.028571
0.314286
0.009524
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e6895df4a9bb153f7aaf562ae896d1aa0241fa14
4,246
py
Python
code/python/image_aug.py
tianchuliang/my_sunset_net
bbd3eed9447b90839a964406c39416857640d5d2
[ "MIT" ]
null
null
null
code/python/image_aug.py
tianchuliang/my_sunset_net
bbd3eed9447b90839a964406c39416857640d5d2
[ "MIT" ]
null
null
null
code/python/image_aug.py
tianchuliang/my_sunset_net
bbd3eed9447b90839a964406c39416857640d5d2
[ "MIT" ]
null
null
null
#Author: Tianchu Liang #Purpose: ''' This script reads a directory of images and : 1. Save all images to another directory and among the images in the new directory, randomly sampled 50 percent will be picked and mirrored; the mirrored images are additional images in the directory 2. In the new directory,...
34.520325
105
0.697833
622
4,246
4.654341
0.21865
0.107772
0.058031
0.046978
0.487047
0.44905
0.425561
0.425561
0.425561
0.425561
0
0.018559
0.13707
4,246
123
106
34.520325
0.771561
0.086905
0
0.5
0
0
0.121739
0
0
0
0
0
0
0
null
null
0
0.079545
null
null
0.045455
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
e68b2c0377410fabcb770890098de7e0dcb86083
6,930
py
Python
lvq/silvq.py
manome/python-silvq
b50d7486e970fbe9a5b66dd3fc5beb8b5de8ca2f
[ "BSD-3-Clause" ]
null
null
null
lvq/silvq.py
manome/python-silvq
b50d7486e970fbe9a5b66dd3fc5beb8b5de8ca2f
[ "BSD-3-Clause" ]
null
null
null
lvq/silvq.py
manome/python-silvq
b50d7486e970fbe9a5b66dd3fc5beb8b5de8ca2f
[ "BSD-3-Clause" ]
null
null
null
# -*- encoding: utf8 -*- # Author: Nobuhito Manome <manome@g.ecc.u-tokyo.ac.jp> # License: BSD 3 clause import numpy as np class SilvqModel(): ''' Self-incremental learning vector quantization Model (SilvqModel) ---------- Parameters ---------- n_features : int Number of features. ...
45.89404
293
0.574892
1,000
6,930
3.793
0.148
0.205906
0.069602
0.063274
0.477458
0.410493
0.382283
0.316109
0.256789
0.165041
0
0.01356
0.287013
6,930
150
294
46.2
0.754098
0.217893
0
0.138298
0
0
0.00467
0
0
0
0
0
0
1
0.095745
false
0
0.010638
0
0.138298
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e6980a69817cb32f2d0d95b391605cf02395ecce
1,057
py
Python
checkout/admin.py
JuanBrachoDev/Vinyl
b988c93f9919371aa151869fef2eed2f7c705b44
[ "Net-SNMP", "Xnet" ]
null
null
null
checkout/admin.py
JuanBrachoDev/Vinyl
b988c93f9919371aa151869fef2eed2f7c705b44
[ "Net-SNMP", "Xnet" ]
null
null
null
checkout/admin.py
JuanBrachoDev/Vinyl
b988c93f9919371aa151869fef2eed2f7c705b44
[ "Net-SNMP", "Xnet" ]
1
2021-10-20T21:13:26.000Z
2021-10-20T21:13:26.000Z
from django.contrib import admin from .models import Order, OrderLineItem # Admin display for Order Line Items class OrderLineItemAdminInline(admin.TabularInline): model = OrderLineItem readonly_fields = ('lineitem_total',) # Admin display for Orders class OrderAdmin(admin.ModelAdmin): inlines = (OrderL...
33.03125
77
0.646168
107
1,057
6.084112
0.476636
0.0553
0.073733
0.092166
0.248848
0.168971
0.168971
0.168971
0.168971
0.168971
0
0.002436
0.223273
1,057
31
78
34.096774
0.790499
0.055818
0
0
0
0
0.359799
0
0
0
0
0
0
1
0
false
0
0.105263
0
0.578947
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
e69850371a4d0039881ade1d3e02659db87ce726
18,204
py
Python
opencadd/tests/compounds/standardization/test_handle_tautomers.py
Allend95/opencadd
1fde238e3cf8e5e47e8266a504d9df0196505e97
[ "MIT" ]
1
2020-11-11T17:24:41.000Z
2020-11-11T17:24:41.000Z
opencadd/tests/compounds/standardization/test_handle_tautomers.py
Allend95/opencadd
1fde238e3cf8e5e47e8266a504d9df0196505e97
[ "MIT" ]
null
null
null
opencadd/tests/compounds/standardization/test_handle_tautomers.py
Allend95/opencadd
1fde238e3cf8e5e47e8266a504d9df0196505e97
[ "MIT" ]
null
null
null
""" test for the module `handle_tautomers` Partially derived from MolVS's tests and RDKIT MolStandardize tutorial: https://github.com/mcs07/MolVS/blob/master/tests/test_tautomer.py """ import pytest from rdkit import Chem from opencadd.compounds.standardization.handle_tautomers import enumerate_tautomer, canonicaliz...
33.463235
105
0.611129
2,618
18,204
4.126814
0.086325
0.102277
0.154017
0.050352
0.725565
0.65448
0.509163
0.42077
0.370603
0.318771
0
0.072372
0.184795
18,204
543
106
33.524862
0.65566
0.084157
0
0.345269
0
0.012788
0.372077
0.133646
0
0
0
0
0.327366
1
0.122762
true
0
0.007673
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
1
0
0
0
0
0
0
1
e69924fcc5f944b237b44498e4793d4d7dbd9f34
1,384
py
Python
src/collect.py
Winchester-Yi/collect-information
75a731014c80d9f2ab8ae0695a060dc022266c09
[ "Apache-2.0" ]
null
null
null
src/collect.py
Winchester-Yi/collect-information
75a731014c80d9f2ab8ae0695a060dc022266c09
[ "Apache-2.0" ]
null
null
null
src/collect.py
Winchester-Yi/collect-information
75a731014c80d9f2ab8ae0695a060dc022266c09
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import urllib import urllib2 import re import csv ''' collect patent_information FMZL: Invention patent SYXX: utility model WGZL: Exterior design FMSQ: Invention authorization ''' name = '尹宏鹏' FMZL = 'Y' SYXX = 'Y' WGZL = 'Y' FMSQ = 'Y' PatentIndex = '' patent_url = 'http://www.soopat.com/Hom...
22.688525
123
0.708092
195
1,384
4.887179
0.451282
0.068206
0.075551
0.020986
0.041973
0.041973
0.041973
0.041973
0
0
0
0.026913
0.140896
1,384
61
124
22.688525
0.774601
0.177746
0
0
0
0.037037
0.277837
0.029692
0
0
0
0
0
0
null
null
0
0.148148
null
null
0.148148
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
e69fcf0e2baa3352b823a1114b627ed62193c3fa
3,846
py
Python
docs/ext/smart_resolver.py
alexandraWA/city-scrapers-core
8d31293efcb354dd33fc2ab1f6026ae19d4a52dd
[ "MIT" ]
6
2019-07-29T01:05:24.000Z
2021-12-16T21:16:37.000Z
docs/ext/smart_resolver.py
alexandraWA/city-scrapers-core
8d31293efcb354dd33fc2ab1f6026ae19d4a52dd
[ "MIT" ]
10
2019-01-28T18:36:40.000Z
2021-02-04T16:15:04.000Z
docs/ext/smart_resolver.py
alexandraWA/city-scrapers-core
8d31293efcb354dd33fc2ab1f6026ae19d4a52dd
[ "MIT" ]
9
2019-02-12T20:14:53.000Z
2021-03-24T10:22:12.000Z
# Licensed under a 3-clause BSD style license - see LICENSE.rst # https://git-cral.univ-lyon1.fr/MUSE/mpdaf/-/blob/23d52ba059fe76df5e1655542b17a28a7137cf20/LICENSE """ The classes in the astropy docs are documented by their API location, which is not necessarily where they are defined in the source. This causes a prob...
40.0625
99
0.577223
423
3,846
5.160757
0.359338
0.021988
0.032982
0.052222
0.214384
0.188273
0.162162
0.124599
0.124599
0.124599
0
0.013204
0.330473
3,846
95
100
40.484211
0.834563
0.222049
0
0.258065
0
0
0.073154
0.008389
0
0
0
0.010526
0
1
0.048387
false
0
0.016129
0
0.112903
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
e6a21a82de532d9eb016d5c1e39feeec5ce5539b
1,686
py
Python
src/jk_invoke/SSHConnectionProvider.py
jkpubsrc/python-module-jk-invoke
afb6076203ec1de9ecd3fe7aeee0bd32686abb68
[ "Apache-1.1" ]
null
null
null
src/jk_invoke/SSHConnectionProvider.py
jkpubsrc/python-module-jk-invoke
afb6076203ec1de9ecd3fe7aeee0bd32686abb68
[ "Apache-1.1" ]
null
null
null
src/jk_invoke/SSHConnectionProvider.py
jkpubsrc/python-module-jk-invoke
afb6076203ec1de9ecd3fe7aeee0bd32686abb68
[ "Apache-1.1" ]
null
null
null
import time import os import fabric from jk_testing import Assert from jk_utils import ChModValue from .AbstractInvoker import AbstractInvoker from .CommandResult import CommandResult from .CachedPasswordProvider import CachedPasswordProvider class SSHConnectionProvider(object): def __init__(self, hostName:...
23.416667
146
0.721827
193
1,686
6.07772
0.388601
0.025575
0.035806
0.040921
0
0
0
0
0
0
0
0.002107
0.155397
1,686
71
147
23.746479
0.821629
0
0
0
0
0
0.049611
0
0
0
0
0
0.219512
1
0.097561
false
0.170732
0.195122
0.02439
0.390244
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
e6a4e1178c04c92cb337dc51e51b04351660c559
158
py
Python
jp.atcoder/abc172/abc172_b/27813166.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
1
2022-02-09T03:06:25.000Z
2022-02-09T03:06:25.000Z
jp.atcoder/abc172/abc172_b/27813166.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
1
2022-02-05T22:53:18.000Z
2022-02-09T01:29:30.000Z
jp.atcoder/abc172/abc172_b/27813166.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
null
null
null
import typing def main() -> typing.NoReturn: s = input() t = input() n = len(s) print(sum(s[i] != t[i] for i in range(n))) main()
14.363636
47
0.493671
25
158
3.12
0.64
0
0
0
0
0
0
0
0
0
0
0
0.322785
158
10
48
15.8
0.728972
0
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0.142857
0
0.285714
0.142857
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e6a5bf1126b2622cbc71cc1e09dbf7537ddfad99
795
py
Python
apps/posters/admin.py
kharann/onlineweb4
1130128c6233b623780779a25934ea73ef62c264
[ "MIT" ]
null
null
null
apps/posters/admin.py
kharann/onlineweb4
1130128c6233b623780779a25934ea73ef62c264
[ "MIT" ]
null
null
null
apps/posters/admin.py
kharann/onlineweb4
1130128c6233b623780779a25934ea73ef62c264
[ "MIT" ]
null
null
null
from django.contrib import admin from django.utils.translation import ugettext as _ from reversion.admin import VersionAdmin from apps.posters.models import Poster class PosterAdmin(VersionAdmin): model = Poster list_display = ('event', 'title', 'assigned_to', 'display_from', 'ordered_dat...
36.136364
114
0.657862
82
795
6.182927
0.585366
0.039448
0.063116
0.098619
0
0
0
0
0
0
0
0
0.172327
795
21
115
37.857143
0.770517
0.054088
0
0
0
0
0.317333
0
0
0
0
0
0
1
0
false
0
0.266667
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
e6a716f6d2690fcbb3ead22d6a85efb85021f170
5,176
py
Python
examples/couchdb.py
alex/remoteobjects
4fd1d03fc5ec041fa226d93bdf4a0188ce569b4c
[ "BSD-3-Clause" ]
1
2015-11-08T12:46:28.000Z
2015-11-08T12:46:28.000Z
examples/couchdb.py
alex/remoteobjects
4fd1d03fc5ec041fa226d93bdf4a0188ce569b4c
[ "BSD-3-Clause" ]
null
null
null
examples/couchdb.py
alex/remoteobjects
4fd1d03fc5ec041fa226d93bdf4a0188ce569b4c
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2009 Six Apart Ltd. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright notice, # this lis...
28.596685
81
0.676005
658
5,176
5.232523
0.417933
0.028754
0.016265
0.020912
0.07203
0.058089
0.058089
0.0395
0.0395
0.0395
0
0.003533
0.234351
5,176
180
82
28.755556
0.865254
0.348918
0
0.075269
0
0
0.121854
0
0
0
0
0
0.010753
0
null
null
0.021505
0.064516
null
null
0.053763
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
e6b1b0752cb4b71c34879642a8eddef6cac87bc8
1,894
py
Python
crslab/model/pretrain_models.py
cy333/CRSLab
f4fded43c65b71045eb0ebb922c05753ec6c9db5
[ "MIT" ]
1
2021-03-13T11:29:23.000Z
2021-03-13T11:29:23.000Z
crslab/model/pretrain_models.py
cy333/CRSLab
f4fded43c65b71045eb0ebb922c05753ec6c9db5
[ "MIT" ]
null
null
null
crslab/model/pretrain_models.py
cy333/CRSLab
f4fded43c65b71045eb0ebb922c05753ec6c9db5
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- # @Time : 2021/1/6 # @Author : Xiaolei Wang # @email : wxl1999@foxmail.com # UPDATE # @Time : 2021/1/7 # @Author : Xiaolei Wang # @email : wxl1999@foxmail.com from crslab.download import DownloadableFile """Download links of pretrain models. Now we provide the follo...
29.138462
104
0.569166
151
1,894
7.046358
0.443709
0.030075
0.033835
0.048872
0.306391
0.306391
0.306391
0.233083
0.233083
0.233083
0
0.224412
0.30359
1,894
64
105
29.59375
0.582259
0.101373
0
0.307692
0
0
0.485714
0.182857
0
0
0
0
0
1
0
false
0
0.025641
0
0.025641
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e6b61429b447a1582f5e8bba6b77ff1e48b374bc
1,426
py
Python
tests/test_timeouts.py
adbpy/transports
913f6df4c042b91c9e161aaeb6499e609d52e379
[ "Apache-2.0" ]
5
2019-01-21T15:03:41.000Z
2021-09-22T17:28:22.000Z
tests/test_timeouts.py
adbpy/transports
913f6df4c042b91c9e161aaeb6499e609d52e379
[ "Apache-2.0" ]
320
2017-10-05T12:00:15.000Z
2021-08-02T05:35:45.000Z
tests/test_timeouts.py
adbpy/transports
913f6df4c042b91c9e161aaeb6499e609d52e379
[ "Apache-2.0" ]
1
2018-04-25T12:40:18.000Z
2018-04-25T12:40:18.000Z
""" test_timeouts ~~~~~~~~~~~~~ Tests for the :mod:`~adbts.timeouts` module. """ import pytest from adbts import timeouts @pytest.fixture(scope='session', params=[ None, 500, 1000, 2000, 5000, 10000 ]) def default(request): """ Fixture that yields default timeout values. ...
23.766667
92
0.697756
174
1,426
5.54023
0.310345
0.093361
0.049793
0.071577
0.268672
0.206432
0.133817
0.091286
0
0
0
0.020851
0.192847
1,426
59
93
24.169492
0.816681
0.349229
0
0.333333
0
0
0.017052
0
0
0
0
0
0.125
1
0.208333
false
0
0.083333
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
e6bdcb5b460db47b73f0d300bff5417fe2edd821
387
py
Python
backend/api/migrations/0004_auto_20200505_2058.py
MichalKarol/rent-tinder
91d201bacf222b69917923d73bde288b6ec6a1dd
[ "Apache-2.0" ]
null
null
null
backend/api/migrations/0004_auto_20200505_2058.py
MichalKarol/rent-tinder
91d201bacf222b69917923d73bde288b6ec6a1dd
[ "Apache-2.0" ]
null
null
null
backend/api/migrations/0004_auto_20200505_2058.py
MichalKarol/rent-tinder
91d201bacf222b69917923d73bde288b6ec6a1dd
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.0.5 on 2020-05-05 20:58 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('api', '0003_rentoffer_title'), ] operations = [ migrations.AlterField( model_name='reaction', name='reaction', ...
20.368421
54
0.599483
41
387
5.560976
0.804878
0.105263
0
0
0
0
0
0
0
0
0
0.07971
0.286822
387
18
55
21.5
0.746377
0.116279
0
0
1
0
0.114706
0
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e6c776e4d2cd9def916c2994ba15b7086ba00bad
21,655
py
Python
ensembl_prep.py
wwcrc/CAVA
e85a15379234288028798632175de55f12013a94
[ "MIT" ]
null
null
null
ensembl_prep.py
wwcrc/CAVA
e85a15379234288028798632175de55f12013a94
[ "MIT" ]
null
null
null
ensembl_prep.py
wwcrc/CAVA
e85a15379234288028798632175de55f12013a94
[ "MIT" ]
1
2018-08-07T15:33:00.000Z
2018-08-07T15:33:00.000Z
#!/usr/bin/env python # Transcript database preparation tool (ensembl_prep) ####################################################################################################################### # Basic imports from __future__ import division import os import sys import gzip import datetime from optparse import Opt...
38.259717
181
0.58356
2,574
21,655
4.8446
0.153846
0.02085
0.020449
0.012831
0.317081
0.232959
0.199038
0.167522
0.129591
0.103609
0
0.015758
0.258601
21,655
565
182
38.327434
0.760947
0.106488
0
0.29563
0
0.005141
0.146535
0.023441
0
0
0
0
0
0
null
null
0
0.023136
null
null
0.077121
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
e6c9258ac023af5c8f20735a27f55f5428410794
2,182
py
Python
src/tabs/mds_special.py
UBC-MDS/DSCI531_Group112_Unemployment
5b6c34f2e2e9913f566c64eff7c60d454110650d
[ "MIT" ]
1
2021-02-04T17:41:11.000Z
2021-02-04T17:41:11.000Z
src/tabs/mds_special.py
carlinakim/DSCI532_Group112_Unemployment
98bfa6fb2d6341ee9f32da37758e9359ed005a06
[ "MIT" ]
11
2019-11-22T21:50:35.000Z
2019-12-15T01:50:15.000Z
src/tabs/mds_special.py
carlinakim/DSCI532_Group112_Unemployment
98bfa6fb2d6341ee9f32da37758e9359ed005a06
[ "MIT" ]
4
2019-11-21T22:53:25.000Z
2019-11-29T23:20:25.000Z
# This code is provoded by MDS DSCI 531/532 def mds_special(): font = "Arial" axisColor = "#000000" gridColor = "#DEDDDD" return { "config": { "title": { "fontSize": 24, "font": font, "anchor": "star...
40.407407
100
0.387259
167
2,182
5.053892
0.628743
0.042654
0.061611
0.066351
0.187204
0.187204
0.187204
0.187204
0.187204
0.187204
0
0.044986
0.510999
2,182
54
101
40.407407
0.746017
0.223648
0
0.26087
0
0
0.209178
0
0
0
0
0
0
1
0.021739
false
0
0
0
0.043478
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e6cf084acf42ef940889e8135f70a629746f8288
457
py
Python
api/routes/simulation_list.py
AlbertQueiroz/finalchallenge-api
3cbc5f7d40bfa56b940394f63e6d37674eceec04
[ "MIT" ]
3
2019-09-26T01:26:01.000Z
2020-02-13T17:06:53.000Z
api/routes/simulation_list.py
AlbertQueiroz/finalchallenge-api
3cbc5f7d40bfa56b940394f63e6d37674eceec04
[ "MIT" ]
1
2021-06-02T00:27:28.000Z
2021-06-02T00:27:28.000Z
api/routes/simulation_list.py
AlbertQueiroz/finalchallenge-api
3cbc5f7d40bfa56b940394f63e6d37674eceec04
[ "MIT" ]
2
2019-09-26T01:26:02.000Z
2019-10-15T13:14:09.000Z
from flask import jsonify from api import app import logging as logger from api.controllers import responseListOfCoinsSimulation as request_simulation_list_coins response = request_simulation_list_coins.response_list() @app.route('/api/v1/simulationlist/', methods=['GET']) def simulation_list(): logger.debug("I...
25.388889
90
0.763676
57
457
5.947368
0.54386
0.165192
0.123894
0.153392
0.20059
0
0
0
0
0
0
0.010336
0.153173
457
17
91
26.882353
0.865633
0
0
0
0
0
0.175055
0.050328
0
0
0
0
0
1
0.083333
false
0
0.333333
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
e6cf49e5934c0be95398f25368e771acb43175b6
1,440
py
Python
ebenezer/atencion/migrations/0009_level.py
davrv93/ebenezer-backend
d3db4dafd9a8c35bea9f32afe2be1dd451f64298
[ "Apache-2.0" ]
null
null
null
ebenezer/atencion/migrations/0009_level.py
davrv93/ebenezer-backend
d3db4dafd9a8c35bea9f32afe2be1dd451f64298
[ "Apache-2.0" ]
3
2020-02-11T23:15:00.000Z
2021-06-10T20:52:17.000Z
ebenezer/atencion/migrations/0009_level.py
davrv93/ebenezer-backend
d3db4dafd9a8c35bea9f32afe2be1dd451f64298
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.1.2 on 2018-10-05 13:43 from django.db import migrations, models import django.db.models.deletion import mptt.fields import uuid class Migration(migrations.Migration): dependencies = [ ('atencion', '0008_typeoflevel'), ] operations = [ migrations.CreateModel( ...
42.352941
195
0.629861
155
1,440
5.709677
0.43871
0.073446
0.126554
0.149153
0.334463
0.334463
0.334463
0.108475
0.108475
0
0
0.019982
0.235417
1,440
33
196
43.636364
0.783833
0.03125
0
0
1
0
0.124192
0.016511
0
0
0
0
0
1
0
false
0
0.148148
0
0.259259
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e6d6842dbbe7156411ffecd942180f56666873d8
4,175
py
Python
src/clusto/commands/pool.py
thekad/clusto
c141ea3ef4931c6a21fdf42845c6e9de5ee08caa
[ "BSD-3-Clause" ]
216
2015-01-10T17:03:25.000Z
2022-03-24T07:23:41.000Z
src/clusto/commands/pool.py
thekad/clusto
c141ea3ef4931c6a21fdf42845c6e9de5ee08caa
[ "BSD-3-Clause" ]
23
2015-01-08T16:51:22.000Z
2021-03-13T12:56:04.000Z
src/clusto/commands/pool.py
thekad/clusto
c141ea3ef4931c6a21fdf42845c6e9de5ee08caa
[ "BSD-3-Clause" ]
49
2015-01-08T00:13:17.000Z
2021-09-22T02:01:20.000Z
#!/usr/bin/env python # -*- mode: python; sh-basic-offset: 4; indent-tabs-mode: nil; coding: utf-8 -*- # vim: tabstop=4 softtabstop=4 expandtab shiftwidth=4 fileencoding=utf-8 import sys import clusto from clusto import drivers from clusto import script_helper class Pool(script_helper.Script): ''' Operate o...
28.793103
91
0.52479
533
4,175
4.018762
0.242026
0.01634
0.014006
0.030345
0.340803
0.29972
0.27451
0.253968
0.231559
0.231559
0
0.010169
0.364072
4,175
144
92
28.993056
0.79661
0.040719
0
0.43
0
0
0.146626
0
0
0
0
0
0
0
null
null
0
0.04
null
null
0.02
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
e6db89da4e52784f35fe36f45f6101d43d5fd27b
9,725
py
Python
pre_versions/1.0.6/functions_requests.py
yusipeng/javsdt
8b188131c58284af9ffc013c9e170a2adf561fee
[ "MIT" ]
4
2021-06-22T15:40:23.000Z
2022-01-09T11:06:09.000Z
pre_versions/1.0.6/functions_requests.py
jiujiwuan/javsdt
ae5ad22fd04cff8c2dcb3dc116f66a9cd60cfc4c
[ "MIT" ]
null
null
null
pre_versions/1.0.6/functions_requests.py
jiujiwuan/javsdt
ae5ad22fd04cff8c2dcb3dc116f66a9cd60cfc4c
[ "MIT" ]
2
2021-05-13T09:14:08.000Z
2022-01-09T11:05:57.000Z
# -*- coding:utf-8 -*- import os, requests, re from PIL import Image from time import sleep from re import search from cfscrape import get_cookie_string # from traceback import format_exc # 功能:请求各大jav网站和arzon的网页 # 参数:网址url,请求头部header/cookies,代理proxy # 返回:网页html,请求头部 #####################################...
36.423221
174
0.477018
941
9,725
4.843783
0.198725
0.059237
0.031593
0.044756
0.668276
0.626591
0.587758
0.577227
0.540149
0.507679
0
0.019071
0.342211
9,725
266
175
36.56015
0.69345
0.094293
0
0.753488
0
0.009302
0.148403
0.024946
0
0
0
0
0
1
0.046512
false
0
0.023256
0
0.12093
0.162791
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e6dd8fa68feb8d4fec284555e659f00187e0ee4c
239
py
Python
1501-1600/1557-Minimum Number of Vertices to Reach All Nodes/1557-Minimum Number of Vertices to Reach All Nodes.py
jiadaizhao/LeetCode
4ddea0a532fe7c5d053ffbd6870174ec99fc2d60
[ "MIT" ]
49
2018-05-05T02:53:10.000Z
2022-03-30T12:08:09.000Z
1501-1600/1557-Minimum Number of Vertices to Reach All Nodes/1557-Minimum Number of Vertices to Reach All Nodes.py
ptx-c/LeetCode
4ddea0a532fe7c5d053ffbd6870174ec99fc2d60
[ "MIT" ]
11
2017-12-15T22:31:44.000Z
2020-10-02T12:42:49.000Z
1501-1600/1557-Minimum Number of Vertices to Reach All Nodes/1557-Minimum Number of Vertices to Reach All Nodes.py
ptx-c/LeetCode
4ddea0a532fe7c5d053ffbd6870174ec99fc2d60
[ "MIT" ]
28
2017-12-05T10:56:51.000Z
2022-01-26T18:18:27.000Z
class Solution: def findSmallestSetOfVertices(self, n: int, edges: List[List[int]]) -> List[int]: degree = [0] * n for u, v in edges: degree[v] = 1 return [i for i, d in enumerate(degree) if d == 0]
34.142857
85
0.556485
35
239
3.8
0.6
0.105263
0
0
0
0
0
0
0
0
0
0.018182
0.309623
239
6
86
39.833333
0.787879
0
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e6dea065a32fee932bb860ac6cdf24a5c4496b10
4,181
py
Python
src/python/grpcio_tests/tests_aio/interop/local_interop_test.py
jo2y/grpc
4a366ab94e88b19abe89bee0f36b25993b35bb75
[ "Apache-2.0" ]
null
null
null
src/python/grpcio_tests/tests_aio/interop/local_interop_test.py
jo2y/grpc
4a366ab94e88b19abe89bee0f36b25993b35bb75
[ "Apache-2.0" ]
null
null
null
src/python/grpcio_tests/tests_aio/interop/local_interop_test.py
jo2y/grpc
4a366ab94e88b19abe89bee0f36b25993b35bb75
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 The gRPC Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
38.009091
80
0.693614
495
4,181
5.618182
0.30101
0.046027
0.06041
0.100683
0.498741
0.423589
0.389069
0.262855
0.044588
0
0
0.005339
0.23846
4,181
109
81
38.357798
0.86809
0.176752
0
0.215385
0
0
0.016148
0
0
0
0
0
0
1
0
true
0
0.138462
0
0.184615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
e6e021ef5b466593232964a972a750756d70ded2
1,042
py
Python
django_tables2_column_shifter/tests/settings.py
Najiva/django-tables2-column-shifter
90695d5890c4ef6d7ba58a189a53d712aa8b9e14
[ "BSD-3-Clause" ]
19
2017-01-04T19:17:57.000Z
2021-08-05T20:06:32.000Z
django_tables2_column_shifter/tests/settings.py
Najiva/django-tables2-column-shifter
90695d5890c4ef6d7ba58a189a53d712aa8b9e14
[ "BSD-3-Clause" ]
16
2017-02-20T20:24:01.000Z
2021-07-23T12:50:35.000Z
django_tables2_column_shifter/tests/settings.py
Najiva/django-tables2-column-shifter
90695d5890c4ef6d7ba58a189a53d712aa8b9e14
[ "BSD-3-Clause" ]
8
2017-01-26T07:15:54.000Z
2022-03-22T18:03:24.000Z
#!/usr/bin/env python DEBUG = True SECRET_KEY = 'super-ultra-secret-key' DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': ':memory:', } } INSTALLED_APPS = [ 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.staticfiles', 'django_ta...
23.155556
70
0.608445
98
1,042
6.244898
0.520408
0.106209
0.093137
0.127451
0.101307
0
0
0
0
0
0
0.006369
0.246641
1,042
44
71
23.681818
0.773248
0.019194
0
0
0
0
0.538688
0.419197
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
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e6e2282b413b67bf886d3e03dca07ad2ef1dcb67
1,823
py
Python
hanlp/__init__.py
SIMSON20/HanLP
1d201d27b5c4f845de9eb194ed8ce33bd16cf52c
[ "Apache-2.0" ]
1
2020-02-12T07:49:47.000Z
2020-02-12T07:49:47.000Z
hanlp/__init__.py
Lankovski/HanLP
69ad19aa56a656cad007993bb1716b3018d80751
[ "Apache-2.0" ]
null
null
null
hanlp/__init__.py
Lankovski/HanLP
69ad19aa56a656cad007993bb1716b3018d80751
[ "Apache-2.0" ]
1
2020-01-11T19:56:42.000Z
2020-01-11T19:56:42.000Z
# -*- coding:utf-8 -*- # Author: hankcs # Date: 2019-06-13 18:05 import hanlp.callbacks import hanlp.common import hanlp.components import hanlp.datasets import hanlp.layers import hanlp.losses import hanlp.metrics import hanlp.optimizers import hanlp.pretrained import hanlp.utils from hanlp.version import __version_...
30.898305
105
0.748766
257
1,823
5.108949
0.385214
0.083778
0.031988
0.021325
0.059406
0.033511
0
0
0
0
0
0.00964
0.146462
1,823
58
106
31.431034
0.83419
0.272079
0
0
0
0
0.21907
0.089835
0
0
0
0
0
1
0.0625
false
0
0.5
0
0.625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
e6e2a422578d0a7d66d051045b5f8c0f298d0e57
7,713
py
Python
tests/101_watcher/utils.py
Sam-prog-sudo/boussole
5d6ec94356f9a91ff4d6d23c1700d3512b67006a
[ "MIT" ]
null
null
null
tests/101_watcher/utils.py
Sam-prog-sudo/boussole
5d6ec94356f9a91ff4d6d23c1700d3512b67006a
[ "MIT" ]
null
null
null
tests/101_watcher/utils.py
Sam-prog-sudo/boussole
5d6ec94356f9a91ff4d6d23c1700d3512b67006a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Some utilities and common stuff for tests """ import os from boussole.conf.model import Settings from boussole.inspector import ScssInspector from boussole.watcher import SassLibraryEventHandler, SassProjectEventHandler class DummyBaseEvent(object): """ Dummy event to pass to almo...
30.852
81
0.614288
874
7,713
5.319222
0.172769
0.040224
0.033125
0.057217
0.665089
0.643149
0.615186
0.615186
0.603571
0.603571
0
0.00119
0.237391
7,713
249
82
30.975904
0.789187
0.179697
0
0.377358
0
0
0.106704
0.039058
0
0
0
0
0
1
0.075472
false
0.012579
0.037736
0.006289
0.163522
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e6e6cf43f4ce8b122102b1adebff3baac85f2cf8
1,916
py
Python
mlcomp/parallelm/pipeline/component_dir_helper.py
lisapm/mlpiper
74ad5ae343d364682cc2f8aaa007f2e8a1d84929
[ "Apache-2.0" ]
7
2019-04-08T02:31:55.000Z
2021-11-15T14:40:49.000Z
mlcomp/parallelm/pipeline/component_dir_helper.py
lisapm/mlpiper
74ad5ae343d364682cc2f8aaa007f2e8a1d84929
[ "Apache-2.0" ]
31
2019-02-22T22:23:26.000Z
2021-08-02T17:17:06.000Z
mlcomp/parallelm/pipeline/component_dir_helper.py
lisapm/mlpiper
74ad5ae343d364682cc2f8aaa007f2e8a1d84929
[ "Apache-2.0" ]
8
2019-03-15T23:46:08.000Z
2020-02-06T09:16:02.000Z
import pkg_resources import logging import os from parallelm.common.base import Base class ComponentDirHelper(Base): def __init__(self, pkg, main_program): """ Extract component directory outside of egg, so an external command can run :param main_program: The main program to run. E.g. m...
39.916667
120
0.664405
252
1,916
4.801587
0.349206
0.081818
0.086777
0.06281
0.134711
0.077686
0.077686
0.077686
0.077686
0
0
0
0.237996
1,916
47
121
40.765957
0.828767
0.282881
0
0
0
0
0.100467
0.017134
0
0
0
0.021277
0
1
0.083333
false
0
0.166667
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
e6ea028a7952755dc3d59da3615441a476f4ce62
6,365
py
Python
account/migrations/0004_auto_20200728_1845.py
AhmadTariqAlflahat/Web-Project-Django
80d8ba5cd04df9781e94a65122aa703999c1bdb8
[ "MIT" ]
null
null
null
account/migrations/0004_auto_20200728_1845.py
AhmadTariqAlflahat/Web-Project-Django
80d8ba5cd04df9781e94a65122aa703999c1bdb8
[ "MIT" ]
7
2021-04-08T21:31:50.000Z
2022-01-13T03:05:02.000Z
account/migrations/0004_auto_20200728_1845.py
AhmadTariqAlflahat/Web-Project-Django
80d8ba5cd04df9781e94a65122aa703999c1bdb8
[ "MIT" ]
null
null
null
# Generated by Django 3.0.8 on 2020-07-28 15:45 import account.models_addon import account.validators import django.contrib.auth.validators import django.core.validators from django.db import migrations, models import django_countries.fields import stdimage.models import stdimage.validators class Migration(migration...
51.747967
491
0.643519
695
6,365
5.753957
0.240288
0.063266
0.112528
0.130533
0.570893
0.570893
0.486122
0.365091
0.365091
0.276819
0
0.020959
0.220424
6,365
122
492
52.172131
0.784966
0.00707
0
0.508621
1
0.017241
0.237417
0.019785
0
0
0
0
0
1
0
false
0
0.068966
0
0.094828
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e6eabe470c273a937b22d9634a9db6fa46dcd18c
1,214
py
Python
Code/Test/ECDSA_Test/ecdsa_test.py
dev-alberto/Bachelor2017
1d3c44ff3b56a6030e08ef9d24920f83df1ae89e
[ "Apache-2.0" ]
null
null
null
Code/Test/ECDSA_Test/ecdsa_test.py
dev-alberto/Bachelor2017
1d3c44ff3b56a6030e08ef9d24920f83df1ae89e
[ "Apache-2.0" ]
null
null
null
Code/Test/ECDSA_Test/ecdsa_test.py
dev-alberto/Bachelor2017
1d3c44ff3b56a6030e08ef9d24920f83df1ae89e
[ "Apache-2.0" ]
null
null
null
from unittest import TestCase from ECDSA.ECDSA import GenerateSignature, GenerateKeyPair, VerifySignature class EcdsaTest(TestCase): def test_sig_with_correct_parameters(self): bits, sig, message, pub = self.createSut() verifier = VerifySignature(bits, pub, sig, message) result = verifier...
36.787879
85
0.673806
132
1,214
6.045455
0.318182
0.075188
0.070175
0.085213
0.438596
0.359649
0.359649
0.253133
0.125313
0.125313
0
0.028908
0.230643
1,214
33
86
36.787879
0.825482
0
0
0.296296
1
0
0.02716
0
0
0
0
0
0.111111
1
0.148148
false
0
0.074074
0
0.296296
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e6f242d3a90e728ab8141ed7e15cd97510bd2a2a
15,941
py
Python
msrest/universal_http/__init__.py
eduardomourar/msrest-for-python
931a36c73bb217b6bf88f9028174395218fbfff3
[ "MIT" ]
null
null
null
msrest/universal_http/__init__.py
eduardomourar/msrest-for-python
931a36c73bb217b6bf88f9028174395218fbfff3
[ "MIT" ]
1
2019-01-31T13:55:55.000Z
2019-01-31T13:55:55.000Z
msrest/universal_http/__init__.py
eduardomourar/msrest-for-python
931a36c73bb217b6bf88f9028174395218fbfff3
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------- # # Copyright (c) Microsoft Corporation. All rights reserved. # # The MIT License (MIT) # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the ""Software""),...
34.805677
163
0.624804
1,867
15,941
5.230316
0.241564
0.021505
0.009319
0.005735
0.141526
0.090527
0.053047
0.038505
0.030312
0.019048
0
0.002309
0.266545
15,941
458
164
34.805677
0.832792
0.169249
0
0.171806
0
0
0.092367
0.008612
0.004405
0
0
0
0
0
null
null
0.022026
0.101322
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
e6f542beb92d58a239b6422082d785c7575ae86a
1,136
py
Python
TrEEProfiler/rrg.py
maxdy/BioTools
0240ed203ef64e2cfd637a0fd508096151df7482
[ "MIT" ]
null
null
null
TrEEProfiler/rrg.py
maxdy/BioTools
0240ed203ef64e2cfd637a0fd508096151df7482
[ "MIT" ]
null
null
null
TrEEProfiler/rrg.py
maxdy/BioTools
0240ed203ef64e2cfd637a0fd508096151df7482
[ "MIT" ]
null
null
null
import csv import os lnr_genomes_aa = [] # aa = assembly_accession with open("bacteria_as_comref_genomes_wo_ecoli",'r') as f: next(f) # skip headings reader=csv.reader(f,delimiter='\t') tmp_size = None tmp_aa = None tmp_s_id = None for line in reader: filepath = line[20].replace("/cygdrive/h/","H:/") print...
25.818182
59
0.698063
193
1,136
3.839378
0.362694
0.094467
0.11336
0.080972
0.340081
0.282051
0.159244
0.11336
0.11336
0.11336
0
0.007535
0.182218
1,136
43
60
26.418605
0.790097
0.139085
0
0.277778
0
0
0.15036
0.112255
0
0
0
0
0
0
null
null
0
0.055556
null
null
0.138889
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
e6fa8f3073a1a45e75e4ec49026daa5dcec5187d
6,074
py
Python
melodic/lib/python2.7/dist-packages/genpy/generate_struct.py
Dieptranivsr/Ros_Diep
d790e75e6f5da916701b11a2fdf3e03b6a47086b
[ "MIT" ]
null
null
null
melodic/lib/python2.7/dist-packages/genpy/generate_struct.py
Dieptranivsr/Ros_Diep
d790e75e6f5da916701b11a2fdf3e03b6a47086b
[ "MIT" ]
1
2021-07-08T10:26:06.000Z
2021-07-08T10:31:11.000Z
melodic/lib/python2.7/dist-packages/genpy/generate_struct.py
Dieptranivsr/Ros_Diep
d790e75e6f5da916701b11a2fdf3e03b6a47086b
[ "MIT" ]
null
null
null
# Software License Agreement (BSD License) # # Copyright (c) 2008, Willow Garage, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistributions of source code must retain the above...
32.137566
95
0.67188
832
6,074
4.840144
0.272837
0.024832
0.012913
0.019866
0.376956
0.336975
0.323069
0.295754
0.259747
0.231934
0
0.00706
0.230491
6,074
188
96
32.308511
0.854514
0.619855
0
0.263158
0
0
0.092491
0.038787
0
0
0
0
0
1
0.22807
false
0
0.017544
0
0.491228
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
e6fbffcbd78594558e8f01eb9ba3299ff3a17a0c
3,146
py
Python
api/views.py
Aananda-giri/ioe_auto_attend
f55e532365e9f2da17437c554286d01754e7ac00
[ "Apache-2.0" ]
null
null
null
api/views.py
Aananda-giri/ioe_auto_attend
f55e532365e9f2da17437c554286d01754e7ac00
[ "Apache-2.0" ]
null
null
null
api/views.py
Aananda-giri/ioe_auto_attend
f55e532365e9f2da17437c554286d01754e7ac00
[ "Apache-2.0" ]
1
2021-10-31T13:09:04.000Z
2021-10-31T13:09:04.000Z
from django.http import JsonResponse from django.core import serializers from django.shortcuts import render from api.data.ioe_crawler import run_spider from api.models import IoeNoti import json # runs spider - save first page of exam.ioe.edu.np to new_notices.json def new_notifications_view(request): run_spi...
35.348315
172
0.718055
400
3,146
5.485
0.32
0.054695
0.04649
0.035552
0.368277
0.282589
0.267092
0.247949
0.217867
0.179581
0
0.00728
0.170375
3,146
88
173
35.75
0.833333
0.245073
0
0.186047
0
0
0.058211
0.011832
0
0
0
0
0
1
0.093023
false
0
0.255814
0
0.534884
0.116279
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
e6fc428d866dafea0fc953e62b3e3bc8d3d37b4c
1,947
py
Python
transduction/model.py
vandijklab/scGAT
961b69d115fb0ae4de5f9083b002f071777de95d
[ "MIT" ]
8
2020-03-30T07:52:55.000Z
2022-02-01T01:12:58.000Z
transduction/model.py
nealgravindra/scGAT
6e5368be08f09e07cb73459fe0b46daef0b25892
[ "MIT" ]
1
2020-11-09T12:31:16.000Z
2020-11-09T12:31:16.000Z
transduction/model.py
nealgravindra/scGAT
6e5368be08f09e07cb73459fe0b46daef0b25892
[ "MIT" ]
2
2020-07-28T11:50:15.000Z
2021-02-23T07:33:28.000Z
''' Model for transduction task ---- ACM CHIL 2020 paper Neal G. Ravindra, 200228 ''' import os,sys,pickle,time,random,glob import numpy as np import pandas as pd from typing import List import copy import os.path as osp import torch import torch.utils.data from torch_sparse import SparseTensor, c...
32.45
81
0.574217
240
1,947
4.541667
0.55
0.033028
0.027523
0.045872
0.073395
0.073395
0.073395
0
0
0
0
0.029178
0.225475
1,947
59
82
33
0.693634
0.165383
0
0.05
0
0
0
0
0
0
0
0
0
1
0.05
false
0
0.325
0
0.425
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
fc0034adfcefed00f023ddcd67456107823b95fa
2,732
py
Python
json_tools/scan_json.py
sidprobstein/json_tools
4275d0c5dc6bc69ab584a0b473dc2896e6513ac4
[ "MIT" ]
null
null
null
json_tools/scan_json.py
sidprobstein/json_tools
4275d0c5dc6bc69ab584a0b473dc2896e6513ac4
[ "MIT" ]
null
null
null
json_tools/scan_json.py
sidprobstein/json_tools
4275d0c5dc6bc69ab584a0b473dc2896e6513ac4
[ "MIT" ]
null
null
null
#!/usr/local/bin/python2.7 # encoding: utf-8 ''' @author: Sid Probstein @contact: sidprobstein@gmail.com ''' ############################################# import sys import argparse import json from utils.file import make_file_list, load_json_list ############################################# def ma...
29.376344
110
0.41325
254
2,732
4.354331
0.429134
0.0217
0.0217
0.03255
0.036166
0
0
0
0
0
0
0.007798
0.389824
2,732
92
111
29.695652
0.655669
0.088946
0
0.203704
0
0
0.162258
0.070547
0
0
0
0
0
0
null
null
0
0.074074
null
null
0.092593
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
fc006934a13cf8982d1cb7088c731a90c14873bf
2,965
py
Python
Co-Simulation/Sumo/sumo-1.7.0/tools/traci/storage.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
4
2020-11-13T02:35:56.000Z
2021-03-29T20:15:54.000Z
Co-Simulation/Sumo/sumo-1.7.0/tools/traci/storage.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
9
2020-12-09T02:12:39.000Z
2021-02-18T00:15:28.000Z
Co-Simulation/Sumo/sumo-1.7.0/tools/traci/storage.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
1
2020-11-20T19:31:26.000Z
2020-11-20T19:31:26.000Z
# -*- coding: utf-8 -*- # Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo # Copyright (C) 2008-2020 German Aerospace Center (DLR) and others. # This program and the accompanying materials are made available under the # terms of the Eclipse Public License 2.0 which is available at # https://www....
29.949495
100
0.633052
405
2,965
4.553086
0.387654
0.056399
0.024403
0.035249
0.14859
0.131236
0.055315
0.030369
0.030369
0.030369
0
0.022242
0.241821
2,965
98
101
30.255102
0.798043
0.292749
0
0.068966
0
0
0.043332
0
0
0
0
0
0.103448
1
0.258621
false
0
0.068966
0.051724
0.586207
0.051724
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
fc0283c5e817cd2948ca794000e00491bd6f6703
10,416
py
Python
flaskbb/auth/views.py
MansoorHanif/FYP-web-app
918008d3b5eedaa904f3e720296afde9d73ac3f4
[ "BSD-3-Clause" ]
null
null
null
flaskbb/auth/views.py
MansoorHanif/FYP-web-app
918008d3b5eedaa904f3e720296afde9d73ac3f4
[ "BSD-3-Clause" ]
1
2022-01-13T03:10:29.000Z
2022-01-13T03:10:29.000Z
flaskbb/auth/views.py
MansoorHanif/FYP-web-app
918008d3b5eedaa904f3e720296afde9d73ac3f4
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ flaskbb.auth.views ~~~~~~~~~~~~~~~~~~ This view provides user authentication, registration and a view for resetting the password of a user if he has lost his password :copyright: (c) 2014 by the FlaskBB Team. :license: BSD, see LICENSE for more details. """ from dat...
37.467626
79
0.656586
1,254
10,416
5.267943
0.212919
0.042386
0.02967
0.039358
0.364366
0.304723
0.252044
0.214351
0.177112
0.145625
0
0.001627
0.232719
10,416
277
80
37.602888
0.82495
0.123848
0
0.320856
0
0
0.194632
0.032161
0
0
0
0
0
1
0.064171
false
0.112299
0.069519
0
0.304813
0.010695
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
fc03867ed43f5441355ff676daaff87493168a23
2,114
py
Python
src/dxtbx/format/FormatNXTOFRAW.py
toastisme/dxtbx
fc24e215a8052e7e17be4ad4b41f9dbb474d852a
[ "BSD-3-Clause" ]
null
null
null
src/dxtbx/format/FormatNXTOFRAW.py
toastisme/dxtbx
fc24e215a8052e7e17be4ad4b41f9dbb474d852a
[ "BSD-3-Clause" ]
null
null
null
src/dxtbx/format/FormatNXTOFRAW.py
toastisme/dxtbx
fc24e215a8052e7e17be4ad4b41f9dbb474d852a
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import, division, print_function from sys import argv import h5py from dxtbx import IncorrectFormatError from dxtbx.format.FormatHDF5 import FormatHDF5 class FormatNXTOFRAW(FormatHDF5): """ Class to read NXTOFRAW files as defined in https://www.nexusformat.org/TOFRaw.ht...
27.454545
72
0.620151
243
2,114
5.135802
0.329218
0.079327
0.044071
0.048077
0.215545
0.158654
0.158654
0.088141
0.088141
0.088141
0
0.006198
0.31315
2,114
76
73
27.815789
0.853306
0.119205
0
0.311111
0
0
0.011105
0
0
0
0
0
0
1
0.133333
false
0
0.111111
0
0.511111
0.044444
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
fc07aa5176b8d380e86955eea22035d094dd7dc4
880
py
Python
Round 1A/charging_chaos.py
kamyu104/GoogleCodeJam-2014
ff29a677f502168eb0b92d6928ad6983d2622017
[ "MIT" ]
10
2016-04-10T22:50:54.000Z
2021-04-17T18:17:02.000Z
Round 1A/charging_chaos.py
kamyu104/GoogleCodeJam-2014
ff29a677f502168eb0b92d6928ad6983d2622017
[ "MIT" ]
null
null
null
Round 1A/charging_chaos.py
kamyu104/GoogleCodeJam-2014
ff29a677f502168eb0b92d6928ad6983d2622017
[ "MIT" ]
10
2016-07-19T08:43:38.000Z
2021-07-22T22:38:44.000Z
# Copyright (c) 2020 kamyu. All rights reserved. # # Google Code Jam 2014 Round 1A - Problem A. Charging Chaos # https://code.google.com/codejam/contest/2984486/dashboard#s=p0 # # Time: O(N^2) # Space: O(N) # def popcount(n): result = 0 while n: n &= n-1 result += 1 return result def char...
29.333333
73
0.610227
131
880
4.061069
0.503817
0.073308
0.073308
0.101504
0.135338
0.135338
0.135338
0.135338
0.135338
0.135338
0
0.035242
0.226136
880
29
74
30.344828
0.745962
0.218182
0
0
0
0
0.044248
0
0
0
0
0
0
0
null
null
0
0
null
null
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
fc0dae8ece9170f30269f54fdd708326b9a0c261
324
py
Python
venv/lib/python3.6/site-packages/django/contrib/postgres/functions.py
xiegudong45/typeidea
db6504a232d120d6ffa185730bd35b9b9ecffa6c
[ "Apache-2.0" ]
5,079
2015-01-01T03:39:46.000Z
2022-03-31T07:38:22.000Z
venv/lib/python3.6/site-packages/django/contrib/postgres/functions.py
xiegudong45/typeidea
db6504a232d120d6ffa185730bd35b9b9ecffa6c
[ "Apache-2.0" ]
1,623
2015-01-01T08:06:24.000Z
2022-03-30T19:48:52.000Z
virtual/lib/python3.6/site-packages/django/contrib/postgres/functions.py
ngishjonathan/gallery
dd67f28887316d6277927c667f6641d26317b0b8
[ "MIT" ]
2,033
2015-01-04T07:18:02.000Z
2022-03-28T19:55:47.000Z
from django.db.models import DateTimeField, Func class TransactionNow(Func): template = 'CURRENT_TIMESTAMP' def __init__(self, output_field=None, **extra): if output_field is None: output_field = DateTimeField() super(TransactionNow, self).__init__(output_field=output_field, **ext...
29.454545
80
0.709877
37
324
5.837838
0.594595
0.25463
0
0
0
0
0
0
0
0
0
0
0.194444
324
10
81
32.4
0.827586
0
0
0
0
0
0.052469
0
0
0
0
0
0
1
0.142857
false
0
0.142857
0
0.571429
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
fc0f5f15182822a2947e7d01837f77570f7538b8
708
py
Python
tls_parser/change_cipher_spec_protocol.py
nabla-c0d3/tls_parser
43768c10a896bcb3fc5b0114c58754f0b9895ab4
[ "MIT" ]
6
2017-12-03T23:31:40.000Z
2021-12-20T21:57:22.000Z
tls_parser/change_cipher_spec_protocol.py
kaisenlinux/tls-parser
00b2a5a59f03936ba47b32a5cd9515b3b2ff8bf0
[ "MIT" ]
6
2017-07-31T15:52:11.000Z
2022-01-01T14:09:21.000Z
tls_parser/change_cipher_spec_protocol.py
kaisenlinux/tls-parser
00b2a5a59f03936ba47b32a5cd9515b3b2ff8bf0
[ "MIT" ]
4
2017-07-02T20:25:31.000Z
2020-03-15T19:03:08.000Z
from tls_parser.record_protocol import TlsRecord, TlsRecordHeader, TlsSubprotocolMessage, TlsRecordTypeByte from tls_parser.tls_version import TlsVersionEnum from typing import Tuple class TlsChangeCipherSpecRecord(TlsRecord): @classmethod def from_parameters(cls, tls_version: TlsVersionEnum) -> "TlsChangeCip...
44.25
108
0.792373
69
708
7.898551
0.521739
0.055046
0.047706
0
0
0
0
0
0
0
0
0.003268
0.135593
708
15
109
47.2
0.887255
0
0
0.166667
0
0
0.076271
0.070621
0
0
0
0
0
1
0.166667
false
0
0.25
0
0.583333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
fc10dca7e4ee4da1820965ce5fddbe36b12fde0f
4,756
py
Python
foundation.examples/spark_demo/modules/test_tone.py
PowerRocker/rpi_spark_examples
bc264cbc780ef1640f9caa59ad1e6e2a30c59ceb
[ "MIT" ]
1
2018-11-18T03:07:50.000Z
2018-11-18T03:07:50.000Z
foundation.examples/spark_demo/modules/test_tone.py
PowerRocker/rpi_spark_examples
bc264cbc780ef1640f9caa59ad1e6e2a30c59ceb
[ "MIT" ]
1
2020-12-25T16:30:54.000Z
2020-12-25T16:31:50.000Z
foundation.examples/spark_demo/modules/test_tone.py
mobinrg/rpi_spark_examples
bc264cbc780ef1640f9caa59ad1e6e2a30c59ceb
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # RPiSpark Tone Testting # # Author: Kunpeng Zhang # 2018.5.30 # # See LICENSE for details. import random import os.path from PIL import Image from time import sleep from JMRPiFoundations.Skeleton.RPiSparkModule import RPiSparkModule from JMRPiSpark.Drives.Audio.RPiTone import TONE_MID, TONE_...
42.088496
108
0.552565
517
4,756
5.03675
0.216634
0.063364
0.126728
0.322965
0.615207
0.615207
0.566052
0.566052
0.566052
0.566052
0
0.058173
0.259041
4,756
112
109
42.464286
0.680761
0.025231
0
0.455696
0
0
0.163229
0
0
0
0
0
0
1
0.063291
false
0
0.088608
0
0.189873
0.012658
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
fc18a1136efae09191353ba8ef76e8e3f4e4b8eb
3,531
py
Python
libpmf-1.41/python/libpmf.py
zhenv5/atp
9b9a19283f13a9ab8f25688894a6ec23ccb73e9c
[ "BSD-3-Clause" ]
7
2019-04-15T17:19:03.000Z
2022-01-06T03:14:28.000Z
libpmf-1.41/python/libpmf.py
DavidMcDonald1993/atp
baa7ba751b7be7306f624043989bf3ecde3148d4
[ "BSD-3-Clause" ]
null
null
null
libpmf-1.41/python/libpmf.py
DavidMcDonald1993/atp
baa7ba751b7be7306f624043989bf3ecde3148d4
[ "BSD-3-Clause" ]
2
2019-05-03T14:47:17.000Z
2019-11-18T13:54:31.000Z
#!/usr/bin/env python from ctypes import * from os import path libpmf = CDLL(path.join(path.dirname(__file__),'pmf_py.so.1')) def genFields(names, types): return list(zip(names, types)) def fillprototype(f, restype, argtypes): f.restype = restype f.argtypes = argtypes class parameter(Structure): _names = ["s...
37.967742
111
0.693571
609
3,531
3.793103
0.224959
0.044156
0.02381
0.031169
0.405195
0.319481
0.206061
0.154113
0.136797
0.077922
0
0.008961
0.146701
3,531
92
112
38.380435
0.757717
0.005664
0
0.059701
0
0
0.127888
0.00703
0
0
0
0
0
0
null
null
0
0.059701
null
null
0.044776
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
fc199033a2f6a8a86c1274fb335c85c03dc77c11
2,345
py
Python
examples/simple_client.py
sovrin-foundation/old-sovrin
d4e705054b7252c62fea00114060035c6eb314a4
[ "Apache-2.0" ]
3
2017-07-19T14:26:31.000Z
2020-05-16T16:09:37.000Z
examples/simple_client.py
sovrin-foundation/old-sovrin
d4e705054b7252c62fea00114060035c6eb314a4
[ "Apache-2.0" ]
null
null
null
examples/simple_client.py
sovrin-foundation/old-sovrin
d4e705054b7252c62fea00114060035c6eb314a4
[ "Apache-2.0" ]
3
2017-10-28T08:19:00.000Z
2021-06-06T10:48:55.000Z
#! /usr/bin/env python3 """ This is a simple script to demonstrate a client connecting to a running consensus pool. To see it in action, run simple_node.py in four separate terminals, and in a fifth one, run this script. TODO: create client TODO: demonstrate client verification key bootstrapping """ import os import t...
30.454545
79
0.610235
277
2,345
5.104693
0.527076
0.005658
0.022631
0
0
0
0
0
0
0
0
0.035758
0.296375
2,345
76
80
30.855263
0.821212
0.322815
0
0.04878
0
0
0.107075
0.048439
0
0
0
0.026316
0.04878
1
0.02439
false
0
0.170732
0
0.195122
0.073171
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
fc1b2ec916cc456ffbafbbf26ce7adcf7884c6e8
635
py
Python
addons/generic_request/migrations/11.0.1.10.0/pre-migrate.py
marionumza/vocal_v12
480990e919c9410903e06e7813ee92800bd6a569
[ "Unlicense" ]
null
null
null
addons/generic_request/migrations/11.0.1.10.0/pre-migrate.py
marionumza/vocal_v12
480990e919c9410903e06e7813ee92800bd6a569
[ "Unlicense" ]
null
null
null
addons/generic_request/migrations/11.0.1.10.0/pre-migrate.py
marionumza/vocal_v12
480990e919c9410903e06e7813ee92800bd6a569
[ "Unlicense" ]
1
2021-05-05T07:59:08.000Z
2021-05-05T07:59:08.000Z
from odoo.tools.sql import column_exists def migrate(cr, installed_version): if not column_exists(cr, 'request_request', 'author_id'): cr.execute(""" ALTER TABLE request_request ADD COLUMN author_id INTEGER; UPDATE request_request r SET author_id=( ...
28.863636
61
0.565354
79
635
4.303797
0.468354
0.164706
0.117647
0.123529
0.141176
0
0
0
0
0
0
0
0.371654
635
21
62
30.238095
0.85213
0
0
0.117647
0
0
0.773228
0.034646
0
0
0
0
0
1
0.058824
false
0
0.058824
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
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
fc1c1db5a8461c5f0b54d23a034ccb319f02baf4
623
py
Python
Chapter04/udp_scan.py
PacktPublishing/Kali-Linux-Network-Scanning-Cookbook-Second-Edition
bbb88df785f86e4c41494b867419c53262c700a4
[ "MIT" ]
17
2017-07-20T08:19:28.000Z
2021-11-08T13:11:58.000Z
Chapter04/udp_scan.py
PacktPublishing/Kali-Linux-Network-Scanning-Cookbook-Second-Edition
bbb88df785f86e4c41494b867419c53262c700a4
[ "MIT" ]
null
null
null
Chapter04/udp_scan.py
PacktPublishing/Kali-Linux-Network-Scanning-Cookbook-Second-Edition
bbb88df785f86e4c41494b867419c53262c700a4
[ "MIT" ]
13
2017-07-20T08:20:42.000Z
2021-12-07T20:29:26.000Z
#!/usr/bin/python import logging logging.getLogger("scapy.runtime").setLevel(logging.ERROR) from scapy.all import * import time import sys if len(sys.argv) != 4: print "Usage - ./udp_scan.py [Target-IP] [First Port] [Last Port]" print "Example - ./upd_scan.py 10.0.0.5 1 100" print "Example will UDP port...
22.25
70
0.640449
107
623
3.71028
0.542056
0.070529
0.020151
0.025189
0
0
0
0
0
0
0
0.052632
0.207063
623
27
71
23.074074
0.751012
0.025682
0
0.095238
0
0
0.275578
0
0
0
0
0
0
0
null
null
0.047619
0.190476
null
null
0.190476
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
fc241afdbb8f5e3a26c0aaf22d143e2395c63bb1
875
py
Python
Hackerank/Python/Breaking the records.py
abdzitter/Daily-Coding-DS-ALGO-Practice
26ddbf7a3673608039a07d26d812fce31b69871a
[ "MIT" ]
289
2021-05-15T22:56:03.000Z
2022-03-28T23:13:25.000Z
Hackerank/Python/Breaking the records.py
abdzitter/Daily-Coding-DS-ALGO-Practice
26ddbf7a3673608039a07d26d812fce31b69871a
[ "MIT" ]
1,812
2021-05-09T13:49:58.000Z
2022-01-15T19:27:17.000Z
Hackerank/Python/Breaking the records.py
abdzitter/Daily-Coding-DS-ALGO-Practice
26ddbf7a3673608039a07d26d812fce31b69871a
[ "MIT" ]
663
2021-05-09T16:57:58.000Z
2022-03-27T14:15:07.000Z
#!/bin/python3 import math import os import random import re import sys # # Complete the 'breakingRecords' function below. # # The function is expected to return an INTEGER_ARRAY. # The function accepts INTEGER_ARRAY scores as parameter. # def breakingRecords(scores): # Write your code here most = scores[0] ...
19.021739
57
0.588571
112
875
4.5
0.535714
0.055556
0.035714
0
0
0
0
0
0
0
0
0.011164
0.283429
875
45
58
19.444444
0.792663
0.217143
0
0
0
0
0.033973
0
0
0
0
0.022222
0
1
0.038462
false
0
0.192308
0
0.230769
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
fc25020c24d118968521768633dc3cae43eb33e7
372
py
Python
ui.py
VoltBit/ellida
110593556d795eb4feef976d30576fa394415506
[ "MIT" ]
null
null
null
ui.py
VoltBit/ellida
110593556d795eb4feef976d30576fa394415506
[ "MIT" ]
5
2017-04-16T13:29:12.000Z
2020-10-12T14:03:56.000Z
ui.py
VoltBit/ellida
110593556d795eb4feef976d30576fa394415506
[ "MIT" ]
null
null
null
#!/usr/bin/python3.5 import os import sys from sockets import socketio from ellida import create_app sys.path.append(os.path.dirname(__name__)) def main(): # create an app instance app = create_app() # app.run(debug=True) # app.run(host='0.0.0.0') socketio.init_app(app) socketio.run(app, hos...
17.714286
42
0.663978
60
372
3.866667
0.466667
0.051724
0.051724
0.060345
0.068966
0
0
0
0
0
0
0.033003
0.185484
372
20
43
18.6
0.732673
0.231183
0
0
0
0
0.053191
0
0
0
0
0
0
1
0.090909
false
0
0.363636
0
0.454545
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
fc2a61e9a458e492e691fa5dc21d72a13dec4a15
3,208
py
Python
package/cloudshell/tests/test_models/test_deploy_data_holder.py
DYeag/vCenterShell
e2e24cd938a92a68f4a8e6a860810d3ef72aae6d
[ "Apache-2.0" ]
20
2015-12-06T10:19:27.000Z
2020-08-05T06:19:46.000Z
package/cloudshell/tests/test_models/test_deploy_data_holder.py
DYeag/vCenterShell
e2e24cd938a92a68f4a8e6a860810d3ef72aae6d
[ "Apache-2.0" ]
956
2015-12-06T13:00:17.000Z
2021-03-31T23:54:51.000Z
package/cloudshell/tests/test_models/test_deploy_data_holder.py
DYeag/vCenterShell
e2e24cd938a92a68f4a8e6a860810d3ef72aae6d
[ "Apache-2.0" ]
26
2015-12-06T15:24:17.000Z
2020-09-16T09:27:03.000Z
from unittest import TestCase import jsonpickle from cloudshell.cp.vcenter.models.DeployDataHolder import DeployDataHolder class TestDeployDataHolder(TestCase): def test_deploy_data_holder(self): # Arrange json = ''' { "driverRequest": { "actions": [ ...
38.650602
111
0.524938
231
3,208
7.251082
0.25974
0.191045
0.175522
0.284179
0.667463
0.558806
0.533731
0.423881
0.193433
0.134925
0
0.036284
0.355673
3,208
82
112
39.121951
0.774069
0.011534
0
0.190476
0
0
0.457793
0.041416
0
0
0
0
0.222222
1
0.031746
false
0
0.047619
0
0.095238
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
fc2f713037b1ed598b3458abe358a71d787647ad
1,782
py
Python
55.jump-game.py
SYSU-TomJx/vscode-leetcode
53670e9d6655d9cf8e1f2148b49b9b28dd446cf1
[ "MIT" ]
null
null
null
55.jump-game.py
SYSU-TomJx/vscode-leetcode
53670e9d6655d9cf8e1f2148b49b9b28dd446cf1
[ "MIT" ]
null
null
null
55.jump-game.py
SYSU-TomJx/vscode-leetcode
53670e9d6655d9cf8e1f2148b49b9b28dd446cf1
[ "MIT" ]
null
null
null
# # @lc app=leetcode id=55 lang=python # # [55] Jump Game # # https://leetcode.com/problems/jump-game/description/ # # algorithms # Medium (31.35%) # Total Accepted: 241.1K # Total Submissions: 767.2K # Testcase Example: '[2,3,1,1,4]' # # Given an array of non-negative integers, you are initially positioned at the ...
23.447368
83
0.57688
263
1,782
3.882129
0.422053
0.039177
0.039177
0.052889
0.129285
0.082272
0.082272
0.082272
0.082272
0.082272
0
0.03754
0.297419
1,782
75
84
23.76
0.777955
0.81257
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0
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
1
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
fc3ae9898f95398c329b99f663f7562400ece9ca
3,256
py
Python
parlai/tasks/covid/agents.py
qli74/ParlAI
e93f6f0777adcf97ef453ea8e79e7231ccd6f7db
[ "MIT" ]
null
null
null
parlai/tasks/covid/agents.py
qli74/ParlAI
e93f6f0777adcf97ef453ea8e79e7231ccd6f7db
[ "MIT" ]
null
null
null
parlai/tasks/covid/agents.py
qli74/ParlAI
e93f6f0777adcf97ef453ea8e79e7231ccd6f7db
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # 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. from parlai.core.teachers import FbDialogTeacher, create_task_agent_from_taskname from parlai.utils.misc import warn_onc...
30.148148
81
0.65387
408
3,256
5.029412
0.330882
0.054581
0.042885
0.050682
0.474659
0.448343
0.448343
0.433236
0.376218
0.376218
0
0.002426
0.240479
3,256
107
82
30.429907
0.827335
0.123157
0
0.537313
0
0
0.100276
0
0
0
0
0
0
1
0.089552
false
0.059701
0.074627
0
0.328358
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
fc402662b739b585f1c29bb29cf9ef9e629986dc
1,235
py
Python
payfast/api.py
KearabiloeAndCompany/crowdcoin-dashboard
10d537075e35fe3a60feed0ade7fd7c5fd0fa373
[ "MIT" ]
null
null
null
payfast/api.py
KearabiloeAndCompany/crowdcoin-dashboard
10d537075e35fe3a60feed0ade7fd7c5fd0fa373
[ "MIT" ]
4
2021-06-10T18:28:40.000Z
2022-03-11T23:15:01.000Z
payfast/api.py
KearabiloeAndCompany/crowdcoin-dashboard
10d537075e35fe3a60feed0ade7fd7c5fd0fa373
[ "MIT" ]
null
null
null
""" This module can be used without django """ from hashlib import md5 import urllib2 import logging from urllib import urlencode POSTBACK_URL = '/eng/query/validate' POSTBACK_SERVER = 'https://www.payfast.co.za' def _values_to_encode(data): return [ (k, unicode(data[k]).strip().encode('utf8'),) f...
26.847826
67
0.682591
162
1,235
5.037037
0.450617
0.053922
0.051471
0.044118
0.058824
0
0
0
0
0
0
0.006198
0.216194
1,235
45
68
27.444444
0.836777
0.2
0
0.068966
0
0
0.07431
0
0
0
0
0
0
1
0.137931
false
0
0.137931
0.034483
0.517241
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
fc466e597e8a7eefeee017b65f173492861e6c63
2,886
py
Python
raiden/api/objects.py
vaporycommonwealth/raiden
a19446d02732a37c3d99cfd20760ea44c58ae15b
[ "MIT" ]
1
2017-11-08T11:19:14.000Z
2017-11-08T11:19:14.000Z
raiden/api/objects.py
vaporycommonwealth/raiden
a19446d02732a37c3d99cfd20760ea44c58ae15b
[ "MIT" ]
null
null
null
raiden/api/objects.py
vaporycommonwealth/raiden
a19446d02732a37c3d99cfd20760ea44c58ae15b
[ "MIT" ]
1
2017-11-08T11:19:15.000Z
2017-11-08T11:19:15.000Z
class FlatList(list): """ This class inherits from list and has the same interface as a list-type. However, there is a 'data'-attribute introduced, that is required for the encoding of the list! The fields of the encoding-Schema must match the fields of the Object to be encoded! """ @property ...
25.539823
99
0.685378
312
2,886
5.961538
0.227564
0.135484
0.169355
0.134409
0.416129
0.386022
0.332796
0.199462
0.105914
0.105914
0
0.002773
0.250173
2,886
112
100
25.767857
0.856747
0.087665
0
0.347222
0
0
0.003067
0
0
0
0
0
0
1
0.138889
false
0.069444
0
0.027778
0.361111
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
fc4ca8eb23b61d2b67a8796ced930e3653b683d1
4,164
py
Python
presto/utils/models.py
solex/presto
2e6768a443a951269bcecf27f8e1607fd157df1a
[ "BSD-3-Clause" ]
null
null
null
presto/utils/models.py
solex/presto
2e6768a443a951269bcecf27f8e1607fd157df1a
[ "BSD-3-Clause" ]
1
2017-12-14T05:20:01.000Z
2017-12-14T05:20:01.000Z
presto/utils/models.py
solex/presto
2e6768a443a951269bcecf27f8e1607fd157df1a
[ "BSD-3-Clause" ]
null
null
null
from copy import deepcopy import simplejson as json from presto.utils.fields import Field, MultipleObjectsField, FormField from presto.utils.exceptions import ValidationError def get_declared_fields(bases, attrs): """ Create a list of Model field instances from the passed in 'attrs', plus any similar fiel...
32.27907
79
0.590298
479
4,164
4.974948
0.258873
0.025178
0.020143
0.021402
0.173311
0.110365
0.076374
0.076374
0.063785
0.063785
0
0.000698
0.31172
4,164
129
80
32.27907
0.830775
0
0
0.141304
0
0
0.067107
0
0
0
0
0
0
0
null
null
0
0.043478
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
fc4ef2ac2440f091e9421c4ee57ed8c4f56336a8
2,023
py
Python
crypto_ftx/crypto_ftx.py
gsinjari/crypto_stock
4ff50c4f3bf0c5c123f5eafc2b440b8894dc8562
[ "MIT" ]
null
null
null
crypto_ftx/crypto_ftx.py
gsinjari/crypto_stock
4ff50c4f3bf0c5c123f5eafc2b440b8894dc8562
[ "MIT" ]
null
null
null
crypto_ftx/crypto_ftx.py
gsinjari/crypto_stock
4ff50c4f3bf0c5c123f5eafc2b440b8894dc8562
[ "MIT" ]
null
null
null
#!/usr/bin/python # 2021-05-08 # By Govand Sinjari # San Diego, CA, USA # File: crypto_ftx.py # Get crypto price from FTX.US # license : MIT # py version : 2.7 import urllib2, json import datetime import time request = urllib2.Request('https://www.ftx.us/api/markets/doge/usd') request.add_header('Use...
38.169811
377
0.629758
299
2,023
4.247492
0.274247
0.103937
0.070866
0.062992
0.590551
0.522047
0.479528
0.395276
0.307874
0.307874
0
0.04533
0.094909
2,023
52
378
38.903846
0.64828
0.50519
0
0
0
0
0.33435
0
0
0
0
0
0
0
null
null
0
0.15
null
null
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
1
0
0
0
0
0
0
0
0
1
fc51e64e725e5344640811aca18a0548701ffdaf
4,262
py
Python
plotly/validators/layout/_sliders.py
omridanan/plotly.py
a8d26670cba49ce15ce9b7639ae0f55a6088a825
[ "MIT" ]
null
null
null
plotly/validators/layout/_sliders.py
omridanan/plotly.py
a8d26670cba49ce15ce9b7639ae0f55a6088a825
[ "MIT" ]
null
null
null
plotly/validators/layout/_sliders.py
omridanan/plotly.py
a8d26670cba49ce15ce9b7639ae0f55a6088a825
[ "MIT" ]
1
2019-02-18T04:12:56.000Z
2019-02-18T04:12:56.000Z
import _plotly_utils.basevalidators class SlidersValidator(_plotly_utils.basevalidators.CompoundArrayValidator): def __init__(self, plotly_name='sliders', parent_name='layout', **kwargs): super(SlidersValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, ...
42.62
78
0.545049
463
4,262
4.965443
0.365011
0.042627
0.033493
0.026098
0.3097
0.274467
0.164419
0.099174
0.099174
0.063506
0
0.000405
0.419991
4,262
99
79
43.050505
0.929612
0
0
0.083333
0
0
0.907086
0.028625
0
0
0
0
0
1
0.010417
false
0
0.010417
0
0.03125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
fc51e73ac2d65fa4226c219c33676be4dbfca680
6,803
py
Python
accounts/serializers.py
kasper190/accounts_example
8548c19d955c2609a7cf78d84986250592bb52bc
[ "MIT" ]
null
null
null
accounts/serializers.py
kasper190/accounts_example
8548c19d955c2609a7cf78d84986250592bb52bc
[ "MIT" ]
null
null
null
accounts/serializers.py
kasper190/accounts_example
8548c19d955c2609a7cf78d84986250592bb52bc
[ "MIT" ]
null
null
null
from django.contrib.auth import get_user_model from django.contrib.auth.password_validation import validate_password from django.utils import timezone from .models import Token from rest_framework.exceptions import ( AuthenticationFailed, PermissionDenied, ) from rest_framework.serializers import ( CharFiel...
28.345833
83
0.598265
666
6,803
5.926426
0.175676
0.055739
0.041044
0.037243
0.591589
0.554345
0.498607
0.487712
0.420319
0.349633
0
0
0.307217
6,803
239
84
28.464435
0.837471
0.041452
0
0.619565
0
0
0.135625
0
0
0
0
0
0
1
0.054348
false
0.26087
0.032609
0
0.271739
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
fc52757ac65f7bf2ff2f460d45df50077d8658e3
23,221
py
Python
sdk/python/pulumi_azure_native/machinelearningcompute/_inputs.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/machinelearningcompute/_inputs.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/machinelearningcompute/_inputs.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities from...
40.738596
302
0.664829
2,767
23,221
5.398265
0.083845
0.093526
0.083953
0.035616
0.68414
0.527884
0.46107
0.371025
0.356698
0.30247
0
0.000504
0.231127
23,221
569
303
40.810193
0.836115
0.277464
0
0.297059
1
0
0.143688
0.058651
0
0
0
0
0
1
0.197059
false
0
0.017647
0
0.329412
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
fc5568f32d53778757e335046cb05c36adf6652c
724
py
Python
blackmamba/lib/rope/base/oi/type_hinting/interfaces.py
oz90210/blackmamba
65c82c8e99028d6fbb57098ce82d0a394df215a0
[ "MIT" ]
463
2015-01-15T08:17:42.000Z
2022-03-28T15:10:20.000Z
blackmamba/lib/rope/base/oi/type_hinting/interfaces.py
oz90210/blackmamba
65c82c8e99028d6fbb57098ce82d0a394df215a0
[ "MIT" ]
52
2015-01-06T02:43:59.000Z
2022-03-14T11:15:21.000Z
blackmamba/lib/rope/base/oi/type_hinting/interfaces.py
oz90210/blackmamba
65c82c8e99028d6fbb57098ce82d0a394df215a0
[ "MIT" ]
249
2015-01-07T22:49:49.000Z
2022-03-18T02:32:06.000Z
class ITypeHintingFactory(object): def make_param_provider(self): """ :rtype: rope.base.oi.type_hinting.providers.interfaces.IParamProvider """ raise NotImplementedError def make_return_provider(self): """ :rtype: rope.base.oi.type_hinting.providers.interfaces.I...
27.846154
82
0.650552
66
724
6.969697
0.393939
0.06087
0.113043
0.147826
0.436957
0.436957
0.436957
0.371739
0.371739
0.371739
0
0
0.251381
724
25
83
28.96
0.848708
0.38674
0
0.444444
0
0
0
0
0
0
0
0
0
1
0.444444
false
0
0
0
0.555556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
fc592f340874f770f3c481ee40a9238e46a893b9
1,245
tac
Python
docs/core/examples/simple.tac
hawkowl/twisted
c413aac3888dea2202c0dc26f978d7f88b4b837a
[ "Unlicense", "MIT" ]
1
2019-02-08T18:37:42.000Z
2019-02-08T18:37:42.000Z
docs/core/examples/simple.tac
hawkowl/twisted
c413aac3888dea2202c0dc26f978d7f88b4b837a
[ "Unlicense", "MIT" ]
5
2020-06-05T18:16:39.000Z
2022-01-13T00:45:49.000Z
docs/core/examples/simple.tac
hawkowl/twisted
c413aac3888dea2202c0dc26f978d7f88b4b837a
[ "Unlicense", "MIT" ]
1
2019-01-25T18:08:19.000Z
2019-01-25T18:08:19.000Z
# You can run this .tac file directly with: # twistd -ny simple.tac from __future__ import print_function from twisted.application import service, internet from twisted.protocols import wire from twisted.internet import protocol from twisted.python import util application = service.Application('test') s = service...
29.642857
70
0.747791
144
1,245
6.430556
0.444444
0.091793
0.077754
0.069114
0
0
0
0
0
0
0
0.01215
0.140562
1,245
41
71
30.365854
0.853271
0.053012
0
0
0
0
0.05102
0
0
0
0
0
0
0
null
null
0
0.16129
null
null
0.193548
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
fc5b307cd787302cd24457653225bc5c20c23726
4,416
py
Python
shrec16/options.py
shnhrtkyk/SO-Net
d839f3edf14520ed8deffb5b929629c21aa70133
[ "MIT" ]
1
2019-04-29T02:50:29.000Z
2019-04-29T02:50:29.000Z
shrec16/options.py
Fresh-Z/SO-Net
d798aaa8458b867a9bf6c38f2e0f0c8094a94143
[ "MIT" ]
null
null
null
shrec16/options.py
Fresh-Z/SO-Net
d798aaa8458b867a9bf6c38f2e0f0c8094a94143
[ "MIT" ]
null
null
null
import argparse import os from util import util import torch from numba import cuda class Options(): def __init__(self): self.parser = argparse.ArgumentParser() self.initialized = False def initialize(self): self.parser.add_argument('--gpu_id', type=int, default=0, help='gpu id: e.g. ...
56.615385
148
0.645607
619
4,416
4.487884
0.298869
0.104392
0.12635
0.204104
0.203024
0.111231
0.085673
0.024478
0.024478
0.024478
0
0.016575
0.180254
4,416
77
149
57.350649
0.750829
0.012455
0
0.034483
0
0
0.322396
0.017898
0
0
0
0
0
1
0.051724
false
0
0.086207
0
0.172414
0.051724
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
fc5c909bf18566bae32beb20c315782301fa8a1d
43,306
py
Python
validate/validator.py
oymo/protoc-gen-validate
ec9cd95372b9630aafba2cb4a0e448c43768e0df
[ "Apache-2.0" ]
11,628
2016-08-17T19:13:48.000Z
2022-03-31T16:14:43.000Z
validate/validator.py
oymo/protoc-gen-validate
ec9cd95372b9630aafba2cb4a0e448c43768e0df
[ "Apache-2.0" ]
16,936
2016-08-16T14:24:52.000Z
2022-03-31T23:29:12.000Z
validate/validator.py
oymo/protoc-gen-validate
ec9cd95372b9630aafba2cb4a0e448c43768e0df
[ "Apache-2.0" ]
1,724
2016-08-20T05:57:00.000Z
2022-03-31T09:55:25.000Z
import re from functools import lru_cache from validate_email import validate_email import ipaddress try: import urlparse except ImportError: import urllib.parse as urlparse import uuid import struct from jinja2 import Template import time import sys printer = "" # Well known regex mapping. regex_map = { ...
43.920892
384
0.539971
5,068
43,306
4.484215
0.06176
0.071152
0.110006
0.07366
0.661621
0.577532
0.490363
0.471046
0.374989
0.300317
0
0.009385
0.266776
43,306
985
385
43.965482
0.706327
0.014871
0
0.360603
0
0.025834
0.720079
0.14675
0
0
0
0
0
1
0.035522
false
0.005382
0.012917
0.005382
0.138859
0.005382
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
fc5f995accf4f8105216344a3410c9b7f9f247b7
1,478
py
Python
weber/application.py
vmalloc/weber-cli
0f8ebf5c763c527cd2cfe33164a192270a5f87ae
[ "BSD-3-Clause" ]
1
2015-06-02T22:50:02.000Z
2015-06-02T22:50:02.000Z
weber/application.py
vmalloc/weber-cli
0f8ebf5c763c527cd2cfe33164a192270a5f87ae
[ "BSD-3-Clause" ]
null
null
null
weber/application.py
vmalloc/weber-cli
0f8ebf5c763c527cd2cfe33164a192270a5f87ae
[ "BSD-3-Clause" ]
null
null
null
import py from flask import Flask import yaml import logbook from emport import import_file _logger = logbook.Logger(__name__) class WeberApplication(object): def __init__(self, workdir): super(WeberApplication, self).__init__() self.workdir = py.path.local(workdir) self.flask_config = ...
30.163265
94
0.663735
173
1,478
5.364162
0.358382
0.109914
0.048491
0.045259
0.047414
0
0
0
0
0
0
0.000881
0.23207
1,478
48
95
30.791667
0.81674
0
0
0
0
0
0.064276
0
0
0
0
0
0
1
0.2
false
0
0.171429
0.057143
0.514286
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
1
0
0
1
fc65483d846a07bb35c82cbb3b7a0e309e55ee14
375
py
Python
wcics/utils/files.py
CS-Center/CS-Center
3cd09f29d214406e6618fc67b9faf59a18f3f11b
[ "MIT" ]
null
null
null
wcics/utils/files.py
CS-Center/CS-Center
3cd09f29d214406e6618fc67b9faf59a18f3f11b
[ "MIT" ]
6
2019-12-06T18:06:28.000Z
2021-12-01T20:19:05.000Z
wcics/utils/files.py
CS-Center/CS-Center
3cd09f29d214406e6618fc67b9faf59a18f3f11b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Return the contents of a file def load_file(filename): with open(filename, "r") as f: return f.read() # Write contents to a file def write_file(filename, content): with open(filename, "w+") as f: f.write(content) # Append contents to a file def append_file(filename, content): ...
22.058824
35
0.664
60
375
4.1
0.383333
0.060976
0.097561
0.121951
0.560976
0.284553
0
0
0
0
0
0.003322
0.197333
375
16
36
23.4375
0.813953
0.272
0
0.222222
0
0
0.018657
0
0
0
0
0
0
1
0.333333
false
0
0
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
1
0
0
0
0
0
0
0
1
fc6ac7f0d21d17450eb7f27dfe7dc179a8deec18
1,431
py
Python
webbreaker/common/api_response_helper.py
matt-fevold/webbreaker
b500fc620ebba03a27321c8f832ab77bb760b9c5
[ "MIT" ]
7
2018-12-20T19:18:43.000Z
2019-12-10T15:03:41.000Z
webbreaker/common/api_response_helper.py
matt-fevold/webbreaker
b500fc620ebba03a27321c8f832ab77bb760b9c5
[ "MIT" ]
5
2019-04-02T17:07:44.000Z
2020-02-17T07:08:11.000Z
webbreaker/common/api_response_helper.py
matt-fevold/webbreaker
b500fc620ebba03a27321c8f832ab77bb760b9c5
[ "MIT" ]
7
2019-01-10T10:40:55.000Z
2022-03-13T14:08:37.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys from webbreaker.common.webbreakerlogger import Logger from exitstatus import ExitStatus class APIHelper: def __init__(self): pass def check_for_response_errors(self, response, error_message=None): """ Check the response for an...
30.446809
99
0.650594
172
1,431
5.232558
0.406977
0.093333
0.036667
0.042222
0.266667
0.191111
0.191111
0.102222
0.102222
0.102222
0
0.006724
0.272537
1,431
46
100
31.108696
0.857829
0.262753
0
0.26087
0
0
0.076684
0
0
0
0
0
0
1
0.173913
false
0.086957
0.130435
0
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
1
0
0
0
0
0
1
fc714896d6262f65075755d0a55ee4da565fc020
1,299
py
Python
docs/DSDC/miniprez/OLD_MINIPREZ/tests/test_markdown.py
thoppe/Presentation_Topics
e9aba07e9ab087b44e6044c6082ba8e873a9b4fd
[ "MIT" ]
2
2018-12-03T17:03:19.000Z
2018-12-10T16:42:39.000Z
docs/DSDC/miniprez/OLD_MINIPREZ/tests/test_markdown.py
thoppe/Presentation_Topics_in_NLP
e9aba07e9ab087b44e6044c6082ba8e873a9b4fd
[ "MIT" ]
1
2019-02-19T15:12:19.000Z
2019-02-19T15:12:19.000Z
docs/DSDC/miniprez/OLD_MINIPREZ/tests/test_markdown.py
thoppe/Presentation_Topics_in_NLP
e9aba07e9ab087b44e6044c6082ba8e873a9b4fd
[ "MIT" ]
1
2019-02-19T12:51:37.000Z
2019-02-19T12:51:37.000Z
from miniprez import inline_markdown from nose.tools import assert_equal P = inline_markdown.Inline_Markdown_Paser() def test_bold(): a = "This is **bold** text" b = "This is <strong>bold</strong> text" assert_equal(P(a), b) def test_emph(): a = "This is _italic_ text" b = "This is <em>italic</...
23.618182
82
0.615858
213
1,299
3.619718
0.258216
0.108949
0.140078
0.13489
0.476005
0.377432
0.333333
0.251621
0.18677
0
0
0.008738
0.207082
1,299
54
83
24.055556
0.739806
0
0
0.297297
0
0.027027
0.408006
0.070824
0
0
0
0
0.243243
1
0.216216
false
0
0.054054
0
0.27027
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
fc8019a2db6a7f8dcfe2658d442396cf5bc837e3
2,392
py
Python
tests/data/program_analysis/select_case/select02.py
rsulli55/automates
1647a8eef85c4f03086a10fa72db3b547f1a0455
[ "Apache-2.0" ]
17
2018-12-19T16:32:38.000Z
2021-10-05T07:58:15.000Z
tests/data/program_analysis/select_case/select02.py
rsulli55/automates
1647a8eef85c4f03086a10fa72db3b547f1a0455
[ "Apache-2.0" ]
183
2018-12-20T17:03:01.000Z
2022-02-23T22:21:42.000Z
tests/data/program_analysis/select_case/select02.py
rsulli55/automates
1647a8eef85c4f03086a10fa72db3b547f1a0455
[ "Apache-2.0" ]
5
2019-01-04T22:37:49.000Z
2022-01-19T17:34:16.000Z
import sys import os from typing import List import math from automates.program_analysis.for2py.format import * from automates.program_analysis.for2py.arrays import * from automates.program_analysis.for2py.static_save import * from automates.program_analysis.for2py.strings import * from automates.program_analysis.for2p...
39.213115
97
0.573579
319
2,392
4.097179
0.216301
0.048967
0.114767
0.160673
0.61821
0.538638
0.41622
0.41622
0.41622
0.41622
0
0.045149
0.314799
2,392
60
98
39.866667
0.752288
0.004599
0
0.326923
0
0
0.071459
0
0
0
0
0
0
1
0.019231
false
0
0.269231
0
0.288462
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
fc82cd9f63037d3505c7cfde2f3792d018a4d192
418
py
Python
src/basics/variables.py
estherthetester/learning-python3-tdd
793f630cbcae0c5cb0d42f121f4bd4fb24a46a8f
[ "MIT" ]
null
null
null
src/basics/variables.py
estherthetester/learning-python3-tdd
793f630cbcae0c5cb0d42f121f4bd4fb24a46a8f
[ "MIT" ]
null
null
null
src/basics/variables.py
estherthetester/learning-python3-tdd
793f630cbcae0c5cb0d42f121f4bd4fb24a46a8f
[ "MIT" ]
null
null
null
def test_split(): assert split(10) == 2 def test_string(): city = "String" assert type(city) == str def test_float(): price = 3.45 assert type(price) == float def test_int(): high_score = 1 assert type(high_score) == int def test_boolean(): is_having_fun = True assert type(is...
14.413793
38
0.619617
60
418
4.133333
0.483333
0.141129
0.08871
0
0
0
0
0
0
0
0
0.025974
0.263158
418
28
39
14.928571
0.779221
0
0
0
0
0
0.014354
0
0
0
0
0
0.277778
1
0.333333
false
0
0
0
0.388889
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
fc915fc7f223066bde77875f7c882bb5555b74e6
1,029
py
Python
metameasure/test_metameasure.py
analyticsdept/py-metameasure
2b8812c80a218744a62e1c2fcf7fe0bcbc816735
[ "MIT" ]
null
null
null
metameasure/test_metameasure.py
analyticsdept/py-metameasure
2b8812c80a218744a62e1c2fcf7fe0bcbc816735
[ "MIT" ]
null
null
null
metameasure/test_metameasure.py
analyticsdept/py-metameasure
2b8812c80a218744a62e1c2fcf7fe0bcbc816735
[ "MIT" ]
null
null
null
from metameasure import MetaMeasure import unittest class TestMetaMeasure(unittest.TestCase): def setUp(self): self.m = MetaMeasure(max_size_bytes=10000, reset_when_threshold_exceeded=True) def test_byte_measure(self): d = {} self.assertEqual(self.m.measure(d), 64) def test_max_by...
27.810811
86
0.683188
136
1,029
4.889706
0.294118
0.06015
0.066165
0.114286
0.381955
0.309774
0.111278
0
0
0
0
0.061805
0.2138
1,029
37
87
27.810811
0.760198
0
0
0
0
0
0.007767
0
0
0
0
0
0.269231
1
0.307692
false
0
0.076923
0
0.423077
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
fc91e668655b3e48baf3017c83d3127a0c7440bd
1,172
py
Python
frontwork/urls.py
DefensePoint-Snyk-Test/js-teachers-portal
57a74f2774a3ef41d09bd11c1488b0bae5e9aaa7
[ "MIT" ]
2
2018-05-27T00:05:34.000Z
2018-08-10T08:26:11.000Z
frontwork/urls.py
DefensePoint-Snyk-Test/js-teachers-portal
57a74f2774a3ef41d09bd11c1488b0bae5e9aaa7
[ "MIT" ]
1
2018-08-22T21:12:43.000Z
2018-08-22T21:12:43.000Z
frontwork/urls.py
DefensePoint-Snyk-Test/js-teachers-portal
57a74f2774a3ef41d09bd11c1488b0bae5e9aaa7
[ "MIT" ]
2
2018-10-04T07:55:59.000Z
2019-09-01T19:36:41.000Z
from django.conf.urls import url from django.contrib.auth import views as auth_views from . import views from portal.models import Profile urlpatterns = [ # url(r'^$', views.Index , name='index'), # url(r'^posts/(?P<post_id>[0-9]+)/$',views.PostDetail, name='post_detail'), # url(r'^category/(?P<category>([\w-])+)/$...
50.956522
100
0.637372
154
1,172
4.785714
0.344156
0.081411
0.036635
0.037992
0.189959
0.189959
0
0
0
0
0
0.001869
0.087031
1,172
22
101
53.272727
0.686916
0.715017
0
0
0
0
0.16875
0.11875
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
fc9545e1001c5f64f2afb13232596e90325945fa
3,818
py
Python
getpaid/backends/__init__.py
PSzczepanski996/django-getpaid
d278ce95dc7a4f9a3eac89a61c591ee81eab481d
[ "MIT" ]
null
null
null
getpaid/backends/__init__.py
PSzczepanski996/django-getpaid
d278ce95dc7a4f9a3eac89a61c591ee81eab481d
[ "MIT" ]
null
null
null
getpaid/backends/__init__.py
PSzczepanski996/django-getpaid
d278ce95dc7a4f9a3eac89a61c591ee81eab481d
[ "MIT" ]
null
null
null
from django.conf import settings from django.core.exceptions import ImproperlyConfigured from django.template.base import Template from django.template.context import Context import six from getpaid.utils import get_backend_settings class PaymentProcessorBase(object): """ Base for all payment processors. It s...
38.959184
118
0.678628
474
3,818
5.379747
0.415612
0.035294
0.021176
0.023529
0.022745
0.022745
0.022745
0
0
0
0
0.000702
0.253536
3,818
97
119
39.360825
0.894035
0.310634
0
0.1
0
0
0.086957
0.013587
0
0
0
0
0
1
0.15
false
0
0.175
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
fc9946ffbca443c5caf68cfb9ec3a7f05d109533
978
py
Python
Day 06/part1.py
BytewaveMLP/Advent-of-Code
45ad50c34a1e71a795a79dfb6bcdfaece17143d8
[ "MIT" ]
null
null
null
Day 06/part1.py
BytewaveMLP/Advent-of-Code
45ad50c34a1e71a795a79dfb6bcdfaece17143d8
[ "MIT" ]
4
2021-06-08T20:40:50.000Z
2022-03-12T00:08:02.000Z
Day 06/part1.py
BytewaveMLP/Advent-of-Code-2019
45ad50c34a1e71a795a79dfb6bcdfaece17143d8
[ "MIT" ]
null
null
null
import sys import os class OrbitingBody(): def __init__(self, name): self.name = name self.parent = None self.children = [] def set_parent(self, parent): self.parent = parent def add_child(self, child): self.children.append(child) if len(sys.argv) < 2: print(f'usage: {os.path.basename(sys.argv[1])} ...
23.285714
66
0.707566
150
978
4.473333
0.326667
0.208644
0.178838
0.09389
0.128167
0.128167
0.128167
0.128167
0
0
0
0.019025
0.140082
978
42
67
23.285714
0.778835
0
0
0
0
0
0.053115
0.031665
0
0
0
0
0
1
0.096774
false
0
0.064516
0
0.193548
0.064516
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
fc9db42916dbb65942565d85e810eed855e11887
301
py
Python
prepare_rescan.py
hclivess/ctez_stats
45dedc77f7cffb201a0c836c9409cec42fb64eec
[ "MIT" ]
null
null
null
prepare_rescan.py
hclivess/ctez_stats
45dedc77f7cffb201a0c836c9409cec42fb64eec
[ "MIT" ]
null
null
null
prepare_rescan.py
hclivess/ctez_stats
45dedc77f7cffb201a0c836c9409cec42fb64eec
[ "MIT" ]
null
null
null
import json with open("database.json", "r") as database_in: database = json.loads(database_in.read()) database["stats"]["last_block"] = 1793972 with open("database.json", "w") as database_out: database_out.write(json.dumps(database)) print("Rescan reset request saved to the database")
27.363636
51
0.717608
43
301
4.906977
0.581395
0.170616
0.151659
0.189573
0
0
0
0
0
0
0
0.026923
0.136213
301
11
51
27.363636
0.784615
0
0
0
0
0
0.281457
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0.142857
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
fc9f6883f3df26ac1b1117053877ee4a63cd9a72
907
py
Python
messages/GetActiveHostsResponseMessage.py
zadjii/nebula
50c4ec019c9f7eb15fe105a6c53a8a12880e281c
[ "MIT" ]
2
2020-04-15T11:20:59.000Z
2021-05-12T13:01:36.000Z
messages/GetActiveHostsResponseMessage.py
zadjii/nebula
50c4ec019c9f7eb15fe105a6c53a8a12880e281c
[ "MIT" ]
1
2018-06-05T04:48:56.000Z
2018-06-05T04:48:56.000Z
messages/GetActiveHostsResponseMessage.py
zadjii/nebula
50c4ec019c9f7eb15fe105a6c53a8a12880e281c
[ "MIT" ]
1
2018-08-15T06:45:46.000Z
2018-08-15T06:45:46.000Z
# last generated 2016-04-10 21:56:22.756000 from messages import BaseMessage from msg_codes import GET_ACTIVE_HOSTS_RESPONSE as GET_ACTIVE_HOSTS_RESPONSE __author__ = 'Mike' class GetActiveHostsResponseMessage(BaseMessage): def __init__(self, cloud=None): # type: (Cloud) -> None super(GetActiveHo...
30.233333
76
0.662624
106
907
5.349057
0.415094
0.088183
0.074074
0.116402
0
0
0
0
0
0
0
0.02924
0.245865
907
29
77
31.275862
0.799708
0.06946
0
0
1
0
0.029762
0
0
0
0
0
0
1
0.095238
false
0
0.095238
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
fca2e82aff805a5dbb3984e7c4e563ba358961bd
740
py
Python
django_changeset/migrations/0004_object_references.py
beachmachine/django-changeset
9ce8edbcbdf9d721c683f6890a8ee76486380ded
[ "BSD-3-Clause" ]
7
2016-04-29T19:46:43.000Z
2020-03-30T16:19:14.000Z
django_changeset/migrations/0004_object_references.py
beachmachine/django-changeset
9ce8edbcbdf9d721c683f6890a8ee76486380ded
[ "BSD-3-Clause" ]
3
2019-06-03T12:35:16.000Z
2021-10-15T07:31:56.000Z
django_changeset/migrations/0004_object_references.py
beachmachine/django-changeset
9ce8edbcbdf9d721c683f6890a8ee76486380ded
[ "BSD-3-Clause" ]
7
2020-01-08T09:13:33.000Z
2020-10-09T12:05:31.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.7 on 2017-11-12 17:08 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('django_changeset', '0003_restore_soft_delete'), ] operations = [ migrations...
28.461538
109
0.632432
82
740
5.5
0.573171
0.088692
0.079823
0.097561
0.341463
0.217295
0.217295
0.217295
0.217295
0.217295
0
0.037838
0.25
740
25
110
29.6
0.774775
0.091892
0
0.222222
1
0
0.146487
0.035874
0
0
0
0
0
1
0
false
0
0.111111
0
0.277778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
fca791672456ea10850e1d83a05170651f533fae
25,637
py
Python
plugins/modules/oci_optimizer_profile.py
LaudateCorpus1/oci-ansible-collection
2b1cd87b4d652a97c1ca752cfc4fdc4bdb37a7e7
[ "Apache-2.0" ]
null
null
null
plugins/modules/oci_optimizer_profile.py
LaudateCorpus1/oci-ansible-collection
2b1cd87b4d652a97c1ca752cfc4fdc4bdb37a7e7
[ "Apache-2.0" ]
null
null
null
plugins/modules/oci_optimizer_profile.py
LaudateCorpus1/oci-ansible-collection
2b1cd87b4d652a97c1ca752cfc4fdc4bdb37a7e7
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # Copyright (c) 2020, 2022 Oracle and/or its affiliates. # This software is made available to you under the terms of the GPL 3.0 license or the Apache 2.0 license. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # Apache License v2.0 # See LICENSE.TXT for d...
37.868538
160
0.570075
2,577
25,637
5.461777
0.126892
0.015915
0.02778
0.034316
0.728384
0.692575
0.656838
0.609876
0.581385
0.558863
0
0.008542
0.356126
25,637
676
161
37.924556
0.844127
0.017202
0
0.614007
0
0.021173
0.699412
0.075048
0
0
0
0
0
1
0.02443
false
0.001629
0.013029
0.014658
0.063518
0.001629
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
5d830da0d558dfc24294e5a5e6e55835226b68c8
2,005
py
Python
deepdream/deep_frames.py
tarun-bisht/deepdream
b62b1b1f377d421d1d695b2c3c2fe02eaab6f700
[ "MIT" ]
null
null
null
deepdream/deep_frames.py
tarun-bisht/deepdream
b62b1b1f377d421d1d695b2c3c2fe02eaab6f700
[ "MIT" ]
null
null
null
deepdream/deep_frames.py
tarun-bisht/deepdream
b62b1b1f377d421d1d695b2c3c2fe02eaab6f700
[ "MIT" ]
null
null
null
from DeepDreaming import DeepDream,array_to_img,load_image import os import argparse parser=argparse.ArgumentParser(description="Generate Deep Dream Image Frames for generating video ") parser.add_argument("-d","--dream",required=True,help="Name of Dream to create. Should be folder name inside dream folder which shoul...
42.659574
158
0.72818
345
2,005
4.052174
0.307246
0.04721
0.050072
0.075107
0.328326
0.283977
0.243205
0.215308
0.214592
0.168813
0
0.012557
0.126185
2,005
46
159
43.586957
0.785388
0
0
0.111111
1
0.055556
0.340319
0
0
0
0
0
0.055556
1
0
false
0
0.083333
0
0.083333
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
5d834fc698442002faf54b1812c0d1db45d9006a
1,242
py
Python
flask_mongoengine/json.py
joaoTrevizoli/flask-mongoengine
329c8a7ade99a39bdbff54e0c045e97df99249b5
[ "BSD-3-Clause" ]
675
2015-01-07T06:53:15.000Z
2022-03-22T12:45:12.000Z
flask_mongoengine/json.py
joaoTrevizoli/flask-mongoengine
329c8a7ade99a39bdbff54e0c045e97df99249b5
[ "BSD-3-Clause" ]
270
2015-01-11T17:53:04.000Z
2022-03-23T17:46:58.000Z
flask_mongoengine/json.py
joaoTrevizoli/flask-mongoengine
329c8a7ade99a39bdbff54e0c045e97df99249b5
[ "BSD-3-Clause" ]
216
2015-01-05T13:03:09.000Z
2022-02-03T15:16:30.000Z
from bson import json_util from flask.json import JSONEncoder from mongoengine.base import BaseDocument from mongoengine.queryset import QuerySet def _make_encoder(superclass): class MongoEngineJSONEncoder(superclass): """ A JSONEncoder which provides serialization of MongoEngine documents...
31.846154
71
0.720612
149
1,242
5.85906
0.47651
0.050401
0.032073
0.041237
0.064147
0.064147
0
0
0
0
0
0
0.225443
1,242
38
72
32.684211
0.907484
0.365539
0
0
0
0
0
0
0
0
0
0
0
1
0.1875
false
0
0.25
0
0.75
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
5d898d42833f0fbfec78050881a2f2020017ef0d
5,490
py
Python
tests/tests_queue/test_add_to_queue.py
MarkusVFX/simbatch
0abdc12f9aa5e1405b9c22362576eb5874ec5b6c
[ "MIT" ]
5
2017-11-20T23:57:28.000Z
2022-03-07T03:59:30.000Z
tests/tests_queue/test_add_to_queue.py
MarkusVFX/simbatch
0abdc12f9aa5e1405b9c22362576eb5874ec5b6c
[ "MIT" ]
1
2017-11-28T01:34:56.000Z
2017-11-28T01:34:56.000Z
tests/tests_queue/test_add_to_queue.py
MarkusVFX/simbatch
0abdc12f9aa5e1405b9c22362576eb5874ec5b6c
[ "MIT" ]
4
2017-11-28T01:08:59.000Z
2020-02-15T12:31:33.000Z
from simbatch.core import core from simbatch.core import settings import pytest import os @pytest.fixture(scope="module") def sib(): # TODO pytest-datadir pytest-datafiles vs ( path.dirname( path.realpath(sys.argv[0]) ) settings_file = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) +...
40.367647
119
0.71184
930
5,490
3.829032
0.168817
0.062061
0.051109
0.074698
0.644201
0.543948
0.513901
0.495928
0.489469
0.489469
0
0.035815
0.160838
5,490
135
120
40.666667
0.737139
0.094718
0
0.287356
0
0.011494
0.115556
0
0
0
0
0.007407
0.218391
0
null
null
0
0.045977
null
null
0.149425
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
5d8cb8d3a2131aef43dff5f8fdb8c3c4efc28d0a
838
py
Python
tests/shared/nlu/training_data/test_lookup_tables_parser.py
fintzd/rasa
6359be5509c7d87cd29c2ab5149bc45e843fea85
[ "Apache-2.0" ]
9,701
2019-04-16T15:46:27.000Z
2022-03-31T11:52:18.000Z
tests/shared/nlu/training_data/test_lookup_tables_parser.py
fintzd/rasa
6359be5509c7d87cd29c2ab5149bc45e843fea85
[ "Apache-2.0" ]
6,420
2019-04-16T15:58:22.000Z
2022-03-31T17:54:35.000Z
tests/shared/nlu/training_data/test_lookup_tables_parser.py
fintzd/rasa
6359be5509c7d87cd29c2ab5149bc45e843fea85
[ "Apache-2.0" ]
3,063
2019-04-16T15:23:52.000Z
2022-03-31T00:01:12.000Z
import pytest import rasa.shared.nlu.training_data.lookup_tables_parser as lookup_tables_parser def test_add_item_to_lookup_tables(): lookup_item_title = "additional_currencies" lookup_examples = ["Peso", "Euro", "Dollar"] lookup_tables = [] for example in lookup_examples: lookup_tables_par...
28.896552
86
0.73031
104
838
5.394231
0.346154
0.278075
0.160428
0.106952
0.588235
0.588235
0.479501
0.417112
0.192513
0.192513
0
0
0.180191
838
28
87
29.928571
0.816594
0
0
0.222222
0
0
0.113365
0.050119
0
0
0
0
0.055556
1
0.111111
false
0
0.111111
0
0.222222
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
5d8e905a45af8e3698a4869a7befdaf669c13d3b
3,337
py
Python
keycodes/key/keycodes.py
jonchun/ptoys-mapper
a2dde413d37e897ec41b69ac979e538afb7435f0
[ "MIT" ]
null
null
null
keycodes/key/keycodes.py
jonchun/ptoys-mapper
a2dde413d37e897ec41b69ac979e538afb7435f0
[ "MIT" ]
null
null
null
keycodes/key/keycodes.py
jonchun/ptoys-mapper
a2dde413d37e897ec41b69ac979e538afb7435f0
[ "MIT" ]
null
null
null
from typing import Iterable, Union class KeyCode: def __init__(self, key: str, code: int) -> None: self.key: str = key self.code: int = code def __hash__(self) -> int: return hash((self.key, self.code)) def __eq__(self, other) -> bool: return hash(self) == hash(other) ...
31.481132
88
0.541205
373
3,337
4.538874
0.203753
0.090372
0.032487
0.024808
0.53987
0.464855
0.399882
0.366804
0.258712
0.258712
0
0.000922
0.350015
3,337
105
89
31.780952
0.779622
0.093797
0
0.363636
0
0
0.066025
0
0
0
0
0
0
1
0.194805
false
0.012987
0.012987
0.103896
0.415584
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
5d8f199f56a33efe6cc2f7170a6fd00f36657bf2
729
py
Python
ball_following_v2.0/Train/fixer.py
Sinedko/Ball_following
08c52eb821290251bbf2f4fd8dbad2da4296579b
[ "MIT" ]
null
null
null
ball_following_v2.0/Train/fixer.py
Sinedko/Ball_following
08c52eb821290251bbf2f4fd8dbad2da4296579b
[ "MIT" ]
null
null
null
ball_following_v2.0/Train/fixer.py
Sinedko/Ball_following
08c52eb821290251bbf2f4fd8dbad2da4296579b
[ "MIT" ]
null
null
null
import re def createTrainSet(index,dest): jnts = open("raw/"+dest+"/angle" + str(index) + ".dat") joints = jnts.readline().split() joiner = list() for s in joints: m = re.findall("[-+]?\d+[\.]?\d*", s) if m : joiner.append(m[0]) jnts = open("raw/"+dest+"/angle" ...
21.441176
64
0.484225
82
729
4.195122
0.560976
0.052326
0.063953
0.087209
0.180233
0.180233
0.180233
0.180233
0
0
0
0.022822
0.33882
729
34
65
21.441176
0.690871
0.038409
0
0
0
0
0.136947
0
0
0
0
0
0
0
null
null
0
0.045455
null
null
0.045455
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
5d9048cdbc244f2947aaabcdeac38eb756e86b32
8,633
py
Python
RC49/CcGAN-based_KD/models/CcGAN.py
UBCDingXin/cGAN-KD
c32a4b014fe024222101ff11d63de518448f7f8d
[ "MIT" ]
1
2021-08-21T09:19:17.000Z
2021-08-21T09:19:17.000Z
RC49/CcGAN-based_KD/models/CcGAN.py
UBCDingXin/cGAN-KD
c32a4b014fe024222101ff11d63de518448f7f8d
[ "MIT" ]
null
null
null
RC49/CcGAN-based_KD/models/CcGAN.py
UBCDingXin/cGAN-KD
c32a4b014fe024222101ff11d63de518448f7f8d
[ "MIT" ]
2
2021-04-15T08:23:49.000Z
2021-09-15T06:52:25.000Z
''' https://github.com/christiancosgrove/pytorch-spectral-normalization-gan chainer: https://github.com/pfnet-research/sngan_projection ''' # ResNet generator and discriminator import torch from torch import nn import torch.nn.functional as F # from spectral_normalization import SpectralNorm import numpy as np from ...
35.236735
96
0.613692
1,165
8,633
4.361373
0.133047
0.036213
0.030703
0.048612
0.458178
0.405235
0.371187
0.336351
0.306829
0.283606
0
0.039505
0.261091
8,633
244
97
35.381148
0.757015
0.06313
0
0.346154
0
0
0.000992
0
0
0
0
0
0
1
0.065934
false
0.098901
0.027473
0.010989
0.159341
0.010989
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
5d914c11fc38920dcb3908522a671001dc535163
663
py
Python
flaskr/models.py
BBottoml/HackIllinois-Proj-V2
89e391c67923dc6c17e64d5d68929ab7755c561f
[ "MIT" ]
5
2020-03-01T05:05:09.000Z
2020-04-06T01:23:56.000Z
flaskr/models.py
BBottoml/HackIllinois-Proj-V2
89e391c67923dc6c17e64d5d68929ab7755c561f
[ "MIT" ]
4
2021-09-08T21:23:41.000Z
2022-03-29T22:28:47.000Z
flaskr/models.py
BBottoml/HackIllinois-Proj-V2
89e391c67923dc6c17e64d5d68929ab7755c561f
[ "MIT" ]
1
2020-08-12T11:11:40.000Z
2020-08-12T11:11:40.000Z
from sqlalchemy import Column, Integer, String, ForeignKey, Date from sqlalchemy.orm import relationship from flask_appbuilder import Model class User(Model): id = Column(Integer,primary_key=True,autoincrement=True) user = Column(String(128)) bot = relationship("Bot") class Bot(Model): id = Column(Int...
31.571429
64
0.737557
85
663
5.635294
0.364706
0.162839
0.125261
0.125261
0.319415
0.319415
0.319415
0.319415
0.319415
0
0
0.021429
0.155354
663
20
65
33.15
0.833929
0
0
0.176471
0
0
0.00905
0
0
0
0
0
0
1
0
false
0
0.176471
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
5d91ab2ad1631f119f06655ecf1e62821a3569a7
8,806
py
Python
tools/visualize.py
YoWhatever/pypriv
967b6b90e78c57d187a8d13d7392fe89008cb9b7
[ "MIT" ]
null
null
null
tools/visualize.py
YoWhatever/pypriv
967b6b90e78c57d187a8d13d7392fe89008cb9b7
[ "MIT" ]
null
null
null
tools/visualize.py
YoWhatever/pypriv
967b6b90e78c57d187a8d13d7392fe89008cb9b7
[ "MIT" ]
null
null
null
import inspect, os import numpy as np import cv2 import math from PIL import Image, ImageDraw, ImageFont this_file = inspect.getfile(inspect.currentframe()) file_pth = os.path.abspath(os.path.dirname(this_file)) FONT10 = ImageFont.truetype(file_pth + '/../data/Arial.ttf', 10) FONT15 = ImageFont.truetype(file_pth + '/...
48.384615
120
0.524415
1,340
8,806
3.342537
0.138806
0.096897
0.039294
0.021433
0.624916
0.566198
0.524894
0.448091
0.435588
0.391159
0
0.083974
0.276516
8,806
181
121
48.651934
0.619055
0.011697
0
0.308725
0
0
0.039549
0
0
0
0
0
0
0
null
null
0
0.033557
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
5d9207a605ac0c9ab22bd530d4b7a30ab98352d8
515
py
Python
Olympiad Solutions/URI/1452.py
Ashwanigupta9125/code-DS-ALGO
49f6cf7d0c682da669db23619aef3f80697b352b
[ "MIT" ]
36
2019-12-27T08:23:08.000Z
2022-01-24T20:35:47.000Z
Olympiad Solutions/URI/1452.py
Ashwanigupta9125/code-DS-ALGO
49f6cf7d0c682da669db23619aef3f80697b352b
[ "MIT" ]
10
2019-11-13T02:55:18.000Z
2021-10-13T23:28:09.000Z
Olympiad Solutions/URI/1452.py
Ashwanigupta9125/code-DS-ALGO
49f6cf7d0c682da669db23619aef3f80697b352b
[ "MIT" ]
53
2020-08-15T11:08:40.000Z
2021-10-09T15:51:38.000Z
# Ivan Carvalho # Solution to https://www.urionlinejudge.com.br/judge/problems/view/1452 #!/usr/bin/env python2.7 # -*- coding : utf-8 -*- while True: n,m = [int(i) for i in raw_input().split()] if n == 0 and m == 0: break servidores = [] usuarios = [] conexoes = 0 for i in xrange(n): servidores.append(set(ra...
24.52381
72
0.646602
84
515
3.928571
0.547619
0.048485
0.072727
0.072727
0.175758
0.175758
0.175758
0.175758
0.175758
0
0
0.03066
0.176699
515
20
73
25.75
0.747642
0.252427
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0.0625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
5d931a1991ff1fa3cc8b1232add91eab532391fe
1,231
py
Python
proxy/plugin/__init__.py
certusone/proxy-model.py
9b6babbc4b78cc8e51e7286ea27ad724662c4f0f
[ "BSD-3-Clause" ]
4
2021-09-10T21:29:27.000Z
2021-11-17T01:43:58.000Z
proxy/plugin/__init__.py
certusone/proxy-model.py
9b6babbc4b78cc8e51e7286ea27ad724662c4f0f
[ "BSD-3-Clause" ]
339
2021-04-28T06:38:54.000Z
2022-03-31T11:16:36.000Z
proxy/plugin/__init__.py
certusone/proxy-model.py
9b6babbc4b78cc8e51e7286ea27ad724662c4f0f
[ "BSD-3-Clause" ]
5
2021-08-17T14:30:28.000Z
2022-01-18T07:19:47.000Z
# -*- coding: utf-8 -*- """ proxy.py ~~~~~~~~ ⚡⚡⚡ Fast, Lightweight, Pluggable, TLS interception capable proxy server focused on Network monitoring, controls & Application development, testing, debugging. :copyright: (c) 2013-present by Abhinav Singh and contributors. :license: BSD, see LICENSE...
34.194444
86
0.783916
114
1,231
8.298246
0.649123
0.093023
0.027484
0
0
0
0
0
0
0
0
0.004726
0.140536
1,231
35
87
35.171429
0.886578
0.251015
0
0
0
0
0.249438
0.111236
0
0
0
0
0
1
0
false
0
0.458333
0
0.458333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
5d99d9c7ce501dde1b09e4f12342c0f806b48462
216
py
Python
lectures/1_Basics/convert_niceprint.py
mwaidele/python_lecture_KIS2020
9688d7ef63cae0d18e9cd73474980c9819bbadaa
[ "MIT" ]
null
null
null
lectures/1_Basics/convert_niceprint.py
mwaidele/python_lecture_KIS2020
9688d7ef63cae0d18e9cd73474980c9819bbadaa
[ "MIT" ]
null
null
null
lectures/1_Basics/convert_niceprint.py
mwaidele/python_lecture_KIS2020
9688d7ef63cae0d18e9cd73474980c9819bbadaa
[ "MIT" ]
null
null
null
def convert(s): s_split = s.split(' ') return s_split def niceprint(s): for i, elm in enumerate(s): print('Element #', i + 1, ' = ', elm, sep='') return None c1 = 10 c2 = 's'
14.4
53
0.490741
31
216
3.354839
0.612903
0.173077
0
0
0
0
0
0
0
0
0
0.035211
0.342593
216
14
54
15.428571
0.697183
0
0
0
0
0
0.064815
0
0
0
0
0
0
1
0.222222
false
0
0
0
0.444444
0.222222
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
5da114a529702d8952c244ef7e07d1cb3a1128f5
665
py
Python
discordnotify/app_settings.py
buahaha/aa-discordnotify
09bbe146f00471cf6d51846c34a9fed26d9ebacf
[ "MIT" ]
null
null
null
discordnotify/app_settings.py
buahaha/aa-discordnotify
09bbe146f00471cf6d51846c34a9fed26d9ebacf
[ "MIT" ]
null
null
null
discordnotify/app_settings.py
buahaha/aa-discordnotify
09bbe146f00471cf6d51846c34a9fed26d9ebacf
[ "MIT" ]
null
null
null
from django.conf import settings # Port used to communicate with Discord Proxy DISCORDNOTIFY_DISCORDPROXY_PORT = getattr( settings, "DISCORDNOTIFY_DISCORDPROXY_PORT", 50051 ) # When set to True, only superusers will be get their notifications forwarded DISCORDNOTIFY_SUPERUSER_ONLY = getattr(settings, "DISCORDNOTI...
39.117647
87
0.822556
85
665
6.247059
0.517647
0.112994
0.210923
0.094162
0
0
0
0
0
0
0
0.008591
0.124812
665
16
88
41.5625
0.90378
0.403008
0
0
0
0
0.276215
0.276215
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
5da230b9f3ad7bd4b110230c009fffd0e2b8c10a
4,873
py
Python
py06_random_forrest.py
mike-petrut/dryland-crop-performance-modelling-project
2d991d3f67ba98ff59b5f1f656d9178d7c78fe93
[ "MIT" ]
null
null
null
py06_random_forrest.py
mike-petrut/dryland-crop-performance-modelling-project
2d991d3f67ba98ff59b5f1f656d9178d7c78fe93
[ "MIT" ]
null
null
null
py06_random_forrest.py
mike-petrut/dryland-crop-performance-modelling-project
2d991d3f67ba98ff59b5f1f656d9178d7c78fe93
[ "MIT" ]
null
null
null
#%% from datetime import datetime import pandas as pd import numpy as np from pandas.core import frame import geopandas as gpd import seaborn as sns import matplotlib.pyplot as plt from scipy import stats import statsmodels.api as sm # %% def process_index_pivot(vi_link, v_index): v_index = str(v_index) ...
26.483696
113
0.720501
705
4,873
4.797163
0.297872
0.017741
0.023063
0.031934
0.172088
0.146067
0.088705
0.088705
0.072738
0.072738
0
0.010176
0.173199
4,873
183
114
26.628415
0.829238
0.251385
0
0.106667
0
0
0.127465
0.019717
0
0
0
0
0
1
0.013333
false
0
0.306667
0
0.333333
0.093333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
5da24bb0da98dc9118b34f3de289d001953e8336
1,351
py
Python
markov_abstr/mdpgen/experiments/non_markov_B.py
camall3n/markov-state-abstractions
9495ad2880a89fa9dcb99a870f301f5b379bda5c
[ "MIT" ]
5
2021-08-09T18:34:10.000Z
2022-03-12T06:23:36.000Z
markov_abstr/mdpgen/experiments/non_markov_B.py
camall3n/factored_reps
6e953fcf0c24ae25474781e5346b9631846751b4
[ "MIT" ]
null
null
null
markov_abstr/mdpgen/experiments/non_markov_B.py
camall3n/factored_reps
6e953fcf0c24ae25474781e5346b9631846751b4
[ "MIT" ]
1
2021-08-09T18:34:43.000Z
2021-08-09T18:34:43.000Z
import gmpy import numpy as np from tqdm import tqdm from mdpgen.mdp import MDP, AbstractMDP, UniformAbstractMDP from mdpgen.vi import vi from mdpgen.markov import generate_markov_mdp_pair, generate_non_markov_mdp_pair, is_markov from mdpgen.value_fn import compare_value_fns, partial_ordering, sorted_order, sort_valu...
23.293103
110
0.611399
278
1,351
2.744604
0.21223
0.144168
0.157274
0.131062
0.154653
0.154653
0.104849
0.076016
0.048493
0.048493
0
0.103189
0.210955
1,351
57
111
23.701754
0.61257
0.028127
0
0.177778
1
0
0
0
0
0
0
0
0.022222
1
0
false
0
0.155556
0
0.155556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
5da52eaeb0f5bce0e43197f4c06c839e8a925535
819
py
Python
Q02__/79_Perfect_Squares/Solution.py
hsclinical/leetcode
48a57f6a5d5745199c5685cd2c8f5c4fa293e54a
[ "Apache-2.0" ]
null
null
null
Q02__/79_Perfect_Squares/Solution.py
hsclinical/leetcode
48a57f6a5d5745199c5685cd2c8f5c4fa293e54a
[ "Apache-2.0" ]
null
null
null
Q02__/79_Perfect_Squares/Solution.py
hsclinical/leetcode
48a57f6a5d5745199c5685cd2c8f5c4fa293e54a
[ "Apache-2.0" ]
null
null
null
from typing import List class Solution: def numSquares(self, n: int) -> int: if n < 0: return None elif n == 0: return 1 elif n < 4: return n else: squares = [] initNum = 2 while True: perfectSqu...
27.3
68
0.416361
84
819
4.059524
0.428571
0.061584
0.046921
0
0
0
0
0
0
0
0
0.02716
0.505495
819
29
69
28.241379
0.814815
0
0
0.153846
0
0
0
0
0
0
0
0
0
1
0.038462
false
0
0.038462
0
0.307692
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
5da8ea5cba4929b236ae8f3f16ee3024c6578621
1,094
py
Python
socialnetwork/posts/models.py
UladzislauBaranau/social-network
36de6a900c118ab1371ac0e2996feb5785aebf10
[ "MIT" ]
null
null
null
socialnetwork/posts/models.py
UladzislauBaranau/social-network
36de6a900c118ab1371ac0e2996feb5785aebf10
[ "MIT" ]
null
null
null
socialnetwork/posts/models.py
UladzislauBaranau/social-network
36de6a900c118ab1371ac0e2996feb5785aebf10
[ "MIT" ]
null
null
null
from django.db import models from django.utils.translation import gettext_lazy as _ from profiles.models import Profile class Post(models.Model): content = models.TextField() post_author = models.ForeignKey(Profile, on_delete=models.CASCADE, related_name='posts') likes = models.ManyToManyField(Profile, b...
39.071429
92
0.747715
142
1,094
5.514085
0.373239
0.056194
0.05364
0.08046
0.565773
0.565773
0.510856
0.38825
0.260536
0.260536
0
0.00528
0.134369
1,094
27
93
40.518519
0.821542
0
0
0.3
0
0
0.111517
0.02011
0
0
0
0
0
1
0.1
false
0
0.15
0.1
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
5daa30910400a02499824dccef0a8ce4c6d3ba88
1,132
py
Python
apps/batch/models.py
crazypenguin/devops
0f1305b5a5cc5c332cf0333c631eed6dd0e10684
[ "MIT" ]
300
2019-07-30T03:01:29.000Z
2022-03-14T05:51:41.000Z
apps/batch/models.py
nice555/devops
fe09e6a3165d92dcd2dc67a0df3c2e47c6accc41
[ "MIT" ]
27
2019-11-04T08:41:52.000Z
2021-09-27T07:51:41.000Z
apps/batch/models.py
nice555/devops
fe09e6a3165d92dcd2dc67a0df3c2e47c6accc41
[ "MIT" ]
124
2019-08-21T03:32:15.000Z
2022-03-14T05:51:43.000Z
from django.db import models # Create your models here. class BatchCmdLog(models.Model): TYPE_CHOICES = ( (1, '命令'), (2, '脚本'), (3, '上传文件'), (4, 'playbook'), (5, 'module'), ) user = models.CharField(max_length=64, verbose_name='操作人') hosts = models.TextField(ve...
35.375
98
0.662544
142
1,132
5.105634
0.485915
0.121379
0.089655
0.117241
0.190345
0.190345
0.151724
0.151724
0.151724
0.151724
0
0.01864
0.194346
1,132
31
99
36.516129
0.776316
0.021201
0
0
0
0
0.088608
0
0
0
0
0
0
1
0.04
false
0
0.04
0.04
0.64
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
5dacd777e380355431cdc8c048e60ac4b8ce0130
5,537
py
Python
python/eggroll/core/command/commands.py
liszekei/eggroll
6a8cc5e1c9106d2633dc415092151f921f003743
[ "Apache-2.0" ]
209
2019-08-08T18:38:26.000Z
2022-03-23T06:20:40.000Z
python/eggroll/core/command/commands.py
liszekei/eggroll
6a8cc5e1c9106d2633dc415092151f921f003743
[ "Apache-2.0" ]
110
2019-08-09T02:50:47.000Z
2022-03-07T10:30:21.000Z
python/eggroll/core/command/commands.py
liszekei/eggroll
6a8cc5e1c9106d2633dc415092151f921f003743
[ "Apache-2.0" ]
77
2019-08-15T08:11:52.000Z
2022-03-23T06:19:44.000Z
# Copyright (c) 2019 - now, Eggroll 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 ...
43.257813
96
0.7365
668
5,537
5.565868
0.200599
0.180473
0.073965
0.107316
0.5
0.36525
0.308499
0.215976
0.15546
0.062399
0
0.002967
0.208597
5,537
127
97
43.598425
0.845504
0.107278
0
0.071429
0
0
0.089286
0.044237
0
0
0
0
0
1
0.011905
false
0
0.011905
0.011905
0.857143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
5db3907280a4794352756e72d5ecebd79751bd32
5,827
py
Python
optical_flow/calculate_denseflow_ucf101.py
b-safwat/multi_action_recognition
1a85da64cf236b9fb7c9a58ae75bdd092d05fab8
[ "Apache-2.0" ]
1
2019-12-21T17:29:08.000Z
2019-12-21T17:29:08.000Z
optical_flow/calculate_denseflow_ucf101.py
b-safwat/multi_action_recognition
1a85da64cf236b9fb7c9a58ae75bdd092d05fab8
[ "Apache-2.0" ]
null
null
null
optical_flow/calculate_denseflow_ucf101.py
b-safwat/multi_action_recognition
1a85da64cf236b9fb7c9a58ae75bdd092d05fab8
[ "Apache-2.0" ]
null
null
null
import math import cv2 import fnmatch import multiprocessing import os import glob import time from math import ceil import shutil def initialize_dirs(ds_videos_paths, ds_dir, out_optical_flow_dataset): for video_path in ds_videos_paths: # calculate for each video the optical flow output path fo...
39.371622
139
0.601853
767
5,827
4.263364
0.207301
0.063914
0.055657
0.070642
0.456575
0.422324
0.375535
0.337615
0.313761
0.234251
0
0.024526
0.29329
5,827
148
140
39.371622
0.769548
0.111206
0
0.189474
0
0.010526
0.121734
0.058254
0
0
0
0
0
0
null
null
0
0.094737
null
null
0.063158
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
5db3ac4ad5af0ef396b0f8418885c5aaf9bc4818
392
py
Python
EOSS/migrations/0013_eosscontext_ga_thread_id.py
seakers/daphne-brain
1d703d468cd503a21395f986dd72e67b6e556451
[ "MIT" ]
null
null
null
EOSS/migrations/0013_eosscontext_ga_thread_id.py
seakers/daphne-brain
1d703d468cd503a21395f986dd72e67b6e556451
[ "MIT" ]
null
null
null
EOSS/migrations/0013_eosscontext_ga_thread_id.py
seakers/daphne-brain
1d703d468cd503a21395f986dd72e67b6e556451
[ "MIT" ]
null
null
null
# Generated by Django 3.1.7 on 2021-11-16 02:25 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('EOSS', '0012_auto_20210422_1450'), ] operations = [ migrations.AddField( model_name='eosscontext', name='ga_thread_i...
20.631579
50
0.602041
43
392
5.348837
0.837209
0
0
0
0
0
0
0
0
0
0
0.113879
0.283163
392
18
51
21.777778
0.704626
0.114796
0
0
1
0
0.144928
0.066667
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
5db450ef24a04864e766168f49813759e25a2658
5,548
py
Python
tests/core_validation/test_no_fragment_cycles.py
mixcloud/graphql-core
f7629d925d7049556a33328fa84eae9e95c2b819
[ "MIT" ]
null
null
null
tests/core_validation/test_no_fragment_cycles.py
mixcloud/graphql-core
f7629d925d7049556a33328fa84eae9e95c2b819
[ "MIT" ]
null
null
null
tests/core_validation/test_no_fragment_cycles.py
mixcloud/graphql-core
f7629d925d7049556a33328fa84eae9e95c2b819
[ "MIT" ]
1
2019-11-02T03:06:29.000Z
2019-11-02T03:06:29.000Z
from graphql.core.language.location import SourceLocation as L from graphql.core.validation.rules import NoFragmentCycles from utils import expect_fails_rule, expect_passes_rule def cycle_error_message(fragment_name, spread_names, *locations): return { 'message': NoFragmentCycles.cycle_error_message(fragm...
30.822222
87
0.552271
605
5,548
4.801653
0.152066
0.05852
0.099484
0.136317
0.744234
0.712909
0.599656
0.548365
0.422031
0.354561
0
0.025889
0.310743
5,548
179
88
30.994413
0.733787
0
0
0.44898
0
0
0.371665
0
0
0
0
0
0
1
0.108844
false
0.040816
0.020408
0.006803
0.136054
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
5db7b6d32674ec1d89f0d2a71821fbecc8401ed2
2,386
py
Python
app/user/views.py
konradgalczynski07/django-rest-api
5dced82b45a1c5d591f2f07bbf1a3ab01e797997
[ "MIT" ]
58
2019-08-11T04:48:54.000Z
2022-03-17T14:34:51.000Z
app/user/views.py
konradgalczynski07/django-rest-api
5dced82b45a1c5d591f2f07bbf1a3ab01e797997
[ "MIT" ]
null
null
null
app/user/views.py
konradgalczynski07/django-rest-api
5dced82b45a1c5d591f2f07bbf1a3ab01e797997
[ "MIT" ]
20
2020-01-09T17:30:42.000Z
2022-01-25T08:14:17.000Z
from core.pagination import FollowersLikersPagination from rest_framework import generics, permissions from rest_framework.views import APIView from rest_framework.response import Response from django.contrib.auth import get_user_model from user.serializers import UserInfoSerializer, RegisterUserSerializer, \ UserP...
32.684932
74
0.696563
233
2,386
6.944206
0.283262
0.044499
0.037083
0.088999
0.388752
0.312114
0.290482
0.266996
0.266996
0.266996
0
0
0.230092
2,386
72
75
33.138889
0.880784
0
0
0.285714
0
0
0.012573
0
0
0
0
0
0
1
0.071429
false
0
0.107143
0.017857
0.589286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
5dbfa36b0ac3559503d6bf6e6c723ee8b81586b5
4,804
py
Python
flint/tools/gendoc.py
adcroft/flint
4dedfbe042e9d6d4c2c04d8c05a621aa921db9cf
[ "Apache-2.0" ]
null
null
null
flint/tools/gendoc.py
adcroft/flint
4dedfbe042e9d6d4c2c04d8c05a621aa921db9cf
[ "Apache-2.0" ]
null
null
null
flint/tools/gendoc.py
adcroft/flint
4dedfbe042e9d6d4c2c04d8c05a621aa921db9cf
[ "Apache-2.0" ]
null
null
null
"""flint gendoc command :copyright: Copyright 2021 Marshall Ward, see AUTHORS for details. :license: Apache License, Version 2.0, see LICENSE for details. """ import os import flint def generate_docs(srcdirs, docdir, includes=None, excludes=None): proj = flint.parse(*srcdirs, includes=includes, excludes=exclude...
33.830986
79
0.464821
536
4,804
4.11194
0.225746
0.196007
0.134755
0.08167
0.428312
0.361162
0.250454
0.15971
0.087114
0.058984
0
0.006234
0.365529
4,804
141
80
34.070922
0.716864
0.067027
0
0.388889
1
0
0.132797
0.023251
0
0
0
0.007092
0
1
0.018519
false
0
0.018519
0
0.037037
0.046296
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
5dc119a89f4581ab8dcbf2d12880680c0ad40d1c
4,348
py
Python
infrastructure-provisioning/src/jupyter/scripts/configure_jupyter_node.py
yarki/DLab
8df55ca341722ebfb1cf8a857d997f7b82701f34
[ "Apache-2.0" ]
1
2021-05-13T05:35:53.000Z
2021-05-13T05:35:53.000Z
infrastructure-provisioning/src/jupyter/scripts/configure_jupyter_node.py
yarki/DLab
8df55ca341722ebfb1cf8a857d997f7b82701f34
[ "Apache-2.0" ]
null
null
null
infrastructure-provisioning/src/jupyter/scripts/configure_jupyter_node.py
yarki/DLab
8df55ca341722ebfb1cf8a857d997f7b82701f34
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # ***************************************************************************** # # Copyright (c) 2016, EPAM SYSTEMS INC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # #...
39.171171
124
0.710212
590
4,348
4.984746
0.30678
0.044883
0.071404
0.040802
0.258075
0.195852
0.116967
0.080585
0.080585
0.034002
0
0.010307
0.129715
4,348
111
125
39.171171
0.766913
0.170653
0
0
0
0.014493
0.307757
0.068297
0
0
0
0
0
0
null
null
0
0.072464
null
null
0.231884
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1