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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4242bed29caa681e8bbecb0a6fee64dc649084e0 | 4,739 | py | Python | ibis/expr/analytics.py | tswast/ibis | 2f6d47e4c33cefd7ea1d679bb1d9253c2245993b | [
"Apache-2.0"
] | null | null | null | ibis/expr/analytics.py | tswast/ibis | 2f6d47e4c33cefd7ea1d679bb1d9253c2245993b | [
"Apache-2.0"
] | 6 | 2017-05-18T19:49:09.000Z | 2019-03-27T15:37:14.000Z | ibis/expr/analytics.py | tswast/ibis | 2f6d47e4c33cefd7ea1d679bb1d9253c2245993b | [
"Apache-2.0"
] | 1 | 2017-06-26T15:43:35.000Z | 2017-06-26T15:43:35.000Z | # Copyright 2015 Cloudera Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, so... | 30.378205 | 77 | 0.647394 | 611 | 4,739 | 4.96072 | 0.306056 | 0.023755 | 0.029693 | 0.028044 | 0.164632 | 0.061366 | 0.061366 | 0.061366 | 0.037611 | 0.037611 | 0 | 0.007058 | 0.252585 | 4,739 | 155 | 78 | 30.574194 | 0.848673 | 0.353028 | 0 | 0.235294 | 0 | 0 | 0.094741 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.147059 | false | 0 | 0.058824 | 0.044118 | 0.602941 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
42453c53e39ef6d39195bd095dc63530214a7c7b | 489 | py | Python | main.py | noahabe/learnin | 0b08350cd3b5e48449d955c6dc29380bb2a5f7a1 | [
"MIT"
] | null | null | null | main.py | noahabe/learnin | 0b08350cd3b5e48449d955c6dc29380bb2a5f7a1 | [
"MIT"
] | 1 | 2021-01-10T11:15:28.000Z | 2021-01-10T11:28:45.000Z | main.py | noahabe/learninggit | 0b08350cd3b5e48449d955c6dc29380bb2a5f7a1 | [
"MIT"
] | null | null | null | def f():
print("this is the f() function")
return 0
def fib(n):
if n < 2:
return n
return fib(n-1) + fib(n-2)
def fib_not_recursive(n):
x = 0
y = 1
if n == 0:
return x
elif n == 1:
return y
while n-2 >= 0:
x,y = y,x+y
n -= 1
return y
if __name__ == '__main__':
fib_generated_by_recurse = [fib(i)... | 18.111111 | 75 | 0.656442 | 98 | 489 | 3.010204 | 0.316327 | 0.162712 | 0.189831 | 0.061017 | 0.264407 | 0.101695 | 0.101695 | 0 | 0 | 0 | 0 | 0.043814 | 0.206544 | 489 | 26 | 76 | 18.807692 | 0.716495 | 0 | 0 | 0.086957 | 0 | 0 | 0.06544 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.130435 | false | 0 | 0 | 0 | 0.391304 | 0.130435 | 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 |
424ca5945c18178873e599a66eb7df987f54fe23 | 1,263 | py | Python | api/message_control/migrations/0002_auto_20210317_0923.py | richeshgupta/SecureBit | 89a95e7e4df2276294f76803a7bc5b8d7f99d436 | [
"MIT"
] | 1 | 2021-07-03T04:51:55.000Z | 2021-07-03T04:51:55.000Z | api/message_control/migrations/0002_auto_20210317_0923.py | richeshgupta/SecureBit | 89a95e7e4df2276294f76803a7bc5b8d7f99d436 | [
"MIT"
] | 6 | 2021-03-24T11:23:41.000Z | 2022-02-27T12:24:37.000Z | api/message_control/migrations/0002_auto_20210317_0923.py | richeshgupta/SecureBit | 89a95e7e4df2276294f76803a7bc5b8d7f99d436 | [
"MIT"
] | null | null | null | # Generated by Django 3.1 on 2021-03-17 09:23
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('message_control', '0001_in... | 36.085714 | 164 | 0.661916 | 134 | 1,263 | 6.067164 | 0.373134 | 0.0492 | 0.068881 | 0.108241 | 0.542435 | 0.542435 | 0.482165 | 0.482165 | 0.482165 | 0.482165 | 0 | 0.021538 | 0.228029 | 1,263 | 34 | 165 | 37.147059 | 0.812308 | 0.034046 | 0 | 0.392857 | 1 | 0 | 0.16913 | 0.06486 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.107143 | 0 | 0.214286 | 0 | 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 |
424f14b9ed100d73dc4ccc6d757c66d6d5c1e5df | 10,527 | py | Python | app.py | abaiskiy/darvis | 7499dafce7717f9093d4567975c4428ab69a9a89 | [
"Apache-2.0"
] | null | null | null | app.py | abaiskiy/darvis | 7499dafce7717f9093d4567975c4428ab69a9a89 | [
"Apache-2.0"
] | 1 | 2017-12-14T08:55:06.000Z | 2017-12-14T08:55:06.000Z | app.py | abaiskiy/darvis | 7499dafce7717f9093d4567975c4428ab69a9a89 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
from __future__ import print_function
from future.standard_library import install_aliases
install_aliases()
from urllib.parse import urlparse, urlencode
from urllib.request import urlopen, Request
from urllib.error import HTTPError
import json
import os
import requests
import codecs... | 31.517964 | 154 | 0.578987 | 1,202 | 10,527 | 5.001664 | 0.281198 | 0.012475 | 0.022455 | 0.012808 | 0.285595 | 0.211078 | 0.199933 | 0.157352 | 0.131737 | 0.119428 | 0 | 0.018025 | 0.283272 | 10,527 | 333 | 155 | 31.612613 | 0.777601 | 0.057756 | 0 | 0.138776 | 0 | 0.004082 | 0.211792 | 0.024357 | 0.004082 | 0 | 0 | 0 | 0 | 0 | null | null | 0.004082 | 0.053061 | null | null | 0.020408 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
4250fb1dccb92a7249c80798630c90402e7dd374 | 331 | py | Python | examples/scripts/connectome.py | Rhoana/synapseaware | 79bb5300d933636a8f3bce62fe2b3bc508d00a87 | [
"MIT"
] | 9 | 2019-08-17T04:25:21.000Z | 2022-02-12T03:30:04.000Z | examples/scripts/connectome.py | Rhoana/synapseaware | 79bb5300d933636a8f3bce62fe2b3bc508d00a87 | [
"MIT"
] | 1 | 2022-01-21T15:04:11.000Z | 2022-01-21T15:04:11.000Z | examples/scripts/connectome.py | Rhoana/synapseaware | 79bb5300d933636a8f3bce62fe2b3bc508d00a87 | [
"MIT"
] | 3 | 2019-09-09T15:39:09.000Z | 2022-02-11T16:21:30.000Z | from synapseaware.isthmus import topological_thinning
from synapseaware.teaser import teaser
from synapseaware.connectome import wiring
prefix = 'Fib25'
label = 1
topological_thinning.TopologicalThinning(prefix, label)
teaser.TEASER(prefix, label)
wiring.GenerateSkeleton(prefix, label)
wiring.RefineSkeleton(pref... | 19.470588 | 55 | 0.830816 | 37 | 331 | 7.378378 | 0.432432 | 0.161172 | 0.124542 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010067 | 0.099698 | 331 | 16 | 56 | 20.6875 | 0.90604 | 0 | 0 | 0 | 0 | 0 | 0.015106 | 0 | 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 |
42528367a394a35f7f1660030ce6d2bae1dd9485 | 1,726 | py | Python | util/gcp_utils.py | rodrigorbonfim/iris3 | 50163578e560160fe7e55d2e580593a03f7e6034 | [
"MIT"
] | 30 | 2021-02-02T20:17:44.000Z | 2022-03-27T09:17:32.000Z | util/gcp_utils.py | rodrigorbonfim/iris3 | 50163578e560160fe7e55d2e580593a03f7e6034 | [
"MIT"
] | 14 | 2021-03-08T19:54:31.000Z | 2022-03-12T20:32:30.000Z | util/gcp_utils.py | rodrigorbonfim/iris3 | 50163578e560160fe7e55d2e580593a03f7e6034 | [
"MIT"
] | 12 | 2021-07-08T18:50:27.000Z | 2022-03-11T17:10:35.000Z | import os
import re
import uuid
from pprint import pprint
from typing import List, Dict, Any
from util import localdev_config
from googleapiclient import discovery
from oauth2client.client import GoogleCredentials
resource_manager = discovery.build(
"cloudresourcemanager",
"v1",
credentials=(GoogleCreden... | 23.643836 | 95 | 0.677289 | 222 | 1,726 | 5.099099 | 0.418919 | 0.047703 | 0.060954 | 0.026502 | 0.106007 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005109 | 0.206257 | 1,726 | 72 | 96 | 23.972222 | 0.821168 | 0.087486 | 0 | 0.044444 | 0 | 0 | 0.052461 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.177778 | false | 0 | 0.177778 | 0.044444 | 0.533333 | 0.022222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
4253d24d79d27e63c594cf2bdb9db10e4f3dbb6a | 4,749 | py | Python | struct_def.py | mrhack/zippkg | 2b312d6da17794f914617195f986f2e14a7ec543 | [
"MIT"
] | null | null | null | struct_def.py | mrhack/zippkg | 2b312d6da17794f914617195f986f2e14a7ec543 | [
"MIT"
] | null | null | null | struct_def.py | mrhack/zippkg | 2b312d6da17794f914617195f986f2e14a7ec543 | [
"MIT"
] | null | null | null | from util.formater import *
class Signature:
EXTRA_ZIP64 = b'\x01\x00'
EXTRA_UPEF = b'\x75\x70'
EXTRA_AES = b'\x01\x99'
CENTRAL_RECORD = b'PK\x05\x06'
CENTRAL_HEADER = b"PK\x01\x02"
FILE_HEADER = b"PK\x03\x04"
ZIP64_LOCATOR = b"PK\x06\x07"
ZIP64_RECORD = b"PK\x06\x06"
ZIP_RECOR... | 30.63871 | 90 | 0.688145 | 610 | 4,749 | 5.05082 | 0.24918 | 0.051931 | 0.051931 | 0.0753 | 0.40766 | 0.284648 | 0.266472 | 0.237261 | 0.237261 | 0.237261 | 0 | 0.056546 | 0.1733 | 4,749 | 154 | 91 | 30.837662 | 0.728222 | 0.106128 | 0 | 0.224 | 0 | 0 | 0.299669 | 0.141911 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.008 | 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 |
42585d87422afbad5abae9d2de5f0f026faa046f | 7,559 | py | Python | Simulation_fISO/dictnet_train.py | abrarfaiyaz/DictNet | f52affb38106a9140d4859d0ea203d43d1ea6c1d | [
"MIT"
] | 1 | 2021-10-07T17:58:33.000Z | 2021-10-07T17:58:33.000Z | Simulation_fISO/dictnet_train.py | abrarfaiyaz/DictNet | f52affb38106a9140d4859d0ea203d43d1ea6c1d | [
"MIT"
] | null | null | null | Simulation_fISO/dictnet_train.py | abrarfaiyaz/DictNet | f52affb38106a9140d4859d0ea203d43d1ea6c1d | [
"MIT"
] | null | null | null | '''
@ DictNet Author - Abrar Faiyaz (abrarfaiyaz.iutcse@gmail.com)
@ Nov, 2019
'''
# Stochastic Initializer Seed Value. (Defined same for training and test cases.)
# Helps to reproduce training cases.
seedvalue=47;
# Setting up all Imports
# Keras Version- keras/2.0.5
# GPU library Version- cudnn/9.... | 28.524528 | 166 | 0.635931 | 1,078 | 7,559 | 4.369202 | 0.229128 | 0.023779 | 0.005096 | 0.014862 | 0.2862 | 0.215924 | 0.152017 | 0.09087 | 0.070701 | 0.043312 | 0 | 0.027182 | 0.216431 | 7,559 | 264 | 167 | 28.632576 | 0.768023 | 0.140892 | 0 | 0.084848 | 0 | 0 | 0.058389 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.078788 | null | null | 0.078788 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
425870db64f7bf551758fd5a15a3cc52c64321f9 | 3,638 | py | Python | dockerize-apps/panel/mednum/config/__init__ copy.py | slamer59/batch8_mednum | 81597fd315a1b00446d9f761ce1ac712d2113905 | [
"MIT"
] | null | null | null | dockerize-apps/panel/mednum/config/__init__ copy.py | slamer59/batch8_mednum | 81597fd315a1b00446d9f761ce1ac712d2113905 | [
"MIT"
] | null | null | null | dockerize-apps/panel/mednum/config/__init__ copy.py | slamer59/batch8_mednum | 81597fd315a1b00446d9f761ce1ac712d2113905 | [
"MIT"
] | null | null | null | from pathlib import Path
hard_reset = False
data_path = Path("../data")
if not data_path.exists():
data_path = Path("./data")
interim_data = data_path / "interim/"
processed_data = data_path / "processed/"
cache_dir = interim_data
INDICE = "GLOBAL COMPETENCES"
OPTIONS_INT_NUM = {
"TX_POVERTY": {
"... | 34.320755 | 196 | 0.669324 | 454 | 3,638 | 5.19163 | 0.370044 | 0.047518 | 0.025456 | 0.04073 | 0.250318 | 0.157828 | 0.157828 | 0.109461 | 0.109461 | 0.109461 | 0 | 0.00813 | 0.222375 | 3,638 | 105 | 197 | 34.647619 | 0.825027 | 0.053051 | 0 | 0.071429 | 0 | 0.035714 | 0.636998 | 0.006399 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.011905 | 0 | 0.011905 | 0 | 0 | 0 | 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 |
4259e007ba99693533cb7e6d3f4c3b81d8b3348c | 837 | py | Python | put.py | paul-wolf/focusstepper | ff036996b922cd949fb228cd4217d9110479a60c | [
"MIT"
] | 1 | 2021-08-23T01:33:41.000Z | 2021-08-23T01:33:41.000Z | put.py | paul-wolf/focusstepper | ff036996b922cd949fb228cd4217d9110479a60c | [
"MIT"
] | null | null | null | put.py | paul-wolf/focusstepper | ff036996b922cd949fb228cd4217d9110479a60c | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import os
import sys
import logging
import uuid
import time
import glob
import subprocess
from dotenv import load_dotenv
from s3 import get_s3, store_stream_s3, get_matching_s3_keys, get_object_to_file
load_dotenv()
BUCKET = os.environ.get("BUCKET")
PATH_DATA = os.environ.get("PATH_DATA", "./... | 24.617647 | 80 | 0.661888 | 130 | 837 | 4.053846 | 0.438462 | 0.060721 | 0.056926 | 0.053131 | 0.087287 | 0.087287 | 0 | 0 | 0 | 0 | 0 | 0.013235 | 0.187575 | 837 | 33 | 81 | 25.363636 | 0.761765 | 0.02509 | 0 | 0 | 0 | 0 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.36 | 0 | 0.4 | 0.08 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4259f93677f57d878aeb8ba52b80cebaa6bf4d38 | 659 | py | Python | tests/unit/test_value.py | python-yaddy/yaddy | c543869cfe0b6fba9082b1a00fd094cbf0182f7e | [
"MIT"
] | null | null | null | tests/unit/test_value.py | python-yaddy/yaddy | c543869cfe0b6fba9082b1a00fd094cbf0182f7e | [
"MIT"
] | null | null | null | tests/unit/test_value.py | python-yaddy/yaddy | c543869cfe0b6fba9082b1a00fd094cbf0182f7e | [
"MIT"
] | 1 | 2021-04-14T21:04:39.000Z | 2021-04-14T21:04:39.000Z | from yaddy import Value
def test_two_different_values_are_equal():
value_one = Value()
value_two = Value()
assert value_one == value_two
def test_value_subclassing_generates_default_initializer_based_on_annotations():
class Point(Value):
x: float
y: float
x = 4
y = 3.5
... | 17.810811 | 83 | 0.647951 | 97 | 659 | 4.154639 | 0.360825 | 0.052109 | 0.052109 | 0.114144 | 0.258065 | 0.258065 | 0.258065 | 0.258065 | 0.258065 | 0.258065 | 0 | 0.012346 | 0.262519 | 659 | 36 | 84 | 18.305556 | 0.816872 | 0 | 0 | 0.521739 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.217391 | 1 | 0.130435 | false | 0 | 0.043478 | 0 | 0.434783 | 0 | 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 |
425b41fdb89e16226d9cc165385d9a71757597cd | 376 | py | Python | sphenecoll/sphene/sphlinklist/models.py | pigletto/sct-communitytools | b54c07054ab76898e29954a337370d8678bc16ee | [
"BSD-3-Clause"
] | null | null | null | sphenecoll/sphene/sphlinklist/models.py | pigletto/sct-communitytools | b54c07054ab76898e29954a337370d8678bc16ee | [
"BSD-3-Clause"
] | null | null | null | sphenecoll/sphene/sphlinklist/models.py | pigletto/sct-communitytools | b54c07054ab76898e29954a337370d8678bc16ee | [
"BSD-3-Clause"
] | null | null | null | # link list models ..
from django.db import models
from sphene.sphboard.models import Category, Post
"""
class LinkListCategoryConfig(models.Manager):
category = models.ForeignKey( Category, unique = True )
class Admin:
pass
"""
class LinkListPostExtension(models.Model):
post = models.ForeignK... | 19.789474 | 59 | 0.704787 | 41 | 376 | 6.463415 | 0.536585 | 0.075472 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.194149 | 376 | 18 | 60 | 20.888889 | 0.874587 | 0.050532 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
425faa6f89f52d087a0ab8051f5d1bebcf72d946 | 5,356 | py | Python | taglets/modules/zsl_kg_lite/utils/core.py | BatsResearch/taglets | 0fa9ebeccc9177069aa09b2da84746b7532e3495 | [
"Apache-2.0"
] | 13 | 2021-11-10T13:17:10.000Z | 2022-03-30T22:56:52.000Z | taglets/modules/zsl_kg_lite/utils/core.py | BatsResearch/taglets | 0fa9ebeccc9177069aa09b2da84746b7532e3495 | [
"Apache-2.0"
] | 1 | 2021-11-10T16:01:47.000Z | 2021-11-10T16:01:47.000Z | taglets/modules/zsl_kg_lite/utils/core.py | BatsResearch/taglets | 0fa9ebeccc9177069aa09b2da84746b7532e3495 | [
"Apache-2.0"
] | 2 | 2022-02-14T22:40:29.000Z | 2022-02-27T04:27:48.000Z |
import os
import re
import random
import torch
import torch.nn.functional as F
import numpy as np
import scipy.sparse as sp
import pandas as pd
def pad_tensor(adj_nodes_list, mask=False):
"""Function pads the neighbourhood nodes before passing through the
aggregator.
Args:
adj_nodes_list (list... | 27.326531 | 102 | 0.631068 | 788 | 5,356 | 4.087563 | 0.232234 | 0.054641 | 0.037256 | 0.012108 | 0.166097 | 0.125737 | 0.072338 | 0.049053 | 0.049053 | 0.049053 | 0 | 0.005876 | 0.269231 | 5,356 | 195 | 103 | 27.466667 | 0.817067 | 0.283794 | 0 | 0.1 | 0 | 0 | 0.004385 | 0 | 0 | 0 | 0 | 0.010256 | 0 | 1 | 0.13 | false | 0 | 0.08 | 0.02 | 0.33 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
4262690d232b2adc258298508cbf46494c42df62 | 493 | py | Python | Controller Scripts/lightsCine.py | zandegran/Wifi_Dimmer-Arduino | df023a5ee1e527f1e8a555111f82d114d4e64a5f | [
"MIT"
] | 2 | 2017-02-20T18:58:09.000Z | 2017-03-28T18:14:39.000Z | Controller Scripts/lightsCine.py | zandegran/Wifi_Dimmer-Arduino | df023a5ee1e527f1e8a555111f82d114d4e64a5f | [
"MIT"
] | null | null | null | Controller Scripts/lightsCine.py | zandegran/Wifi_Dimmer-Arduino | df023a5ee1e527f1e8a555111f82d114d4e64a5f | [
"MIT"
] | null | null | null | # telnet program example
import socket, select, string, sys
#main function
if __name__ == "__main__":
host = "10.0.1.75"
port = 80
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.settimeout(2)
# connect to remote host
try :
s.connect((host, port))
except :... | 18.961538 | 57 | 0.565923 | 64 | 493 | 4.1875 | 0.625 | 0.089552 | 0.089552 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026786 | 0.318458 | 493 | 25 | 58 | 19.72 | 0.770833 | 0.117647 | 0 | 0.133333 | 0 | 0 | 0.141531 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.066667 | null | null | 0.133333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
426595a10d406c0cb9fccecb4d44a27914ba837f | 986 | py | Python | output/models/saxon_data/wild/wild066_xsd/wild066.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 1 | 2021-08-14T17:59:21.000Z | 2021-08-14T17:59:21.000Z | output/models/saxon_data/wild/wild066_xsd/wild066.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 4 | 2020-02-12T21:30:44.000Z | 2020-04-15T20:06:46.000Z | output/models/saxon_data/wild/wild066_xsd/wild066.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | null | null | null | from dataclasses import dataclass, field
from typing import Optional, Union
from xsdata.models.datatype import XmlDate, XmlTime
@dataclass
class E:
class Meta:
name = "e"
value: Optional[XmlDate] = field(
default=None,
metadata={
"required": True,
}
)
@datacl... | 18.603774 | 51 | 0.501014 | 86 | 986 | 5.732558 | 0.383721 | 0.097363 | 0.129817 | 0.194726 | 0.283976 | 0.227181 | 0.227181 | 0.227181 | 0.227181 | 0 | 0 | 0 | 0.375254 | 986 | 52 | 52 | 18.961538 | 0.800325 | 0 | 0 | 0.477273 | 0 | 0 | 0.10142 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.068182 | 0 | 0.295455 | 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 |
426e09adf193d4927c148d780759b1126299564d | 1,373 | py | Python | auto_script/dho_sim.py | ywx649999311/lsst_cadence | fe08fdedb8f45fab33effd40eff43626d81ef10a | [
"MIT"
] | null | null | null | auto_script/dho_sim.py | ywx649999311/lsst_cadence | fe08fdedb8f45fab33effd40eff43626d81ef10a | [
"MIT"
] | null | null | null | auto_script/dho_sim.py | ywx649999311/lsst_cadence | fe08fdedb8f45fab33effd40eff43626d81ef10a | [
"MIT"
] | null | null | null | """Code to generate full mock LCs."""
import numpy as np
import kali
import kali.carma
import pandas as pd
import sys
from joblib import Parallel, delayed
sys.path.insert(0, '/home/mount/lsst_cadence')
from lsstlc import * # derived LSST lightcurve sub-class
def genLC(params, save_dir):
"""Generating simulated l... | 28.020408 | 98 | 0.659869 | 206 | 1,373 | 4.31068 | 0.533981 | 0.023649 | 0.031532 | 0.024775 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025735 | 0.207575 | 1,373 | 48 | 99 | 28.604167 | 0.790441 | 0.27968 | 0 | 0 | 1 | 0 | 0.058639 | 0.025131 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.259259 | 0 | 0.37037 | 0 | 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 |
427265c95a887f13434457b202aeccabeefd8e23 | 1,201 | py | Python | aswiki/management/__init__.py | scanner/django-aswiki | 318908eeccc8da324846ac5ffc4d4a206f560521 | [
"BSD-3-Clause"
] | null | null | null | aswiki/management/__init__.py | scanner/django-aswiki | 318908eeccc8da324846ac5ffc4d4a206f560521 | [
"BSD-3-Clause"
] | 1 | 2020-09-25T05:40:38.000Z | 2020-09-28T05:41:27.000Z | aswiki/management/__init__.py | scanner/django-aswiki | 318908eeccc8da324846ac5ffc4d4a206f560521 | [
"BSD-3-Clause"
] | null | null | null | """
The management command suite for the aswiki app.
Very little happens here. Main purpose is to register some
notification types if you have the notification app installed.
"""
from django.db.models.signals import post_syncdb
from django.conf import settings
# If we are able to import the 'notification' module then... | 35.323529 | 76 | 0.585346 | 134 | 1,201 | 5.156716 | 0.567164 | 0.065123 | 0.049204 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.248127 | 1,201 | 33 | 77 | 36.393939 | 0.765227 | 0.189009 | 0 | 0 | 0 | 0 | 0.222741 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.230769 | null | null | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
4277b1b2de66381cc9f781593606f03491a857b7 | 389 | py | Python | plugins/redacted/migrations/0002_auto_20190219_0110.py | 2600box/harvest | 57264c15a3fba693b4b58d0b6d4fbf4bd5453bbd | [
"Apache-2.0"
] | 9 | 2019-03-26T14:50:00.000Z | 2020-11-10T16:44:08.000Z | plugins/redacted/migrations/0002_auto_20190219_0110.py | 2600box/harvest | 57264c15a3fba693b4b58d0b6d4fbf4bd5453bbd | [
"Apache-2.0"
] | 22 | 2019-03-02T23:16:13.000Z | 2022-02-27T10:36:36.000Z | plugins/redacted/migrations/0002_auto_20190219_0110.py | 2600box/harvest | 57264c15a3fba693b4b58d0b6d4fbf4bd5453bbd | [
"Apache-2.0"
] | 5 | 2019-04-24T00:51:30.000Z | 2020-11-06T18:31:49.000Z | # Generated by Django 2.1.7 on 2019-02-19 01:10
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('redacted', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='redactedclientconfig',
name='cookies... | 20.473684 | 48 | 0.601542 | 39 | 389 | 5.948718 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068345 | 0.285347 | 389 | 18 | 49 | 21.611111 | 0.766187 | 0.115681 | 0 | 0 | 1 | 0 | 0.137427 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
427fd5e2fbc91cc7bbe0007816e47a0a8b3973fa | 9,027 | py | Python | slack_utils.py | phermens-slalom/doughnut | 418ccdae0a0fdfeddccc71f78cc7be62945d79bb | [
"MIT"
] | null | null | null | slack_utils.py | phermens-slalom/doughnut | 418ccdae0a0fdfeddccc71f78cc7be62945d79bb | [
"MIT"
] | null | null | null | slack_utils.py | phermens-slalom/doughnut | 418ccdae0a0fdfeddccc71f78cc7be62945d79bb | [
"MIT"
] | null | null | null | import random
from concurrent.futures import ThreadPoolExecutor
from typing import List, Dict
from slack_sdk import WebClient
from slack_sdk.errors import SlackApiError
from slack_sdk.models.blocks import Block
from slack_sdk.web import SlackResponse
SLACK_USER = '@doughnut-bot'
def get_user_list(
channel_i... | 33.808989 | 115 | 0.588235 | 1,101 | 9,027 | 4.707539 | 0.19346 | 0.040517 | 0.017364 | 0.023153 | 0.353463 | 0.257187 | 0.232105 | 0.19564 | 0.122516 | 0.085472 | 0 | 0.006337 | 0.318267 | 9,027 | 266 | 116 | 33.93609 | 0.835879 | 0.046527 | 0 | 0.341176 | 0 | 0 | 0.194237 | 0 | 0 | 0 | 0 | 0.003759 | 0 | 0 | null | null | 0 | 0.041176 | null | null | 0.035294 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
4284a642e70011d1c092f21c5060a3631b4ceee3 | 7,717 | py | Python | delivery_django/delivery/migrations/0001_initial.py | huang0819/Django-Vue | d534aa04f47c30e9bab0bca40cc734b9395bfd2d | [
"MIT"
] | null | null | null | delivery_django/delivery/migrations/0001_initial.py | huang0819/Django-Vue | d534aa04f47c30e9bab0bca40cc734b9395bfd2d | [
"MIT"
] | null | null | null | delivery_django/delivery/migrations/0001_initial.py | huang0819/Django-Vue | d534aa04f47c30e9bab0bca40cc734b9395bfd2d | [
"MIT"
] | null | null | null | # Generated by Django 3.2.11 on 2022-01-05 06:44
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='AuthGroup',
fields=[
('id', models.BigAuto... | 38.393035 | 117 | 0.499935 | 629 | 7,717 | 5.949126 | 0.201908 | 0.096205 | 0.081774 | 0.109033 | 0.557189 | 0.361839 | 0.289685 | 0.276323 | 0.254409 | 0.230358 | 0 | 0.015475 | 0.363613 | 7,717 | 200 | 118 | 38.585 | 0.746487 | 0.005961 | 0 | 0.533679 | 1 | 0 | 0.133133 | 0.009258 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.005181 | 0.005181 | 0 | 0.025907 | 0 | 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 |
429900e406e6fa302bf9cb6fbb576e68b41b0c46 | 1,962 | py | Python | echop/tests/test_echop.py | chadbrewbaker/command_line_python | 937e44e7035d0b81a2b63ff286f697c402862188 | [
"MIT"
] | 1 | 2021-12-30T06:40:40.000Z | 2021-12-30T06:40:40.000Z | echop/tests/test_echop.py | chadbrewbaker/command_line_python | 937e44e7035d0b81a2b63ff286f697c402862188 | [
"MIT"
] | 1 | 2021-11-19T03:05:39.000Z | 2021-11-19T03:05:39.000Z | echop/tests/test_echop.py | chadbrewbaker/command_line_python | 937e44e7035d0b81a2b63ff286f697c402862188 | [
"MIT"
] | 1 | 2021-11-19T02:10:33.000Z | 2021-11-19T02:10:33.000Z | """ Tests for echop """
import os
from subprocess import run, getstatusoutput
from typing import List
PRG = './echop.py'
# --------------------------------------------------
def test_exists() -> None:
""" Program exists """
assert os.path.isfile(PRG)
# --------------------------------------------------
d... | 25.153846 | 71 | 0.46789 | 197 | 1,962 | 4.568528 | 0.335025 | 0.054444 | 0.066667 | 0.094444 | 0.365556 | 0.253333 | 0.226667 | 0.226667 | 0.104444 | 0.104444 | 0 | 0.00744 | 0.17788 | 1,962 | 77 | 72 | 25.480519 | 0.550527 | 0.336901 | 0 | 0 | 0 | 0 | 0.170712 | 0.090615 | 0 | 0 | 0 | 0 | 0.275862 | 1 | 0.275862 | false | 0 | 0.103448 | 0 | 0.37931 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4299f750d7dd890518b4af4fdfcc0307f118d159 | 897 | py | Python | standard_library/string_search.py | ariannasg/python3-essential-training | 9b52645f5ccb57d2bda5d5f4a3053681a026450a | [
"MIT"
] | 1 | 2020-06-02T08:37:41.000Z | 2020-06-02T08:37:41.000Z | standard_library/string_search.py | ariannasg/python3-training | 9b52645f5ccb57d2bda5d5f4a3053681a026450a | [
"MIT"
] | null | null | null | standard_library/string_search.py | ariannasg/python3-training | 9b52645f5ccb57d2bda5d5f4a3053681a026450a | [
"MIT"
] | null | null | null | #!usr/bin/env python3
# Use standard library functions to search strings for content
sample_str = "The quick brown fox jumps over the lazy dog"
# startsWith and endsWith functions
print(sample_str.startswith("The"))
print(sample_str.startswith("the"))
print(sample_str.endswith("dog"))
# the find function starts sea... | 23 | 74 | 0.752508 | 144 | 897 | 4.611111 | 0.479167 | 0.121988 | 0.126506 | 0.076807 | 0.277108 | 0.186747 | 0.186747 | 0.10241 | 0 | 0 | 0 | 0.007895 | 0.152731 | 897 | 38 | 75 | 23.605263 | 0.865789 | 0.562988 | 0 | 0 | 0 | 0 | 0.197861 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.8 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
429b04238afd54c3ec34fdd0192165ee695ddebd | 1,380 | py | Python | ndfinance/strategies/__init__.py | gomtinQQ/NDFinance | 522bf0486e5f5337c522d0e34b088f386c7c3290 | [
"MIT"
] | 35 | 2020-09-26T16:31:45.000Z | 2022-01-01T12:12:21.000Z | ndfinance/strategies/__init__.py | gomtinQQ/NDFinance | 522bf0486e5f5337c522d0e34b088f386c7c3290 | [
"MIT"
] | 1 | 2020-09-27T08:54:23.000Z | 2020-09-27T08:54:23.000Z | ndfinance/strategies/__init__.py | gomtinQQ/NDFinance | 522bf0486e5f5337c522d0e34b088f386c7c3290 | [
"MIT"
] | 8 | 2020-10-06T23:51:22.000Z | 2022-02-16T12:11:10.000Z | from ndfinance.core import BacktestEngine
from ndfinance.strategies.utils import *
class Strategy:
def __init__(self):
pass
def _logic(self):
raise NotImplementedError
def logic(self):
self.universe = self._universe()
self._logic()
def init_universe(self):
se... | 30 | 83 | 0.67971 | 142 | 1,380 | 6.366197 | 0.246479 | 0.066372 | 0.039823 | 0.06969 | 0.272124 | 0.272124 | 0 | 0 | 0 | 0 | 0 | 0 | 0.231159 | 1,380 | 46 | 84 | 30 | 0.852026 | 0 | 0 | 0.235294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.264706 | false | 0.029412 | 0.058824 | 0 | 0.441176 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
429e12972124595a4b48ed021c5e910462235106 | 687 | py | Python | setup.py | abhishekroushan/mastermind | 32401d0382cfc4a309aaf09224135ec7718c8666 | [
"Apache-2.0"
] | null | null | null | setup.py | abhishekroushan/mastermind | 32401d0382cfc4a309aaf09224135ec7718c8666 | [
"Apache-2.0"
] | null | null | null | setup.py | abhishekroushan/mastermind | 32401d0382cfc4a309aaf09224135ec7718c8666 | [
"Apache-2.0"
] | null | null | null | """
Author: Abhishek Roushan abhishek.roushan12@gmail.com
Description:
Assumption: This file is only accessible for the codemaker!
The following file contains the implementation of setting up the target for the codemaker
"""
import random
from board import Board
class Setup(object):
def __i... | 28.625 | 97 | 0.627365 | 89 | 687 | 4.797753 | 0.539326 | 0.140515 | 0.149883 | 0.206089 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004008 | 0.273654 | 687 | 23 | 98 | 29.869565 | 0.851703 | 0.394469 | 0 | 0 | 0 | 0 | 0.010204 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.153846 | 0 | 0.461538 | 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 |
42a3b582e2afb62086f76adbac41afc78a96f8a6 | 1,868 | py | Python | tests/test_generated_identities.py | c-goosen/za-identity-number | 94c8c85a3b7f2fd55f38f4d59e95d82035255ca3 | [
"MIT"
] | 1 | 2020-05-31T17:48:04.000Z | 2020-05-31T17:48:04.000Z | tests/test_generated_identities.py | c-goosen/za-identity-number | 94c8c85a3b7f2fd55f38f4d59e95d82035255ca3 | [
"MIT"
] | null | null | null | tests/test_generated_identities.py | c-goosen/za-identity-number | 94c8c85a3b7f2fd55f38f4d59e95d82035255ca3 | [
"MIT"
] | 1 | 2020-04-06T07:56:50.000Z | 2020-04-06T07:56:50.000Z | from za_id_number.za_id_number import (
SouthAfricanIdentityValidate,
SouthAfricanIdentityGenerate,
generate_random_id,
)
from za_id_number.constants import Gender, CitizenshipClass
import pytest
def test_generate_random_id():
test_id = generate_random_id()
assert SouthAfricanIdentityValidate(test... | 33.357143 | 85 | 0.752141 | 207 | 1,868 | 6.454106 | 0.178744 | 0.115269 | 0.146707 | 0.11976 | 0.447605 | 0.39521 | 0.338323 | 0.25 | 0.25 | 0.25 | 0 | 0.0038 | 0.154711 | 1,868 | 55 | 86 | 33.963636 | 0.842305 | 0 | 0 | 0.319149 | 1 | 0 | 0.034797 | 0 | 0 | 0 | 0 | 0 | 0.255319 | 1 | 0.085106 | false | 0 | 0.06383 | 0 | 0.148936 | 0 | 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 |
42a6ec90703c8d1b852e297f3ed1be7f3d4152d7 | 45,075 | py | Python | mvpa2/measures/base.py | arnaudsj/PyMVPA | 3e58b03d843089b1f631774d362a390487411ac6 | [
"MIT"
] | 1 | 2015-11-05T13:58:09.000Z | 2015-11-05T13:58:09.000Z | mvpa2/measures/base.py | arnaudsj/PyMVPA | 3e58b03d843089b1f631774d362a390487411ac6 | [
"MIT"
] | null | null | null | mvpa2/measures/base.py | arnaudsj/PyMVPA | 3e58b03d843089b1f631774d362a390487411ac6 | [
"MIT"
] | 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:
### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ##
#
# See COPYING file distributed along with the PyMVPA package for the
# copyright and license terms.
#
### ### ### ### ###... | 37.973884 | 88 | 0.605679 | 5,114 | 45,075 | 5.185178 | 0.161517 | 0.006336 | 0.010861 | 0.010786 | 0.232794 | 0.182638 | 0.146548 | 0.116793 | 0.094392 | 0.085304 | 0 | 0.002751 | 0.314432 | 45,075 | 1,186 | 89 | 38.005902 | 0.855349 | 0.147687 | 0 | 0.273874 | 0 | 0 | 0.085652 | 0.001033 | 0 | 0 | 0 | 0.005059 | 0.001802 | 0 | null | null | 0.001802 | 0.032432 | 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 |
42abed76d914b603795f3f06430c6a699de10983 | 533 | py | Python | tests/unit/remote/ssh/test_pool.py | alustenberg/dvc | 2e9fac5fb3f5882904f8005209feabe0dd3d5003 | [
"Apache-2.0"
] | 1 | 2020-08-01T08:31:18.000Z | 2020-08-01T08:31:18.000Z | tests/unit/remote/ssh/test_pool.py | alustenberg/dvc | 2e9fac5fb3f5882904f8005209feabe0dd3d5003 | [
"Apache-2.0"
] | 2 | 2020-02-10T03:57:58.000Z | 2020-10-12T00:33:01.000Z | tests/unit/remote/ssh/test_pool.py | alustenberg/dvc | 2e9fac5fb3f5882904f8005209feabe0dd3d5003 | [
"Apache-2.0"
] | 1 | 2020-11-28T11:47:48.000Z | 2020-11-28T11:47:48.000Z | import pytest
from dvc.tree.pool import get_connection
from dvc.tree.ssh.connection import SSHConnection
from tests.remotes.ssh import TEST_SSH_KEY_PATH, TEST_SSH_USER
def test_doesnt_swallow_errors(ssh_server):
class MyError(Exception):
pass
with pytest.raises(MyError):
with get_connection(... | 25.380952 | 62 | 0.677298 | 67 | 533 | 5.104478 | 0.477612 | 0.081871 | 0.064327 | 0.081871 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.262664 | 533 | 20 | 63 | 26.65 | 0.870229 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0.0625 | 0.25 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
42afa3246fb9b00235ee8ef3b7faecd0064d1491 | 11,843 | py | Python | test/make_sln.py | j123123/llilc | 9d6a522deb6b0769e449f27a087a9d3a7ab2a255 | [
"MIT"
] | 1,712 | 2015-04-13T22:16:59.000Z | 2022-03-17T18:44:42.000Z | test/make_sln.py | j123123/llilc | 9d6a522deb6b0769e449f27a087a9d3a7ab2a255 | [
"MIT"
] | 770 | 2015-04-13T22:10:20.000Z | 2022-03-15T01:30:06.000Z | test/make_sln.py | j123123/llilc | 9d6a522deb6b0769e449f27a087a9d3a7ab2a255 | [
"MIT"
] | 206 | 2015-04-13T22:17:19.000Z | 2022-02-19T12:30:19.000Z | #!/usr/bin/env python
#
# title : make_sln.py
# description : Make a Visual Studio solution to debug a managed
# application using LLILC jit.
#
# This script has been tested running on both Python 2.7 and Python 3.4.
#
# usage: make_sln.py [-h] [-d {summary,verbose}] [-x [EXTRA [EXTRA ... | 39.215232 | 120 | 0.599341 | 1,427 | 11,843 | 4.869657 | 0.249474 | 0.028781 | 0.02691 | 0.01583 | 0.286804 | 0.26493 | 0.211397 | 0.19787 | 0.149662 | 0.149662 | 0 | 0.018652 | 0.284725 | 11,843 | 301 | 121 | 39.345515 | 0.801558 | 0.238031 | 0 | 0.099502 | 0 | 0.004975 | 0.368446 | 0.06466 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.004975 | 0.039801 | null | null | 0.00995 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
35ebd1b81f72bb199ac433419b1744b69a14fee8 | 1,870 | py | Python | taln2016/icsisumm-primary-sys34_v1/nltk/nltk-0.9.2/nltk/detect.py | hectormartinez/rougexstem | 32da9eab253cb88fc1882e59026e8b5b40900a25 | [
"Apache-2.0"
] | null | null | null | taln2016/icsisumm-primary-sys34_v1/nltk/nltk-0.9.2/nltk/detect.py | hectormartinez/rougexstem | 32da9eab253cb88fc1882e59026e8b5b40900a25 | [
"Apache-2.0"
] | null | null | null | taln2016/icsisumm-primary-sys34_v1/nltk/nltk-0.9.2/nltk/detect.py | hectormartinez/rougexstem | 32da9eab253cb88fc1882e59026e8b5b40900a25 | [
"Apache-2.0"
] | null | null | null | # Natural Language Toolkit: Detect Features
#
# Copyright (C) 2001-2008 University of Pennsylvania
# Author: Edward Loper <edloper@gradient.cis.upenn.edu>
# Steven Bird <sb@csse.unimelb.edu.au> (porting)
# URL: <http://nltk.sf.net>
# For license information, see LICENSE.TXT
"""
Functions for detecting a token'... | 28.333333 | 78 | 0.632086 | 224 | 1,870 | 5.223214 | 0.575893 | 0.020513 | 0.013675 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007368 | 0.201604 | 1,870 | 65 | 79 | 28.769231 | 0.776289 | 0.213369 | 0 | 0 | 0 | 0 | 0.042188 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.125 | null | null | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
35ec86a791ffc56118a5a73b4744a935dfde329c | 870 | py | Python | tests/test_text.py | Kairu-Madigan/sakurai-lib | 5ab18c60e9e0876ba1bb8b3c7dc634a913ed7615 | [
"MIT"
] | null | null | null | tests/test_text.py | Kairu-Madigan/sakurai-lib | 5ab18c60e9e0876ba1bb8b3c7dc634a913ed7615 | [
"MIT"
] | null | null | null | tests/test_text.py | Kairu-Madigan/sakurai-lib | 5ab18c60e9e0876ba1bb8b3c7dc634a913ed7615 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding:utf-8 -*-
# @Author : Kyle
# @License : MIT
# @Contact : kairu_madigan@yahoo.co.jp
# @Date : 2018/08/05 12:58
import unittest
from sakurailib import text as text_lib
class EastLiteralWidthTestCase(unittest.TestCase):
def test_get_east_asian_width_count_1(self):
... | 27.1875 | 58 | 0.656322 | 117 | 870 | 4.581197 | 0.452991 | 0.078358 | 0.134328 | 0.190299 | 0.598881 | 0.531716 | 0.531716 | 0.477612 | 0.477612 | 0.477612 | 0 | 0.034954 | 0.243678 | 870 | 31 | 59 | 28.064516 | 0.779635 | 0.158621 | 0 | 0.333333 | 0 | 0 | 0.034435 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.166667 | false | 0 | 0.111111 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
35f2b6a3d7e4fbb86d01d65657dfa75fda93e534 | 3,701 | py | Python | tests/unit-testing/cli/interactive_commands/test_show_command.py | fanfanfeng/Chatette | dc88ab195876c6d3ed2e02c2e0005f47bee5ff26 | [
"MIT"
] | null | null | null | tests/unit-testing/cli/interactive_commands/test_show_command.py | fanfanfeng/Chatette | dc88ab195876c6d3ed2e02c2e0005f47bee5ff26 | [
"MIT"
] | null | null | null | tests/unit-testing/cli/interactive_commands/test_show_command.py | fanfanfeng/Chatette | dc88ab195876c6d3ed2e02c2e0005f47bee5ff26 | [
"MIT"
] | null | null | null | """
Test module
Tests the functionalities contained in module
`chatette_qiu.cli.interactive_commands.show_command`.
"""
import pytest
from chatette_qiu.cli.interactive_commands.command_strategy import CommandStrategy
from chatette_qiu.cli.interactive_commands.show_command import ShowCommand
from test_command_strateg... | 36.284314 | 85 | 0.674683 | 477 | 3,701 | 5.161426 | 0.197065 | 0.081235 | 0.105605 | 0.092608 | 0.723802 | 0.600325 | 0.528838 | 0.468725 | 0.295695 | 0.257514 | 0 | 0.004307 | 0.184545 | 3,701 | 101 | 86 | 36.643564 | 0.811465 | 0.029992 | 0 | 0.384615 | 0 | 0 | 0.299553 | 0.061977 | 0 | 0 | 0 | 0 | 0.410256 | 1 | 0.064103 | false | 0 | 0.051282 | 0 | 0.115385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 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 |
35f5441ee28710a79d3a95cd1ee9a8cc163f9cac | 354 | py | Python | misc/find-cids.py | S-YOU/quicly | 82f4d97cb00086b517673cf5faaad102e56321f1 | [
"MIT"
] | 8,657 | 2015-01-01T00:35:54.000Z | 2022-03-31T08:32:33.000Z | misc/find-cids.py | S-YOU/quicly | 82f4d97cb00086b517673cf5faaad102e56321f1 | [
"MIT"
] | 2,228 | 2015-01-01T17:42:01.000Z | 2022-03-31T12:32:04.000Z | misc/find-cids.py | S-YOU/quicly | 82f4d97cb00086b517673cf5faaad102e56321f1 | [
"MIT"
] | 911 | 2015-01-01T02:27:36.000Z | 2022-03-25T08:39:46.000Z | #!/usr/bin/env python
import sys
import json
if len(sys.argv) != 2:
print "Usage: find-cids.py inTrace.jsonl"
sys.exit(1)
cids = {}
f = open(sys.argv[1], 'r')
for line in f:
event = json.loads(line)
if event["type"] != "" and event["type"] == "accept":
cids[event["conn"]] = None
print "Connec... | 19.666667 | 57 | 0.596045 | 56 | 354 | 3.767857 | 0.660714 | 0.066351 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010638 | 0.20339 | 354 | 17 | 58 | 20.823529 | 0.737589 | 0.056497 | 0 | 0 | 0 | 0 | 0.201201 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.153846 | null | null | 0.153846 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
35f5a2743c21107f7117d653a06bbd5dce736c55 | 1,061 | py | Python | Lab2_TuplesLists/_2_6_list_si_aparitii.py | marianfx/python-labs | 7066db410ad19cababb7b66745641e65a28ccd98 | [
"MIT"
] | null | null | null | Lab2_TuplesLists/_2_6_list_si_aparitii.py | marianfx/python-labs | 7066db410ad19cababb7b66745641e65a28ccd98 | [
"MIT"
] | null | null | null | Lab2_TuplesLists/_2_6_list_si_aparitii.py | marianfx/python-labs | 7066db410ad19cababb7b66745641e65a28ccd98 | [
"MIT"
] | null | null | null |
from _2_4_doualiste import list_all_elements
from _2_4_doualiste import list_reunion
def x_in_lists(*args):
"""Sa se scrie o functie care primeste ca parametru
un numar variabil de liste si un numar intreg x.
Sa se returneze o lista care sa contina elementele care apar de exact x ori
in listele prim... | 29.472222 | 79 | 0.625825 | 177 | 1,061 | 3.570621 | 0.361582 | 0.10443 | 0.014241 | 0.047468 | 0.177215 | 0.177215 | 0.047468 | 0.047468 | 0.047468 | 0.047468 | 0 | 0.054987 | 0.262959 | 1,061 | 35 | 80 | 30.314286 | 0.753197 | 0.341188 | 0 | 0 | 0 | 0 | 0.0181 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0.052632 | 0.105263 | 0 | 0.210526 | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
35f7de8e67eee82123e111f13c724b7548b67bc3 | 1,973 | py | Python | pyramids/rules/property_inheritance.py | leomauro/pyramids | 4f7a8e97e13a5ee0b037dc528e5ba72f31ac36e5 | [
"MIT"
] | 9 | 2015-09-04T22:33:40.000Z | 2019-04-11T14:05:11.000Z | pyramids/rules/property_inheritance.py | leomauro/pyramids | 4f7a8e97e13a5ee0b037dc528e5ba72f31ac36e5 | [
"MIT"
] | 2 | 2015-09-04T22:31:44.000Z | 2017-07-29T04:11:53.000Z | pyramids/rules/property_inheritance.py | hosford42/pyramids | 4f7a8e97e13a5ee0b037dc528e5ba72f31ac36e5 | [
"MIT"
] | 3 | 2015-10-14T12:41:26.000Z | 2022-01-08T19:43:47.000Z | from typing import Iterable, Optional, Tuple, FrozenSet
from pyramids.categorization import make_property_set, Category, Property
class PropertyInheritanceRule:
def __init__(self, category: Category, positive_additions: Iterable[Property],
negative_additions: Iterable[Property]):
self._... | 41.104167 | 91 | 0.650279 | 191 | 1,973 | 6.397906 | 0.198953 | 0.10802 | 0.10311 | 0.03928 | 0.175123 | 0.065466 | 0 | 0 | 0 | 0 | 0 | 0 | 0.251901 | 1,973 | 47 | 92 | 41.978723 | 0.827913 | 0 | 0 | 0.081081 | 0 | 0 | 0.006589 | 0 | 0.054054 | 0 | 0 | 0 | 0 | 1 | 0.189189 | false | 0 | 0.054054 | 0.108108 | 0.459459 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
35f9e5c555b28e21515bc251241e936b63d8e4b5 | 1,275 | py | Python | setup.py | EuroPOND/deformetrica | 29cb3a4ecd40d6a19b3ee2a1c5827c4ebab54062 | [
"BSD-3-Clause"
] | 1 | 2020-10-27T07:30:56.000Z | 2020-10-27T07:30:56.000Z | setup.py | EuroPOND/deformetrica | 29cb3a4ecd40d6a19b3ee2a1c5827c4ebab54062 | [
"BSD-3-Clause"
] | null | null | null | setup.py | EuroPOND/deformetrica | 29cb3a4ecd40d6a19b3ee2a1c5827c4ebab54062 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
from glob import glob
from os.path import splitext, basename
from setuptools import setup, find_packages
try: # for pip >= 10
from pip._internal.req import parse_requirements
except ImportError: # for pip <= 9.0.3
from pip.req import parse_requirements
setup... | 29.651163 | 81 | 0.649412 | 147 | 1,275 | 5.537415 | 0.612245 | 0.070025 | 0.092138 | 0.063882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014881 | 0.209412 | 1,275 | 42 | 82 | 30.357143 | 0.792659 | 0.058824 | 0 | 0 | 0 | 0 | 0.364548 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.171429 | 0 | 0.171429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
35ff351294b5734925750f39d0aaa0a1d7973c6a | 2,752 | py | Python | ccnpy/flic/HashGroup.py | mmosko/ccnpy | 20d982e2e3845818fde7f3facdc8cbcdff323dbb | [
"Apache-2.0"
] | 1 | 2020-12-23T14:17:25.000Z | 2020-12-23T14:17:25.000Z | ccnpy/flic/HashGroup.py | mmosko/ccnpy | 20d982e2e3845818fde7f3facdc8cbcdff323dbb | [
"Apache-2.0"
] | 1 | 2019-07-01T18:19:05.000Z | 2019-07-02T05:35:52.000Z | ccnpy/flic/HashGroup.py | mmosko/ccnpy | 20d982e2e3845818fde7f3facdc8cbcdff323dbb | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Marc Mosko
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writ... | 30.921348 | 87 | 0.638808 | 349 | 2,752 | 4.833811 | 0.323782 | 0.085359 | 0.03853 | 0.037344 | 0.144635 | 0.033195 | 0 | 0 | 0 | 0 | 0 | 0.006941 | 0.267078 | 2,752 | 88 | 88 | 31.272727 | 0.82945 | 0.238009 | 0 | 0.042553 | 0 | 0 | 0.068047 | 0 | 0 | 0 | 0.002959 | 0 | 0.042553 | 1 | 0.191489 | false | 0 | 0.042553 | 0.12766 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
c40659ecdff3cdb05894aeae1ba629a70956316a | 744 | py | Python | tests/conftest.py | DavidCurtiss/niflexlogger-automation-python | 1737f199fae3b138a741dc830c0fa18de9b4fda0 | [
"MIT"
] | null | null | null | tests/conftest.py | DavidCurtiss/niflexlogger-automation-python | 1737f199fae3b138a741dc830c0fa18de9b4fda0 | [
"MIT"
] | null | null | null | tests/conftest.py | DavidCurtiss/niflexlogger-automation-python | 1737f199fae3b138a741dc830c0fa18de9b4fda0 | [
"MIT"
] | null | null | null | from typing import Iterator
import pytest
from flexlogger.automation import Application, FlexLoggerError
# This needs to be at class scope because of the order pytest runs tests in.
# It runs a class at a time, so we can't reuse this across classes in case
# tests have run that need to call utils.kill_all_open_flexl... | 32.347826 | 91 | 0.731183 | 108 | 744 | 4.981481 | 0.638889 | 0.033457 | 0.04461 | 0.05948 | 0.100372 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.205645 | 744 | 22 | 92 | 33.818182 | 0.910321 | 0.563172 | 0 | 0 | 0 | 0 | 0.016287 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0.090909 | 0.272727 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c40c11f13bda15c513dabf27bffa4e99522b1ac2 | 1,618 | py | Python | tests/src/test_utils.py | br-monteiro/finder-py | c7a7ad9f6f33930a19f8066784aaa50910b4c951 | [
"MIT"
] | 1 | 2020-07-30T15:51:31.000Z | 2020-07-30T15:51:31.000Z | tests/src/test_utils.py | br-monteiro/finder-py | c7a7ad9f6f33930a19f8066784aaa50910b4c951 | [
"MIT"
] | null | null | null | tests/src/test_utils.py | br-monteiro/finder-py | c7a7ad9f6f33930a19f8066784aaa50910b4c951 | [
"MIT"
] | null | null | null | import unittest
import src.utils as utils
class TestUtils(unittest.TestCase):
def test_parse_int(self):
self.assertEqual(2, utils.parse_int("2"))
self.assertEqual(2, utils.parse_int("02"))
self.assertEqual(-2, utils.parse_int("-2"))
self.assertEqual(0, utils.parse_int("--2"))
... | 37.627907 | 67 | 0.653894 | 211 | 1,618 | 4.819905 | 0.203791 | 0.19174 | 0.115044 | 0.117994 | 0.442478 | 0.390364 | 0.280236 | 0.221239 | 0.221239 | 0.161259 | 0 | 0.012094 | 0.182324 | 1,618 | 42 | 68 | 38.52381 | 0.756614 | 0 | 0 | 0 | 0 | 0 | 0.065513 | 0 | 0 | 0 | 0 | 0 | 0.735294 | 1 | 0.117647 | false | 0 | 0.058824 | 0 | 0.205882 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 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 |
c4146a607c4d3f2fe165fc00dd1c4e23037372fb | 316 | py | Python | lectures/slides_tex/example_materials_api.py | materialsvirtuallab/nano281 | d527c5049aab3da99237cbff0cc749640b2c9c06 | [
"BSD-3-Clause"
] | 38 | 2019-12-23T13:14:53.000Z | 2022-01-25T23:59:33.000Z | lectures/slides_tex/example_materials_api.py | materialsvirtuallab/nano281 | d527c5049aab3da99237cbff0cc749640b2c9c06 | [
"BSD-3-Clause"
] | null | null | null | lectures/slides_tex/example_materials_api.py | materialsvirtuallab/nano281 | d527c5049aab3da99237cbff0cc749640b2c9c06 | [
"BSD-3-Clause"
] | 18 | 2020-02-10T20:43:39.000Z | 2022-01-21T13:45:36.000Z | from pymatgen.ext.matproj import MPRester
# Change "<APIKEY>" to the API key obtained from MP.
mpr = MPRester("<APIKEY>")
data = mpr.query(criteria={"pretty_formula": "Al2O3"},
properties=["final_energy", "band_gap"])
print(data)
import pandas as pd
df = pd.DataFrame(data) # Convert to DataFrame | 39.5 | 57 | 0.693038 | 43 | 316 | 5.023256 | 0.767442 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007634 | 0.170886 | 316 | 8 | 58 | 39.5 | 0.816794 | 0.224684 | 0 | 0 | 0 | 0 | 0.193416 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c41ecd84f33aaa186d7b0151ea712b921f10f9ff | 3,629 | py | Python | parameters/subscription/case_2/subscription_params.py | obezludko/Subscription | beecd902459d47392d8113a67fa2108c85f66581 | [
"MIT"
] | null | null | null | parameters/subscription/case_2/subscription_params.py | obezludko/Subscription | beecd902459d47392d8113a67fa2108c85f66581 | [
"MIT"
] | null | null | null | parameters/subscription/case_2/subscription_params.py | obezludko/Subscription | beecd902459d47392d8113a67fa2108c85f66581 | [
"MIT"
] | null | null | null | from click_sub.click import parse_url_and_append_click
"""Case presents not valid parameters for creating subscription.
After test running subscriptions won't be created"""
used_click_for_subscription = parse_url_and_append_click()
case_2_first_subscription_params = {'partner': 'test',
... | 57.603175 | 137 | 0.495729 | 302 | 3,629 | 5.503311 | 0.307947 | 0.113718 | 0.151625 | 0.303249 | 0.578821 | 0.482551 | 0.451264 | 0.315884 | 0.231047 | 0.231047 | 0 | 0.028749 | 0.42491 | 3,629 | 62 | 138 | 58.532258 | 0.767609 | 0.088179 | 0 | 0.244444 | 0 | 0 | 0.179245 | 0.038365 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.022222 | 0 | 0.022222 | 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 |
c422fa54f0e096a9eb897dbc1f1b1c3e098b2def | 3,159 | py | Python | beginvegan_app/products/models.py | jisuhan3201/beginvagan-app | 90d5b3e804677a73f8aeae58201f2064b4461324 | [
"MIT"
] | null | null | null | beginvegan_app/products/models.py | jisuhan3201/beginvagan-app | 90d5b3e804677a73f8aeae58201f2064b4461324 | [
"MIT"
] | null | null | null | beginvegan_app/products/models.py | jisuhan3201/beginvagan-app | 90d5b3e804677a73f8aeae58201f2064b4461324 | [
"MIT"
] | null | null | null | from django.db import models
from beginvegan_app.materials import models as material_models
from django.utils.html import format_html
# Create your models here.
class TimeStampedModel(models.Model):
created_at = models.DateTimeField(auto_now_add=True, null=True)
updated_at = models.DateTimeField(auto_now=True... | 33.252632 | 130 | 0.725546 | 380 | 3,159 | 5.797368 | 0.197368 | 0.05084 | 0.053109 | 0.069451 | 0.692692 | 0.666364 | 0.657286 | 0.576941 | 0.576941 | 0.480708 | 0 | 0.005654 | 0.160177 | 3,159 | 94 | 131 | 33.606383 | 0.824727 | 0.139918 | 0 | 0.372549 | 0 | 0 | 0.084595 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.098039 | false | 0 | 0.058824 | 0.098039 | 0.862745 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c423202807934685b1378d26db260b21fe75a289 | 302 | py | Python | test/unit/encryption/test_user_model.py | polowis/Pandoru_template | 75dfd06c5e6885410484a2d5082cf9d54d3b7eba | [
"MIT"
] | 4 | 2020-03-19T11:38:11.000Z | 2022-03-06T23:31:50.000Z | test/unit/encryption/test_user_model.py | polowis/Pandoru_template | 75dfd06c5e6885410484a2d5082cf9d54d3b7eba | [
"MIT"
] | 1 | 2022-02-18T22:53:44.000Z | 2022-02-18T22:53:44.000Z | test/unit/encryption/test_user_model.py | polowis/Pandoru_template | 75dfd06c5e6885410484a2d5082cf9d54d3b7eba | [
"MIT"
] | null | null | null | from app.model.user import User
import unittest
class UserTest(unittest.TestCase):
def test_password(self):
user = User()
user.username ="polowis"
user.email=' exmaple@gmail.com'
user.password = 'irunaonlinepolowis'
if __name__ == '__main__':
unittest.main()
| 23.230769 | 44 | 0.662252 | 34 | 302 | 5.617647 | 0.676471 | 0.104712 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.225166 | 302 | 12 | 45 | 25.166667 | 0.816239 | 0 | 0 | 0 | 0 | 0 | 0.168874 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.2 | 0.2 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
c424338391ffba073009dbb924e0d3f27979fbef | 3,016 | py | Python | netexec/devicetypes/blank.py | dogoncouch/netexec | 3a0d675dc65058e83aa215536363054a8b9b4286 | [
"MIT"
] | null | null | null | netexec/devicetypes/blank.py | dogoncouch/netexec | 3a0d675dc65058e83aa215536363054a8b9b4286 | [
"MIT"
] | null | null | null | netexec/devicetypes/blank.py | dogoncouch/netexec | 3a0d675dc65058e83aa215536363054a8b9b4286 | [
"MIT"
] | null | null | null | # MIT License
#
# Copyright (c) 2020 Dan Persons <dpersonsdev@gmail.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to ... | 43.710145 | 81 | 0.698939 | 408 | 3,016 | 5.156863 | 0.482843 | 0.041825 | 0.012357 | 0.01711 | 0.021863 | 0.021863 | 0 | 0 | 0 | 0 | 0 | 0.002581 | 0.229111 | 3,016 | 68 | 82 | 44.352941 | 0.902366 | 0.691645 | 0 | 0 | 0 | 0 | 0.054983 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0.15 | 0.1 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
c42749985025ffbfacb3b1eba64896a6214be8cc | 1,820 | py | Python | manage.py | itkpi/events-storage | 69dfdd11ce7ce28abb0df1d5707db65ecc5ad4f8 | [
"Apache-2.0"
] | 1 | 2016-01-02T21:18:56.000Z | 2016-01-02T21:18:56.000Z | manage.py | itkpi/events-storage | 69dfdd11ce7ce28abb0df1d5707db65ecc5ad4f8 | [
"Apache-2.0"
] | null | null | null | manage.py | itkpi/events-storage | 69dfdd11ce7ce28abb0df1d5707db65ecc5ad4f8 | [
"Apache-2.0"
] | null | null | null | import asyncio
import uuid
from aio_manager import Manager, Command
from aio_manager.commands.ext import sqlalchemy
from events_service import settings
from events_service.app import build_application
from events_service.models import Base, EventsProvider
from utils.itkpiloader import ImportEvents
class AddProvider(C... | 33.090909 | 86 | 0.606044 | 197 | 1,820 | 5.365482 | 0.380711 | 0.060549 | 0.04825 | 0.037843 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000782 | 0.297253 | 1,820 | 54 | 87 | 33.703704 | 0.825645 | 0.02967 | 0 | 0 | 0 | 0 | 0.064571 | 0 | 0 | 0 | 0 | 0.018519 | 0 | 1 | 0.097561 | false | 0.02439 | 0.219512 | 0 | 0.341463 | 0.02439 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
c4292c9e58daced863e1cdd2d2c094b70f0183df | 1,982 | py | Python | internals/simple-segment/example.py | ryucc/CS766_FINAL | 44df792f6ea0da28109a847d3bb11c5160426f61 | [
"MIT"
] | null | null | null | internals/simple-segment/example.py | ryucc/CS766_FINAL | 44df792f6ea0da28109a847d3bb11c5160426f61 | [
"MIT"
] | null | null | null | internals/simple-segment/example.py | ryucc/CS766_FINAL | 44df792f6ea0da28109a847d3bb11c5160426f61 | [
"MIT"
] | null | null | null | from matplotlib.pylab import gca, figure, plot, subplot, title, xlabel, ylabel, xlim,show
from matplotlib.lines import Line2D
import segment
import fit
def draw_plot(data,plot_title):
plot(range(len(data)),data,alpha=0.8,color='red')
title(plot_title)
xlabel("Samples")
ylabel("Signal")
xlim((0,len(... | 27.150685 | 95 | 0.766902 | 272 | 1,982 | 5.466912 | 0.268382 | 0.03766 | 0.05649 | 0.084734 | 0.677202 | 0.579018 | 0.27774 | 0.27774 | 0.27774 | 0.27774 | 0 | 0.014798 | 0.113522 | 1,982 | 72 | 96 | 27.527778 | 0.831531 | 0.015136 | 0 | 0 | 0 | 0 | 0.090395 | 0.036158 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.16 | null | null | 0.08 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c42bd07d30b3b5f758019215fde850bef42a672b | 2,810 | py | Python | qaz_modules/tools.py | samueljsb/qaz | 31299e0fd64adaa7ce9e17f6a84d7880a16c74d7 | [
"MIT"
] | null | null | null | qaz_modules/tools.py | samueljsb/qaz | 31299e0fd64adaa7ce9e17f6a84d7880a16c74d7 | [
"MIT"
] | 27 | 2020-07-01T00:03:20.000Z | 2022-03-11T19:22:29.000Z | qaz_modules/tools.py | samueljsb/qaz | 31299e0fd64adaa7ce9e17f6a84d7880a16c74d7 | [
"MIT"
] | null | null | null | from typing import Dict, List
from qaz.managers import brew, npm
from qaz.modules.base import Module
class Bat(Module):
name = "bat"
# Configuration files
zshrc_file = "bat.zsh"
symlinks: Dict[str, str] = {}
# Other
vscode_extensions: List[str] = []
@classmethod
def install_action(... | 19.513889 | 63 | 0.639858 | 330 | 2,810 | 5.236364 | 0.163636 | 0.113426 | 0.12963 | 0.138889 | 0.697338 | 0.685185 | 0.685185 | 0.685185 | 0.663194 | 0.61169 | 0 | 0 | 0.246263 | 2,810 | 143 | 64 | 19.65035 | 0.815864 | 0.08968 | 0 | 0.7 | 0 | 0 | 0.063366 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.175 | false | 0 | 0.0375 | 0 | 0.65 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c43356f2fd3fb372d2d719d120ee327a0f1fa04e | 264 | py | Python | setup.py | davesproson/gribgrab | 51ab50de4ad8996e478f9c16df025b76271ead2b | [
"MIT"
] | 2 | 2017-09-24T20:56:31.000Z | 2017-09-24T21:02:02.000Z | setup.py | davesproson/gribgrab | 51ab50de4ad8996e478f9c16df025b76271ead2b | [
"MIT"
] | null | null | null | setup.py | davesproson/gribgrab | 51ab50de4ad8996e478f9c16df025b76271ead2b | [
"MIT"
] | 1 | 2017-10-06T06:15:44.000Z | 2017-10-06T06:15:44.000Z | from setuptools import setup
setup(
name='gribgrab',
version='0.1.0',
description='Dowload GFS/GDAS data from Nomads',
author='Dave Sproson',
author_email='davesproson@gmail.com',
packages=['gribgrab'],
install_requires=['requests']
)
| 22 | 52 | 0.67803 | 31 | 264 | 5.709677 | 0.83871 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013825 | 0.17803 | 264 | 11 | 53 | 24 | 0.801843 | 0 | 0 | 0 | 0 | 0 | 0.359848 | 0.079545 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.1 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c433dc24eb3b59b7709e510a7e86bc9c8f826a71 | 2,447 | py | Python | picasa_thumbs.py | sydp/picasaparser | 6e4f5163a671af250ed1a40d3c8c346cd87210fd | [
"Apache-2.0"
] | null | null | null | picasa_thumbs.py | sydp/picasaparser | 6e4f5163a671af250ed1a40d3c8c346cd87210fd | [
"Apache-2.0"
] | null | null | null | picasa_thumbs.py | sydp/picasaparser | 6e4f5163a671af250ed1a40d3c8c346cd87210fd | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
#
# This script will extract the thumbnail images from a Google Picasa
# thumbnail file i.e. previews.db, thumbs_0.db, etc..
#
# Copyright 2014 Syd Pleno <syd dot pleno at gmail dot com>
#
# Licensed under GNU General Public License 3.0 or later.
#
# This program is free software: y... | 30.209877 | 81 | 0.697589 | 399 | 2,447 | 4.165414 | 0.385965 | 0.025271 | 0.038508 | 0.055355 | 0.102286 | 0.086643 | 0.024067 | 0 | 0 | 0 | 0 | 0.021446 | 0.180629 | 2,447 | 80 | 82 | 30.5875 | 0.807481 | 0.412342 | 0 | 0.040816 | 0 | 0 | 0.055909 | 0 | 0 | 0 | 0.014154 | 0 | 0 | 0 | null | null | 0 | 0.040816 | null | null | 0.040816 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c433facc7baf06bce640604fbd54b17b45a16691 | 2,892 | py | Python | pyspedas/examples/basic/ex_cdasws.py | donglai96/pyspedas | 68508e020ca6b1764b8d7ba12d22705c9dc8fac2 | [
"MIT"
] | null | null | null | pyspedas/examples/basic/ex_cdasws.py | donglai96/pyspedas | 68508e020ca6b1764b8d7ba12d22705c9dc8fac2 | [
"MIT"
] | null | null | null | pyspedas/examples/basic/ex_cdasws.py | donglai96/pyspedas | 68508e020ca6b1764b8d7ba12d22705c9dc8fac2 | [
"MIT"
] | null | null | null |
"""
File:
ex_cdasws.py
Description:
Example of how to use cdasws to find cdf files with NASA CDA web services.
For more information on cdasws, see:
https://pypi.org/project/cdasws/
"""
from cdasws import CdasWs
from pyspedas.cdagui.cdaweb import CDAWeb
def ex_cdasws():
# Create an cdasws i... | 30.125 | 78 | 0.479599 | 272 | 2,892 | 5.011029 | 0.345588 | 0.168745 | 0.132062 | 0.035216 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011295 | 0.204011 | 2,892 | 95 | 79 | 30.442105 | 0.580799 | 0.227524 | 0 | 0.461538 | 0 | 0 | 0.385172 | 0.262206 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015385 | false | 0 | 0.030769 | 0 | 0.061538 | 0.615385 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c434962c436f8b67b7b8e9aa9b04fafc9f214eb1 | 2,062 | py | Python | dsgn/layers/smooth_l1_loss.py | fangchengji/DSGN | 9a70e1574f042d5de856ed540cfa9111099437f1 | [
"MIT"
] | 192 | 2019-08-30T08:09:51.000Z | 2021-05-18T06:24:40.000Z | dsgn/layers/smooth_l1_loss.py | fangchengji/DSGN | 9a70e1574f042d5de856ed540cfa9111099437f1 | [
"MIT"
] | 24 | 2019-08-29T22:30:30.000Z | 2021-04-28T12:08:08.000Z | dsgn/layers/smooth_l1_loss.py | fangchengji/DSGN | 9a70e1574f042d5de856ed540cfa9111099437f1 | [
"MIT"
] | 44 | 2019-09-17T23:00:41.000Z | 2021-04-30T07:30:03.000Z | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
import torch
import numpy as np
# TODO maybe push this to nn?
def smooth_l1_loss(input, target, beta=1. / 9, size_average=True):
"""
very similar to the smooth_l1_loss from pytorch, but with
the extra beta parameter
"""
n = tor... | 29.884058 | 93 | 0.625606 | 313 | 2,062 | 4.01278 | 0.290735 | 0.061306 | 0.047771 | 0.045382 | 0.253185 | 0.159236 | 0.140127 | 0.140127 | 0.140127 | 0.084395 | 0 | 0.027319 | 0.236663 | 2,062 | 68 | 94 | 30.323529 | 0.770648 | 0.087779 | 0 | 0.255319 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014706 | 0 | 1 | 0.148936 | false | 0 | 0.042553 | 0 | 0.361702 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
c4387ff5311ef7802d2bdf7f451c59918c59689d | 2,244 | py | Python | helpFuncs.py | Lunaresk/dnd_telegram_bot | 0c11e0b43b097bdfe0536df4b0ef890318c0226b | [
"MIT"
] | null | null | null | helpFuncs.py | Lunaresk/dnd_telegram_bot | 0c11e0b43b097bdfe0536df4b0ef890318c0226b | [
"MIT"
] | null | null | null | helpFuncs.py | Lunaresk/dnd_telegram_bot | 0c11e0b43b097bdfe0536df4b0ef890318c0226b | [
"MIT"
] | null | null | null | from random import (choice, randint)
from string import (ascii_lowercase, ascii_uppercase, digits)
from re import search
def id_generator(size=10, chars = ascii_lowercase + ascii_uppercase + digits):
return ''.join(choice(chars) for _ in range(size))
def correctArgs(args):
if len(args) == 1:
return args[0]
... | 32.521739 | 191 | 0.61943 | 364 | 2,244 | 3.788462 | 0.28022 | 0.023205 | 0.021755 | 0.017404 | 0.40174 | 0.344453 | 0.344453 | 0.28934 | 0.28934 | 0.28934 | 0 | 0.017109 | 0.244652 | 2,244 | 68 | 192 | 33 | 0.79646 | 0.008021 | 0 | 0.222222 | 0 | 0.063492 | 0.298427 | 0 | 0 | 0 | 0 | 0.014706 | 0 | 1 | 0.063492 | false | 0 | 0.047619 | 0.015873 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c43d042d508ebec78c3e6fd1df251f46a3b921c4 | 608 | py | Python | tests/app/test_worker.py | renovate-tests/pol | dca9aa4ce34273575d69a140dc3bb1d2ac14ecbf | [
"MIT"
] | null | null | null | tests/app/test_worker.py | renovate-tests/pol | dca9aa4ce34273575d69a140dc3bb1d2ac14ecbf | [
"MIT"
] | null | null | null | tests/app/test_worker.py | renovate-tests/pol | dca9aa4ce34273575d69a140dc3bb1d2ac14ecbf | [
"MIT"
] | null | null | null | import mock
import pytest
import app.worker
from app.worker import submit_ep, submit_bangumi
_re_run = 3
@pytest.mark.flaky(reruns=_re_run)
# @celery.task
def test_submit_bangumi():
with mock.patch("app.worker.dispatcher"):
submit_bangumi(2333, "url233")
app.worker.dispatcher.subject.assert_call... | 24.32 | 77 | 0.726974 | 87 | 608 | 4.83908 | 0.344828 | 0.128266 | 0.180523 | 0.099762 | 0.693587 | 0.555819 | 0.413302 | 0.232779 | 0.232779 | 0.232779 | 0 | 0.055877 | 0.146382 | 608 | 24 | 78 | 25.333333 | 0.755299 | 0.083882 | 0 | 0.266667 | 0 | 0 | 0.119349 | 0.075949 | 0 | 0 | 0 | 0 | 0.133333 | 1 | 0.133333 | false | 0 | 0.266667 | 0 | 0.4 | 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 |
c43d1124b17026e359bde584a03e6226c42bd138 | 56,841 | py | Python | rsqueakvm/squeakimage.py | shiplift/RSqueakOnABoat | ac449758ddb7aef1721e65a13171547761dd6e39 | [
"BSD-3-Clause"
] | 44 | 2015-02-08T09:38:46.000Z | 2017-11-15T01:19:40.000Z | rsqueakvm/squeakimage.py | shiplift/RSqueakOnABoat | ac449758ddb7aef1721e65a13171547761dd6e39 | [
"BSD-3-Clause"
] | 112 | 2015-02-08T09:34:40.000Z | 2017-04-10T19:06:30.000Z | rsqueakvm/squeakimage.py | shiplift/RSqueakOnABoat | ac449758ddb7aef1721e65a13171547761dd6e39 | [
"BSD-3-Clause"
] | 7 | 2015-04-08T11:49:10.000Z | 2017-01-19T06:36:27.000Z | import os
import time
from rsqueakvm import constants, error, wrapper
from rsqueakvm.model.character import W_Character
from rsqueakvm.model.compiled_methods import W_CompiledMethod, W_PreSpurCompiledMethod, W_SpurCompiledMethod
from rsqueakvm.model.display import W_DisplayBitmap
from rsqueakvm.model.numeric import W_... | 41.129522 | 265 | 0.618937 | 7,007 | 56,841 | 4.803625 | 0.108178 | 0.027036 | 0.013518 | 0.014261 | 0.371758 | 0.293948 | 0.247779 | 0.214742 | 0.194183 | 0.171663 | 0 | 0.025864 | 0.288507 | 56,841 | 1,381 | 266 | 41.159305 | 0.806414 | 0.084745 | 0 | 0.290203 | 0 | 0 | 0.022769 | 0.000505 | 0 | 0 | 0.006829 | 0.001448 | 0.032348 | 0 | null | null | 0.000924 | 0.020333 | null | null | 0.001848 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c43f630524d9f93b80344e15603c60086c582919 | 263 | py | Python | tests/test_sampler.py | nylas/stackcollector | 2e9f72ee74587e0dea5ba4826cd60a093c8869f0 | [
"MIT"
] | 592 | 2015-09-29T18:08:07.000Z | 2022-03-14T04:18:15.000Z | tests/test_sampler.py | nylas/stackcollector | 2e9f72ee74587e0dea5ba4826cd60a093c8869f0 | [
"MIT"
] | 16 | 2015-10-29T15:55:17.000Z | 2021-06-15T18:26:24.000Z | tests/test_sampler.py | nylas/stackcollector | 2e9f72ee74587e0dea5ba4826cd60a093c8869f0 | [
"MIT"
] | 62 | 2015-09-29T18:07:35.000Z | 2021-08-06T09:11:00.000Z | import time
from stacksampler import Sampler
def slp():
time.sleep(0.00001)
def fn():
for i in range(50000):
slp()
s = Sampler()
def test_foo():
s.start()
fn()
print s.output_stats()
if __name__ == '__main__':
test_foo()
| 10.52 | 32 | 0.589354 | 37 | 263 | 3.891892 | 0.702703 | 0.138889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057592 | 0.273764 | 263 | 24 | 33 | 10.958333 | 0.696335 | 0 | 0 | 0 | 0 | 0 | 0.030418 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.142857 | null | null | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c44057a67236148112128c38bc6723c571de5027 | 634 | py | Python | hackerrank/contest/pythonist_classes.py | knuu/competitive-programming | 16bc68fdaedd6f96ae24310d697585ca8836ab6e | [
"MIT"
] | 1 | 2018-11-12T15:18:55.000Z | 2018-11-12T15:18:55.000Z | hackerrank/contest/pythonist_classes.py | knuu/competitive-programming | 16bc68fdaedd6f96ae24310d697585ca8836ab6e | [
"MIT"
] | null | null | null | hackerrank/contest/pythonist_classes.py | knuu/competitive-programming | 16bc68fdaedd6f96ae24310d697585ca8836ab6e | [
"MIT"
] | null | null | null | def cprint(c):
r, i = c.real, c.imag
if r != 0:
if i > 0:
print('{:.2f} + {:.2f}i'.format(r, i))
elif i < 0:
print('{:.2f} - {:.2f}i'.format(r, abs(i)))
else:
print('{:.2f}'.format(r))
else:
if i != 0:
print('{:.2f}i'.format(i))... | 22.642857 | 55 | 0.425868 | 96 | 634 | 2.8125 | 0.260417 | 0.12963 | 0.118519 | 0.1 | 0.566667 | 0.259259 | 0.259259 | 0.259259 | 0.118519 | 0 | 0 | 0.037559 | 0.328076 | 634 | 27 | 56 | 23.481481 | 0.596244 | 0 | 0 | 0.125 | 0 | 0 | 0.102524 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0 | 0 | 0.041667 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c44c43356eb39a4453ae793f93a0972dd43d9e7a | 6,431 | py | Python | src/HartreeParticleDSL/language_utils/variable_scope.py | stfc/HartreeParticleDSL | 17990f1a85c9cbec3c4dfa0923e2c44cad6f381c | [
"MIT"
] | null | null | null | src/HartreeParticleDSL/language_utils/variable_scope.py | stfc/HartreeParticleDSL | 17990f1a85c9cbec3c4dfa0923e2c44cad6f381c | [
"MIT"
] | 47 | 2021-09-16T10:28:05.000Z | 2022-03-15T14:24:33.000Z | src/HartreeParticleDSL/language_utils/variable_scope.py | stfc/HartreeParticleDSL | 17990f1a85c9cbec3c4dfa0923e2c44cad6f381c | [
"MIT"
] | 1 | 2021-09-27T15:20:01.000Z | 2021-09-27T15:20:01.000Z | from HartreeParticleDSL.HartreeParticleDSLExceptions import RepeatedNameError, \
InvalidNameError
import HartreeParticleDSL.HartreeParticleDSL as HartreeParticleDSL
class variable_access():
'''
A class to handle variable accesses. Used whenever variab... | 33.494792 | 88 | 0.621676 | 808 | 6,431 | 4.778465 | 0.160891 | 0.10878 | 0.060606 | 0.029526 | 0.300181 | 0.221445 | 0.175602 | 0.118881 | 0.118881 | 0.069153 | 0 | 0 | 0.31286 | 6,431 | 191 | 89 | 33.670157 | 0.873727 | 0.45545 | 0 | 0.121622 | 0 | 0 | 0.077367 | 0 | 0 | 0 | 0 | 0 | 0.040541 | 1 | 0.22973 | false | 0 | 0.027027 | 0.040541 | 0.418919 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c44e611773103b84587b2eb4b67cf9faf5cd1b3d | 514 | py | Python | gehomesdk/erd/converters/laundry/tumble_status_converter.py | willhayslett/gehome | 7e407a1d31cede1453656eaef948332e808484ea | [
"MIT"
] | 17 | 2021-05-18T01:58:06.000Z | 2022-03-22T20:49:32.000Z | gehomesdk/erd/converters/laundry/tumble_status_converter.py | willhayslett/gehome | 7e407a1d31cede1453656eaef948332e808484ea | [
"MIT"
] | 29 | 2021-05-17T21:43:16.000Z | 2022-02-28T22:50:48.000Z | gehomesdk/erd/converters/laundry/tumble_status_converter.py | willhayslett/gehome | 7e407a1d31cede1453656eaef948332e808484ea | [
"MIT"
] | 9 | 2021-05-17T04:40:58.000Z | 2022-02-02T17:26:13.000Z | import logging
from gehomesdk.erd.converters.abstract import ErdReadOnlyConverter
from gehomesdk.erd.converters.primitives import *
from gehomesdk.erd.values.laundry import ErdTumbleStatus
_LOGGER = logging.getLogger(__name__)
class TumbleStatusConverter(ErdReadOnlyConverter[ErdTumbleStatus]):
def erd_decode(sel... | 34.266667 | 67 | 0.774319 | 51 | 514 | 7.627451 | 0.588235 | 0.100257 | 0.123393 | 0.133676 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.155642 | 514 | 14 | 68 | 36.714286 | 0.896313 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.363636 | 0 | 0.727273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c44f7f8a94b4e34458646ed805f75d3f0f3841fa | 2,060 | py | Python | Scripts/caliroots.py | ColeTownsend/OpenEHTECE | 3c61d5ab0116ad669f8627d90914bff8c8240843 | [
"MIT"
] | 31 | 2018-05-11T08:39:18.000Z | 2022-03-16T08:34:19.000Z | Scripts/caliroots.py | bkdatl/SneakerBot | 8308de68ba17aa9f61cb0d0a0e8f278b70352e3e | [
"MIT"
] | null | null | null | Scripts/caliroots.py | bkdatl/SneakerBot | 8308de68ba17aa9f61cb0d0a0e8f278b70352e3e | [
"MIT"
] | 17 | 2018-09-22T03:16:17.000Z | 2021-06-04T14:35:39.000Z | #!/usr/bin/env python3
import requests
import re
import timeit
import json
from bs4 import BeautifulSoup as bs
from getconf import *
# User input
size = '6.5'
use_early_link = True
early_link = 'https://caliroots.com/adidas-originals-tubular-nova-primeknit-s74917/p/53784'
def checkout(): # USA checkout
# TODO: G... | 29.855072 | 128 | 0.574757 | 237 | 2,060 | 4.915612 | 0.518987 | 0.030901 | 0.043777 | 0.046352 | 0.072103 | 0.072103 | 0 | 0 | 0 | 0 | 0 | 0.011636 | 0.290777 | 2,060 | 68 | 129 | 30.294118 | 0.785763 | 0.050485 | 0 | 0.092593 | 0 | 0.018519 | 0.215787 | 0 | 0 | 0 | 0 | 0.014706 | 0 | 1 | 0.018519 | false | 0 | 0.111111 | 0 | 0.12963 | 0.074074 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
c45e283f9f8d2ecced92310401a6c77685e07d96 | 19,616 | py | Python | tests/layer/test_graphsage.py | timpitman/stellargraph | bbd6a924b8e3d482180ad04ef0116d0efbbcce6c | [
"Apache-2.0"
] | 2 | 2020-03-27T07:02:09.000Z | 2020-05-30T16:46:18.000Z | tests/layer/test_graphsage.py | timpitman/stellargraph | bbd6a924b8e3d482180ad04ef0116d0efbbcce6c | [
"Apache-2.0"
] | null | null | null | tests/layer/test_graphsage.py | timpitman/stellargraph | bbd6a924b8e3d482180ad04ef0116d0efbbcce6c | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
#
# Copyright 2018-2020 Data61, CSIRO
#
# 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 applicabl... | 28.470247 | 94 | 0.601448 | 2,708 | 19,616 | 4.23449 | 0.105244 | 0.009767 | 0.037935 | 0.034883 | 0.72556 | 0.673323 | 0.660155 | 0.642016 | 0.632947 | 0.60879 | 0 | 0.049651 | 0.241232 | 19,616 | 688 | 95 | 28.511628 | 0.720169 | 0.155281 | 0 | 0.623608 | 0 | 0 | 0.035021 | 0 | 0 | 0 | 0 | 0 | 0.213808 | 1 | 0.062361 | false | 0.006682 | 0.017817 | 0 | 0.080178 | 0.002227 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c461b2414c6ad348b7157b985fbe4e9da2fe4b29 | 1,183 | py | Python | vio/vio/pub/config/config.py | onap/multicloud-openstack-vmware | 53fd67e55f54c66b29e0eb5ab792e80d16ffff20 | [
"Apache-2.0",
"CC-BY-4.0"
] | 1 | 2021-10-15T16:47:11.000Z | 2021-10-15T16:47:11.000Z | vio/vio/pub/config/config.py | onap/multicloud-openstack-vmware | 53fd67e55f54c66b29e0eb5ab792e80d16ffff20 | [
"Apache-2.0",
"CC-BY-4.0"
] | 1 | 2020-02-11T22:14:45.000Z | 2020-02-11T22:14:45.000Z | vio/vio/pub/config/config.py | onap/multicloud-openstack-vmware | 53fd67e55f54c66b29e0eb5ab792e80d16ffff20 | [
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | # Copyright (c) 2017-2018 VMware, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at:
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 28.166667 | 74 | 0.710059 | 187 | 1,183 | 4.294118 | 0.545455 | 0.049813 | 0.048568 | 0.05604 | 0.05604 | 0.05604 | 0.05604 | 0.05604 | 0 | 0 | 0 | 0.043216 | 0.158918 | 1,183 | 41 | 75 | 28.853659 | 0.763819 | 0.442096 | 0 | 0 | 0 | 0 | 0.285047 | 0.11838 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.058824 | 0.058824 | 0 | 0.058824 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c46b00943e673666bd5c83f9a0041233807c72cd | 3,133 | py | Python | test/test_CFGController.py | SibylLab/Task-based-Bug-Report-Summerizer | 2acd5d9a3d3ed6b009ab322dd5c73e39786fdfc5 | [
"MIT"
] | null | null | null | test/test_CFGController.py | SibylLab/Task-based-Bug-Report-Summerizer | 2acd5d9a3d3ed6b009ab322dd5c73e39786fdfc5 | [
"MIT"
] | null | null | null | test/test_CFGController.py | SibylLab/Task-based-Bug-Report-Summerizer | 2acd5d9a3d3ed6b009ab322dd5c73e39786fdfc5 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
__author__ = "Akalanka Galappaththi"
__email__ = "a.galappaththi@uleth.ca"
__copyright__ = "Copyright 2020, The Bug Report Summarization Project @ Sybil-Lab"
__license__ = "MIT"
__maintainer__ = "Akalanka Galappaththi"
import unittest
from models.Sentence import Sentence
from controllers.CFGCon... | 41.223684 | 118 | 0.638366 | 396 | 3,133 | 4.939394 | 0.366162 | 0.079755 | 0.086401 | 0.172802 | 0.516871 | 0.498466 | 0.467791 | 0.467791 | 0.467791 | 0.451943 | 0 | 0.016539 | 0.247367 | 3,133 | 76 | 119 | 41.223684 | 0.812977 | 0.090648 | 0 | 0.509434 | 0 | 0 | 0.285313 | 0.018271 | 0 | 0 | 0 | 0 | 0.245283 | 1 | 0.018868 | false | 0 | 0.056604 | 0 | 0.09434 | 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 |
c46c8386ef62d0f4965524ea948bc875be8e3d0a | 417 | py | Python | Lesson14_ChallengeDictionaries/7-FrequencyCount.py | StyvenSoft/degree-python | 644953608948f341f5a20ceb9a02976a128b472b | [
"MIT"
] | null | null | null | Lesson14_ChallengeDictionaries/7-FrequencyCount.py | StyvenSoft/degree-python | 644953608948f341f5a20ceb9a02976a128b472b | [
"MIT"
] | null | null | null | Lesson14_ChallengeDictionaries/7-FrequencyCount.py | StyvenSoft/degree-python | 644953608948f341f5a20ceb9a02976a128b472b | [
"MIT"
] | null | null | null | # Write your frequency_dictionary function here:
def frequency_dictionary(words):
freqs = {}
for word in words:
if word not in freqs:
freqs[word] = 0
freqs[word] += 1
return freqs
# Uncomment these function calls to test your function:
print(frequency_dictionary(["apple", "apple", "cat", 1]))
# sho... | 29.785714 | 57 | 0.683453 | 63 | 417 | 4.460317 | 0.444444 | 0.270463 | 0.032028 | 0.02847 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04058 | 0.172662 | 417 | 14 | 58 | 29.785714 | 0.773913 | 0.381295 | 0 | 0 | 0 | 0 | 0.051181 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.222222 | 0.222222 | 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 |
c47ab75ba90edaf47065a3093b437a5eb025e47e | 2,725 | py | Python | jenkinsJobRes.py | harshagn/JenkinsBenchmarkAutomation | b9020c80e20345cd61639a9813975d9529cfdbfb | [
"Apache-2.0"
] | null | null | null | jenkinsJobRes.py | harshagn/JenkinsBenchmarkAutomation | b9020c80e20345cd61639a9813975d9529cfdbfb | [
"Apache-2.0"
] | null | null | null | jenkinsJobRes.py | harshagn/JenkinsBenchmarkAutomation | b9020c80e20345cd61639a9813975d9529cfdbfb | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
import requests
import re
import sys
import json
import time
# secs for polling Jenkins API
#
QUEUE_POLL_INTERVAL = 2
JOB_POLL_INTERVAL = 20
OVERALL_TIMEOUT = 3600 # 1 hour
# job specifics: should be passed in
auth_token = 'buildmaster:173223588624f980c3AAA68d4d8efe0c'
jenkins_uri... | 31.686047 | 94 | 0.61945 | 367 | 2,725 | 4.422343 | 0.302452 | 0.038817 | 0.064695 | 0.077634 | 0.25077 | 0.189156 | 0.171904 | 0.108441 | 0.108441 | 0.108441 | 0 | 0.024964 | 0.235596 | 2,725 | 86 | 95 | 31.686047 | 0.754201 | 0.125505 | 0 | 0.186441 | 0 | 0 | 0.238492 | 0.028496 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.084746 | null | null | 0.152542 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c47ad10f90855e4755a4f890c0dad478cc396a91 | 719 | py | Python | budgetportal/webflow/urls.py | d3ft0uch/datamanager | 60f2f9d5278d20ae553bb063dcedaf206bb3ab29 | [
"MIT"
] | null | null | null | budgetportal/webflow/urls.py | d3ft0uch/datamanager | 60f2f9d5278d20ae553bb063dcedaf206bb3ab29 | [
"MIT"
] | null | null | null | budgetportal/webflow/urls.py | d3ft0uch/datamanager | 60f2f9d5278d20ae553bb063dcedaf206bb3ab29 | [
"MIT"
] | null | null | null | from django.conf.urls import include, url
from rest_framework import routers
from . import views
router = routers.DefaultRouter()
router.register(
"infrastructure-projects/provincial/search",
views.ProvInfraProjectSearchView,
basename="provincial-infrastructure-project-api",
)
urlpatterns = [
url(
... | 27.653846 | 77 | 0.69541 | 75 | 719 | 6.573333 | 0.453333 | 0.133874 | 0.194726 | 0.105477 | 0.146045 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001669 | 0.166898 | 719 | 25 | 78 | 28.76 | 0.821369 | 0 | 0 | 0.181818 | 0 | 0 | 0.344924 | 0.333797 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.136364 | 0 | 0.136364 | 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 |
c47eeac7de071dde1f80647f2b37692d4772d8f0 | 1,923 | py | Python | src/ggrc/fulltext/recordbuilder.py | sbilly/ggrc-core | 59a6825c6a8e15e42ebdb9e08d079cefd1800120 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | src/ggrc/fulltext/recordbuilder.py | sbilly/ggrc-core | 59a6825c6a8e15e42ebdb9e08d079cefd1800120 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | src/ggrc/fulltext/recordbuilder.py | sbilly/ggrc-core | 59a6825c6a8e15e42ebdb9e08d079cefd1800120 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null |
# Copyright (C) 2016 Google Inc.
# Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
from ggrc.models.reflection import AttributeInfo
from . import Record
class RecordBuilder(object):
def __init__(self, tgt_class):
self._fulltext_attrs = AttributeInfo.gather_attrs(
tgt_class,... | 36.283019 | 80 | 0.713469 | 250 | 1,923 | 5.196 | 0.396 | 0.060046 | 0.036952 | 0.048499 | 0.147806 | 0.147806 | 0.147806 | 0.089299 | 0.089299 | 0 | 0 | 0.004599 | 0.208528 | 1,923 | 52 | 81 | 36.980769 | 0.848883 | 0.331253 | 0 | 0 | 0 | 0 | 0.051846 | 0 | 0 | 0 | 0 | 0.019231 | 0 | 1 | 0.147059 | false | 0 | 0.058824 | 0 | 0.352941 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
c48399a67ba4532e5681f36a1d0ebe820ffffc4d | 9,783 | py | Python | birth_rate_app/forms.py | mosiac05/BirthKwara-Project | b51e8c43ce4f8a87a6bd50019918496ea861c493 | [
"Apache-2.0"
] | null | null | null | birth_rate_app/forms.py | mosiac05/BirthKwara-Project | b51e8c43ce4f8a87a6bd50019918496ea861c493 | [
"Apache-2.0"
] | null | null | null | birth_rate_app/forms.py | mosiac05/BirthKwara-Project | b51e8c43ce4f8a87a6bd50019918496ea861c493 | [
"Apache-2.0"
] | null | null | null | from django import forms
from birth_rate_app.choices import (
LGA,
GENDER,
)
class HospitalForm(forms.Form):
name = forms.CharField(max_length=100,
required=True,
widget=forms.TextInput(
attrs={
... | 48.192118 | 97 | 0.275171 | 506 | 9,783 | 5.254941 | 0.162055 | 0.086875 | 0.134261 | 0.134261 | 0.738624 | 0.67469 | 0.621662 | 0.573524 | 0.519368 | 0.462204 | 0 | 0.013314 | 0.654503 | 9,783 | 202 | 98 | 48.430693 | 0.773373 | 0 | 0 | 0.403061 | 0 | 0 | 0.120822 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.020408 | 0.010204 | 0 | 0.127551 | 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 |
c489eb82b5873feae929d4098d490d54719bc0dc | 582 | py | Python | {{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/users/backends.py | paolofantozzi/cookiecutter-django | bcc8468b19bbdece813151243c83d017d6febd72 | [
"BSD-3-Clause"
] | null | null | null | {{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/users/backends.py | paolofantozzi/cookiecutter-django | bcc8468b19bbdece813151243c83d017d6febd72 | [
"BSD-3-Clause"
] | 3 | 2020-11-25T19:21:40.000Z | 2020-11-25T19:40:59.000Z | {{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/users/backends.py | paolofantozzi/cookiecutter-django | bcc8468b19bbdece813151243c83d017d6febd72 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""Backends for users."""
from django.contrib.auth.backends import ModelBackend
from {{ cookiecutter.project_slug }}.users.exceptions import UserNotActive
class ModelBackendWithNotActiveException(ModelBackend):
"""Add the managing of non active user as a different authentication except... | 29.1 | 86 | 0.706186 | 66 | 582 | 6.121212 | 0.681818 | 0.079208 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002132 | 0.194158 | 582 | 19 | 87 | 30.631579 | 0.859275 | 0.036082 | 0 | 0 | 0 | 0 | 0.023438 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.25 | 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 |
6704005dd2f321b36da65a693690a3987cb0f7ed | 1,513 | py | Python | ParamikoHelper.py | swabyears/ParamikoHelper | 1157f04e31455ab06b38ba2e11e8e20d405fc3a1 | [
"MIT"
] | 2 | 2020-10-30T13:42:35.000Z | 2021-11-04T22:35:34.000Z | ParamikoHelper.py | swabyears/ParamikoHelper | 1157f04e31455ab06b38ba2e11e8e20d405fc3a1 | [
"MIT"
] | null | null | null | ParamikoHelper.py | swabyears/ParamikoHelper | 1157f04e31455ab06b38ba2e11e8e20d405fc3a1 | [
"MIT"
] | null | null | null | import paramiko
'''
Basic wrapper for Paramiko
'''
# For paramiko debugging
# paramiko.common.logging.basicConfig(level=paramiko.common.DEBUG)
class ConnectToDevice():
def __init__(self):
self.hosts = []
self.connections = []
def add_host(self, args):
"""
add hosts to the conn... | 31.520833 | 114 | 0.582287 | 174 | 1,513 | 4.988506 | 0.454023 | 0.041475 | 0.044931 | 0.0553 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002879 | 0.311302 | 1,513 | 47 | 115 | 32.191489 | 0.830134 | 0.09848 | 0 | 0.066667 | 0 | 0 | 0.030277 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.033333 | 0.033333 | null | null | 0.033333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
670ac85e59a3b8c18fc1ad20f821e68edfada540 | 1,921 | py | Python | ialgebra/interpreters/interpreter.py | huashen218/pytorch-ialgebra | f498fb2c91c5a48204c66ad5e6dc118cbec69641 | [
"MIT"
] | 2 | 2021-02-01T20:07:13.000Z | 2021-02-10T17:15:45.000Z | build/lib/ialgebra/interpreters/interpreter.py | huashen218/pytorch-ialgebra | f498fb2c91c5a48204c66ad5e6dc118cbec69641 | [
"MIT"
] | null | null | null | build/lib/ialgebra/interpreters/interpreter.py | huashen218/pytorch-ialgebra | f498fb2c91c5a48204c66ad5e6dc118cbec69641 | [
"MIT"
] | null | null | null | import torch
import numpy as np
from ialgebra.utils.utils_data import preprocess_fn
from ialgebra.utils.utils_interpreter import resize_postfn, generate_map
device = 'cuda' if torch.cuda.is_available() else 'cpu'
class Interpreter(object):
def __init__(self, pretrained_model=None, dataset=None, target_layer=None... | 39.204082 | 112 | 0.654867 | 252 | 1,921 | 4.75 | 0.305556 | 0.082707 | 0.047619 | 0.032581 | 0.035088 | 0.035088 | 0 | 0 | 0 | 0 | 0 | 0.004141 | 0.245705 | 1,921 | 48 | 113 | 40.020833 | 0.821946 | 0.021343 | 0 | 0.04878 | 1 | 0 | 0.006922 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.121951 | false | 0.04878 | 0.097561 | 0.02439 | 0.292683 | 0.04878 | 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 |
670f292ece37ac0bc54f21bc83ecf05162985d42 | 2,818 | py | Python | clingraph/logger.py | potassco/clingraph | bf695ff2c2cbc917182ec00862ae94f8c99feee5 | [
"MIT"
] | 4 | 2022-01-04T14:03:34.000Z | 2022-01-25T09:16:25.000Z | clingraph/logger.py | potassco/clingraph | bf695ff2c2cbc917182ec00862ae94f8c99feee5 | [
"MIT"
] | 44 | 2021-12-07T14:56:11.000Z | 2022-03-27T21:45:30.000Z | clingraph/logger.py | potassco/clingraph | bf695ff2c2cbc917182ec00862ae94f8c99feee5 | [
"MIT"
] | 4 | 2022-01-25T13:03:26.000Z | 2022-03-18T09:09:30.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Custom Logger."""
import sys
import logging
class SingleLevelFilter(logging.Filter):
"""Filter levels"""
def __init__(self, passlevel, reject):
# pylint: disable=super-init-not-called
self.passlevel = passlevel
self.reject = reject
... | 31.311111 | 97 | 0.666785 | 331 | 2,818 | 5.546828 | 0.247734 | 0.03268 | 0.042484 | 0.054466 | 0.321351 | 0.108932 | 0.108932 | 0.108932 | 0 | 0 | 0 | 0.013055 | 0.184528 | 2,818 | 89 | 98 | 31.662921 | 0.785901 | 0.124556 | 0 | 0.068966 | 0 | 0 | 0.092486 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0.068966 | 0.034483 | 0 | 0.172414 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6710c2680d1b3c4ba98a2e2e2aab35c38b439b82 | 604 | py | Python | openprocurement/tender/openua/views/award_document.py | leits/openprocurement.tender.openua | 325663f20466c31ff457fb87183782d82d7a5878 | [
"Apache-2.0"
] | 1 | 2016-01-27T10:51:03.000Z | 2016-01-27T10:51:03.000Z | openprocurement/tender/openua/views/award_document.py | Leits/openprocurement.tender.openua | 325663f20466c31ff457fb87183782d82d7a5878 | [
"Apache-2.0"
] | 2 | 2021-03-26T00:29:30.000Z | 2022-03-21T22:21:11.000Z | openprocurement/tender/openua/views/award_document.py | leits/openprocurement.tender.openua | 325663f20466c31ff457fb87183782d82d7a5878 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from logging import getLogger
from openprocurement.api.views.award_document import TenderAwardDocumentResource
from openprocurement.api.utils import opresource
LOGGER = getLogger(__name__)
@opresource(name='Tender UA Award Documents',
collection_path='/tenders/{tender_id}/awards/{... | 37.75 | 82 | 0.75 | 59 | 604 | 7.491525 | 0.525424 | 0.085973 | 0.099548 | 0.085973 | 0.18552 | 0.18552 | 0.18552 | 0.18552 | 0 | 0 | 0 | 0.001938 | 0.145695 | 604 | 15 | 83 | 40.266667 | 0.854651 | 0.034768 | 0 | 0 | 0 | 0 | 0.297762 | 0.189329 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.090909 | 0.272727 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
67115f6bdbbd1f73a6fff5bc1141832d6c0d1e60 | 2,122 | py | Python | contrib/opencensus-ext-azure/examples/metrics/simple.py | Flared/opencensus-python | e2535e688a50c7a06be8af93ca3b987d387da605 | [
"Apache-2.0"
] | 650 | 2017-07-09T02:08:10.000Z | 2022-03-22T20:39:54.000Z | contrib/opencensus-ext-azure/examples/metrics/simple.py | Flared/opencensus-python | e2535e688a50c7a06be8af93ca3b987d387da605 | [
"Apache-2.0"
] | 735 | 2017-07-26T01:15:16.000Z | 2022-03-29T20:17:20.000Z | contrib/opencensus-ext-azure/examples/metrics/simple.py | Flared/opencensus-python | e2535e688a50c7a06be8af93ca3b987d387da605 | [
"Apache-2.0"
] | 256 | 2017-07-24T18:29:15.000Z | 2022-03-15T15:33:03.000Z | # Copyright 2019, OpenCensus 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... | 35.366667 | 78 | 0.698398 | 267 | 2,122 | 5.378277 | 0.456929 | 0.041783 | 0.052925 | 0.069638 | 0.064763 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00869 | 0.240811 | 2,122 | 59 | 79 | 35.966102 | 0.882682 | 0.370405 | 0 | 0.066667 | 0 | 0 | 0.068337 | 0 | 0 | 0 | 0 | 0.016949 | 0 | 1 | 0.033333 | false | 0 | 0.233333 | 0 | 0.266667 | 0.033333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
671808ca85d130ff0ba562038a8d460dd5711303 | 2,190 | py | Python | sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/models/web_client_certificate_authentication.py | tzhanl/azure-sdk-for-python | 18cd03f4ab8fd76cc0498f03e80fbc99f217c96e | [
"MIT"
] | 1 | 2021-09-07T18:36:04.000Z | 2021-09-07T18:36:04.000Z | sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/models/web_client_certificate_authentication.py | tzhanl/azure-sdk-for-python | 18cd03f4ab8fd76cc0498f03e80fbc99f217c96e | [
"MIT"
] | 2 | 2019-10-02T23:37:38.000Z | 2020-10-02T01:17:31.000Z | sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/models/web_client_certificate_authentication.py | tzhanl/azure-sdk-for-python | 18cd03f4ab8fd76cc0498f03e80fbc99f217c96e | [
"MIT"
] | 1 | 2019-06-17T22:18:23.000Z | 2019-06-17T22:18:23.000Z | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | 40.555556 | 78 | 0.642922 | 231 | 2,190 | 6.008658 | 0.515152 | 0.064842 | 0.037464 | 0.037464 | 0.051873 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001682 | 0.185388 | 2,190 | 53 | 79 | 41.320755 | 0.776345 | 0.557991 | 0 | 0 | 0 | 0 | 0.241031 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0.157895 | 0.052632 | 0 | 0.263158 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6719d0bfa79571b0f6607ffb14732df599ddd707 | 551 | py | Python | nameservice/migrations/0003_auto_20210217_0156.py | BryantS11/SkyNS | 829c212f0557941299f105b871ffbea58cb8421c | [
"MIT"
] | null | null | null | nameservice/migrations/0003_auto_20210217_0156.py | BryantS11/SkyNS | 829c212f0557941299f105b871ffbea58cb8421c | [
"MIT"
] | null | null | null | nameservice/migrations/0003_auto_20210217_0156.py | BryantS11/SkyNS | 829c212f0557941299f105b871ffbea58cb8421c | [
"MIT"
] | null | null | null | # Generated by Django 3.1.6 on 2021-02-17 01:56
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('nameservice', '0002_auto_20210217_0116'),
]
operations = [
migrations.AlterField(
model_name='u... | 27.55 | 169 | 0.669691 | 62 | 551 | 5.83871 | 0.693548 | 0.066298 | 0.077348 | 0.121547 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071594 | 0.214156 | 551 | 19 | 170 | 29 | 0.764434 | 0.08167 | 0 | 0 | 1 | 0 | 0.208333 | 0.09127 | 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 |
6731282f7d9b0c38932d4cb1c088aed45d7a4abe | 2,361 | py | Python | Python/sum-of-total-strength-of-wizards.py | osmaelo/LeetCode-Solutions | e069176bb52fbcc26d0d2befb78bc7a4cbfb763a | [
"MIT"
] | 4 | 2018-10-11T17:50:56.000Z | 2018-10-11T21:16:44.000Z | Python/sum-of-total-strength-of-wizards.py | osmaelo/LeetCode-Solutions | e069176bb52fbcc26d0d2befb78bc7a4cbfb763a | [
"MIT"
] | null | null | null | Python/sum-of-total-strength-of-wizards.py | osmaelo/LeetCode-Solutions | e069176bb52fbcc26d0d2befb78bc7a4cbfb763a | [
"MIT"
] | 4 | 2018-10-11T18:50:32.000Z | 2018-10-12T00:04:09.000Z | # Time: O(n)
# Space: O(n)
# mono stack, prefix sum, optimized from solution2
class Solution(object):
def totalStrength(self, strength):
"""
:type strength: List[int]
:rtype: int
"""
MOD = 10**9+7
curr = 0
prefix = [0]*(len(strength)+1)
for i in xran... | 42.160714 | 139 | 0.499788 | 347 | 2,361 | 3.400576 | 0.15562 | 0.130508 | 0.071186 | 0.055085 | 0.687288 | 0.661864 | 0.619492 | 0.619492 | 0.619492 | 0.619492 | 0 | 0.045126 | 0.296061 | 2,361 | 55 | 140 | 42.927273 | 0.664862 | 0.192291 | 0 | 0.529412 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0 | 0 | 0.176471 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6731e56ebf3e094c2f4f43bbc5f9471e2f50a780 | 1,435 | py | Python | mayan/apps/sources/models/webform_sources.py | sophiawa/Mayan-EDMS | 42f20576d0c690b645a60bf53c5169cda4264231 | [
"Apache-2.0"
] | 1 | 2021-02-24T15:03:23.000Z | 2021-02-24T15:03:23.000Z | mayan/apps/sources/models/webform_sources.py | sophiawa/Mayan-EDMS | 42f20576d0c690b645a60bf53c5169cda4264231 | [
"Apache-2.0"
] | 10 | 2021-03-20T00:01:17.000Z | 2022-03-12T00:48:43.000Z | mayan/apps/sources/models/webform_sources.py | sophiawa/Mayan-EDMS | 42f20576d0c690b645a60bf53c5169cda4264231 | [
"Apache-2.0"
] | 1 | 2021-04-30T09:44:14.000Z | 2021-04-30T09:44:14.000Z | import logging
from django.db import models
from django.utils.translation import ugettext_lazy as _
from ..classes import SourceUploadedFile
from ..literals import (
SOURCE_CHOICE_WEB_FORM, SOURCE_INTERACTIVE_UNCOMPRESS_CHOICES
)
from .base import InteractiveSource
__all__ = ('WebFormSource',)
logger = logging.... | 31.195652 | 78 | 0.734495 | 186 | 1,435 | 5.451613 | 0.569892 | 0.02071 | 0.029586 | 0.037475 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000874 | 0.202787 | 1,435 | 45 | 79 | 31.888889 | 0.88549 | 0.303136 | 0 | 0 | 0 | 0 | 0.09242 | 0 | 0 | 0 | 0 | 0.022222 | 0 | 1 | 0.04 | false | 0 | 0.24 | 0.04 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
67361639fd47543973a6b3c5414b8f5239d5677d | 488 | py | Python | LeetCode/same-tree/same-tree.py | pdszhh/ACM | 956b3d03a5d3f070ef24c940b7459f5cccb11d6c | [
"MIT"
] | 1 | 2019-05-05T03:51:20.000Z | 2019-05-05T03:51:20.000Z | LeetCode/same-tree/same-tree.py | pdszhh/ACM | 956b3d03a5d3f070ef24c940b7459f5cccb11d6c | [
"MIT"
] | null | null | null | LeetCode/same-tree/same-tree.py | pdszhh/ACM | 956b3d03a5d3f070ef24c940b7459f5cccb11d6c | [
"MIT"
] | null | null | null | # Definition for a binary tree node
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
# @param p, a tree node
# @param q, a tree node
# @return a boolean
def isSameTree(self, p, q):
if p ... | 25.684211 | 67 | 0.528689 | 69 | 488 | 3.681159 | 0.376812 | 0.094488 | 0.070866 | 0.141732 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.358607 | 488 | 18 | 68 | 27.111111 | 0.811502 | 0.465164 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
673f40f7b00d4fb9e0259ac79f6dcf7ac8fdc0b1 | 1,053 | py | Python | archive/try.py | jayagascon/pos-chair | a5eefdb23df97e21bbc72e3f84711c2ab6377357 | [
"CC0-1.0"
] | null | null | null | archive/try.py | jayagascon/pos-chair | a5eefdb23df97e21bbc72e3f84711c2ab6377357 | [
"CC0-1.0"
] | null | null | null | archive/try.py | jayagascon/pos-chair | a5eefdb23df97e21bbc72e3f84711c2ab6377357 | [
"CC0-1.0"
] | null | null | null | """Publishes multiple messages to a Pub/Sub topic with an error handler."""
import time
from google.cloud import pubsub_v1
# TODO(developer)
project_id = ""
topic_id = "poschairdata"
publisher = pubsub_v1.PublisherClient()
topic_path = publisher.topic_path(project_id, topic_id)
futures = dict()
def get_callback(f,... | 27 | 75 | 0.68661 | 145 | 1,053 | 4.889655 | 0.551724 | 0.050776 | 0.039492 | 0.045134 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007168 | 0.205128 | 1,053 | 38 | 76 | 27.710526 | 0.839904 | 0.254511 | 0 | 0 | 0 | 0 | 0.122581 | 0 | 0 | 0 | 0 | 0.026316 | 0 | 1 | 0.083333 | false | 0 | 0.083333 | 0 | 0.208333 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6741444bf4a84c6805f228d8e7ab35e4c441665d | 815 | py | Python | setup.py | rhiaro/bods-babel | c391be94700cdaa50b915e23981f9058097d6bc3 | [
"BSD-3-Clause"
] | null | null | null | setup.py | rhiaro/bods-babel | c391be94700cdaa50b915e23981f9058097d6bc3 | [
"BSD-3-Clause"
] | 3 | 2019-03-29T16:19:25.000Z | 2020-03-11T15:54:33.000Z | setup.py | openownership/bods-babel | c391be94700cdaa50b915e23981f9058097d6bc3 | [
"BSD-3-Clause"
] | null | null | null | from setuptools import setup, find_packages
setup(
name='bods-babel',
version='0.0.1',
author='Open Ownership',
url='https://github.com/openownership/bods-babel',
description='Babel extractors for the Beneficial Ownership Data Standard schema and related components.',
license='BSD',
package... | 28.103448 | 109 | 0.592638 | 80 | 815 | 5.9 | 0.6625 | 0.076271 | 0.067797 | 0.097458 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008475 | 0.276074 | 815 | 29 | 110 | 28.103448 | 0.791525 | 0 | 0 | 0.071429 | 0 | 0 | 0.469363 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.035714 | 0 | 0.035714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6745e847c9c436097189a80d345054ef3160a5de | 713 | py | Python | odp/api_old/routers/media.py | SAEON/Open-Data-Platform | 8509c39c6f65ba18518e825e2359213ec4c67af5 | [
"MIT"
] | null | null | null | odp/api_old/routers/media.py | SAEON/Open-Data-Platform | 8509c39c6f65ba18518e825e2359213ec4c67af5 | [
"MIT"
] | null | null | null | odp/api_old/routers/media.py | SAEON/Open-Data-Platform | 8509c39c6f65ba18518e825e2359213ec4c67af5 | [
"MIT"
] | null | null | null | from fastapi import APIRouter, Depends
from fastapi.exceptions import HTTPException
from fastapi.responses import RedirectResponse
from odp.lib.media import MediaRepoClient
from odp.lib.exceptions import MediaRepositoryError
from odp.api_old.dependencies.media import get_media_repo_client
router = APIRouter()
@rout... | 32.409091 | 76 | 0.786816 | 91 | 713 | 5.923077 | 0.417582 | 0.06679 | 0.111317 | 0.06679 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148668 | 713 | 21 | 77 | 33.952381 | 0.887974 | 0 | 0 | 0 | 0 | 0 | 0.023843 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.352941 | 0 | 0.411765 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
674d67ca8303c29ddc515859076eea7de8932a1c | 428 | py | Python | setup.py | eranroz/bigWigArgmaxOverBed | e6d5ac46936568295328eba0618c18414d6c77fc | [
"MIT"
] | null | null | null | setup.py | eranroz/bigWigArgmaxOverBed | e6d5ac46936568295328eba0618c18414d6c77fc | [
"MIT"
] | null | null | null | setup.py | eranroz/bigWigArgmaxOverBed | e6d5ac46936568295328eba0618c18414d6c77fc | [
"MIT"
] | null | null | null | try:
from setuptools import setup
except:
from distutils.core import setup
setup(
name='bigWigArgmaxOverBed',
version='0.1',
scripts=['bigWigArgmaxOverBed.py'],
url='https://github.com/eranroz/bigWigArgmaxOverBed',
license='MIT',
author='eranroz',
author_email='eranroz@cs.huji.ac.il'... | 25.176471 | 57 | 0.689252 | 50 | 428 | 5.86 | 0.82 | 0.075085 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005634 | 0.170561 | 428 | 16 | 58 | 26.75 | 0.819718 | 0 | 0 | 0 | 0 | 0 | 0.406542 | 0.100467 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.133333 | 0 | 0.133333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
674e94ec3307a9c252e175cd6023314f63b3931f | 141 | py | Python | intermediate-Day15-to-Day32/Day_26-list_dict_comprehensions/dict_challenge/main.py | jawad5311/100-days-Python | 9e2c8990365e680d4dcf579c4d7f5d8f0d804566 | [
"Apache-2.0"
] | null | null | null | intermediate-Day15-to-Day32/Day_26-list_dict_comprehensions/dict_challenge/main.py | jawad5311/100-days-Python | 9e2c8990365e680d4dcf579c4d7f5d8f0d804566 | [
"Apache-2.0"
] | null | null | null | intermediate-Day15-to-Day32/Day_26-list_dict_comprehensions/dict_challenge/main.py | jawad5311/100-days-Python | 9e2c8990365e680d4dcf579c4d7f5d8f0d804566 | [
"Apache-2.0"
] | null | null | null |
sentence = "What is the Airspeed Velocity of an Unladen Swallow?".split()
count = {word:len(word) for word in sentence}
print(count)
| 11.75 | 73 | 0.702128 | 21 | 141 | 4.714286 | 0.809524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.191489 | 141 | 11 | 74 | 12.818182 | 0.868421 | 0 | 0 | 0 | 0 | 0 | 0.382353 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 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 |
674f066eab534c5476ad6fe9b6a1de571c039bdb | 2,695 | py | Python | 2021/day1_1.py | darac/adventofcode | 0b31925dcb4755535255b0f3f00cf3526f0c9d93 | [
"MIT"
] | null | null | null | 2021/day1_1.py | darac/adventofcode | 0b31925dcb4755535255b0f3f00cf3526f0c9d93 | [
"MIT"
] | null | null | null | 2021/day1_1.py | darac/adventofcode | 0b31925dcb4755535255b0f3f00cf3526f0c9d93 | [
"MIT"
] | null | null | null | #!env python3
"""
--- Day 1: Sonar Sweep ---
You're minding your own business on a ship at sea when the overboard alarm goes off!
You rush to see if you can help. Apparently, one of the Elves tripped and accidentally
sent the sleigh keys flying into the ocean!
Before you know it, you're inside a submarine the... | 32.46988 | 96 | 0.728757 | 439 | 2,695 | 4.471526 | 0.462415 | 0.020377 | 0.033622 | 0.012226 | 0.03566 | 0.03566 | 0 | 0 | 0 | 0 | 0 | 0.039449 | 0.219295 | 2,695 | 82 | 97 | 32.865854 | 0.893536 | 0.833766 | 0 | 0 | 0 | 0 | 0.184358 | 0.067039 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.285714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
675dbb22c250de084bb5d81bd29dd5a461d672a4 | 620 | py | Python | expert/forms.py | lamnt-git/bug_bounty | fbb53d266a36c7df68e5f81fbafb0cf34891f764 | [
"MIT"
] | null | null | null | expert/forms.py | lamnt-git/bug_bounty | fbb53d266a36c7df68e5f81fbafb0cf34891f764 | [
"MIT"
] | 7 | 2020-02-12T03:20:31.000Z | 2021-06-10T19:42:26.000Z | expert/forms.py | lamnt-git/bug_bounty | fbb53d266a36c7df68e5f81fbafb0cf34891f764 | [
"MIT"
] | null | null | null | from django import forms
from django.contrib.auth.forms import UserCreationForm, UserChangeForm
from django.db import transaction
from .models import Expert
class ExpertCreationForm(UserCreationForm):
class Meta(UserCreationForm.Meta):
model = Expert
fields = ('email', 'username', 'addr... | 25.833333 | 71 | 0.648387 | 62 | 620 | 6.467742 | 0.5 | 0.074813 | 0.074813 | 0.104738 | 0.169576 | 0.169576 | 0 | 0 | 0 | 0 | 0 | 0 | 0.258065 | 620 | 24 | 72 | 25.833333 | 0.871739 | 0 | 0 | 0.111111 | 0 | 0 | 0.065217 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.222222 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
676013cbf4f52ac7c30faf41992f7941e996adac | 1,559 | py | Python | intro-vietstack/tools/release-programs.py | vietstack/vietstack.github.io | 6571001dc72751ee89115d9ed520c2b9ca2f2b86 | [
"MIT"
] | 1 | 2016-11-29T09:35:50.000Z | 2016-11-29T09:35:50.000Z | intro-vietstack/tools/release-programs.py | vietstack/vietstack.github.io | 6571001dc72751ee89115d9ed520c2b9ca2f2b86 | [
"MIT"
] | 8 | 2016-09-23T01:25:12.000Z | 2016-11-14T04:02:16.000Z | intro-vietstack/tools/release-programs.py | vietstack/vietstack.github.io | 6571001dc72751ee89115d9ed520c2b9ca2f2b86 | [
"MIT"
] | 14 | 2016-09-22T01:46:57.000Z | 2019-09-05T05:42:11.000Z | #!/usr/bin/python
import os
import sys
import argparse
import yaml
releases = [
'austin', 'bexar', 'cactus',
'diablo', 'essex', 'folsom',
'grizzly', 'havana', 'icehouse', 'juno', 'kilo'
]
release_dict = dict((y,x) for x,y in (enumerate(releases)))
def parse_args():
p = argparse.ArgumentParser()
... | 23.984615 | 69 | 0.556767 | 173 | 1,559 | 4.901734 | 0.398844 | 0.04717 | 0.042453 | 0.063679 | 0.233491 | 0.233491 | 0.233491 | 0.233491 | 0.233491 | 0.233491 | 0 | 0 | 0.297627 | 1,559 | 64 | 70 | 24.359375 | 0.774429 | 0.010263 | 0 | 0.145833 | 0 | 0 | 0.154545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.083333 | null | null | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
6760d76f16179b4795af130720b4d9e402960412 | 8,423 | py | Python | con_flask.py | soru13/resuelve | e645b2f59d5df292e633363a535d95ed79e294a3 | [
"MIT"
] | null | null | null | con_flask.py | soru13/resuelve | e645b2f59d5df292e633363a535d95ed79e294a3 | [
"MIT"
] | null | null | null | con_flask.py | soru13/resuelve | e645b2f59d5df292e633363a535d95ed79e294a3 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
#-*-coding:utf-8-*-
from flask import Flask,url_for,request
from flask import render_template #para renderizar templates
import datetime #para el manejo de fechas
from datetime import datetime,timedelta,date
import calendar
import requests #para hacer la peticion a una URL
from dateutil import re... | 38.637615 | 125 | 0.679687 | 1,280 | 8,423 | 4.298438 | 0.195313 | 0.012723 | 0.019084 | 0.063977 | 0.481098 | 0.423301 | 0.400582 | 0.372774 | 0.367684 | 0.350236 | 0 | 0.010673 | 0.165737 | 8,423 | 218 | 126 | 38.637615 | 0.772307 | 0.190075 | 0 | 0.469136 | 0 | 0.012346 | 0.180558 | 0.048904 | 0 | 0 | 0 | 0.004587 | 0 | 0 | null | null | 0.006173 | 0.04321 | null | null | 0.135802 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
676b0d4daf3daa0a55c7fa60537f338b4ba24567 | 515 | py | Python | examples/official_ols.py | FourthLion/pydatasentry | d234c95a86e195b192e8678e364412d7dd06052a | [
"MIT"
] | 6 | 2015-11-08T15:22:17.000Z | 2016-02-15T17:14:45.000Z | examples/official_ols.py | FourthLion/pydatasentry | d234c95a86e195b192e8678e364412d7dd06052a | [
"MIT"
] | 4 | 2015-11-10T02:57:35.000Z | 2015-11-24T05:29:00.000Z | examples/official_ols.py | FourthLion/pydatasentry | d234c95a86e195b192e8678e364412d7dd06052a | [
"MIT"
] | null | null | null | #!/usr/bin/env python
#!/usr/bin/env python
import statsmodels.formula.api as smf
import statsmodels.api as sm
import numpy as np
import pandas
import pydatasentry
if __name__ == "__main__":
pydatasentry.initialize()
df = sm.datasets.get_rdataset("Guerry", "HistData").data
df = df[['Lottery', 'Lite... | 23.409091 | 66 | 0.638835 | 65 | 515 | 4.923077 | 0.584615 | 0.0375 | 0.05625 | 0.09375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.215534 | 515 | 21 | 67 | 24.52381 | 0.792079 | 0.079612 | 0 | 0 | 0 | 0 | 0.180085 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.357143 | 0 | 0.357143 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
676d26e65c5b78b8b4300f365b633861f8b58998 | 2,309 | py | Python | shapenet_modified/modeling/heads/multi_view_voxel_head.py | miaohanwen/MultiViewMeshReconstruction | 4938373056d641944a6a716841e187bfcf954600 | [
"BSD-3-Clause"
] | 7 | 2020-03-06T20:49:36.000Z | 2022-03-09T11:09:31.000Z | shapenet_modified/modeling/heads/multi_view_voxel_head.py | miaohanwen/MultiViewMeshReconstruction | 4938373056d641944a6a716841e187bfcf954600 | [
"BSD-3-Clause"
] | null | null | null | shapenet_modified/modeling/heads/multi_view_voxel_head.py | miaohanwen/MultiViewMeshReconstruction | 4938373056d641944a6a716841e187bfcf954600 | [
"BSD-3-Clause"
] | 2 | 2020-04-14T02:14:25.000Z | 2020-05-06T14:35:41.000Z | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
import fvcore.nn.weight_init as weight_init
import torch
from detectron2.layers import Conv2d, ConvTranspose2d, get_norm
from torch import nn
from torch.nn import functional as F
##
from shapenet.modeling.models.encoder_modified import Encoder
#from... | 41.981818 | 82 | 0.698138 | 309 | 2,309 | 4.954693 | 0.300971 | 0.058785 | 0.042456 | 0.055519 | 0.241672 | 0.142391 | 0 | 0 | 0 | 0 | 0 | 0.019178 | 0.209615 | 2,309 | 54 | 83 | 42.759259 | 0.819726 | 0.376353 | 0 | 0 | 0 | 0 | 0.037456 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0.333333 | 0 | 0.481481 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
677adc0b89c996dd011975676d0edde6944b0c0e | 12,394 | py | Python | telestream_cloud_tts_sdk/telestream_cloud_tts/models/project.py | pandastream/telestream-cloud-python-sdk | ce0ad503299661a0f622661359367173c06889fc | [
"MIT"
] | null | null | null | telestream_cloud_tts_sdk/telestream_cloud_tts/models/project.py | pandastream/telestream-cloud-python-sdk | ce0ad503299661a0f622661359367173c06889fc | [
"MIT"
] | 2 | 2016-07-06T14:13:31.000Z | 2018-03-07T12:54:58.000Z | telestream_cloud_tts_sdk/telestream_cloud_tts/models/project.py | Telestream/telestream-cloud-python-sdk | ce0ad503299661a0f622661359367173c06889fc | [
"MIT"
] | null | null | null | # coding: utf-8
"""
Tts API
Description # noqa: E501
The version of the OpenAPI document: 2.0.0
Contact: cloudsupport@telestream.net
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
from telestream_cloud_tts.configuration import Configuration
... | 28.426606 | 268 | 0.587058 | 1,474 | 12,394 | 4.79308 | 0.109905 | 0.07247 | 0.088323 | 0.086624 | 0.49356 | 0.40368 | 0.378485 | 0.253503 | 0.159094 | 0.090021 | 0 | 0.024326 | 0.323382 | 12,394 | 435 | 269 | 28.491954 | 0.818149 | 0.369292 | 0 | 0.086957 | 1 | 0 | 0.075449 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.163043 | false | 0 | 0.021739 | 0 | 0.304348 | 0.01087 | 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 |
678475b4568683a013e413cbec6fc6346d99b1eb | 1,650 | py | Python | networking_mlnx/db/models/sdn_journal_db.py | stackhpc/networking-mlnx | 6a297fd040ff09e26e477b90f2fb229dc6a691b2 | [
"Apache-2.0"
] | null | null | null | networking_mlnx/db/models/sdn_journal_db.py | stackhpc/networking-mlnx | 6a297fd040ff09e26e477b90f2fb229dc6a691b2 | [
"Apache-2.0"
] | null | null | null | networking_mlnx/db/models/sdn_journal_db.py | stackhpc/networking-mlnx | 6a297fd040ff09e26e477b90f2fb229dc6a691b2 | [
"Apache-2.0"
] | null | null | null | # Copyright 2016 Mellanox Technologies, Ltd
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unles... | 43.421053 | 78 | 0.695152 | 230 | 1,650 | 4.878261 | 0.53913 | 0.064171 | 0.080214 | 0.057041 | 0.145276 | 0.106061 | 0.082888 | 0 | 0 | 0 | 0 | 0.014615 | 0.212121 | 1,650 | 37 | 79 | 44.594595 | 0.848462 | 0.370909 | 0 | 0 | 0 | 0 | 0.010753 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6799afb218d63310011b7f129eed698cd60adb7a | 1,316 | py | Python | app/core/tests/test_models.py | Adepojujoshua/recipe-app-api | e776f142b0b9940bb987782e3aeb67e631c4f543 | [
"MIT"
] | null | null | null | app/core/tests/test_models.py | Adepojujoshua/recipe-app-api | e776f142b0b9940bb987782e3aeb67e631c4f543 | [
"MIT"
] | null | null | null | app/core/tests/test_models.py | Adepojujoshua/recipe-app-api | e776f142b0b9940bb987782e3aeb67e631c4f543 | [
"MIT"
] | null | null | null | from django.test import TestCase
from django.contrib.auth import get_user_model
class ModelTests(TestCase):
def test_create_user_with_email_successful(self):
"""test creating new user is successful"""
email = 'adepojuayobami4real@gmail.com'
password = 'testpwd123'
user =... | 33.74359 | 72 | 0.636778 | 153 | 1,316 | 5.261438 | 0.313725 | 0.043478 | 0.074534 | 0.09441 | 0.238509 | 0.16646 | 0.09441 | 0.09441 | 0 | 0 | 0 | 0.010352 | 0.265957 | 1,316 | 38 | 73 | 34.631579 | 0.822981 | 0.116261 | 0 | 0 | 0 | 0 | 0.084239 | 0.026268 | 0 | 0 | 0 | 0 | 0.230769 | 1 | 0.153846 | false | 0.115385 | 0.076923 | 0 | 0.269231 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
679ae916af6c9f464a6daec6f0877c57190fc08b | 897 | py | Python | tests/admin_views/urls.py | bpeschier/django | f54c0ec06e390dc5bce95fdccbcb51d6423da4f9 | [
"BSD-3-Clause"
] | 1 | 2016-02-13T15:40:02.000Z | 2016-02-13T15:40:02.000Z | tests/admin_views/urls.py | bpeschier/django | f54c0ec06e390dc5bce95fdccbcb51d6423da4f9 | [
"BSD-3-Clause"
] | null | null | null | tests/admin_views/urls.py | bpeschier/django | f54c0ec06e390dc5bce95fdccbcb51d6423da4f9 | [
"BSD-3-Clause"
] | 1 | 2020-04-20T19:50:52.000Z | 2020-04-20T19:50:52.000Z | from django.conf.urls import include, url
from . import admin, custom_has_permission_admin, customadmin, views
urlpatterns = [
url(r'^test_admin/admin/doc/', include('django.contrib.admindocs.urls')),
url(r'^test_admin/admin/secure-view/$', views.secure_view, name='secure_view'),
url(r'^test_admin/admin/s... | 52.764706 | 106 | 0.722408 | 130 | 897 | 4.792308 | 0.276923 | 0.064205 | 0.128411 | 0.208668 | 0.29695 | 0.17817 | 0 | 0 | 0 | 0 | 0 | 0.013514 | 0.092531 | 897 | 16 | 107 | 56.0625 | 0.751843 | 0 | 0 | 0 | 0 | 0 | 0.332219 | 0.16388 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 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 |
679d01abb982e8c1b07eaa41615bd940aa43d6fa | 416 | py | Python | setup.py | jadolg/OfflineSandbox | 216211b03d8f65eece54b119eb7e0db07fcf79a4 | [
"MIT"
] | 2 | 2017-08-30T11:26:31.000Z | 2020-07-16T01:46:35.000Z | setup.py | jadolg/OfflineSandbox | 216211b03d8f65eece54b119eb7e0db07fcf79a4 | [
"MIT"
] | null | null | null | setup.py | jadolg/OfflineSandbox | 216211b03d8f65eece54b119eb7e0db07fcf79a4 | [
"MIT"
] | null | null | null | # -*-coding:utf-8-*-
from setuptools import setup
setup(
name='offline_sandbox',
version='1',
packages=['.', ],
url='https://github.com/jadolg/offline_sandbox',
license='MIT',
author='Jorge Alberto Díaz Orozco',
author_email='diazorozcoj@gmail.com',
description='Decorator to return a d... | 26 | 82 | 0.670673 | 52 | 416 | 5.288462 | 0.846154 | 0.101818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00578 | 0.168269 | 416 | 15 | 83 | 27.733333 | 0.789017 | 0.043269 | 0 | 0 | 0 | 0 | 0.454545 | 0.05303 | 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 |
67a180819e6ce6c307be8c96981bd955ce11f6ec | 16,960 | py | Python | corehq/apps/reports/tasks.py | johan--/commcare-hq | 86ee99c54f55ee94e4c8f2f6f30fc44e10e69ebd | [
"BSD-3-Clause"
] | null | null | null | corehq/apps/reports/tasks.py | johan--/commcare-hq | 86ee99c54f55ee94e4c8f2f6f30fc44e10e69ebd | [
"BSD-3-Clause"
] | 1 | 2022-03-12T01:03:25.000Z | 2022-03-12T01:03:25.000Z | corehq/apps/reports/tasks.py | johan--/commcare-hq | 86ee99c54f55ee94e4c8f2f6f30fc44e10e69ebd | [
"BSD-3-Clause"
] | null | null | null | import hashlib
from django.utils.translation import ugettext as _
from datetime import datetime, timedelta
import uuid
import os
from unidecode import unidecode
from dateutil.parser import parse
import zipfile
import tempfile
from wsgiref.util import FileWrapper
from django.conf import settings
from celery.schedules ... | 38.899083 | 136 | 0.651828 | 2,212 | 16,960 | 4.705696 | 0.208861 | 0.011432 | 0.011528 | 0.009991 | 0.238928 | 0.184552 | 0.141032 | 0.099625 | 0.087713 | 0.067922 | 0 | 0.006638 | 0.236085 | 16,960 | 435 | 137 | 38.988506 | 0.796774 | 0.032547 | 0 | 0.11437 | 0 | 0 | 0.126486 | 0.017397 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.002933 | 0.1261 | 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 |
67a677ada3e5ad8e9ffc9e886faf91f3153ce397 | 480 | py | Python | bitbox/transaction.py | lightswarm124/bitbox-py | 67ee0d216e2630fd44dba83b5233f33c315dd30b | [
"MIT"
] | null | null | null | bitbox/transaction.py | lightswarm124/bitbox-py | 67ee0d216e2630fd44dba83b5233f33c315dd30b | [
"MIT"
] | null | null | null | bitbox/transaction.py | lightswarm124/bitbox-py | 67ee0d216e2630fd44dba83b5233f33c315dd30b | [
"MIT"
] | null | null | null | import requests
from .BITBOX import REST_URL
class Transaction:
def details(txid):
if type(txid) is str:
response = requests.get(REST_URL+"transaction/details/"+txid)
return response.json()
elif type(txid) is list:
response = requests.post(REST_URL+"transaction/d... | 34.285714 | 90 | 0.627083 | 59 | 480 | 5.050847 | 0.610169 | 0.07047 | 0.067114 | 0.167785 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.272917 | 480 | 13 | 91 | 36.923077 | 0.853868 | 0 | 0 | 0.166667 | 0 | 0 | 0.191667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.166667 | 0 | 0.5 | 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 |
67a81911c53524cd0920880a3de71897c4756d5e | 347 | py | Python | setup.py | getchoo/vrms-arch | de31852838f01eb61036893fe54a0ae203454989 | [
"BSD-3-Clause"
] | 89 | 2015-09-16T18:27:50.000Z | 2022-01-20T21:17:49.000Z | setup.py | getchoo/vrms-arch | de31852838f01eb61036893fe54a0ae203454989 | [
"BSD-3-Clause"
] | 12 | 2015-01-26T16:51:43.000Z | 2021-05-08T17:17:18.000Z | setup.py | getchoo/vrms-arch | de31852838f01eb61036893fe54a0ae203454989 | [
"BSD-3-Clause"
] | 10 | 2015-08-05T05:40:19.000Z | 2022-02-12T11:03:00.000Z | #!/usr/bin/env python
from distutils.core import setup
setup(name='vrms-arch',
version='1.0',
description='Virtual Richard M. Stallman for ArchLinux',
author='Andrew Clunis',
author_email='andrew@orospakr.ca',
url='https://github.com/orospakr/vrms-arch',
packages=['vrms_arch'],
... | 24.785714 | 62 | 0.639769 | 43 | 347 | 5.116279 | 0.790698 | 0.109091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00722 | 0.201729 | 347 | 13 | 63 | 26.692308 | 0.787004 | 0.057637 | 0 | 0 | 0 | 0 | 0.411043 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.1 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
67ad6c98fc28f03e6dfdb359659dee58cc5d8a62 | 2,991 | py | Python | bin/cosyd.py | jobcpf/cosy | 572409156bd82195acb74cf93b15213fda223186 | [
"BSD-3-Clause"
] | null | null | null | bin/cosyd.py | jobcpf/cosy | 572409156bd82195acb74cf93b15213fda223186 | [
"BSD-3-Clause"
] | null | null | null | bin/cosyd.py | jobcpf/cosy | 572409156bd82195acb74cf93b15213fda223186 | [
"BSD-3-Clause"
] | null | null | null | #!/home/squirrel/virtualenvs/cosy_env/bin/python
"""
Call Daemon for cosy
@Author:
@Date:
"""
################## Packages #################################### Packages #################################### Variables ##################
import sys
sys.path.append("/home/squirrel/dev/cosy/cosy") # append python projec... | 33.988636 | 146 | 0.469743 | 305 | 2,991 | 4.44918 | 0.311475 | 0.053058 | 0.070744 | 0.092852 | 0.218128 | 0.200442 | 0.200442 | 0.058954 | 0.058954 | 0.058954 | 0 | 0.005712 | 0.23905 | 2,991 | 87 | 147 | 34.37931 | 0.59051 | 0.248746 | 0 | 0.1 | 0 | 0 | 0.179487 | 0.103757 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.15 | null | null | 0.075 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
67af820f1b75e5c0b5c625c02a5c7c26ed6a86d3 | 4,548 | py | Python | dlcli/api/templates.py | outlyerapp/dlcli | 57458b7346a9b9c92cf99628f6c051589a9edb27 | [
"Apache-2.0"
] | 1 | 2017-12-06T11:07:48.000Z | 2017-12-06T11:07:48.000Z | dlcli/api/templates.py | outlyerapp/dlcli | 57458b7346a9b9c92cf99628f6c051589a9edb27 | [
"Apache-2.0"
] | 1 | 2020-02-22T20:29:15.000Z | 2020-02-22T20:29:15.000Z | dlcli/api/templates.py | outlyerapp/dlcli | 57458b7346a9b9c92cf99628f6c051589a9edb27 | [
"Apache-2.0"
] | null | null | null | import os
import logging
import utils
import yaml
import json
import base64
from wrapper import *
logger = logging.getLogger(__name__)
# noinspection PyUnusedLocal
def get_public_templates(url='', org='', account='', key='', timeout=60, **kwargs):
return get(utils.build_api_url(url, org, account,
... | 45.029703 | 113 | 0.603562 | 483 | 4,548 | 5.561077 | 0.153209 | 0.044676 | 0.096798 | 0.059568 | 0.741623 | 0.717424 | 0.629933 | 0.618019 | 0.594564 | 0.47729 | 0 | 0.008603 | 0.233289 | 4,548 | 100 | 114 | 45.48 | 0.761686 | 0.059147 | 0 | 0.318841 | 0 | 0 | 0.132615 | 0.021321 | 0 | 0 | 0 | 0 | 0 | 1 | 0.144928 | false | 0 | 0.101449 | 0.086957 | 0.391304 | 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 |
67b14dcdfcbcc05d3600c41dcd55e0a2470f514c | 12,046 | py | Python | pycqed/instrument_drivers/virtual_instruments/sim_control_CZ_v2.py | nuttamas/PycQED_py3 | 1ee35c7428d36ed42ba4afb5d4bda98140b2283e | [
"MIT"
] | 60 | 2016-08-03T10:00:18.000Z | 2021-11-10T11:46:16.000Z | pycqed/instrument_drivers/virtual_instruments/sim_control_CZ_v2.py | nuttamas/PycQED_py3 | 1ee35c7428d36ed42ba4afb5d4bda98140b2283e | [
"MIT"
] | 512 | 2016-08-03T17:10:02.000Z | 2022-03-31T14:03:43.000Z | pycqed/instrument_drivers/virtual_instruments/sim_control_CZ_v2.py | nuttamas/PycQED_py3 | 1ee35c7428d36ed42ba4afb5d4bda98140b2283e | [
"MIT"
] | 34 | 2016-10-19T12:00:52.000Z | 2022-03-19T04:43:26.000Z | from qcodes.instrument.base import Instrument
from qcodes.utils import validators as vals
from qcodes.instrument.parameter import ManualParameter
import numpy as np
class SimControlCZ_v2(Instrument):
"""
Noise and other parameters for cz_superoperator_simulation_v2
Created for VCZ simulation
"""
... | 37.064615 | 347 | 0.585755 | 1,309 | 12,046 | 5.211612 | 0.240642 | 0.037965 | 0.086778 | 0.164468 | 0.462474 | 0.444444 | 0.425388 | 0.409118 | 0.35752 | 0.349018 | 0 | 0.011431 | 0.331894 | 12,046 | 324 | 348 | 37.179012 | 0.836233 | 0.039847 | 0 | 0.530035 | 0 | 0.035336 | 0.3183 | 0.037192 | 0 | 0 | 0 | 0 | 0 | 1 | 0.007067 | false | 0 | 0.014134 | 0 | 0.024735 | 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 |
67b4d07fc59a9c4503f2081d10f0529e2946e78e | 223 | py | Python | res/TensorFlowPythonExamples/examples/gather/__init__.py | glistening/ONE-1 | cadf3a4da4f4340081862abbd3900af7c4b0e22d | [
"Apache-2.0"
] | null | null | null | res/TensorFlowPythonExamples/examples/gather/__init__.py | glistening/ONE-1 | cadf3a4da4f4340081862abbd3900af7c4b0e22d | [
"Apache-2.0"
] | null | null | null | res/TensorFlowPythonExamples/examples/gather/__init__.py | glistening/ONE-1 | cadf3a4da4f4340081862abbd3900af7c4b0e22d | [
"Apache-2.0"
] | null | null | null | import tensorflow as tf
tf.compat.v1.disable_eager_execution()
param_ = tf.compat.v1.placeholder(dtype=tf.float32, shape=(1, 2, 3, 4), name="Hole")
indices_ = tf.constant([1, 2])
op_ = tf.gather(param_, indices_, axis=2)
| 27.875 | 84 | 0.721973 | 37 | 223 | 4.162162 | 0.675676 | 0.103896 | 0.12987 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055276 | 0.107623 | 223 | 7 | 85 | 31.857143 | 0.718593 | 0 | 0 | 0 | 0 | 0 | 0.017937 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.