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
862a0fb1c9316cd1cba03b668b91a70465cd840f
2,868
py
Python
plainapi/plainapi.py
jmerizia/plainapi
1c205a4fe0e5fbe060a01e0ac81d0d404ae5c6c0
[ "MIT" ]
8
2021-03-18T22:50:26.000Z
2021-07-12T21:45:44.000Z
plainapi/plainapi.py
jmerizia/plainapi
1c205a4fe0e5fbe060a01e0ac81d0d404ae5c6c0
[ "MIT" ]
null
null
null
plainapi/plainapi.py
jmerizia/plainapi
1c205a4fe0e5fbe060a01e0ac81d0d404ae5c6c0
[ "MIT" ]
null
null
null
from typing import Optional import os from dotenv import load_dotenv import configparser import argparse from plainapi.utils import get_db_schema_text from plainapi.generate_python import generate_app from plainapi.parse_application import parse_application def main(): parser = argparse.ArgumentParser(descriptio...
38.756757
100
0.632148
326
2,868
5.346626
0.263804
0.050488
0.045898
0.025244
0.150316
0.111302
0.082616
0
0
0
0
0.002408
0.276151
2,868
73
101
39.287671
0.837187
0
0
0
1
0
0.176778
0.007322
0
0
0
0
0
1
0.034483
false
0
0.137931
0
0.206897
0
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
862c7a9da1399d072838651033f60a0a7970ec91
502
py
Python
tests/test_lib.py
suzuki-shunsuke/exvar.py
099b8db134cd9185fc7161e0e6595f3c2116f427
[ "MIT" ]
1
2022-02-09T06:33:07.000Z
2022-02-09T06:33:07.000Z
tests/test_lib.py
suzuki-shunsuke/exvar.py
099b8db134cd9185fc7161e0e6595f3c2116f427
[ "MIT" ]
11
2017-04-01T00:41:02.000Z
2021-10-18T15:22:00.000Z
tests/test_lib.py
suzuki-shunsuke/exvar.py
099b8db134cd9185fc7161e0e6595f3c2116f427
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import sys import pytest sys.path.append(os.path.join(os.path.dirname(__file__), "..")) from src.error import AppError # noqa: E402 from src.init import init # noqa: E402 from src.lib import find_base, warn # noqa: E402 def test_warn(): warn("hoge") ...
18.592593
62
0.669323
75
502
4.346667
0.48
0.09816
0.128834
0.092025
0
0
0
0
0
0
0
0.024752
0.195219
502
26
63
19.307692
0.782178
0.149402
0
0
0
0
0.014218
0
0
0
0
0
0.0625
1
0.125
false
0
0.375
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
8630cf0e5e080fa46ee71329ee92813bc22682d4
3,254
py
Python
test/scripts/test_reconnect.py
Chewnonobelix/ecto
daa92aeb24c9cd573400b9ee5e5a3f442eb7c95d
[ "BSD-3-Clause" ]
77
2015-01-30T15:45:43.000Z
2022-03-03T02:29:37.000Z
test/scripts/test_reconnect.py
Chewnonobelix/ecto
daa92aeb24c9cd573400b9ee5e5a3f442eb7c95d
[ "BSD-3-Clause" ]
37
2015-01-18T21:04:36.000Z
2021-07-09T08:24:54.000Z
test/scripts/test_reconnect.py
Chewnonobelix/ecto
daa92aeb24c9cd573400b9ee5e5a3f442eb7c95d
[ "BSD-3-Clause" ]
29
2015-02-17T14:37:18.000Z
2021-11-16T07:46:26.000Z
#!/usr/bin/env python # # Copyright (c) 2011, 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 copyright # n...
35.369565
77
0.680086
461
3,254
4.733189
0.40564
0.029331
0.025206
0.027498
0.327681
0.277269
0.232814
0.188818
0.159487
0.159487
0
0.020497
0.220344
3,254
91
78
35.758242
0.839574
0.508605
0
0.5
0
0
0.063942
0
0
0
0
0
0.065217
0
null
null
0.043478
0.043478
null
null
0.021739
0
0
0
null
0
0
0
0
0
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
8631d8e091c68f0df46ca6a595b1bb15a840abd1
11,564
py
Python
scripts/generate_vocabulary.py
flarebyte/bubblegum-ui-preview-tag
89a1eb5218bce82afd70d34929d9c2735cefbb3e
[ "BSD-3-Clause" ]
null
null
null
scripts/generate_vocabulary.py
flarebyte/bubblegum-ui-preview-tag
89a1eb5218bce82afd70d34929d9c2735cefbb3e
[ "BSD-3-Clause" ]
null
null
null
scripts/generate_vocabulary.py
flarebyte/bubblegum-ui-preview-tag
89a1eb5218bce82afd70d34929d9c2735cefbb3e
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python import sys import csv from string import Template from generator_helper import camelCase, camelCaseUpper, quoteArray, readCsv, readFileAsString from vocabulary_template import * from vocabulary_meta import * ui_keys_csv = "ui-keys.csv" ui_range_keys_csv = "ui-range-keys.csv" ui_constituent_keys_cs...
37.667752
126
0.636285
1,008
11,564
7.25
0.193452
0.041872
0.05665
0.013547
0.459907
0.43035
0.374384
0.322523
0.221812
0.219759
0
0.002485
0.269198
11,564
307
127
37.667752
0.862265
0.017382
0
0.434944
0
0
0.089724
0.045699
0
0
0
0
0
0
null
null
0
0.022305
null
null
0.003717
0
0
0
null
0
0
0
0
0
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
86354f019664e0c9a351dca0f8f696d3dfc6ae47
5,342
py
Python
python/services/dns/resource_record_set.py
trodge/declarative-resource-client-library
2cb7718a5074776b3113cc18a7483b54022238f3
[ "Apache-2.0" ]
16
2021-01-08T19:35:22.000Z
2022-03-23T16:23:49.000Z
python/services/dns/resource_record_set.py
trodge/declarative-resource-client-library
2cb7718a5074776b3113cc18a7483b54022238f3
[ "Apache-2.0" ]
1
2021-08-18T19:12:20.000Z
2021-08-18T19:12:20.000Z
python/services/dns/resource_record_set.py
LaudateCorpus1/declarative-resource-client-library
a559c4333587fe9531cef150532e6fcafff153e4
[ "Apache-2.0" ]
11
2021-03-18T11:27:28.000Z
2022-03-12T06:49:14.000Z
# Copyright 2021 Google LLC. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
38.431655
88
0.693748
653
5,342
5.457887
0.189893
0.098485
0.117284
0.20202
0.584175
0.55752
0.537318
0.517396
0.491021
0.491021
0
0.005058
0.222763
5,342
138
89
38.710145
0.853324
0.107076
0
0.425743
0
0
0
0
0
0
0
0
0
1
0.069307
false
0
0.039604
0.009901
0.178218
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
8636bfcc554e4bc069d48bcbc8d0da442a448bfa
3,176
py
Python
vypera/mcp23017.py
jburks/Retro-HW-Tools
5a46f94f5bbb0168127056762b3f5ae624de8d44
[ "MIT" ]
null
null
null
vypera/mcp23017.py
jburks/Retro-HW-Tools
5a46f94f5bbb0168127056762b3f5ae624de8d44
[ "MIT" ]
null
null
null
vypera/mcp23017.py
jburks/Retro-HW-Tools
5a46f94f5bbb0168127056762b3f5ae624de8d44
[ "MIT" ]
null
null
null
import smbus from enum import Enum class MCP23017(object): OUTPUT = 0 INPUT = 1 PORT_A = 0 PORT_B = 1 IODIR_A = 0x00 # Controls the direction of the data I/O for port A. IODIR_B = 0x01 # Controls the direction of the data I/O for port B. IPOL_A = 0x02 ...
52.065574
123
0.63665
455
3,176
4.323077
0.226374
0.027961
0.077783
0.085409
0.587189
0.494662
0.451957
0.314184
0.27758
0.27758
0
0.037103
0.295655
3,176
60
124
52.933333
0.842199
0.379093
0
0
0
0
0
0
0
0
0.053333
0
0
1
0.163265
false
0
0.040816
0.040816
0.77551
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
8638c683a3bd30baf2a889d9148f7eb93ebe7d40
276
py
Python
iaso/migrations/0119_merge_20220126_1655.py
BLSQ/iaso-copy
85fb17f408c15e8c2d730416d1312f58f8db39b7
[ "MIT" ]
null
null
null
iaso/migrations/0119_merge_20220126_1655.py
BLSQ/iaso-copy
85fb17f408c15e8c2d730416d1312f58f8db39b7
[ "MIT" ]
null
null
null
iaso/migrations/0119_merge_20220126_1655.py
BLSQ/iaso-copy
85fb17f408c15e8c2d730416d1312f58f8db39b7
[ "MIT" ]
1
2022-03-23T16:44:12.000Z
2022-03-23T16:44:12.000Z
# Generated by Django 3.1.14 on 2022-01-26 16:55 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ("iaso", "0113_add_account_feature_flag_quarter"), ("iaso", "0118_entity_deleted_at"), ] operations = []
19.714286
58
0.67029
35
276
5.057143
0.885714
0
0
0
0
0
0
0
0
0
0
0.110092
0.210145
276
13
59
21.230769
0.701835
0.166667
0
0
1
0
0.29386
0.258772
0
0
0
0
0
1
0
false
0
0.142857
0
0.571429
0
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
8638e0b7d680c2a754af5738ea9391f3eb0dbb42
6,009
py
Python
src/oci/analytics/models/create_private_access_channel_details.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
249
2017-09-11T22:06:05.000Z
2022-03-04T17:09:29.000Z
src/oci/analytics/models/create_private_access_channel_details.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
228
2017-09-11T23:07:26.000Z
2022-03-23T10:58:50.000Z
src/oci/analytics/models/create_private_access_channel_details.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
224
2017-09-27T07:32:43.000Z
2022-03-25T16:55:42.000Z
# coding: utf-8 # Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
35.767857
245
0.68464
712
6,009
5.547753
0.205056
0.048608
0.089114
0.116962
0.661772
0.546582
0.432152
0.379747
0.317975
0.294684
0
0.005348
0.25312
6,009
167
246
35.982036
0.874777
0.583458
0
0.075472
0
0
0.093429
0.048768
0
0
0
0
0
1
0.226415
false
0
0.037736
0.037736
0.433962
0
0
0
0
null
0
0
0
0
0
0
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
863c48c77e4d9d5cc782ae6debc798f2cd70865d
545
py
Python
twitter_api/auth_example.py
sebaxtian/raspberrypi3
ce5a5bce6a283f97526c11dd187c9af4f7c74a0e
[ "MIT" ]
null
null
null
twitter_api/auth_example.py
sebaxtian/raspberrypi3
ce5a5bce6a283f97526c11dd187c9af4f7c74a0e
[ "MIT" ]
null
null
null
twitter_api/auth_example.py
sebaxtian/raspberrypi3
ce5a5bce6a283f97526c11dd187c9af4f7c74a0e
[ "MIT" ]
null
null
null
''' Ejemplo: auth.py Aqui se definen las API KEYS para autorizar el acceso y uso de la aplicacion rpi3bot de Twitter. Fuente: https://www.raspberrypi.org/learning/getting-started-with-the-twitter-api/worksheet/ Fecha: mié dic 7 22:00:22 COT 2016 Version: 1.0 ''' consumer_key = 'ABCDEFGHIJKLKMNOPQRSTUVWXYZ' consumer_s...
30.277778
92
0.798165
71
545
6.056338
0.774648
0.027907
0.046512
0
0
0
0
0
0
0
0
0.070393
0.113761
545
17
93
32.058824
0.819876
0.46789
0
0
0
0
0.586538
0.586538
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
863c580aa40f77575e472c60d1c34b556a2a98c3
225
py
Python
Python-code-snippets-001-100/018-Get current Bitcoin value.py
abartoha/python-snippets-ref
04e4feada96077f0e849b277204c012194e8fbcd
[ "Unlicense" ]
null
null
null
Python-code-snippets-001-100/018-Get current Bitcoin value.py
abartoha/python-snippets-ref
04e4feada96077f0e849b277204c012194e8fbcd
[ "Unlicense" ]
null
null
null
Python-code-snippets-001-100/018-Get current Bitcoin value.py
abartoha/python-snippets-ref
04e4feada96077f0e849b277204c012194e8fbcd
[ "Unlicense" ]
null
null
null
''' 18-Get current Bitcoin value ''' import requests CBV = requests.get('https://api.coinmarketcap.com/v1/ticker/bitcoin/') for coin in CBV.json(): print("Current USD$ price for 1 Bitcoin") print(coin["price_usd"])
25
70
0.693333
33
225
4.69697
0.666667
0
0
0
0
0
0
0
0
0
0
0.020725
0.142222
225
8
71
28.125
0.782383
0.124444
0
0
0
0
0.470899
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0.4
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
863ee0029332685d14fba05ec6d862ca36569f3a
1,103
py
Python
lib/galaxy/jobs/runners/util/external.py
beatrizserrano/galaxy
e149d9d32e1bca6c07c38b1a9cdabfee60323610
[ "CC-BY-3.0" ]
null
null
null
lib/galaxy/jobs/runners/util/external.py
beatrizserrano/galaxy
e149d9d32e1bca6c07c38b1a9cdabfee60323610
[ "CC-BY-3.0" ]
6
2021-11-11T20:57:49.000Z
2021-12-10T15:30:33.000Z
lib/galaxy/jobs/runners/util/external.py
beatrizserrano/galaxy
e149d9d32e1bca6c07c38b1a9cdabfee60323610
[ "CC-BY-3.0" ]
null
null
null
from re import search EXTERNAL_ID_TYPE_ANY = None EXTERNAL_ID_PATTERNS = [ ("condor", r"submitted to cluster (\d+)\."), ("slurm", r"Submitted batch job (\w+)"), ("torque", r"(.+)"), # Default 'pattern' assumed by Galaxy code circa August 2013. ] def parse_external_id(output, type=EXTERNAL_ID_TYPE_ANY):...
29.026316
87
0.647325
141
1,103
4.822695
0.382979
0.220588
0.132353
0.141176
0.279412
0.208824
0.208824
0
0
0
0
0.042503
0.232094
1,103
37
88
29.810811
0.760331
0.430644
0
0
0
0
0.129371
0
0
0
0
0
0
1
0.058824
false
0
0.058824
0
0.176471
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
8640b63bc55d49ba44c68f06c6297048ac5e407f
10,933
py
Python
runscripts/wrf.py
tjwixtrom/verification
00b42da31502a06388f826c3de359d07997496dc
[ "BSD-3-Clause" ]
2
2020-03-24T20:30:11.000Z
2021-08-18T03:11:26.000Z
runscripts/wrf.py
tjwixtrom/wrf-scripts
00b42da31502a06388f826c3de359d07997496dc
[ "BSD-3-Clause" ]
3
2018-07-25T16:33:09.000Z
2018-08-23T14:57:08.000Z
runscripts/wrf.py
tjwixtrom/wrf-scripts
00b42da31502a06388f826c3de359d07997496dc
[ "BSD-3-Clause" ]
null
null
null
""" wrf.py - Functions for analogue score calculation by Tyler Wixtrom Texas Tech University 7 February 2019 Helper code for WRF file operations. """ import glob from pandas import Timedelta def increment_time(date1, days=0, hours=0, minutes=0, seconds=0): """ Increment time from start by a specified numbe...
40.492593
88
0.478185
1,176
10,933
4.205782
0.266156
0.112212
0.051759
0.021836
0.170643
0.135463
0.103922
0.103922
0.053781
0.033967
0
0.050542
0.391933
10,933
269
89
40.643123
0.693442
0.094485
0
0
0
0
0.648197
0.011368
0
0
0
0
0
1
0.019512
false
0
0.009756
0
0.034146
0
0
0
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
8641a6caca9b645cd8e34422fd76a27b610f05e7
520
py
Python
pycromanager/utility/__init__.py
ilyasdc/pycro-manager
5f0153e8a90104eb8715348c6eb22c4d8fdee477
[ "BSD-3-Clause" ]
88
2020-05-08T16:54:24.000Z
2022-03-09T01:03:04.000Z
pycromanager/utility/__init__.py
ilyasdc/pycro-manager
5f0153e8a90104eb8715348c6eb22c4d8fdee477
[ "BSD-3-Clause" ]
200
2020-05-15T13:21:44.000Z
2022-03-31T17:55:23.000Z
pycromanager/utility/__init__.py
ilyasdc/pycro-manager
5f0153e8a90104eb8715348c6eb22c4d8fdee477
[ "BSD-3-Clause" ]
31
2020-04-30T03:22:50.000Z
2022-03-19T18:00:32.000Z
""" Objects useful for dealing with files saved by Micro-Manager. https://micro-manager.org/ Classes ---------- .. autosummary:: :toctree: generated/ Image Position1d Position2d PositionList Property PropertyMap MultiStagePosition """ __all__ = [ "PositionList", "Position2d", "Pos...
18.571429
88
0.7
44
520
8.181818
0.613636
0.158333
0.177778
0
0
0
0
0
0
0
0
0.014218
0.188462
520
27
89
19.259259
0.838863
0.484615
0
0
1
0
0.266409
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0
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
86465d205f2a441b3dd7053474c99e613ac2dfc8
6,742
py
Python
src/luminol/testinsy/two_std_detect_1130_backup.py
zhouyuan0805/luminol-work
cb29a7edebb5f1d8a8a55d6d02e43df5502584f2
[ "Apache-2.0" ]
null
null
null
src/luminol/testinsy/two_std_detect_1130_backup.py
zhouyuan0805/luminol-work
cb29a7edebb5f1d8a8a55d6d02e43df5502584f2
[ "Apache-2.0" ]
null
null
null
src/luminol/testinsy/two_std_detect_1130_backup.py
zhouyuan0805/luminol-work
cb29a7edebb5f1d8a8a55d6d02e43df5502584f2
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import os import pandas as pd import datetime import time import numpy as np import matplotlib.pyplot as plt import csv from luminol.anomaly_detector import AnomalyDetector import luminol.utils def timestamp_to_datetime(x): return time.strftime('%Y-%m-%d %H:%M:%S',time.localtime(x)) def li...
39.197674
122
0.700237
1,040
6,742
4.226923
0.133654
0.100091
0.073248
0.034577
0.701774
0.605323
0.546861
0.528207
0.512511
0.436761
0
0.016728
0.148769
6,742
171
123
39.426901
0.749259
0.419015
0
0.131579
0
0
0.132709
0.060109
0
0
0
0
0
0
null
null
0
0.118421
null
null
0.039474
0
0
0
null
0
0
0
0
0
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
864e22d1794ee4e1a9bffe68107acbe8c0378f7d
2,401
py
Python
deepspeech/decoders/scorers/length_bonus.py
zh794390558/DeepSpeech
34178893327ad359cb816e55d7c66a10244fa08a
[ "Apache-2.0" ]
null
null
null
deepspeech/decoders/scorers/length_bonus.py
zh794390558/DeepSpeech
34178893327ad359cb816e55d7c66a10244fa08a
[ "Apache-2.0" ]
null
null
null
deepspeech/decoders/scorers/length_bonus.py
zh794390558/DeepSpeech
34178893327ad359cb816e55d7c66a10244fa08a
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
32.890411
82
0.621824
315
2,401
4.685714
0.406349
0.073171
0.03252
0.02168
0.108401
0.036585
0.036585
0
0
0
0
0.012259
0.286547
2,401
72
83
33.347222
0.849387
0.603499
0
0
0
0
0
0
0
0
0
0
0
1
0.176471
false
0
0.294118
0
0.647059
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
8652787039b084c385e99bc2e87f624a430230e0
9,727
py
Python
venv/lib/python3.6/site-packages/tensorflow/python/framework/cpp_shape_inference_pb2.py
yuxuan1995liu/darkflowyolo_detection
a7807e9b85833e3f877d46bb60e8fa7d0596a10b
[ "MIT" ]
6
2022-02-04T18:12:24.000Z
2022-03-21T23:57:12.000Z
Lib/site-packages/tensorflow/python/framework/cpp_shape_inference_pb2.py
caiyongji/Anaconda-py36.5-tensorflow-built-env
f4eb40b5ca3f49dfc929ff3ad2b4bb877e9663e2
[ "PSF-2.0" ]
4
2020-09-26T00:55:50.000Z
2022-02-10T01:53:06.000Z
Lib/site-packages/tensorflow/python/framework/cpp_shape_inference_pb2.py
caiyongji/Anaconda-py36.5-tensorflow-built-env
f4eb40b5ca3f49dfc929ff3ad2b4bb877e9663e2
[ "PSF-2.0" ]
1
2022-02-08T03:53:23.000Z
2022-02-08T03:53:23.000Z
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: tensorflow/python/framework/cpp_shape_inference.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from goo...
43.424107
948
0.796957
1,087
9,727
6.776449
0.154554
0.03041
0.029324
0.050095
0.598832
0.491719
0.484659
0.453706
0.42574
0.42574
0
0.030646
0.100956
9,727
223
949
43.618834
0.811664
0.053357
0
0.57732
1
0.005155
0.240135
0.215349
0
0
0
0
0
1
0
false
0
0.036082
0
0.036082
0
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
86544dc12d34b9ebd99d2c5aadb62f7b726061b8
1,175
py
Python
day-16-coffee-machine-oop/coffee_maker.py
anelshaer/Python100DaysOfCode
012ae7dda28dc790d3bc4d26df807a4dba179ffe
[ "MIT" ]
null
null
null
day-16-coffee-machine-oop/coffee_maker.py
anelshaer/Python100DaysOfCode
012ae7dda28dc790d3bc4d26df807a4dba179ffe
[ "MIT" ]
null
null
null
day-16-coffee-machine-oop/coffee_maker.py
anelshaer/Python100DaysOfCode
012ae7dda28dc790d3bc4d26df807a4dba179ffe
[ "MIT" ]
null
null
null
class CoffeeMaker: """Models the machine that makes the coffee""" def __init__(self): self.resources = { "water": 300, "milk": 200, "coffee": 100, } def report(self): """Prints a report of all resources.""" print(f"Water: {self.resources['...
35.606061
89
0.57617
140
1,175
4.778571
0.45
0.116592
0.053812
0
0
0
0
0
0
0
0
0.010883
0.29617
1,175
33
90
35.606061
0.795647
0.194043
0
0
0
0
0.224512
0.086768
0
0
0
0
0
1
0.208333
false
0
0
0
0.291667
0.208333
0
0
0
null
0
0
0
0
0
0
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
8655e7539d648f5db6939dcc60938e90e66b87a7
7,300
py
Python
variational-recurrent-autoencoder.py
bigshanedogg/generating-sentences-from-a-continuous-space
79f24d0746777e45a8539a6b893bbaf30fe8e90c
[ "MIT" ]
1
2020-12-17T09:44:46.000Z
2020-12-17T09:44:46.000Z
variational-recurrent-autoencoder.py
bigshanedogg/generating-sentences-from-a-continuous-space
79f24d0746777e45a8539a6b893bbaf30fe8e90c
[ "MIT" ]
null
null
null
variational-recurrent-autoencoder.py
bigshanedogg/generating-sentences-from-a-continuous-space
79f24d0746777e45a8539a6b893bbaf30fe8e90c
[ "MIT" ]
1
2019-11-28T17:21:35.000Z
2019-11-28T17:21:35.000Z
''' Example of VRAE on text data VRAE, like VAE, has a modular design. encoder, decoder, and VRAE are 3 models that share weights. After training the VRAE model, the encoder can be used to generate latent vectors of text data(sentences/documents). The decoder can be used to generate embedding vector of text by sampling...
35.436893
146
0.688493
1,080
7,300
4.443519
0.274074
0.013544
0.011669
0.011669
0.13607
0.07835
0.042926
0.010419
0.010419
0
0
0.01578
0.20137
7,300
205
147
35.609756
0.807376
0.251644
0
0.090226
1
0
0.061733
0.004091
0
0
0
0
0
1
0.015038
false
0
0.105263
0
0.12782
0.037594
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
8657a1587bd4855299c219d52b97f46ea14ed6da
19,270
py
Python
cgi-bin/ldh6_test.py
ldhagen/wwf_python_initial
348908b91324acee0c5890159d792733ae758bc8
[ "MIT" ]
null
null
null
cgi-bin/ldh6_test.py
ldhagen/wwf_python_initial
348908b91324acee0c5890159d792733ae758bc8
[ "MIT" ]
1
2016-02-15T19:22:45.000Z
2016-02-16T20:37:14.000Z
cgi-bin/ldh6_test.py
ldhagen/wwf_python_initial
348908b91324acee0c5890159d792733ae758bc8
[ "MIT" ]
null
null
null
#!/usr/bin/env python import added_routines as AR, itertools, pickle, hashlib from operator import itemgetter ########################################################################### # This module creates a cell dictionary from added_routines and a SolutionObject # which is an object based on the concept of taking...
56.843658
218
0.631655
2,442
19,270
4.710483
0.131859
0.038946
0.037555
0.019473
0.476484
0.421629
0.344258
0.319656
0.289577
0.257411
0
0.008319
0.270109
19,270
338
219
57.011834
0.809527
0.108511
0
0.406557
0
0.009836
0.116612
0.007048
0
0
0
0
0
0
null
null
0.019672
0.006557
null
null
0.019672
0
0
0
null
0
0
0
0
0
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
865dc98020ef9eeb6a8178aa5bbf143db1736234
1,165
py
Python
setup.py
bambooforest/phoible-2
4082d78d95e055dd884fa402a2efe44e4990231c
[ "Apache-2.0" ]
null
null
null
setup.py
bambooforest/phoible-2
4082d78d95e055dd884fa402a2efe44e4990231c
[ "Apache-2.0" ]
null
null
null
setup.py
bambooforest/phoible-2
4082d78d95e055dd884fa402a2efe44e4990231c
[ "Apache-2.0" ]
null
null
null
from setuptools import setup, find_packages setup( name='phoible', version='0.0', description='phoible', long_description='', classifiers=[ "Programming Language :: Python", "Framework :: Pyramid", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: W...
22.403846
63
0.487554
101
1,165
5.485149
0.732673
0.043321
0.057762
0.072202
0
0
0
0
0
0
0
0.021192
0.351931
1,165
51
64
22.843137
0.712583
0
0
0.081633
0
0
0.356223
0.04206
0
0
0
0
0
1
0
true
0
0.020408
0
0.020408
0
0
0
0
null
0
0
0
0
0
0
0
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
86654b0def2f78db6f16c9a1f9a82852e039f1c0
980
py
Python
sparkblocks/__init__.py
1stvamp/py-sparkblocks
e5824ace76bbe5bd8a89ac7d24abce6deeb3f110
[ "BSD-2-Clause-FreeBSD" ]
8
2015-01-27T08:07:22.000Z
2017-08-30T01:05:02.000Z
sparkblocks/__init__.py
1stvamp/py-sparkblocks
e5824ace76bbe5bd8a89ac7d24abce6deeb3f110
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
sparkblocks/__init__.py
1stvamp/py-sparkblocks
e5824ace76bbe5bd8a89ac7d24abce6deeb3f110
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
import math def spark(numbers): """Generate a text based sparkline graph from a list of numbers (ints or floats). Based on: https://github.com/holman/spark and: http://www.datadrivenconsulting.com/2010/06/twitter-sparkline-generator/ """ out = [] min_value = min(numbers) ...
25.128205
78
0.555102
126
980
4.214286
0.563492
0.060264
0.052731
0
0
0
0
0
0
0
0
0.047988
0.340816
980
38
79
25.789474
0.773994
0.295918
0
0.095238
1
0
0
0
0
0
0
0
0
1
0.047619
false
0
0.047619
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
866ab507c38e5b9898fed18e77ae06fc8ca62a0d
1,468
py
Python
boa3/neo3/network/payloads/oracleresponsecode.py
hal0x2328/neo3-boa
6825a3533384cb01660773050719402a9703065b
[ "Apache-2.0" ]
25
2020-07-22T19:37:43.000Z
2022-03-08T03:23:55.000Z
boa3/neo3/network/payloads/oracleresponsecode.py
hal0x2328/neo3-boa
6825a3533384cb01660773050719402a9703065b
[ "Apache-2.0" ]
419
2020-04-23T17:48:14.000Z
2022-03-31T13:17:45.000Z
boa3/neo3/network/payloads/oracleresponsecode.py
hal0x2328/neo3-boa
6825a3533384cb01660773050719402a9703065b
[ "Apache-2.0" ]
15
2020-05-21T21:54:24.000Z
2021-11-18T06:17:24.000Z
from enum import IntFlag class OracleResponseCode(IntFlag): """ Represents the response code for the oracle request. """ SUCCESS = 0x00 """ Indicates that the request has been successfully completed. :meta hide-value: """ PROTOCOL_NOT_SUPPORTED = 0x10 """ Indicates that ...
18.820513
90
0.631471
177
1,468
5.175141
0.423729
0.141921
0.141921
0.100437
0.159389
0.159389
0.159389
0.085153
0.085153
0
0
0.023855
0.286104
1,468
77
91
19.064935
0.850191
0.035422
0
0
0
0
0
0
0
0
0.102564
0
0
1
0
false
0
0.083333
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
866c0f1a09ee117588a12e03d9d3913734eb6628
2,770
py
Python
bench/LRU-experiments.py
joshmoore/PyTables
5065497fdc04f07c551c56b8b0280892fcffad03
[ "BSD-3-Clause" ]
3
2016-03-14T07:49:32.000Z
2019-08-26T03:10:21.000Z
bench/LRU-experiments.py
joshmoore/PyTables
5065497fdc04f07c551c56b8b0280892fcffad03
[ "BSD-3-Clause" ]
null
null
null
bench/LRU-experiments.py
joshmoore/PyTables
5065497fdc04f07c551c56b8b0280892fcffad03
[ "BSD-3-Clause" ]
4
2020-06-19T00:11:13.000Z
2021-02-23T09:25:35.000Z
# Testbed to perform experiments in order to determine best values for # the node numbers in LRU cache. Tables version. from time import time from tables import * import tables print "PyTables version-->", tables.__version__ filename = "/tmp/junk-tables-100.h5" NLEAVES = 2000 NROWS = 1000 class Particle(IsDescripti...
30.108696
70
0.582671
353
2,770
4.495751
0.345609
0.044108
0.05293
0.05041
0.279773
0.204789
0.172023
0.172023
0.172023
0.172023
0
0.026357
0.301444
2,770
91
71
30.43956
0.793798
0.241516
0
0.253968
0
0
0.088632
0.011079
0
0
0
0
0
0
null
null
0.031746
0.063492
null
null
0.095238
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
867727087645579b934f572f35fb04c9e5f8b9e2
2,961
py
Python
src/secimtools/visualManager/module_lines.py
GalaxyDream/SECIMTools
48357a49f373c75ec844685c78b1bdad80b0c1b3
[ "MIT" ]
10
2017-07-28T22:17:41.000Z
2021-11-03T13:26:12.000Z
src/secimtools/visualManager/module_lines.py
GalaxyDream/SECIMTools
48357a49f373c75ec844685c78b1bdad80b0c1b3
[ "MIT" ]
2
2021-01-21T17:51:56.000Z
2021-07-08T18:11:29.000Z
src/secimtools/visualManager/module_lines.py
GalaxyDream/SECIMTools
48357a49f373c75ec844685c78b1bdad80b0c1b3
[ "MIT" ]
7
2017-07-07T14:06:30.000Z
2021-01-12T02:22:07.000Z
###################################################################################### # Date: 2016/July/11 # # Module: module_lines.py # # VERSION: 0.9 # # AUTHOR: Matt Thoburn (mthoburn@ufl.edu) # # DESCRIPTION: This module contains several methods for drawing cutoff lines # # These will usually be dra...
26.675676
105
0.567038
414
2,961
4.038647
0.268116
0.02512
0.057416
0.07177
0.663876
0.663876
0.629187
0.629187
0.629187
0.629187
0
0.007537
0.283013
2,961
110
106
26.918182
0.780028
0.64978
0
0.2
0
0
0.012821
0
0
0
0
0
0
1
0.2
false
0
0.066667
0
0.466667
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
867c8fa38ce29bdb576063ff66e9125c72d576d2
234
py
Python
cap-5/programas/programa.5.3.py
JeffeSilva/EP-python
a4d8ccb727ab9e10785b2dfd219cff72e0d808f5
[ "MIT" ]
1
2021-01-07T12:43:48.000Z
2021-01-07T12:43:48.000Z
cap-5/programas/programa.5.3.py
JeffeSilva/EP-python
a4d8ccb727ab9e10785b2dfd219cff72e0d808f5
[ "MIT" ]
null
null
null
cap-5/programas/programa.5.3.py
JeffeSilva/EP-python
a4d8ccb727ab9e10785b2dfd219cff72e0d808f5
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Tabuada de adição deve ser impressa de 1 a 10 sendo n o número digitado pelo usuario. n = int(input('Tabuada de: ')) x = 1 while x <= 10: print('{} + {} = '.format(n, x,), n + x) x = x + 1 print('FIM ')
29.25
87
0.58547
42
234
3.261905
0.642857
0.131387
0
0
0
0
0
0
0
0
0
0.039106
0.235043
234
8
88
29.25
0.726257
0.452991
0
0
0
0
0.204724
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
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
867fb99f8e5d07931fccfc6f4e68af4262d313eb
1,133
py
Python
src/Puzzle/Enums.py
souji-28/puzzle-python
c4ea07041e7fa617ebfe2c1cbf117eb345c7ce1e
[ "MIT" ]
60
2018-10-13T01:09:04.000Z
2022-03-19T18:44:17.000Z
src/python/Puzzle/Enums.py
bertrand-sifre/Zolver
b98bb7899b459ce4efef72b3abedc453005a0a25
[ "MIT" ]
5
2019-01-21T15:00:18.000Z
2022-02-18T14:24:28.000Z
src/python/Puzzle/Enums.py
bertrand-sifre/Zolver
b98bb7899b459ce4efef72b3abedc453005a0a25
[ "MIT" ]
15
2019-10-02T04:44:36.000Z
2021-12-24T20:52:03.000Z
from enum import Enum class Directions(Enum): """ Directions used to keep track of orientation of edges """ N = (0, 1) S = (0, -1) E = (1, 0) W = (-1, 0) directions = [Directions.N, Directions.E, Directions.S, Directions.W] def rotate_direction(dir, step): """ Find the clockwise next directi...
23.122449
79
0.614298
165
1,133
4.193939
0.351515
0.043353
0.057803
0.086705
0.163295
0.138728
0.138728
0.138728
0.098266
0.098266
0
0.044365
0.263901
1,133
49
80
23.122449
0.785372
0.259488
0
0.068966
0
0
0
0
0
0
0
0
0
1
0.103448
false
0
0.034483
0.034483
0.862069
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
867ffd656b5b06645474d11240e5eab78b681af8
246
py
Python
Week03-Complexity/InsomniaCure-148A.py
AAlab1819/FarrellNathaniel-01082170002
15266c96e90d1a51b0efb58ef88f452c5d4a1bf4
[ "MIT" ]
null
null
null
Week03-Complexity/InsomniaCure-148A.py
AAlab1819/FarrellNathaniel-01082170002
15266c96e90d1a51b0efb58ef88f452c5d4a1bf4
[ "MIT" ]
null
null
null
Week03-Complexity/InsomniaCure-148A.py
AAlab1819/FarrellNathaniel-01082170002
15266c96e90d1a51b0efb58ef88f452c5d4a1bf4
[ "MIT" ]
1
2018-09-03T02:55:54.000Z
2018-09-03T02:55:54.000Z
k=int (input()) l=int (input()) m=int (input()) n=int (input()) d=int (input()) damagedDragons = 0 for i in range (1, d+1): if i%k == 0 or i%l == 0 or i%m == 0 or i%n == 0: damagedDragons = damagedDragons + 1 print(damagedDragons)
17.571429
52
0.577236
45
246
3.155556
0.377778
0.28169
0.084507
0
0
0
0
0
0
0
0
0.042105
0.227642
246
13
53
18.923077
0.705263
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.1
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
868836bd065176a98a2a3047457edf3806ea816d
660
py
Python
Concurrency/event_barrier.py
Chyi341152/chyi-book
ddeaf49d69a68f5718c20c3b7fe6fd37381d21eb
[ "MIT" ]
null
null
null
Concurrency/event_barrier.py
Chyi341152/chyi-book
ddeaf49d69a68f5718c20c3b7fe6fd37381d21eb
[ "MIT" ]
null
null
null
Concurrency/event_barrier.py
Chyi341152/chyi-book
ddeaf49d69a68f5718c20c3b7fe6fd37381d21eb
[ "MIT" ]
null
null
null
# event_barrier.py # # An example of using an event to set up a barrier synchronization import threading import time init = threading.Event() def worker(): init.wait() # Wait until initialized print("I'm worker", threading.currentThread().name) def initialize(): print("Initializing some data") ...
22.758621
66
0.728788
87
660
5.517241
0.517241
0.125
0.175
0.225
0.266667
0.266667
0.266667
0.266667
0.266667
0.266667
0
0.001799
0.157576
660
28
67
23.571429
0.861511
0.295455
0
0.25
0
0
0.118421
0
0
0
0
0
0
1
0.125
false
0
0.125
0
0.25
0.1875
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
868a7c68b8b762ce7cdcf10793271b36dff9c3d9
3,475
py
Python
zaza/openstack/utilities/exceptions.py
thedac/zaza-openstack-tests
9721fe5d42e7eb99b608940324c417ce62b04f07
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
zaza/openstack/utilities/exceptions.py
thedac/zaza-openstack-tests
9721fe5d42e7eb99b608940324c417ce62b04f07
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
zaza/openstack/utilities/exceptions.py
thedac/zaza-openstack-tests
9721fe5d42e7eb99b608940324c417ce62b04f07
[ "ECL-2.0", "Apache-2.0" ]
2
2017-12-05T17:22:38.000Z
2019-04-19T17:00:06.000Z
# Copyright 2018 Canonical Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writin...
19.857143
74
0.69554
391
3,475
6.153453
0.480818
0.082294
0.024938
0.024938
0.03325
0
0
0
0
0
0
0.002909
0.208633
3,475
174
75
19.971264
0.872
0.497266
0
0.45098
0
0
0.026452
0
0
0
0
0
0
1
0.019608
false
0.45098
0
0
0.490196
0
0
0
0
null
0
0
0
0
0
0
0
0
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
868ac3617ee852e300c84cf940ae2a4a54f846c4
5,464
py
Python
tests/core/test_authentication.py
vincentfretin/kinto
34ff8093ab708eae55fc4eefa237fb420e808a6a
[ "Apache-2.0" ]
4,618
2015-08-06T18:17:02.000Z
2022-03-31T10:03:07.000Z
tests/core/test_authentication.py
vincentfretin/kinto
34ff8093ab708eae55fc4eefa237fb420e808a6a
[ "Apache-2.0" ]
1,578
2015-07-30T09:47:41.000Z
2022-03-31T13:12:50.000Z
tests/core/test_authentication.py
vincentfretin/kinto
34ff8093ab708eae55fc4eefa237fb420e808a6a
[ "Apache-2.0" ]
546
2015-07-30T10:31:35.000Z
2022-03-31T12:44:32.000Z
from unittest import mock from kinto.core import authentication, utils from kinto.core.testing import DummyRequest, unittest from .support import BaseWebTest class AuthenticationPoliciesTest(BaseWebTest, unittest.TestCase): def test_basic_auth_is_accepted_by_default(self): self.app.get(self.plural_url, ...
42.030769
93
0.656662
598
5,464
5.792642
0.249164
0.041282
0.057737
0.027714
0.532333
0.475751
0.438799
0.403002
0.387702
0.342667
0
0.00828
0.226391
5,464
129
94
42.356589
0.811214
0.041911
0
0.336538
0
0
0.168642
0.052581
0
0
0
0
0.105769
1
0.125
false
0.096154
0.038462
0
0.182692
0
0
0
0
null
0
0
0
0
0
0
0
0
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
868b69a2c456b380c0ba0f49f6fe884e60880f83
8,420
py
Python
xmodels.py
pdxhabesha/T-shirt-shop-backend
c4e175c7ac691de0f0dfab8dcd54cf0fcebec133
[ "MIT" ]
3
2019-03-06T03:44:42.000Z
2019-03-07T03:34:06.000Z
xmodels.py
pdxhabesha/T-shirt-shop-backend
c4e175c7ac691de0f0dfab8dcd54cf0fcebec133
[ "MIT" ]
9
2019-12-04T22:32:43.000Z
2022-02-10T07:19:21.000Z
xmodels.py
pdxhabesha/T-shirt-shop-backend
c4e175c7ac691de0f0dfab8dcd54cf0fcebec133
[ "MIT" ]
null
null
null
{'default': {'ENGINE': 'django.db.backends.mysql', 'NAME': 'clothing', 'USER': 'root', 'PASSWORD': 'Godislove', 'HOST': 'ec2-34-222-123-230.us-west-2.compute.amazonaws.com', 'PORT': '3306'}, 'option': {'use_pure': 'True'}} # This is an auto-generated Django model module. # You'll have to do the following manually to cl...
32.635659
222
0.705344
1,044
8,420
5.512452
0.180077
0.104257
0.118853
0.158471
0.618419
0.571503
0.503736
0.45404
0.41755
0.254214
0
0.023123
0.18848
8,420
257
223
32.762646
0.819113
0.0538
0
0.363636
0
0.005348
0.065837
0.012062
0
0
0
0
0
1
0
false
0.010695
0.005348
0
0.743316
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
868bdeafb310306b78b8ef4be8f0455babd39e08
1,316
py
Python
src/python_sqs_consumer/processor.py
admetricks/python-sqs-consumer
33a8845f68f86fc9ec0725f6a72847fac0d6f662
[ "BSD-2-Clause" ]
5
2015-12-02T19:37:48.000Z
2019-01-28T02:59:55.000Z
src/python_sqs_consumer/processor.py
admetricks/python-sqs-consumer
33a8845f68f86fc9ec0725f6a72847fac0d6f662
[ "BSD-2-Clause" ]
3
2015-12-18T15:54:42.000Z
2016-12-27T15:01:49.000Z
src/python_sqs_consumer/processor.py
admetricks/python-sqs-consumer
33a8845f68f86fc9ec0725f6a72847fac0d6f662
[ "BSD-2-Clause" ]
2
2016-01-17T19:32:27.000Z
2016-08-31T03:15:37.000Z
import json class Processor(object): def process(self, body): raise NotImplementedError class S3Processor(Processor): def process(self, message): processor = self.processor_class() if 'Records' in message: for m in message['Records']: processor.process(m)...
23.927273
60
0.620061
133
1,316
6.082707
0.255639
0.074166
0.103832
0.166873
0.311496
0.275649
0.275649
0.275649
0.216316
0.145859
0
0.007361
0.277356
1,316
54
61
24.37037
0.843323
0
0
0.243243
0
0
0.037234
0
0
0
0
0
0
1
0.162162
false
0
0.027027
0
0.378378
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
869030d03b50f073d6546a77afae33bec45acbaa
6,058
py
Python
todo/todo.py
raymond-tran-95/Todo_List
369bfd57d0387d03b9511d1d33e63054a9ba93c9
[ "MIT" ]
null
null
null
todo/todo.py
raymond-tran-95/Todo_List
369bfd57d0387d03b9511d1d33e63054a9ba93c9
[ "MIT" ]
null
null
null
todo/todo.py
raymond-tran-95/Todo_List
369bfd57d0387d03b9511d1d33e63054a9ba93c9
[ "MIT" ]
null
null
null
# Use this file to add in functions for your programs functionality import uuid import json import os from typing import List class TodoList: def __init__(self, store: str = "todo.json") -> None: missingTodoFile() self.store = store with open(self.store) as f: self.data = json....
31.226804
150
0.608121
771
6,058
4.697795
0.189364
0.028713
0.026505
0.041966
0.490613
0.419934
0.392325
0.376035
0.365544
0.331585
0
0.00446
0.296798
6,058
193
151
31.388601
0.845775
0.433146
0
0.347222
0
0
0.121668
0
0
0
0
0.15544
0
1
0.194444
false
0.013889
0.055556
0
0.291667
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
1
0
0
0
0
0
0
0
0
0
0
1
8695f28e4b165f8832debe1725fd8c0e03042e9e
242
py
Python
01_Operadores_aritmeticos/07.py
TheCarvalho/Curso-Em-Video-Python
8bd5128023ddf8b0f59eab46463c95e47569da73
[ "Unlicense" ]
null
null
null
01_Operadores_aritmeticos/07.py
TheCarvalho/Curso-Em-Video-Python
8bd5128023ddf8b0f59eab46463c95e47569da73
[ "Unlicense" ]
null
null
null
01_Operadores_aritmeticos/07.py
TheCarvalho/Curso-Em-Video-Python
8bd5128023ddf8b0f59eab46463c95e47569da73
[ "Unlicense" ]
null
null
null
# *ex 7 = Desenvolva um programa que leia as duas notas de um aluno, calcule e mostre sua média. p = float(input('Cara, me manda sua primeira nota: ')) s = float(input('Manda a segunda: ')) print('Cara sua média é: {:.1f}'.format((p+s)/2))
34.571429
96
0.669421
43
242
3.767442
0.767442
0.098765
0
0
0
0
0
0
0
0
0
0.015
0.173554
242
6
97
40.333333
0.795
0.38843
0
0
0
0
0.517241
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
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
869bf466ab86fd897cf87577c868329e58f1ea48
2,710
py
Python
hwtLib/examples/builders/handshakedBuilderSimple.py
optical-o/hwtLib
edad621f5ad4cdbea20a5751ff4468979afe2f77
[ "MIT" ]
null
null
null
hwtLib/examples/builders/handshakedBuilderSimple.py
optical-o/hwtLib
edad621f5ad4cdbea20a5751ff4468979afe2f77
[ "MIT" ]
null
null
null
hwtLib/examples/builders/handshakedBuilderSimple.py
optical-o/hwtLib
edad621f5ad4cdbea20a5751ff4468979afe2f77
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from hwt.hdl.constants import Time from hwt.interfaces.std import Handshaked from hwt.interfaces.utils import addClkRstn from hwt.simulator.simTestCase import SingleUnitSimTestCase from hwt.synthesizer.unit import Unit from hwtLib.handshaked.builder import HsBuilder cla...
31.511628
77
0.64059
330
2,710
5.206061
0.433333
0.024447
0.025611
0.024447
0.082654
0.058207
0
0
0
0
0
0.011358
0.28524
2,710
85
78
31.882353
0.875581
0.491882
0
0
0
0
0.006051
0
0
0
0
0.011765
0.033333
1
0.133333
false
0.033333
0.233333
0
0.466667
0.033333
0
0
0
null
0
0
0
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
86a1286da332d210e04db8a6d464082e2c824806
7,173
py
Python
allauth/socialaccount/helpers.py
Raekkeri/django-allauth
a66dad7a4c2583c7d46c3eb0e8d3c7654ea5706c
[ "MIT" ]
null
null
null
allauth/socialaccount/helpers.py
Raekkeri/django-allauth
a66dad7a4c2583c7d46c3eb0e8d3c7654ea5706c
[ "MIT" ]
null
null
null
allauth/socialaccount/helpers.py
Raekkeri/django-allauth
a66dad7a4c2583c7d46c3eb0e8d3c7654ea5706c
[ "MIT" ]
null
null
null
from django.contrib import messages from django.shortcuts import render_to_response from django.http import HttpResponseRedirect from django.template import RequestContext from django.core.urlresolvers import reverse from django.contrib.auth.models import User from django.utils.translation import ugettext_lazy as _ fro...
39.196721
76
0.621637
828
7,173
5.210145
0.281401
0.045897
0.022949
0.024339
0.159481
0.098285
0.081595
0.058414
0.058414
0.034307
0
0.001189
0.296668
7,173
182
77
39.412088
0.853915
0.243413
0
0.152542
0
0
0.039024
0.023265
0
0
0
0.010989
0.008475
1
0.067797
false
0.025424
0.169492
0.008475
0.305085
0
0
0
0
null
0
0
0
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
86a179a2a2dc04acdde2d5a4aff32d2e963adc0d
1,037
py
Python
tests/conftest.py
capitalone/edgetest
181fbef6e22c77e8e3d22758d2d9392874aadc45
[ "Apache-2.0" ]
16
2021-12-02T21:13:59.000Z
2022-03-29T14:04:24.000Z
tests/conftest.py
capitalone/edgetest
181fbef6e22c77e8e3d22758d2d9392874aadc45
[ "Apache-2.0" ]
15
2021-11-29T17:58:03.000Z
2022-03-25T21:51:16.000Z
tests/conftest.py
capitalone/edgetest
181fbef6e22c77e8e3d22758d2d9392874aadc45
[ "Apache-2.0" ]
4
2021-12-10T18:30:15.000Z
2022-03-25T01:47:15.000Z
"""Set up a fake hook for testing purposes.""" import platform from pathlib import Path from typing import Dict import pluggy import pytest from edgetest import hookspecs hookimpl = pluggy.HookimplMarker("edgetest") class FakeHook: """Create a series of fake hooks.""" @hookimpl def path_to_python(sel...
25.292683
73
0.652845
125
1,037
5.376
0.44
0.040179
0.058036
0.089286
0.21875
0.107143
0.107143
0
0
0
0
0
0.22758
1,037
40
74
25.925
0.838951
0.239151
0
0.086957
0
0
0.058978
0
0
0
0
0
0
1
0.130435
false
0.043478
0.26087
0
0.565217
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
86a1d2c3614262bd384279667a3ffa9576844338
8,346
py
Python
relay_daemon/rabbitcomms/brokerconsumer.py
vt-gs/relay_daemon
9d77cd3222a3fe3e588f7c2196a4a06e8a73a471
[ "MIT" ]
null
null
null
relay_daemon/rabbitcomms/brokerconsumer.py
vt-gs/relay_daemon
9d77cd3222a3fe3e588f7c2196a4a06e8a73a471
[ "MIT" ]
null
null
null
relay_daemon/rabbitcomms/brokerconsumer.py
vt-gs/relay_daemon
9d77cd3222a3fe3e588f7c2196a4a06e8a73a471
[ "MIT" ]
null
null
null
import logging from brokerconnector import BrokerConnector # class BrokerConsumer(BrokerConnector): # """BrokerConsumer provides basic functionality to support the connection # needed for a typical Pika to RabbitMQ consumer connection. Individual # functions could be overridden if alternate or additional ...
48.807018
86
0.632758
1,032
8,346
5.016473
0.216085
0.015067
0.033997
0.038246
0.483485
0.449681
0.439251
0.439251
0.439251
0.354259
0
0
0.30242
8,346
170
87
49.094118
0.889213
0.542655
0
0.206349
0
0
0.112074
0
0
0
0
0
0
1
0.206349
false
0
0.031746
0
0.253968
0
0
0
0
null
0
0
0
0
0
0
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
86a43cb53c1dc5cf1e6ebe5a0fed83a3e9167ba7
8,280
py
Python
Scripts/mapOutline_AGP2.py
usgs/gems-tools-pro
5227bee243d50bfabc611dec3a9da6732b4c2909
[ "CC0-1.0" ]
15
2020-02-12T14:59:39.000Z
2022-03-03T00:05:12.000Z
Scripts/mapOutline_AGP2.py
usgs/gems-tools-pro
5227bee243d50bfabc611dec3a9da6732b4c2909
[ "CC0-1.0" ]
15
2021-01-15T15:43:59.000Z
2022-03-22T18:44:32.000Z
Scripts/mapOutline_AGP2.py
usgs/gems-tools-pro
5227bee243d50bfabc611dec3a9da6732b4c2909
[ "CC0-1.0" ]
4
2020-01-16T22:08:42.000Z
2021-08-09T05:45:16.000Z
# MapOutline.py # generates rectangular (in lat-long) map outline and # appropriate tics in projection of user's choosing. Result is # stored in an existing geodatabase # # For complex map outlines, try several runs and intersect the results. # # Ralph Haugerud, U.S. Geological Survey # rhaugerud@usgs...
34.936709
205
0.679952
1,074
8,280
5.191806
0.324022
0.011298
0.012554
0.021341
0.157999
0.118185
0.09774
0.071557
0.052547
0.020445
0
0.037575
0.193237
8,280
236
206
35.084746
0.797006
0.189493
0
0.076923
1
0.020979
0.213845
0.083847
0
0
0
0
0
1
0.020979
false
0.006993
0.006993
0
0.034965
0.013986
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
86a6e78ceea406861d9a2e4d804283c0ef3e24d7
903
py
Python
example/urls.py
ombu/django-sortedm2m
2691cf00174577bc667d5d8c1d42071604ee2095
[ "BSD-3-Clause" ]
null
null
null
example/urls.py
ombu/django-sortedm2m
2691cf00174577bc667d5d8c1d42071604ee2095
[ "BSD-3-Clause" ]
null
null
null
example/urls.py
ombu/django-sortedm2m
2691cf00174577bc667d5d8c1d42071604ee2095
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import django from django.conf.urls import include, url from django.contrib import admin from django.conf import settings from django.http import HttpResponse import django.views.static import example.testapp.views admin.autodiscover() def handle404(request): return HttpResponse('404') de...
28.21875
101
0.713178
115
903
5.573913
0.408696
0.031201
0.070203
0.087363
0.068643
0
0
0
0
0
0
0.03392
0.118494
903
31
102
29.129032
0.771357
0.023256
0
0.086957
0
0
0.190909
0.114773
0
0
0
0
0
1
0.086957
false
0
0.304348
0.086957
0.478261
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
86aa212de8f4df7d934d558d2dee00d6bb7fde24
623
py
Python
test/test_add_project.py
cherrymur/Python_training_mantis
cfb1d0813f0756c4755f0646ef0a6974b026b7a2
[ "Apache-2.0" ]
null
null
null
test/test_add_project.py
cherrymur/Python_training_mantis
cfb1d0813f0756c4755f0646ef0a6974b026b7a2
[ "Apache-2.0" ]
null
null
null
test/test_add_project.py
cherrymur/Python_training_mantis
cfb1d0813f0756c4755f0646ef0a6974b026b7a2
[ "Apache-2.0" ]
null
null
null
from model.project import Project import pytest from data.add_project import project @pytest.mark.parametrize('project', project, ids=[repr(x) for x in project]) def test_add_project(app, project): web_config = app.config['web'] username = web_config['username'] password = web_config['password'] old_p...
38.9375
101
0.752809
90
623
5
0.377778
0.086667
0.088889
0.08
0.28
0.28
0.168889
0
0
0
0
0
0.131621
623
15
102
41.533333
0.831793
0.035313
0
0
0
0
0.043406
0
0
0
0
0
0.076923
1
0.076923
false
0.230769
0.230769
0
0.307692
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
86aaa0f16f36a884639b7f1267e40aa46a264a9a
2,103
py
Python
rest_framework_security/brute_force_protection/views.py
RubenEu/django-rest-framework-security
638cf271c51a5bafd434a6b6a9c25a7c4849b485
[ "MIT" ]
null
null
null
rest_framework_security/brute_force_protection/views.py
RubenEu/django-rest-framework-security
638cf271c51a5bafd434a6b6a9c25a7c4849b485
[ "MIT" ]
null
null
null
rest_framework_security/brute_force_protection/views.py
RubenEu/django-rest-framework-security
638cf271c51a5bafd434a6b6a9c25a7c4849b485
[ "MIT" ]
null
null
null
from functools import wraps from rest_framework import generics, views from rest_framework.exceptions import ValidationError, PermissionDenied from rest_framework.response import Response from rest_framework_security.brute_force_protection.exceptions import ( BruteForceProtectionException, ) from rest_framework_s...
33.919355
99
0.718022
205
2,103
7.092683
0.360976
0.038514
0.081843
0.068776
0.259285
0.209766
0.209766
0.116919
0.116919
0
0
0.003641
0.216358
2,103
61
100
34.47541
0.878641
0
0
0.166667
0
0
0.001431
0
0
0
0
0
0
1
0.083333
false
0
0.166667
0
0.520833
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
86ab9a061da72d34b4e81817f967470563decaf3
215
py
Python
CursoEmVideo/ex049.py
EduardoArgenti/Python
18b4578033d6eb6fb0ae2d6a8511a4a813856203
[ "MIT" ]
null
null
null
CursoEmVideo/ex049.py
EduardoArgenti/Python
18b4578033d6eb6fb0ae2d6a8511a4a813856203
[ "MIT" ]
null
null
null
CursoEmVideo/ex049.py
EduardoArgenti/Python
18b4578033d6eb6fb0ae2d6a8511a4a813856203
[ "MIT" ]
null
null
null
# Refaça o DESAFIO 9, mostrando a tabuada de um número # que o usuário escolher, só que agora utilizando um laço for. num = int(input('Digite um valor: ')) for i in range(1,11): print(f'{num} X {i} = {num*i}')
30.714286
62
0.665116
40
215
3.575
0.775
0
0
0
0
0
0
0
0
0
0
0.023256
0.2
215
7
63
30.714286
0.80814
0.525581
0
0
0
0
0.38
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
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
86b5c5fe4b4013119630f6ec5fa5c41ecd43fcf7
17,065
py
Python
Model-code/CORPSE/CORPSE_run_script.py
bsulman/INTERFACE-model-experiment-synthesis
a20eebe34f9271233ecc4e7c84403b805bb0b523
[ "MIT" ]
1
2018-11-13T17:03:43.000Z
2018-11-13T17:03:43.000Z
Model-code/CORPSE/CORPSE_run_script.py
yuanhongdeng/INTERFACE-model-experiment-synthesis
a20eebe34f9271233ecc4e7c84403b805bb0b523
[ "MIT" ]
null
null
null
Model-code/CORPSE/CORPSE_run_script.py
yuanhongdeng/INTERFACE-model-experiment-synthesis
a20eebe34f9271233ecc4e7c84403b805bb0b523
[ "MIT" ]
3
2018-11-04T14:40:41.000Z
2021-07-16T11:33:52.000Z
import CORPSE from pylab import * import pandas # 5% clay params_lowclay={ 'vmaxref':[1500,50,600], #Relative maximum enzymatic decomp rates 'Ea':[37e3,54e3,50e3], # Activation energy 'kC':[0.01,0.01,0.01], # Michaelis-Menton parameter 'gas_diffusion_exp':2.5, # Determines suppression of decomp ...
43.533163
166
0.738939
2,262
17,065
5.283378
0.130858
0.06853
0.050205
0.045687
0.620618
0.532842
0.409003
0.361309
0.33219
0.276881
0
0.057996
0.108819
17,065
391
167
43.644501
0.727841
0.06358
0
0.078616
0
0.003145
0.273639
0.08478
0
0
0
0
0
0
null
null
0
0.015723
null
null
0.025157
0
0
0
null
0
0
0
0
0
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
86b61b808e7124b3a83f51341ed494b270ca67c6
1,872
py
Python
seatsvotes/plot.py
ljwolf/seatsvotes
6d44bba02016cc7ac24cebf6e0d70e1e9e801a5b
[ "MIT" ]
null
null
null
seatsvotes/plot.py
ljwolf/seatsvotes
6d44bba02016cc7ac24cebf6e0d70e1e9e801a5b
[ "MIT" ]
null
null
null
seatsvotes/plot.py
ljwolf/seatsvotes
6d44bba02016cc7ac24cebf6e0d70e1e9e801a5b
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import numpy as np from warnings import warn def cdf_shroud(reference, simulations, ax=None, label=None, shroud_kws=None, reference_kws=None, figure_kws=None, **common_args): if ax is None: if figure_kws is None: figure_kws = dict()...
35.320755
70
0.627671
240
1,872
4.716667
0.333333
0.095406
0.070671
0.022968
0
0
0
0
0
0
0
0.010264
0.271368
1,872
52
71
36
0.819648
0
0
0.08
0
0
0.064637
0
0
0
0
0
0
1
0.02
false
0.06
0.06
0
0.1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
86bbe648beda13043edd5fb88538d309f478e014
1,917
py
Python
src/dispatch/incident_type/models.py
snkilmartin/dispatch
db48c65d4b56734eb866016461e22923a4c8dea4
[ "Apache-2.0" ]
null
null
null
src/dispatch/incident_type/models.py
snkilmartin/dispatch
db48c65d4b56734eb866016461e22923a4c8dea4
[ "Apache-2.0" ]
null
null
null
src/dispatch/incident_type/models.py
snkilmartin/dispatch
db48c65d4b56734eb866016461e22923a4c8dea4
[ "Apache-2.0" ]
null
null
null
from typing import List, Optional from sqlalchemy import Column, ForeignKey, Integer, String from sqlalchemy.orm import relationship from sqlalchemy_utils import TSVectorType from dispatch.database import Base from dispatch.enums import Visibility from dispatch.models import DispatchBase class IncidentType(Base): ...
24.896104
69
0.747522
202
1,917
7
0.287129
0.054455
0.067893
0.067893
0.213579
0.213579
0.213579
0.213579
0.213579
0.165488
0
0
0.165884
1,917
76
70
25.223684
0.884303
0.00939
0
0.326923
0
0
0.026885
0
0
0
0
0
0
1
0
false
0
0.134615
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
86c2e89d2a84750dfc53e5f10b77e0f3ab6852a4
3,407
py
Python
src/lib/settings.py
guardian-network/hydra
b94eeb5b5c8c9300062a1ac785a893311b614f57
[ "MIT" ]
1
2020-02-11T03:09:37.000Z
2020-02-11T03:09:37.000Z
src/lib/settings.py
stanford-cancer-cell-therapy/HyDRA
b94eeb5b5c8c9300062a1ac785a893311b614f57
[ "MIT" ]
1
2020-02-26T23:37:12.000Z
2020-02-26T23:37:12.000Z
src/lib/settings.py
stanford-cancer-cell-therapy/HyDRA
b94eeb5b5c8c9300062a1ac785a893311b614f57
[ "MIT" ]
2
2020-05-07T23:06:48.000Z
2020-05-11T22:54:59.000Z
""" Classes in this file are standalone because we don't want to impose a false hierarchy between two classes. That is, inheritance may imply a hierarchy that isn't real. """ class Settings(object): kExactTestBias = 1.0339757656912846e-25 kSmallEpsilon = 5.684341886080802e-14 kLargeEpsilon = 1e-07 SM...
25.237037
101
0.621368
433
3,407
4.699769
0.290993
0.070762
0.062899
0.045209
0.335627
0.335627
0.277641
0.233907
0.161179
0.161179
0
0.057281
0.27238
3,407
134
102
25.425373
0.763614
0.119753
0
0.180952
0
0
0.118319
0.029916
0
0
0
0
0
1
0
false
0
0
0
0.790476
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
86c39a17bd117731b1432213486bb73d9b9b50da
796
py
Python
src/pretix/plugins/badges/tasks.py
NicsTr/pretix
e6d2380d9ed1836cc64a688b2be20d00a8500eab
[ "ECL-2.0", "Apache-2.0" ]
1
2020-04-25T00:11:00.000Z
2020-04-25T00:11:00.000Z
src/pretix/plugins/badges/tasks.py
NicsTr/pretix
e6d2380d9ed1836cc64a688b2be20d00a8500eab
[ "ECL-2.0", "Apache-2.0" ]
1
2020-06-12T00:09:40.000Z
2020-06-12T00:09:40.000Z
src/pretix/plugins/badges/tasks.py
NicsTr/pretix
e6d2380d9ed1836cc64a688b2be20d00a8500eab
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
import logging from typing import List from django.core.files.base import ContentFile from pretix.base.models import ( CachedFile, Event, OrderPosition, cachedfile_name, ) from pretix.base.services.orders import OrderError from pretix.base.services.tasks import EventTask from pretix.celery_app import app from .e...
30.615385
102
0.773869
106
796
5.688679
0.481132
0.066335
0.069652
0.072968
0
0
0
0
0
0
0
0
0.119347
796
25
103
31.84
0.8602
0
0
0
0
0
0.003769
0
0
0
0
0
0
1
0.055556
false
0
0.444444
0
0.555556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
86c4d3e2b6fb060ef748bae437a992e5b652b63f
1,743
py
Python
fixture/project.py
ak32pvi/python_training_mantis
92df6b42de755f626e3e866784184c7228aabfcc
[ "Apache-2.0" ]
null
null
null
fixture/project.py
ak32pvi/python_training_mantis
92df6b42de755f626e3e866784184c7228aabfcc
[ "Apache-2.0" ]
null
null
null
fixture/project.py
ak32pvi/python_training_mantis
92df6b42de755f626e3e866784184c7228aabfcc
[ "Apache-2.0" ]
null
null
null
from model.project import Project class ProjectHelper: def __init__(self, app): self.app = app def go_to_create_project(self): wd = self.app.wd wd.find_element_by_link_text("Manage").click() wd.find_element_by_link_text("Manage Projects").click() def open_project_create_...
27.234375
92
0.641997
258
1,743
4.03876
0.236434
0.069098
0.112284
0.129559
0.554703
0.53071
0.461612
0.403071
0.370441
0.370441
0
0.008962
0.231784
1,743
63
93
27.666667
0.769231
0
0
0.285714
0
0.02381
0.116561
0.063474
0
0
0
0
0
1
0.214286
false
0
0.02381
0
0.309524
0
0
0
0
null
0
0
0
0
0
0
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
86c896b429b6543b149ce683a4a84d66e4c5f6c2
3,152
py
Python
src/olympia/hero/serializers.py
piotrzarycki/addons-server
2ede755c0925b8bf62854b9087f580a808e09253
[ "BSD-3-Clause" ]
1
2020-07-27T11:22:17.000Z
2020-07-27T11:22:17.000Z
src/olympia/hero/serializers.py
renuacpro/addons-server
7435857d7fd709929caf6f260a580961a0643f4e
[ "BSD-3-Clause" ]
null
null
null
src/olympia/hero/serializers.py
renuacpro/addons-server
7435857d7fd709929caf6f260a580961a0643f4e
[ "BSD-3-Clause" ]
null
null
null
from django.utils.translation import ugettext from rest_framework import serializers from olympia import amo from olympia.addons.models import Addon from olympia.addons.serializers import AddonSerializer from olympia.amo.templatetags.jinja_helpers import absolutify from olympia.amo.urlresolvers import get_outgoing_ur...
33.531915
78
0.671954
308
3,152
6.779221
0.279221
0.031609
0.024904
0.030172
0.197318
0.152299
0.049808
0.049808
0.049808
0
0
0
0.238579
3,152
93
79
33.892473
0.87
0
0
0.239437
0
0
0.074873
0
0
0
0
0
0
1
0.084507
false
0
0.126761
0.042254
0.619718
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
86ce764cf7a9df409db9cc4d259ea26ebcd8ab5c
3,724
py
Python
vnmrjpy/aloha/alternatingdmm.py
hlatkydavid/vnmrjpy
48707a1000dc87e646e37c8bd686e695bd31a61e
[ "MIT" ]
null
null
null
vnmrjpy/aloha/alternatingdmm.py
hlatkydavid/vnmrjpy
48707a1000dc87e646e37c8bd686e695bd31a61e
[ "MIT" ]
null
null
null
vnmrjpy/aloha/alternatingdmm.py
hlatkydavid/vnmrjpy
48707a1000dc87e646e37c8bd686e695bd31a61e
[ "MIT" ]
null
null
null
import copy import numpy as np import sys import vnmrjpy as vj import time class Admm(): """Alternating Direction Method of Multipliers solver for Aloha Tuned for ALOHA MRI reconstruction framework, not for general use yet. Lmafit estimates the rank, then Admm is used to enforce the hankel structure ...
36.871287
82
0.570623
478
3,724
4.334728
0.334728
0.062741
0.023166
0.026062
0.141892
0.068533
0.044402
0.025097
0
0
0
0.008995
0.313373
3,724
100
83
37.24
0.80133
0.320892
0
0
0
0
0.021106
0
0
0
0
0.02
0
1
0.043478
false
0
0.108696
0
0.195652
0
0
0
0
null
0
0
0
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
86cf397d15868668749064bca7451f7fe77cf4fd
2,096
py
Python
pyart/bridge/wradlib_bridge.py
josephhardinee/pyart
909cd4a36bb4cae34349294d2013bc7ad71d0969
[ "OLDAP-2.6", "Python-2.0" ]
null
null
null
pyart/bridge/wradlib_bridge.py
josephhardinee/pyart
909cd4a36bb4cae34349294d2013bc7ad71d0969
[ "OLDAP-2.6", "Python-2.0" ]
null
null
null
pyart/bridge/wradlib_bridge.py
josephhardinee/pyart
909cd4a36bb4cae34349294d2013bc7ad71d0969
[ "OLDAP-2.6", "Python-2.0" ]
null
null
null
""" pyart.bridge.wradlib ==================== Py-ART methods linking to wradlib functions, http://wradlib.bitbucket.org/ .. autosummary:: :toctree: generated/ texture_of_complex_phase """ import wradlib import numpy as np from ..config import get_metadata, get_field_name def texture_of_complex_phase(r...
28.712329
78
0.685592
273
2,096
5.117216
0.373626
0.077309
0.048676
0.032212
0.251253
0.227631
0.227631
0.227631
0.227631
0.227631
0
0.013068
0.233302
2,096
72
79
29.111111
0.856254
0.597805
0
0.125
1
0
0.060858
0
0
0
0
0
0
1
0.0625
false
0
0.1875
0
0.3125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
86d3dd527842e3b6a86c5d9cd737face87a8279d
14,312
py
Python
packages/augur-core/tests/trading/test_claimTradingProceeds.py
anurag-arjun/augur
a5f91f49c54939d2118c24865d62a7b73e515a57
[ "MIT" ]
1
2022-01-05T23:11:08.000Z
2022-01-05T23:11:08.000Z
packages/augur-core/tests/trading/test_claimTradingProceeds.py
anurag-arjun/augur
a5f91f49c54939d2118c24865d62a7b73e515a57
[ "MIT" ]
null
null
null
packages/augur-core/tests/trading/test_claimTradingProceeds.py
anurag-arjun/augur
a5f91f49c54939d2118c24865d62a7b73e515a57
[ "MIT" ]
3
2020-08-18T18:44:54.000Z
2020-08-24T07:02:19.000Z
#!/usr/bin/env python from eth_tester.exceptions import TransactionFailed from pytest import raises, fixture, mark from utils import fix, AssertLog, EtherDelta, TokenDelta, BuyWithCash, nullAddress from constants import YES, NO def captureLog(contract, logs, message): translated = contract.translator.listen(mess...
56.56917
157
0.763485
1,373
14,312
7.93445
0.140568
0.128878
0.071874
0.072701
0.739214
0.714797
0.671654
0.64687
0.62897
0.551772
0
0.021819
0.141769
14,312
252
158
56.793651
0.865098
0.079723
0
0.482353
0
0
0.030905
0.001675
0
0
0
0
0.305882
1
0.070588
false
0
0.023529
0
0.094118
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
86d485052e2eeef117188ec13dbb41019a906b67
1,943
py
Python
alipay/aop/api/domain/SecuritydataMobileCity.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/SecuritydataMobileCity.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/SecuritydataMobileCity.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import simplejson as json from alipay.aop.api.constant.ParamConstants import * class SecuritydataMobileCity(object): def __init__(self): self._city = None self._phone_first_7_digits = None self._province = None @property def city(sel...
27.366197
91
0.598559
240
1,943
4.5375
0.1875
0.137741
0.151515
0.23416
0.367309
0.189164
0.12213
0.12213
0.080808
0.080808
0
0.011861
0.305713
1,943
70
92
27.757143
0.795404
0.021616
0
0.109091
0
0
0.089615
0
0
0
0
0
0
1
0.163636
false
0
0.036364
0.054545
0.327273
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
86d5aef8b2dc928a5494e0f1df4e3514ec41d9da
1,927
py
Python
models.py
Danny411/Flask-ToDo
7ea37fbc81acda2a196f246d688339f6cd9e517f
[ "MIT" ]
1
2018-03-17T22:50:02.000Z
2018-03-17T22:50:02.000Z
models.py
Danny411/Flask-ToDo
7ea37fbc81acda2a196f246d688339f6cd9e517f
[ "MIT" ]
23
2019-12-14T11:06:41.000Z
2020-08-26T07:58:22.000Z
models.py
Danny411/Flask-ToDo
7ea37fbc81acda2a196f246d688339f6cd9e517f
[ "MIT" ]
2
2018-03-17T14:13:05.000Z
2018-03-17T22:50:19.000Z
""" Define SQLAlchemy models. The SQLAlchemy models for the database is defined here. """ from datetime import datetime from flask_sqlalchemy import SQLAlchemy db = SQLAlchemy() class User(db.Model): """ Set up the User model. Set up the properties of the User object and the table name too. """ ...
25.355263
74
0.632071
238
1,927
4.957983
0.298319
0.061017
0.076271
0.054237
0.389831
0.332203
0.332203
0.162712
0.10678
0.10678
0
0.006289
0.257395
1,927
75
75
25.693333
0.818309
0.223145
0
0.171429
0
0
0.056156
0.015839
0
0
0
0
0
1
0.171429
false
0.028571
0.057143
0.114286
0.8
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
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
86d674a830f04391b12485e09ecb534f399e7f03
4,693
py
Python
nuodbawsquickstart/zone.py
nuodb/nuodb-aws-quickstart
0f98dc6e0e0a9645fd453b9490b02faa959e9a9b
[ "BSD-3-Clause" ]
2
2015-09-29T19:18:16.000Z
2021-01-19T20:57:49.000Z
nuodbawsquickstart/zone.py
nuodb/nuodb-aws-quickstart
0f98dc6e0e0a9645fd453b9490b02faa959e9a9b
[ "BSD-3-Clause" ]
null
null
null
nuodbawsquickstart/zone.py
nuodb/nuodb-aws-quickstart
0f98dc6e0e0a9645fd453b9490b02faa959e9a9b
[ "BSD-3-Clause" ]
1
2017-05-17T10:06:57.000Z
2017-05-17T10:06:57.000Z
import boto.ec2 import boto.vpc import sys import traceback class Zone: def __init__(self, name, vpc_id = None): self.name = name self.vpc_id = vpc_id def connect(self, aws_access_key, aws_secret): self.aws_access_key = aws_access_key self.aws_secret = aws_secret self...
35.285714
179
0.642872
600
4,693
4.73
0.196667
0.033474
0.071882
0.077519
0.338266
0.284708
0.212121
0.162086
0.162086
0.162086
0
0.005779
0.262519
4,693
132
180
35.55303
0.814216
0.005114
0
0.190909
0
0.009091
0.061496
0
0
0
0
0
0
0
null
null
0.018182
0.036364
null
null
0.027273
0
0
0
null
0
0
0
0
0
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
86d95fce35bee142b28b1061d5dfc2b410f0ba28
1,753
py
Python
covfefe/frameworks/torch/model.py
deepnn/pybrew
1417c910f6663e1c5f3c5eafdf1a34b68dce88a1
[ "MIT" ]
4
2017-06-08T08:59:48.000Z
2020-02-13T18:17:00.000Z
covfefe/frameworks/torch/model.py
deepnn/coffee
1417c910f6663e1c5f3c5eafdf1a34b68dce88a1
[ "MIT" ]
null
null
null
covfefe/frameworks/torch/model.py
deepnn/coffee
1417c910f6663e1c5f3c5eafdf1a34b68dce88a1
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import print_function from collections import OrderedDict import copy import torch import torch.nn as nn import torch.nn.functional as F class Model(nn.Module): def __init__(self, forwards, all_layers): super(Model, self).__init__() # outputs list, this wi...
30.754386
81
0.705077
266
1,753
4.5
0.342105
0.037594
0.032581
0.025063
0.066834
0
0
0
0
0
0
0.004313
0.206503
1,753
56
82
31.303571
0.856219
0.285796
0
0.054054
0
0
0
0
0
0
0
0
0
0
null
null
0
0.189189
null
null
0.027027
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
86dae65fddb566bb8dd8c80367a0395488f94eb7
1,147
py
Python
Validation/MuonCSCDigis/python/muonCSCStubPSet.py
Purva-Chaudhari/cmssw
32e5cbfe54c4d809d60022586cf200b7c3020bcf
[ "Apache-2.0" ]
13
2015-11-30T15:49:45.000Z
2022-02-08T16:11:30.000Z
Validation/MuonCSCDigis/python/muonCSCStubPSet.py
Purva-Chaudhari/cmssw
32e5cbfe54c4d809d60022586cf200b7c3020bcf
[ "Apache-2.0" ]
640
2015-02-11T18:55:47.000Z
2022-03-31T14:12:23.000Z
Validation/MuonCSCDigis/python/muonCSCStubPSet.py
Purva-Chaudhari/cmssw
32e5cbfe54c4d809d60022586cf200b7c3020bcf
[ "Apache-2.0" ]
51
2015-08-11T21:01:40.000Z
2022-03-30T07:31:34.000Z
import FWCore.ParameterSet.Config as cms muonCSCStubPSet = cms.PSet( #csc CLCT, central BX 7 cscCLCT = cms.PSet( verbose = cms.int32(0), inputTag = cms.InputTag("simCscTriggerPrimitiveDigis"), minBX = cms.int32(6), maxBX = cms.int32(8), minNHitsChamber = cms.int32(4), ...
30.184211
75
0.585876
128
1,147
5.25
0.304688
0.190476
0.066964
0.10119
0.727679
0.604167
0.604167
0.604167
0.604167
0.604167
0
0.063337
0.28422
1,147
37
76
31
0.755177
0.082825
0
0.59375
0
0
0.111641
0.103053
0
0
0
0
0
1
0
false
0
0.03125
0
0.03125
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
86e591603476312696ebe9c75e2ac393384cd370
464
py
Python
sympy/liealgebras/tests/test_type_E.py
torsknod/sympy-torsknod
19425c8d2d876710413987eaa6e69ff9d47a0380
[ "BSD-3-Clause" ]
1
2020-03-12T02:52:16.000Z
2020-03-12T02:52:16.000Z
sympy/liealgebras/tests/test_type_E.py
torsknod/sympy-torsknod
19425c8d2d876710413987eaa6e69ff9d47a0380
[ "BSD-3-Clause" ]
null
null
null
sympy/liealgebras/tests/test_type_E.py
torsknod/sympy-torsknod
19425c8d2d876710413987eaa6e69ff9d47a0380
[ "BSD-3-Clause" ]
null
null
null
from sympy.liealgebras.cartan_type import CartanType from sympy.matrices import Matrix def test_type_E(): c = CartanType("E6") m = Matrix(6, 6, [2, 0, -1, 0, 0, 0, 0, 2, 0, -1, 0, 0, -1, 0, 2, -1, 0, 0, 0, -1, -1, 2, -1, 0, 0, 0, 0, -1, 2, -1, 0, 0, 0, 0, -1, 2]) assert c.cartan_matrix() ==...
33.142857
59
0.519397
89
464
2.651685
0.314607
0.135593
0.114407
0.084746
0.165254
0.067797
0.067797
0.067797
0.067797
0
0
0.156342
0.269397
464
13
60
35.692308
0.539823
0
0
0
0
0
0.00431
0
0
0
0
0
0.416667
1
0.083333
false
0
0.166667
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
1
86e621a78d6e76be6db9ce0646480934f114ab0d
1,253
py
Python
pcard/gen.py
tarekziade/pcard
7c057250ca43283e29e5072de3ef2199ea03254f
[ "MIT" ]
1
2017-06-28T20:18:23.000Z
2017-06-28T20:18:23.000Z
pcard/gen.py
tarekziade/pcard
7c057250ca43283e29e5072de3ef2199ea03254f
[ "MIT" ]
null
null
null
pcard/gen.py
tarekziade/pcard
7c057250ca43283e29e5072de3ef2199ea03254f
[ "MIT" ]
null
null
null
# -*- encoding: utf8 -*- import os import binascii from string import ascii_letters, digits from hashlib import sha256 import base64 import getpass import sys SYMBOLS = u"☀ ☂ ☎ ☠ ☭ ☮ ☺ ☹ ♔ ♘ ♜ ♥ ♣ ♪ ♻ ⚓ ⚛ ⚖ ★ ☕ ☯ ⚪ ⚫ ⚥ ♂ ♀ ☾ ☞ ☢" ALLOWED = ascii_letters + digits _LINES = 10 def generate_key(size=_LINES): return...
20.883333
70
0.588188
189
1,253
3.920635
0.507937
0.053981
0.048583
0.045884
0
0
0
0
0
0
0
0.020408
0.256983
1,253
59
71
21.237288
0.744361
0.017558
0
0
0
0.02381
0.093572
0
0
0
0
0
0
1
0.142857
false
0.071429
0.166667
0.047619
0.428571
0.071429
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
86e80914f4f8f6de5125e3bc786cb34f8db1f3e8
9,530
py
Python
google/cloud/dialogflowcx_v3beta1/types/environment.py
wuyuexin/python-dialogflow-cx
80f36ad67c8bb6f27dc8c2c5271451b8fea48508
[ "Apache-2.0" ]
null
null
null
google/cloud/dialogflowcx_v3beta1/types/environment.py
wuyuexin/python-dialogflow-cx
80f36ad67c8bb6f27dc8c2c5271451b8fea48508
[ "Apache-2.0" ]
null
null
null
google/cloud/dialogflowcx_v3beta1/types/environment.py
wuyuexin/python-dialogflow-cx
80f36ad67c8bb6f27dc8c2c5271451b8fea48508
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
35.827068
118
0.675026
1,098
9,530
5.806011
0.217668
0.029804
0.044706
0.054118
0.54949
0.532863
0.450353
0.41898
0.356863
0.356863
0
0.011512
0.234313
9,530
265
119
35.962264
0.862135
0.656768
0
0.294118
0
0
0.092365
0.088268
0
0
0
0
0
1
0.029412
false
0
0.044118
0.029412
0.558824
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
86ef48547c79273d08664d730b2209f29e366a61
1,440
py
Python
fetch_source.py
Isaacwhyuenac/codewars-kata-exporter
826d06d2560919b57fe4c316e8f3484a1bccfa7b
[ "MIT" ]
null
null
null
fetch_source.py
Isaacwhyuenac/codewars-kata-exporter
826d06d2560919b57fe4c316e8f3484a1bccfa7b
[ "MIT" ]
null
null
null
fetch_source.py
Isaacwhyuenac/codewars-kata-exporter
826d06d2560919b57fe4c316e8f3484a1bccfa7b
[ "MIT" ]
null
null
null
import json import time from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.common.keys import Keys from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.support.wait import WebDriverWait from webdriver_manager.chrome import ChromeDriver...
32
76
0.772222
195
1,440
5.512821
0.466667
0.055814
0.094884
0.106047
0.152558
0.107907
0.061395
0
0
0
0
0.003805
0.0875
1,440
44
77
32.727273
0.814307
0.080556
0
0
0
0
0.190909
0.037879
0
0
0
0
0
1
0
false
0.066667
0.266667
0
0.266667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
86f2f9dd1ad3aaf371f31f30b54995bea0e0d92e
5,705
py
Python
pypureclient/flasharray/FA_2_4/models/session.py
Flav-STOR-WL/py-pure-client
03b889c997d90380ac5d6380ca5d5432792d3e89
[ "BSD-2-Clause" ]
14
2018-12-07T18:30:27.000Z
2022-02-22T09:12:33.000Z
pypureclient/flasharray/FA_2_4/models/session.py
Flav-STOR-WL/py-pure-client
03b889c997d90380ac5d6380ca5d5432792d3e89
[ "BSD-2-Clause" ]
28
2019-09-17T21:03:52.000Z
2022-03-29T22:07:35.000Z
pypureclient/flasharray/FA_2_4/models/session.py
Flav-STOR-WL/py-pure-client
03b889c997d90380ac5d6380ca5d5432792d3e89
[ "BSD-2-Clause" ]
15
2020-06-11T15:50:08.000Z
2022-03-21T09:27:25.000Z
# coding: utf-8 """ FlashArray REST API No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: 2.4 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re import six import typing from ....
34.36747
220
0.560911
685
5,705
4.535766
0.251095
0.025748
0.028967
0.041841
0.125523
0.09205
0.09205
0.067589
0.024461
0.024461
0
0.002125
0.340228
5,705
165
221
34.575758
0.823326
0.3383
0
0.036036
1
0
0.083007
0
0
0
0
0
0
1
0.072072
false
0
0.054054
0
0.225225
0.018018
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
86f42b803eb9226387ec446de9a694a25d8f6857
3,182
py
Python
nix/file.py
gicmo/nixpy
015bef00af764f3f773fb0e8fe5afa660669adf8
[ "BSD-3-Clause" ]
null
null
null
nix/file.py
gicmo/nixpy
015bef00af764f3f773fb0e8fe5afa660669adf8
[ "BSD-3-Clause" ]
null
null
null
nix/file.py
gicmo/nixpy
015bef00af764f3f773fb0e8fe5afa660669adf8
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2014, German Neuroinformatics Node (G-Node) # # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted under the terms of the BSD License. See # LICENSE file in the root of the Project. from __future__ import (absolute_import, division,...
34.967033
99
0.67159
427
3,182
4.845433
0.351288
0.012083
0.010633
0.019333
0.150797
0.086032
0.058966
0.058966
0.032866
0
0
0.001707
0.263671
3,182
90
100
35.355556
0.881349
0.493715
0
0.125
0
0
0.122182
0.015273
0
0
0
0
0
1
0.15625
false
0
0.25
0
0.59375
0.03125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
86f46405b0b3a16c037c01afe0ff2c6277ecc033
1,378
py
Python
apariencia/models.py
jjmartinr01/gauss3
1c71c44430e0f15fb2f3f83d32ad66bb1b7e3e94
[ "MIT" ]
null
null
null
apariencia/models.py
jjmartinr01/gauss3
1c71c44430e0f15fb2f3f83d32ad66bb1b7e3e94
[ "MIT" ]
null
null
null
apariencia/models.py
jjmartinr01/gauss3
1c71c44430e0f15fb2f3f83d32ad66bb1b7e3e94
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from django.db import models # from autenticar.models import Gauser, Gauser_extra # from entidades.models import Entidad, Ronda from autenticar.models import Gauser from entidades.models import Entidad, Ronda, Gauser_extra from datetime import datetime import os class Apariencia(models.Model...
44.451613
106
0.731495
195
1,378
5.046154
0.292308
0.106707
0.09248
0.120935
0.685976
0.620935
0.545732
0.487805
0.445122
0.445122
0
0.018707
0.146589
1,378
31
107
44.451613
0.818027
0.08418
0
0.4
0
0
0.162828
0
0
0
0
0
0
1
0.1
false
0
0.25
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
86f59bac3f2c1bfccb95f7b6dc6ca78849270590
973
py
Python
tests/opentracer/test_tracer_tornado.py
zhammer/dd-trace-py
4c30f6e36bfa34a63cd9b6884677c977f76d2a01
[ "Apache-2.0", "BSD-3-Clause" ]
5
2020-03-07T01:12:29.000Z
2021-04-21T00:53:19.000Z
tests/opentracer/test_tracer_tornado.py
zhammer/dd-trace-py
4c30f6e36bfa34a63cd9b6884677c977f76d2a01
[ "Apache-2.0", "BSD-3-Clause" ]
4
2019-11-22T20:58:01.000Z
2020-08-17T21:16:13.000Z
tests/opentracer/test_tracer_tornado.py
zhammer/dd-trace-py
4c30f6e36bfa34a63cd9b6884677c977f76d2a01
[ "Apache-2.0", "BSD-3-Clause" ]
3
2020-03-18T16:29:20.000Z
2020-07-20T16:05:10.000Z
import pytest from opentracing.scope_managers.tornado import TornadoScopeManager @pytest.fixture() def ot_tracer(ot_tracer_factory): """Fixture providing an opentracer configured for tornado usage.""" yield ot_tracer_factory('tornado_svc', {}, TornadoScopeManager()) class TestTracerTornado(object): """ ...
31.387097
75
0.658787
127
973
4.897638
0.527559
0.078778
0.083601
0.067524
0.086817
0.086817
0
0
0
0
0
0.019973
0.22816
973
30
76
32.433333
0.808256
0.220966
0
0
0
0
0.031378
0
0
0
0
0
0.352941
1
0.117647
false
0.058824
0.117647
0
0.294118
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
86f655f9d71cbd607a5e7a63275d2a8bba30997b
13,735
py
Python
src/openprocurement/relocation/api/tests/plan.py
ProzorroUKR/openprocurement.api
2855a99aa8738fb832ee0dbad4e9590bd3643511
[ "Apache-2.0" ]
10
2020-02-18T01:56:21.000Z
2022-03-28T00:32:57.000Z
src/openprocurement/relocation/api/tests/plan.py
quintagroup/openprocurement.api
2855a99aa8738fb832ee0dbad4e9590bd3643511
[ "Apache-2.0" ]
26
2018-07-16T09:30:44.000Z
2021-02-02T17:51:30.000Z
src/openprocurement/relocation/api/tests/plan.py
ProzorroUKR/openprocurement.api
2855a99aa8738fb832ee0dbad4e9590bd3643511
[ "Apache-2.0" ]
15
2019-08-08T10:50:47.000Z
2022-02-05T14:13:36.000Z
# -*- coding: utf-8 -*- import os from copy import deepcopy from openprocurement.api.tests.base import BaseWebTest from openprocurement.planning.api.tests.base import test_plan_data from openprocurement.tender.core.tests.base import change_auth class BasePlanOwnershipChangeTest(BaseWebTest): relative_to = os.pat...
43.46519
115
0.578522
1,408
13,735
5.517756
0.112926
0.038744
0.106577
0.082121
0.704981
0.683486
0.669198
0.632771
0.626335
0.619771
0
0.010872
0.27004
13,735
315
116
43.603175
0.764014
0.060866
0
0.549242
0
0
0.186335
0.005124
0
0
0
0
0.189394
1
0.037879
false
0
0.018939
0
0.113636
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
81093bd7d3d8e2dcb3768fe6a8420ab71e210aab
2,648
py
Python
main.py
Lukul/elevationcharts
ca1ef7e645d444f24d70976997230eb4497b4f5a
[ "MIT" ]
null
null
null
main.py
Lukul/elevationcharts
ca1ef7e645d444f24d70976997230eb4497b4f5a
[ "MIT" ]
null
null
null
main.py
Lukul/elevationcharts
ca1ef7e645d444f24d70976997230eb4497b4f5a
[ "MIT" ]
null
null
null
import gpx_conversion import chart_plot import pickle def tracks_and_waypoints(distance, elevation, waypoint_index, annotation, water, tracks, waypoints): print(tracks) starting_index = len(distance) segment = gpx_conversion.segment(tracks, waypoints) d, e = segment.get_distance_and_elevation(distance[-1] if len(d...
34.38961
100
0.692598
341
2,648
5.175953
0.187683
0.110482
0.141643
0.169972
0.614164
0.496884
0.310482
0.285552
0.285552
0.142776
0
0.001846
0.181647
2,648
76
101
34.842105
0.812644
0.017749
0
0.078125
0
0
0.170835
0.069257
0
0
0
0
0
1
0.03125
false
0
0.046875
0
0.078125
0.046875
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
810c071ec0c29ff4f9da82a81727dc761e0e03bc
4,182
py
Python
tests/input/jpeg/test_jpeg.py
asweeney86/preview-generator
354cbac1c131ebbb81cd9cfd9b4bc0c184d10103
[ "MIT" ]
null
null
null
tests/input/jpeg/test_jpeg.py
asweeney86/preview-generator
354cbac1c131ebbb81cd9cfd9b4bc0c184d10103
[ "MIT" ]
null
null
null
tests/input/jpeg/test_jpeg.py
asweeney86/preview-generator
354cbac1c131ebbb81cd9cfd9b4bc0c184d10103
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import hashlib import json import os import re import shutil import typing from PIL import Image import pytest from preview_generator.exception import UnavailablePreviewType from preview_generator.manager import PreviewManager from tests import test_utils CURRENT_DIR = os.path.dirname(os.pat...
38.722222
93
0.755858
616
4,182
4.86526
0.189935
0.072072
0.08008
0.122789
0.616617
0.476143
0.476143
0.459459
0.422422
0.422422
0
0.008676
0.145624
4,182
107
94
39.084112
0.830115
0.017695
0
0.228916
0
0
0.114982
0.030451
0
0
0
0.009346
0.518072
1
0.084337
false
0
0.13253
0
0.216867
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
1
81113671ee46f40938229ef76dd31578c88d1ec2
2,160
py
Python
scripts/build_boost.py
xorsnn/altexo
2587ecd66a970d6805cc40635a9ec19786b05dce
[ "MIT" ]
1
2018-09-06T15:37:19.000Z
2018-09-06T15:37:19.000Z
scripts/build_boost.py
xorsnn/altexo
2587ecd66a970d6805cc40635a9ec19786b05dce
[ "MIT" ]
null
null
null
scripts/build_boost.py
xorsnn/altexo
2587ecd66a970d6805cc40635a9ec19786b05dce
[ "MIT" ]
null
null
null
import os import subprocess from urllib.request import urlopen import zipfile import platform # BOOST_DIR = os.path.realpath(os.path.join(DOWNLOAD_DIR, "boost_1_64_0")) BOOST_DOWNLOAD_LINK = "https://dl.bintray.com/boostorg/release/1.64.0/source/boost_1_64_0.zip" # BOOST_ARCH_HASH = "49c6abfeb5b480f6a86119c0d57235966b...
36
179
0.67963
296
2,160
4.72973
0.347973
0.125714
0.085
0.1
0.382143
0.317143
0.241429
0.194286
0.194286
0.194286
0
0.04834
0.205093
2,160
59
180
36.610169
0.767036
0.084259
0
0
0
0.044444
0.176798
0.010638
0
0
0
0.016949
0
1
0.088889
false
0
0.111111
0
0.2
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
8112273eee5cc5d74dbff5c92634cc38d9ff2397
953
py
Python
src/location/migrations/0001_initial.py
githubsol/django-geo-tracker
67d1ba102d588b7595a3da47a8166edefe22a051
[ "BSD-3-Clause" ]
null
null
null
src/location/migrations/0001_initial.py
githubsol/django-geo-tracker
67d1ba102d588b7595a3da47a8166edefe22a051
[ "BSD-3-Clause" ]
1
2021-07-08T15:45:12.000Z
2021-07-08T15:45:12.000Z
src/location/migrations/0001_initial.py
githubsol/django-geo-tracker
67d1ba102d588b7595a3da47a8166edefe22a051
[ "BSD-3-Clause" ]
1
2021-07-08T15:38:15.000Z
2021-07-08T15:38:15.000Z
# Generated by Django 3.2.2 on 2021-05-12 17:43 import django.contrib.gis.db.models.fields import django.core.serializers.json from django.db import migrations, models import django.db.models.deletion import uuid class Migration(migrations.Migration): initial = True dependencies = [ ('tracker', '00...
32.862069
159
0.658972
104
953
6.009615
0.528846
0.0512
0.1008
0.12
0.2304
0.096
0
0
0
0
0
0.032043
0.214061
953
28
160
34.035714
0.802403
0.047219
0
0
1
0
0.076159
0
0
0
0
0
0
1
0
false
0
0.238095
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8116256c15199dedee8373fdb0a480dbf466b821
5,314
py
Python
Lib/chunk.py
SaadBazaz/ChinesePython
800955539dda912d4a1621bcf5a700aaaddc012f
[ "CNRI-Python-GPL-Compatible" ]
3
2022-01-30T20:08:24.000Z
2022-02-12T08:51:12.000Z
Lib/chunk.py
SaadBazaz/ChinesePython
800955539dda912d4a1621bcf5a700aaaddc012f
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
Lib/chunk.py
SaadBazaz/ChinesePython
800955539dda912d4a1621bcf5a700aaaddc012f
[ "CNRI-Python-GPL-Compatible" ]
1
2019-04-11T11:27:01.000Z
2019-04-11T11:27:01.000Z
"""Simple class to read IFF chunks. An IFF chunk (used in formats such as AIFF, TIFF, RMFF (RealMedia File Format)) has the following structure: +----------------+ | ID (4 bytes) | +----------------+ | size (4 bytes) | +----------------+ | data | | ... | +----------------+ The ID is a 4-byte s...
31.630952
78
0.571886
703
5,314
4.285918
0.261735
0.050448
0.071689
0.031862
0.245602
0.204116
0.124129
0.097577
0.097577
0.097577
0
0.011898
0.335717
5,314
167
79
31.820359
0.841643
0.015055
0
0.244444
0
0
0.049968
0
0
0
0
0
0
0
null
null
0.011111
0.011111
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
8117450f40a4bb1e0c975dc0672be09e351e2170
6,428
py
Python
North Pacific/Particle Tracking/NorthPacificEkmanTracking.py
OceanParcels/SKIM-garbagepatchlocations
3c028e3ceba902ff79f52e31b83bed811bde1133
[ "MIT" ]
1
2021-07-13T12:55:20.000Z
2021-07-13T12:55:20.000Z
North Pacific/Particle Tracking/NorthPacificEkmanTracking.py
OceanParcels/SKIM-garbagepatchlocations
3c028e3ceba902ff79f52e31b83bed811bde1133
[ "MIT" ]
null
null
null
North Pacific/Particle Tracking/NorthPacificEkmanTracking.py
OceanParcels/SKIM-garbagepatchlocations
3c028e3ceba902ff79f52e31b83bed811bde1133
[ "MIT" ]
1
2022-02-28T14:03:13.000Z
2022-02-28T14:03:13.000Z
# -*- coding: utf-8 -*- """ Created on Wed Mar 14 14:43:49 2018 @author: Victor Onink """ from parcels import FieldSet, ParticleSet, JITParticle, AdvectionRK4,ErrorCode, plotTrajectoriesFile,Variable from datetime import timedelta, datetime import numpy as np from operator import attrgetter import math #We can add or...
48.330827
289
0.713441
879
6,428
5.152446
0.332196
0.034003
0.021638
0.03047
0.238022
0.179731
0.179731
0.14926
0.113932
0.113932
0
0.028953
0.161792
6,428
132
290
48.69697
0.811618
0.474798
0
0
0
0.057971
0.265149
0.208551
0
0
0
0
0
0
null
null
0
0.072464
null
null
0.057971
0
0
0
null
0
0
0
0
0
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
8117bac84955706aff17ff1c82a8e26fcacdd5a0
14,277
py
Python
intersight/models/storage_virtual_drive_config.py
ategaw-cisco/intersight-python
9d6476620507281b1dc358e29ac452d56081bbb0
[ "Apache-2.0" ]
null
null
null
intersight/models/storage_virtual_drive_config.py
ategaw-cisco/intersight-python
9d6476620507281b1dc358e29ac452d56081bbb0
[ "Apache-2.0" ]
null
null
null
intersight/models/storage_virtual_drive_config.py
ategaw-cisco/intersight-python
9d6476620507281b1dc358e29ac452d56081bbb0
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Intersight REST API This is Intersight REST API OpenAPI spec version: 1.0.9-262 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re class StorageVirtualDriveConfig(object): """ NOTE: ...
32.745413
250
0.620158
1,674
14,277
5.090203
0.11589
0.050698
0.160075
0.086844
0.64652
0.552869
0.532097
0.465321
0.393146
0.343856
0
0.002628
0.307067
14,277
435
251
32.82069
0.858688
0.388527
0
0.094737
1
0
0.123516
0
0
0
0
0
0
1
0.147368
false
0
0.015789
0
0.268421
0.005263
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
81247e49eed6a2cee6870aee16aef741c9362a7a
2,617
py
Python
var/spack/repos/builtin/packages/r-spatialeco/package.py
kkauder/spack
6ae8d5c380c1f42094b05d38be26b03650aafb39
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2,360
2017-11-06T08:47:01.000Z
2022-03-31T14:45:33.000Z
var/spack/repos/builtin/packages/r-spatialeco/package.py
kkauder/spack
6ae8d5c380c1f42094b05d38be26b03650aafb39
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
13,838
2017-11-04T07:49:45.000Z
2022-03-31T23:38:39.000Z
var/spack/repos/builtin/packages/r-spatialeco/package.py
kkauder/spack
6ae8d5c380c1f42094b05d38be26b03650aafb39
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
1,793
2017-11-04T07:45:50.000Z
2022-03-30T14:31:53.000Z
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class RSpatialeco(RPackage): """Spatial Analysis and Modelling Utilities Utilities to suppo...
53.408163
95
0.679022
348
2,617
5.043103
0.356322
0.102564
0.11396
0.205698
0.34359
0.331624
0.231339
0.220513
0.181766
0.181766
0
0.104294
0.128009
2,617
48
96
54.520833
0.664768
0.273978
0
0
0
0.034483
0.455717
0.137413
0
0
0
0
0
1
0
false
0
0.034483
0
0.172414
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
812817746d7acb3540947c3ecf9830a3bd6fc6a0
9,393
py
Python
Python_TPM20_GUI/main.py
Timothy-Lim/optiga-tpm-explorer
7c4d24f045f384e7d4531bfd7cbfcd5f030df925
[ "MIT" ]
null
null
null
Python_TPM20_GUI/main.py
Timothy-Lim/optiga-tpm-explorer
7c4d24f045f384e7d4531bfd7cbfcd5f030df925
[ "MIT" ]
null
null
null
Python_TPM20_GUI/main.py
Timothy-Lim/optiga-tpm-explorer
7c4d24f045f384e7d4531bfd7cbfcd5f030df925
[ "MIT" ]
null
null
null
import wx import tab1_setup as t1 import tab2_crypto as t2 import tab3_engine as t3 import tab4_policy as t4 import tab5_attest as t5 import tab6_cloud as t6 import misc_dialogs as misc import shell_util as exec_cmd import images as img import subprocess class MainFrame(wx.Frame): def __init__(self, parent, title)...
48.169231
150
0.645481
1,243
9,393
4.7321
0.238938
0.028562
0.051683
0.062564
0.423835
0.360932
0.302448
0.302448
0.190411
0.104726
0
0.027515
0.233898
9,393
194
151
48.417526
0.789883
0.228468
0
0.113821
0
0.00813
0.106593
0
0
0
0
0
0
0
null
null
0
0.089431
null
null
0.00813
0
0
0
null
0
0
0
0
0
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
812a637692b58405c4175c7728f43302fcc61d79
3,356
py
Python
src/BubotObj/OcfDevice/subtype/AuthService/AuthServiceApi.py
businka/bubot_AuthService
cc77f6002da4a2b3718070a285f8874f5e57a0ca
[ "MIT" ]
null
null
null
src/BubotObj/OcfDevice/subtype/AuthService/AuthServiceApi.py
businka/bubot_AuthService
cc77f6002da4a2b3718070a285f8874f5e57a0ca
[ "MIT" ]
null
null
null
src/BubotObj/OcfDevice/subtype/AuthService/AuthServiceApi.py
businka/bubot_AuthService
cc77f6002da4a2b3718070a285f8874f5e57a0ca
[ "MIT" ]
null
null
null
from aiohttp import web from bson.json_util import dumps import time from Bubot.Helpers.ExtException import ExtException, Unauthorized from Bubot.Helpers.Action import async_action, Action from base64 import b64encode, b64decode from aiohttp_session import get_session # from bubot.Helpers.Сryptography.SignedData import...
36.478261
93
0.651967
399
3,356
5.300752
0.265664
0.041608
0.03026
0.034043
0.237352
0.180615
0.146572
0.11253
0.11253
0.11253
0
0.010547
0.237187
3,356
91
94
36.879121
0.815625
0.041418
0
0.16
0
0
0.066916
0.012449
0
0
0
0
0
1
0.026667
false
0.213333
0.146667
0.013333
0.306667
0
0
0
0
null
0
0
0
0
0
0
0
0
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
812cfff1edd272d3c4fbf0ae47e5e4095b60cb4c
393
py
Python
elasticsearch_parse/serializer.py
rfyiamcool/elasticsearch_parse
831421fc1552f03962ca03236b9f53a4041d166c
[ "MIT" ]
35
2016-04-06T10:53:48.000Z
2021-02-22T07:57:34.000Z
elasticsearch_parse/serializer.py
rfyiamcool/elasticsearch_parse
831421fc1552f03962ca03236b9f53a4041d166c
[ "MIT" ]
2
2019-01-30T02:19:33.000Z
2020-01-16T02:43:14.000Z
elasticsearch_parse/serializer.py
rfyiamcool/elasticsearch_parse
831421fc1552f03962ca03236b9f53a4041d166c
[ "MIT" ]
11
2016-08-23T08:24:06.000Z
2021-12-20T03:58:21.000Z
from elasticsearch.serializer import JSONSerializer from .utils import AttrDict, AttrList class AttrJSONSerializer(JSONSerializer): def default(self, data): if isinstance(data, AttrDict): return data._d_ if isinstance(data, AttrList): return data._l_ return super(At...
28.071429
60
0.709924
39
393
7.051282
0.512821
0.087273
0.116364
0
0
0
0
0
0
0
0
0
0.216285
393
13
61
30.230769
0.892857
0
0
0
0
0
0
0
0
0
0
0
0
1
0.1
false
0
0.2
0
0.7
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
812e3ccb6db82d08d759f07b9fce3bfdd528c77b
3,787
py
Python
backtrader/utils/autodict.py
trinh-hoang-hiep/iching
e1feae5741c3cbde535d7a275b01d4f0cf9e21ed
[ "Apache-2.0" ]
1
2021-04-09T06:24:08.000Z
2021-04-09T06:24:08.000Z
backtrader/utils/autodict.py
trinh-hoang-hiep/iching
e1feae5741c3cbde535d7a275b01d4f0cf9e21ed
[ "Apache-2.0" ]
null
null
null
backtrader/utils/autodict.py
trinh-hoang-hiep/iching
e1feae5741c3cbde535d7a275b01d4f0cf9e21ed
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # # Copyright (C) 2015-2020 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License a...
25.938356
79
0.581991
437
3,787
4.83524
0.327231
0.056318
0.028396
0.035495
0.529106
0.509229
0.482726
0.439186
0.439186
0.439186
0
0.005162
0.283866
3,787
145
80
26.117241
0.773968
0.221283
0
0.662651
0
0
0.002166
0
0
0
0
0
0
1
0.228916
false
0
0.036145
0.024096
0.590361
0.012048
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
8135d33a8f3b5f3bb7380412655af16a228354b3
1,217
py
Python
ideas/reverse/resistance_test_task/solve/solve.py
ctfcup/2019-task-based
3f1d76fb66471567bb33a09bab210e584f3635df
[ "MIT" ]
1
2021-12-21T07:24:22.000Z
2021-12-21T07:24:22.000Z
ideas/reverse/resistance_test_task/solve/solve.py
keltecc/ctfcup-2019-taskbased
401beae15da91fcacc19eb306c077e7981fd850a
[ "MIT" ]
null
null
null
ideas/reverse/resistance_test_task/solve/solve.py
keltecc/ctfcup-2019-taskbased
401beae15da91fcacc19eb306c077e7981fd850a
[ "MIT" ]
null
null
null
MOD = 256 def KSA(key): key_length = len(key) S = range(MOD) # [0,1,2, ... , 255] j = 0 for i in range(MOD): j = (j + S[i] + key[i % key_length]) % MOD S[i], S[j] = S[j], S[i] # swap values return S def PRGA(S): i = 0 j = 0 while True: i = (i + 1) % MOD ...
23.403846
241
0.548891
204
1,217
3.20098
0.480392
0.024502
0.018377
0.018377
0.085758
0.064319
0.064319
0.064319
0.064319
0.064319
0
0.063758
0.265407
1,217
51
242
23.862745
0.666667
0.034511
0
0.108108
0
0.027027
0.210077
0.17848
0
0
0
0
0
0
null
null
0
0
null
null
0.027027
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
813b79bae9a3e53c12727ecf01227e7655378bd1
41,026
py
Python
scripts/gen_vimdoc.py
jdebp/neovim
615e03c33e73b1771e8d567cddfb362534e61673
[ "Vim" ]
null
null
null
scripts/gen_vimdoc.py
jdebp/neovim
615e03c33e73b1771e8d567cddfb362534e61673
[ "Vim" ]
null
null
null
scripts/gen_vimdoc.py
jdebp/neovim
615e03c33e73b1771e8d567cddfb362534e61673
[ "Vim" ]
null
null
null
#!/usr/bin/env python3 """Generates Nvim :help docs from C/Lua docstrings, using Doxygen. Also generates *.mpack files. To inspect the *.mpack structure: :new | put=v:lua.vim.inspect(msgpackparse(readfile('runtime/doc/api.mpack'))) Flow: main extract_from_xml fmt_node_as_vimhelp \ ...
34.216847
87
0.537854
4,698
41,026
4.571307
0.148787
0.007543
0.008847
0.011734
0.201946
0.157292
0.12968
0.105001
0.089821
0.058996
0
0.004729
0.329913
41,026
1,198
88
34.245409
0.776436
0.157461
0
0.202546
1
0
0.167515
0.014016
0
0
0
0.002504
0
1
0.034722
false
0.002315
0.012731
0.002315
0.087963
0.005787
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
813e15d453e3fa10834ca7624d6d69693c105eb9
935
py
Python
main.py
white5moke/cubetrain
d7c58ae5f8b7843af637325e143f04b284a18a29
[ "BSD-3-Clause" ]
null
null
null
main.py
white5moke/cubetrain
d7c58ae5f8b7843af637325e143f04b284a18a29
[ "BSD-3-Clause" ]
null
null
null
main.py
white5moke/cubetrain
d7c58ae5f8b7843af637325e143f04b284a18a29
[ "BSD-3-Clause" ]
null
null
null
import time from org.white5moke.blockchain.Block import Block from org.white5moke.blockchain.Blockchain import Blockchain from org.white5moke.blockchain.Wallet import Wallet def load_test_blocks(blockchain): b = Block(blockchain.last_block().index + 1, 'value is soul', int(time.time() * 1000), blockchain.last_bl...
23.375
120
0.653476
113
935
5.20354
0.327434
0.142857
0.193878
0.137755
0.438776
0.438776
0.285714
0.285714
0.285714
0.285714
0
0.034388
0.22246
935
39
121
23.974359
0.774415
0.04492
0
0.222222
0
0
0.05618
0
0
0
0
0
0
1
0.074074
false
0
0.148148
0
0.222222
0.037037
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
813e7538940d6fc6ac9139a9b5b081041bc963a2
2,229
py
Python
simpleFEA/preprocessing.py
robsiegwart/simpleFEA
7c3f757a4bf92675cdc597c7e479b8a9925a6a69
[ "MIT" ]
1
2022-02-01T11:08:31.000Z
2022-02-01T11:08:31.000Z
simpleFEA/preprocessing.py
robsiegwart/simpleFEA
7c3f757a4bf92675cdc597c7e479b8a9925a6a69
[ "MIT" ]
null
null
null
simpleFEA/preprocessing.py
robsiegwart/simpleFEA
7c3f757a4bf92675cdc597c7e479b8a9925a6a69
[ "MIT" ]
null
null
null
''' Preprocessing classes and functions. ''' from simpleFEA.loads import Force, Displacement def N_dist(n1,n2): '''Calculate the scalar distance between two nodes''' return ((n2.x - n1.x)**2 + (n2.y - n1.y)**2 + (n2.z - n1.z)**2)**0.5 class Node: ''' Node class. :param num x,y,z: sc...
27.8625
89
0.561687
308
2,229
4.029221
0.308442
0.028203
0.035455
0.072522
0.223207
0.202256
0.202256
0.202256
0.157937
0.117647
0
0.016883
0.309107
2,229
80
90
27.8625
0.788961
0.237775
0
0.113636
0
0.022727
0.051301
0.03974
0
0
0
0
0
1
0.227273
false
0
0.022727
0.068182
0.522727
0
0
0
0
null
0
0
0
0
0
0
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
d48d73ce210bbe188ce7fae72ee868a8c330e1b6
2,596
py
Python
micro_admin/mixins.py
lance0145/micro-finance
1ba6339a9d05ff2f20b020b97a233c766b2ee6e0
[ "MIT" ]
72
2015-09-18T07:23:20.000Z
2022-03-23T14:35:46.000Z
micro_admin/mixins.py
mohbadar/micro-finance
00fc9ad1e09cd6658aa5fa0dd991cf18fe2927a6
[ "MIT" ]
68
2015-01-03T13:44:40.000Z
2021-06-10T20:00:23.000Z
micro_admin/mixins.py
mohbadar/micro-finance
00fc9ad1e09cd6658aa5fa0dd991cf18fe2927a6
[ "MIT" ]
73
2015-02-10T07:03:42.000Z
2022-02-24T21:11:01.000Z
from django.shortcuts import get_object_or_404 from django.http import HttpResponseRedirect from django.core.urlresolvers import reverse from micro_admin.models import User from django.contrib.auth.mixins import LoginRequiredMixin class UserPermissionRequiredMixin(LoginRequiredMixin): def dispatch(self, request,...
33.282051
73
0.628274
260
2,596
6.176923
0.211538
0.075342
0.084682
0.054795
0.633873
0.603362
0.519925
0.519925
0.519925
0.497509
0
0.003185
0.274268
2,596
77
74
33.714286
0.849257
0.071263
0
0.574074
0
0
0.051997
0.008735
0
0
0
0.012987
0
1
0.074074
false
0
0.092593
0
0.388889
0
0
0
0
null
0
0
0
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
d48f588abd4c4334bf928caaffd9ff23ed787330
708
py
Python
planemo/commands/cmd_merge_test_reports.py
pvanheus/planemo
12c4256325bb1b274dcd40d64b91c1f832cf49b1
[ "CC-BY-3.0" ]
1
2015-05-07T13:36:04.000Z
2015-05-07T13:36:04.000Z
planemo/commands/cmd_merge_test_reports.py
pvanheus/planemo
12c4256325bb1b274dcd40d64b91c1f832cf49b1
[ "CC-BY-3.0" ]
1
2016-09-14T18:09:59.000Z
2016-09-14T18:09:59.000Z
planemo/commands/cmd_merge_test_reports.py
jmchilton/planemo
d352a085fe10cb6b7c1384663b114201da42d97b
[ "CC-BY-3.0" ]
null
null
null
"""Module describing the planemo ``test_reports`` command.""" import os import click from planemo import io from planemo import options from planemo.cli import command_function from planemo.galaxy.test.actions import merge_reports @click.command('merge_test_reports') @options.merge_test_json() @options.tool_test_js...
30.782609
72
0.751412
104
708
4.884615
0.413462
0.086614
0.066929
0.07874
0
0
0
0
0
0
0
0.001672
0.155367
708
22
73
32.181818
0.847826
0.153955
0
0
0
0
0.108844
0
0
0
0
0
0
1
0.0625
false
0
0.375
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
d4947b9e1c7d90351305efcca63a26be13b5dd86
3,295
py
Python
bin/attic/get_probe_sets.py
milag6/phyluce
ff0d351eab2e38916f028fafdef5ea4fddcd2657
[ "BSD-3-Clause" ]
null
null
null
bin/attic/get_probe_sets.py
milag6/phyluce
ff0d351eab2e38916f028fafdef5ea4fddcd2657
[ "BSD-3-Clause" ]
null
null
null
bin/attic/get_probe_sets.py
milag6/phyluce
ff0d351eab2e38916f028fafdef5ea4fddcd2657
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 """ File: get_probe_sets.py Author: Brant Faircloth Created by Brant Faircloth on 15 August 2012 15:08 PDT (-0700) Copyright (c) 2012 Brant C. Faircloth. All rights reserved. Description: """ import os import sqlite3 import argparse from seqtools.sequence import fasta from p...
29.159292
98
0.559939
388
3,295
4.664948
0.386598
0.030939
0.046961
0.038122
0.18674
0.18674
0.108287
0.108287
0.065193
0.065193
0
0.015247
0.323217
3,295
112
99
29.419643
0.796413
0.023065
0
0.235294
0
0
0.252005
0
0
0
0
0
0.011765
0
null
null
0
0.070588
null
null
0.023529
0
0
0
null
0
0
0
0
0
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
d49560d620222534b95ef110435049165d81c2bf
794
py
Python
divide_and_conquer/binarysearch.py
amalrhk/Python
5612d73e32e8c136056e254fd9fd007b32613335
[ "MIT" ]
null
null
null
divide_and_conquer/binarysearch.py
amalrhk/Python
5612d73e32e8c136056e254fd9fd007b32613335
[ "MIT" ]
null
null
null
divide_and_conquer/binarysearch.py
amalrhk/Python
5612d73e32e8c136056e254fd9fd007b32613335
[ "MIT" ]
null
null
null
# Returns index of x in arr if present, else -1 def binarySearch (arr, l, r, x): # Check base case if r >= l: mid = l + (r - l)/2 # If element is present at the middle itself if arr[mid] == x: return mid # If element is smaller than mid, then it # can only be present in left subarray ...
19.85
50
0.617128
134
794
3.656716
0.380597
0.091837
0.065306
0.073469
0.159184
0
0
0
0
0
0
0.029825
0.282116
794
39
51
20.358974
0.829825
0.38539
0
0.166667
0
0
0.130252
0
0
0
0
0
0
0
null
null
0
0
null
null
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
d495631de57b945aaf95ce1f629f1cfe6f0c5a39
5,944
py
Python
controller/ajax.py
Nightsuki/AVDir
234af87118f8eb615f41ac56fada69e94f0d293f
[ "MIT" ]
3
2019-08-29T17:46:43.000Z
2019-12-07T15:12:08.000Z
controller/ajax.py
Nightsuki/AVDir
234af87118f8eb615f41ac56fada69e94f0d293f
[ "MIT" ]
null
null
null
controller/ajax.py
Nightsuki/AVDir
234af87118f8eb615f41ac56fada69e94f0d293f
[ "MIT" ]
null
null
null
# coding=utf-8 import tornado.web from tornado import gen from controller.base import BaseHandler from util.function import ajax_check_role from database import * class AjaxHandler(BaseHandler): def prepare(self): super(AjaxHandler, self).prepare() def post(self, *args, **kwargs): action = "_...
44.358209
110
0.565949
660
5,944
4.877273
0.15303
0.100652
0.058093
0.100342
0.54489
0.503883
0.467226
0.365952
0.365952
0.337372
0
0.001962
0.314098
5,944
133
111
44.691729
0.787589
0.002019
0
0.416
0
0
0.068803
0
0
0
0
0
0
1
0.048
false
0.056
0.04
0
0.096
0
0
0
0
null
0
0
0
0
0
0
0
0
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
d4985bc8a7c6ff6e32a5cfaadc67180c3c7aef31
345
py
Python
src/envs/__init__.py
FilipaRamos/Rl-Pusher
40aa123695f7f2c96dbc11be9d92abefdf2d12c4
[ "MIT" ]
null
null
null
src/envs/__init__.py
FilipaRamos/Rl-Pusher
40aa123695f7f2c96dbc11be9d92abefdf2d12c4
[ "MIT" ]
null
null
null
src/envs/__init__.py
FilipaRamos/Rl-Pusher
40aa123695f7f2c96dbc11be9d92abefdf2d12c4
[ "MIT" ]
null
null
null
from envs.mainEnv import MainEnv from envs.deepPusherEnv import DeepPusherEnv import logging from gym.envs.registration import register logger = logging.getLogger(__name__) # Gazebo # ---------------------------------------- # Turtlebot envs register( id='deepPusher-v0', entry_point='envs:DeepPusherEnv', ...
20.294118
44
0.678261
36
345
6.361111
0.611111
0.069869
0
0
0
0
0
0
0
0
0
0.003356
0.136232
345
17
45
20.294118
0.765101
0.237681
0
0
0
0
0.119691
0
0
0
0
0
0
1
0
false
0
0.444444
0
0.444444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
d498c47acb1f22c5631fbe8d2ca569166774964a
396
py
Python
molecule/common/tests/test_install.py
link-u/ansible-roles-v2_ubuntu-common_pub
1811aa67c77cba664a7f666575c6cbc121feda2b
[ "MIT" ]
null
null
null
molecule/common/tests/test_install.py
link-u/ansible-roles-v2_ubuntu-common_pub
1811aa67c77cba664a7f666575c6cbc121feda2b
[ "MIT" ]
1
2021-01-17T17:01:36.000Z
2021-01-17T17:01:36.000Z
molecule/common/tests/test_install.py
link-u/ansible-roles-v2_ubuntu-common_pub
1811aa67c77cba664a7f666575c6cbc121feda2b
[ "MIT" ]
null
null
null
import os import testinfra.utils.ansible_runner testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner( os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all') def test_installed_packages(host): assert not host.ansible( "apt", "name=" + "\"{{ uc_install_default_packages + uc_install_ex...
33
88
0.722222
47
396
5.765957
0.702128
0.103321
0.154982
0.199262
0
0
0
0
0
0
0
0
0.14899
396
11
89
36
0.804154
0
0
0
0
0
0.186869
0.058081
0
0
0
0
0.111111
1
0.111111
false
0
0.222222
0
0.333333
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
d49ae7404ae9dadb7e08ef987a513fad1666c2a7
18,963
py
Python
src/azure-cli/azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py
Rajwanshi/azure-cli
32ca1e31cf7ce3c92c68c64069365c697d10c981
[ "MIT" ]
1
2019-08-01T17:26:59.000Z
2019-08-01T17:26:59.000Z
src/azure-cli/azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py
Rajwanshi/azure-cli
32ca1e31cf7ce3c92c68c64069365c697d10c981
[ "MIT" ]
null
null
null
src/azure-cli/azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py
Rajwanshi/azure-cli
32ca1e31cf7ce3c92c68c64069365c697d10c981
[ "MIT" ]
1
2020-12-22T00:28:33.000Z
2020-12-22T00:28:33.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
50.703209
240
0.647419
2,324
18,963
5.103701
0.08864
0.044263
0.056909
0.101762
0.775989
0.734339
0.686114
0.663266
0.629542
0.583509
0
0.011414
0.196119
18,963
373
241
50.839142
0.766662
0.022307
0
0.516729
0
0.096654
0.403648
0.085047
0
0
0
0
0.245353
1
0.055762
false
0
0.007435
0
0.066915
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
d4a8b332fb5d0ad9355c1969b5c220f00136669c
1,554
py
Python
vectorhub/encoders/audio/base.py
vector-ai/vectorhub
17c2f342cef2ff7bcc02c8f3914e79ad92071a9e
[ "Apache-2.0" ]
385
2020-10-26T13:12:11.000Z
2021-10-07T15:14:48.000Z
vectorhub/encoders/audio/base.py
vector-ai/vectorhub
17c2f342cef2ff7bcc02c8f3914e79ad92071a9e
[ "Apache-2.0" ]
24
2020-10-29T13:16:31.000Z
2021-08-31T06:47:33.000Z
vectorhub/encoders/audio/base.py
vector-ai/vectorhub
17c2f342cef2ff7bcc02c8f3914e79ad92071a9e
[ "Apache-2.0" ]
45
2020-10-29T15:25:19.000Z
2021-09-05T21:50:57.000Z
from ...import_utils import * if is_all_dependency_installed('audio-encoder'): import librosa import soundfile as sf import tempfile import shutil import os from urllib.request import urlopen, Request from urllib.parse import quote import io import numpy as np from ...base import Base2Vec, catch_vector_error...
37
94
0.603604
193
1,554
4.751295
0.414508
0.104689
0.087241
0.078517
0.193021
0.169029
0.136314
0.08506
0
0
0
0.017179
0.288288
1,554
41
95
37.902439
0.811935
0.034749
0
0.117647
0
0
0.059933
0
0
0
0
0
0
1
0.058824
false
0
0.323529
0.029412
0.470588
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
d4aa919e59886bd47b2ca61a7c025e2e2cf04e9a
27,001
py
Python
tools/valgrind/chrome_tests.py
SlimKatLegacy/android_external_chromium_org
ee480ef5039d7c561fc66ccf52169ead186f1bea
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2015-03-04T02:36:53.000Z
2016-06-25T11:22:17.000Z
tools/valgrind/chrome_tests.py
j4ckfrost/android_external_chromium_org
a1a3dad8b08d1fcf6b6b36c267158ed63217c780
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
tools/valgrind/chrome_tests.py
j4ckfrost/android_external_chromium_org
a1a3dad8b08d1fcf6b6b36c267158ed63217c780
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
4
2015-02-09T08:49:30.000Z
2017-08-26T02:03:34.000Z
#!/usr/bin/env python # Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. ''' Runs various chrome tests through valgrind_test.py.''' import glob import logging import multiprocessing import optparse impor...
41.349158
80
0.652494
3,363
27,001
5.060065
0.192388
0.024094
0.044661
0.050773
0.200682
0.135218
0.092026
0.07516
0.067756
0.060058
0
0.006537
0.22951
27,001
652
81
41.412577
0.81143
0.158327
0
0.105485
0
0
0.219119
0.032571
0
0
0
0.001534
0.00211
0
null
null
0.008439
0.023207
null
null
0.016878
0
0
0
null
0
0
0
0
0
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
d4ac6f4d344ad44f6a5dd75c74df6ff62db39b9d
5,217
py
Python
influxdb_client/domain/authorization_post_request.py
wasted925/influxdb-client-python
afee531fd1dc244b3d9d270e262b0a1865a7c89d
[ "MIT" ]
380
2019-09-19T20:20:10.000Z
2022-03-31T12:59:33.000Z
influxdb_client/domain/authorization_post_request.py
mikeldiezs/influxdb-client-python
0c1d1d9ff92dd2b3b4a9b6aa1e8f5b1c02fd48ab
[ "MIT" ]
362
2019-09-16T11:53:29.000Z
2022-03-29T03:11:59.000Z
influxdb_client/domain/authorization_post_request.py
mikeldiezs/influxdb-client-python
0c1d1d9ff92dd2b3b4a9b6aa1e8f5b1c02fd48ab
[ "MIT" ]
130
2019-09-20T08:02:35.000Z
2022-03-30T16:44:45.000Z
# coding: utf-8 """ Influx OSS API Service. No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six from influxdb_client.do...
29.811429
127
0.60207
601
5,217
5.069884
0.221298
0.031178
0.118149
0.084017
0.365277
0.299311
0.289465
0.283558
0.260584
0.227109
0
0.0127
0.305731
5,217
174
128
29.982759
0.828548
0.350968
0
0.063291
1
0
0.062257
0
0
0
0
0
0
1
0.151899
false
0
0.050633
0
0.35443
0.025316
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
d4b62d0041c147518913700226a644d7074a1057
1,360
py
Python
data/raw/parameters.py
drvinceknight/testing_for_ZD
a08643849a8e4ed3c1ee86ab8bd4530a97e92154
[ "MIT" ]
null
null
null
data/raw/parameters.py
drvinceknight/testing_for_ZD
a08643849a8e4ed3c1ee86ab8bd4530a97e92154
[ "MIT" ]
3
2019-10-02T09:25:08.000Z
2022-02-27T20:48:06.000Z
data/raw/parameters.py
drvinceknight/testing_for_ZD
a08643849a8e4ed3c1ee86ab8bd4530a97e92154
[ "MIT" ]
null
null
null
""" Parameters used for the numerical experiments """ import axelrod as axl REPETITIONS = 60 TURNS = 2000 NOISE = 0.05 PROBEND = 1 / 1000 SEED = 0 PLAYER_GROUPS = {"full" : [s() for s in axl.strategies if not s.classifier["long_run_time"]], "stewart_plotkin" : [axl.ZDGTFT2(...
40
65
0.307353
78
1,360
5.307692
0.692308
0
0
0
0
0
0
0
0
0
0
0.039698
0.611029
1,360
33
66
41.212121
0.742911
0.033088
0
0
0
0
0.024484
0
0
0
0
0
0
1
0
false
0
0.035714
0
0.035714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
d4bb71da9c4681b68f108403d5f3eae90942b8df
8,125
py
Python
collector/collector/worker.py
hexueyuan/Adanos
b35873fc88b61dabda49c85f0e2b2d126731d34f
[ "MIT" ]
null
null
null
collector/collector/worker.py
hexueyuan/Adanos
b35873fc88b61dabda49c85f0e2b2d126731d34f
[ "MIT" ]
8
2020-07-17T01:49:53.000Z
2022-02-17T22:58:31.000Z
collector/collector/worker.py
hexueyuan/Adanos
b35873fc88b61dabda49c85f0e2b2d126731d34f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import threading from multiprocessing import Process, Event import time import psutil class WorkerBase(object): def __init__(self, mode="threading"): if mode not in ['threading', 'proccessing']: raise ValueError("Bad mode.") self._work_mode = mode def work...
32.894737
100
0.591754
872
8,125
5.264908
0.196101
0.052276
0.057504
0.067959
0.491832
0.456981
0.439773
0.416685
0.395774
0.385319
0
0.00175
0.296615
8,125
247
101
32.894737
0.801575
0.016123
0
0.4
0
0
0.09862
0
0
0
0
0
0
0
null
null
0.01
0.025
null
null
0.025
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
d4bced9c770428276e42cc8581373ec224fd69c3
1,176
py
Python
slypixels/views.py
cossie14/django-slyart
e842824597f528a43df33a08fa761fcf256daed4
[ "MIT" ]
null
null
null
slypixels/views.py
cossie14/django-slyart
e842824597f528a43df33a08fa761fcf256daed4
[ "MIT" ]
4
2021-03-19T03:04:01.000Z
2021-09-08T01:14:24.000Z
slypixels/views.py
cossie14/django-slyart
e842824597f528a43df33a08fa761fcf256daed4
[ "MIT" ]
null
null
null
import datetime as dt from django.http import HttpResponse,Http404 from .models import Category,Image from django.shortcuts import render,redirect # Create your views here. def allpics(request): date = dt.date.today() image = Image.objects.all() return render(request, 'index.html', {"date": date,"image":...
32.666667
103
0.693027
154
1,176
5.24026
0.344156
0.074349
0.11772
0.109046
0.47088
0.406444
0.313507
0.313507
0.26518
0.26518
0
0.005097
0.165816
1,176
35
104
33.6
0.817533
0.019558
0
0.12
0
0
0.184348
0.038261
0
0
0
0
0
1
0.16
false
0
0.16
0
0.52
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
d4bdd41cff764ff8fbb2c5f668848603f8cdb08f
1,130
py
Python
etc/theory/experiments/rupture_performance/serial_adaptive_25/parse.py
Cancelll/rupture
cd87481717b39de2654659b7ff436500e28a0600
[ "MIT" ]
184
2016-03-31T04:19:42.000Z
2021-11-26T21:37:12.000Z
etc/theory/experiments/rupture_performance/serial_adaptive_25/parse.py
Cancelll/rupture
cd87481717b39de2654659b7ff436500e28a0600
[ "MIT" ]
212
2016-03-31T04:32:06.000Z
2017-02-26T09:34:47.000Z
etc/theory/experiments/rupture_performance/serial_adaptive_25/parse.py
Cancelll/rupture
cd87481717b39de2654659b7ff436500e28a0600
[ "MIT" ]
38
2016-03-31T09:09:44.000Z
2021-11-26T21:37:13.000Z
from datetime import datetime filenames = ['aes128cbc', 'aes128gcm', 'aes256cbc', 'aes256gcm'] for filename in filenames: with open(filename, 'r') as f: lines = f.readlines() first_split = lines[0].strip('\n').split() last_split = lines[-1].strip('\n').split() prev_datetime = datetime.strptim...
35.3125
76
0.565487
140
1,130
4.4
0.378571
0.077922
0.053571
0.025974
0.032468
0.032468
0
0
0
0
0
0.032887
0.273451
1,130
31
77
36.451613
0.717418
0
0
0
0
0
0.069912
0
0
0
0
0
0
0
null
null
0
0.037037
null
null
0.037037
0
0
0
null
0
0
0
0
0
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
d4bede120fb6c3a47333d0ae0cf124a11378dba6
5,807
py
Python
galera_monitoring/check_galera.py
crystone/galera-monitoring
80c80015f8b20aa20350368a2ea28d7f8f200ec1
[ "Apache-2.0" ]
2
2019-07-23T20:40:50.000Z
2019-08-01T01:01:09.000Z
galera_monitoring/check_galera.py
tobias-urdin/galera-monitoring
80c80015f8b20aa20350368a2ea28d7f8f200ec1
[ "Apache-2.0" ]
null
null
null
galera_monitoring/check_galera.py
tobias-urdin/galera-monitoring
80c80015f8b20aa20350368a2ea28d7f8f200ec1
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- encoding: utf-8 -*- # Galera Monitoring # Copyright (C) 2015 Tobias Urdin # # 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/L...
32.80791
152
0.680214
773
5,807
4.928849
0.219922
0.033071
0.056693
0.07874
0.432808
0.327559
0.277953
0.22021
0.181102
0.12021
0
0.005098
0.223007
5,807
176
153
32.994318
0.839317
0.106079
0
0.218487
0
0
0.251981
0.03401
0
0
0
0
0
0
null
null
0.02521
0.042017
null
null
0.151261
0
0
0
null
0
0
0
0
0
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
d4c80194a8a1c711ac110721cfa5e435ae82ab4c
1,013
py
Python
lab/pytest/pytest-tut/exercise_2.py
Jeromeschmidt/SPD-2.31-Testing-and-Architecture
c055efadcea22301417d820ac370d7b92a45cf7b
[ "MIT" ]
null
null
null
lab/pytest/pytest-tut/exercise_2.py
Jeromeschmidt/SPD-2.31-Testing-and-Architecture
c055efadcea22301417d820ac370d7b92a45cf7b
[ "MIT" ]
null
null
null
lab/pytest/pytest-tut/exercise_2.py
Jeromeschmidt/SPD-2.31-Testing-and-Architecture
c055efadcea22301417d820ac370d7b92a45cf7b
[ "MIT" ]
null
null
null
import math import pytest T_HALF = 5730 DECAY_CONSTANT = -0.693 def get_age_carbon_14_dating(carbon_14_ratio): """Returns the estimated age of the sample in year. carbon_14_ratio: the percent (0 < percent < 1) of carbon-14 in the sample conpared to the amount in living tissue (unitless). """ ...
28.138889
63
0.725568
162
1,013
4.351852
0.487654
0.102128
0.068085
0.079433
0.197163
0.168794
0.168794
0.133333
0.133333
0.133333
0
0.064198
0.200395
1,013
35
64
28.942857
0.806173
0.491609
0
0.142857
0
0
0
0
0
0
0
0.028571
0.071429
1
0.142857
false
0
0.142857
0
0.357143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1