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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b63cb88629792598f70f4c211cdf1bcce6b7b5bd | 1,381 | py | Python | _test/test_yaml.py | adityasaky/ssl-site | f62fc6ed332568c83af50be157ecee1665c02ee9 | [
"MIT"
] | 1 | 2020-02-22T11:46:51.000Z | 2020-02-22T11:46:51.000Z | _test/test_yaml.py | adityasaky/ssl-site | f62fc6ed332568c83af50be157ecee1665c02ee9 | [
"MIT"
] | 48 | 2018-10-08T20:15:06.000Z | 2022-03-28T18:46:09.000Z | _test/test_yaml.py | adityasaky/ssl-site | f62fc6ed332568c83af50be157ecee1665c02ee9 | [
"MIT"
] | 11 | 2018-10-08T19:57:08.000Z | 2021-09-15T17:30:04.000Z | #!/usr/bin/env python
import yamale
import os
from colorama import Fore, Style
test_dir = os.path.dirname(os.path.abspath(__file__))
test_data_dir = os.path.join(test_dir, 'data')
prod_data = os.path.join(test_dir, '..', '_data', 'data.yml')
schema_file = os.path.join(test_dir, 'yamale_schema.yml')
schema = yamale.ma... | 26.557692 | 88 | 0.676322 | 202 | 1,381 | 4.366337 | 0.381188 | 0.040816 | 0.068027 | 0.063492 | 0.171202 | 0.131519 | 0.0839 | 0 | 0 | 0 | 0 | 0.012456 | 0.186097 | 1,381 | 51 | 89 | 27.078431 | 0.772242 | 0.014482 | 0 | 0.166667 | 0 | 0 | 0.233824 | 0.110294 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.142857 | 0.071429 | 0 | 0.071429 | 0.190476 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
b63cc097ce8db21e82027868cf015f345dc9b30d | 1,040 | py | Python | Python 3 - Estrutura de Controle/Desafio 44.py | Paimonz/Python-Estudos | bbc4d7abb2eebff7f160eac54a290fd9ea7a1cff | [
"MIT"
] | null | null | null | Python 3 - Estrutura de Controle/Desafio 44.py | Paimonz/Python-Estudos | bbc4d7abb2eebff7f160eac54a290fd9ea7a1cff | [
"MIT"
] | null | null | null | Python 3 - Estrutura de Controle/Desafio 44.py | Paimonz/Python-Estudos | bbc4d7abb2eebff7f160eac54a290fd9ea7a1cff | [
"MIT"
] | null | null | null | print ('\n')
print ('_-_'*15)
print (' '*15 + 'LOJAS DIAS' + ' '*15)
print ('_-_'*15)
v = float (input ('\nDigite o valor da sua compra RS:\n'))
print ('\n [ 1 ] à vista dinheiro/cheque')
print (' [ 2 ] à vista no cartão')
print (' [ 3 ] 2x no cartão')
print (' [ 4 ] 3x ou mais')
p = int(input('\nQual será a forma de... | 32.5 | 77 | 0.544231 | 183 | 1,040 | 3.071038 | 0.355191 | 0.042705 | 0.064057 | 0.106762 | 0.327402 | 0.327402 | 0.327402 | 0.327402 | 0.327402 | 0.327402 | 0 | 0.054795 | 0.227885 | 1,040 | 32 | 78 | 32.5 | 0.645081 | 0 | 0 | 0.178571 | 0 | 0 | 0.482229 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.535714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b641a8b040f76ee2793fbaf2372276c24b38f15a | 4,188 | py | Python | {{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/customadmin/views/users.py | tsantor/cookiecutter-django | 6aa4b4f2accb8ecb969189e0f54f8e490dbc262b | [
"BSD-3-Clause"
] | null | null | null | {{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/customadmin/views/users.py | tsantor/cookiecutter-django | 6aa4b4f2accb8ecb969189e0f54f8e490dbc262b | [
"BSD-3-Clause"
] | 26 | 2021-02-01T08:37:50.000Z | 2022-02-22T20:59:39.000Z | {{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/customadmin/views/users.py | tsantor/cookiecutter-django | 6aa4b4f2accb8ecb969189e0f54f8e490dbc262b | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from django.contrib.auth import get_user_model
from django.contrib.auth.forms import AdminPasswordChangeForm
from django.contrib.auth.mixins import LoginRequiredMixin
from django.db.models import Q
from django.http import JsonResponse
from django.template.loader import get_template
from django_d... | 32.465116 | 83 | 0.626791 | 442 | 4,188 | 5.744344 | 0.312217 | 0.02757 | 0.030721 | 0.053171 | 0.283576 | 0.196928 | 0.169358 | 0.169358 | 0.169358 | 0.169358 | 0 | 0.000934 | 0.232808 | 4,188 | 128 | 84 | 32.71875 | 0.789294 | 0.130134 | 0 | 0.247059 | 0 | 0 | 0.12873 | 0.078408 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.047059 | 0.117647 | 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 |
b64614ce545ac97391c690ab55fa1902b3018e1b | 446 | py | Python | vdb/extensions/amd64.py | rnui2k/vivisect | b7b00f2d03defef28b4b8c912e3a8016e956c5f7 | [
"ECL-2.0",
"Apache-2.0"
] | 716 | 2015-01-01T14:41:11.000Z | 2022-03-28T06:51:50.000Z | vdb/extensions/amd64.py | rnui2k/vivisect | b7b00f2d03defef28b4b8c912e3a8016e956c5f7 | [
"ECL-2.0",
"Apache-2.0"
] | 266 | 2015-01-01T15:07:27.000Z | 2022-03-30T15:19:26.000Z | vdb/extensions/amd64.py | rnui2k/vivisect | b7b00f2d03defef28b4b8c912e3a8016e956c5f7 | [
"ECL-2.0",
"Apache-2.0"
] | 159 | 2015-01-01T16:19:44.000Z | 2022-03-21T21:55:34.000Z | import vdb.extensions.i386 as v_ext_i386
import vdb.extensions.i386 as vdb_ext_i386
def vdbExtension(vdb, trace):
vdb.addCmdAlias('db','mem -F bytes')
vdb.addCmdAlias('dw','mem -F u_int_16')
vdb.addCmdAlias('dd','mem -F u_int_32')
vdb.addCmdAlias('dq','mem -F u_int_64')
vdb.addCmdAlias('dr','mem -... | 31.857143 | 57 | 0.695067 | 71 | 446 | 4.197183 | 0.43662 | 0.281879 | 0.050336 | 0.080537 | 0.167785 | 0 | 0 | 0 | 0 | 0 | 0 | 0.060052 | 0.141256 | 446 | 13 | 58 | 34.307692 | 0.718016 | 0 | 0 | 0 | 0 | 0 | 0.255605 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.2 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b64cd35d3aa34430b25dfc5cba782f6ab9a91a33 | 384 | py | Python | deepscratch/models/layers/activations/softmax.py | arnaldog12/deeplearning-from-scratch | afa1e3796f73b86d3b17bfbc88b7b57a5346fb9b | [
"MIT"
] | 2 | 2019-03-14T16:08:18.000Z | 2020-12-07T10:00:32.000Z | deepscratch/models/layers/activations/softmax.py | arnaldog12/deeplearning-from-scratch | afa1e3796f73b86d3b17bfbc88b7b57a5346fb9b | [
"MIT"
] | null | null | null | deepscratch/models/layers/activations/softmax.py | arnaldog12/deeplearning-from-scratch | afa1e3796f73b86d3b17bfbc88b7b57a5346fb9b | [
"MIT"
] | null | null | null | import numpy as np
from deepscratch.models.layers.activations.activation import Activation
class Softmax(Activation):
def __call__(self, data):
exp = np.exp(data - np.max(data, axis=-1, keepdims=True))
return exp / np.sum(exp, axis=-1, keepdims=True)
def backward(self, data):
soft... | 32 | 71 | 0.664063 | 51 | 384 | 4.843137 | 0.490196 | 0.064777 | 0.105263 | 0.137652 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01 | 0.21875 | 384 | 12 | 72 | 32 | 0.813333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b6516c0b1669563ef74e2678740b65c37311572b | 6,907 | py | Python | src/azure-cli/azure/cli/command_modules/acr/token.py | mdewan/azure-cli | 2d5aa88974803a9629ed3950694ef8a6dbd013a0 | [
"MIT"
] | null | null | null | src/azure-cli/azure/cli/command_modules/acr/token.py | mdewan/azure-cli | 2d5aa88974803a9629ed3950694ef8a6dbd013a0 | [
"MIT"
] | null | null | null | src/azure-cli/azure/cli/command_modules/acr/token.py | mdewan/azure-cli | 2d5aa88974803a9629ed3950694ef8a6dbd013a0 | [
"MIT"
] | null | null | null | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | 33.692683 | 116 | 0.613436 | 734 | 6,907 | 5.388283 | 0.174387 | 0.121365 | 0.163338 | 0.063717 | 0.593173 | 0.526422 | 0.496334 | 0.467509 | 0.467509 | 0.42402 | 0 | 0.00475 | 0.298972 | 6,907 | 204 | 117 | 33.857843 | 0.812061 | 0.07934 | 0 | 0.513514 | 0 | 0 | 0.068189 | 0.015276 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047297 | false | 0.121622 | 0.047297 | 0 | 0.148649 | 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 |
b6622a03e2fac02aec02af92527ed0218f277f71 | 3,130 | py | Python | decision_trees/utils/constants.py | PUTvision/decision_tree | 20db7bed673e7b12fd9c992cda048138ef6bad43 | [
"MIT"
] | 6 | 2018-02-26T11:47:51.000Z | 2021-11-30T13:36:08.000Z | decision_trees/utils/constants.py | Michal-Fularz/decision_tree | 20db7bed673e7b12fd9c992cda048138ef6bad43 | [
"MIT"
] | 1 | 2018-08-09T12:59:42.000Z | 2018-08-09T12:59:42.000Z | decision_trees/utils/constants.py | PUTvision/decision_tree | 20db7bed673e7b12fd9c992cda048138ef6bad43 | [
"MIT"
] | 5 | 2017-10-31T02:32:23.000Z | 2018-12-12T09:09:08.000Z | from typing import Dict, Optional
from enum import Enum, auto
from sklearn.ensemble import RandomForestClassifier, RandomForestRegressor
from sklearn.tree import DecisionTreeClassifier
class ClassifierType(Enum):
DECISION_TREE = auto()
RANDOM_FOREST = auto()
RANDOM_FOREST_REGRESSOR = auto()
class GridS... | 39.620253 | 120 | 0.610224 | 409 | 3,130 | 4.476773 | 0.317848 | 0.043692 | 0.091753 | 0.037138 | 0.522665 | 0.522665 | 0.471327 | 0.471327 | 0.471327 | 0.397051 | 0 | 0.10953 | 0.259105 | 3,130 | 78 | 121 | 40.128205 | 0.680035 | 0.28754 | 0 | 0.48 | 0 | 0 | 0.092349 | 0 | 0 | 0 | 0 | 0.012821 | 0 | 1 | 0.04 | false | 0 | 0.08 | 0 | 0.32 | 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 |
b6676156bc5e4a9338e6fe3db38672c7fc14c8b0 | 699 | py | Python | dynamic_programming/MinNoOfINsertionAndDeletion.py | itsvinayak/cracking_the_codeing_interview | 7347f7e831b306c4c4314bd2d41809a5b5741497 | [
"MIT"
] | 4 | 2020-07-19T03:49:43.000Z | 2021-06-29T07:13:39.000Z | dynamic_programming/MinNoOfINsertionAndDeletion.py | itsvinayak/cracking_the_codeing_interview | 7347f7e831b306c4c4314bd2d41809a5b5741497 | [
"MIT"
] | 1 | 2020-04-01T06:40:45.000Z | 2020-04-01T06:41:22.000Z | dynamic_programming/MinNoOfINsertionAndDeletion.py | itsvinayak/cracking_the_codeing_interview | 7347f7e831b306c4c4314bd2d41809a5b5741497 | [
"MIT"
] | 1 | 2020-08-14T18:14:04.000Z | 2020-08-14T18:14:04.000Z | def MinNumberInsertionAndDel(a, b, x, y):
dp = [[None for _ in range(y + 1)] for _ in range(x + 1)]
for i in range(x + 1):
for j in range(y + 1):
if i == 0 or j == 0:
dp[i][j] = 0
elif a[i - 1] == b[j - 1]:
dp[i][j] = 1 + dp[i - 1][j - 1]
... | 26.884615 | 62 | 0.412017 | 109 | 699 | 2.541284 | 0.284404 | 0.064982 | 0.057762 | 0.194946 | 0.288809 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033097 | 0.39485 | 699 | 25 | 63 | 27.96 | 0.621749 | 0 | 0 | 0 | 0 | 0 | 0.011869 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0 | 0 | 0.157895 | 0.052632 | 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 |
b672c6f49769d46fac54340233670208efe19045 | 13,751 | py | Python | RecoHGCal/GraphReco/test/GSD_GUN.py | cms-pepr/cmssw | bdbd13b412703f8750d044c66ac23d1d723c1165 | [
"Apache-2.0"
] | 1 | 2019-12-19T13:43:44.000Z | 2019-12-19T13:43:44.000Z | RecoHGCal/GraphReco/test/GSD_GUN.py | cms-pepr/cmssw | bdbd13b412703f8750d044c66ac23d1d723c1165 | [
"Apache-2.0"
] | 7 | 2020-02-10T18:55:34.000Z | 2022-01-16T20:08:44.000Z | RecoHGCal/GraphReco/test/GSD_GUN.py | cms-pepr/cmssw | bdbd13b412703f8750d044c66ac23d1d723c1165 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
import os
import math
import FWCore.ParameterSet.Config as cms
from FWCore.ParameterSet.VarParsing import VarParsing
###### config from runTheMatrix
from Configuration.Eras.Era_Phase2C9_cff import Phase2C9
process = cms.Process('HLT',Phase2C9)
# import of standard configurations
process.load('Conf... | 44.791531 | 1,653 | 0.764017 | 1,537 | 13,751 | 6.718933 | 0.320104 | 0.049966 | 0.020335 | 0.043672 | 0.278106 | 0.215067 | 0.215067 | 0.150479 | 0.13944 | 0.12782 | 0 | 0.06489 | 0.126973 | 13,751 | 306 | 1,654 | 44.937909 | 0.795335 | 0.207694 | 0 | 0.098214 | 0 | 0 | 0.243941 | 0.177034 | 0 | 0 | 0 | 0 | 0 | 1 | 0.004464 | false | 0 | 0.040179 | 0.004464 | 0.049107 | 0.004464 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b67e9e546757b35e3df3df9d111669594d22b583 | 803 | py | Python | notes/models.py | Ratgor/iLikeit-voting-platform | 34c833d89b2dc04672db23a134c126a809446a0c | [
"FSFAP"
] | null | null | null | notes/models.py | Ratgor/iLikeit-voting-platform | 34c833d89b2dc04672db23a134c126a809446a0c | [
"FSFAP"
] | null | null | null | notes/models.py | Ratgor/iLikeit-voting-platform | 34c833d89b2dc04672db23a134c126a809446a0c | [
"FSFAP"
] | null | null | null | from django.db import models
# Create your models here.
# RTG: example from http://v1k45.com/blog/modern-django-part-3-creating-an-api-and-integrating-with-react/
# RTG: example from http://v1k45.com/blog/modern-django-part-4-adding-authentication-to-react-spa-using-drf/
from django.contrib.auth.models import... | 36.5 | 109 | 0.62142 | 97 | 803 | 5.051546 | 0.659794 | 0.040816 | 0.057143 | 0.073469 | 0.187755 | 0.187755 | 0.187755 | 0.187755 | 0.187755 | 0.187755 | 0 | 0.013722 | 0.273973 | 803 | 21 | 110 | 38.238095 | 0.826758 | 0.293898 | 0 | 0 | 0 | 0 | 0.009225 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.153846 | 0.076923 | 0.692308 | 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 |
b68162c2c306c48d25d597db626a8453aac6c24e | 5,498 | py | Python | tests/api.py | SYNchroACK/django-rest-framework-client | 54fce962df9e39217dbc77090fd4d2be7d5a028d | [
"MIT"
] | null | null | null | tests/api.py | SYNchroACK/django-rest-framework-client | 54fce962df9e39217dbc77090fd4d2be7d5a028d | [
"MIT"
] | null | null | null | tests/api.py | SYNchroACK/django-rest-framework-client | 54fce962df9e39217dbc77090fd4d2be7d5a028d | [
"MIT"
] | null | null | null | import sys
import json
import mock
import requests
import requests_mock
import unittest2 as unittest
from drf_client.connection import Api
from drf_client.exceptions import HttpClientError, HttpServerError
class ApiTestCase(unittest.TestCase):
api = None
def setUp(self):
options = {
'DOM... | 29.089947 | 92 | 0.550382 | 685 | 5,498 | 4.344526 | 0.129927 | 0.063508 | 0.085685 | 0.102823 | 0.755376 | 0.704637 | 0.650874 | 0.614583 | 0.589046 | 0.55746 | 0 | 0.010766 | 0.273554 | 5,498 | 188 | 93 | 29.244681 | 0.734352 | 0 | 0 | 0.456376 | 0 | 0 | 0.179916 | 0 | 0 | 0 | 0 | 0 | 0.154362 | 1 | 0.100671 | false | 0.013423 | 0.053691 | 0 | 0.167785 | 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 |
b6866a8bc0291b61d1c7e8f59125f8190e7ce8ed | 10,679 | py | Python | provider/oauth2/forms.py | thisismkh/django-graphql-oauth2 | ca998dd1e45be87e3a8a8a454b5c506969f2fed8 | [
"MIT"
] | null | null | null | provider/oauth2/forms.py | thisismkh/django-graphql-oauth2 | ca998dd1e45be87e3a8a8a454b5c506969f2fed8 | [
"MIT"
] | null | null | null | provider/oauth2/forms.py | thisismkh/django-graphql-oauth2 | ca998dd1e45be87e3a8a8a454b5c506969f2fed8 | [
"MIT"
] | null | null | null | from six import string_types
from django import forms
from django.contrib.auth import authenticate
from django.conf import settings
from django.utils.translation import ugettext as _
from django.utils import timezone
from graphql import GraphQLError
from provider.constants import RESPONSE_TYPE_CHOICES, SCOPES, PUBLIC, ... | 30.338068 | 85 | 0.626557 | 1,213 | 10,679 | 5.368508 | 0.17972 | 0.042383 | 0.057432 | 0.070025 | 0.314957 | 0.288851 | 0.224662 | 0.198096 | 0.135903 | 0.124846 | 0 | 0.001698 | 0.282892 | 10,679 | 351 | 86 | 30.424501 | 0.848655 | 0.093548 | 0 | 0.302752 | 0 | 0 | 0.068074 | 0.005169 | 0 | 0 | 0 | 0 | 0 | 1 | 0.09633 | false | 0.050459 | 0.050459 | 0 | 0.389908 | 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 |
b6883f7143a8d8419b0e6cfab69c9e235a17699b | 325 | py | Python | leetcode/7_reverse.py | James992927108/practice | f7af14f8d7550bff110a6e1424fd44cd8803252d | [
"MIT"
] | null | null | null | leetcode/7_reverse.py | James992927108/practice | f7af14f8d7550bff110a6e1424fd44cd8803252d | [
"MIT"
] | null | null | null | leetcode/7_reverse.py | James992927108/practice | f7af14f8d7550bff110a6e1424fd44cd8803252d | [
"MIT"
] | null | null | null |
def reverse(x):
"""
:type x: int
:rtype: int
"""
if x < 0:
x = str(x)[:0:-1]
x = int("-" + x)
else:
x = str(x)[::-1]
x = int(x)
if x > 2**31 - 1 or x < -2**31:
return 0
return x
if __name__ == '__main__':
x = 1534236469
y = reverse(x)
pri... | 16.25 | 35 | 0.396923 | 50 | 325 | 2.42 | 0.4 | 0.099174 | 0.082645 | 0.099174 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116402 | 0.418462 | 325 | 20 | 36 | 16.25 | 0.52381 | 0 | 0 | 0 | 0 | 0 | 0.032028 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | 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 |
b68b558db327d36ac0ea825b24b9a74942e2c820 | 12,696 | py | Python | app.py | miguescri/HackUPC21_Social_app | 8ae1d562a70ca54fe6abccc5fad0665b49582881 | [
"MIT"
] | null | null | null | app.py | miguescri/HackUPC21_Social_app | 8ae1d562a70ca54fe6abccc5fad0665b49582881 | [
"MIT"
] | null | null | null | app.py | miguescri/HackUPC21_Social_app | 8ae1d562a70ca54fe6abccc5fad0665b49582881 | [
"MIT"
] | null | null | null | import random
import string
from typing import Optional, List
from datetime import datetime, timedelta
from fastapi import Depends, FastAPI, HTTPException, status
from fastapi.security import OAuth2PasswordBearer, OAuth2PasswordRequestForm
from fastapi.middleware.cors import CORSMiddleware
from jose import JWTError, jw... | 31.819549 | 119 | 0.686515 | 1,575 | 12,696 | 5.304762 | 0.177143 | 0.04608 | 0.047876 | 0.025853 | 0.398324 | 0.352603 | 0.292759 | 0.278995 | 0.252663 | 0.239737 | 0 | 0.010808 | 0.212902 | 12,696 | 398 | 120 | 31.899497 | 0.825278 | 0.027253 | 0 | 0.313993 | 0 | 0 | 0.057289 | 0.005024 | 0 | 0 | 0 | 0.002513 | 0 | 1 | 0.068259 | false | 0.051195 | 0.044369 | 0.006826 | 0.290102 | 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 |
b697acf1081b32fd50f9079ffa8da51dea4fcb7e | 6,047 | py | Python | bw_bindings.py | Laharah/bw-bindings | b6e23e1bfa201ea8ed07cddd009d812103994703 | [
"MIT"
] | null | null | null | bw_bindings.py | Laharah/bw-bindings | b6e23e1bfa201ea8ed07cddd009d812103994703 | [
"MIT"
] | null | null | null | bw_bindings.py | Laharah/bw-bindings | b6e23e1bfa201ea8ed07cddd009d812103994703 | [
"MIT"
] | null | null | null | import subprocess
import json
from typing import Union, Optional, Any, Dict, Literal
from functools import wraps
from pynentry import PynEntry
# generic bitwarden bindings error
class BitwardenError(Exception):
pass
class BitwardenPasswordError(BitwardenError):
pass
class BitwardenNotLoggedInError(Bitward... | 27.99537 | 92 | 0.560112 | 656 | 6,047 | 5.10061 | 0.306402 | 0.026898 | 0.020323 | 0.022714 | 0.078004 | 0.046922 | 0.031082 | 0.031082 | 0.031082 | 0.031082 | 0 | 0.004208 | 0.3319 | 6,047 | 215 | 93 | 28.125581 | 0.82401 | 0.12254 | 0 | 0.201149 | 0 | 0 | 0.235448 | 0 | 0 | 0 | 0 | 0 | 0.017241 | 1 | 0.068966 | false | 0.109195 | 0.028736 | 0 | 0.178161 | 0.005747 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b6990f2e422a26f284a6c336633e69908ff83cb1 | 6,354 | py | Python | {{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}.py | hackebrot/cookiedozer | d346bfab167a65849c853bfcb5a90ecdfbcffb33 | [
"MIT"
] | 54 | 2015-02-21T22:59:31.000Z | 2022-02-01T14:02:26.000Z | {{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}.py | hackebrot/cookiedozer | d346bfab167a65849c853bfcb5a90ecdfbcffb33 | [
"MIT"
] | 2 | 2016-12-21T08:12:38.000Z | 2016-12-28T11:09:18.000Z | {{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}.py | hackebrot/cookiedozer | d346bfab167a65849c853bfcb5a90ecdfbcffb33 | [
"MIT"
] | 12 | 2015-03-09T23:15:21.000Z | 2021-08-13T18:28:12.000Z | # -*- coding: utf-8 -*-
import webbrowser
import gettext
import sys
import kivy
kivy.require('{{cookiecutter.kivy_version}}')
from kivy.animation import Animation
from kivy.app import App
from kivy.clock import Clock
from kivy.logger import Logger
from kivy.properties import (
BoundedNumericProperty, ObjectPrope... | 31.929648 | 79 | 0.641171 | 784 | 6,354 | 5.058673 | 0.297194 | 0.022693 | 0.025214 | 0.030257 | 0.077156 | 0.027231 | 0.027231 | 0.027231 | 0.027231 | 0 | 0 | 0.009045 | 0.25181 | 6,354 | 198 | 80 | 32.090909 | 0.8252 | 0.003305 | 0 | 0.018018 | 0 | 0 | 0.086251 | 0.01878 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.009009 | 0.117117 | 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 |
b699567534c97d8c6b6930f8299f333c78b90e9c | 699 | py | Python | setup.py | liquidcronos/RoGaTa-Engine | 3704bbd85c9d07f180f7e7516e282468ac76b557 | [
"MIT"
] | 1 | 2021-07-04T14:04:32.000Z | 2021-07-04T14:04:32.000Z | setup.py | liquidcronos/RoGaTa-Engine | 3704bbd85c9d07f180f7e7516e282468ac76b557 | [
"MIT"
] | 13 | 2021-03-01T16:49:19.000Z | 2021-03-13T15:41:01.000Z | setup.py | liquidcronos/RoGaTa-Engine | 3704bbd85c9d07f180f7e7516e282468ac76b557 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup
setup_args = generate_distutils_setup(
packages=['rogata_engine'],
package_dir={'': 'src'}
)
setup(**setup_args)
'''
with open("requirements.txt", "r") as fh:
requirements = fh.readlines... | 25.888889 | 73 | 0.741059 | 95 | 699 | 5.273684 | 0.694737 | 0.067864 | 0.087824 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004762 | 0.098712 | 699 | 26 | 74 | 26.884615 | 0.790476 | 0.028612 | 0 | 0 | 1 | 0 | 0.071749 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b6ad316bc38dafd526fb0e0e8bf8ac49f463c56d | 447 | py | Python | teleport_deer.py | nightduck/AirSim | 2ba7124ceff7607f23463f483cd3e2cbe026d0ca | [
"MIT"
] | null | null | null | teleport_deer.py | nightduck/AirSim | 2ba7124ceff7607f23463f483cd3e2cbe026d0ca | [
"MIT"
] | 14 | 2021-02-25T22:32:34.000Z | 2021-08-20T17:17:12.000Z | teleport_deer.py | nightduck/AirSim | 2ba7124ceff7607f23463f483cd3e2cbe026d0ca | [
"MIT"
] | null | null | null | import airsim
import rospy
import time
from math import pi, sqrt, cos, sin
import io
import numpy as np
from PIL import Image
from airsim_ros_pkgs.msg import GimbalAngleEulerCmd
try:
drone = airsim.MultirotorClient()
drone.confirmConnection()
except Exception as err:
print("Please start airsim first")
... | 24.833333 | 95 | 0.765101 | 65 | 447 | 5.215385 | 0.646154 | 0.017699 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031332 | 0.143177 | 447 | 18 | 95 | 24.833333 | 0.853786 | 0 | 0 | 0 | 0 | 0 | 0.087054 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
b6afecc0d05fd19842b87d10db09ed6a6c20464c | 507 | py | Python | config.py | lcarotenuto/XPensesBot | 49545da41a6f70b9fc686b406ced40ba47815b43 | [
"MIT"
] | null | null | null | config.py | lcarotenuto/XPensesBot | 49545da41a6f70b9fc686b406ced40ba47815b43 | [
"MIT"
] | null | null | null | config.py | lcarotenuto/XPensesBot | 49545da41a6f70b9fc686b406ced40ba47815b43 | [
"MIT"
] | null | null | null | VARS = {
'CLIENT_SECRET_PATH': 'res/client_secret.json',
'SCOPES': 'https://www.googleapis.com/auth/spreadsheets',
'APPLICATION_NAME': 'Google Sheets API Python Quickstart',
'DISCOVERY_URL': 'https://sheets.googleapis.com/$discovery/rest?version=v4'
}
CONSTANTS = {
'CREDENTIALS_FILENAME': 'sheets.go... | 33.8 | 79 | 0.70217 | 51 | 507 | 6.843137 | 0.745098 | 0.111748 | 0.108883 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034247 | 0.136095 | 507 | 15 | 80 | 33.8 | 0.762557 | 0 | 0 | 0 | 0 | 0 | 0.71063 | 0.216535 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b6b24c1aab1cf2100a33ae30349c9b346693f214 | 328 | py | Python | movie_rating/movies/urls.py | AnwarRezk/Graduation-Project-part-1 | 4ebfd3390e4a827744ea2dc15c61f6922841601d | [
"MIT"
] | null | null | null | movie_rating/movies/urls.py | AnwarRezk/Graduation-Project-part-1 | 4ebfd3390e4a827744ea2dc15c61f6922841601d | [
"MIT"
] | null | null | null | movie_rating/movies/urls.py | AnwarRezk/Graduation-Project-part-1 | 4ebfd3390e4a827744ea2dc15c61f6922841601d | [
"MIT"
] | 1 | 2021-03-26T10:50:21.000Z | 2021-03-26T10:50:21.000Z | from django.urls import path
from . import views
urlpatterns = [
path('', views.home, name='home'),
path('movie/<int:pk>/', views.movie_details, name='movie-details'),
path('search/', views.SearchView.as_view(), name='search'),
path('search/results/', views.SearchResultsView.as_view(), name='search_res... | 36.444444 | 85 | 0.685976 | 42 | 328 | 5.261905 | 0.452381 | 0.108597 | 0.090498 | 0.144796 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121951 | 328 | 9 | 86 | 36.444444 | 0.767361 | 0 | 0 | 0 | 0 | 0 | 0.224924 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 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 |
b6b4598941ba8e8c5200ec16ed660a936033bc94 | 661 | py | Python | app/main/model/review.py | GruppoProgettoTMM201920-Parthenopeddit/RESTPlusAPI | ea52df40b2445df6e91fd4dbb85662a6cb91edcf | [
"Apache-2.0"
] | null | null | null | app/main/model/review.py | GruppoProgettoTMM201920-Parthenopeddit/RESTPlusAPI | ea52df40b2445df6e91fd4dbb85662a6cb91edcf | [
"Apache-2.0"
] | null | null | null | app/main/model/review.py | GruppoProgettoTMM201920-Parthenopeddit/RESTPlusAPI | ea52df40b2445df6e91fd4dbb85662a6cb91edcf | [
"Apache-2.0"
] | null | null | null | from .content import Content
from .. import db
class Review(Content):
__tablename__ = "review"
# DATA COLUMNS
id = db.Column(db.Integer, db.ForeignKey('content.id'), primary_key=True)
score_liking = db.Column(db.Integer, nullable=True)
score_difficulty = db.Column(db.Integer, nullable=True)
... | 24.481481 | 90 | 0.665658 | 75 | 661 | 5.64 | 0.48 | 0.07565 | 0.094563 | 0.160757 | 0.283688 | 0.283688 | 0.146572 | 0 | 0 | 0 | 0 | 0 | 0.219365 | 661 | 26 | 91 | 25.423077 | 0.819767 | 0.089259 | 0 | 0 | 0 | 0 | 0.107203 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.625 | 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 |
b6b7555e37b0ab88575bcaa32d2f04fefc29671f | 963 | py | Python | tf_utils.py | google/example_extrapolation | 8bf472143952d019f4b7273b9236f7591c27feb9 | [
"Apache-2.0"
] | 3 | 2021-03-12T22:06:55.000Z | 2021-11-10T03:34:48.000Z | tf_utils.py | google/example_extrapolation | 8bf472143952d019f4b7273b9236f7591c27feb9 | [
"Apache-2.0"
] | 1 | 2021-08-19T16:55:54.000Z | 2021-10-05T15:46:37.000Z | tf_utils.py | google/example_extrapolation | 8bf472143952d019f4b7273b9236f7591c27feb9 | [
"Apache-2.0"
] | 4 | 2021-03-14T01:29:14.000Z | 2021-10-21T02:48:08.000Z | # coding=utf-8
# Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed t... | 32.1 | 74 | 0.754933 | 142 | 963 | 5.056338 | 0.612676 | 0.083565 | 0.058496 | 0.044568 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01227 | 0.153686 | 963 | 29 | 75 | 33.206897 | 0.868712 | 0.6054 | 0 | 0 | 0 | 0 | 0.049862 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fcb0affea78f247f40cc51c9a2ac0657381e31c8 | 408 | py | Python | apps/hixny/migrations/0004_hixnyprofile_cda_content.py | whytheplatypus/sharemyhealth | 79ac694686ebd7a9a121741e473afbd35f25cea5 | [
"Apache-2.0"
] | null | null | null | apps/hixny/migrations/0004_hixnyprofile_cda_content.py | whytheplatypus/sharemyhealth | 79ac694686ebd7a9a121741e473afbd35f25cea5 | [
"Apache-2.0"
] | null | null | null | apps/hixny/migrations/0004_hixnyprofile_cda_content.py | whytheplatypus/sharemyhealth | 79ac694686ebd7a9a121741e473afbd35f25cea5 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.1.2 on 2019-04-05 14:53
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('hixny', '0003_hixnyprofile_user_accept'),
]
operations = [
migrations.AddField(
model_name='hixnyprofile',
name='cda... | 21.473684 | 59 | 0.607843 | 43 | 408 | 5.651163 | 0.813953 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064189 | 0.27451 | 408 | 18 | 60 | 22.666667 | 0.756757 | 0.110294 | 0 | 0 | 1 | 0 | 0.157895 | 0.080332 | 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 |
fcb2938f83a23d10bdd8ad720ad35bd2c21145f0 | 1,485 | py | Python | explorations/migrations/0003_auto_20210310_1319.py | aphp/Cohort360-Back-end | 03184db6c4cb639955e2f3726c7e1b5cc7809f01 | [
"Apache-2.0"
] | 9 | 2020-11-04T13:08:47.000Z | 2022-02-03T17:04:05.000Z | explorations/migrations/0003_auto_20210310_1319.py | aphp/Cohort360-Back-end | 03184db6c4cb639955e2f3726c7e1b5cc7809f01 | [
"Apache-2.0"
] | 7 | 2021-03-17T17:48:26.000Z | 2022-02-10T13:27:43.000Z | explorations/migrations/0003_auto_20210310_1319.py | aphp/Cohort360-Back-end | 03184db6c4cb639955e2f3726c7e1b5cc7809f01 | [
"Apache-2.0"
] | 2 | 2020-11-23T10:42:40.000Z | 2022-02-03T17:04:09.000Z | # Generated by Django 2.2.9 on 2021-03-10 13:19
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('explorations', '0002_auto_20210216_1626'),
]
operations = [
migrations.AddField(
model_name='datedmeasure',
name='me... | 30.306122 | 73 | 0.576431 | 135 | 1,485 | 6.222222 | 0.355556 | 0.075 | 0.092857 | 0.121429 | 0.680952 | 0.680952 | 0.680952 | 0.621429 | 0.590476 | 0.590476 | 0 | 0.032227 | 0.310438 | 1,485 | 48 | 74 | 30.9375 | 0.788086 | 0.030303 | 0 | 0.619048 | 1 | 0 | 0.141864 | 0.015994 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.02381 | 0 | 0.095238 | 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 |
fcb6c8ed890c15ce0ff08aacc67192e88a364826 | 421 | py | Python | routejoin/postgres.py | nmandery/pg_routejoin | 50895b3bb4d9c6ac7f3114460582b97ec515a0bc | [
"MIT"
] | 1 | 2017-06-04T15:04:43.000Z | 2017-06-04T15:04:43.000Z | routejoin/postgres.py | nmandery/pg_routejoin | 50895b3bb4d9c6ac7f3114460582b97ec515a0bc | [
"MIT"
] | null | null | null | routejoin/postgres.py | nmandery/pg_routejoin | 50895b3bb4d9c6ac7f3114460582b97ec515a0bc | [
"MIT"
] | null | null | null |
def sanitize_pg_array(pg_array):
"""
convert a array-string to a python list
PG <9.0 used comma-aperated strings as array datatype. this function
will convert those to list. if pg_array is not a tring, it will not
be modified
"""
if not type(pg_array) in (str,unicode):
return pg_a... | 28.066667 | 72 | 0.667458 | 67 | 421 | 4.089552 | 0.626866 | 0.153285 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006211 | 0.235154 | 421 | 14 | 73 | 30.071429 | 0.844721 | 0.524941 | 0 | 0 | 0 | 0 | 0.017647 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fcb81f6a82fdc14e84a958c8286807359ea65b24 | 1,224 | py | Python | demos/1/scripts/less-risky-forecast.py | joshcorr/Managing-Secrets-with-HashicorpVault | bb33aeb644ccba478ad374add681d03b18d2d099 | [
"MIT"
] | 1 | 2021-11-16T02:23:04.000Z | 2021-11-16T02:23:04.000Z | demos/1/scripts/less-risky-forecast.py | joshcorr/Managing-Secrets-with-HashicorpVault | bb33aeb644ccba478ad374add681d03b18d2d099 | [
"MIT"
] | null | null | null | demos/1/scripts/less-risky-forecast.py | joshcorr/Managing-Secrets-with-HashicorpVault | bb33aeb644ccba478ad374add681d03b18d2d099 | [
"MIT"
] | null | null | null | #! /usr/bin/env python3
# coding: utf-8
# modified example from https://weatherstack.com/documentation
import requests, hvac, getpass
# sets up the vault client, prompts for creds, and gather's the data
client = hvac.Client(url='http://localhost:8200')
client.auth.userpass.login(input("username: "), getpass.getpass(pr... | 34.971429 | 168 | 0.719771 | 175 | 1,224 | 4.88 | 0.565714 | 0.064403 | 0.063232 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024725 | 0.107843 | 1,224 | 35 | 168 | 34.971429 | 0.757326 | 0.142157 | 0 | 0 | 0 | 0.045455 | 0.377629 | 0.021033 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.090909 | 0.045455 | 0 | 0.045455 | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
fcbc3127313c4a9ec914c6ad66123595fb2c1ac6 | 3,118 | py | Python | picosb/periph/mem.py | mwbrown/picorv-sandbox | 765201d38fc5645695e1d38a7b74773a451184f1 | [
"0BSD",
"MIT"
] | null | null | null | picosb/periph/mem.py | mwbrown/picorv-sandbox | 765201d38fc5645695e1d38a7b74773a451184f1 | [
"0BSD",
"MIT"
] | null | null | null | picosb/periph/mem.py | mwbrown/picorv-sandbox | 765201d38fc5645695e1d38a7b74773a451184f1 | [
"0BSD",
"MIT"
] | null | null | null |
from amaranth import *
from ..soc.bus import NativeBusSlave
class NativeMemory(NativeBusSlave):
def __init__(self, *, size, is_ram, is_async=False) -> None:
super().__init__()
# TODO probably want to limit this to power-of-two instances
if (size % 4) != 0:
raise ValueError('R... | 33.170213 | 76 | 0.583066 | 431 | 3,118 | 4.020882 | 0.36891 | 0.044432 | 0.031737 | 0.025967 | 0.185805 | 0.173687 | 0.096942 | 0.041546 | 0 | 0 | 0 | 0.00951 | 0.325529 | 3,118 | 93 | 77 | 33.526882 | 0.814551 | 0.302758 | 0 | 0.1 | 0 | 0 | 0.028333 | 0 | 0 | 0 | 0 | 0.010753 | 0 | 1 | 0.08 | false | 0 | 0.04 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fcc1c457261be07743efe1f2c027a32f75481a69 | 3,411 | py | Python | scripts/arff-to-csv.py | jhostetler/jmcplan | 489994fa60a084d4c361a6c62b22d1a5f713c117 | [
"BSD-2-Clause"
] | 2 | 2020-03-11T13:14:33.000Z | 2021-07-17T22:45:15.000Z | scripts/arff-to-csv.py | jhostetler/jmcplan | 489994fa60a084d4c361a6c62b22d1a5f713c117 | [
"BSD-2-Clause"
] | null | null | null | scripts/arff-to-csv.py | jhostetler/jmcplan | 489994fa60a084d4c361a6c62b22d1a5f713c117 | [
"BSD-2-Clause"
] | null | null | null | # LICENSE
# Copyright (c) 2013-2016, Jesse Hostetler (jessehostetler@gmail.com)
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyri... | 38.325843 | 80 | 0.681911 | 462 | 3,411 | 4.984848 | 0.482684 | 0.030395 | 0.014763 | 0.019974 | 0.079896 | 0.059053 | 0.059053 | 0.059053 | 0.059053 | 0.059053 | 0 | 0.019924 | 0.146585 | 3,411 | 88 | 81 | 38.761364 | 0.771213 | 0.724421 | 0 | 0 | 0 | 0 | 0.180995 | 0 | 0 | 0 | 0 | 0.011364 | 0 | 1 | 0 | false | 0 | 0.227273 | 0 | 0.227273 | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fccb695ef8aa18b113ea65db404461402c5eeaa6 | 2,439 | py | Python | test.py | perrygeo/Pytess | fc0acb8c95b05a9b1f17aecf3568750350262f6e | [
"MIT"
] | null | null | null | test.py | perrygeo/Pytess | fc0acb8c95b05a9b1f17aecf3568750350262f6e | [
"MIT"
] | null | null | null | test.py | perrygeo/Pytess | fc0acb8c95b05a9b1f17aecf3568750350262f6e | [
"MIT"
] | null | null | null | import pytess
import itertools
# Define data
import random
def random_n(low, high, n, onlyints=False):
if onlyints: randfunc = random.randrange
else: randfunc = random.uniform
return list(( randfunc(low,high) for _ in xrange(n) ))
test_random = [random_n(10,490,2)+random_n(0,222,1,onlyints=True)
... | 25.14433 | 78 | 0.591636 | 314 | 2,439 | 4.547771 | 0.324841 | 0.011204 | 0.021008 | 0.039916 | 0.337535 | 0.337535 | 0.305322 | 0.246499 | 0.246499 | 0.246499 | 0 | 0.047672 | 0.268963 | 2,439 | 96 | 79 | 25.40625 | 0.753225 | 0.249282 | 0 | 0.26087 | 0 | 0 | 0.087151 | 0.060335 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.152174 | null | null | 0.021739 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fccda7a33af9022215e019203b9f6000cc4e965e | 4,640 | py | Python | model.py | wuhuicumt/LearningWhereToLook | 4fa71aebbb451de29f876fad83dbbac34037aa13 | [
"MIT"
] | 4 | 2021-05-08T12:40:13.000Z | 2022-02-10T12:02:12.000Z | model.py | wuhuicumt/LearningWhereToLook | 4fa71aebbb451de29f876fad83dbbac34037aa13 | [
"MIT"
] | null | null | null | model.py | wuhuicumt/LearningWhereToLook | 4fa71aebbb451de29f876fad83dbbac34037aa13 | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
import torch.nn.functional as F
from torchvision.models import vgg19
class ChannelAttention(nn.Module):
def __init__(self, in_dim):
"""
Borrowed from https://github.com/sinashish/multi-scale-attention
"""
super(ChannelAttention, self).__init__()
... | 28.466258 | 84 | 0.553233 | 598 | 4,640 | 4.135452 | 0.205686 | 0.035584 | 0.014153 | 0.030328 | 0.321472 | 0.212697 | 0.163769 | 0.144359 | 0.082895 | 0.073595 | 0 | 0.043742 | 0.325 | 4,640 | 163 | 85 | 28.466258 | 0.745849 | 0.038362 | 0 | 0.20339 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.033898 | 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 |
fcd15d3214e04678082bee93beca7d596feba022 | 1,843 | py | Python | GUI/GtkGI/Menus.py | gcewing/PyGUI | 58c6c38ccb8e66acdf98dea6b24bef1d9a03147c | [
"MIT"
] | 9 | 2019-07-15T19:03:27.000Z | 2021-11-24T19:50:02.000Z | GUI/GtkGI/Menus.py | mnabeelp/PyGUI | 58c6c38ccb8e66acdf98dea6b24bef1d9a03147c | [
"MIT"
] | 3 | 2019-09-11T13:22:10.000Z | 2020-08-19T20:13:00.000Z | GUI/GtkGI/Menus.py | mnabeelp/PyGUI | 58c6c38ccb8e66acdf98dea6b24bef1d9a03147c | [
"MIT"
] | 4 | 2020-02-23T16:50:06.000Z | 2022-02-10T07:15:35.000Z | #
# Python GUI - Menus - Gtk version
#
from gi.repository import Gtk
from gi.repository import Gdk
from GUI.Globals import application
from GUI.GMenus import Menu as GMenu, MenuItem
def _report_accel_changed_(*args):
print "Menus: accel_changed:", args
class Menu(GMenu):
def __init__(self, title, items, **kwds):... | 28.796875 | 80 | 0.744438 | 275 | 1,843 | 4.643636 | 0.305455 | 0.087706 | 0.034456 | 0.039937 | 0.155051 | 0.089272 | 0 | 0 | 0 | 0 | 0 | 0.002558 | 0.151384 | 1,843 | 63 | 81 | 29.253968 | 0.813939 | 0.055345 | 0 | 0.117647 | 0 | 0 | 0.021375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.078431 | null | null | 0.019608 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
fce1579f640366313d7710824acec64dc0161c2d | 2,086 | py | Python | util/generate_loading_gif.py | Tarsnap/tarsnap-gui | 60a1d7816747ac71a4573673df8ee1b81ef1cb99 | [
"BSD-2-Clause"
] | 270 | 2015-06-11T05:08:56.000Z | 2022-03-26T08:48:00.000Z | util/generate_loading_gif.py | Tarsnap/tarsnap-gui | 60a1d7816747ac71a4573673df8ee1b81ef1cb99 | [
"BSD-2-Clause"
] | 154 | 2015-06-10T21:28:54.000Z | 2021-11-10T19:08:08.000Z | util/generate_loading_gif.py | Tarsnap/tarsnap-gui | 60a1d7816747ac71a4573673df8ee1b81ef1cb99 | [
"BSD-2-Clause"
] | 28 | 2015-06-11T00:09:26.000Z | 2021-12-19T04:43:26.000Z | #!/usr/bin/env python3
""" Generate a "loading" or "waiting" animated gif. """
import math
import PIL.Image
import PIL.ImageDraw
SIZE = 16
TOTAL_DOTS = 8
VISUAL_DOTS = 4 # how many dots are visible in each frame.
DIAMETER = SIZE / 8.0
SECONDS = 1.25 # how long it takes to do a complete cycle.
OUTPUT = "loading.gi... | 27.813333 | 73 | 0.611218 | 315 | 2,086 | 3.965079 | 0.44127 | 0.043235 | 0.024019 | 0.017614 | 0.064051 | 0.064051 | 0 | 0 | 0 | 0 | 0 | 0.042791 | 0.271812 | 2,086 | 74 | 74 | 28.189189 | 0.77946 | 0.364813 | 0 | 0 | 1 | 0 | 0.016342 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081081 | false | 0 | 0.081081 | 0 | 0.189189 | 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 |
fce1de82490fa31b728fe3548bd133220d443c78 | 2,961 | py | Python | fraction.py | Krishna-Sivakumar/simple-gauss-jordan | 8ef9f7bb92c5a9788de83c86be1ca335d555371c | [
"MIT"
] | null | null | null | fraction.py | Krishna-Sivakumar/simple-gauss-jordan | 8ef9f7bb92c5a9788de83c86be1ca335d555371c | [
"MIT"
] | null | null | null | fraction.py | Krishna-Sivakumar/simple-gauss-jordan | 8ef9f7bb92c5a9788de83c86be1ca335d555371c | [
"MIT"
] | null | null | null | from dataclasses import dataclass
import numpy as np
@dataclass(unsafe_hash=True)
class Fraction:
_numerator: int # Numerator
_denominator: int # Denomenator
def __init__(self, numerator, denominator):
self._numerator = numerator
self._denominator = denominator
gcd = np.g... | 28.2 | 106 | 0.594056 | 344 | 2,961 | 4.723837 | 0.162791 | 0.212308 | 0.128 | 0.155077 | 0.663385 | 0.601846 | 0.601846 | 0.601846 | 0.516923 | 0.516923 | 0 | 0.01405 | 0.302938 | 2,961 | 104 | 107 | 28.471154 | 0.773256 | 0.007092 | 0 | 0.302632 | 0 | 0 | 0.002724 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.197368 | false | 0 | 0.026316 | 0.052632 | 0.447368 | 0.013158 | 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 |
fce56942128be5c4fadc68f20339857db60fd370 | 1,450 | py | Python | uri/1923.py | italo-batista/problems-solving | f83ad34f0abebd52925c4020635556f20743ba06 | [
"MIT"
] | null | null | null | uri/1923.py | italo-batista/problems-solving | f83ad34f0abebd52925c4020635556f20743ba06 | [
"MIT"
] | null | null | null | uri/1923.py | italo-batista/problems-solving | f83ad34f0abebd52925c4020635556f20743ba06 | [
"MIT"
] | null | null | null | import Queue
n, g = map(int, raw_input().split())
# MONTA ESTRUTURAS
LIMIT = n * g + 10
mapl = {}
mapl_reversed = {}
entries = []
invited = []
distances = [float('inf')] * LIMIT
visited = [False] * LIMIT
count = 0
for i in range(n):
person1, person2 = map(str, raw_input().split())
entries.append((person1, pers... | 17.261905 | 80 | 0.671034 | 208 | 1,450 | 4.600962 | 0.355769 | 0.050157 | 0.027168 | 0.022989 | 0.025078 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024369 | 0.207586 | 1,450 | 83 | 81 | 17.46988 | 0.808529 | 0.106207 | 0 | 0.040816 | 0 | 0 | 0.008534 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.020408 | 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 |
fceac7ffeec25c7308b25c3a27f5815224c2028a | 1,215 | py | Python | hackingweek/admin.py | perror/hackingweek | 8d2c13d164789ea4a71840d0ad06da9e47951bd3 | [
"BSD-2-Clause"
] | 2 | 2016-03-16T21:02:54.000Z | 2016-10-27T10:05:15.000Z | hackingweek/admin.py | perror/hackingweek | 8d2c13d164789ea4a71840d0ad06da9e47951bd3 | [
"BSD-2-Clause"
] | null | null | null | hackingweek/admin.py | perror/hackingweek | 8d2c13d164789ea4a71840d0ad06da9e47951bd3 | [
"BSD-2-Clause"
] | null | null | null | from django.contrib import admin
from django.contrib.auth.admin import UserAdmin
from django.contrib.auth.models import User
import models
from hackingweek.forms import ChallengeForm
from hackingweek.models import UserProfile
class UserProfileInline(admin.StackedInline):
model = UserProfile
can_delete = Fal... | 24.3 | 65 | 0.736626 | 135 | 1,215 | 6.548148 | 0.333333 | 0.061086 | 0.096154 | 0.104072 | 0.067873 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.14321 | 1,215 | 49 | 66 | 24.795918 | 0.849183 | 0.017284 | 0 | 0 | 0 | 0 | 0.080537 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
fcec6b644e6b0a8993719436ef1c0ade118a37b8 | 2,527 | py | Python | tests/test__path_assignments.py | Infinidat/infi.conf | a75930c52f7ebf9a7a57d45a67a751e31eff3041 | [
"BSD-3-Clause"
] | null | null | null | tests/test__path_assignments.py | Infinidat/infi.conf | a75930c52f7ebf9a7a57d45a67a751e31eff3041 | [
"BSD-3-Clause"
] | null | null | null | tests/test__path_assignments.py | Infinidat/infi.conf | a75930c52f7ebf9a7a57d45a67a751e31eff3041 | [
"BSD-3-Clause"
] | null | null | null | from .test_utils import TestCase
from infi.conf import Config
from infi.conf import utils
from infi.conf import exceptions
class PathAssignmentTest(TestCase):
def setUp(self):
super(PathAssignmentTest, self).setUp()
self.conf = Config(dict(a=dict(b=dict(c=3)), d=4))
def tearDown(self):
... | 49.54902 | 110 | 0.631183 | 353 | 2,527 | 4.322946 | 0.201133 | 0.104849 | 0.076671 | 0.072084 | 0.497379 | 0.322412 | 0.220183 | 0.131062 | 0.108126 | 0.084535 | 0 | 0.013078 | 0.213296 | 2,527 | 50 | 111 | 50.54 | 0.754527 | 0 | 0 | 0.040816 | 0 | 0 | 0.045113 | 0 | 0 | 0 | 0 | 0 | 0.22449 | 1 | 0.204082 | false | 0 | 0.081633 | 0 | 0.306122 | 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 |
fcf5e6e68e19c16212d58483624be72c83ac75af | 893 | py | Python | search/3_largest_easy.py | automoto/python-code-golf | 1a4e0b5984e64620637de9d80e82c6e89997f4af | [
"MIT"
] | null | null | null | search/3_largest_easy.py | automoto/python-code-golf | 1a4e0b5984e64620637de9d80e82c6e89997f4af | [
"MIT"
] | null | null | null | search/3_largest_easy.py | automoto/python-code-golf | 1a4e0b5984e64620637de9d80e82c6e89997f4af | [
"MIT"
] | null | null | null | """
Write a function that takes in an array of integers and returns a sorted array of the three largest integers
in the input array. Note that the function should return duplicate integers if necessary;
for example, it should return [10, 10, 12] for an input array of [10, 5, 9, 10, 12].
Sample input: [141, 1, 17, -7, ... | 40.590909 | 108 | 0.720045 | 149 | 893 | 4.234899 | 0.436242 | 0.171157 | 0.047544 | 0.050713 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056011 | 0.180291 | 893 | 22 | 109 | 40.590909 | 0.806011 | 0.62262 | 0 | 0 | 0 | 0 | 0.03681 | 0 | 0 | 0 | 0 | 0.045455 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fcfa88cbfc2fadc75976cbebaf3bc62f35c3076e | 8,038 | py | Python | roles/lib_openshift/src/test/unit/oc_route.py | ramkrsna/openshift-ansible | fc96d8d22f6c277b599e6e2fa4e9cc06814a9460 | [
"Apache-2.0"
] | null | null | null | roles/lib_openshift/src/test/unit/oc_route.py | ramkrsna/openshift-ansible | fc96d8d22f6c277b599e6e2fa4e9cc06814a9460 | [
"Apache-2.0"
] | null | null | null | roles/lib_openshift/src/test/unit/oc_route.py | ramkrsna/openshift-ansible | fc96d8d22f6c277b599e6e2fa4e9cc06814a9460 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python2
'''
Unit tests for oc route
'''
# To run:
# ./oc_serviceaccount.py
#
# .
# Ran 1 test in 0.002s
#
# OK
import os
import sys
import unittest
import mock
# Removing invalid variable names for tests so that I can
# keep them brief
# pylint: disable=invalid-name,no-name-in-module
# Disable import-... | 31.034749 | 105 | 0.44837 | 680 | 8,038 | 5.185294 | 0.316176 | 0.018151 | 0.024107 | 0.028361 | 0.471923 | 0.449801 | 0.426546 | 0.405559 | 0.315372 | 0.288145 | 0 | 0.031223 | 0.418263 | 8,038 | 258 | 106 | 31.155039 | 0.72284 | 0.118437 | 0 | 0.492228 | 0 | 0 | 0.622289 | 0.066781 | 0 | 0 | 0 | 0 | 0.046632 | 1 | 0.020725 | false | 0.020725 | 0.025907 | 0 | 0.051813 | 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 |
1e0054dd508d52b1d786340f698b4da3ab2ad1cb | 3,186 | py | Python | analysis/cohortextractor2/remotejobs.py | opensafely/hiv-research | 380915bf5dbf4e46f2f9616d7e86211d06423b69 | [
"MIT"
] | null | null | null | analysis/cohortextractor2/remotejobs.py | opensafely/hiv-research | 380915bf5dbf4e46f2f9616d7e86211d06423b69 | [
"MIT"
] | 1 | 2021-12-20T00:19:12.000Z | 2021-12-20T00:19:12.000Z | analysis/cohortextractor2/remotejobs.py | opensafely/hiv-research | 380915bf5dbf4e46f2f9616d7e86211d06423b69 | [
"MIT"
] | null | null | null | from tinynetrc import Netrc
import getpass
import os
import requests
import subprocess
JOB_SERVER = "jobs.opensafely.org"
ENDPOINT = f"https://{JOB_SERVER}/jobs/"
def set_auth():
"""Set HTTP auth (used by `requests`)
"""
# In due course, we should use Github OAuth for this
netrc_path = os.path.join(o... | 31.544554 | 97 | 0.60295 | 383 | 3,186 | 4.879896 | 0.35248 | 0.033708 | 0.029963 | 0.023542 | 0.064205 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001268 | 0.257376 | 3,186 | 100 | 98 | 31.86 | 0.788673 | 0.061205 | 0 | 0.083333 | 0 | 0.011905 | 0.213543 | 0.015756 | 0 | 0 | 0 | 0 | 0.02381 | 1 | 0.059524 | false | 0.083333 | 0.059524 | 0 | 0.178571 | 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 |
1e0b5894564b6d985ec65043a164dc2420861c19 | 681 | py | Python | codebase/modules/features/types.py | iosifache/dike | 9dae16a92b30af804be2a0ab0664cd3654058446 | [
"MIT"
] | 1 | 2021-07-13T08:05:16.000Z | 2021-07-13T08:05:16.000Z | codebase/modules/features/types.py | iosifache/dike | 9dae16a92b30af804be2a0ab0664cd3654058446 | [
"MIT"
] | null | null | null | codebase/modules/features/types.py | iosifache/dike | 9dae16a92b30af804be2a0ab0664cd3654058446 | [
"MIT"
] | null | null | null | """Types used in this module."""
from enum import Enum
class FeatureTypes(Enum):
"""Enumeration for all possible types of extracted features."""
BOOLEAN = 0
INTEGER = 1
FLOAT = 2
STRING = 3
INTEGER_ARRAY = 11
FLOAT_ARRAY = 12
STRING_ARRAY = 13
class ExtractorsTypes(Enum):
"""Enu... | 24.321429 | 67 | 0.698972 | 73 | 681 | 6.342466 | 0.684932 | 0.064795 | 0.077754 | 0.090713 | 0.155508 | 0.155508 | 0.155508 | 0 | 0 | 0 | 0 | 0.018727 | 0.215859 | 681 | 27 | 68 | 25.222222 | 0.848315 | 0.196769 | 0 | 0 | 0 | 0 | 0.207156 | 0.043315 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.055556 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
1e157396b6507c11dd7c6b01a008be6ec083cd52 | 2,660 | py | Python | search.py | fitnesses/search-sort-img | c787ff54e578bf346cfd8db4940e3b3b2fdfc944 | [
"MIT"
] | null | null | null | search.py | fitnesses/search-sort-img | c787ff54e578bf346cfd8db4940e3b3b2fdfc944 | [
"MIT"
] | null | null | null | search.py | fitnesses/search-sort-img | c787ff54e578bf346cfd8db4940e3b3b2fdfc944 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# __author__ = 'wangzy'
# date: 2018-01-03 09:44:36
import requests
import logging
import time
import os
import errno
import shutil
logger = logging.getLogger('search')
headers = {}
headers['User-Agent'] = "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gec... | 28 | 126 | 0.631579 | 398 | 2,660 | 4.057789 | 0.424623 | 0.033437 | 0.024149 | 0.021053 | 0.043344 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031008 | 0.22406 | 2,660 | 94 | 127 | 28.297872 | 0.751453 | 0.16015 | 0 | 0.090909 | 0 | 0.030303 | 0.147615 | 0.018902 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.090909 | 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 |
1e1bae8995cb85931f09d4f3e5ddb6ff8116aab3 | 12,135 | py | Python | gamelib/waypointing_test2.py | luciotorre/aiamsori | 521f3e16868326889caae9f8703ed042aead8817 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | gamelib/waypointing_test2.py | luciotorre/aiamsori | 521f3e16868326889caae9f8703ed042aead8817 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | gamelib/waypointing_test2.py | luciotorre/aiamsori | 521f3e16868326889caae9f8703ed042aead8817 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | import cocos
from cocos.director import director
from cocos.sprite import Sprite
import os,pyglet
from math import cos,sin,radians
import geom
from waypointing import WaypointNav
from waypointing_test import visiblesball_factory
from cocos.euclid import Vector2 as V2
from pyglet.window import key
wps = [
(0,3), (... | 35.58651 | 95 | 0.538195 | 1,609 | 12,135 | 3.876942 | 0.123679 | 0.038153 | 0.023084 | 0.016672 | 0.646682 | 0.623437 | 0.610612 | 0.58336 | 0.531581 | 0.504649 | 0 | 0.032563 | 0.336959 | 12,135 | 340 | 96 | 35.691176 | 0.742729 | 0.038072 | 0 | 0.467857 | 0 | 0 | 0.032178 | 0 | 0 | 0 | 0 | 0 | 0.010714 | 0 | null | null | 0 | 0.035714 | null | null | 0.035714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1e207a5114b256ed519d503457ddddbcb6944b3a | 6,130 | py | Python | protons/app/ions.py | choderalab/Protons | a55d7a72d0e4f2f402a2c144c5a7fb34ccce2a7f | [
"MIT"
] | 16 | 2016-12-30T23:58:06.000Z | 2021-09-29T02:40:35.000Z | protons/app/ions.py | choderalab/protons | a55d7a72d0e4f2f402a2c144c5a7fb34ccce2a7f | [
"MIT"
] | 75 | 2016-10-31T19:52:32.000Z | 2021-03-03T00:01:35.000Z | protons/app/ions.py | choderalab/Protons | a55d7a72d0e4f2f402a2c144c5a7fb34ccce2a7f | [
"MIT"
] | 5 | 2017-01-18T23:15:07.000Z | 2021-04-01T00:50:36.000Z | from typing import Tuple
from enum import Enum
class NeutralChargeRule(Enum):
"""
Strict enumeration of different methods to maintain charge neutrality for single residues.
"""
# Ions will not be used to neutralize system. This means OpenMM will add a neutralizing background charge.
NO_IONS = 0
... | 33.315217 | 115 | 0.64633 | 744 | 6,130 | 5.075269 | 0.200269 | 0.166049 | 0.174788 | 0.044492 | 0.693856 | 0.671081 | 0.671081 | 0.6634 | 0.595869 | 0.595869 | 0 | 0.016032 | 0.297879 | 6,130 | 183 | 116 | 33.497268 | 0.861292 | 0.334747 | 0 | 0.762376 | 0 | 0 | 0.044095 | 0 | 0 | 0 | 0 | 0.005464 | 0 | 1 | 0.029703 | false | 0 | 0.019802 | 0 | 0.138614 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1e22f7afb0642eb94839958d3f150c8d986e442b | 590 | py | Python | _data/handle.py | sakiinlaq/afsoomaali | 33ced3a60d977fd84afe8c55fc100cbb1739d33e | [
"MIT"
] | null | null | null | _data/handle.py | sakiinlaq/afsoomaali | 33ced3a60d977fd84afe8c55fc100cbb1739d33e | [
"MIT"
] | null | null | null | _data/handle.py | sakiinlaq/afsoomaali | 33ced3a60d977fd84afe8c55fc100cbb1739d33e | [
"MIT"
] | null | null | null | import lxml
import requests
from urllib.request import urlopen
import re
#import urllib.request
import time
from bs4 import BeautifulSoup
import pandas as pd
links=[]
url="http://dspace-roma3.caspur.it/handle/2307/729/browse?type=dateissued&sort_by=2&order=ASC&rpp=100&etal=5&year=-1&month=-1&starts_with=1970"
page = ... | 21.851852 | 143 | 0.730508 | 95 | 590 | 4.515789 | 0.684211 | 0.060606 | 0.088578 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045627 | 0.108475 | 590 | 26 | 144 | 22.692308 | 0.769962 | 0.035593 | 0 | 0 | 0 | 0.058824 | 0.326241 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.411765 | 0 | 0.411765 | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1e23b063f5e44d0d4f6d7cdf6e00c781c341269e | 2,945 | py | Python | msrc-appconfig-param/tests/decl_param_test.py | microsoft/msrc-appconf | 32947a122833f3605fe4ffcff942269326875178 | [
"MIT"
] | 1 | 2021-12-17T01:25:15.000Z | 2021-12-17T01:25:15.000Z | msrc-appconfig-param/tests/decl_param_test.py | microsoft/msrc-appconf | 32947a122833f3605fe4ffcff942269326875178 | [
"MIT"
] | null | null | null | msrc-appconfig-param/tests/decl_param_test.py | microsoft/msrc-appconf | 32947a122833f3605fe4ffcff942269326875178 | [
"MIT"
] | 2 | 2021-09-13T12:36:11.000Z | 2021-11-10T08:39:31.000Z | from enum import Enum
import typing as ty
import pytest
import param
import msrc.appconfig
from msrc.appconfig.schema import Schema
from msrc.appconfig_decl.decl_param import IntTuple
class En(Enum):
Option1 = 1
Option2 = 2
class Nested(param.Parameterized):
booleans: ty.List[bool] = ty.cast(ty.List[b... | 30.677083 | 79 | 0.647199 | 398 | 2,945 | 4.728643 | 0.221106 | 0.057386 | 0.029756 | 0.031881 | 0.165781 | 0.131775 | 0.081828 | 0.081828 | 0.041445 | 0.041445 | 0 | 0.011678 | 0.214941 | 2,945 | 95 | 80 | 31 | 0.802336 | 0.008149 | 0 | 0.043478 | 0 | 0 | 0.015759 | 0 | 0 | 0 | 0 | 0 | 0.15942 | 1 | 0.057971 | false | 0 | 0.101449 | 0 | 0.565217 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
1e26802c6908e031dbb18addb0786b21f49f84ec | 1,766 | py | Python | chrome/updater/mac/embed_variables.py | mghgroup/Glide-Browser | 6a4c1eaa6632ec55014fee87781c6bbbb92a2af5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/updater/mac/embed_variables.py | mghgroup/Glide-Browser | 6a4c1eaa6632ec55014fee87781c6bbbb92a2af5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/updater/mac/embed_variables.py | mghgroup/Glide-Browser | 6a4c1eaa6632ec55014fee87781c6bbbb92a2af5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2021-01-05T23:43:46.000Z | 2021-01-07T23:36:34.000Z | # Copyright 2020 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import ConfigParser
import glob
import optparse
import os
import shutil
import subprocess
import sys
def embed_version(input_file, output_file, version, pr... | 26.757576 | 77 | 0.656852 | 230 | 1,766 | 4.83913 | 0.391304 | 0.059299 | 0.080863 | 0.021563 | 0.057502 | 0.057502 | 0.057502 | 0.057502 | 0 | 0 | 0 | 0.006662 | 0.234994 | 1,766 | 65 | 78 | 27.169231 | 0.817172 | 0.087769 | 0 | 0.106383 | 0 | 0 | 0.200996 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.148936 | 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 |
1e27318bb937a3dc8fffa8ff10926fd0bf6238af | 1,533 | py | Python | 2017-03-21/django_example.py | awesome-archive/mp | e904c7c858fe5df5859f6282e5d4906a96abd6e5 | [
"Apache-2.0"
] | 90 | 2016-11-29T07:21:58.000Z | 2022-03-29T06:41:01.000Z | 2017-03-21/django_example.py | awesome-archive/mp | e904c7c858fe5df5859f6282e5d4906a96abd6e5 | [
"Apache-2.0"
] | 1 | 2020-01-19T10:03:12.000Z | 2020-01-19T10:03:12.000Z | 2017-03-21/django_example.py | awesome-archive/mp | e904c7c858fe5df5859f6282e5d4906a96abd6e5 | [
"Apache-2.0"
] | 34 | 2016-12-07T09:26:34.000Z | 2020-09-14T01:57:11.000Z | ### source code start
from itertools import chain
class CheckRegistry:
def __init__(self):
self.registered_checks = []
self.deployment_checks = []
def register(self, check=None, *tags, **kwargs):
kwargs.setdefault('deploy', False)
def inner(check):
check.tags = t... | 27.872727 | 114 | 0.64514 | 177 | 1,533 | 5.384181 | 0.282486 | 0.167891 | 0.104932 | 0.050367 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.262883 | 1,533 | 54 | 115 | 28.388889 | 0.843363 | 0.021526 | 0 | 0 | 0 | 0 | 0.038178 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.026316 | 0.026316 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1e2c3ed75b751e2da0a8a5cc48ba2516493bb8f4 | 5,538 | py | Python | dzTraficoBackend/dzTrafico/BusinessLayer/SimulationCreation/SimulationCreator.py | DZAymen/dz-Trafico | 74ff9caf9e3845d8af977c46b04a2d3421a0661b | [
"MIT"
] | null | null | null | dzTraficoBackend/dzTrafico/BusinessLayer/SimulationCreation/SimulationCreator.py | DZAymen/dz-Trafico | 74ff9caf9e3845d8af977c46b04a2d3421a0661b | [
"MIT"
] | null | null | null | dzTraficoBackend/dzTrafico/BusinessLayer/SimulationCreation/SimulationCreator.py | DZAymen/dz-Trafico | 74ff9caf9e3845d8af977c46b04a2d3421a0661b | [
"MIT"
] | null | null | null | from dzTrafico.BusinessEntities.Simulation import Simulation
from NetworkManager import NetworkManager
from dzTrafico.BusinessLayer.TrafficAnalysis.LaneChangeControlAlgo import LaneChange
from TripManager import TripManager
from dzTrafico.BusinessLayer.SimulationCreation.SensorsManager import SensorsManager
from dzTraf... | 54.294118 | 123 | 0.625316 | 430 | 5,538 | 7.555814 | 0.186047 | 0.199446 | 0.073869 | 0.027701 | 0.154817 | 0.070175 | 0.070175 | 0 | 0 | 0 | 0 | 0 | 0.132178 | 5,538 | 101 | 124 | 54.831683 | 0.67603 | 0.254605 | 0 | 0.029851 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.223881 | false | 0 | 0.089552 | 0.029851 | 0.432836 | 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 |
1e2d92ab8e98a7951cbb9e23efd6abb36141932b | 2,500 | py | Python | sensors/lib/sensors.py | pertruccio/stackstorm-librenms | 82839b7e8b9ed7aec1b0d4bf803c2e814a54917d | [
"Apache-2.0"
] | 3 | 2020-06-16T12:32:09.000Z | 2022-02-24T08:20:11.000Z | sensors/lib/sensors.py | pertruccio/stackstorm-librenms | 82839b7e8b9ed7aec1b0d4bf803c2e814a54917d | [
"Apache-2.0"
] | null | null | null | sensors/lib/sensors.py | pertruccio/stackstorm-librenms | 82839b7e8b9ed7aec1b0d4bf803c2e814a54917d | [
"Apache-2.0"
] | 2 | 2021-07-12T09:03:15.000Z | 2021-10-04T07:58:01.000Z | from datetime import datetime
import requests
from st2reactor.sensor.base import PollingSensor
from typing import Mapping
class LibreNMSBasePollingSensor(PollingSensor):
api_key: str = None
api_root: str = None
api_call: str = None
ssl_verify: bool = None
method: str = None
params: Mapping[st... | 28.089888 | 89 | 0.5924 | 291 | 2,500 | 4.890034 | 0.333333 | 0.054111 | 0.042164 | 0.046381 | 0.118763 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000571 | 0.3 | 2,500 | 88 | 90 | 28.409091 | 0.812571 | 0 | 0 | 0.176471 | 0 | 0 | 0.136 | 0.0224 | 0 | 0 | 0 | 0 | 0 | 1 | 0.132353 | false | 0.058824 | 0.058824 | 0.029412 | 0.426471 | 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 |
1e4d6226a35add281a95fb02a40b3bb599e11b8e | 636 | pyde | Python | single_bullet/single_bullet.pyde | alechapp/Processingcodes | 883c4b2b98382ff2772962b141beea0d2df0397b | [
"MIT"
] | null | null | null | single_bullet/single_bullet.pyde | alechapp/Processingcodes | 883c4b2b98382ff2772962b141beea0d2df0397b | [
"MIT"
] | null | null | null | single_bullet/single_bullet.pyde | alechapp/Processingcodes | 883c4b2b98382ff2772962b141beea0d2df0397b | [
"MIT"
] | null | null | null | y=200
deadtime=0
def setup():
global xs
xs=[]
size(400,400)
stroke(0)
def draw():
global xs, deadtime, y
strokeWeight(5)
background(169)
if keyPressed and key == " " and deadtime <=0:
xs.append(0)
deadtime=10
deadtime -= 1
... | 17.666667 | 51 | 0.427673 | 88 | 636 | 3.090909 | 0.409091 | 0.132353 | 0.165441 | 0.198529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088068 | 0.446541 | 636 | 35 | 52 | 18.171429 | 0.684659 | 0 | 0 | 0 | 0 | 0 | 0.004992 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0 | 0 | 0.074074 | 0.037037 | 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 |
1e52c1548ecb26d19eda8781a597372ca8d54295 | 506 | py | Python | taylen/settings/development.py | robert-huang/taylen | 123b09f6ef697f97e4c33eee263edb3cfb4e2555 | [
"MIT"
] | null | null | null | taylen/settings/development.py | robert-huang/taylen | 123b09f6ef697f97e4c33eee263edb3cfb4e2555 | [
"MIT"
] | null | null | null | taylen/settings/development.py | robert-huang/taylen | 123b09f6ef697f97e4c33eee263edb3cfb4e2555 | [
"MIT"
] | null | null | null | from .common import *
SECRET_KEY = '0c(i&aa$a5gt8#2mcmw7mw_59vy3@$or#fphd6tbf2esjjo'
DEBUG = True
ALLOWED_HOSTS = ['*']
SPLITWISE_CONSUMER_KEY = ''
SPLITWISE_CONSUMER_SECRET = ''
SPLITWISE_OUATH_TOKEN = ''
SPLITWISE_OUATH_TOKEN_SECRET = ''
SPLITWISE_GROUP_ID = ''
SLACK_API_TOKEN = ''
SLACK_EVENTS_TOKEN = ''
DISCOR... | 21.083333 | 65 | 0.689723 | 60 | 506 | 5.45 | 0.733333 | 0.103976 | 0.116208 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030516 | 0.158103 | 506 | 23 | 66 | 22 | 0.737089 | 0 | 0 | 0 | 0 | 0 | 0.205534 | 0.150198 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.052632 | 0.052632 | 0 | 0.052632 | 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 |
1e54e163d706dc2492d4a0aab6e8991b86e46456 | 4,452 | py | Python | Server/app/models/user_models.py | Jaws-bar/Entry3.0-Admin | b760ef09c5b93b34a38886fc4446b1ee96b0ef09 | [
"MIT"
] | 2 | 2018-08-15T06:32:21.000Z | 2018-09-13T14:55:09.000Z | Server/app/models/user_models.py | EntryDSM/Entry3.0-AdminSystem | b760ef09c5b93b34a38886fc4446b1ee96b0ef09 | [
"MIT"
] | null | null | null | Server/app/models/user_models.py | EntryDSM/Entry3.0-AdminSystem | b760ef09c5b93b34a38886fc4446b1ee96b0ef09 | [
"MIT"
] | 1 | 2018-08-15T05:51:11.000Z | 2018-08-15T05:51:11.000Z | from enum import Enum
from sqlalchemy.orm import relationship
from sqlalchemy.dialects.mysql import INTEGER as Integer
from app.models import db
class AdditionalTypeChoice(Enum):
NONE = 1
NATIONAL_MERIT = 2
SPECIAL_ADMISSION = 3
class GraduateChoice(Enum):
WILL = 1
DONE = 2
GED = 3
class... | 37.1 | 116 | 0.70283 | 568 | 4,452 | 5.378521 | 0.227113 | 0.09689 | 0.11784 | 0.089034 | 0.464157 | 0.413093 | 0.413093 | 0.384288 | 0.29329 | 0.206874 | 0 | 0.015705 | 0.170485 | 4,452 | 119 | 117 | 37.411765 | 0.811535 | 0.012354 | 0 | 0.190476 | 0 | 0 | 0.068322 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.02381 | 0.047619 | 0 | 0.952381 | 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 |
1e57482dc325fbee43960c5f248ada75f75c8ffe | 904 | py | Python | djilogreader/settings/prod.py | yurisolovev/djilogreader | a255ff77592364d1f61a6811bc99e875d454e31d | [
"MIT"
] | 1 | 2020-05-12T21:10:15.000Z | 2020-05-12T21:10:15.000Z | djilogreader/settings/prod.py | yurisolovev/djilogreader | a255ff77592364d1f61a6811bc99e875d454e31d | [
"MIT"
] | null | null | null | djilogreader/settings/prod.py | yurisolovev/djilogreader | a255ff77592364d1f61a6811bc99e875d454e31d | [
"MIT"
] | null | null | null | from djilogreader.settings.base import *
DEBUG = False
ALLOWED_HOSTS = ['13.58.80.238', 'djilogreader.ml']
SECRET_KEY = get_env_variable('SECRET_KEY')
# Database settings
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': get_env_variable('DATABASE'),
... | 20.545455 | 61 | 0.700221 | 115 | 904 | 5.191304 | 0.443478 | 0.070352 | 0.164154 | 0.060302 | 0.077052 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022368 | 0.159292 | 904 | 43 | 62 | 21.023256 | 0.763158 | 0.063053 | 0 | 0 | 0 | 0 | 0.356295 | 0.104513 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.086957 | 0.043478 | 0 | 0.043478 | 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 |
1e5e8162adbc21ec7f12948e77b5fc67930220fd | 368 | py | Python | blogapp/migrations/0011_auto_20200805_1115.py | nmallea/sonora_connected | 20bba2a89cb5289ac0c9a649acd5ec1c07497c40 | [
"MIT"
] | null | null | null | blogapp/migrations/0011_auto_20200805_1115.py | nmallea/sonora_connected | 20bba2a89cb5289ac0c9a649acd5ec1c07497c40 | [
"MIT"
] | null | null | null | blogapp/migrations/0011_auto_20200805_1115.py | nmallea/sonora_connected | 20bba2a89cb5289ac0c9a649acd5ec1c07497c40 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.8 on 2020-08-05 05:45
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('blogapp', '0010_auto_20200805_1115'),
]
operations = [
migrations.RenameField(
model_name='postdetails',
old_name='name',
... | 19.368421 | 47 | 0.589674 | 39 | 368 | 5.410256 | 0.794872 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.120155 | 0.298913 | 368 | 18 | 48 | 20.444444 | 0.697674 | 0.122283 | 0 | 0 | 1 | 0 | 0.165109 | 0.071651 | 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 |
1e5f954621f6aace875a9f4a9876601fe5dd97ae | 2,065 | py | Python | tests/test_n_smallest_orig_order.py | Cluckerino/code-katas-python | 248d49979fa830035f65fa87e5c172f6371a38c6 | [
"MIT"
] | null | null | null | tests/test_n_smallest_orig_order.py | Cluckerino/code-katas-python | 248d49979fa830035f65fa87e5c172f6371a38c6 | [
"MIT"
] | 6 | 2018-12-27T19:11:07.000Z | 2019-01-01T21:15:59.000Z | tests/test_n_smallest_orig_order.py | Cluckerino/code-katas-python | 248d49979fa830035f65fa87e5c172f6371a38c6 | [
"MIT"
] | null | null | null | """Tests for the n_smallest_orig_order kata"""
import unittest
from solutions.n_smallest_orig_order import first_n_smallest, performant_smallest
class NSmallestOrigOrderTest(unittest.TestCase):
"""N-smallest orig order test suite"""
def setUp(self):
"""Initialize the methods to call"""
self... | 31.769231 | 81 | 0.561743 | 287 | 2,065 | 3.89547 | 0.236934 | 0.026834 | 0.0322 | 0.025045 | 0.230769 | 0.126118 | 0.126118 | 0.104651 | 0.046512 | 0 | 0 | 0.062586 | 0.295884 | 2,065 | 64 | 82 | 32.265625 | 0.706327 | 0.180145 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026316 | 1 | 0.263158 | false | 0 | 0.052632 | 0 | 0.342105 | 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 |
1e6829f9a418ad6c5ff2e7d227e5eba6de053664 | 18,277 | py | Python | python/dewpoint.py | cemac/GFS_plotting | 4eeb9ccb516296fee654e59b82016dabf5e81668 | [
"BSD-3-Clause"
] | 2 | 2020-07-16T13:23:08.000Z | 2020-07-20T18:33:45.000Z | python/dewpoint.py | cemac/GFS_plotting | 4eeb9ccb516296fee654e59b82016dabf5e81668 | [
"BSD-3-Clause"
] | 1 | 2021-01-11T02:02:49.000Z | 2021-03-02T11:14:49.000Z | python/dewpoint.py | cemac/GFS_plotting | 4eeb9ccb516296fee654e59b82016dabf5e81668 | [
"BSD-3-Clause"
] | 3 | 2020-08-24T10:24:40.000Z | 2021-05-15T11:09:32.000Z | ###################################################################################################
# Project : Global Challenges Research Fund (GCRF) African SWIFT (Science for Weather
# Information and Forecasting Techniques.
#
# Program name : dewpoint_HL.py
#
# Author ... | 29.057234 | 307 | 0.642447 | 2,599 | 18,277 | 4.376299 | 0.165448 | 0.014771 | 0.012309 | 0.017232 | 0.700193 | 0.658695 | 0.64665 | 0.632407 | 0.625725 | 0.625725 | 0 | 0.054184 | 0.206325 | 18,277 | 628 | 308 | 29.103503 | 0.729905 | 0.166822 | 0 | 0.680101 | 0 | 0.002519 | 0.082571 | 0.014467 | 0 | 0 | 0 | 0 | 0 | 1 | 0.002519 | false | 0 | 0.020151 | 0 | 0.025189 | 0.005038 | 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 |
1e6a5b73bf035e09f79c27014e25258291188c30 | 971 | py | Python | moto/stepfunctions/exceptions.py | gtourkas/moto | 307104417b579d23d02f670ff55217a2d4a16bee | [
"Apache-2.0"
] | 5,460 | 2015-01-01T01:11:17.000Z | 2022-03-31T23:45:38.000Z | moto/stepfunctions/exceptions.py | gtourkas/moto | 307104417b579d23d02f670ff55217a2d4a16bee | [
"Apache-2.0"
] | 4,475 | 2015-01-05T19:37:30.000Z | 2022-03-31T13:55:12.000Z | moto/stepfunctions/exceptions.py | gtourkas/moto | 307104417b579d23d02f670ff55217a2d4a16bee | [
"Apache-2.0"
] | 1,831 | 2015-01-14T00:00:44.000Z | 2022-03-31T20:30:04.000Z | from moto.core.exceptions import AWSError
class ExecutionAlreadyExists(AWSError):
TYPE = "ExecutionAlreadyExists"
STATUS = 400
class ExecutionDoesNotExist(AWSError):
TYPE = "ExecutionDoesNotExist"
STATUS = 400
class InvalidArn(AWSError):
TYPE = "InvalidArn"
STATUS = 400
class InvalidName... | 20.229167 | 86 | 0.702369 | 89 | 971 | 7.483146 | 0.337079 | 0.144144 | 0.126126 | 0.048048 | 0.06006 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03073 | 0.195675 | 971 | 47 | 87 | 20.659574 | 0.822023 | 0 | 0 | 0.275862 | 0 | 0 | 0.196704 | 0.090628 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0 | 0.034483 | 0 | 0.931034 | 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 |
1e6eb4fdedbd0f3ea7e6c29de0c53c4b6084fb59 | 698 | py | Python | solutions/crosalot/03.py | crosalot/openteam | 6b761d8472d9ba5fb8be769376365c9ddd6bbc78 | [
"MIT"
] | null | null | null | solutions/crosalot/03.py | crosalot/openteam | 6b761d8472d9ba5fb8be769376365c9ddd6bbc78 | [
"MIT"
] | null | null | null | solutions/crosalot/03.py | crosalot/openteam | 6b761d8472d9ba5fb8be769376365c9ddd6bbc78 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
from itertools import chain
from collections import Counter
import unittest
def char_counter(text):
return ''.join(chain(*[[key, str(total)] for key, total in Counter(text).items()]))
class Test(unittest.TestCase):
def test1(self):
input = "GOOGLE"
output = "G2O2L1E... | 21.8125 | 87 | 0.641834 | 79 | 698 | 5.518987 | 0.518987 | 0.100917 | 0.144495 | 0.172018 | 0.268349 | 0.268349 | 0.183486 | 0 | 0 | 0 | 0 | 0.037453 | 0.234957 | 698 | 31 | 88 | 22.516129 | 0.779026 | 0.030086 | 0 | 0.15 | 0 | 0 | 0.091716 | 0 | 0 | 0 | 0 | 0 | 0.15 | 1 | 0.2 | false | 0 | 0.15 | 0.05 | 0.45 | 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 |
1e6ed98ca01be58d57714fab480a7ee1ade5f8f1 | 3,036 | py | Python | backend_rest/users/models.py | ezrankayamba/twiga_sales | 78ea9a35db7e75f3492f03559662808cb3ad59f3 | [
"MIT"
] | null | null | null | backend_rest/users/models.py | ezrankayamba/twiga_sales | 78ea9a35db7e75f3492f03559662808cb3ad59f3 | [
"MIT"
] | 33 | 2020-03-14T17:29:33.000Z | 2022-03-12T00:19:30.000Z | backend_rest/users/models.py | ezrankayamba/twiga_sales | 78ea9a35db7e75f3492f03559662808cb3ad59f3 | [
"MIT"
] | null | null | null | from django.db import models
from django.contrib.auth.models import User
from PIL import Image
from . import choices
from django.urls import reverse
from multiselectfield import MultiSelectField
class Role(models.Model):
name = models.CharField(max_length=40, unique=True)
description = models.CharField(max_le... | 41.589041 | 100 | 0.706851 | 403 | 3,036 | 5.143921 | 0.263027 | 0.057887 | 0.069465 | 0.092619 | 0.412928 | 0.345393 | 0.291848 | 0.25808 | 0.23782 | 0.069465 | 0 | 0.014377 | 0.175231 | 3,036 | 72 | 101 | 42.166667 | 0.813498 | 0.025692 | 0 | 0.107143 | 0 | 0 | 0.068674 | 0.014885 | 0 | 0 | 0 | 0 | 0 | 1 | 0.107143 | false | 0.017857 | 0.107143 | 0.089286 | 0.839286 | 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 |
1e7227032925576c92a2cd8c068dfcd2eb74fdb8 | 180 | py | Python | code/examples/06-i2c/i2c_scan.py | yuanyanhui/intro-upy-esp32 | 5f066ca8b1804dc6032e8f0a5957acd6e36baffb | [
"MIT"
] | null | null | null | code/examples/06-i2c/i2c_scan.py | yuanyanhui/intro-upy-esp32 | 5f066ca8b1804dc6032e8f0a5957acd6e36baffb | [
"MIT"
] | null | null | null | code/examples/06-i2c/i2c_scan.py | yuanyanhui/intro-upy-esp32 | 5f066ca8b1804dc6032e8f0a5957acd6e36baffb | [
"MIT"
] | 1 | 2022-03-09T08:40:41.000Z | 2022-03-09T08:40:41.000Z | from machine import I2C, Pin
# Create an I2C object
i2c = I2C(0, sda = Pin(19), scl = Pin(18))
address = i2c.scan() # list
# Scan for devices
print('Address:', hex(address[0])) | 20 | 42 | 0.655556 | 30 | 180 | 3.933333 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.07483 | 0.183333 | 180 | 9 | 43 | 20 | 0.727891 | 0.233333 | 0 | 0 | 0 | 0 | 0.059259 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 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 |
1e73d6cdaf40a9f26ccfc491e19555ecb1e51775 | 639 | py | Python | geeksforgeeks/Data Structures/binary_tree_levelorder_using_queue.py | codervikash/online-courses | a60efad23af65080a98e7dd038fb2c750237b781 | [
"MIT"
] | null | null | null | geeksforgeeks/Data Structures/binary_tree_levelorder_using_queue.py | codervikash/online-courses | a60efad23af65080a98e7dd038fb2c750237b781 | [
"MIT"
] | null | null | null | geeksforgeeks/Data Structures/binary_tree_levelorder_using_queue.py | codervikash/online-courses | a60efad23af65080a98e7dd038fb2c750237b781 | [
"MIT"
] | null | null | null | #!/usr/bin/python
class Node:
# A utility function to create a new node
def __init__(self ,key):
self.data = key
self.left = None
self.right = None
def levelorder_travarsal_queue(root):
if root == None:
return
queue = []
queue.append(root)
while len(queue) > 0:
print queue[0].data
node = queue.pop... | 18.257143 | 49 | 0.683881 | 106 | 639 | 4.04717 | 0.424528 | 0.055944 | 0.111888 | 0.130536 | 0.11655 | 0.11655 | 0.11655 | 0 | 0 | 0 | 0 | 0.019342 | 0.190923 | 639 | 35 | 50 | 18.257143 | 0.810445 | 0.087637 | 0 | 0 | 0 | 0 | 0.070447 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | 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 |
1e7ee62078ed68f4083ad29da1001eb116aa30be | 1,051 | py | Python | examples/swig/tests/test_mymath.py | litghost/cmake-build-extension | 0ac3bd0119611a08a458264c2b88c5f7669a46ea | [
"MIT"
] | null | null | null | examples/swig/tests/test_mymath.py | litghost/cmake-build-extension | 0ac3bd0119611a08a458264c2b88c5f7669a46ea | [
"MIT"
] | null | null | null | examples/swig/tests/test_mymath.py | litghost/cmake-build-extension | 0ac3bd0119611a08a458264c2b88c5f7669a46ea | [
"MIT"
] | null | null | null | import pytest
import numpy as np
import mymath.bindings
def test_dot():
v1 = [1., 2, 3, -5.5, 42]
v2 = [-3.2, 0, 13, 6, -3.14]
result = mymath.bindings.dot(vector1=v1, vector2=v2)
assert pytest.approx(result) == np.dot(v1, v2)
def test_normalize():
v = [1., 2, 3, -5.5, 42]
result = mymat... | 21.44898 | 67 | 0.610847 | 178 | 1,051 | 3.516854 | 0.219101 | 0.078275 | 0.023962 | 0.031949 | 0.694888 | 0.694888 | 0.694888 | 0.677316 | 0.618211 | 0.618211 | 0 | 0.090909 | 0.204567 | 1,051 | 48 | 68 | 21.895833 | 0.657895 | 0 | 0 | 0.148148 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 1 | 0.185185 | false | 0 | 0.111111 | 0 | 0.296296 | 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 |
1e840b74dc1595a4669328872983de6eb9283a3f | 13,132 | py | Python | CPAC/AWS/aws_utils.py | danlurie/C-PAC | 5ddc2d4fa71eb13728d6156f73cb6e7621dda69d | [
"BSD-3-Clause"
] | null | null | null | CPAC/AWS/aws_utils.py | danlurie/C-PAC | 5ddc2d4fa71eb13728d6156f73cb6e7621dda69d | [
"BSD-3-Clause"
] | null | null | null | CPAC/AWS/aws_utils.py | danlurie/C-PAC | 5ddc2d4fa71eb13728d6156f73cb6e7621dda69d | [
"BSD-3-Clause"
] | null | null | null | # CPAC/AWS/aws_utils.py
#
# Contributing authors:
# Daniel Clark
'''
This module contains functions which assist in interacting with AWS
services, including uploading/downloading data and file checking.
'''
# Build and download a subject list
def build_download_sublist(bucket, bucket_prefix, local_prefix, sub_list):
... | 32.994975 | 82 | 0.622068 | 1,857 | 13,132 | 4.292407 | 0.166936 | 0.018442 | 0.018065 | 0.01656 | 0.358299 | 0.297453 | 0.283904 | 0.277757 | 0.25806 | 0.235102 | 0 | 0.009363 | 0.300564 | 13,132 | 397 | 83 | 33.078086 | 0.858465 | 0.11689 | 0 | 0.255172 | 0 | 0 | 0.122241 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.034483 | null | null | 0.158621 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1e8795ddf8a0b2472d4c8353fceba46ca4b94b3c | 372 | py | Python | SGX_lib/setup.py | micado-scale/component-iivr | 4cdc8de6c30c83b1dcd56373e6842c4eb6b5082d | [
"Apache-2.0"
] | null | null | null | SGX_lib/setup.py | micado-scale/component-iivr | 4cdc8de6c30c83b1dcd56373e6842c4eb6b5082d | [
"Apache-2.0"
] | null | null | null | SGX_lib/setup.py | micado-scale/component-iivr | 4cdc8de6c30c83b1dcd56373e6842c4eb6b5082d | [
"Apache-2.0"
] | null | null | null | from distutils.core import setup
from distutils.extension import Extension
from Cython.Build import cythonize
examples_extension = Extension(
name="sgxwrapper",
sources=["sgxwrapper.pyx"],
libraries=['iiv'],
library_dirs=['libcSGX'],
include_dirs=['libcSGX/untrusted']
)
setup(
name="sgxwrapper"... | 23.25 | 47 | 0.731183 | 40 | 372 | 6.675 | 0.575 | 0.097378 | 0.194757 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145161 | 372 | 15 | 48 | 24.8 | 0.839623 | 0 | 0 | 0.142857 | 0 | 0 | 0.163978 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.214286 | 0 | 0.214286 | 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 |
1e89027cad9c90b31c7b60f80ebd024e000bd8a4 | 196 | py | Python | theme-4/3547.py | sviridovcomp/python-course | 030a0adc1b30e95d9335ab0bb1213dccda335b77 | [
"MIT"
] | 1 | 2021-06-03T13:08:10.000Z | 2021-06-03T13:08:10.000Z | theme-4/3547.py | sviridovcomp/python-course | 030a0adc1b30e95d9335ab0bb1213dccda335b77 | [
"MIT"
] | null | null | null | theme-4/3547.py | sviridovcomp/python-course | 030a0adc1b30e95d9335ab0bb1213dccda335b77 | [
"MIT"
] | null | null | null | count = int(input())
for i in range(1, count + 1):
for j in range(1, i + 1):
print(j, end="")
print() # print("\n", end="") - по умолчанию print() выводит в консоль только '\n' | 39.2 | 86 | 0.540816 | 32 | 196 | 3.3125 | 0.5625 | 0.132075 | 0.150943 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027586 | 0.260204 | 196 | 5 | 86 | 39.2 | 0.703448 | 0.367347 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1e8b930368bb205689a6d76fd40752d325bad49a | 1,149 | py | Python | gammagl/utils/num_nodes.py | BUPT-GAMMA/GammaGL | 2b9f32e1ac3533cb75a063243e8a2fa654466d18 | [
"Apache-2.0"
] | null | null | null | gammagl/utils/num_nodes.py | BUPT-GAMMA/GammaGL | 2b9f32e1ac3533cb75a063243e8a2fa654466d18 | [
"Apache-2.0"
] | null | null | null | gammagl/utils/num_nodes.py | BUPT-GAMMA/GammaGL | 2b9f32e1ac3533cb75a063243e8a2fa654466d18 | [
"Apache-2.0"
] | null | null | null | from copy import copy
from .check import check_is_numpy
import tensorlayerx as tlx
def maybe_num_nodes(edge_index, num_nodes=None):
if num_nodes is not None:
return num_nodes
elif tlx.is_tensor(edge_index):
return int(tlx.reduce_max(edge_index)) + 1 if edge_index is not None else 0 # BUG: mind... | 32.828571 | 138 | 0.67537 | 190 | 1,149 | 3.805263 | 0.252632 | 0.165975 | 0.182573 | 0.062241 | 0.282158 | 0.282158 | 0.282158 | 0.246196 | 0.246196 | 0.246196 | 0 | 0.012486 | 0.233246 | 1,149 | 34 | 139 | 33.794118 | 0.808173 | 0.045257 | 0 | 0.16 | 0 | 0 | 0.020091 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0.12 | 0 | 0.36 | 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 |
1e8edbce56366d85ca6bf47240736c64d822983c | 1,339 | py | Python | SC/acme_report.py | BaiganKing/DS-Unit-3-Sprint-1-Software-Engineering | 3c276d13448ff6e7188b6e41936fd9d0a82aa372 | [
"MIT"
] | null | null | null | SC/acme_report.py | BaiganKing/DS-Unit-3-Sprint-1-Software-Engineering | 3c276d13448ff6e7188b6e41936fd9d0a82aa372 | [
"MIT"
] | null | null | null | SC/acme_report.py | BaiganKing/DS-Unit-3-Sprint-1-Software-Engineering | 3c276d13448ff6e7188b6e41936fd9d0a82aa372 | [
"MIT"
] | null | null | null | from random import randint, sample, uniform
from acme import Product
ADJECTIVES = ['Awesome', 'Shiny', 'Impressive', 'Portable', 'Improved']
NOUNS = ['Anvil', 'Catapult', 'Disguise', 'Mousetrap', '???']
def generate_products():
products = []
for i in range(30):
name = '{}{}'.format(sample(ADJECTIVES... | 33.475 | 84 | 0.647498 | 167 | 1,339 | 5.071856 | 0.371257 | 0.033058 | 0.042503 | 0.080283 | 0.106257 | 0.106257 | 0.0732 | 0 | 0 | 0 | 0 | 0.02521 | 0.200149 | 1,339 | 39 | 85 | 34.333333 | 0.76564 | 0 | 0 | 0.066667 | 0 | 0 | 0.197909 | 0.01643 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.066667 | null | null | 0.233333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1e8fe452e48d6e14d8416d5bb984690583175caf | 2,386 | py | Python | scripts/gt_pose2bag.py | UMich-BipedLab/SegmentationMapping | b58eec234ae6fd78a2e7ba8b2398ff05fb467e19 | [
"MIT"
] | 36 | 2019-06-23T20:47:25.000Z | 2022-03-22T02:49:56.000Z | scripts/gt_pose2bag.py | crankler/SegmentationMapping | f4f95fa848ff59e322488d5b17e6ea1bdd15831c | [
"MIT"
] | 3 | 2020-06-07T09:22:04.000Z | 2021-08-02T19:01:12.000Z | scripts/gt_pose2bag.py | crankler/SegmentationMapping | f4f95fa848ff59e322488d5b17e6ea1bdd15831c | [
"MIT"
] | 13 | 2019-06-23T20:50:52.000Z | 2022-02-18T10:59:12.000Z | #!/usr/bin/python
import rospy, sys, os
import rosbag
import geometry_msgs, tf
import tf.msg
import geometry_msgs.msg
import pdb
def gen_tf_msg_from_file(fname):
msgs = []
with open(fname, 'r') as f:
for i, line in enumerate(f):
words = line.split(',')
if i == 0:
... | 32.243243 | 71 | 0.559933 | 318 | 2,386 | 4.031447 | 0.308176 | 0.060842 | 0.081903 | 0.071763 | 0.068643 | 0.043682 | 0 | 0 | 0 | 0 | 0 | 0.024891 | 0.326488 | 2,386 | 73 | 72 | 32.684932 | 0.772869 | 0.05197 | 0 | 0 | 0 | 0 | 0.029438 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.101695 | null | null | 0.067797 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1e91e2039fc8353ca1d8ecf0c052cdb6884b8d32 | 1,948 | py | Python | src/features/features_maps.py | Sushentsev/DapStep | 772312085d5ba0e2877c05b79b0b33df25276011 | [
"Apache-2.0"
] | 1 | 2022-01-11T15:08:38.000Z | 2022-01-11T15:08:38.000Z | src/features/features_maps.py | Sushentsev/DapStep | 772312085d5ba0e2877c05b79b0b33df25276011 | [
"Apache-2.0"
] | null | null | null | src/features/features_maps.py | Sushentsev/DapStep | 772312085d5ba0e2877c05b79b0b33df25276011 | [
"Apache-2.0"
] | null | null | null | from src.features.annotation_handlers.line_dist import LineDistanceHandler
from src.features.annotation_handlers.line_edited import LineEditedHandler
from src.features.annotation_handlers.norm_num_edited_lines import NormalizedNumberEditedLinesHandler
from src.features.annotation_handlers.norm_num_edited_lines_window i... | 54.111111 | 101 | 0.87269 | 205 | 1,948 | 7.873171 | 0.2 | 0.056382 | 0.120818 | 0.123916 | 0.388476 | 0.29368 | 0.168525 | 0.118959 | 0.063197 | 0 | 0 | 0 | 0.077515 | 1,948 | 35 | 102 | 55.657143 | 0.898164 | 0 | 0 | 0 | 0 | 0 | 0.133984 | 0.069815 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.40625 | 0 | 0.40625 | 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 |
1e99cc57fe8f62260ab15f37b50ecac1fba39627 | 2,178 | py | Python | picomc/cli/account.py | Zajozor/picomc | 3df03c1191544053ea1e237b9860ed9f4782b029 | [
"MIT"
] | null | null | null | picomc/cli/account.py | Zajozor/picomc | 3df03c1191544053ea1e237b9860ed9f4782b029 | [
"MIT"
] | null | null | null | picomc/cli/account.py | Zajozor/picomc | 3df03c1191544053ea1e237b9860ed9f4782b029 | [
"MIT"
] | null | null | null | import click
from picomc.account import AccountError, OfflineAccount, OnlineAccount, RefreshError
from picomc.cli.utils import pass_account_manager
from picomc.yggdrasil import AuthenticationError
def account_cmd(fn):
return click.argument("account")(fn)
@click.group()
def account_cli():
"""Manage your acc... | 22.22449 | 85 | 0.662075 | 269 | 2,178 | 5.211896 | 0.267658 | 0.064194 | 0.089872 | 0.089872 | 0.249643 | 0.207561 | 0.188302 | 0.188302 | 0.188302 | 0.188302 | 0 | 0 | 0.217631 | 2,178 | 97 | 86 | 22.453608 | 0.82277 | 0.097337 | 0 | 0.471429 | 0 | 0 | 0.033679 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.128571 | false | 0.142857 | 0.071429 | 0.014286 | 0.214286 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
1eaad4b2e9b4a4e602653413cf531af980be14cd | 6,560 | py | Python | getCRISPRY/lib/bowtie2.py | asistradition/getCRISPRY | 304dd74226ca90f595ed6cd9ce6ed0ef71fae514 | [
"MIT"
] | 1 | 2021-06-02T20:35:30.000Z | 2021-06-02T20:35:30.000Z | getCRISPRY/lib/bowtie2.py | asistradition/getCRISPRY | 304dd74226ca90f595ed6cd9ce6ed0ef71fae514 | [
"MIT"
] | null | null | null | getCRISPRY/lib/bowtie2.py | asistradition/getCRISPRY | 304dd74226ca90f595ed6cd9ce6ed0ef71fae514 | [
"MIT"
] | null | null | null | from __future__ import print_function
from .degenerate_tools import fix_seq_object
import errno
import os
import subprocess
import io
from Bio import SeqIO
from Bio.Seq import Seq
from Bio.Alphabet import generic_dna
SAMTOOLS_MAP = {"FLAG": 1,
"RNAME": 2,
"POS": 3,
"S... | 30.511628 | 122 | 0.640854 | 933 | 6,560 | 4.339764 | 0.231511 | 0.019264 | 0.013337 | 0.012349 | 0.352927 | 0.302297 | 0.258829 | 0.247469 | 0.204495 | 0.204495 | 0 | 0.006841 | 0.264634 | 6,560 | 214 | 123 | 30.654206 | 0.832504 | 0.375152 | 0 | 0.153846 | 1 | 0 | 0.039545 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.067308 | false | 0.009615 | 0.086538 | 0 | 0.221154 | 0.009615 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1eadab161a212d42329415bda99cd6eef0060bf0 | 3,350 | py | Python | tests/integration/test_security.py | Rogdham/bigxml | ab983f50c49bf861c3b61e3e636db90f9ff19ed1 | [
"MIT"
] | 4 | 2020-08-24T13:31:46.000Z | 2022-01-25T08:03:19.000Z | tests/integration/test_security.py | Rogdham/bigxml | ab983f50c49bf861c3b61e3e636db90f9ff19ed1 | [
"MIT"
] | null | null | null | tests/integration/test_security.py | Rogdham/bigxml | ab983f50c49bf861c3b61e3e636db90f9ff19ed1 | [
"MIT"
] | null | null | null | from defusedxml import EntitiesForbidden
import pytest
from bigxml import Parser
def handler_get_text(node):
yield node.text
@pytest.mark.parametrize(
"xml",
(
pytest.param(
(
b"<!DOCTYPE foobar [\n"
b' <!ENTITY a "bigbigbigbigbigbigbigbigbigbigbig... | 35.638298 | 94 | 0.360896 | 460 | 3,350 | 2.613043 | 0.119565 | 0.088186 | 0.124792 | 0.156406 | 0.697171 | 0.677205 | 0.672213 | 0.672213 | 0.672213 | 0.630616 | 0 | 0.001928 | 0.380597 | 3,350 | 93 | 95 | 36.021505 | 0.577349 | 0 | 0 | 0.579545 | 0 | 0.136364 | 0.499701 | 0.275522 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022727 | false | 0 | 0.034091 | 0 | 0.056818 | 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 |
1eadd48490f71cd779184bfe1b90fe2b1caac783 | 760 | py | Python | readthedocs/profiles/urls/private.py | espdev/readthedocs.org | 5052a06feae56fe5efc9b4c57c430de6007cb7c1 | [
"MIT"
] | null | null | null | readthedocs/profiles/urls/private.py | espdev/readthedocs.org | 5052a06feae56fe5efc9b4c57c430de6007cb7c1 | [
"MIT"
] | null | null | null | readthedocs/profiles/urls/private.py | espdev/readthedocs.org | 5052a06feae56fe5efc9b4c57c430de6007cb7c1 | [
"MIT"
] | null | null | null | from django.conf.urls import patterns, url
from readthedocs.core.forms import UserProfileForm
urlpatterns = patterns('',
url(r'^create/', 'readthedocs.profiles.views.create_profile',
{
'form_class': UserProfileForm,
... | 42.222222 | 85 | 0.443421 | 52 | 760 | 6.288462 | 0.461538 | 0.110092 | 0.146789 | 0.189602 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.467105 | 760 | 17 | 86 | 44.705882 | 0.807407 | 0 | 0 | 0.133333 | 0 | 0 | 0.269737 | 0.207895 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 0 | 0.133333 | 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 |
1eb0527a26c0b64d299ee3e1027024887c4c4939 | 1,376 | py | Python | edgeql_queries/models.py | refi64/edgeql-queries | f4734545a250f6e8718a9f1da08d22dcd04605c5 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | edgeql_queries/models.py | refi64/edgeql-queries | f4734545a250f6e8718a9f1da08d22dcd04605c5 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | edgeql_queries/models.py | refi64/edgeql-queries | f4734545a250f6e8718a9f1da08d22dcd04605c5 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | """Definition for main data models used in this library."""
from dataclasses import dataclass
from enum import IntEnum, auto
class EdgeQLOperationType(IntEnum):
"""Enumeration for operation types for queries."""
#: type for operation that definetly returns a single object.
required_single_return = auto(... | 25.018182 | 79 | 0.638081 | 161 | 1,376 | 5.360248 | 0.391304 | 0.069525 | 0.07416 | 0.0927 | 0.292005 | 0.134415 | 0.134415 | 0 | 0 | 0 | 0 | 0.003 | 0.273256 | 1,376 | 54 | 80 | 25.481481 | 0.86 | 0.463663 | 0 | 0 | 0 | 0.05 | 0.082317 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.1 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
1eb81cebfbb95ad4bdcdcc6d617aea1872328e93 | 638 | py | Python | busker/migrations/0009_auto_20200829_2024.py | tinpan-io/django-busker | 52df06b82e15572d0cd9c9d13ba2d5136585bc2d | [
"MIT"
] | 2 | 2020-09-01T12:06:07.000Z | 2021-09-24T09:54:57.000Z | busker/migrations/0009_auto_20200829_2024.py | tinpan-io/django-busker | 52df06b82e15572d0cd9c9d13ba2d5136585bc2d | [
"MIT"
] | null | null | null | busker/migrations/0009_auto_20200829_2024.py | tinpan-io/django-busker | 52df06b82e15572d0cd9c9d13ba2d5136585bc2d | [
"MIT"
] | null | null | null | # Generated by Django 3.1 on 2020-08-29 20:24
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('busker', '0008_remove_downloadablework_thumbnail'),
]
operations = [
migrations.RemoveField(
model_name='downloadablework',
... | 27.73913 | 166 | 0.62069 | 62 | 638 | 6.290323 | 0.774194 | 0.046154 | 0.128205 | 0.148718 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038217 | 0.261755 | 638 | 22 | 167 | 29 | 0.789809 | 0.067398 | 0 | 0.25 | 1 | 0 | 0.263069 | 0.064081 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1eb8dcf6b14ef3922ed0f7d8857d992abf8047f2 | 3,163 | py | Python | stream.py | TWoolhouse/Libraries | 26079ed387cb800cb97f20980720ae094008c7bf | [
"MIT"
] | 1 | 2020-10-11T15:34:56.000Z | 2020-10-11T15:34:56.000Z | stream.py | TWoolhouse/Libraries | 26079ed387cb800cb97f20980720ae094008c7bf | [
"MIT"
] | null | null | null | stream.py | TWoolhouse/Libraries | 26079ed387cb800cb97f20980720ae094008c7bf | [
"MIT"
] | null | null | null | import io
import collections
import numpy as np
class Stream(io.BufferedIOBase):
def __init__(self, blocksize=4096):
super().__init__()
self._closed = False
self._blocksize = blocksize
self._index = 0
self._data = collections.deque()
def __len__(self) -> int:
re... | 26.358333 | 80 | 0.550743 | 372 | 3,163 | 4.521505 | 0.223118 | 0.047562 | 0.080262 | 0.053508 | 0.294293 | 0.184304 | 0.117717 | 0.117717 | 0.117717 | 0.072533 | 0 | 0.015805 | 0.339867 | 3,163 | 119 | 81 | 26.579832 | 0.789751 | 0 | 0 | 0.229167 | 0 | 0 | 0.036042 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.208333 | false | 0 | 0.03125 | 0.083333 | 0.4375 | 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 |
1eb9d7917ebd54c4fd9acc507c9293d6b53b5cdc | 8,431 | py | Python | inspection_sdk/api/template/list_pb2.py | easyopsapis/easyops-api-python | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | [
"Apache-2.0"
] | 5 | 2019-07-31T04:11:05.000Z | 2021-01-07T03:23:20.000Z | inspection_sdk/api/template/list_pb2.py | easyopsapis/easyops-api-python | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | [
"Apache-2.0"
] | null | null | null | inspection_sdk/api/template/list_pb2.py | easyopsapis/easyops-api-python | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: list.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import... | 40.339713 | 698 | 0.759815 | 1,003 | 8,431 | 6.099701 | 0.154536 | 0.047074 | 0.051487 | 0.035959 | 0.564564 | 0.528768 | 0.507846 | 0.501961 | 0.496568 | 0.463714 | 0 | 0.035237 | 0.121457 | 8,431 | 208 | 699 | 40.533654 | 0.790738 | 0.045072 | 0 | 0.638889 | 1 | 0.005556 | 0.200075 | 0.156677 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.033333 | 0 | 0.033333 | 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 |
1ec45335b663220d0eda5d8b69db06f4248cb0ff | 1,603 | py | Python | fraud-service/app.py | ricky4200/sprint-one-partial | 67ee7ba65c937152b43436ac217f4ed84fb865a8 | [
"MIT"
] | 31 | 2020-02-07T14:09:39.000Z | 2022-03-31T21:49:46.000Z | fraud-service/app.py | ricky4200/sprint-one-partial | 67ee7ba65c937152b43436ac217f4ed84fb865a8 | [
"MIT"
] | 280 | 2020-01-28T12:31:09.000Z | 2022-03-31T21:14:16.000Z | fraud-service/app.py | ricky4200/sprint-one-partial | 67ee7ba65c937152b43436ac217f4ed84fb865a8 | [
"MIT"
] | 66 | 2020-02-17T17:38:41.000Z | 2022-03-16T13:57:05.000Z | import flask
import os
from dotenv import load_dotenv
from pathlib import Path
import sys
sys.path.append('fraud_graph/')
import fraud_times.quiz_statistics as quiz_stats
import fraud_times.quiz_orm as quiz_orm
import get_scores as get_scores
import create_dataset2 as create_dataset
import json
# Does not override en... | 38.166667 | 114 | 0.731129 | 211 | 1,603 | 5.331754 | 0.369668 | 0.048 | 0.029333 | 0.04 | 0.194667 | 0.194667 | 0.174222 | 0.174222 | 0.174222 | 0.174222 | 0 | 0.001479 | 0.156581 | 1,603 | 41 | 115 | 39.097561 | 0.830621 | 0.069869 | 0 | 0.060606 | 0 | 0 | 0.100067 | 0.018805 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060606 | false | 0 | 0.30303 | 0 | 0.424242 | 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 |
1ec6645ad0d6991d701ec6485d7faa7ef2edaf2f | 2,269 | py | Python | algo/string.py | gplatono/algos-and-problems | 31c2fadd6fd335b844658141538a8b6a71d582b0 | [
"Unlicense"
] | null | null | null | algo/string.py | gplatono/algos-and-problems | 31c2fadd6fd335b844658141538a8b6a71d582b0 | [
"Unlicense"
] | null | null | null | algo/string.py | gplatono/algos-and-problems | 31c2fadd6fd335b844658141538a8b6a71d582b0 | [
"Unlicense"
] | null | null | null | from typing import *
substr_search_tests = [
{'input': ("aba", "aaaba"), 'result': 2},
{'input': ("who", "I saw who did that"), 'result': 6},
{'input': ("where", "I saw who did that"), 'result': -1},
{'input': ("that", "I saw that you did that"), 'result': 6},
{'input': ("a", "bcda"), 'result': 3},... | 27.011905 | 110 | 0.514764 | 307 | 2,269 | 3.758958 | 0.319218 | 0.048527 | 0.033795 | 0.017331 | 0.101386 | 0.034662 | 0 | 0 | 0 | 0 | 0 | 0.018555 | 0.334949 | 2,269 | 84 | 111 | 27.011905 | 0.74619 | 0.063464 | 0 | 0.076923 | 0 | 0 | 0.126714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.019231 | null | null | 0.057692 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1ecd4c145f97586e54be610c1052064d0af817b2 | 8,789 | py | Python | merkletree.py | markguo40/merkletree | 05af681de801d161e6b4917b389ea5b24125b46f | [
"MIT"
] | 1 | 2018-12-13T21:52:00.000Z | 2018-12-13T21:52:00.000Z | merkletree.py | markguo40/merkletree | 05af681de801d161e6b4917b389ea5b24125b46f | [
"MIT"
] | null | null | null | merkletree.py | markguo40/merkletree | 05af681de801d161e6b4917b389ea5b24125b46f | [
"MIT"
] | null | null | null | ###################
# Zhanchen Guo
# Merkel Tree implementation
###################
from __future__ import division
import hashlib
from collections import deque
hash_func = hashlib.sha256
class MerkleTree(object):
class Node(object):
def __init__(self, value):
self.value = hash_func(value).h... | 35.297189 | 108 | 0.559791 | 1,039 | 8,789 | 4.614052 | 0.18768 | 0.022528 | 0.018773 | 0.014184 | 0.188986 | 0.127242 | 0.106383 | 0.081769 | 0.081769 | 0.062578 | 0 | 0.009298 | 0.351462 | 8,789 | 248 | 109 | 35.439516 | 0.831754 | 0.061213 | 0 | 0.109195 | 0 | 0 | 0.084563 | 0.007094 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.017241 | null | null | 0.097701 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1ecf390b0720498ad005e1d8c756566cff179432 | 2,696 | py | Python | scripts/CreateHandControl.py | jentron/Blender-PT2 | 30368229992388bb61fab51940a17e2eb114a9fd | [
"BSD-2-Clause"
] | 4 | 2020-07-11T12:30:30.000Z | 2022-02-11T01:00:35.000Z | scripts/CreateHandControl.py | jentron/Blender-PT2 | 30368229992388bb61fab51940a17e2eb114a9fd | [
"BSD-2-Clause"
] | 43 | 2020-03-28T19:06:51.000Z | 2021-10-09T11:51:15.000Z | scripts/CreateHandControl.py | jentron/Blender-PT2 | 30368229992388bb61fab51940a17e2eb114a9fd | [
"BSD-2-Clause"
] | 1 | 2020-05-16T06:44:57.000Z | 2020-05-16T06:44:57.000Z | import bpy
#from mathutils import *
#from math import *
# for each finger
## add a control bone goes from base of 1st bone to tip of last bone 3 for fingers, 2 for thumb
hand_bones={
'f_Index': ('Index1','Index2','Index3',),
'f_Mid' : ('Mid1', 'Mid2', 'Mid3',),
'f_Ring' : ('Ring1', 'Ring2', 'Ring3',),
'f_Pinky': (... | 33.283951 | 123 | 0.634273 | 412 | 2,696 | 4.055825 | 0.334951 | 0.04608 | 0.04608 | 0.067026 | 0.220826 | 0.132256 | 0.118492 | 0.118492 | 0.118492 | 0.118492 | 0 | 0.014437 | 0.229228 | 2,696 | 80 | 124 | 33.7 | 0.789702 | 0.215134 | 0 | 0.214286 | 0 | 0 | 0.10936 | 0 | 0 | 0 | 0 | 0.0125 | 0 | 1 | 0 | false | 0 | 0.017857 | 0 | 0.017857 | 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 |
1ede7e468e108187cea1c8b8ef1ee2912c89d793 | 6,962 | py | Python | download.py | D4RK-H3R0BR1N3-26102019/raddar | f01aeb8406e13a5460ca1548e4eea8f82cb55473 | [
"Apache-2.0"
] | 6 | 2017-08-05T14:13:27.000Z | 2021-11-09T06:57:52.000Z | download.py | D4RK-H3R0BR1N3-26102019/raddar | f01aeb8406e13a5460ca1548e4eea8f82cb55473 | [
"Apache-2.0"
] | null | null | null | download.py | D4RK-H3R0BR1N3-26102019/raddar | f01aeb8406e13a5460ca1548e4eea8f82cb55473 | [
"Apache-2.0"
] | 4 | 2017-05-11T16:10:54.000Z | 2021-06-24T06:40:32.000Z | """
Modified from malware downloader obtain from Amin Kharraz
"""
from bs4 import BeautifulSoup as bs
import sys
import re
import hashlib
import socket
import datetime
import time
import os
import magic
import urllib2
from urllib2 import URLError, HTTPError
import argparse
import logging
now = datetime.datetime.now()... | 33.311005 | 97 | 0.557598 | 788 | 6,962 | 4.823604 | 0.314721 | 0.037622 | 0.008419 | 0.014733 | 0.179426 | 0.103131 | 0.087872 | 0.087872 | 0.07156 | 0.07156 | 0 | 0.014468 | 0.334818 | 6,962 | 208 | 98 | 33.471154 | 0.806305 | 0.104855 | 0 | 0.112583 | 0 | 0 | 0.13494 | 0 | 0 | 0 | 0 | 0.004808 | 0 | 0 | null | null | 0.019868 | 0.086093 | 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 |
1ee04477c3ba9b4fe72c5fc2154a2f717e6684f9 | 4,643 | py | Python | tests/test_nested_documents.py | mushkevych/synergy_odm | fe418ccedf5d76761caf1620dcbb0e6da3606497 | [
"BSD-3-Clause"
] | null | null | null | tests/test_nested_documents.py | mushkevych/synergy_odm | fe418ccedf5d76761caf1620dcbb0e6da3606497 | [
"BSD-3-Clause"
] | null | null | null | tests/test_nested_documents.py | mushkevych/synergy_odm | fe418ccedf5d76761caf1620dcbb0e6da3606497 | [
"BSD-3-Clause"
] | null | null | null | __author__ = 'Bohdan Mushkevych'
import unittest
from datetime import datetime, timedelta
from odm import document, fields
from odm.errors import ValidationError
from tests.test_document_operations import SimpleContainer
class NestedDocuments(document.BaseDocument):
field_nested = fields.NestedDocumentField(Sim... | 41.828829 | 119 | 0.702563 | 533 | 4,643 | 5.898687 | 0.172608 | 0.129453 | 0.167939 | 0.178117 | 0.661896 | 0.633588 | 0.551845 | 0.53944 | 0.509542 | 0.48028 | 0 | 0.027049 | 0.211717 | 4,643 | 110 | 120 | 42.209091 | 0.831967 | 0 | 0 | 0.416667 | 0 | 0 | 0.077967 | 0 | 0 | 0 | 0 | 0 | 0.27381 | 1 | 0.083333 | false | 0 | 0.059524 | 0 | 0.214286 | 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 |
1ee14a65d1aa55306b0b0d7b2c199c286683d6c4 | 21,795 | py | Python | EvtGen1_06_00/convertDecayFile.py | klendathu2k/StarGenerator | 7dd407c41d4eea059ca96ded80d30bda0bc014a4 | [
"MIT"
] | 2 | 2018-12-24T19:37:00.000Z | 2022-02-28T06:57:20.000Z | EvtGen1_06_00/convertDecayFile.py | klendathu2k/StarGenerator | 7dd407c41d4eea059ca96ded80d30bda0bc014a4 | [
"MIT"
] | null | null | null | EvtGen1_06_00/convertDecayFile.py | klendathu2k/StarGenerator | 7dd407c41d4eea059ca96ded80d30bda0bc014a4 | [
"MIT"
] | null | null | null | #!/usr/bin/python
import sys
comments = True
def main(inFile, outFile, extraFiles):
#open our files
fh1 = open(inFile,"r")
fh2 = open(outFile, "w")
data = fh1.readlines()
allowedParticles = []
particleData = {}
#open extra files to get aliases
firstWordIsAlias = False
for file in extraFiles:
e... | 31.135714 | 158 | 0.509429 | 2,158 | 21,795 | 5.145042 | 0.133457 | 0.038908 | 0.044132 | 0.049716 | 0.437359 | 0.409169 | 0.389174 | 0.361164 | 0.35675 | 0.312078 | 0 | 0.02109 | 0.340812 | 21,795 | 699 | 159 | 31.180258 | 0.751723 | 0.056297 | 0 | 0.557166 | 0 | 0.00161 | 0.115988 | 0.008022 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.00161 | null | null | 0.030596 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1ee1d09f857313709020aebe8122ef1583aae9bb | 1,916 | py | Python | tests/dhcpv4/options/test_v4_rai_options.py | isc-projects/forge | dfec8b41003d6b5a229f69ee93616e0e5cc6d71b | [
"0BSD"
] | 22 | 2015-02-27T11:51:05.000Z | 2022-02-28T12:39:29.000Z | tests/dhcpv4/options/test_v4_rai_options.py | isc-projects/forge | dfec8b41003d6b5a229f69ee93616e0e5cc6d71b | [
"0BSD"
] | 16 | 2018-10-30T15:00:12.000Z | 2019-01-11T17:55:13.000Z | tests/dhcpv4/options/test_v4_rai_options.py | isc-projects/forge | dfec8b41003d6b5a229f69ee93616e0e5cc6d71b | [
"0BSD"
] | 11 | 2015-02-27T11:51:36.000Z | 2021-03-30T08:33:54.000Z | '''DHCPv4 RAI options'''
import pytest
import misc
import srv_control
import srv_msg
from protosupport.multi_protocol_functions import convert_address_to_hex, increase_address
@pytest.mark.v4
@pytest.mark.options
@pytest.mark.kea_only
def test_v4_rai_option11_server_identifier_override():
# RFC 5107 DHCP Serve... | 33.034483 | 90 | 0.75261 | 281 | 1,916 | 4.729537 | 0.313167 | 0.076749 | 0.063205 | 0.085779 | 0.476298 | 0.476298 | 0.389014 | 0.389014 | 0.368698 | 0.3386 | 0 | 0.040904 | 0.145094 | 1,916 | 57 | 91 | 33.614035 | 0.770452 | 0.122651 | 0 | 0.384615 | 0 | 0 | 0.116836 | 0.029958 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025641 | false | 0.076923 | 0.128205 | 0 | 0.153846 | 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 |
1ee1dbac6d3aeb2444ab5ea217ecbcf16254f465 | 697 | py | Python | meiduo_mall/apps/meiduo_admin/views/admin.py | Gh-Helina/Git_meiduo | 42a7edf7ca3b43b59955505db854c73c6edf1f24 | [
"MIT"
] | null | null | null | meiduo_mall/apps/meiduo_admin/views/admin.py | Gh-Helina/Git_meiduo | 42a7edf7ca3b43b59955505db854c73c6edf1f24 | [
"MIT"
] | null | null | null | meiduo_mall/apps/meiduo_admin/views/admin.py | Gh-Helina/Git_meiduo | 42a7edf7ca3b43b59955505db854c73c6edf1f24 | [
"MIT"
] | null | null | null | from django.contrib.auth.models import Group
from rest_framework.response import Response
from rest_framework.viewsets import ModelViewSet
from apps.meiduo_admin.serializers.AdminSelializer import AdminSerializer
from apps.meiduo_admin.serializers.GroupsSerializer import GroupSerialzier
from apps.meiduo_admin.utils im... | 30.304348 | 74 | 0.780488 | 83 | 697 | 6.457831 | 0.554217 | 0.059701 | 0.078358 | 0.106343 | 0.11194 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15495 | 697 | 22 | 75 | 31.681818 | 0.910017 | 0.020086 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.466667 | 0 | 0.866667 | 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 |
1ee357757601cb10ec2607f856b783131bfbde45 | 9,088 | py | Python | gears/geometry/affinematrix.py | gfsmith/gears | 0091f64182f56523fd5f92a66fbe8a0e8866c0c2 | [
"MIT"
] | 1 | 2020-10-22T10:00:39.000Z | 2020-10-22T10:00:39.000Z | gears/geometry/affinematrix.py | gfsmith/gears | 0091f64182f56523fd5f92a66fbe8a0e8866c0c2 | [
"MIT"
] | null | null | null | gears/geometry/affinematrix.py | gfsmith/gears | 0091f64182f56523fd5f92a66fbe8a0e8866c0c2 | [
"MIT"
] | null | null | null | from matrix import Matrix
from vector import Vector
from point import Point
from math import sin, cos, acos
EPS = 1.0e-6
class AffineMatrix(Matrix):
'''
a light weight 3D coordinate transformation matrix (affine matrix, aka quaternion) module
'''
def __init__(self,seq=None):
if seq == None:
... | 35.639216 | 177 | 0.542804 | 1,362 | 9,088 | 3.594714 | 0.160059 | 0.034722 | 0.030637 | 0.023693 | 0.349469 | 0.304126 | 0.280842 | 0.227533 | 0.212827 | 0.194853 | 0 | 0.060109 | 0.295224 | 9,088 | 254 | 178 | 35.779528 | 0.704294 | 0.106404 | 0 | 0.171053 | 0 | 0 | 0.049494 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.026316 | null | null | 0.092105 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
948ee5a0e71173864234e41872694988502e5f66 | 1,131 | py | Python | projectfirewatch/scripts/reference-modules/csv-json.py | osteth/project-firewatch | aef2d3416ab29f111097945f07288ac765a1d99b | [
"MIT"
] | 4 | 2018-01-21T06:58:15.000Z | 2021-02-04T07:58:08.000Z | projectfirewatch/scripts/reference-modules/csv-json.py | osteth/project-firewatch | aef2d3416ab29f111097945f07288ac765a1d99b | [
"MIT"
] | 1 | 2017-05-04T05:24:00.000Z | 2017-05-05T16:18:10.000Z | projectfirewatch/scripts/reference-modules/csv-json.py | osteth/project-firewatch | aef2d3416ab29f111097945f07288ac765a1d99b | [
"MIT"
] | 2 | 2017-04-29T18:09:15.000Z | 2019-10-19T15:44:49.000Z | #!/usr/bin/python
import csv
import json
import click
@click.group()
def cli(*args, **kwargs):
"""Command line utility to easily convert .csv data over to .json data. This utility was built for the NASA space apps challenge and is defaulted
to be used with cron to pull in data from https://earthdata.nasa.gov... | 31.416667 | 151 | 0.710875 | 184 | 1,131 | 4.288043 | 0.521739 | 0.022814 | 0.035488 | 0.050697 | 0.058302 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00733 | 0.155615 | 1,131 | 35 | 152 | 32.314286 | 0.818848 | 0.415561 | 0 | 0 | 0 | 0 | 0.308282 | 0.072086 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0.052632 | 0.157895 | 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 |
9491db02493c2032a179655b16c4eab13a2600f8 | 1,908 | py | Python | python/stringsRearrangement/stringsRearrangement.py | coingraham/codefights | d3845852562bee2669c3743d605cc8d2cd03c63d | [
"MIT"
] | null | null | null | python/stringsRearrangement/stringsRearrangement.py | coingraham/codefights | d3845852562bee2669c3743d605cc8d2cd03c63d | [
"MIT"
] | null | null | null | python/stringsRearrangement/stringsRearrangement.py | coingraham/codefights | d3845852562bee2669c3743d605cc8d2cd03c63d | [
"MIT"
] | null | null | null | """
Given an array of equal-length strings, check if it is possible to rearrange the strings in such a way that after the rearrangement the strings at consecutive positions would differ by exactly one character.
Example
For inputArray = ["aba", "bbb", "bab"], the output should be
stringsRearrangement(inputArray) = fa... | 27.257143 | 207 | 0.637317 | 243 | 1,908 | 4.921811 | 0.469136 | 0.040134 | 0.054348 | 0.053512 | 0.197324 | 0.162207 | 0 | 0 | 0 | 0 | 0 | 0.010352 | 0.240566 | 1,908 | 69 | 208 | 27.652174 | 0.815045 | 0.079665 | 0 | 0.16 | 0 | 0 | 0.113636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.08 | null | null | 0.16 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
9494123721408a77baef7c5e3ba3d1754063e723 | 724 | py | Python | backEnd/process_data_scripts/process_artists/map5_member_of.py | xSardine/AMQ-Artists-DB | 3fc7f3ad98970986bc983c2a5f2a9c77d0f98a3f | [
"MIT"
] | 2 | 2021-10-09T14:55:58.000Z | 2022-02-01T08:38:34.000Z | backEnd/process_data_scripts/process_artists/map5_member_of.py | xSardine/AMQ-Artists-DB | 3fc7f3ad98970986bc983c2a5f2a9c77d0f98a3f | [
"MIT"
] | null | null | null | backEnd/process_data_scripts/process_artists/map5_member_of.py | xSardine/AMQ-Artists-DB | 3fc7f3ad98970986bc983c2a5f2a9c77d0f98a3f | [
"MIT"
] | null | null | null | import json
from pathlib import Path
artist_database_path = Path("../../app/data/artist_mapping.json")
with open(artist_database_path, encoding="utf-8") as json_file:
artist_database = json.load(json_file)
for group in artist_database:
if len(artist_database[group]["members"]) > 0:
for i, members_con... | 34.47619 | 78 | 0.714088 | 98 | 724 | 5.071429 | 0.397959 | 0.338028 | 0.108652 | 0.088531 | 0.104628 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004926 | 0.15884 | 724 | 20 | 79 | 36.2 | 0.811166 | 0 | 0 | 0 | 0 | 0 | 0.111878 | 0.046961 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 0 | 0.133333 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
94999e637187dadb71b02465bdd9a83f9b95e029 | 3,812 | py | Python | polbotcheck/word_cluster.py | codeforfrankfurt/PolBotCheck | cef5136008301dcb16eb06dc5f18d00510c77f35 | [
"MIT"
] | 17 | 2017-03-04T11:51:31.000Z | 2020-07-10T02:27:39.000Z | polbotcheck/word_cluster.py | codeforfrankfurt/PolBotCheck | cef5136008301dcb16eb06dc5f18d00510c77f35 | [
"MIT"
] | 3 | 2021-03-18T20:15:02.000Z | 2021-09-07T23:43:18.000Z | polbotcheck/word_cluster.py | codeforfrankfurt/PolBotCheck | cef5136008301dcb16eb06dc5f18d00510c77f35 | [
"MIT"
] | 4 | 2017-04-24T19:32:12.000Z | 2017-09-18T19:23:44.000Z | import json
from sklearn.feature_extraction.text import TfidfVectorizer
import nltk
from nltk.corpus import stopwords
from wordcloud import WordCloud
import matplotlib.pyplot as plt
import db
import os
DATASET_PATH = os.environ['HOME'] + '/nltk_data/corpora/twitter_samples/tweets.20150430-223406.json'
def calc_frequen... | 38.12 | 122 | 0.683368 | 538 | 3,812 | 4.6171 | 0.319703 | 0.019726 | 0.018116 | 0.02818 | 0.199678 | 0.177939 | 0.157005 | 0.084541 | 0.084541 | 0.045894 | 0 | 0.016977 | 0.196485 | 3,812 | 99 | 123 | 38.505051 | 0.793993 | 0.148478 | 0 | 0.081081 | 0 | 0 | 0.059042 | 0.025657 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.135135 | null | null | 0.040541 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
94a1ed9aaf53c19313a98ab4b5a52e433ef2649c | 620 | py | Python | glhooks/utils.py | miso-belica/gitlab-webhooks | 12e161244655a37cb795ba826149a9685ae74f70 | [
"Apache-2.0"
] | 13 | 2015-01-08T22:37:55.000Z | 2019-06-27T08:19:15.000Z | glhooks/utils.py | miso-belica/gitlab-webhooks | 12e161244655a37cb795ba826149a9685ae74f70 | [
"Apache-2.0"
] | 1 | 2017-01-27T20:29:39.000Z | 2017-01-27T20:29:39.000Z | glhooks/utils.py | miso-belica/gitlab-webhooks | 12e161244655a37cb795ba826149a9685ae74f70 | [
"Apache-2.0"
] | 9 | 2015-01-25T05:46:12.000Z | 2021-01-12T08:22:20.000Z | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division, print_function, unicode_literals
from functools import wraps
def cached_property(getter):
"""
Decorator that converts a method into memoized property.
The decorator works as expected only for classes with
... | 24.8 | 65 | 0.693548 | 73 | 620 | 5.575342 | 0.643836 | 0.068796 | 0.078624 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002083 | 0.225806 | 620 | 24 | 66 | 25.833333 | 0.845833 | 0.290323 | 0 | 0 | 0 | 0 | 0.040865 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.272727 | 0 | 0.636364 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
94a7d4171098e4984076e084f9fee95eca3ff4a9 | 16,449 | py | Python | tests/test_mayaBugs.py | shrtcww/pymel | a453b6a545f19ec1b918495bd909f09a00959784 | [
"BSD-3-Clause"
] | 10 | 2018-03-30T16:09:02.000Z | 2021-12-07T07:29:19.000Z | tests/test_mayaBugs.py | mrharris/pymel | 3ed2a7495f0086e2e00465c9d9289502c2d5edf2 | [
"BSD-3-Clause"
] | null | null | null | tests/test_mayaBugs.py | mrharris/pymel | 3ed2a7495f0086e2e00465c9d9289502c2d5edf2 | [
"BSD-3-Clause"
] | 9 | 2018-06-02T09:18:49.000Z | 2021-12-20T09:24:35.000Z | import sys
import os
import unittest
import maya.cmds as cmds
import maya.OpenMaya as om
import maya.OpenMayaAnim as oma
import maya.OpenMayaFX as omfx
import pymel.versions
from pymel.util.testing import TestCaseExtended
if not hasattr(cmds, 'about'):
import maya.standalone
maya.standalone.initialize()
#===... | 38.164733 | 164 | 0.580522 | 1,810 | 16,449 | 5.212707 | 0.249724 | 0.005511 | 0.006677 | 0.007631 | 0.375093 | 0.337997 | 0.291786 | 0.288924 | 0.275782 | 0.262215 | 0 | 0.033119 | 0.282266 | 16,449 | 430 | 165 | 38.253488 | 0.766051 | 0.327132 | 0 | 0.291845 | 0 | 0 | 0.117961 | 0.0452 | 0 | 0 | 0 | 0 | 0.098712 | 0 | null | null | 0.034335 | 0.04721 | null | null | 0.025751 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
94b10d2010311776a93d8670eb52636fc830f065 | 1,634 | py | Python | tests/test_synth.py | ideoforms/python-supercollider | 43b6cfdf41dea48830b767159865a3044a792151 | [
"MIT"
] | 48 | 2019-10-07T14:59:14.000Z | 2022-03-30T04:58:32.000Z | tests/test_synth.py | ideoforms/python-supercollider | 43b6cfdf41dea48830b767159865a3044a792151 | [
"MIT"
] | 11 | 2019-10-07T08:48:10.000Z | 2021-07-18T19:55:37.000Z | tests/test_synth.py | ideoforms/python-supercollider | 43b6cfdf41dea48830b767159865a3044a792151 | [
"MIT"
] | 2 | 2019-12-17T14:32:20.000Z | 2021-07-11T11:23:58.000Z | import pytest
import supercollider
from tests.shared import server
def test_synth_create(server):
synth = supercollider.Synth(server, "sine", { "freq": 440.0, "gain": -24 })
assert synth.id > 0
synth.free()
def test_synth_get_set(server):
synth = supercollider.Synth(server, "sine", { "freq": 440.0, ... | 32.039216 | 114 | 0.649939 | 220 | 1,634 | 4.745455 | 0.218182 | 0.105364 | 0.16092 | 0.187739 | 0.700192 | 0.663793 | 0.621648 | 0.621648 | 0.511494 | 0.511494 | 0 | 0.048632 | 0.194614 | 1,634 | 50 | 115 | 32.68 | 0.744681 | 0 | 0 | 0.35 | 0 | 0 | 0.046512 | 0 | 0 | 0 | 0 | 0 | 0.35 | 1 | 0.075 | false | 0 | 0.075 | 0 | 0.15 | 0.075 | 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 |
94b7eacd7bde3a1d03b40dc64fad8ca279f33b66 | 4,359 | py | Python | didcomm/did_doc/did_doc.py | DenisRybas/didcomm-python | d7e83428f086d1080aaa8a9643495ca442ef9722 | [
"Apache-2.0"
] | null | null | null | didcomm/did_doc/did_doc.py | DenisRybas/didcomm-python | d7e83428f086d1080aaa8a9643495ca442ef9722 | [
"Apache-2.0"
] | null | null | null | didcomm/did_doc/did_doc.py | DenisRybas/didcomm-python | d7e83428f086d1080aaa8a9643495ca442ef9722 | [
"Apache-2.0"
] | null | null | null | from __future__ import annotations
from abc import ABC, abstractmethod
from dataclasses import dataclass
from enum import Enum
from typing import List
from didcomm.common.types import DID_URL, DID
class DIDDoc(ABC):
"""DID DOC abstraction (https://www.w3.org/TR/did-core/#dfn-did-documents)"""
@property
... | 27.074534 | 139 | 0.637761 | 496 | 4,359 | 5.570565 | 0.262097 | 0.095548 | 0.108578 | 0.094463 | 0.394861 | 0.361564 | 0.266739 | 0.248281 | 0.248281 | 0.248281 | 0 | 0.005361 | 0.27254 | 4,359 | 160 | 140 | 27.24375 | 0.865973 | 0.516403 | 0 | 0.584615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.184615 | false | 0.184615 | 0.092308 | 0 | 0.430769 | 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 |
94b9e439e443968f5fe15194f67c8679a0fc5da4 | 15,783 | py | Python | cosim_example_demos/TVB-NEST-demo/nest_elephant_tvb/Interscale_hub/InterscaleHub.py | sontheimer/ModularScience-Cosim-Template | cc5718217a695b70d8f38c38452f1403706014d3 | [
"BSD-3-Clause"
] | 1 | 2022-03-28T17:33:35.000Z | 2022-03-28T17:33:35.000Z | cosim_example_demos/TVB-NEST-demo/nest_elephant_tvb/Interscale_hub/InterscaleHub.py | sontheimer/ModularScience-Cosim-Template | cc5718217a695b70d8f38c38452f1403706014d3 | [
"BSD-3-Clause"
] | null | null | null | cosim_example_demos/TVB-NEST-demo/nest_elephant_tvb/Interscale_hub/InterscaleHub.py | sontheimer/ModularScience-Cosim-Template | cc5718217a695b70d8f38c38452f1403706014d3 | [
"BSD-3-Clause"
] | 2 | 2022-01-27T13:48:16.000Z | 2022-03-24T18:07:33.000Z | # ------------------------------------------------------------------------------
# Copyright 2020 Forschungszentrum Jülich GmbH
# "Licensed to the Apache Software Foundation (ASF) under one or more contributor
# license agreements; and to You under the Apache License, Version 2.0. "
#
# Forschungszentrum Jülich
# In... | 46.014577 | 134 | 0.6009 | 1,810 | 15,783 | 4.949171 | 0.217127 | 0.027127 | 0.015628 | 0.011386 | 0.374414 | 0.346729 | 0.301183 | 0.274057 | 0.250167 | 0.250167 | 0 | 0.00667 | 0.297092 | 15,783 | 342 | 135 | 46.149123 | 0.800793 | 0.426852 | 0 | 0.358621 | 0 | 0 | 0.090318 | 0.027457 | 0 | 0 | 0 | 0.023392 | 0.006897 | 1 | 0.055172 | false | 0.013793 | 0.062069 | 0 | 0.137931 | 0.013793 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
94c08e1a790f8d20b398293676795b207c1d491a | 681 | py | Python | labs_web/views/tutor/download_snapshot.py | okorienev/labs_web | 9bfd69ffc2196832523d5809cf921debe530f886 | [
"BSD-3-Clause"
] | 2 | 2018-04-22T11:34:09.000Z | 2018-05-09T20:14:48.000Z | labs_web/views/tutor/download_snapshot.py | AlexPraefectus/labs_web | 9bfd69ffc2196832523d5809cf921debe530f886 | [
"BSD-3-Clause"
] | null | null | null | labs_web/views/tutor/download_snapshot.py | AlexPraefectus/labs_web | 9bfd69ffc2196832523d5809cf921debe530f886 | [
"BSD-3-Clause"
] | null | null | null | from flask.views import View
from flask_login import current_user, login_required
from labs_web.extensions import minio
from labs_web.extensions.models import File
from flask import abort, send_file
class DownloadSnapshot(View):
decorators = [login_required]
def dispatch_request(self, *args, **kwargs):
... | 32.428571 | 90 | 0.716593 | 96 | 681 | 4.885417 | 0.489583 | 0.06823 | 0.046908 | 0.089552 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016364 | 0.192364 | 681 | 20 | 91 | 34.05 | 0.836364 | 0 | 0 | 0 | 0 | 0 | 0.010279 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.333333 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
94c39e23ac6f8b169fb8a3fa99ea68a039ab06b3 | 7,682 | py | Python | waitress/app/models.py | andela/waitress | 55d4b99d2e5263a11609b18d478b2e514d79a7e8 | [
"MIT"
] | 2 | 2018-03-13T13:43:32.000Z | 2019-07-30T02:56:48.000Z | waitress/app/models.py | waitress-andela/waitress | 55d4b99d2e5263a11609b18d478b2e514d79a7e8 | [
"MIT"
] | 16 | 2016-07-31T16:53:01.000Z | 2020-02-14T00:00:27.000Z | waitress/app/models.py | andela-osule/waitress | 55d4b99d2e5263a11609b18d478b2e514d79a7e8 | [
"MIT"
] | 2 | 2017-01-15T03:25:00.000Z | 2018-10-29T15:19:27.000Z | import json
from django.contrib.auth.models import AbstractBaseUser
from django.db import models
from django.utils import timezone
class SlackUserManager(models.Manager):
"""
A class that manages `SlackUser` model
"""
def __init__(self, *args):
"""
A initialization method that setup ... | 27.732852 | 81 | 0.599453 | 891 | 7,682 | 5.034792 | 0.228956 | 0.028979 | 0.022069 | 0.0321 | 0.263486 | 0.211101 | 0.19572 | 0.174766 | 0.158716 | 0.158716 | 0 | 0.004676 | 0.303957 | 7,682 | 276 | 82 | 27.833333 | 0.8343 | 0.184067 | 0 | 0.268456 | 0 | 0 | 0.049183 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.174497 | false | 0.033557 | 0.026846 | 0.053691 | 0.644295 | 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 |
94ca40ca385e337702ba31018c5158c638bc87f9 | 47,437 | py | Python | dibs/src/dibs_main.py | emin63/dibs | 419b2fad041aee40647429d3c1faac52c92c25a3 | [
"MIT"
] | null | null | null | dibs/src/dibs_main.py | emin63/dibs | 419b2fad041aee40647429d3c1faac52c92c25a3 | [
"MIT"
] | null | null | null | dibs/src/dibs_main.py | emin63/dibs | 419b2fad041aee40647429d3c1faac52c92c25a3 | [
"MIT"
] | null | null | null |
import math
import string
import tempfile
import sys
import re
import os, os.path
import time
import smtplib
from dibs_mod_commands import getstatusoutput
import dibs_constants
import dibs_options
import dibs_database
import dibs_logger
import dibs_daemon
import dibs_crypto
import dibs_msg
import dibs_link
import di... | 42.774572 | 79 | 0.572865 | 4,609 | 47,437 | 5.825993 | 0.17097 | 0.034262 | 0.023238 | 0.043237 | 0.33126 | 0.277335 | 0.221511 | 0.210077 | 0.183227 | 0.171496 | 0 | 0.002062 | 0.345553 | 47,437 | 1,108 | 80 | 42.813177 | 0.862876 | 0.016127 | 0 | 0.330544 | 0 | 0 | 0.084228 | 0.006268 | 0 | 0 | 0 | 0.000903 | 0.005579 | 0 | null | null | 0.004184 | 0.033473 | null | null | 0.002789 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
94cc2b405196f5eaf77ead2e2d6b1fcdcc1be3e3 | 429 | py | Python | validated/migrations/0005_auto_20191118_1359.py | andrewbird2/validated | 82f8dddcc88f78e1d1678eb65cc99740ed195553 | [
"MIT"
] | null | null | null | validated/migrations/0005_auto_20191118_1359.py | andrewbird2/validated | 82f8dddcc88f78e1d1678eb65cc99740ed195553 | [
"MIT"
] | null | null | null | validated/migrations/0005_auto_20191118_1359.py | andrewbird2/validated | 82f8dddcc88f78e1d1678eb65cc99740ed195553 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.7 on 2019-11-18 19:59
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('validated', '0004_auto_20191118_1323'),
]
operations = [
migrations.AlterField(
model_name='testresult',
name='objec... | 22.578947 | 84 | 0.624709 | 47 | 429 | 5.574468 | 0.787234 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.098101 | 0.263403 | 429 | 18 | 85 | 23.833333 | 0.731013 | 0.104895 | 0 | 0 | 1 | 0 | 0.133508 | 0.060209 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.