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
602c434e389c4b23bc2fc0d5a4e7eeadc1450576
2,125
py
Python
novahyper/virt/hyper/errors.py
hyperhq/hypernova
a68a217628a3191b7413e447d2d8b81bebf4f010
[ "Apache-2.0" ]
7
2016-04-13T13:50:37.000Z
2020-09-27T13:15:43.000Z
novahyper/virt/hyper/errors.py
hyperhq/hypernova
a68a217628a3191b7413e447d2d8b81bebf4f010
[ "Apache-2.0" ]
null
null
null
novahyper/virt/hyper/errors.py
hyperhq/hypernova
a68a217628a3191b7413e447d2d8b81bebf4f010
[ "Apache-2.0" ]
3
2016-07-21T10:31:57.000Z
2019-04-28T09:53:17.000Z
# Copyright 2015 HyperHQ Inc. # Copyright 2014 dotCloud inc. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless r...
27.24359
77
0.678118
256
2,125
5.519531
0.4375
0.059448
0.050955
0.062279
0.073602
0.073602
0.073602
0.073602
0.073602
0.073602
0
0.020949
0.236235
2,125
77
78
27.597403
0.849661
0.323294
0
0.243243
0
0
0.03735
0
0
0
0
0
0
1
0.108108
false
0.189189
0.027027
0.054054
0.432432
0
0
0
0
null
0
0
0
0
0
0
0
0
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
6030653195e25ab1270a0a18561210e677a735d9
2,947
py
Python
utils/openshift_acme.py
bsquizz/qontract-reconcile
39cecc4a3ca601931a9c37639d5e03f87b9d4266
[ "Apache-2.0" ]
null
null
null
utils/openshift_acme.py
bsquizz/qontract-reconcile
39cecc4a3ca601931a9c37639d5e03f87b9d4266
[ "Apache-2.0" ]
null
null
null
utils/openshift_acme.py
bsquizz/qontract-reconcile
39cecc4a3ca601931a9c37639d5e03f87b9d4266
[ "Apache-2.0" ]
null
null
null
ACME_DEPLOYMENT = """ apiVersion: extensions/v1beta1 kind: Deployment metadata: name: %(deployment_name)s labels: app: openshift-acme spec: progressDeadlineSeconds: 600 replicas: 1 revisionHistoryLimit: 10 selector: matchLabels: app: openshift-acme strategy: type: Recreate template: ...
19.136364
65
0.604004
267
2,947
6.569288
0.438202
0.074116
0.04561
0.050171
0.251425
0.165336
0.078677
0.078677
0.055872
0
0
0.015686
0.307771
2,947
153
66
19.261438
0.844118
0
0
0.503401
0
0
0.965389
0.114014
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
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
60333de63eccbe558479b8d7eb24af5960c860c8
5,037
py
Python
lib/tool_shed/test/functional/test_1460_data_managers.py
quacksawbones/galaxy-1
65f7259b29d3886e526d9be670c60d9da9fbe038
[ "CC-BY-3.0" ]
1,085
2015-02-18T16:14:38.000Z
2022-03-30T23:52:07.000Z
lib/tool_shed/test/functional/test_1460_data_managers.py
quacksawbones/galaxy-1
65f7259b29d3886e526d9be670c60d9da9fbe038
[ "CC-BY-3.0" ]
11,253
2015-02-18T17:47:32.000Z
2022-03-31T21:47:03.000Z
lib/tool_shed/test/functional/test_1460_data_managers.py
quacksawbones/galaxy-1
65f7259b29d3886e526d9be670c60d9da9fbe038
[ "CC-BY-3.0" ]
1,000
2015-02-18T16:18:10.000Z
2022-03-29T08:22:56.000Z
import logging from ..base.twilltestcase import common, ShedTwillTestCase log = logging.getLogger(__name__) category_name = 'Test 1460 Data Manager' category_description = 'Test script 1460 for testing Data Managers' data_manager_repository_name = 'data_manager_1460' data_manager_repository_description = 'Repository...
54.16129
132
0.701608
631
5,037
5.207607
0.207607
0.140596
0.08947
0.034084
0.340231
0.258673
0.184114
0.175898
0.175898
0.095557
0
0.019281
0.238039
5,037
92
133
54.75
0.836894
0.1487
0
0
0
0
0.146573
0.055664
0
0
0
0.01087
0.053571
1
0.089286
false
0
0.035714
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
60340f6098e5c475ad7822e33056e15a614c980a
3,812
py
Python
berkeley/quanto/tools/quanto/scripts/read_log_staged.py
tinyos-io/tinyos-3.x-contrib
3aaf036722a2afc0c0aad588459a5c3e00bd3c01
[ "BSD-3-Clause", "MIT" ]
1
2020-02-28T20:35:09.000Z
2020-02-28T20:35:09.000Z
berkeley/quanto/tools/quanto/scripts/read_log_staged.py
tinyos-io/tinyos-3.x-contrib
3aaf036722a2afc0c0aad588459a5c3e00bd3c01
[ "BSD-3-Clause", "MIT" ]
null
null
null
berkeley/quanto/tools/quanto/scripts/read_log_staged.py
tinyos-io/tinyos-3.x-contrib
3aaf036722a2afc0c0aad588459a5c3e00bd3c01
[ "BSD-3-Clause", "MIT" ]
null
null
null
#!/usr/bin/python # Script to parse the version of the logs that has powerstate # changes as well. Output format is: # <type> <subtype> <resource> time: <time> icount: <icount> arg:|ctx: <arg|ctx> import sys import os #Hack to insert the invocation dir first. This way we can use the # local QuantAppConstants file if...
31.504132
92
0.637461
480
3,812
4.964583
0.379167
0.033571
0.083928
0.097356
0.146874
0.131767
0.099874
0.064624
0.064624
0.064624
0
0.014726
0.233998
3,812
120
93
31.766667
0.80137
0.188353
0
0.048193
0
0
0.061098
0.015275
0
0
0.0026
0
0
0
null
null
0
0.084337
null
null
0.084337
0
0
0
null
0
0
0
0
0
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
603e71d3dc9eec8143bce957fd1c71ff04d19a14
1,722
py
Python
app/test_unittest_api.py
soumilshah1995/FlaskRestful-Swagger-UI-Docker-Compose-Unit-Test-How-to-organize-Python-Code-for-REST-API
07b455378020476cb6e79e889fa6efb7364848c0
[ "Apache-2.0" ]
1
2021-10-05T01:25:41.000Z
2021-10-05T01:25:41.000Z
app/test_unittest_api.py
soumilshah1995/FlaskRestful-Swagger-UI-Docker-Compose-Unit-Test-How-to-organize-Python-Code-for-REST-API
07b455378020476cb6e79e889fa6efb7364848c0
[ "Apache-2.0" ]
null
null
null
app/test_unittest_api.py
soumilshah1995/FlaskRestful-Swagger-UI-Docker-Compose-Unit-Test-How-to-organize-Python-Code-for-REST-API
07b455378020476cb6e79e889fa6efb7364848c0
[ "Apache-2.0" ]
3
2021-10-05T01:25:46.000Z
2021-10-05T22:05:05.000Z
try: import os import unittest import app import json from API import app from dotenv import load_dotenv import os import subprocess print("test file ok...........") except Exception as e: print(e) class FlaskTestCase(unittest.TestCase): @classmethod def setUpClass(cls...
23.27027
69
0.594657
204
1,722
4.906863
0.372549
0.04995
0.03996
0.071928
0.336663
0.236763
0.207792
0.15984
0.15984
0.15984
0
0.01011
0.310685
1,722
73
70
23.589041
0.833193
0.198606
0
0.395349
0
0
0.081413
0
0
0
0
0
0.046512
1
0.162791
false
0.069767
0.209302
0
0.395349
0.139535
0
0
0
null
0
0
0
0
0
0
0
0
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
6048508f77d19b613c6196fbf502ffc35e80bfe6
4,068
py
Python
tests/test_cli.py
frostidaho/python-isna
4f65ee626550caf55f3ad5ce23fac1e49d363178
[ "BSD-2-Clause" ]
null
null
null
tests/test_cli.py
frostidaho/python-isna
4f65ee626550caf55f3ad5ce23fac1e49d363178
[ "BSD-2-Clause" ]
null
null
null
tests/test_cli.py
frostidaho/python-isna
4f65ee626550caf55f3ad5ce23fac1e49d363178
[ "BSD-2-Clause" ]
null
null
null
import unittest import os from schema import SchemaError import isna.cli as cli import isna.cli2 as cli2 from isna.config import cfg from docopt import docopt class TestValidate(unittest.TestCase): @classmethod def setUpClass(cls): def getargs(argv): return docopt(cli2.__doc__, argv=argv)...
31.78125
75
0.616273
504
4,068
4.85119
0.198413
0.037219
0.042536
0.027812
0.349284
0.276074
0.1182
0.100614
0.0818
0.0818
0
0.012842
0.253441
4,068
127
76
32.031496
0.792229
0.009341
0
0.196078
0
0
0.107249
0.018123
0
0
0
0
0.303922
1
0.205882
false
0
0.068627
0.019608
0.323529
0
0
0
0
null
0
0
0
0
0
0
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
604df981a34a4fd55283c3137f782fdc507af0fd
10,754
py
Python
darling_ansible/python_venv/lib/python3.7/site-packages/oci/healthchecks/models/ping_probe.py
revnav/sandbox
f9c8422233d093b76821686b6c249417502cf61d
[ "Apache-2.0" ]
null
null
null
darling_ansible/python_venv/lib/python3.7/site-packages/oci/healthchecks/models/ping_probe.py
revnav/sandbox
f9c8422233d093b76821686b6c249417502cf61d
[ "Apache-2.0" ]
null
null
null
darling_ansible/python_venv/lib/python3.7/site-packages/oci/healthchecks/models/ping_probe.py
revnav/sandbox
f9c8422233d093b76821686b6c249417502cf61d
[ "Apache-2.0" ]
1
2020-06-25T03:12:58.000Z
2020-06-25T03:12:58.000Z
# coding: utf-8 # Copyright (c) 2016, 2020, 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...
29.382514
245
0.616608
1,338
10,754
4.778774
0.139761
0.047857
0.117297
0.056459
0.608852
0.48655
0.406944
0.319987
0.297466
0.297466
0
0.00567
0.311233
10,754
365
246
29.463014
0.857567
0.520458
0
0.089286
0
0
0.100413
0
0
0
0
0
0
1
0.214286
false
0
0.017857
0.017857
0.383929
0
0
0
0
null
0
0
0
0
0
0
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
605be762ee0d2a89875af7ec468ccb0c519fb409
1,552
py
Python
Day3/main.py
d4yvie/advent_of_code_2021
bb74b9dc7b23c5ba338dcd8d2e698c7ea4e34c59
[ "Apache-2.0" ]
null
null
null
Day3/main.py
d4yvie/advent_of_code_2021
bb74b9dc7b23c5ba338dcd8d2e698c7ea4e34c59
[ "Apache-2.0" ]
null
null
null
Day3/main.py
d4yvie/advent_of_code_2021
bb74b9dc7b23c5ba338dcd8d2e698c7ea4e34c59
[ "Apache-2.0" ]
null
null
null
from file_util import read_lines from print_aoc import finish_task1, finish_task2 from typing import Callable def count_amount_of_ones(nums: list[str] | set[str], number_len=12) -> list[int]: return [sum(num[i] == "1" for num in nums) for i in range(number_len)] def task1(lines: list[str], number_len=12) -> int...
36.952381
111
0.690077
237
1,552
4.189873
0.248945
0.135952
0.084592
0.05136
0.151057
0.151057
0.110775
0
0
0
0
0.031822
0.190077
1,552
41
112
37.853659
0.758154
0
0
0
0
0
0.005799
0
0
0
0
0
0
1
0.172414
false
0
0.103448
0.103448
0.448276
0.034483
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
605d8b407310d45e9a0aeb9513c77b684849a9ee
8,291
py
Python
backend/dbTransformer/api_dbTransformer/views.py
ayaniitgoa/database-project
c47b8b211fa2e5e3533443dd44ac8ddfb35b69fe
[ "MIT" ]
null
null
null
backend/dbTransformer/api_dbTransformer/views.py
ayaniitgoa/database-project
c47b8b211fa2e5e3533443dd44ac8ddfb35b69fe
[ "MIT" ]
null
null
null
backend/dbTransformer/api_dbTransformer/views.py
ayaniitgoa/database-project
c47b8b211fa2e5e3533443dd44ac8ddfb35b69fe
[ "MIT" ]
null
null
null
from django.shortcuts import render from rest_framework.response import Response from rest_framework.decorators import api_view import csv import mysql.connector count = 0 fileData = [] @api_view(['GET', 'POST']) def preProcessCSV(request): if request.method == 'POST': for file in request.FILES.values()...
30.149091
217
0.538053
793
8,291
5.546028
0.166456
0.032515
0.015007
0.015916
0.388131
0.310823
0.268304
0.254206
0.206457
0.206457
0
0.010202
0.337957
8,291
274
218
30.259124
0.791037
0.088771
0
0.402367
0
0.005917
0.126895
0.025007
0
0
0
0
0
1
0.029586
false
0.053254
0.029586
0
0.130178
0.029586
0
0
0
null
0
0
0
0
0
0
0
0
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
6063cc046ba7a22f7a5eaad35715106df8b09a55
1,425
py
Python
content-security-policy/embedded-enforcement/support/echo-required-csp.py
Ms2ger/web-platform-tests
645c0e8a5c028a613e7ad1732834100dbe946fc7
[ "BSD-3-Clause" ]
1
2022-03-19T09:43:35.000Z
2022-03-19T09:43:35.000Z
content-security-policy/embedded-enforcement/support/echo-required-csp.py
Ms2ger/web-platform-tests
645c0e8a5c028a613e7ad1732834100dbe946fc7
[ "BSD-3-Clause" ]
14
2019-03-18T20:11:48.000Z
2019-04-23T22:41:46.000Z
content-security-policy/embedded-enforcement/support/echo-required-csp.py
Ms2ger/web-platform-tests
645c0e8a5c028a613e7ad1732834100dbe946fc7
[ "BSD-3-Clause" ]
2
2020-09-16T18:33:41.000Z
2021-11-09T14:27:38.000Z
import json def main(request, response): message = {} header = request.headers.get("Test-Header-Injection"); message['test_header_injection'] = header if header else None header = request.headers.get("Sec-Required-CSP"); message['required_csp'] = header if header else None second_level_iframe...
31.666667
100
0.607018
163
1,425
5.141104
0.349693
0.105012
0.162291
0.100239
0.391408
0.264916
0.193317
0.193317
0.193317
0.193317
0
0.00991
0.221053
1,425
44
101
32.386364
0.745045
0
0
0.205128
0
0
0.591579
0.285614
0
0
0
0
0
0
null
null
0
0.025641
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
60645ff1abb744cc1e01b9f14169baf84aecaf9e
387
py
Python
test-script.py
jackfirth/sqlalchemy-fp
d095f644431ebaa3c698e3aa37e28189d4772772
[ "MIT" ]
null
null
null
test-script.py
jackfirth/sqlalchemy-fp
d095f644431ebaa3c698e3aa37e28189d4772772
[ "MIT" ]
null
null
null
test-script.py
jackfirth/sqlalchemy-fp
d095f644431ebaa3c698e3aa37e28189d4772772
[ "MIT" ]
null
null
null
from sqlalchemy_fp import setup_reflective_engine from os import environ from time import sleep sleep(5) connstring = "postgresql://{0}:{1}@db".format( environ["DB_USER"], environ["DB_PASSWORD"] ) classname_tablename_dict = { "User": "users" } models, with_session = setup_reflective_engine( classnam...
17.590909
49
0.731266
48
387
5.645833
0.604167
0.110701
0.154982
0
0
0
0
0
0
0
0
0.009174
0.155039
387
21
50
18.428571
0.819572
0
0
0
0
0
0.139535
0.059432
0
0
0
0
0.0625
1
0
false
0.0625
0.1875
0
0.1875
0
0
0
0
null
0
0
0
0
0
0
0
0
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
606d9976b504a6a747e48e5adf97457bda673dd4
1,672
py
Python
app/display_modules/methyls/tests/test_module.py
MetaGenScope/metagenscope-server
609cd57c626c857c8efde8237a1f22f4d1e6065d
[ "MIT" ]
null
null
null
app/display_modules/methyls/tests/test_module.py
MetaGenScope/metagenscope-server
609cd57c626c857c8efde8237a1f22f4d1e6065d
[ "MIT" ]
null
null
null
app/display_modules/methyls/tests/test_module.py
MetaGenScope/metagenscope-server
609cd57c626c857c8efde8237a1f22f4d1e6065d
[ "MIT" ]
null
null
null
"""Test suite for Methyls diplay module.""" from app.display_modules.display_module_base_test import BaseDisplayModuleTest from app.display_modules.methyls import MethylsDisplayModule from app.samples.sample_models import Sample from app.display_modules.methyls import MethylResult from app.display_modules.methyls.tests...
42.871795
80
0.703947
188
1,672
6.010638
0.367021
0.043363
0.061947
0.09292
0.139823
0.115044
0
0
0
0
0
0.001514
0.209928
1,672
38
81
44
0.853899
0.172847
0
0
0
0
0.061391
0
0
0
0
0
0
1
0.16
false
0
0.28
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
606e939157bcb272ec3f35a3438875b605da1a16
376
py
Python
config/Blender/2.79/scripts/presets/render/my-obs-for-yt.py
ipatch/dotfiles
b56297887721f9dd034fd720f57e6ace9c7d8679
[ "MIT" ]
62
2017-01-22T23:50:05.000Z
2022-02-12T12:11:21.000Z
config/Blender/2.79/scripts/presets/render/my-obs-for-yt.py
ipatch/dotfiles
b56297887721f9dd034fd720f57e6ace9c7d8679
[ "MIT" ]
null
null
null
config/Blender/2.79/scripts/presets/render/my-obs-for-yt.py
ipatch/dotfiles
b56297887721f9dd034fd720f57e6ace9c7d8679
[ "MIT" ]
6
2017-12-27T03:32:21.000Z
2021-11-25T08:33:04.000Z
import bpy scene = bpy.context.scene scene.render.field_order = 'EVEN_FIRST' scene.render.fps = 5733 scene.render.fps_base = 191.0 scene.render.pixel_aspect_x = 1.0 scene.render.pixel_aspect_y = 1.0 scene.render.resolution_percentage = 100 scene.render.resolution_x = 1728 scene.render.resolution_y = 1072 scene.render....
26.857143
40
0.803191
62
376
4.66129
0.467742
0.380623
0.124567
0.117647
0.15917
0
0
0
0
0
0
0.067647
0.095745
376
13
41
28.923077
0.782353
0
0
0
0
0
0.026596
0
0
0
0
0
0
1
0
false
0
0.083333
0
0.083333
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
6070498be025a8d35643845480f21da95fd6212e
475
py
Python
VulnerableScan/migrations/0005_vulnerablescantasks_notice.py
b0bac/ApolloScanner
26612454bfb302611e407e495c2943b27285f23d
[ "MIT" ]
289
2022-03-17T01:37:11.000Z
2022-03-31T16:04:00.000Z
VulnerableScan/migrations/0005_vulnerablescantasks_notice.py
SoryegeToon/ApolloScanner
8f321976bf892b492e42fecdeb25f7d2e45f6a59
[ "MIT" ]
18
2022-03-17T02:43:05.000Z
2022-03-30T03:10:56.000Z
VulnerableScan/migrations/0005_vulnerablescantasks_notice.py
SoryegeToon/ApolloScanner
8f321976bf892b492e42fecdeb25f7d2e45f6a59
[ "MIT" ]
71
2022-03-17T02:23:06.000Z
2022-03-31T13:30:38.000Z
# Generated by Django 4.0.1 on 2022-03-14 10:45 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('VulnerableScan', '0004_remove_exploitregister_file_object_and_more'), ] operations = [ migrations.AddField( model_name='vulnerab...
25
96
0.652632
50
475
6.02
0.82
0
0
0
0
0
0
0
0
0
0
0.052486
0.237895
475
18
97
26.388889
0.779006
0.094737
0
0
1
0
0.231308
0.11215
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
6075c274baa031316a7614672d381364b6ce1581
10,312
py
Python
bin/gff3-to-tbl.py
lcoombe/gfftools
9da14f986e7c0935ddf0df39f1468b8b28831edf
[ "MIT" ]
null
null
null
bin/gff3-to-tbl.py
lcoombe/gfftools
9da14f986e7c0935ddf0df39f1468b8b28831edf
[ "MIT" ]
1
2021-03-09T14:20:37.000Z
2021-03-09T14:20:37.000Z
bin/gff3-to-tbl.py
lcoombe/gfftools
9da14f986e7c0935ddf0df39f1468b8b28831edf
[ "MIT" ]
1
2021-03-09T00:20:58.000Z
2021-03-09T00:20:58.000Z
#!/usr/bin/env python2 # usage: gff3-to-tbl.py genes.gff genome.fa alignment.blastp first_locus_number import sys import re import copy import argparse from fastatools.fastatools import fasta_iter as f from gfftools.gfftools import * ############ # parse arguments desc = ''.join(['Convert a MAKER2 gff to NCBI's t...
42.262295
173
0.59552
1,340
10,312
4.482836
0.225373
0.02264
0.029965
0.042118
0.3426
0.258865
0.215582
0.151157
0.134843
0.134843
0
0.00932
0.250873
10,312
243
174
42.436214
0.768285
0.398177
0
0.165138
0
0.036697
0.213748
0
0
0
0
0
0
0
null
null
0
0.055046
null
null
0.055046
0
0
0
null
0
0
0
0
0
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
6079152a40cceecf1e0c9227936356f0cb0f221d
4,183
py
Python
task_geo/data_sources/noaa/ftp.py
ansunsujoe/task-geo
4cde31a85e8b638249e503ef48c4b3eafccddcc0
[ "MIT" ]
null
null
null
task_geo/data_sources/noaa/ftp.py
ansunsujoe/task-geo
4cde31a85e8b638249e503ef48c4b3eafccddcc0
[ "MIT" ]
null
null
null
task_geo/data_sources/noaa/ftp.py
ansunsujoe/task-geo
4cde31a85e8b638249e503ef48c4b3eafccddcc0
[ "MIT" ]
null
null
null
"""Extract and prepare meteorological data from https://www.ncdc.noaa.gov/ the National Centers for Environmental Information """ from datetime import datetime import logging import os import re import tarfile as tar from ftplib import FTP import pandas as pd from references import load_dataset, DATA_DIRECTORY logg...
30.093525
93
0.669854
564
4,183
4.803191
0.326241
0.040605
0.017719
0.029531
0.065707
0.042082
0
0
0
0
0
0.006615
0.204877
4,183
138
94
30.311594
0.807877
0.006455
0
0.02381
0
0
0.169742
0.042577
0
0
0
0
0
0
null
null
0
0.095238
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
607ca0897abf7db55951f117279f90a1ef03dcc1
3,231
py
Python
deps/v8/tools/push-to-trunk/auto_roll.py
nikolas/node
42d8a0a3a93489ea466d13c3934faca2a703135e
[ "Artistic-2.0" ]
2
2016-04-09T06:43:23.000Z
2016-04-09T06:43:28.000Z
deps/v8/tools/push-to-trunk/auto_roll.py
nikolas/node
42d8a0a3a93489ea466d13c3934faca2a703135e
[ "Artistic-2.0" ]
2
2015-02-23T22:13:44.000Z
2015-07-29T20:14:06.000Z
deps/v8/tools/push-to-trunk/auto_roll.py
nikolas/node
42d8a0a3a93489ea466d13c3934faca2a703135e
[ "Artistic-2.0" ]
5
2016-12-25T05:38:41.000Z
2021-09-17T14:16:20.000Z
#!/usr/bin/env python # Copyright 2014 the V8 project authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import argparse import json import os import sys import urllib from common_includes import * import chromium_roll CONFIG = { PERS...
27.615385
79
0.646859
395
3,231
5.167089
0.435443
0.043116
0.027438
0.018618
0.033317
0.033317
0.033317
0.033317
0
0
0
0.007341
0.241102
3,231
116
80
27.853448
0.825041
0.082018
0
0.123596
0
0
0.226766
0.008787
0
0
0
0
0
0
null
null
0
0.078652
null
null
0.044944
0
0
0
null
0
0
0
0
0
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
607d235cf0078c28eb9ea7bf3d8b2a342ebde062
11,873
py
Python
Lib/Img.py
NoNotCar/SpaceX
803390fdf0ed3deee18d8f0d101ae575cf9b55e1
[ "MIT" ]
null
null
null
Lib/Img.py
NoNotCar/SpaceX
803390fdf0ed3deee18d8f0d101ae575cf9b55e1
[ "MIT" ]
null
null
null
Lib/Img.py
NoNotCar/SpaceX
803390fdf0ed3deee18d8f0d101ae575cf9b55e1
[ "MIT" ]
null
null
null
__author__ = 'NoNotCar' import pygame import os from random import choice, randint import math import colorsys from itertools import count from collections import defaultdict tau = math.pi * 2 hpi = math.pi / 2 np = os.path.normpath loc = os.getcwd() + "/Assets/" pygame.mixer.init() from . import Colour class Scaled...
32.798343
200
0.607681
1,809
11,873
3.907131
0.161415
0.007923
0.009338
0.01245
0.289191
0.234578
0.171194
0.128608
0.107102
0.072581
0
0.024447
0.235155
11,873
362
201
32.798343
0.753882
0.024172
0
0.258065
0
0
0.010215
0.002113
0
0
0
0
0
1
0.205279
false
0
0.02346
0.070381
0.43695
0
0
0
0
null
0
0
0
0
0
0
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
608203f547be7e50fc8fb49d34f2c0b97dec6ecc
6,378
py
Python
Lib/random.py
AtjonTV/Python-1.4
2a80562c5a163490f444181cb75ca1b3089759ec
[ "Unlicense", "TCL", "DOC", "AAL", "X11" ]
null
null
null
Lib/random.py
AtjonTV/Python-1.4
2a80562c5a163490f444181cb75ca1b3089759ec
[ "Unlicense", "TCL", "DOC", "AAL", "X11" ]
null
null
null
Lib/random.py
AtjonTV/Python-1.4
2a80562c5a163490f444181cb75ca1b3089759ec
[ "Unlicense", "TCL", "DOC", "AAL", "X11" ]
null
null
null
# R A N D O M V A R I A B L E G E N E R A T O R S # # distributions on the real line: # ------------------------------ # normal (Gaussian) # lognormal # negative exponential # gamma # beta # # distributions on the circle (angles 0 to 2pi) # ----------------------------------------...
24.436782
74
0.581373
958
6,378
3.826722
0.25261
0.015821
0.057283
0.0491
0.141298
0.136934
0.093562
0.018003
0.018003
0.018003
0
0.059722
0.209784
6,378
260
75
24.530769
0.667659
0.346817
0
0.210884
0
0
0.129842
0
0
0
0
0
0
0
null
null
0
0.020408
null
null
0.047619
0
0
0
null
0
0
0
0
0
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
60863189df4493fdbe36556c2d711b92fd853da3
988
py
Python
flexget/plugins/operate/pathscrub.py
metaMMA/Flexget
a38986422461d7935ead1e2b4ed4c88bcd0a90f5
[ "MIT" ]
1
2021-03-24T11:54:01.000Z
2021-03-24T11:54:01.000Z
flexget/plugins/operate/pathscrub.py
metaMMA/Flexget
a38986422461d7935ead1e2b4ed4c88bcd0a90f5
[ "MIT" ]
1
2017-10-09T23:06:44.000Z
2017-10-09T23:06:44.000Z
flexget/plugins/operate/pathscrub.py
metaMMA/Flexget
a38986422461d7935ead1e2b4ed4c88bcd0a90f5
[ "MIT" ]
null
null
null
from __future__ import unicode_literals, division, absolute_import from builtins import * # noqa pylint: disable=unused-import, redefined-builtin from flexget import plugin from flexget.event import event from flexget.utils import pathscrub class PathScrub(object): """ Plugin that will clear illegal charact...
29.058824
107
0.712551
132
988
5.19697
0.583333
0.034985
0.026239
0
0
0
0
0
0
0
0
0.001272
0.204453
988
33
108
29.939394
0.871501
0.359312
0
0
0
0
0.087894
0
0
0
0
0
0
1
0.2
false
0
0.333333
0
0.733333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
608910ea8fb3f4570ab5a4cd07541f2997d5426b
873
py
Python
config/settings/email_sending.py
HackSoftware/Django-Styleguide-Example
5cb309cc2ffc9d552be89d417d84a82d3f25d6a2
[ "MIT" ]
72
2021-12-07T09:21:26.000Z
2022-03-29T12:35:29.000Z
config/settings/email_sending.py
HackSoftware/Django-Styleguide-Example
5cb309cc2ffc9d552be89d417d84a82d3f25d6a2
[ "MIT" ]
21
2021-12-13T13:34:43.000Z
2022-03-28T09:07:42.000Z
config/settings/email_sending.py
HackSoftware/Django-Styleguide-Example
5cb309cc2ffc9d552be89d417d84a82d3f25d6a2
[ "MIT" ]
11
2021-12-09T16:52:40.000Z
2022-03-10T11:45:15.000Z
from config.env import env, env_to_enum from styleguide_example.emails.enums import EmailSendingStrategy # local | mailtrap EMAIL_SENDING_STRATEGY = env_to_enum( EmailSendingStrategy, env("EMAIL_SENDING_STRATEGY", default="local") ) EMAIL_SENDING_FAILURE_TRIGGER = env.bool("EMAIL_SENDING_FAILURE_TRIGGER", de...
37.956522
88
0.805269
111
873
5.945946
0.342342
0.145455
0.121212
0.090909
0.230303
0.10303
0
0
0
0
0
0.002558
0.104238
873
22
89
39.681818
0.841432
0.018328
0
0
0
0
0.305263
0.254971
0
0
0
0
0
1
0
false
0.0625
0.125
0
0.125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
60902a0be12e6900ecdfa192bc4b664d5ea6e650
345
py
Python
Empzxy Projects/Software Engineering/Software Simulations/QR Code Discord Bot/main.py
Empzxy/Empzxy-2022-Projects-Overview
223fa3e2bf3a3dd39a72ebe2f4dfb08c180ebf48
[ "MIT" ]
null
null
null
Empzxy Projects/Software Engineering/Software Simulations/QR Code Discord Bot/main.py
Empzxy/Empzxy-2022-Projects-Overview
223fa3e2bf3a3dd39a72ebe2f4dfb08c180ebf48
[ "MIT" ]
null
null
null
Empzxy Projects/Software Engineering/Software Simulations/QR Code Discord Bot/main.py
Empzxy/Empzxy-2022-Projects-Overview
223fa3e2bf3a3dd39a72ebe2f4dfb08c180ebf48
[ "MIT" ]
null
null
null
import discord from discord.ext import commands import pyqrcode client = commands.Bot(command_prefix='!') @client.command(pass_context=True) async def test(ctx, member): message = message.content await ctx.send(file=discord.File('code.png')) link = pyqrcode.create(message) link.png('code.png', s...
20.294118
49
0.713043
47
345
5.191489
0.638298
0.057377
0
0
0
0
0
0
0
0
0
0.006826
0.150725
345
16
50
21.5625
0.825939
0
0
0
0
0
0.049275
0
0
0
0
0
0
1
0
false
0.090909
0.272727
0
0.272727
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
609cb17e59909d81aec7de67cb4cb6df5c0a8bab
309
py
Python
part52/blog/urls.py
yllew36/WellyGI
7d53fac4c81bb994f61b22761e5ac7e48994ade4
[ "Apache-2.0" ]
1
2019-11-15T08:02:45.000Z
2019-11-15T08:02:45.000Z
part52/blog/urls.py
yllew36/WellyGI
7d53fac4c81bb994f61b22761e5ac7e48994ade4
[ "Apache-2.0" ]
null
null
null
part52/blog/urls.py
yllew36/WellyGI
7d53fac4c81bb994f61b22761e5ac7e48994ade4
[ "Apache-2.0" ]
null
null
null
from django.contrib import admin from django.urls import path, include from django.views.generic import TemplateView from .views import BlogHomeView urlpatterns = [ path('artikel/', include(('artikel.urls','artikel'))), path('',BlogHomeView.as_view(), name='home'), path('admin/', admin.site.urls), ]
25.75
55
0.731392
39
309
5.769231
0.487179
0.133333
0
0
0
0
0
0
0
0
0
0
0.113269
309
11
56
28.090909
0.821168
0
0
0
0
0
0.119741
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
60a14575eadd06c3f5058e4561b01642ab6ff763
365
py
Python
assesments/migrations/0012_rename_api_user_taker_user.py
gotoiot/service-django-rest-api
0154d23f9cfc0bc7bbfc94941851586332c1732c
[ "MIT" ]
null
null
null
assesments/migrations/0012_rename_api_user_taker_user.py
gotoiot/service-django-rest-api
0154d23f9cfc0bc7bbfc94941851586332c1732c
[ "MIT" ]
null
null
null
assesments/migrations/0012_rename_api_user_taker_user.py
gotoiot/service-django-rest-api
0154d23f9cfc0bc7bbfc94941851586332c1732c
[ "MIT" ]
null
null
null
# Generated by Django 3.2.8 on 2021-10-31 15:19 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('assesments', '0011_auto_20211031_1218'), ] operations = [ migrations.RenameField( model_name='taker', old_name='api_user', ...
19.210526
50
0.586301
40
365
5.175
0.825
0
0
0
0
0
0
0
0
0
0
0.121569
0.30137
365
18
51
20.277778
0.690196
0.123288
0
0
1
0
0.157233
0.072327
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
60a498bfebcf7aa7211ffee904e20c32dcb40676
4,957
py
Python
lake/modules/chain.py
StanfordAHA/Lake
34df001db107e1a0824b7fdb05b9f2145bf49a3e
[ "BSD-3-Clause" ]
11
2019-10-14T02:05:38.000Z
2022-03-10T14:10:22.000Z
lake/modules/chain.py
StanfordAHA/Lake
34df001db107e1a0824b7fdb05b9f2145bf49a3e
[ "BSD-3-Clause" ]
29
2019-09-02T05:49:40.000Z
2022-02-26T00:57:54.000Z
lake/modules/chain.py
StanfordAHA/Lake
34df001db107e1a0824b7fdb05b9f2145bf49a3e
[ "BSD-3-Clause" ]
1
2021-04-16T20:26:13.000Z
2021-04-16T20:26:13.000Z
from kratos import * import kratos as kts class Chain(Generator): def __init__(self, data_width, interconnect_output_ports, chain_idx_bits): super().__init__("Chain", debug=True) # generator parameters self.data_width = data_width ...
40.631148
82
0.528344
529
4,957
4.440454
0.109641
0.095785
0.176245
0.172414
0.720307
0.478076
0.411665
0.285228
0.245211
0.225628
0
0.003384
0.403873
4,957
121
83
40.966942
0.79154
0.005447
0
0.421053
0
0
0.044043
0.004262
0
0
0
0
0
1
0.063158
false
0
0.021053
0
0.094737
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
60a59fd4b2e15cb22ff04da7d88c297a15da19a1
2,126
py
Python
plot_sleep.py
dhruvbaldawa/fitbit
3aa57e549095153f0d6874e938146c3236181372
[ "MIT" ]
null
null
null
plot_sleep.py
dhruvbaldawa/fitbit
3aa57e549095153f0d6874e938146c3236181372
[ "MIT" ]
null
null
null
plot_sleep.py
dhruvbaldawa/fitbit
3aa57e549095153f0d6874e938146c3236181372
[ "MIT" ]
null
null
null
import os import logging import itertools import json import pandas as pd import seaborn as sns import matplotlib.pyplot as plt import pylab from datetime import datetime from utils import gen_next_day, setup_logging sns.set() plt.switch_backend('Qt4Agg') ROOT = os.getcwd() CONFIG_FILE = os.path.join(ROOT, 'config....
26.911392
78
0.676388
301
2,126
4.55814
0.378738
0.065598
0.029155
0.020408
0.055394
0
0
0
0
0
0
0.018182
0.198024
2,126
78
79
27.25641
0.78651
0.004233
0
0
0
0
0.062884
0
0
0
0
0
0
0
null
null
0
0.175439
null
null
0.017544
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
60a6ca5df714ca76e022e74ce48f308f598407b6
606
py
Python
Alihossein/university/296/296.py
mhdehghan/quera-answers
28dc0a9dbe3697593d7cbe05c9f05db2d3b01790
[ "MIT" ]
null
null
null
Alihossein/university/296/296.py
mhdehghan/quera-answers
28dc0a9dbe3697593d7cbe05c9f05db2d3b01790
[ "MIT" ]
null
null
null
Alihossein/university/296/296.py
mhdehghan/quera-answers
28dc0a9dbe3697593d7cbe05c9f05db2d3b01790
[ "MIT" ]
null
null
null
# question : https://quera.ir/problemset/university/296/ n = int(input()) for i in range(1, n + 1): line = '' for j in range(1, n + 1): if i in [1, n]: line += '#' elif j in [1, n]: line += '#' elif i == j: line += '#' elif j == n - i + 1: ...
23.307692
56
0.308581
69
606
2.710145
0.318841
0.042781
0.144385
0.096257
0.352941
0
0
0
0
0
0
0.041958
0.528053
606
25
57
24.24
0.611888
0.089109
0
0.478261
0
0
0.014545
0
0
0
0
0
0
1
0
false
0
0
0
0
0.043478
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
60a6f14e8ede961257edb7bf7e6f96834a24adf5
1,346
py
Python
examples/pylab_examples/contourf_log.py
yuvallanger/matplotlib
e0020d318a9a9685594c6bff4631f74599321459
[ "MIT", "BSD-3-Clause" ]
8
2017-04-11T08:55:30.000Z
2022-03-25T04:31:26.000Z
examples/pylab_examples/contourf_log.py
epgauss/matplotlib
c9898ea9a30c67c579ab27cd61b68e2abae0fb0e
[ "MIT", "BSD-3-Clause" ]
null
null
null
examples/pylab_examples/contourf_log.py
epgauss/matplotlib
c9898ea9a30c67c579ab27cd61b68e2abae0fb0e
[ "MIT", "BSD-3-Clause" ]
14
2015-10-05T04:15:46.000Z
2020-06-11T18:06:02.000Z
''' Demonstrate use of a log color scale in contourf ''' from matplotlib import pyplot as P import numpy as np from numpy import ma from matplotlib import colors, ticker, cm from matplotlib.mlab import bivariate_normal N = 100 x = np.linspace(-3.0, 3.0, N) y = np.linspace(-2.0, 2.0, N) X, Y = np.meshgrid(x, y) # A ...
28.638298
77
0.679792
253
1,346
3.588933
0.474308
0.013216
0.029736
0.037445
0.04185
0.030837
0
0
0
0
0
0.037753
0.193165
1,346
46
78
29.26087
0.798343
0.586181
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.3125
0
0.3125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
60b3de4f1fa6b9e3345bc86e60470e4eea9e85a3
7,728
py
Python
src/sage/algebras/lie_conformal_algebras/weyl_lie_conformal_algebra.py
UCD4IDS/sage
43474c96d533fd396fe29fe0782d44dc7f5164f7
[ "BSL-1.0" ]
null
null
null
src/sage/algebras/lie_conformal_algebras/weyl_lie_conformal_algebra.py
UCD4IDS/sage
43474c96d533fd396fe29fe0782d44dc7f5164f7
[ "BSL-1.0" ]
null
null
null
src/sage/algebras/lie_conformal_algebras/weyl_lie_conformal_algebra.py
UCD4IDS/sage
43474c96d533fd396fe29fe0782d44dc7f5164f7
[ "BSL-1.0" ]
null
null
null
r""" Weyl Lie Conformal Algebra Given a commutative ring `R`, a free `R`-module `M` and a non-degenerate, skew-symmetric, bilinear pairing `\langle \cdot,\cdot\rangle: M \otimes_R M \rightarrow R`. The *Weyl* Lie conformal algebra associated to this datum is the free `R[T]`-module generated by `M` plus a central vecto...
37.333333
110
0.571946
927
7,728
4.640777
0.245955
0.080893
0.079498
0.04463
0.354254
0.246165
0.208043
0.152487
0.135053
0.135053
0
0.017583
0.30823
7,728
206
111
37.514563
0.787131
0.553313
0
0.140351
1
0
0.092766
0
0
0
0
0
0.070175
1
0.052632
false
0
0.105263
0
0.210526
0
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
60b46bbc1792afceeb50a6fa6327f4ff38c03bed
7,308
py
Python
src/Cofactorization.py
sumitsidana/cofactor
d392a7838f868491267a2a6f82cab27bcb5d1870
[ "Apache-2.0" ]
null
null
null
src/Cofactorization.py
sumitsidana/cofactor
d392a7838f868491267a2a6f82cab27bcb5d1870
[ "Apache-2.0" ]
null
null
null
src/Cofactorization.py
sumitsidana/cofactor
d392a7838f868491267a2a6f82cab27bcb5d1870
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Fit CoFactor model to the binarized ML20M # In[1]: import itertools import glob import os import sys os.environ['OPENBLAS_NUM_THREADS'] = '1' import numpy as np import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt import pandas as pd from scipy import sparse import seaborn a...
21.494118
147
0.671866
1,287
7,308
3.633256
0.247086
0.02053
0.034217
0.032934
0.258982
0.215569
0.174722
0.147134
0.135158
0.09923
0
0.031082
0.159141
7,308
339
148
21.557522
0.729862
0.215791
0
0.069767
0
0
0.128673
0.044248
0
0
0
0
0
0
null
null
0.03876
0.100775
null
null
0.046512
0
0
0
null
0
0
0
0
0
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
60b582637275fd5cad7ceb65419dbb955328f63c
5,022
py
Python
tumornorm_subtype/training.py
hms-dbmi/breastCaPathologyTranscriptomics
4ecaea6dd6100a86f4d51acbf98ba7b2c7677e6e
[ "BSD-2-Clause" ]
3
2021-11-30T08:47:37.000Z
2022-02-27T17:24:17.000Z
tumornorm_subtype/training.py
hms-dbmi/breastCaPathologyTranscriptomics
4ecaea6dd6100a86f4d51acbf98ba7b2c7677e6e
[ "BSD-2-Clause" ]
null
null
null
tumornorm_subtype/training.py
hms-dbmi/breastCaPathologyTranscriptomics
4ecaea6dd6100a86f4d51acbf98ba7b2c7677e6e
[ "BSD-2-Clause" ]
7
2021-01-07T21:30:09.000Z
2022-01-07T09:51:50.000Z
""" Script by Yasha Ektefaie, November 2020 Used to train models on pathology images (pre-chunked), transfer learning from inceptionv3 """ import numpy as np import tables import pickle import neptune from neptunecontrib.monitoring.keras import NeptuneMonitor import collections from sklearn.utils import class_weig...
34.39726
118
0.714855
689
5,022
5.063861
0.348331
0.041273
0.020636
0.015477
0.106907
0.096589
0.061336
0.044712
0
0
0
0.018975
0.191955
5,022
145
119
34.634483
0.840808
0.144564
0
0.061856
0
0
0.069522
0.016152
0
0
0
0
0
1
0.020619
false
0
0.309278
0
0.340206
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
60b7d198bdf7660a744249bfa9c95a6ed2829a8e
934
py
Python
babybuddy/settings/heroku.py
vault-the/babybuddy
162f117cef019771ef6393146a0c63110e337d7f
[ "BSD-2-Clause" ]
null
null
null
babybuddy/settings/heroku.py
vault-the/babybuddy
162f117cef019771ef6393146a0c63110e337d7f
[ "BSD-2-Clause" ]
null
null
null
babybuddy/settings/heroku.py
vault-the/babybuddy
162f117cef019771ef6393146a0c63110e337d7f
[ "BSD-2-Clause" ]
null
null
null
import os import dj_database_url from .base import * # noqa: F401,F403 DEBUG = False # SECURITY WARNING: keep the secret key used in production secret! SECRET_KEY = os.environ['SECRET_KEY'] # Database # https://docs.djangoproject.com/en/1.11/ref/settings/#databases DATABASES = { 'default': dj_database_ur...
23.35
79
0.750535
131
934
5.152672
0.603053
0.094815
0.038519
0.059259
0
0
0
0
0
0
0
0.029337
0.1606
934
39
80
23.948718
0.831633
0.307281
0
0
0
0
0.179245
0.072327
0
0
0
0
0
1
0
false
0.157895
0.157895
0
0.157895
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
60ba50b03c81d72f7d7bb65a4e50c72e3db1bc10
681
py
Python
46-Permutations.py
kokokuo/oh-leetcode
253ccd7005acb28b9d14176d4b65fe0d114442a4
[ "MIT" ]
1
2019-08-02T08:54:12.000Z
2019-08-02T08:54:12.000Z
46-Permutations.py
kokokuo/oh-leetcode
253ccd7005acb28b9d14176d4b65fe0d114442a4
[ "MIT" ]
null
null
null
46-Permutations.py
kokokuo/oh-leetcode
253ccd7005acb28b9d14176d4b65fe0d114442a4
[ "MIT" ]
null
null
null
from typing import List class Solution: def permute(self, nums: List[int]) -> List[List[int]]: if len(nums) == 1: return [nums] else: i = 0 ps = [] ori = nums[:] while(i < len(nums)): j = i while(j - 1 >= 0...
28.375
68
0.361233
81
681
2.962963
0.333333
0.145833
0.075
0.083333
0
0
0
0
0
0
0
0.026786
0.506608
681
23
69
29.608696
0.6875
0
0
0
0
0
0
0
0
0
0
0
0
1
0.047619
false
0
0.047619
0
0.238095
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
60bf8a2be32bc91dddf4208d7be8ea6a56ecea24
2,070
py
Python
example-lib/classifier.py
gbnk0/simple-image-classifier
270572787f5f171e26f23cfe244ad74cdc81738e
[ "MIT" ]
24
2018-07-23T15:05:05.000Z
2021-11-28T04:33:32.000Z
example-lib/classifier.py
gbnk0/simple-image-classifier
270572787f5f171e26f23cfe244ad74cdc81738e
[ "MIT" ]
17
2018-07-20T23:20:33.000Z
2018-09-25T11:58:30.000Z
example-lib/classifier.py
gbnk0/simple-image-classifier
270572787f5f171e26f23cfe244ad74cdc81738e
[ "MIT" ]
7
2018-11-16T08:50:26.000Z
2021-11-24T20:58:21.000Z
import requests class SimpleClassifier(object): def __init__(self, **kwargs): self.host = kwargs.get('host', "localhost") self.port = kwargs.get('port', 8080) self.proto = kwargs.get('proto', "http") self.uri = "{}://{}:{}".format(self.proto, self.host, self.port) self.data...
32.34375
78
0.533816
208
2,070
5.230769
0.216346
0.102941
0.110294
0.132353
0.292279
0.292279
0.101103
0.101103
0.101103
0.101103
0
0.002907
0.335266
2,070
63
79
32.857143
0.787791
0
0
0.170213
0
0
0.067633
0
0
0
0
0
0
1
0.212766
false
0
0.021277
0.021277
0.446809
0
0
0
0
null
0
0
0
0
0
0
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
60c3d29266cb89d95b52ace0e27f10132a694e28
7,864
py
Python
chapter4/taylorDiagram.py
braghiere/python_plots
83d19c5e67e3542eee38b7c89958fca1fc6c4402
[ "Apache-2.0" ]
null
null
null
chapter4/taylorDiagram.py
braghiere/python_plots
83d19c5e67e3542eee38b7c89958fca1fc6c4402
[ "Apache-2.0" ]
null
null
null
chapter4/taylorDiagram.py
braghiere/python_plots
83d19c5e67e3542eee38b7c89958fca1fc6c4402
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright: This document has been placed in the public domain. """ Taylor diagram (Taylor, 2001) test implementation. http://www-pcmdi.llnl.gov/about/staff/Taylor/CV/Taylor_diagram_primer.htm """ __version__ = "Time-stamp: <2012-02-17 20:59:35 ycopin>" __author__ = "Yannick Copin <yannick.cop...
37.626794
139
0.618896
1,075
7,864
4.406512
0.297674
0.038421
0.018577
0.01921
0.247414
0.210682
0.169305
0.136795
0.127929
0.096052
0
0.038642
0.243133
7,864
208
140
37.807692
0.757224
0.164929
0
0.019231
0
0
0.181943
0.115438
0
0
0
0
0
0
null
null
0
0.057692
null
null
0.009615
0
0
0
null
0
0
0
0
0
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
60cb7f02c7c6d5a3d36589cb4668a3decf9dc155
246
py
Python
pc_meiduo/meiduo_mall/celery_tasks/main.py
lyq919233278/meiduo_mall
c551896ffc9bb00bb1c4ad7e15825e8e096e571b
[ "MIT" ]
null
null
null
pc_meiduo/meiduo_mall/celery_tasks/main.py
lyq919233278/meiduo_mall
c551896ffc9bb00bb1c4ad7e15825e8e096e571b
[ "MIT" ]
null
null
null
pc_meiduo/meiduo_mall/celery_tasks/main.py
lyq919233278/meiduo_mall
c551896ffc9bb00bb1c4ad7e15825e8e096e571b
[ "MIT" ]
null
null
null
# 从你刚刚下载的包中导入Celery类 from celery import Celery # 利用导入的Celery创建对象 celery_app = Celery('meiduo') celery_app.config_from_object('celery_tasks.config') # 让celery_app自动捕获目标地址下的任务: # 就是自动捕获tasks celery_app.autodiscover_tasks(['celery_tasks.sms'])
17.571429
52
0.813008
28
246
6.821429
0.535714
0.141361
0
0
0
0
0
0
0
0
0
0
0.089431
246
13
53
18.923077
0.852679
0.288618
0
0
0
0
0.242604
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
60cce85817544550a557284a6b7f35f901777d7c
3,018
py
Python
tests/test_structured.py
randomir/dimod
8f636168a620e0dc9d969fb0a813f6b4ba5a755c
[ "Apache-2.0" ]
null
null
null
tests/test_structured.py
randomir/dimod
8f636168a620e0dc9d969fb0a813f6b4ba5a755c
[ "Apache-2.0" ]
null
null
null
tests/test_structured.py
randomir/dimod
8f636168a620e0dc9d969fb0a813f6b4ba5a755c
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 D-Wave Systems Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
30.484848
98
0.574221
353
3,018
4.866856
0.362606
0.008149
0.026193
0.043655
0.233411
0.211292
0.172875
0.153667
0.153667
0.153667
0
0.017118
0.303181
3,018
99
99
30.484848
0.79981
0.271703
0
0.344828
0
0
0.010092
0
0
0
0
0
0.172414
1
0.172414
false
0
0.086207
0.103448
0.431034
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
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
60d21a329089e93b217dae3f4a4750ed1e373c99
10,498
py
Python
templates/harikiri.py
d3lta-v/puppet-autoscale
39f40439e392a6e7659fc3b3d3e0ce59044cec4b
[ "Apache-2.0" ]
null
null
null
templates/harikiri.py
d3lta-v/puppet-autoscale
39f40439e392a6e7659fc3b3d3e0ce59044cec4b
[ "Apache-2.0" ]
null
null
null
templates/harikiri.py
d3lta-v/puppet-autoscale
39f40439e392a6e7659fc3b3d3e0ce59044cec4b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """ HySDS inactivity daemon to perform scale down of auto scaling group/spot fleet request and perform self-termination (harikiri) of the instance. If a keep-alive signal file exists at <root_work_dir>/.harikiri, then self-termination is bypassed until it is removed. """ import os, sys, time, re,...
36.2
154
0.649552
1,343
10,498
4.909159
0.231571
0.032762
0.013803
0.018049
0.321098
0.298498
0.233429
0.21538
0.204156
0.181708
0
0.009921
0.241475
10,498
289
155
36.32526
0.818033
0.033054
0
0.274112
0
0.020305
0.147997
0.014305
0
0
0
0
0
0
null
null
0.025381
0.055838
null
null
0.020305
0
0
0
null
0
0
0
0
0
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
60d353c6ca4fbf980279e6451ff068fbf6189976
8,104
py
Python
gen/argo/events/client/models/v1alpha1_aws_lambda_trigger.py
argoproj-labs/argo-events-client-python
3d6e3dffca4a12a490c2963f4ac90c8894948bb5
[ "Apache-2.0" ]
null
null
null
gen/argo/events/client/models/v1alpha1_aws_lambda_trigger.py
argoproj-labs/argo-events-client-python
3d6e3dffca4a12a490c2963f4ac90c8894948bb5
[ "Apache-2.0" ]
null
null
null
gen/argo/events/client/models/v1alpha1_aws_lambda_trigger.py
argoproj-labs/argo-events-client-python
3d6e3dffca4a12a490c2963f4ac90c8894948bb5
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Argo Events No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v1.0.0 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six fr...
31.410853
166
0.625617
882
8,104
5.596372
0.148526
0.050243
0.145867
0.123987
0.517423
0.446921
0.410656
0.317261
0.227512
0.140194
0
0.030671
0.287883
8,104
257
167
31.533074
0.82464
0.357354
0
0.086957
1
0
0.097539
0.013423
0
0
0
0
0
1
0.156522
false
0
0.034783
0
0.330435
0.017391
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
60ec7b77177a43839cd5e0997d8966f547932da4
11,877
py
Python
knowledge_distillation.py
TokiTahmid64/MD-CardioNet-A-Multi-Dimensional-Deep-Neural-Network-for-Cardiovascular-Disease-Diagnosis-from-Elec
9415b8b84ba0c349cc116ecef34a93b50f7257c1
[ "MIT" ]
null
null
null
knowledge_distillation.py
TokiTahmid64/MD-CardioNet-A-Multi-Dimensional-Deep-Neural-Network-for-Cardiovascular-Disease-Diagnosis-from-Elec
9415b8b84ba0c349cc116ecef34a93b50f7257c1
[ "MIT" ]
null
null
null
knowledge_distillation.py
TokiTahmid64/MD-CardioNet-A-Multi-Dimensional-Deep-Neural-Network-for-Cardiovascular-Disease-Diagnosis-from-Elec
9415b8b84ba0c349cc116ecef34a93b50f7257c1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Knowledge_Distillation.ipynb Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1OAkgOFYmfsD7Um1WiHnvFm_WfJa9XdIW """ #Importing necessary Libraries import tensorflow as tf import numpy as np import keras import random from ker...
34.426087
344
0.691505
1,724
11,877
4.559745
0.146752
0.027986
0.016029
0.054064
0.418267
0.350083
0.314973
0.268286
0.251368
0.236229
0
0.059057
0.171676
11,877
345
345
34.426087
0.739988
0.18178
0
0.166667
1
0
0.036281
0.010862
0
0
0
0
0
1
0.055556
false
0
0.111111
0
0.216667
0.027778
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
60f2bf9fdc96f5a4d67feb80e246a8b6327a3325
568
py
Python
setup.py
zhtpandog/Indexed_Heap
f87e1460eac009c1345b2b7b9c8cc695d54c787d
[ "MIT" ]
4
2017-10-23T17:40:20.000Z
2017-10-23T20:51:18.000Z
setup.py
zhtpandog/Indexed_Heap
f87e1460eac009c1345b2b7b9c8cc695d54c787d
[ "MIT" ]
null
null
null
setup.py
zhtpandog/Indexed_Heap
f87e1460eac009c1345b2b7b9c8cc695d54c787d
[ "MIT" ]
null
null
null
from distutils.core import setup setup( name = 'Indexed_Heap', packages = ['Indexed_Heap'], version = '1.0', description = 'A binary indexed heap', author = 'Haotian Zhang', author_email = 'zhtpandog@gmail.com', url = 'https://github.com/zhtpandog/Indexed_Heap', download_url = 'https://github.com/zhtpa...
40.571429
184
0.674296
70
568
5.385714
0.628571
0.175066
0.074271
0.090186
0.196286
0.196286
0.196286
0
0
0
0
0.00823
0.144366
568
13
185
43.692308
0.76749
0
0
0
0
0
0.526408
0
0
0
0
0
0
1
0
true
0
0.076923
0
0.076923
0
0
0
0
null
0
0
0
0
0
0
0
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
60fe683e0767a2b5d7e3ad5a94047347842b275f
3,025
py
Python
folly/build/generate_varint_tables.py
hanzz2007/folly
f3645b93a8426f6b43b8cd8d2269650e87c67d26
[ "Apache-2.0" ]
null
null
null
folly/build/generate_varint_tables.py
hanzz2007/folly
f3645b93a8426f6b43b8cd8d2269650e87c67d26
[ "Apache-2.0" ]
null
null
null
folly/build/generate_varint_tables.py
hanzz2007/folly
f3645b93a8426f6b43b8cd8d2269650e87c67d26
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Generate tables for GroupVarint32 # Copyright 2011 Facebook # # @author Tudor Bosman (tudorb@fb.com) # # Reference: http://www.stepanovpapers.com/CIKM_2011.pdf # # From 17 encoded bytes, we may use between 5 and 17 bytes to encode 4 # integers. The first byte is a key that indicates how many ...
26.077586
77
0.586446
475
3,025
3.661053
0.378947
0.012651
0.023002
0.016101
0.066705
0.046003
0.046003
0.021852
0.021852
0.021852
0
0.064589
0.268099
3,025
115
78
26.304348
0.720867
0.42843
0
0.196078
1
0
0.314848
0.087657
0
0
0.002385
0
0
1
0.039216
false
0
0.039216
0
0.078431
0
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
88003a6adc82c35b539050dd8103114d33f620c9
643
py
Python
layers/poky/meta/lib/oeqa/core/tests/cases/data.py
dtischler/px30-test
55dce0b7aff1c4a7dea3ac94f94cc9c67fba7c9f
[ "Apache-2.0" ]
53
2018-02-28T08:51:32.000Z
2022-02-28T06:49:23.000Z
layers/poky/meta/lib/oeqa/core/tests/cases/data.py
dtischler/px30-test
55dce0b7aff1c4a7dea3ac94f94cc9c67fba7c9f
[ "Apache-2.0" ]
27
2018-01-25T00:26:53.000Z
2020-08-09T05:20:04.000Z
layers/poky/meta/lib/oeqa/core/tests/cases/data.py
dtischler/px30-test
55dce0b7aff1c4a7dea3ac94f94cc9c67fba7c9f
[ "Apache-2.0" ]
51
2018-02-21T04:46:08.000Z
2022-03-02T04:20:41.000Z
# Copyright (C) 2016 Intel Corporation # Released under the MIT license (see COPYING.MIT) from oeqa.core.case import OETestCase from oeqa.core.decorator.oetag import OETestTag from oeqa.core.decorator.data import OETestDataDepends class DataTest(OETestCase): data_vars = ['IMAGE', 'ARCH'] @OETestDataDepends([...
30.619048
68
0.698289
76
643
5.894737
0.552632
0.053571
0.080357
0.140625
0.160714
0
0
0
0
0
0
0.011173
0.164852
643
20
69
32.15
0.823091
0.132193
0
0
0
0
0.147748
0
0
0
0
0
0.214286
1
0.142857
false
0.071429
0.214286
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
1
0
0
0
0
0
1
88004b0809fab1741533c5c82a029c25dd7f128d
2,044
py
Python
project/path.py
ProfesseurGibaud/TestSite
53d2dda4ab8135104be28c57decfb244d5e2e72a
[ "MIT" ]
304
2015-01-06T18:02:49.000Z
2021-12-11T18:08:37.000Z
project/path.py
ProfesseurGibaud/TestSite
53d2dda4ab8135104be28c57decfb244d5e2e72a
[ "MIT" ]
9
2015-04-11T19:38:23.000Z
2019-11-16T19:38:07.000Z
project/path.py
ProfesseurGibaud/TestSite
53d2dda4ab8135104be28c57decfb244d5e2e72a
[ "MIT" ]
41
2015-04-11T14:58:02.000Z
2021-11-13T20:47:58.000Z
# coding: utf-8 """ This module contains all the paths for alls this project's directories, that we created dynamically. All paths are absolute, without symlink and in unicode. We also add the 'apps' and 'libs' directories to the PYTHON PATH, which will make the imports much easier. """ impo...
35.859649
80
0.755382
339
2,044
4.483776
0.442478
0.009868
0.013158
0.017105
0.055263
0
0
0
0
0
0
0.001801
0.184932
2,044
56
81
36.5
0.910564
0.787182
0
0
0
0
0.065445
0.054974
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
88019f98cf9154c46b0a5fedd1fcddf19acd00ca
903
py
Python
senlinclient/tests/functional/test_readonly_senlin.py
openstack/python-senlinclient
9fc2edcbba7e5c83b609f344ec42adf56ab34415
[ "Apache-2.0" ]
20
2015-10-18T02:56:33.000Z
2019-01-25T04:31:14.000Z
senlinclient/tests/functional/test_readonly_senlin.py
stackforge/python-senlinclient
36a61a7912e4a28558058425eeefe37805d1f4b5
[ "Apache-2.0" ]
null
null
null
senlinclient/tests/functional/test_readonly_senlin.py
stackforge/python-senlinclient
36a61a7912e4a28558058425eeefe37805d1f4b5
[ "Apache-2.0" ]
10
2015-11-19T05:50:34.000Z
2020-03-24T10:22:25.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed unde...
36.12
75
0.717608
123
903
5.252033
0.699187
0.092879
0.040248
0.049536
0
0
0
0
0
0
0
0.005626
0.212625
903
24
76
37.625
0.902954
0.623477
0
0
0
0
0.058642
0
0
0
0
0
0.142857
1
0.142857
false
0
0.285714
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
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
880fe9470a2556e65b11015541aba628a3933042
1,318
py
Python
indexer.py
rcarmo/yaki-tng
9f1094bc8e359be881fb5ca19042f352b8c8d8a1
[ "MIT" ]
2
2015-12-21T02:24:13.000Z
2016-03-08T06:45:58.000Z
indexer.py
rcarmo/yaki-tng
9f1094bc8e359be881fb5ca19042f352b8c8d8a1
[ "MIT" ]
null
null
null
indexer.py
rcarmo/yaki-tng
9f1094bc8e359be881fb5ca19042f352b8c8d8a1
[ "MIT" ]
1
2015-07-19T22:10:51.000Z
2015-07-19T22:10:51.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Indexer daemon Created by: Rui Carmo """ try: from gevent import monkey; monkey.patch_all() except: print "Could not load gevent, proceeding." import os, sys, logging, logging.config # Make sure our bundled libraries take precedence for f in ['lib','controll...
22.724138
81
0.662367
176
1,318
4.852273
0.551136
0.070258
0.053864
0.032787
0
0
0
0
0
0
0
0.001957
0.224583
1,318
57
82
23.122807
0.833659
0.068285
0
0
0
0
0.144915
0
0
0
0
0
0
0
null
null
0
0.228571
null
null
0.057143
0
0
0
null
0
0
0
0
0
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
8811f41a439c362178207d07418c718001b53dc3
1,973
gyp
Python
binding.gyp
second-state/ssvm-napi-extensions
cb7a48ce3ee78a4bcf95da80616c1c30a7aa7b9d
[ "Apache-2.0" ]
4
2021-01-20T02:28:17.000Z
2021-05-09T00:57:11.000Z
binding.gyp
second-state/ssvm-napi-extensions
cb7a48ce3ee78a4bcf95da80616c1c30a7aa7b9d
[ "Apache-2.0" ]
3
2020-11-27T06:11:03.000Z
2020-12-28T03:52:41.000Z
binding.gyp
second-state/ssvm-napi-extensions
cb7a48ce3ee78a4bcf95da80616c1c30a7aa7b9d
[ "Apache-2.0" ]
null
null
null
{ "targets": [ { "target_name": "action_before_build", "type": "none", "hard_dependency": 1, "actions": [ { "action_name": "build rust-native-storage library", "inputs": [ "scripts/build_storage_lib.sh" ], "outputs": [ "" ], "action": ["scrip...
30.828125
93
0.508363
186
1,973
5.177419
0.403226
0.074766
0.091381
0.094496
0.208723
0.103842
0
0
0
0
0
0.002188
0.305119
1,973
63
94
31.31746
0.700219
0
0
0.063492
0
0
0.564116
0.307146
0
0
0
0
0
1
0
true
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
7147389e465ea1922b7dd9e9d3af655a239d42bd
2,314
py
Python
final/codes/bag_of_words.py
rodneyrick/MO444-PatternRecognition-and-MachineLearning
5b0f9968b5b9e5c761cac48675118a9a755a5592
[ "MIT" ]
1
2019-08-04T21:00:07.000Z
2019-08-04T21:00:07.000Z
final/codes/bag_of_words.py
rodneyrick/MO444-PatternRecognition-and-MachineLearning
5b0f9968b5b9e5c761cac48675118a9a755a5592
[ "MIT" ]
null
null
null
final/codes/bag_of_words.py
rodneyrick/MO444-PatternRecognition-and-MachineLearning
5b0f9968b5b9e5c761cac48675118a9a755a5592
[ "MIT" ]
null
null
null
__author__ = 'mint64' import pandas as pd import re from nltk.corpus import stopwords # Import the stop word list from nltk.stem.snowball import SnowballStemmer stemmer = SnowballStemmer("english") stops = set(stopwords.words("english")) def words(descriptor): letters_only = re.sub("[^a-zA-Z]", " ", descriptor) ...
31.69863
91
0.584702
328
2,314
4.015244
0.314024
0.058466
0.013667
0.025057
0.059985
0.022779
0
0
0
0
0
0.01853
0.27701
2,314
73
92
31.69863
0.768679
0.024201
0
0.064516
0
0
0.061641
0
0
0
0
0
0
0
null
null
0
0.064516
null
null
0.032258
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
7151e6ba17b2b7182e86b4995840bd2f05d8dbe0
2,086
py
Python
packages/service-library/src/servicelib/rest_validators.py
KZzizzle/osparc-simcore
981bc8d193f3f5d507e3225f857e0308c339e163
[ "MIT" ]
null
null
null
packages/service-library/src/servicelib/rest_validators.py
KZzizzle/osparc-simcore
981bc8d193f3f5d507e3225f857e0308c339e163
[ "MIT" ]
17
2020-10-15T16:06:05.000Z
2022-03-21T18:48:21.000Z
packages/service-library/src/servicelib/rest_validators.py
GitHK/osparc-simcore-forked
5b01a28d1b8028afcf9a735e1d46a73daa13686e
[ "MIT" ]
null
null
null
from aiohttp import web from openapi_core.validation.request.validators import RequestValidator from openapi_core.validation.response.validators import ResponseValidator from .openapi_wrappers import ( PATH_KEY, QUERY_KEY, AiohttpOpenAPIRequest, AiohttpOpenAPIResponse, ) from .rest_oas import OpenApiSp...
30.676471
82
0.650048
221
2,086
5.9819
0.380091
0.05295
0.054463
0.037821
0.124054
0.081694
0.081694
0.081694
0.081694
0.081694
0
0
0.280441
2,086
67
83
31.134328
0.880746
0.101151
0
0.212766
0
0
0.047002
0
0
0
0
0.014925
0
1
0.06383
false
0
0.12766
0
0.255319
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
7153dab6ed11ba1d922ccb316a3b4085841e3481
6,561
py
Python
trainloops/morph_ae_train_loop.py
Gerryflap/master_thesis
5dc16e21b23837fee8a4532679bb5cb961af0b7c
[ "MIT" ]
null
null
null
trainloops/morph_ae_train_loop.py
Gerryflap/master_thesis
5dc16e21b23837fee8a4532679bb5cb961af0b7c
[ "MIT" ]
null
null
null
trainloops/morph_ae_train_loop.py
Gerryflap/master_thesis
5dc16e21b23837fee8a4532679bb5cb961af0b7c
[ "MIT" ]
null
null
null
""" An experimental trainloop that borrows ideas from VAE/GAN, but lets go of the constraint that the Generator should be able to generate a face from any point in the latent space. """ import math import torch from trainloops.train_loop import TrainLoop class MorphAETrainLoop(TrainLoop): def __init...
38.145349
137
0.585429
923
6,561
3.916576
0.215601
0.034855
0.028769
0.026556
0.160996
0.097925
0.079115
0.034855
0.034855
0.023237
0
0.016349
0.319464
6,561
172
138
38.145349
0.793281
0.267642
0
0.064815
1
0
0.020078
0
0
0
0
0
0
1
0.055556
false
0
0.027778
0.009259
0.138889
0
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
7154392a0af9f118b24f9bd7445adc0860687de1
874
py
Python
indictrans_crm/customisation.py
prashant03tp/indictrans-crm
d5a8026c52d71d3bd6207beaa1cc9d523f6ccade
[ "MIT" ]
null
null
null
indictrans_crm/customisation.py
prashant03tp/indictrans-crm
d5a8026c52d71d3bd6207beaa1cc9d523f6ccade
[ "MIT" ]
null
null
null
indictrans_crm/customisation.py
prashant03tp/indictrans-crm
d5a8026c52d71d3bd6207beaa1cc9d523f6ccade
[ "MIT" ]
null
null
null
from __future__ import unicode_literals import frappe from frappe import _ from frappe.model.naming import make_autoname import datetime settings = frappe.get_doc("CRM Settings") global_settings = frappe.get_doc("Global Defaults") def set_image(self, method): self.sign = settings.signature self._address = settings...
26.484848
98
0.751716
119
874
5.243697
0.411765
0.05609
0.054487
0.064103
0
0
0
0
0
0
0
0.003866
0.112128
874
33
99
26.484848
0.800258
0
0
0.083333
0
0
0.08
0
0
0
0
0
0
1
0.208333
false
0.041667
0.208333
0
0.458333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
71554a01373562f4c3ee49db8727c2da17868119
1,882
py
Python
Regression/Linear Regression.py
yanding/Stock-Analysis
0c9d6169095b5b9364a1e456fbaa2dd05c73f1b6
[ "MIT" ]
357
2016-07-29T00:49:53.000Z
2022-03-29T18:04:35.000Z
Regression/Linear Regression.py
wy676579037/Stock-Analysis
2b46bc905956980118820a96d29253f27fc9e1af
[ "MIT" ]
12
2017-05-31T22:18:31.000Z
2021-05-25T01:34:05.000Z
Regression/Linear Regression.py
wy676579037/Stock-Analysis
2b46bc905956980118820a96d29253f27fc9e1af
[ "MIT" ]
103
2017-01-08T22:10:17.000Z
2022-01-26T03:10:41.000Z
# Linear Regression for Stock based on Date # Currently only works for month # http://scikit-learn.org/stable/auto_examples/linear_model/plot_ols.html#example-linear-model-plot-ols-py import csv import numpy as np from sklearn import datasets, linear_model import matplotlib.pyplot as plt close_prices = [] dates = [] ...
24.763158
106
0.709883
299
1,882
4.351171
0.481605
0.076095
0.052267
0.036895
0
0
0
0
0
0
0
0.021645
0.140808
1,882
75
107
25.093333
0.782931
0.167906
0
0
0
0
0.114322
0
0
0
0
0
0
0
null
null
0
0.08
null
null
0.1
0
0
0
null
0
0
0
0
0
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
715a18347e2a108e4fc47ace129d029e40324a04
6,487
py
Python
Competitions/Competition3/comp3.py
Hegberg/DaffyDackDivision
a63ddade60ee8574294da7dfca8bc8ab6a1b1bc1
[ "Apache-2.0" ]
null
null
null
Competitions/Competition3/comp3.py
Hegberg/DaffyDackDivision
a63ddade60ee8574294da7dfca8bc8ab6a1b1bc1
[ "Apache-2.0" ]
null
null
null
Competitions/Competition3/comp3.py
Hegberg/DaffyDackDivision
a63ddade60ee8574294da7dfca8bc8ab6a1b1bc1
[ "Apache-2.0" ]
1
2018-01-30T17:07:17.000Z
2018-01-30T17:07:17.000Z
#!/usr/bin/env python import roslib import rospy import actionlib from actionlib_msgs.msg import * from geometry_msgs.msg import Pose, PoseWithCovarianceStamped, Point, Quaternion, Twist, PoseStamped from move_base_msgs.msg import MoveBaseAction, MoveBaseGoal, MoveBaseActionGoal from tf.transformations import quaterni...
36.857955
135
0.578233
797
6,487
4.553325
0.235885
0.024249
0.02976
0.013227
0.211077
0.131717
0.116285
0.116285
0.095343
0.095343
0
0.014049
0.319716
6,487
176
136
36.857955
0.808294
0.211654
0
0.103448
0
0
0.047553
0
0
0
0
0
0
0
null
null
0
0.103448
null
null
0.086207
0
0
0
null
0
0
0
0
0
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
715d14efea6c3cf1b0e53f45b0ddd5b6c224cfbe
3,742
py
Python
tests/Crawler/Fs/Image/ExrTest.py
ramgopal99/centipede
0b1dc1f17b025f6b37c9a3cf5753a46cbbcd36ba
[ "MIT" ]
3
2018-05-28T20:56:19.000Z
2018-06-02T15:58:10.000Z
tests/Crawler/Fs/Image/ExrTest.py
ramgopal99/centipede
0b1dc1f17b025f6b37c9a3cf5753a46cbbcd36ba
[ "MIT" ]
2
2018-07-01T07:45:38.000Z
2018-07-11T03:15:35.000Z
tests/Crawler/Fs/Image/ExrTest.py
ramgopal99/centipede
0b1dc1f17b025f6b37c9a3cf5753a46cbbcd36ba
[ "MIT" ]
3
2018-07-10T14:51:13.000Z
2022-03-17T00:39:58.000Z
import os import unittest import glob from ....BaseTestCase import BaseTestCase from centipede.Crawler import Crawler from centipede.PathHolder import PathHolder from centipede.Crawler.Fs.Image import Exr class ExrTest(BaseTestCase): """Test Exr crawler.""" __exrFile = os.path.join(BaseTestCase.dataDirectory(...
41.120879
83
0.663282
392
3,742
6.242347
0.234694
0.116469
0.116878
0.132816
0.409481
0.359624
0.327748
0.230486
0.204332
0.110339
0
0.009393
0.203367
3,742
90
84
41.577778
0.811473
0.089257
0
0.262295
0
0
0.069547
0
0
0
0
0
0.42623
1
0.098361
false
0
0.114754
0
0.278689
0
0
0
0
null
0
0
0
0
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
71643ced823531e5eecee829ca79ae180e60af62
387
py
Python
day05/myapp/urls_apis_v1.py
zhouqi007/flask1112
0300ec86102ca5bda5c716f66a844b7f9b805069
[ "Apache-2.0" ]
null
null
null
day05/myapp/urls_apis_v1.py
zhouqi007/flask1112
0300ec86102ca5bda5c716f66a844b7f9b805069
[ "Apache-2.0" ]
null
null
null
day05/myapp/urls_apis_v1.py
zhouqi007/flask1112
0300ec86102ca5bda5c716f66a844b7f9b805069
[ "Apache-2.0" ]
null
null
null
from flask_restful import Api from myapp.apis_v1 import * api = Api() def init_api(app): api.init_app(app) # 下面注册各种路由 api.add_resource(NewsOneApi,"/newsone") api.add_resource(TwoApi,"/two") api.add_resource(ThreeApi,"/three/<int:id>") api.add_resource(FourApi,"/four/<int:page>/<int:per_page>") api...
22.764706
60
0.710594
58
387
4.551724
0.517241
0.136364
0.318182
0
0
0
0
0
0
0
0
0.002933
0.118863
387
16
61
24.1875
0.771261
0.020672
0
0
0
0
0.188366
0.085873
0
0
0
0
0
1
0.090909
false
0
0.181818
0
0.272727
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7168ca088cbc13759435d370684398e62ef4c1e6
4,633
py
Python
samples/switch-commands/aci-show-vlan-ext.py
richardstrnad/acitoolkit
7e559dbb0b2d22ecf980733d6f8b7c894ecfdbde
[ "Apache-2.0" ]
351
2015-01-15T14:44:36.000Z
2022-03-27T17:06:52.000Z
samples/switch-commands/aci-show-vlan-ext.py
richardstrnad/acitoolkit
7e559dbb0b2d22ecf980733d6f8b7c894ecfdbde
[ "Apache-2.0" ]
215
2015-01-11T07:05:12.000Z
2021-12-12T15:18:10.000Z
samples/switch-commands/aci-show-vlan-ext.py
richardstrnad/acitoolkit
7e559dbb0b2d22ecf980733d6f8b7c894ecfdbde
[ "Apache-2.0" ]
324
2015-01-07T10:03:18.000Z
2022-02-23T21:48:13.000Z
#!/usr/bin/env python """ This application replicates the switch CLI command 'show vlan info' It largely uses raw queries to the APIC API """ from acitoolkit import Credentials, Session from tabulate import tabulate def show_vlan_brief(apic, node_ids): """ show vlan brief :param apic: Session instance log...
37.064
114
0.583207
601
4,633
4.34609
0.237937
0.042879
0.022971
0.022971
0.424579
0.410796
0.380168
0.339587
0.315084
0.275268
0
0.01127
0.291388
4,633
124
115
37.362903
0.784344
0.014246
0
0.235294
0
0.035294
0.207115
0.067721
0
0
0
0
0
0
null
null
0.023529
0.023529
null
null
0.094118
0
0
0
null
0
0
0
0
0
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
716c637801125c319bb89f62c8e7693d09fa5488
713
py
Python
pymatgen/analysis/solar/tests/test_slme.py
exenGT/pymatgen
a8ffb820ab8fc3f60251099e38c8888f45eae618
[ "MIT" ]
921
2015-01-25T22:17:05.000Z
2022-03-27T20:58:38.000Z
pymatgen/analysis/solar/tests/test_slme.py
exenGT/pymatgen
a8ffb820ab8fc3f60251099e38c8888f45eae618
[ "MIT" ]
1,631
2015-01-05T21:05:04.000Z
2022-03-31T18:40:17.000Z
pymatgen/analysis/solar/tests/test_slme.py
exenGT/pymatgen
a8ffb820ab8fc3f60251099e38c8888f45eae618
[ "MIT" ]
851
2015-01-01T17:38:00.000Z
2022-03-31T02:14:07.000Z
import os import unittest import warnings from pymatgen.analysis.solar.slme import optics, slme from pymatgen.util.testing import PymatgenTest class SolarTest(PymatgenTest): _multiprocess_shared_ = True def setUp(self): warnings.simplefilter("ignore") def tearDown(self): warnings.simple...
25.464286
75
0.697055
86
713
5.546512
0.593023
0.050314
0.100629
0
0
0
0
0
0
0
0
0.038529
0.199158
713
27
76
26.407407
0.796848
0
0
0
0
0
0.044881
0
0
0
0
0
0.052632
1
0.157895
false
0
0.263158
0
0.526316
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
717063607c34d89d7e7aa0c4df371de86dbd5df2
1,170
py
Python
flumine/order/responses.py
mberk/flumine
6216bcc233326cf07852fca9c7d39a18cee265ad
[ "MIT" ]
77
2017-12-09T07:10:18.000Z
2022-03-03T09:50:35.000Z
flumine/order/responses.py
mberk/flumine
6216bcc233326cf07852fca9c7d39a18cee265ad
[ "MIT" ]
423
2017-01-21T07:26:51.000Z
2022-03-04T11:13:54.000Z
flumine/order/responses.py
mberk/flumine
6216bcc233326cf07852fca9c7d39a18cee265ad
[ "MIT" ]
47
2017-04-22T17:31:41.000Z
2022-01-11T08:52:37.000Z
import datetime from typing import Optional class Responses: """Order responses""" def __init__(self): self.date_time_created = datetime.datetime.utcnow() self.current_order = None # resources.CurrentOrder self.place_response = None # resources.PlaceOrderInstructionReports s...
30.789474
76
0.664103
129
1,170
5.775194
0.286822
0.06443
0.080537
0.096644
0
0
0
0
0
0
0
0
0.247009
1,170
37
77
31.621622
0.84563
0.066667
0
0
0
0
0
0
0
0
0
0
0
1
0.214286
false
0
0.071429
0
0.392857
0
0
0
0
null
0
0
0
0
0
0
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
7170c83f7b60e74e054aa9ea58df5429cdc77147
7,642
py
Python
segmentation/datasets/common_seg_datasets.py
jianliang90/MedCommon
961384c7387cf8307275752d6399c6f9c8ce227c
[ "MIT" ]
1
2021-12-16T15:06:59.000Z
2021-12-16T15:06:59.000Z
segmentation/datasets/common_seg_datasets.py
jianliang90/MedCommon
961384c7387cf8307275752d6399c6f9c8ce227c
[ "MIT" ]
null
null
null
segmentation/datasets/common_seg_datasets.py
jianliang90/MedCommon
961384c7387cf8307275752d6399c6f9c8ce227c
[ "MIT" ]
null
null
null
import os import numpy as np import SimpleITK as sitk from tqdm import tqdm from glob import glob import torch import torch.nn from torch.utils.data import Dataset, DataLoader import sys COMMON_ROOT = os.path.join(os.path.dirname(os.path.abspath(__file__)), os.path.pardir, os.path.pardir) print(COMMON_ROOT) sys.pat...
40.433862
102
0.654933
1,216
7,642
4.041118
0.182566
0.045788
0.03256
0.052096
0.505495
0.448921
0.429792
0.403337
0.349003
0.349003
0
0.223929
0.199424
7,642
189
103
40.433862
0.556554
0.025779
0
0.096154
0
0
0.070789
0.030716
0
0
0
0
0
1
0.057692
false
0
0.134615
0.009615
0.221154
0.038462
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
71733a9afa3f8be6cc44fbe09e83672d91c428e1
587
py
Python
hummingbot/core/data_type/order_book_row.py
BGTCapital/hummingbot
2c50f50d67cedccf0ef4d8e3f4c8cdce3dc87242
[ "Apache-2.0" ]
3,027
2019-04-04T18:52:17.000Z
2022-03-30T09:38:34.000Z
hummingbot/core/data_type/order_book_row.py
BGTCapital/hummingbot
2c50f50d67cedccf0ef4d8e3f4c8cdce3dc87242
[ "Apache-2.0" ]
4,080
2019-04-04T19:51:11.000Z
2022-03-31T23:45:21.000Z
hummingbot/core/data_type/order_book_row.py
BGTCapital/hummingbot
2c50f50d67cedccf0ef4d8e3f4c8cdce3dc87242
[ "Apache-2.0" ]
1,342
2019-04-04T20:50:53.000Z
2022-03-31T15:22:36.000Z
#!/usr/bin/env python from collections import namedtuple from decimal import Decimal class OrderBookRow(namedtuple("_OrderBookRow", "price, amount, update_id")): """ Used to apply changes to OrderBook. OrderBook classes uses float internally for better performance over Decimal. """ price: float a...
25.521739
116
0.717206
69
587
6.014493
0.521739
0.077108
0.13012
0.159036
0.216867
0.216867
0.216867
0
0
0
0
0
0.197615
587
22
117
26.681818
0.881104
0.349233
0
0.2
0
0
0.210826
0
0
0
0
0
0
1
0
true
0
0.2
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
1
0
0
0
0
0
0
1
71761c162859d78ef88e98f0e4a53f3d7e032c39
466
py
Python
code_all/day08/exercise02.py
testcg/python
4db4bd5d0e44af807d2df80cf8c8980b40cc03c4
[ "MIT" ]
null
null
null
code_all/day08/exercise02.py
testcg/python
4db4bd5d0e44af807d2df80cf8c8980b40cc03c4
[ "MIT" ]
null
null
null
code_all/day08/exercise02.py
testcg/python
4db4bd5d0e44af807d2df80cf8c8980b40cc03c4
[ "MIT" ]
null
null
null
""" 练习1: 定义函数,在终端中打印一维列表. list01 = [5, 546, 6, 56, 76, ] for item in list01: print(item) list02 = [7,6,879,9,909,] for item in list02: print(item) """ # 做(一种行为) def print_single_list(list_target): """ 在终端中打印列表元素 :param list_target: list类型的需要打印的数据 """ for item i...
16.642857
40
0.577253
67
466
3.880597
0.432836
0.080769
0.103846
0.084615
0.184615
0.115385
0
0
0
0
0
0.144543
0.272532
466
27
41
17.259259
0.622419
0.450644
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0
0
0.166667
0.666667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
717b4c2238e1cfb7743f6debe57af72a928cbbf8
5,328
py
Python
ThinkMatch/models/PCA/affinity_layer.py
hpi-sam/gnn_graph_counting_query_matching
2ea24d6f8c4b1cdbeeaedb5d8f5a537caff621f8
[ "MIT" ]
null
null
null
ThinkMatch/models/PCA/affinity_layer.py
hpi-sam/gnn_graph_counting_query_matching
2ea24d6f8c4b1cdbeeaedb5d8f5a537caff621f8
[ "MIT" ]
null
null
null
ThinkMatch/models/PCA/affinity_layer.py
hpi-sam/gnn_graph_counting_query_matching
2ea24d6f8c4b1cdbeeaedb5d8f5a537caff621f8
[ "MIT" ]
1
2022-01-07T16:00:57.000Z
2022-01-07T16:00:57.000Z
import torch import torch.nn as nn from torch.nn.parameter import Parameter from torch import Tensor import math class Affinity(nn.Module): """ Affinity Layer to compute the affinity matrix from feature space. M = X * A * Y^T Parameter: scale of weight d Input: feature X, Y Output: affinity ma...
30.62069
110
0.567568
786
5,328
3.746819
0.133588
0.050934
0.036672
0.019015
0.76129
0.720543
0.664856
0.633277
0.626486
0.533447
0
0.018632
0.294857
5,328
173
111
30.797688
0.765238
0.173236
0
0.559322
0
0
0
0
0
0
0
0
0.059322
1
0.135593
false
0
0.042373
0
0.279661
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
718f73d5ab0b02031d515998a7ed1b949287645b
10,127
py
Python
face_recognition/DeepID.py
Mr-KouZhe/zhenzhwegn
2b96b66cbe59790b9ca1e5a2d8a355dc4ec76251
[ "MIT" ]
null
null
null
face_recognition/DeepID.py
Mr-KouZhe/zhenzhwegn
2b96b66cbe59790b9ca1e5a2d8a355dc4ec76251
[ "MIT" ]
null
null
null
face_recognition/DeepID.py
Mr-KouZhe/zhenzhwegn
2b96b66cbe59790b9ca1e5a2d8a355dc4ec76251
[ "MIT" ]
null
null
null
#!/usr/bin/env python #-*- coding:utf-8 -*- ''' Create on Tues 2016-7-24 @author: ForrestPi ''' #运行前,先将caffe安装好,放在~/caffe import os class DeepID(): #基本属性 prj=''#项目名称 caffepath=''#caffe主目录路径 prjpath=''#工程的位置 datapath=''#数据的路径 num=0#人数多少 # ratio=0#训练数:测试 # max_iter=0#迭代次数(用于lfw验证) # s...
32.87987
180
0.586057
1,229
10,127
4.585028
0.175753
0.039752
0.038332
0.025555
0.513931
0.457675
0.446318
0.446318
0.414197
0.414197
0
0.008844
0.240743
10,127
307
181
32.986971
0.724021
0.08739
0
0.397959
0
0.005102
0.157306
0.023264
0
0
0
0
0
0
null
null
0
0.005102
null
null
0.010204
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
71942877eb9e3f6c5130e979c93423e86cc76515
1,242
py
Python
service/tests/test_db.py
bisirkin-pv/jokes
b4b724d3cc88d7664a63eb7b55dcad96b1289598
[ "MIT" ]
1
2018-09-23T12:28:02.000Z
2018-09-23T12:28:02.000Z
service/tests/test_db.py
bisirkin-pv/jokes
b4b724d3cc88d7664a63eb7b55dcad96b1289598
[ "MIT" ]
null
null
null
service/tests/test_db.py
bisirkin-pv/jokes
b4b724d3cc88d7664a63eb7b55dcad96b1289598
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- import unittest from service.src.utility.db.DataBase import DataBase from service.src.utility.PropertyReader import PropertyReader from service.src.utility.db.Handler import Handler class TestDatabase(unittest.TestCase): def setUp(self): db = DataBase(PropertyRead...
33.567568
71
0.679549
151
1,242
5.443709
0.324503
0.068127
0.051095
0.076642
0.408759
0.29927
0.231144
0.231144
0.172749
0.172749
0
0.001011
0.203704
1,242
36
72
34.5
0.830131
0.030596
0
0.185185
0
0
0.134775
0.022463
0
0
0
0
0.148148
1
0.222222
false
0
0.148148
0
0.407407
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
7194d4507e32f15c4f732708d96067553bc4ba11
915
py
Python
test/test_tokens.py
robbm1/pyleri
4af16774ceb05454e5e4bdf885b6ae6404e8b884
[ "MIT" ]
106
2016-02-24T12:17:48.000Z
2021-11-04T18:07:32.000Z
test/test_tokens.py
robbm1/pyleri
4af16774ceb05454e5e4bdf885b6ae6404e8b884
[ "MIT" ]
15
2016-10-24T10:32:31.000Z
2021-11-26T14:21:46.000Z
test/test_tokens.py
robbm1/pyleri
4af16774ceb05454e5e4bdf885b6ae6404e8b884
[ "MIT" ]
12
2017-02-27T12:58:50.000Z
2020-02-14T14:58:30.000Z
import unittest import os import sys if os.environ.get('USELIB') != '1': sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..')) from pyleri import ( KeywordError, create_grammar, Tokens, ) # nopep8 class TestTokens(unittest.TestCase): def test_tokens(self): spaced = '== != >=...
26.142857
69
0.581421
96
915
5.333333
0.4375
0.140625
0.136719
0.185547
0.333984
0.333984
0.333984
0.333984
0.333984
0.333984
0
0.005755
0.240437
915
34
70
26.911765
0.730935
0.006557
0
0
0
0
0.114664
0
0
0
0
0
0.259259
1
0.037037
false
0
0.148148
0
0.222222
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
71989f41ec7f2c247b2345005aa04cede6363d98
6,692
py
Python
bnpy/birthmove/zzzdeprecated/BLogger.py
HongminWu/bnpy
04c918cc1150ca8d9694c093633d539d9286a1b6
[ "BSD-3-Clause" ]
3
2018-07-02T03:50:23.000Z
2019-05-16T03:23:55.000Z
bnpy/birthmove/zzzdeprecated/BLogger.py
HongminWu/bnpy
04c918cc1150ca8d9694c093633d539d9286a1b6
[ "BSD-3-Clause" ]
1
2021-01-07T01:33:06.000Z
2021-01-07T01:33:06.000Z
bnpy/birthmove/zzzdeprecated/BLogger.py
birlrobotics/bnpy
8f297d8f3e4a56088d7755134c329f63a550be9e
[ "BSD-3-Clause" ]
1
2020-09-01T13:21:18.000Z
2020-09-01T13:21:18.000Z
import logging import os import sys import numpy as np Log = None def pprint1Darr( arr, fmt='%.1f', nIndentSpaces=0, linewidth=80, label=None, returnStr=0, returnMaxLen=0): ''' Pretty print a 1D array Examples -------- >>> pprint1Darr([1, 2, 3], fmt='%.1f') 1.0 2.0 3.0 >>> pp...
30.418182
77
0.572475
818
6,692
4.662592
0.270171
0.018353
0.038018
0.031463
0.25957
0.207394
0.156529
0.134767
0.079182
0.079182
0
0.051126
0.289749
6,692
219
78
30.557078
0.751315
0.060968
0
0.2875
0
0
0.078463
0.003788
0.00625
0
0
0
0.00625
0
null
null
0
0.025
null
null
0.10625
0
0
0
null
0
0
0
0
0
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
719b9cfb4a2b0b81feebf27f96fe1d9a19bdedb5
10,352
py
Python
tests/unit/test_charm.py
canonical/postgresql-operator
25a1d9cce775a35ee7660d36c545b6632550420f
[ "Apache-2.0" ]
2
2021-10-30T03:48:40.000Z
2022-02-09T11:20:47.000Z
tests/unit/test_charm.py
canonical/postgresql-operator
25a1d9cce775a35ee7660d36c545b6632550420f
[ "Apache-2.0" ]
1
2022-03-29T13:26:48.000Z
2022-03-29T13:26:48.000Z
tests/unit/test_charm.py
canonical/postgresql-operator
25a1d9cce775a35ee7660d36c545b6632550420f
[ "Apache-2.0" ]
2
2021-11-12T12:43:35.000Z
2021-12-08T13:35:21.000Z
# Copyright 2021 Canonical Ltd. # See LICENSE file for licensing details. import re import subprocess import unittest from unittest.mock import Mock, patch from charms.operator_libs_linux.v0 import apt from ops.model import ActiveStatus, BlockedStatus, WaitingStatus from ops.testing import Harness from charm import ...
43.864407
97
0.709235
1,219
10,352
5.73831
0.164069
0.034739
0.046176
0.031451
0.590279
0.568835
0.513081
0.465904
0.423016
0.392566
0
0.00352
0.204212
10,352
235
98
44.051064
0.845594
0.171271
0
0.42236
0
0
0.146036
0.102003
0
0
0
0
0.279503
1
0.074534
false
0.192547
0.055901
0
0.136646
0
0
0
0
null
0
0
0
0
0
0
0
0
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
719bb9c830c8e5d4d5dd1bb8c61dbf86f3ffa6d2
1,639
py
Python
app/operations.py
superjkl/Webscrapbook-Sort
571cf792c8d517408340b7a443a28c79f1555568
[ "Unlicense" ]
null
null
null
app/operations.py
superjkl/Webscrapbook-Sort
571cf792c8d517408340b7a443a28c79f1555568
[ "Unlicense" ]
null
null
null
app/operations.py
superjkl/Webscrapbook-Sort
571cf792c8d517408340b7a443a28c79f1555568
[ "Unlicense" ]
null
null
null
from natsort import natsorted, ns from app.tree import TocTree, traverseTree from app.data import Toc, Metadata, getFolderTitle, getFolderId, isFolderByTitle, isFolderById, writeToc # printing folders ############################################################################### def printFolders(): def print_folde...
32.137255
104
0.585723
170
1,639
5.552941
0.405882
0.082627
0.034958
0.063559
0.050847
0
0
0
0
0
0
0.000705
0.134838
1,639
50
105
32.78
0.665021
0.064063
0
0
0
0
0.038779
0
0
0
0
0
0
1
0.214286
false
0
0.107143
0
0.357143
0.178571
0
0
0
null
0
0
0
0
0
0
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
719deb692ddea44f1dd6f777865cda27f890346e
3,655
py
Python
profiler/src/openmetadata/common/config.py
naveen09/OpenMetadata
e4fa0247f5db8094dfd156f13fdcc5ffcd120e74
[ "Apache-2.0" ]
null
null
null
profiler/src/openmetadata/common/config.py
naveen09/OpenMetadata
e4fa0247f5db8094dfd156f13fdcc5ffcd120e74
[ "Apache-2.0" ]
null
null
null
profiler/src/openmetadata/common/config.py
naveen09/OpenMetadata
e4fa0247f5db8094dfd156f13fdcc5ffcd120e74
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the...
29.24
84
0.676607
441
3,655
5.489796
0.362812
0.053697
0.021479
0.021066
0.140851
0.086328
0.086328
0.086328
0.073523
0.073523
0
0.002155
0.238304
3,655
124
85
29.475806
0.867457
0.195622
0
0.141026
0
0
0.058156
0
0
0
0
0
0.012821
1
0.115385
false
0.012821
0.115385
0.025641
0.551282
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
71a7a08d6e4a52b03709679a167a24d0aeab6942
735
py
Python
experiment/graph.py
ShaoDan/PyEGT
9313a6d12ecb5078081c8b2bd05b1c0716f9bd87
[ "Apache-2.0" ]
9
2020-02-13T18:07:59.000Z
2022-03-20T02:29:26.000Z
experiment/graph.py
ShaoDan/PyEGT
9313a6d12ecb5078081c8b2bd05b1c0716f9bd87
[ "Apache-2.0" ]
1
2021-04-23T11:25:13.000Z
2021-04-23T11:25:13.000Z
experiment/graph.py
ShaoDan/PyEGT
9313a6d12ecb5078081c8b2bd05b1c0716f9bd87
[ "Apache-2.0" ]
4
2018-12-23T12:36:57.000Z
2021-09-03T02:40:26.000Z
# -*- coding: utf-8 -*- import networkx as nx import matplotlib.pyplot as plt # transMat=np.zeros(shape=(3,3)) # transMat[0][0]=0.5 # transMat[0][1]=0.5 # transMat[1][1]=0.5 # transMat[1][2]=0.5 # transMat[2][0]=0.25 # transMat[2][2]=0.75 # dist=[1,0,0] # # Choose an initial distribution; all cooperators # for i in x...
22.96875
51
0.687075
129
735
3.875969
0.496124
0.016
0.08
0.044
0.048
0
0
0
0
0
0
0.066142
0.136054
735
32
52
22.96875
0.72126
0.504762
0
0
0
0
0.011561
0
0
0
0
0
0
0
null
null
0
0.181818
null
null
0.272727
0
0
0
null
0
0
0
0
0
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
71aa0ec97d1208ee252cdce1ab74755453c4d228
1,011
py
Python
hard-gists/7524815/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
21
2019-07-08T08:26:45.000Z
2022-01-24T23:53:25.000Z
hard-gists/7524815/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
5
2019-06-15T14:47:47.000Z
2022-02-26T05:02:56.000Z
hard-gists/7524815/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
17
2019-05-16T03:50:34.000Z
2021-01-14T14:35:12.000Z
#! /usr/bin/python ##################### # GPS-TIME-SYNC # # 2013 flazer # # info@flazer.net # ##################### # Connects to your GPS-Dongle and synchronize systemtime with GPS-UTC-time. # Handles local-timezones import os import sys from gps import * from datetime import datetime from pytz import ...
25.923077
171
0.636993
148
1,011
4.344595
0.540541
0.087092
0.093313
0
0
0
0
0
0
0
0
0.027251
0.165183
1,011
39
172
25.923077
0.734597
0.194857
0
0.086957
0
0
0.183486
0
0
0
0
0
0
0
null
null
0
0.217391
null
null
0.173913
0
0
0
null
0
0
0
0
0
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
71acddc47ef4d0f5161b9e2639d05cadf3abdfde
4,709
py
Python
manage.py
defhook/flask-blog
157f910a5dd85158e8aaea314a5143fd59f6a399
[ "MIT" ]
1
2017-04-27T09:05:14.000Z
2017-04-27T09:05:14.000Z
manage.py
defhook/flask-blog
157f910a5dd85158e8aaea314a5143fd59f6a399
[ "MIT" ]
null
null
null
manage.py
defhook/flask-blog
157f910a5dd85158e8aaea314a5143fd59f6a399
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import print_function, unicode_literals, absolute_import from flask_migrate import MigrateCommand, Migrate from flask_script import Manager, Shell from app import app from app.extensions import db from app.blog.models import User, Role, Post, Category from ...
35.674242
90
0.635167
591
4,709
4.94247
0.267343
0.04519
0.024649
0.034235
0.105101
0.080794
0
0
0
0
0
0.001921
0.226163
4,709
131
91
35.946565
0.799671
0.052877
0
0.069307
0
0
0.132194
0
0
0
0
0
0
1
0.069307
false
0.059406
0.118812
0.009901
0.207921
0.009901
0
0
0
null
0
0
0
0
0
0
0
0
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
71ad74b679621c6251c6d9ec48ae367315327fbe
3,437
py
Python
src/splunk-es/threat_intelligence_endpoints.py
woodonggyu/splunk-rest-api
c01812a230e0867df3430b9ec280d6610eb54cf2
[ "MIT" ]
null
null
null
src/splunk-es/threat_intelligence_endpoints.py
woodonggyu/splunk-rest-api
c01812a230e0867df3430b9ec280d6610eb54cf2
[ "MIT" ]
null
null
null
src/splunk-es/threat_intelligence_endpoints.py
woodonggyu/splunk-rest-api
c01812a230e0867df3430b9ec280d6610eb54cf2
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os from base64 import b64encode from typing import Union from urllib.parse import urljoin from src.bind import Splunk class ThreatIntelligenceEndpoints(Splunk): """""" def __init__(self): """""" pass def upload_a_threat_intelligence(self, filename: str, thre...
42.432099
131
0.579284
389
3,437
5.028278
0.339332
0.064417
0.03681
0.042945
0.364008
0.364008
0.364008
0.364008
0.331288
0.277096
0
0.003584
0.350596
3,437
80
132
42.9625
0.87276
0.532441
0
0.290323
0
0
0.001435
0
0
0
0
0
0
1
0.193548
false
0.16129
0.16129
0
0.387097
0
0
0
0
null
0
0
0
0
0
0
0
0
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
71ad8709a8af0cab939fc5af0929cff032d94138
1,467
py
Python
src/sterch/scrapingtools/synclist.py
maxpmaxp/sterch.scrapingtools
7bae86611e07d969622a84e093f94d939c7279c0
[ "ZPL-2.1" ]
null
null
null
src/sterch/scrapingtools/synclist.py
maxpmaxp/sterch.scrapingtools
7bae86611e07d969622a84e093f94d939c7279c0
[ "ZPL-2.1" ]
1
2017-12-14T06:43:37.000Z
2017-12-14T06:43:37.000Z
src/sterch/scrapingtools/synclist.py
maxpmaxp/sterch.scrapingtools
7bae86611e07d969622a84e093f94d939c7279c0
[ "ZPL-2.1" ]
null
null
null
### -*- coding: utf-8 -*- ############################################# # Developed by Maksym Polshcha (maxp@sterch.net) # All right reserved, 2012 ####################################################################### """Text processing functions """ from threading import RLock class DuplicateValueError(...
35.780488
86
0.522154
132
1,467
5.5
0.515152
0.077135
0.082645
0.066116
0.066116
0
0
0
0
0
0
0.004789
0.288344
1,467
41
87
35.780488
0.690613
0.064076
0
0.230769
0
0
0.079612
0
0
0
0
0
0
0
null
null
0
0.038462
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
71b3f7b1e68efa7dbba9b6d5119188392823dd9e
1,099
bzl
Python
tools/simple_jar.bzl
3flex/dagger
350368e62af7432ab431fc959366ca11d1c2caf0
[ "Apache-2.0" ]
1
2019-12-14T10:09:54.000Z
2019-12-14T10:09:54.000Z
tools/simple_jar.bzl
3flex/dagger
350368e62af7432ab431fc959366ca11d1c2caf0
[ "Apache-2.0" ]
null
null
null
tools/simple_jar.bzl
3flex/dagger
350368e62af7432ab431fc959366ca11d1c2caf0
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2018 The Dagger Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in w...
34.34375
92
0.66515
160
1,099
4.54375
0.6125
0.082531
0.035763
0.044017
0.041265
0
0
0
0
0
0
0.009445
0.229299
1,099
31
93
35.451613
0.848878
0.679709
0
0
0
0
0.318043
0
0
0
0
0.032258
0
1
0.090909
false
0
0
0
0.090909
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
71b841623b5a263f7ebaac1990a4e646a556f996
211
py
Python
x86/flower_classification_input_fn.py
gewuek/flower_classification_vai_tf_numpyarray
3e7099609ce7059be189ec77c5b42b0ae3fca911
[ "MIT" ]
7
2019-11-14T03:00:59.000Z
2020-07-26T17:27:16.000Z
x86/flower_classification_input_fn.py
gewuek/flower_classification_vai_tf_numpyarray
3e7099609ce7059be189ec77c5b42b0ae3fca911
[ "MIT" ]
1
2020-06-25T14:08:22.000Z
2020-08-15T01:42:23.000Z
x86/flower_classification_input_fn.py
gewuek/flower_classification_vai_tf_numpyarray
3e7099609ce7059be189ec77c5b42b0ae3fca911
[ "MIT" ]
4
2019-12-06T17:25:22.000Z
2020-07-30T15:39:57.000Z
#import cv2 import numpy as np #import os #import tensorflow as tf #from tensorflow import keras def calib_input(iter): X = np.load("features.npy") / 255.0 images = X[:100] return {"conv2d_input": images}
16.230769
36
0.71564
34
211
4.382353
0.705882
0
0
0
0
0
0
0
0
0
0
0.051136
0.165877
211
12
37
17.583333
0.795455
0.331754
0
0
0
0
0.176471
0
0
0
0
0
0
1
0.2
false
0
0.2
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
71ba70804223426553ecf71a032d8fca96b9456b
15,340
py
Python
src/yujin_tools/make.py
YujinRobotJaehaKim/yujin_tools
7a95c83af48a8373d87713b70efc26dde7cc018c
[ "BSD-3-Clause" ]
8
2016-04-07T15:44:06.000Z
2019-06-04T07:02:32.000Z
src/yujin_tools/make.py
YujinRobotJaehaKim/yujin_tools
7a95c83af48a8373d87713b70efc26dde7cc018c
[ "BSD-3-Clause" ]
76
2015-04-10T04:51:02.000Z
2018-10-16T02:17:05.000Z
src/yujin_tools/make.py
YujinRobotJaehaKim/yujin_tools
7a95c83af48a8373d87713b70efc26dde7cc018c
[ "BSD-3-Clause" ]
20
2015-05-17T08:35:30.000Z
2021-03-30T07:09:20.000Z
############################################################################## # Imports ############################################################################## #import os import os.path import re import sys #import stat # file permissions import argparse #from argparse import RawTextHelpFormatter #import tem...
47.788162
266
0.67073
2,059
15,340
4.801846
0.183584
0.037423
0.019217
0.021139
0.304744
0.227369
0.177708
0.151209
0.139982
0.112572
0
0.000326
0.199674
15,340
320
267
47.9375
0.805001
0.112125
0
0.165919
0
0.03139
0.240999
0.014011
0
0
0
0
0
0
null
null
0.013453
0.071749
null
null
0.040359
0
0
0
null
0
0
0
0
0
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
71bc0043babb720e2ec0c3e717ab861b1a5eac40
6,916
py
Python
scripts/artifacts/wifiProfiles.py
mastenp/ALEAPP
b8ac061b82d5e6df7953331cf7bb7165f7552d84
[ "MIT" ]
1
2020-10-06T20:28:16.000Z
2020-10-06T20:28:16.000Z
scripts/artifacts/wifiProfiles.py
mastenp/ALEAPP
b8ac061b82d5e6df7953331cf7bb7165f7552d84
[ "MIT" ]
null
null
null
scripts/artifacts/wifiProfiles.py
mastenp/ALEAPP
b8ac061b82d5e6df7953331cf7bb7165f7552d84
[ "MIT" ]
null
null
null
import os import xml.etree.ElementTree as ET import textwrap import datetime import sqlite3 from scripts.artifact_report import ArtifactHtmlReport from scripts.ilapfuncs import logfunc, tsv, is_platform_windows def get_wifiProfiles(files_found, report_folder, seeker): #Create sqlite databases db ...
41.662651
248
0.482071
498
6,916
6.624498
0.230924
0.018187
0.023644
0.040012
0.3301
0.287663
0.253107
0.124886
0.124886
0.124886
0
0.009153
0.431319
6,916
166
249
41.662651
0.829647
0.045113
0
0.285714
0
0.015873
0.145788
0.005129
0
0
0
0
0
1
0.007937
false
0.126984
0.055556
0
0.063492
0
0
0
0
null
0
0
0
0
0
0
0
0
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
71bf66458da70a5619056232b7bbd1b8f4df0480
11,418
py
Python
ui/pypesvds/lib/extras/pdflib/pycdb.py
onfire73/pypeskg
2171d0141e184999ba03c3e535ecc9bfddef10be
[ "Apache-2.0" ]
117
2015-02-28T15:38:11.000Z
2022-02-12T16:08:41.000Z
ui/pypesvds/lib/extras/pdflib/pycdb.py
onfire73/pypeskg
2171d0141e184999ba03c3e535ecc9bfddef10be
[ "Apache-2.0" ]
1
2015-10-07T19:59:52.000Z
2015-10-07T19:59:52.000Z
ui/pypesvds/lib/extras/pdflib/pycdb.py
onfire73/pypeskg
2171d0141e184999ba03c3e535ecc9bfddef10be
[ "Apache-2.0" ]
41
2015-06-11T09:32:14.000Z
2018-09-17T03:10:23.000Z
#!/usr/bin/env python # # pycdb.py - Python implementation of cdb and tcdb # # by Yusuke Shinyama # * public domain * # import sys, os from struct import pack, unpack from array import array # calc hash value with a given key def cdbhash(s, n=5381L): return reduce(lambda h,c: ((h*33) ^ ord(c)) & 0xffffffffL, ...
23.887029
87
0.561482
1,712
11,418
3.638435
0.141355
0.036603
0.016054
0.010114
0.451276
0.376786
0.33328
0.299245
0.257826
0.250923
0
0.023217
0.268173
11,418
477
88
23.937107
0.722236
0.04309
0
0.412533
0
0
0.039504
0.004593
0
0
0.000367
0
0
0
null
null
0.002611
0.015666
null
null
0.020888
0
0
0
null
0
0
0
0
0
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
71c128e9684f832cbb67b8a0df4d9e011d36fb2c
11,495
py
Python
not currently in use/clumprof.py
anewmark/galaxy_dark_matter
b5261e4e413d3a18a45a19e92f7545adc408878a
[ "MIT" ]
null
null
null
not currently in use/clumprof.py
anewmark/galaxy_dark_matter
b5261e4e413d3a18a45a19e92f7545adc408878a
[ "MIT" ]
null
null
null
not currently in use/clumprof.py
anewmark/galaxy_dark_matter
b5261e4e413d3a18a45a19e92f7545adc408878a
[ "MIT" ]
null
null
null
print('This program should plot average flux vs. aperture size for different bands') indir='/Users/amandanewmark/repositories/galaxy_dark_matter/GAH/' outdir='/Users/amandanewmark/repositories/galaxy_dark_matter/lumprofplots/clumps/' if not os.path.exists(outdir): os.mkdir(outdir) import numpy as np import math impor...
39.098639
455
0.732231
1,754
11,495
4.669327
0.13854
0.06044
0.039316
0.05641
0.73956
0.726007
0.695482
0.667521
0.667521
0.598413
0
0.030565
0.083515
11,495
294
456
39.098639
0.746844
0.037582
0
0.490196
0
0
0.258518
0.098405
0
0
0
0
0
1
0
false
0
0.035294
0
0.035294
0.039216
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
71c1808a5f80ded9d6de25d7de1aa65a7f2053a7
630
py
Python
djangocms_bootstrap4/contrib/bootstrap4_grid/migrations/0004_bootstrap4gridrow_layout.py
compoundpartners/js-bootstrap4
2b7e35ee476b6cc149448752aab5fbd605d92afb
[ "BSD-3-Clause" ]
null
null
null
djangocms_bootstrap4/contrib/bootstrap4_grid/migrations/0004_bootstrap4gridrow_layout.py
compoundpartners/js-bootstrap4
2b7e35ee476b6cc149448752aab5fbd605d92afb
[ "BSD-3-Clause" ]
1
2018-12-12T10:52:07.000Z
2018-12-12T10:52:07.000Z
djangocms_bootstrap4/contrib/bootstrap4_grid/migrations/0004_bootstrap4gridrow_layout.py
compoundpartners/js-bootstrap4
2b7e35ee476b6cc149448752aab5fbd605d92afb
[ "BSD-3-Clause" ]
1
2018-12-12T09:40:11.000Z
2018-12-12T09:40:11.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.20 on 2019-05-14 08:09 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('bootstrap4_grid', '0003_auto_20190306_0943'), ] operations = [ migrations....
30
211
0.633333
70
630
5.514286
0.785714
0.051813
0
0
0
0
0
0
0
0
0
0.078471
0.211111
630
20
212
31.5
0.698189
0.109524
0
0
1
0
0.229391
0.041219
0
0
0
0
0
1
0
false
0
0.153846
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
71c49f5d187c08485e970443525dea0070359c38
392
py
Python
Scripts/cpplint-script.py
TencentCodeDog/win-Python-v3.7.0
72275357ffaa349bd4eb65242551c3dd09546367
[ "bzip2-1.0.6" ]
null
null
null
Scripts/cpplint-script.py
TencentCodeDog/win-Python-v3.7.0
72275357ffaa349bd4eb65242551c3dd09546367
[ "bzip2-1.0.6" ]
null
null
null
Scripts/cpplint-script.py
TencentCodeDog/win-Python-v3.7.0
72275357ffaa349bd4eb65242551c3dd09546367
[ "bzip2-1.0.6" ]
null
null
null
#!F:\App\Python37\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'cpplint==1.3.0','console_scripts','cpplint' __requires__ = 'cpplint==1.3.0' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit( l...
30.153846
74
0.663265
59
392
4.084746
0.542373
0.099585
0.112033
0.124481
0.257261
0.257261
0.257261
0
0
0
0
0.038012
0.127551
392
12
75
32.666667
0.666667
0.252551
0
0
0
0
0.278351
0.079038
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
71c52c77a63f2890b8bd9099d8cd17455fe807fb
1,964
py
Python
src/transformers/configuration_linformer.py
belindal/transformers
482aef06987187d30449bf4af70c40c7b10d8933
[ "Apache-2.0" ]
null
null
null
src/transformers/configuration_linformer.py
belindal/transformers
482aef06987187d30449bf4af70c40c7b10d8933
[ "Apache-2.0" ]
null
null
null
src/transformers/configuration_linformer.py
belindal/transformers
482aef06987187d30449bf4af70c40c7b10d8933
[ "Apache-2.0" ]
null
null
null
# coding=utf_8 # Copyright 2020 The Allen Institute for AI team and The HuggingFace Inc. team. # # 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...
35.709091
97
0.715886
257
1,964
5.268482
0.51751
0.070901
0.026588
0.067947
0.06647
0.06647
0.06647
0.06647
0.06647
0
0
0.00853
0.224033
1,964
54
98
36.37037
0.879921
0.540733
0
0
0
0
0.011097
0
0
0
0
0.018519
0
1
0.045455
false
0
0.136364
0
0.272727
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
71c58bd637aead7275ecf663067a3cd373d37365
3,982
py
Python
applications/alumniprofile/views.py
samay-rgb/alumni
f147ca04c3b9e24307321df5f26e9f7db26fefe3
[ "MIT" ]
5
2019-01-25T07:46:58.000Z
2019-06-25T06:11:03.000Z
applications/alumniprofile/views.py
samay-rgb/alumni
f147ca04c3b9e24307321df5f26e9f7db26fefe3
[ "MIT" ]
10
2019-12-14T06:08:30.000Z
2022-03-13T16:01:05.000Z
applications/alumniprofile/views.py
samay-rgb/alumni
f147ca04c3b9e24307321df5f26e9f7db26fefe3
[ "MIT" ]
10
2019-10-06T13:45:25.000Z
2022-02-10T17:33:39.000Z
from django.shortcuts import render, redirect from django.contrib.auth.decorators import login_required from django.http import HttpResponseRedirect from .models import Constants, Degree, Education, Profile, PastExperience from datetime import datetime try: from collections.abc import defaultdict except ImportErro...
36.2
166
0.699648
459
3,982
5.912854
0.215686
0.05269
0.061901
0.039794
0.226234
0.188651
0.167281
0.132646
0.0479
0.0479
0
0
0.182069
3,982
110
167
36.2
0.833282
0.017077
0
0.15873
0
0
0.132644
0.023338
0
0
0
0
0
1
0.079365
false
0.079365
0.126984
0
0.285714
0.015873
0
0
0
null
0
0
0
0
0
0
0
0
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
71cc37ebb3aac541b80c847d314aa724c015db2a
47,103
py
Python
app.py
mgruppi/interface_v2
505f49d2c530e3b239a271f569e9fce6f4838afe
[ "MIT" ]
null
null
null
app.py
mgruppi/interface_v2
505f49d2c530e3b239a271f569e9fce6f4838afe
[ "MIT" ]
null
null
null
app.py
mgruppi/interface_v2
505f49d2c530e3b239a271f569e9fce6f4838afe
[ "MIT" ]
null
null
null
import dotenv, commands, json, os from getenv import env from requests import get, put, post, codes from urllib import urlencode, urlopen from flask import ( Flask, request, render_template, url_for, redirect, request, jsonify, flash, session ) from flask_mail import Mail, Message f...
44.478754
182
0.605736
5,531
47,103
5.026035
0.097451
0.036332
0.02626
0.026188
0.5552
0.511349
0.470125
0.409547
0.36638
0.356991
0
0.006085
0.239433
47,103
1,059
183
44.478754
0.769881
0.117806
0
0.418835
0
0.001239
0.242638
0.013763
0
0
0
0
0
0
null
null
0.017348
0.009913
null
null
0.04461
0
0
0
null
0
0
0
0
0
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
71cc46fcb9bfb454faad5e7d2cb2f1218fb5e37a
37,365
py
Python
braincode/vim2/main.py
sealhuang/brainCodingToolbox
8bab8bba4d41536a5b9a0b0048891991f3a6a1b3
[ "BSD-3-Clause" ]
null
null
null
braincode/vim2/main.py
sealhuang/brainCodingToolbox
8bab8bba4d41536a5b9a0b0048891991f3a6a1b3
[ "BSD-3-Clause" ]
null
null
null
braincode/vim2/main.py
sealhuang/brainCodingToolbox
8bab8bba4d41536a5b9a0b0048891991f3a6a1b3
[ "BSD-3-Clause" ]
null
null
null
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: import os import numpy as np import tables from scipy import ndimage from scipy.misc import imsave from sklearn.cross_decomposition import PLSCanonical from braincode.util import configParser from brainco...
43.29664
82
0.633373
5,887
37,365
3.727535
0.103109
0.027889
0.045571
0.030623
0.537732
0.470379
0.424672
0.367845
0.299535
0.263945
0
0.038564
0.228289
37,365
862
83
43.346868
0.722455
0.482457
0
0.25
0
0
0.064498
0.011408
0
0
0
0.00116
0
0
null
null
0
0.050562
null
null
0.070225
0
0
0
null
0
0
0
0
0
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
71cca02118243bad8ca4cf2b3ffbb8d15fdad7c5
23,016
py
Python
evm4eosiotest/evm.py
learnforpractice/evmone4eosio
92078d689d517d16c1c138440bbc0b77ab5b46a3
[ "Apache-2.0" ]
4
2020-02-28T22:49:07.000Z
2021-03-12T13:03:00.000Z
evm4eosiotest/evm.py
learnforpractice/evmone4eosio
92078d689d517d16c1c138440bbc0b77ab5b46a3
[ "Apache-2.0" ]
null
null
null
evm4eosiotest/evm.py
learnforpractice/evmone4eosio
92078d689d517d16c1c138440bbc0b77ab5b46a3
[ "Apache-2.0" ]
2
2020-03-25T03:55:24.000Z
2020-09-02T04:05:36.000Z
import os import json import web3 from web3 import Web3 from solcx import link_code import rlp import base58 from eth_utils import keccak from eth_utils import decode_hex, encode_hex from eth_account._utils.transactions import ( ChainAwareUnsignedTransaction, UnsignedTransaction, encode_transaction, se...
37.122581
1,381
0.655718
2,434
23,016
5.979869
0.146672
0.01113
0.023497
0.012367
0.465682
0.419924
0.396633
0.36448
0.335349
0.324356
0
0.147495
0.233229
23,016
619
1,382
37.182553
0.677244
0.23879
0
0.32
0
0
0.199159
0.124874
0
0
0.125348
0
0.008
1
0.128
false
0
0.042667
0.029333
0.370667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
71cfd1f7bd55abb407a8e6d041730f136b948f74
5,921
py
Python
leonardo/module/media/widget/vectorgraphics/util.py
timgates42/django-leonardo
c155f97fee9e2be1e0f508d47a1c205028253ecc
[ "BSD-3-Clause" ]
102
2015-04-30T12:27:14.000Z
2021-10-31T18:21:16.000Z
leonardo/module/media/widget/vectorgraphics/util.py
timgates42/django-leonardo
c155f97fee9e2be1e0f508d47a1c205028253ecc
[ "BSD-3-Clause" ]
158
2015-04-30T22:42:34.000Z
2019-09-07T15:37:22.000Z
leonardo/module/media/widget/vectorgraphics/util.py
timgates42/django-leonardo
c155f97fee9e2be1e0f508d47a1c205028253ecc
[ "BSD-3-Clause" ]
64
2015-05-10T12:00:39.000Z
2021-07-29T19:47:27.000Z
import xml.parsers.expat from decimal import Decimal from django.conf import settings from django.template.loader import render_to_string import xml.dom.minidom import pprint pp = pprint.PrettyPrinter(indent=1, width=20).pprint def autofill_svg_size(sender, **kwargs): if not kwargs['instance'].autofill_dimensio...
45.899225
133
0.558689
603
5,921
5.257048
0.266998
0.057413
0.020189
0.031546
0.15836
0.064984
0.023975
0
0
0
0
0.003004
0.325283
5,921
128
134
46.257813
0.790488
0.056916
0
0.08
0
0
0.110075
0.031194
0
0
0
0
0
0
null
null
0
0.06
null
null
0.03
0
0
0
null
0
0
0
0
0
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
71d01d413d905aafb7f62c87e76f9568036fa182
861
py
Python
kata/python/7kyu/HighestAndLowest.py
adrianofelix019/Codewars-Challenges
b52e6f58be26c4ab4a3ee92b2479c517208565ba
[ "MIT" ]
null
null
null
kata/python/7kyu/HighestAndLowest.py
adrianofelix019/Codewars-Challenges
b52e6f58be26c4ab4a3ee92b2479c517208565ba
[ "MIT" ]
null
null
null
kata/python/7kyu/HighestAndLowest.py
adrianofelix019/Codewars-Challenges
b52e6f58be26c4ab4a3ee92b2479c517208565ba
[ "MIT" ]
null
null
null
''' In this little assignment you are given a string of space separated numbers, and have to return the highest and lowest number. Example: high_and_low("1 2 3 4 5") # return "5 1" high_and_low("1 2 -3 4 5") # return "5 -3" high_and_low("1 9 3 4 -5") # return "9 -5" Notes: All numbers are valid Int32, no need to va...
30.75
79
0.686411
171
861
3.345029
0.409357
0.097902
0.13986
0.115385
0.267483
0.258741
0.258741
0.258741
0.258741
0.258741
0
0.1
0.186992
861
27
80
31.888889
0.717143
0.629501
0
0
0
0
0.347403
0
0
0
0
0
0
1
0.142857
false
0
0
0
0.285714
0.571429
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
71d08f33ab4e8935788275d4921e3e24c53ee804
40,762
py
Python
pkg/highlights.py
N4SIRODDIN3/highlights
e24c1f090333c9375820262768666cf94dcac147
[ "MIT" ]
1
2020-08-15T10:42:54.000Z
2020-08-15T10:42:54.000Z
pkg/highlights.py
N4SIRODDIN3/highlights
e24c1f090333c9375820262768666cf94dcac147
[ "MIT" ]
null
null
null
pkg/highlights.py
N4SIRODDIN3/highlights
e24c1f090333c9375820262768666cf94dcac147
[ "MIT" ]
null
null
null
"""Highlights API handler.""" import json import os import time from time import sleep import requests import threading try: from gateway_addon import APIHandler, APIResponse, Adapter, Device, Property, Database #print("succesfully loaded APIHandler and APIResponse from gateway_addon") except: print("Imp...
48.296209
220
0.38266
3,107
40,762
4.887673
0.132604
0.020743
0.021731
0.031608
0.393915
0.318583
0.270249
0.202094
0.164362
0.13091
0
0.007822
0.538958
40,762
844
221
48.296209
0.800245
0.122614
0
0.39666
0
0
0.129065
0.002029
0
0
0
0.00237
0
1
0.033403
false
0
0.018789
0
0.106472
0.148225
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
71d56081e7e9f90bc1b3051471322fbf30f5c7d2
2,203
py
Python
src/server/services/goods/delete.py
jhchen3121/wechat_shop
c9d9ad009df1e5bb0eb23ca8d830dd5c15df5328
[ "Apache-2.0" ]
null
null
null
src/server/services/goods/delete.py
jhchen3121/wechat_shop
c9d9ad009df1e5bb0eb23ca8d830dd5c15df5328
[ "Apache-2.0" ]
5
2021-01-28T21:18:27.000Z
2022-03-25T19:10:01.000Z
src/server/services/goods/delete.py
jhchen3121/wechat_shop
c9d9ad009df1e5bb0eb23ca8d830dd5c15df5328
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import unicode_literals from __future__ import absolute_import from core_backend import context from core_backend.service import handler from core_backend.libs import token as tk from core_backend.libs.exception import Error from server.domain.models impor...
37.982759
159
0.700409
263
2,203
5.627376
0.342205
0.048649
0.040541
0.040541
0.271622
0.243243
0.243243
0.175676
0.175676
0.175676
0
0.003924
0.190195
2,203
57
160
38.649123
0.825673
0.031775
0
0.205128
0
0
0.041942
0
0
0
0
0
0
1
0.025641
false
0
0.307692
0
0.358974
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
71de11d5de0831a7037c58d6f29930e6b366f194
804
py
Python
setup.py
antkp/mtool
14f9339fc5d81873085abf27d62da606875b992b
[ "MIT" ]
null
null
null
setup.py
antkp/mtool
14f9339fc5d81873085abf27d62da606875b992b
[ "MIT" ]
null
null
null
setup.py
antkp/mtool
14f9339fc5d81873085abf27d62da606875b992b
[ "MIT" ]
null
null
null
from pyinstaller_setuptools import setup setup( name="mtool-1.04.1 measurement app", version="1.04.1", description="Read me", long_description=README, long_description_content_type="text/markdown", url="https://github.com/antkp/mtool.git", author="p. h.", author_email="saburow...
32.16
75
0.624378
84
804
5.785714
0.75
0.117284
0.154321
0
0
0
0
0
0
0
0
0.017685
0.226368
804
25
76
32.16
0.763666
0
0
0.083333
0
0
0.441741
0.039693
0
0
0
0
0
1
0
true
0
0.083333
0
0.083333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
71df45755f3e77731140f351dac44063af3c6933
384
py
Python
4.11.py
Rycarddo/livro_curso_intensivo_de_python
b90884d05018581e0a575a4c0ccdab9cdf8311b8
[ "MIT" ]
null
null
null
4.11.py
Rycarddo/livro_curso_intensivo_de_python
b90884d05018581e0a575a4c0ccdab9cdf8311b8
[ "MIT" ]
null
null
null
4.11.py
Rycarddo/livro_curso_intensivo_de_python
b90884d05018581e0a575a4c0ccdab9cdf8311b8
[ "MIT" ]
null
null
null
pizzas = ['Pizza_A', 'Pizza_B', 'Pizza_C'] for pizza in pizzas: print(f'Gosto da {pizza}') print('Eu realmente gosto de pizza.') for i in range(1, 1): print(i) pizzas_amigos = pizzas[:] pizzas.append('Pizza_D') pizzas_amigos.append('Pizza_E') for pizza in pizzas: print(pizza) print() ...
16.695652
43
0.645833
58
384
4.103448
0.37931
0.10084
0.084034
0.134454
0.176471
0
0
0
0
0
0
0.006689
0.221354
384
22
44
17.454545
0.789298
0
0
0.142857
0
0
0.218837
0
0
0
0
0
0
1
0
false
0
0
0
0
0.428571
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
71df670ac770124d07e65111cce0fed66536bf5f
509
py
Python
Python/Exercícios_Python/058_validação_de_dados.py
vdonoladev/aprendendo-programacao
83abbcd6701b2105903b28fd549738863418cfb8
[ "MIT" ]
null
null
null
Python/Exercícios_Python/058_validação_de_dados.py
vdonoladev/aprendendo-programacao
83abbcd6701b2105903b28fd549738863418cfb8
[ "MIT" ]
null
null
null
Python/Exercícios_Python/058_validação_de_dados.py
vdonoladev/aprendendo-programacao
83abbcd6701b2105903b28fd549738863418cfb8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """058 - Validação de Dados Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1ZTluph36T-5jWIn1AJP2JN1XKyqGAYep """ sexo = '' while sexo != 'M' and sexo != 'F': sexo = str(input('DIgite o sexo [M/F]: ')).upper() if sexo !=...
25.45
77
0.626719
68
509
4.691176
0.691176
0.062696
0.050157
0.075235
0.081505
0
0
0
0
0
0
0.026895
0.196464
509
20
78
25.45
0.753056
0.385069
0
0
1
0
0.332248
0
0
0
0
0
0
1
0
false
0
0
0
0
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
71e1037db7e92514ae30451d2e508ea22f1a5d1e
1,182
py
Python
examples/frameworks/pytorch/tensorboard_toy_pytorch.py
noklam/trains
70536544ed5e2b9aac8576ef2eaaef31c99ca670
[ "Apache-2.0" ]
8
2019-04-24T18:55:50.000Z
2022-03-04T13:38:42.000Z
examples/frameworks/pytorch/tensorboard_toy_pytorch.py
aliceUnhinged613/trains
8ec6bba4d91104a2bdd2e537bec21078529540e0
[ "Apache-2.0" ]
2
2020-07-05T08:28:40.000Z
2020-08-11T13:32:49.000Z
examples/frameworks/pytorch/tensorboard_toy_pytorch.py
aliceUnhinged613/trains
8ec6bba4d91104a2bdd2e537bec21078529540e0
[ "Apache-2.0" ]
6
2021-03-06T03:18:14.000Z
2021-12-14T02:40:12.000Z
import os from tempfile import gettempdir import numpy as np from PIL import Image from torch.utils.tensorboard import SummaryWriter from trains import Task task = Task.init(project_name='examples', task_name='pytorch tensorboard toy example') writer = SummaryWriter(log_dir=os.path.join(gettempdir(), 'tensorboard_l...
39.4
111
0.742809
176
1,182
4.806818
0.403409
0.06383
0.099291
0.06383
0.185579
0.185579
0.1513
0
0
0
0
0.016729
0.089679
1,182
29
112
40.758621
0.769517
0.213198
0
0
0
0
0.157838
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
71e3eec755034758d03696dc1ea4fafc5895cd89
496
py
Python
task_queue/migrations/0013_queuetask_log.py
dander94/task_queue
c65532fb496f4b3694cd33fb1466b5e0b3b2c486
[ "MIT" ]
null
null
null
task_queue/migrations/0013_queuetask_log.py
dander94/task_queue
c65532fb496f4b3694cd33fb1466b5e0b3b2c486
[ "MIT" ]
null
null
null
task_queue/migrations/0013_queuetask_log.py
dander94/task_queue
c65532fb496f4b3694cd33fb1466b5e0b3b2c486
[ "MIT" ]
1
2022-02-05T08:55:08.000Z
2022-02-05T08:55:08.000Z
# Generated by Django 3.0.4 on 2020-04-13 16:49 from django.db import migrations, models import task_queue.models class Migration(migrations.Migration): dependencies = [ ('task_queue', '0012_remove_queuetask_log'), ] operations = [ migrations.AddField( model_name='queuetask'...
24.8
132
0.655242
61
496
5.114754
0.622951
0.086538
0.096154
0
0
0
0
0
0
0
0
0.05
0.233871
496
19
133
26.105263
0.771053
0.090726
0
0
1
0
0.111359
0.055679
0
0
0
0
0
1
0
false
0
0.153846
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e07abd8a95b2eccde225f9031069a64768f6f3b8
455
gyp
Python
binding.gyp
oyyd/nysocks
464c408ea45ceca576f04267bb168a70c5a29847
[ "BSD-3-Clause" ]
78
2017-12-10T07:00:02.000Z
2022-03-14T06:42:35.000Z
binding.gyp
oyyd/kcpuv
464c408ea45ceca576f04267bb168a70c5a29847
[ "BSD-3-Clause" ]
4
2018-01-13T04:45:27.000Z
2020-09-25T09:20:30.000Z
binding.gyp
oyyd/nysocks
464c408ea45ceca576f04267bb168a70c5a29847
[ "BSD-3-Clause" ]
23
2017-12-08T06:54:12.000Z
2022-03-27T07:05:05.000Z
{ 'targets': [{ 'target_name': 'addon', 'include_dirs': [ "<!(node -e \"require('nan')\")", 'lib/kcp', 'src', ], 'sources': [ 'lib/kcp/ikcp.c', 'src/utils.c', 'src/Loop.cc', 'src/SessUDP.cc', 'src/Cryptor.cc', 'src/KcpuvSess.cc', 'src/Mux.cc'...
17.5
39
0.408791
46
455
3.978261
0.652174
0.136612
0
0
0
0
0
0
0
0
0
0.009967
0.338462
455
25
40
18.2
0.598007
0
0
0.16
0
0
0.461538
0
0
0
0
0
0
1
0
true
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
e07dfce51029e12c851c0cc88d7f035e75a06014
1,346
py
Python
django_classified/forms.py
hymnis/django-classified
69bdab932f037ce006715fe4b2b1e6a622b39b02
[ "MIT" ]
42
2020-03-29T11:09:20.000Z
2022-03-16T11:45:06.000Z
django_classified/forms.py
hymnis/django-classified
69bdab932f037ce006715fe4b2b1e6a622b39b02
[ "MIT" ]
4
2020-05-18T21:17:12.000Z
2021-07-19T20:19:01.000Z
django_classified/forms.py
hymnis/django-classified
69bdab932f037ce006715fe4b2b1e6a622b39b02
[ "MIT" ]
20
2020-04-09T09:33:13.000Z
2022-01-26T18:48:32.000Z
from django import forms from django.utils.translation import ugettext as _ from .models import Item, Group, Profile, Area class SearchForm(forms.Form): area = forms.ModelChoiceField(label=_('Area'), queryset=Area.objects.all(), required=False) group = forms.ModelChoiceField(label=_('Group'), queryset=Group....
25.396226
98
0.591382
140
1,346
5.585714
0.471429
0.070332
0.095908
0.058824
0.138107
0
0
0
0
0
0
0
0.291976
1,346
52
99
25.884615
0.820567
0.070579
0
0.108108
0
0
0.094551
0.017628
0
0
0
0.019231
0
1
0.027027
false
0
0.081081
0
0.405405
0
0
0
0
null
0
0
0
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
e0811aaf21c026af971f10ee4f6fad02fa03c1ef
342
py
Python
lessons/lesson1/lesson1.py
daesun06/python_novice_lessons
a8976e1b4a36181e159b49e53b6f7854f55e3168
[ "MIT" ]
null
null
null
lessons/lesson1/lesson1.py
daesun06/python_novice_lessons
a8976e1b4a36181e159b49e53b6f7854f55e3168
[ "MIT" ]
null
null
null
lessons/lesson1/lesson1.py
daesun06/python_novice_lessons
a8976e1b4a36181e159b49e53b6f7854f55e3168
[ "MIT" ]
null
null
null
# Dummy calculation number1 = 7 number2 = 5 def calculate(input1, input2, symbol): computation_string = f'{input1} {symbol} {input2}' result = eval(computation_string) return result calculation_1 = calculate(number1, number2, "+") calculation_2 = calculate(number1, number2, "*") print(calculation_1)...
21.375
54
0.722222
39
342
6.179487
0.512821
0.141079
0.190871
0
0
0
0
0
0
0
0
0.055749
0.160819
342
16
55
21.375
0.783972
0.049708
0
0
0
0
0.086687
0
0
0
0
0
0
1
0.1
false
0
0
0
0.2
0.2
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
e084399def4b494208925509caf43aaa3d8601bc
7,041
py
Python
TPA.py
matonima/lightweight-classifier
35fd188595d771b738ec4e84501e45ca7110fb5a
[ "CC0-1.0" ]
null
null
null
TPA.py
matonima/lightweight-classifier
35fd188595d771b738ec4e84501e45ca7110fb5a
[ "CC0-1.0" ]
null
null
null
TPA.py
matonima/lightweight-classifier
35fd188595d771b738ec4e84501e45ca7110fb5a
[ "CC0-1.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Dec 18 12:41:53 2020 @author: tonim """ import numpy as np # linear algebra import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv) import keras from keras.models import Model from keras.layers import Input,Conv2D,Convolution2D, Dense, MaxPool2D, Dro...
40.936047
139
0.690243
1,051
7,041
4.525214
0.31589
0.030067
0.050463
0.060555
0.251051
0.211102
0.154962
0.133726
0.083263
0.068966
0
0.05635
0.15566
7,041
171
140
41.175439
0.74365
0.125124
0
0.051095
0
0
0.083517
0.012875
0
0
0
0
0
0
null
null
0
0.19708
null
null
0.043796
0
0
0
null
0
0
0
0
0
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