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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
359448f7b65907a6f5e91bfa69e939e2f25d6623 | 866 | py | Python | hooks/post_gen_project.py | ecmwf-lab/climetlab-cookiecutter-dataset | be9e0a433bfd5a5eb9e6e4c2f2498aacc0520afa | [
"Apache-2.0"
] | 1 | 2021-11-25T08:25:58.000Z | 2021-11-25T08:25:58.000Z | hooks/post_gen_project.py | ecmwf-lab/climetlab-cookiecutter-dataset | be9e0a433bfd5a5eb9e6e4c2f2498aacc0520afa | [
"Apache-2.0"
] | null | null | null | hooks/post_gen_project.py | ecmwf-lab/climetlab-cookiecutter-dataset | be9e0a433bfd5a5eb9e6e4c2f2498aacc0520afa | [
"Apache-2.0"
] | null | null | null | import re
import sys
print(
""" Climetlab plugin generated. Next steps:
1. Create a repository on github at {{ cookiecutter.repo_url}}.
2. Push to the repository
cd climetlab-{{ cookiecutter.plugin_name}}
git init
git add .
git commit -m'first commit'
git branch -M main
git remote add orig... | 29.862069 | 112 | 0.733256 | 127 | 866 | 4.937008 | 0.606299 | 0.102073 | 0.121212 | 0.098884 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004161 | 0.167436 | 866 | 28 | 113 | 30.928571 | 0.865465 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0.25 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
35a6d22add7d7ef57e8562b0dbdd731af73504ee | 172 | py | Python | util/message_utils.py | SINTEF-SE/PySSMic | 9f1883fb9309bc10946b5954437514d874a8c652 | [
"MIT"
] | null | null | null | util/message_utils.py | SINTEF-SE/PySSMic | 9f1883fb9309bc10946b5954437514d874a8c652 | [
"MIT"
] | 124 | 2018-09-11T10:44:34.000Z | 2018-11-15T12:34:58.000Z | util/message_utils.py | SINTEF-SE/PySSMic | 9f1883fb9309bc10946b5954437514d874a8c652 | [
"MIT"
] | 3 | 2018-11-14T14:59:55.000Z | 2018-11-16T08:16:31.000Z | from enum import Enum
class Action(Enum):
request = 'REQUEST'
broadcast = 'BROADCAST'
accept = 'ACCEPT'
decline = 'DECLINE'
prediction = 'PREDICTION'
| 17.2 | 29 | 0.645349 | 17 | 172 | 6.529412 | 0.588235 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 172 | 9 | 30 | 19.111111 | 0.860465 | 0 | 0 | 0 | 0 | 0 | 0.226744 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 1 | 0 | 1 | 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 | 1 | 0 | 0 | 3 |
ea2e324aa0ab2cc8207860319931787cea065800 | 1,956 | py | Python | edflow/edsetup_files/iterator.py | theRealSuperMario/edflow | 550e294ff9844c11dfe35d6920b705bde0add35f | [
"MIT"
] | 23 | 2019-04-04T07:52:57.000Z | 2022-02-02T03:11:07.000Z | edflow/edsetup_files/iterator.py | theRealSuperMario/edflow | 550e294ff9844c11dfe35d6920b705bde0add35f | [
"MIT"
] | 149 | 2019-04-04T09:53:01.000Z | 2020-07-21T16:55:32.000Z | edflow/edsetup_files/iterator.py | ArWeHei/edflow | 3383cfbc42a43e906bc7781ad05714fd4fc9616e | [
"MIT"
] | 12 | 2019-04-04T07:52:58.000Z | 2020-08-28T12:30:03.000Z | from edflow.iterators.template_iterator import TemplateIterator
class Iterator(TemplateIterator):
"""
Clean iterator skeleton for initialization.
"""
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
def save(self, checkpoint_path):
"""
Function for s... | 27.166667 | 108 | 0.541411 | 203 | 1,956 | 5.08867 | 0.384236 | 0.054211 | 0.052275 | 0.037754 | 0.178122 | 0.075508 | 0.075508 | 0 | 0 | 0 | 0 | 0 | 0.350205 | 1,956 | 71 | 109 | 27.549296 | 0.812746 | 0.443763 | 0 | 0.117647 | 0 | 0 | 0.069987 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.411765 | false | 0.117647 | 0.058824 | 0 | 0.705882 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
ea3bd9309bd56c6184e0fb4fe618f3e54d8ceb4e | 81 | py | Python | example_repo/__init__.py | mmattano/example_repo | 3a7594961bddcadd5188d54f5a5266d8f8bd07b6 | [
"MIT"
] | null | null | null | example_repo/__init__.py | mmattano/example_repo | 3a7594961bddcadd5188d54f5a5266d8f8bd07b6 | [
"MIT"
] | null | null | null | example_repo/__init__.py | mmattano/example_repo | 3a7594961bddcadd5188d54f5a5266d8f8bd07b6 | [
"MIT"
] | null | null | null | __all__ = ["LinearRegression"]
from example_repo.linreg import LinearRegression
| 20.25 | 48 | 0.82716 | 8 | 81 | 7.75 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.098765 | 81 | 3 | 49 | 27 | 0.849315 | 0 | 0 | 0 | 0 | 0 | 0.197531 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
ea3fe90591e44c55b87291b7849bd6c7adcd7427 | 620 | py | Python | user.py | AndrewIndeche/Password-Locker | 3a2f196a832316dbf4356571ae459cf66c04b4a9 | [
"BSD-2-Clause"
] | null | null | null | user.py | AndrewIndeche/Password-Locker | 3a2f196a832316dbf4356571ae459cf66c04b4a9 | [
"BSD-2-Clause"
] | null | null | null | user.py | AndrewIndeche/Password-Locker | 3a2f196a832316dbf4356571ae459cf66c04b4a9 | [
"BSD-2-Clause"
] | null | null | null | class User:
"""
Class that generates new User.
"""
user_list= [] #Array of empty user list
def __init__(self,name,password):
self.name=name
self.password=password
def save_user(self):
User.user_list.append(self)
def delete_user(self):
'''
delete... | 20.666667 | 63 | 0.548387 | 76 | 620 | 4.315789 | 0.421053 | 0.146341 | 0.109756 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.356452 | 620 | 29 | 64 | 21.37931 | 0.822055 | 0.214516 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0.142857 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
ea4f357b9941e1a4f542fcbffa7eadfe9eb23aa0 | 373 | py | Python | src/core/__init__.py | xxao/papyrus | dec48453676d7c7dbc94a2fd7076bfc3630d8cf9 | [
"MIT"
] | 2 | 2019-07-27T13:04:16.000Z | 2019-08-06T17:44:48.000Z | src/core/__init__.py | xxao/papyrus | dec48453676d7c7dbc94a2fd7076bfc3630d8cf9 | [
"MIT"
] | null | null | null | src/core/__init__.py | xxao/papyrus | dec48453676d7c7dbc94a2fd7076bfc3630d8cf9 | [
"MIT"
] | 2 | 2019-11-13T09:22:36.000Z | 2021-09-28T14:27:52.000Z | # Created byMartin.cz
# Copyright (c) Martin Strohalm. All rights reserved.
from .pubmed import PubMed
from .library import Library
from .article import Article
from .journal import Journal
from .author import Author
from .label import Label
from .collection import Collection
from .query import Query
from .queries i... | 24.866667 | 54 | 0.788204 | 51 | 373 | 5.764706 | 0.45098 | 0.068027 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.155496 | 373 | 14 | 55 | 26.642857 | 0.933333 | 0.193029 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
ea5de54b3ddf7cf9b703fc9f36b5c3cd447da965 | 4,334 | py | Python | kaltura_lib/KalturaClient/Plugins/BpmEventNotificationIntegration.py | KameliaZhelyazkova/Media-Hopper-Initial-Project | c15ad7cbd23dcddc7463d510510916ffcc4954df | [
"CC0-1.0"
] | null | null | null | kaltura_lib/KalturaClient/Plugins/BpmEventNotificationIntegration.py | KameliaZhelyazkova/Media-Hopper-Initial-Project | c15ad7cbd23dcddc7463d510510916ffcc4954df | [
"CC0-1.0"
] | null | null | null | kaltura_lib/KalturaClient/Plugins/BpmEventNotificationIntegration.py | KameliaZhelyazkova/Media-Hopper-Initial-Project | c15ad7cbd23dcddc7463d510510916ffcc4954df | [
"CC0-1.0"
] | null | null | null | # ===================================================================================================
# _ __ _ _
# | |/ /__ _| | |_ _ _ _ _ __ _
# | ' </ _` | | _| || | '_/ _` |
# |_|\_\__,_|_|\__|\_,_|_| \__,_|
... | 34.396825 | 126 | 0.652976 | 336 | 4,334 | 8.291667 | 0.470238 | 0.025126 | 0.012922 | 0.020459 | 0.035894 | 0.035894 | 0.024408 | 0 | 0 | 0 | 0 | 0.002655 | 0.217813 | 4,334 | 125 | 127 | 34.672 | 0.819174 | 0.371712 | 0 | 0.050847 | 0 | 0 | 0.081154 | 0.051923 | 0 | 0 | 0 | 0 | 0 | 1 | 0.237288 | false | 0 | 0.067797 | 0.118644 | 0.525424 | 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 | 1 | 1 | 0 | 0 | 3 |
ea70ffd2467be1c9df23d3631566d275e89a329e | 16 | py | Python | paypal/__init__.py | AgainFaster/django-oscar-paypal | 3a5019b42bbc802fb4bee7c7de0fc7d910977496 | [
"BSD-3-Clause"
] | null | null | null | paypal/__init__.py | AgainFaster/django-oscar-paypal | 3a5019b42bbc802fb4bee7c7de0fc7d910977496 | [
"BSD-3-Clause"
] | null | null | null | paypal/__init__.py | AgainFaster/django-oscar-paypal | 3a5019b42bbc802fb4bee7c7de0fc7d910977496 | [
"BSD-3-Clause"
] | null | null | null | VERSION = '0.8'
| 8 | 15 | 0.5625 | 3 | 16 | 3 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 0.1875 | 16 | 1 | 16 | 16 | 0.538462 | 0 | 0 | 0 | 0 | 0 | 0.1875 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 3 |
ea8329a8cabd4f1b10b3a51f751edd440ae0fae1 | 1,988 | py | Python | scripts/helpers.py | ML-Midterm-Finance/ml-midterm-flask | f590aaca07006f5fad635933e71eae12339f856e | [
"MIT"
] | null | null | null | scripts/helpers.py | ML-Midterm-Finance/ml-midterm-flask | f590aaca07006f5fad635933e71eae12339f856e | [
"MIT"
] | null | null | null | scripts/helpers.py | ML-Midterm-Finance/ml-midterm-flask | f590aaca07006f5fad635933e71eae12339f856e | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from flask import session
from sqlalchemy.orm import sessionmaker
from contextlib import contextmanager
import bcrypt
import pyrebase
import json
import pickle as p
import numpy as np
import os
def get_user():
auth = get_auth()
user = auth.get_account_info(session['idToken'])
retur... | 21.608696 | 70 | 0.673038 | 231 | 1,988 | 5.606061 | 0.372294 | 0.041699 | 0.067954 | 0.057915 | 0.081081 | 0.081081 | 0.081081 | 0 | 0 | 0 | 0 | 0.003827 | 0.211268 | 1,988 | 92 | 71 | 21.608696 | 0.822066 | 0.07998 | 0 | 0.116667 | 0 | 0 | 0.099491 | 0 | 0 | 0 | 0 | 0.043478 | 0 | 1 | 0.233333 | false | 0.133333 | 0.15 | 0.016667 | 0.55 | 0.016667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
ea846dfdb1d22a288b8635f14c4b1c3b2d2bdad7 | 5,541 | py | Python | python/data-wrangling-components/tests/engine/test_derive.py | microsoft/data-wrangling-components | 4be99ceb3a0d64ff7cac69d4eb1b7c81b1da9aff | [
"MIT"
] | 4 | 2021-12-16T01:43:36.000Z | 2022-03-26T22:28:59.000Z | python/data-wrangling-components/tests/engine/test_derive.py | microsoft/data-wrangling-components | 4be99ceb3a0d64ff7cac69d4eb1b7c81b1da9aff | [
"MIT"
] | 5 | 2022-02-08T21:12:44.000Z | 2022-03-15T23:42:56.000Z | python/data-wrangling-components/tests/engine/test_derive.py | microsoft/data-wrangling-components | 4be99ceb3a0d64ff7cac69d4eb1b7c81b1da9aff | [
"MIT"
] | 3 | 2022-02-14T17:46:25.000Z | 2022-03-25T20:38:25.000Z | #
# Copyright (c) Microsoft. All rights reserved.
# Licensed under the MIT license. See LICENSE file in the project.
#
import numpy as np
from data_wrangling_components.engine.verbs.derive import derive
from data_wrangling_components.types import MathOperator, Step, Verb
from tests.engine.test_store import g... | 26.511962 | 69 | 0.54954 | 586 | 5,541 | 5.102389 | 0.168942 | 0.169231 | 0.153512 | 0.180602 | 0.812375 | 0.80301 | 0.589298 | 0.567224 | 0.567224 | 0.567224 | 0 | 0.043683 | 0.310052 | 5,541 | 208 | 70 | 26.639423 | 0.738425 | 0.019852 | 0 | 0.617284 | 0 | 0 | 0.138176 | 0 | 0 | 0 | 0 | 0 | 0.283951 | 1 | 0.049383 | false | 0 | 0.024691 | 0 | 0.074074 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 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 | 3 |
575bf94bd8e3df45c04f2d6a16adfa830e6723bc | 22,284 | py | Python | TextArray.py | TreZc0/OoTR-Tournament-Fork | d9f37df18b227ff8f143ac53816ff1a6d7bdd04f | [
"MIT"
] | null | null | null | TextArray.py | TreZc0/OoTR-Tournament-Fork | d9f37df18b227ff8f143ac53816ff1a6d7bdd04f | [
"MIT"
] | null | null | null | TextArray.py | TreZc0/OoTR-Tournament-Fork | d9f37df18b227ff8f143ac53816ff1a6d7bdd04f | [
"MIT"
] | null | null | null | text_array = [0x9257e4,
0x925852,
0x9258ce,
0x925be2,
0x925bfa,
0x925ca0,
0x925ccd,
0x925d0b,
0x925fa4,
0x9272bc,
0x9272da,
0x927354,
0x9273d5,
0x927406,
0x92743c,
0x927474,
0x927476,
0x9274b3,
0x9274b5,
0x9274ea,
0x9274ec,
0x927517,
0x927544,
0x927548,
0x927565,
0x927567,
0x9275d8,
0x9275ed,
0x92763f,
0x927648,
0x9276... | 10.001795 | 23 | 0.799946 | 2,229 | 22,284 | 7.99686 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.610671 | 0.100027 | 22,284 | 2,227 | 24 | 10.006286 | 0.278135 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.799497 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
579065a47eaebf8a5f423ff914c401ff4bbc987d | 1,123 | py | Python | 09_Udemy - Automate the Boring Stuff with Python Programming/07_chapter 7 Pattern matching with regular expressions/IsPhoneNumber.py | Magdyedwar1996/python-level-one-codes | 066086672f43488bc8b32c620b5e2f94cedfe3da | [
"MIT"
] | 1 | 2021-11-16T14:14:38.000Z | 2021-11-16T14:14:38.000Z | 09_Udemy - Automate the Boring Stuff with Python Programming/07_chapter 7 Pattern matching with regular expressions/IsPhoneNumber.py | Magdyedwar1996/python-level-one-codes | 066086672f43488bc8b32c620b5e2f94cedfe3da | [
"MIT"
] | null | null | null | 09_Udemy - Automate the Boring Stuff with Python Programming/07_chapter 7 Pattern matching with regular expressions/IsPhoneNumber.py | Magdyedwar1996/python-level-one-codes | 066086672f43488bc8b32c620b5e2f94cedfe3da | [
"MIT"
] | null | null | null | def isPhoneNumber(text):
# checking the length of the characters of expression
if len(text) != 12:
return False
# checking the first three characters if they are numbers
# if any of them is not a number it will return False
for i in range(0, 3):
if not text[i].isdecimal():
... | 29.552632 | 61 | 0.633126 | 173 | 1,123 | 4.109827 | 0.271676 | 0.139241 | 0.133615 | 0.154712 | 0.797468 | 0.797468 | 0.707454 | 0.66526 | 0.66526 | 0.66526 | 0 | 0.03875 | 0.287622 | 1,123 | 38 | 62 | 29.552632 | 0.85 | 0.41585 | 0 | 0.428571 | 0 | 0 | 0.132921 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0 | 0 | 0.380952 | 0.190476 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 3 |
57a67eca0256a5ed3acbebf413654342e6f51816 | 581 | py | Python | back/bookclub/db/queries/members.py | wonesy/bookclub | 0b0368974ca5c9f25666efd556e5b514db44180f | [
"MIT"
] | null | null | null | back/bookclub/db/queries/members.py | wonesy/bookclub | 0b0368974ca5c9f25666efd556e5b514db44180f | [
"MIT"
] | null | null | null | back/bookclub/db/queries/members.py | wonesy/bookclub | 0b0368974ca5c9f25666efd556e5b514db44180f | [
"MIT"
] | null | null | null | GET_ALL_MEMBERS = """
SELECT username, first_name, last_name, password, email, created_on, last_login
FROM members
"""
GET_MEMBER_BY_USERNAME = f"""
{GET_ALL_MEMBERS}
WHERE username = :username
"""
INSERT_MEMBER = f"""
INSERT INTO members (username, password, first_name, last_name, email, last_login)
VALUES (:usernam... | 22.346154 | 82 | 0.726334 | 77 | 581 | 5.168831 | 0.350649 | 0.113065 | 0.150754 | 0.170854 | 0.190955 | 0.190955 | 0.190955 | 0 | 0 | 0 | 0 | 0 | 0.146299 | 581 | 25 | 83 | 23.24 | 0.802419 | 0 | 0 | 0.272727 | 0 | 0 | 0.812392 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.136364 | 0 | 0 | 0 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
57c715366d382733256cdb775e621ee6e7315725 | 1,810 | py | Python | rlgraph/components/layers/layer.py | samialabed/rlgraph | f5fa632a385e67295a2939f54cbaa4c47a007728 | [
"Apache-2.0"
] | null | null | null | rlgraph/components/layers/layer.py | samialabed/rlgraph | f5fa632a385e67295a2939f54cbaa4c47a007728 | [
"Apache-2.0"
] | null | null | null | rlgraph/components/layers/layer.py | samialabed/rlgraph | f5fa632a385e67295a2939f54cbaa4c47a007728 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018/2019 The RLgraph authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | 32.321429 | 103 | 0.660221 | 231 | 1,810 | 5.047619 | 0.528139 | 0.051458 | 0.041166 | 0.027444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008596 | 0.228729 | 1,810 | 55 | 104 | 32.909091 | 0.826648 | 0.623757 | 0 | 0 | 0 | 0 | 0.009242 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.384615 | 0 | 0.769231 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
57ca44a3d415309b886285fdcfdec62a446a49f5 | 102 | py | Python | src/django_prefetch_utils/__init__.py | aleberguer/django-prefetch-utils | b48567b6463d1410b0722349cc713f8e0de8e700 | [
"BSD-3-Clause"
] | null | null | null | src/django_prefetch_utils/__init__.py | aleberguer/django-prefetch-utils | b48567b6463d1410b0722349cc713f8e0de8e700 | [
"BSD-3-Clause"
] | null | null | null | src/django_prefetch_utils/__init__.py | aleberguer/django-prefetch-utils | b48567b6463d1410b0722349cc713f8e0de8e700 | [
"BSD-3-Clause"
] | null | null | null | __version__ = '0.1.0'
default_app_config = 'django_prefetch_utils.apps.DjangoPrefetchUtilsAppConfig'
| 25.5 | 78 | 0.833333 | 12 | 102 | 6.416667 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031579 | 0.068627 | 102 | 3 | 79 | 34 | 0.778947 | 0 | 0 | 0 | 0 | 0 | 0.588235 | 0.539216 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
57d17a9505f9d0d4f440fb94e1d15f49952634d9 | 53,626 | py | Python | openmdao/recorders/tests/test_sqlite_recorder.py | ryanfarr01/blue | a9aac98c09cce0f7cadf26cf592e3d978bf4e3ff | [
"Apache-2.0"
] | null | null | null | openmdao/recorders/tests/test_sqlite_recorder.py | ryanfarr01/blue | a9aac98c09cce0f7cadf26cf592e3d978bf4e3ff | [
"Apache-2.0"
] | null | null | null | openmdao/recorders/tests/test_sqlite_recorder.py | ryanfarr01/blue | a9aac98c09cce0f7cadf26cf592e3d978bf4e3ff | [
"Apache-2.0"
] | null | null | null | """ Unit test for the SqliteRecorder. """
import errno
import os
import sqlite3
import time
import unittest
import numpy as np
from shutil import rmtree
from six import iteritems, PY2, PY3
from tempfile import mkdtemp
from openmdao.api import BoundsEnforceLS, NonlinearBlockGS, ArmijoGoldsteinLS, NonlinearBlockJac,\
... | 39.430882 | 139 | 0.59376 | 5,859 | 53,626 | 5.237754 | 0.082096 | 0.032586 | 0.048912 | 0.061913 | 0.752737 | 0.718359 | 0.700274 | 0.683948 | 0.670653 | 0.654099 | 0 | 0.053498 | 0.282643 | 53,626 | 1,359 | 140 | 39.459897 | 0.744236 | 0.046619 | 0 | 0.585744 | 0 | 0 | 0.121311 | 0.017019 | 0 | 0 | 0 | 0.000736 | 0.091942 | 1 | 0.041322 | false | 0.001033 | 0.021694 | 0 | 0.071281 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 3 |
57efb0bab3f65ee003c223c1c5d1d81374616f11 | 94 | py | Python | daily_check.py | garywei944/eva_windows | 151125813fc2226f649ced1b48265690a2f7a2e3 | [
"MIT"
] | null | null | null | daily_check.py | garywei944/eva_windows | 151125813fc2226f649ced1b48265690a2f7a2e3 | [
"MIT"
] | null | null | null | daily_check.py | garywei944/eva_windows | 151125813fc2226f649ced1b48265690a2f7a2e3 | [
"MIT"
] | null | null | null | import os
from sys import argv
for lines in open(argv[1], "r"):
os.system("start " + lines)
| 15.666667 | 32 | 0.670213 | 17 | 94 | 3.705882 | 0.764706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012987 | 0.180851 | 94 | 5 | 33 | 18.8 | 0.805195 | 0 | 0 | 0 | 0 | 0 | 0.074468 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
57f27b0ec33d9e23eecc9587cd99de8bd0561962 | 93 | py | Python | sequence_search/producer/settings/production.py | RNAcentral/sequence_search | e0319e384cc9dea017f165e2c4c5143ee232f9fd | [
"Apache-2.0"
] | 2 | 2019-02-13T16:33:46.000Z | 2019-10-22T16:27:00.000Z | sequence_search/producer/settings/production.py | RNAcentral/sequence_search | e0319e384cc9dea017f165e2c4c5143ee232f9fd | [
"Apache-2.0"
] | 110 | 2019-02-15T15:06:05.000Z | 2022-03-04T16:03:38.000Z | sequence_search/producer/settings/production.py | RNAcentral/sequence_search | e0319e384cc9dea017f165e2c4c5143ee232f9fd | [
"Apache-2.0"
] | 1 | 2021-06-30T21:39:35.000Z | 2021-06-30T21:39:35.000Z | # hostname to listen on
HOST = "0.0.0.0"
# TCP port for the server to listen on
PORT = 8002
| 15.5 | 38 | 0.677419 | 19 | 93 | 3.315789 | 0.631579 | 0.095238 | 0.31746 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 0.225806 | 93 | 5 | 39 | 18.6 | 0.763889 | 0.623656 | 0 | 0 | 0 | 0 | 0.21875 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 1 | 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 | 3 |
17acd65fe0a80d781372c60a7fba19779972496c | 111 | py | Python | settings.py | leemengtaiwan/gist-evernote | 90d8573870ded37dc82575ba25968d7a06efe219 | [
"MIT"
] | 35 | 2018-01-29T00:50:36.000Z | 2021-04-04T13:59:26.000Z | settings.py | leemengtaiwan/gist-evernote | 90d8573870ded37dc82575ba25968d7a06efe219 | [
"MIT"
] | 5 | 2021-02-08T20:18:24.000Z | 2022-03-11T23:15:12.000Z | settings.py | leemengtaiwan/gist-evernote | 90d8573870ded37dc82575ba25968d7a06efe219 | [
"MIT"
] | 4 | 2018-02-06T12:13:09.000Z | 2019-12-20T09:12:41.000Z | GITHUB_AUTH_TOKEN = ""
EVERNOTE_PROD_TOKEN = ""
EVERNOTE_SANDBOX_TOKEN = ""
NOTEBOOK_TO_SYNC = "gist-evernote"
| 22.2 | 34 | 0.774775 | 14 | 111 | 5.571429 | 0.714286 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108108 | 111 | 4 | 35 | 27.75 | 0.787879 | 0 | 0 | 0 | 0 | 0 | 0.117117 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 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 | 3 |
17c19c710aad0b198f2838871f0a5b654287f20b | 655 | py | Python | rplugin/python3/defx/base/source.py | sahwar/defx.nvim | bdd4896617f91800932ba2aaa4b2d019ae75ef1c | [
"MIT"
] | 1 | 2019-04-14T20:18:26.000Z | 2019-04-14T20:18:26.000Z | rplugin/python3/defx/base/source.py | sahwar/defx.nvim | bdd4896617f91800932ba2aaa4b2d019ae75ef1c | [
"MIT"
] | null | null | null | rplugin/python3/defx/base/source.py | sahwar/defx.nvim | bdd4896617f91800932ba2aaa4b2d019ae75ef1c | [
"MIT"
] | null | null | null | # ============================================================================
# FILE: source.py
# AUTHOR: Shougo Matsushita <Shougo.Matsu at gmail.com>
# License: MIT license
# ============================================================================
import typing
from abc import abstractmethod
from defx.context ... | 25.192308 | 78 | 0.51145 | 65 | 655 | 5.076923 | 0.584615 | 0.048485 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.184733 | 655 | 25 | 79 | 26.2 | 0.617978 | 0.372519 | 0 | 0 | 0 | 0 | 0.009877 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.071429 | 0.357143 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
17c5ebd6038546a20e47f62b8bf86dc160370d8a | 326 | py | Python | tests/tests.py | ucohen/NeuroKit.py | 0196fc7cfbf22b499eec51036b3eb492a2893014 | [
"MIT"
] | 338 | 2017-03-28T17:36:18.000Z | 2022-03-25T00:58:56.000Z | tests/tests.py | ucohen/NeuroKit.py | 0196fc7cfbf22b499eec51036b3eb492a2893014 | [
"MIT"
] | 108 | 2017-04-25T12:27:30.000Z | 2021-02-08T21:52:38.000Z | tests/tests.py | ucohen/NeuroKit.py | 0196fc7cfbf22b499eec51036b3eb492a2893014 | [
"MIT"
] | 108 | 2016-12-11T15:41:08.000Z | 2022-03-25T00:59:00.000Z | import unittest
import doctest
import numpy as np
import pandas as pd
import neurokit as nk
from test_ecg import TestEcg
from test_signal import TestComplexity
from test_miscellaneous import TestMiscellaneous
from test_statistics import TestStatistics
if __name__ == '__main__':
unittest.main()
doctest.testmod... | 18.111111 | 48 | 0.809816 | 43 | 326 | 5.860465 | 0.55814 | 0.126984 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.156442 | 326 | 17 | 49 | 19.176471 | 0.916364 | 0 | 0 | 0 | 0 | 0 | 0.024768 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.75 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
17d999d1e0f1e865c9cddca4b621627a65c217ee | 63 | py | Python | tests/samples/discovery/sub/sub3/mod.py | rusek/yorbay-python | 051565b2f888845db1bd06e88eedd5fc9fb9009f | [
"Apache-2.0"
] | null | null | null | tests/samples/discovery/sub/sub3/mod.py | rusek/yorbay-python | 051565b2f888845db1bd06e88eedd5fc9fb9009f | [
"Apache-2.0"
] | null | null | null | tests/samples/discovery/sub/sub3/mod.py | rusek/yorbay-python | 051565b2f888845db1bd06e88eedd5fc9fb9009f | [
"Apache-2.0"
] | null | null | null | from yorbay import Context
tr = Context.from_module(__name__)
| 15.75 | 34 | 0.809524 | 9 | 63 | 5.111111 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126984 | 63 | 3 | 35 | 21 | 0.836364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
17e087196ee695ab8e975b9db3ab992740ee6b28 | 3,434 | py | Python | powersimdata/input/const.py | c-voegele/PowerSimData | 5b1500e573f00a34571316796ff442bfa753871a | [
"MIT"
] | 27 | 2021-02-20T20:55:31.000Z | 2022-02-07T17:27:14.000Z | powersimdata/input/const.py | c-voegele/PowerSimData | 5b1500e573f00a34571316796ff442bfa753871a | [
"MIT"
] | 147 | 2021-01-21T03:55:09.000Z | 2022-03-28T19:28:03.000Z | powersimdata/input/const.py | c-voegele/PowerSimData | 5b1500e573f00a34571316796ff442bfa753871a | [
"MIT"
] | 27 | 2021-02-03T18:24:47.000Z | 2022-01-26T08:56:17.000Z | col_name_branch = [
"from_bus_id",
"to_bus_id",
"r",
"x",
"b",
"rateA",
"rateB",
"rateC",
"ratio",
"angle",
"status",
"angmin",
"angmax",
"Pf",
"Qf",
"Pt",
"Qt",
"mu_Sf",
"mu_St",
"mu_angmin",
"mu_angmax",
]
col_type_branch = [
"int... | 14.428571 | 78 | 0.462143 | 325 | 3,434 | 4.658462 | 0.344615 | 0.554822 | 0.703435 | 0.792602 | 0.392999 | 0.373844 | 0.330251 | 0.328269 | 0.308454 | 0.308454 | 0 | 0.007281 | 0.320035 | 3,434 | 237 | 79 | 14.489451 | 0.641113 | 0 | 0 | 0.530702 | 0 | 0 | 0.373617 | 0.029121 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 1 | 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 | 3 |
aa01d152308c5b1cdf44bd23832edebdea5854cd | 691 | py | Python | src/documents/tests/test_commands.py | PhaseDMS/phase | 4f776d0b1b5e7916a3e26aee890b3c2b9454ef0e | [
"MIT"
] | 2 | 2021-09-10T19:40:30.000Z | 2022-01-31T07:15:51.000Z | src/documents/tests/test_commands.py | PhaseDMS/phase | 4f776d0b1b5e7916a3e26aee890b3c2b9454ef0e | [
"MIT"
] | null | null | null | src/documents/tests/test_commands.py | PhaseDMS/phase | 4f776d0b1b5e7916a3e26aee890b3c2b9454ef0e | [
"MIT"
] | 1 | 2021-09-10T19:40:42.000Z | 2021-09-10T19:40:42.000Z | import tempfile
from django.test import TestCase
from documents.models import Document
from documents.management.commands import generate_documents
from categories.factories import CategoryFactory
class CommandTest(TestCase):
def setUp(self):
self.category = CategoryFactory()
def test_generate_data... | 30.043478 | 65 | 0.70767 | 76 | 691 | 6.381579 | 0.539474 | 0.105155 | 0.094845 | 0.123711 | 0.156701 | 0.156701 | 0 | 0 | 0 | 0 | 0 | 0.005425 | 0.199711 | 691 | 22 | 66 | 31.409091 | 0.871609 | 0.096961 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.142857 | false | 0 | 0.357143 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
aa03a56275d479cbdb68e891fd1e1420eb108d81 | 238 | py | Python | app/admin.py | amait41/Enron-Mail-Dashboard | 52772ecde329563aad9eefbe86f82076c43b6e63 | [
"MIT"
] | null | null | null | app/admin.py | amait41/Enron-Mail-Dashboard | 52772ecde329563aad9eefbe86f82076c43b6e63 | [
"MIT"
] | null | null | null | app/admin.py | amait41/Enron-Mail-Dashboard | 52772ecde329563aad9eefbe86f82076c43b6e63 | [
"MIT"
] | null | null | null | # -*- encoding: utf-8 -*-
"""
Copyright (c) 2019 - present AppSeed.us
"""
from django.contrib import admin
from .models import User, mailAddress, Mail
admin.site.register(User)
admin.site.register(mailAddress)
admin.site.register(Mail)
| 19.833333 | 43 | 0.735294 | 32 | 238 | 5.46875 | 0.625 | 0.154286 | 0.291429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02381 | 0.117647 | 238 | 11 | 44 | 21.636364 | 0.809524 | 0.268908 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
aa0ec64b2ab42f39250eabebdea748d7afd0ebf6 | 212 | py | Python | lang/Python/create-a-file-1.py | ethansaxenian/RosettaDecode | 8ea1a42a5f792280b50193ad47545d14ee371fb7 | [
"MIT"
] | 1 | 2018-11-09T22:08:38.000Z | 2018-11-09T22:08:38.000Z | lang/Python/create-a-file-1.py | ethansaxenian/RosettaDecode | 8ea1a42a5f792280b50193ad47545d14ee371fb7 | [
"MIT"
] | null | null | null | lang/Python/create-a-file-1.py | ethansaxenian/RosettaDecode | 8ea1a42a5f792280b50193ad47545d14ee371fb7 | [
"MIT"
] | 1 | 2018-11-09T22:08:40.000Z | 2018-11-09T22:08:40.000Z | import os
for directory in ['/', './']:
open(directory + 'output.txt', 'w').close() # create /output.txt, then ./output.txt
os.mkdir(directory + 'docs') # create directory /docs, then ./docs
| 42.4 | 86 | 0.589623 | 26 | 212 | 4.807692 | 0.538462 | 0.216 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.216981 | 212 | 4 | 87 | 53 | 0.753012 | 0.34434 | 0 | 0 | 0 | 0 | 0.132353 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 1 | 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 | 3 |
aa1d934ef37dffeb00889ad51d6ea9ce623aaab6 | 263 | py | Python | Python Programs/Basics/UsefulTools.py | JCharlieDev/Python | d213c6cb60110156b19d96d8bb9b809e69e89ce5 | [
"MIT"
] | null | null | null | Python Programs/Basics/UsefulTools.py | JCharlieDev/Python | d213c6cb60110156b19d96d8bb9b809e69e89ce5 | [
"MIT"
] | null | null | null | Python Programs/Basics/UsefulTools.py | JCharlieDev/Python | d213c6cb60110156b19d96d8bb9b809e69e89ce5 | [
"MIT"
] | null | null | null | import random
feetInMiles = 5200
metersInKilometers = 1000
beatles = ["John Lennon", "Paul McCartney", "George Harrison", "Ringo Star"]
def GetFileExt(fileName):
return fileName[fileName.index(".") + 1:]
def RollDice(num):
return random.randint(1, num) | 23.909091 | 76 | 0.714829 | 31 | 263 | 6.064516 | 0.774194 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044643 | 0.148289 | 263 | 11 | 77 | 23.909091 | 0.794643 | 0 | 0 | 0 | 0 | 0 | 0.193182 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0.25 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
aa24b06c9343a39eab97c6ff447dd3672f90692e | 65,552 | py | Python | pymove/visualization/folium.py | safarzadeh-reza/PyMove | c04f365499cc201c14d4fcf86e40e8fce43e2906 | [
"MIT"
] | 1 | 2022-01-25T19:57:23.000Z | 2022-01-25T19:57:23.000Z | pymove/visualization/folium.py | safarzadeh-reza/PyMove | c04f365499cc201c14d4fcf86e40e8fce43e2906 | [
"MIT"
] | null | null | null | pymove/visualization/folium.py | safarzadeh-reza/PyMove | c04f365499cc201c14d4fcf86e40e8fce43e2906 | [
"MIT"
] | null | null | null | """
Folium operations.
save_map,
create_base_map,
heatmap,
heatmap_with_time,
cluster,
faster_cluster,
plot_markers,
plot_trajectories_with_folium,
plot_trajectory_by_id_folium,
plot_trajectory_by_period,
plot_trajectory_by_day_week,
plot_trajectory_by_date,
plot_trajectory_by_hour,
plot_stops,
plot_bbox,
plot_points_... | 30.964573 | 90 | 0.62651 | 8,666 | 65,552 | 4.550658 | 0.042926 | 0.04861 | 0.027361 | 0.012932 | 0.746551 | 0.721625 | 0.705599 | 0.682879 | 0.665864 | 0.639365 | 0 | 0.004306 | 0.291418 | 65,552 | 2,116 | 91 | 30.979206 | 0.844711 | 0.452587 | 0 | 0.515369 | 0 | 0.001025 | 0.033597 | 0.006007 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028689 | false | 0 | 0.01332 | 0 | 0.068648 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 3 |
aa46042839f72dd21a9842ba1a17ccac85a27ad6 | 9,348 | py | Python | server/splunkdj/templatetags/splunkmvc.py | splunk/splunk-webframework | a4179558616f5f4fcbfa2b54e9179f30e6395264 | [
"Apache-2.0"
] | 31 | 2015-01-20T12:49:17.000Z | 2022-02-21T05:21:44.000Z | server/splunkdj/templatetags/splunkmvc.py | splunk/splunk-webframework | a4179558616f5f4fcbfa2b54e9179f30e6395264 | [
"Apache-2.0"
] | 2 | 2015-07-08T19:40:41.000Z | 2018-04-26T21:34:35.000Z | server/splunkdj/templatetags/splunkmvc.py | splunk/splunk-webframework | a4179558616f5f4fcbfa2b54e9179f30e6395264 | [
"Apache-2.0"
] | 8 | 2015-02-26T13:19:45.000Z | 2022-03-27T08:34:20.000Z | from django import template
from django.conf import settings
from django.utils import importlib
from django.core.urlresolvers import reverse, resolve
from django.template import RequestContext
import json
import logging
from splunkdj.tokens import TokenSafeString
from tagutils import component_context
logger = logging... | 51.081967 | 125 | 0.743154 | 1,098 | 9,348 | 6.233151 | 0.123862 | 0.044711 | 0.07481 | 0.093513 | 0.598627 | 0.572326 | 0.553624 | 0.54588 | 0.414378 | 0.414378 | 0 | 0.000841 | 0.109435 | 9,348 | 182 | 126 | 51.362637 | 0.821261 | 0.004065 | 0 | 0.119718 | 0 | 0 | 0.334587 | 0.192651 | 0 | 0 | 0 | 0 | 0 | 1 | 0.232394 | false | 0 | 0.06338 | 0.147887 | 0.528169 | 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 | 1 | 1 | 0 | 0 | 3 |
a4b3b92b435e7879ced45229ab491e7f941c95b7 | 149 | py | Python | sphinxcontrib/_compat.py | allison-casey/sphinxcontrib-hydomain | 6cf94722d54a8297386a371a64d36f03c9c0c19f | [
"BSD-2-Clause"
] | 1 | 2021-08-08T12:07:52.000Z | 2021-08-08T12:07:52.000Z | sphinxcontrib/_compat.py | allison-casey/sphinxcontrib-hydomain | 6cf94722d54a8297386a371a64d36f03c9c0c19f | [
"BSD-2-Clause"
] | 6 | 2021-03-27T18:27:57.000Z | 2022-02-17T13:58:05.000Z | sphinxcontrib/_compat.py | allison-casey/sphinxcontrib-hydomain | 6cf94722d54a8297386a371a64d36f03c9c0c19f | [
"BSD-2-Clause"
] | 2 | 2021-02-27T01:08:42.000Z | 2021-07-24T17:34:26.000Z | import sys
PY3_9 = sys.version_info >= (3, 9)
if not PY3_9:
import ast
import astor.code_gen
ast.unparse = astor.code_gen.to_source
| 12.416667 | 42 | 0.677852 | 26 | 149 | 3.653846 | 0.615385 | 0.084211 | 0.252632 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 0.234899 | 149 | 11 | 43 | 13.545455 | 0.780702 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
a4be674d03ffed2ace992df578789ecd7283e4d0 | 73 | py | Python | basisgen/statistics.py | jccriado/basisgen | 9d9f31bf9182915862d3c677f35b668fd3fd7184 | [
"MIT"
] | 7 | 2019-01-14T13:20:16.000Z | 2021-09-09T03:12:48.000Z | basisgen/statistics.py | jccriado/basisgen | 9d9f31bf9182915862d3c677f35b668fd3fd7184 | [
"MIT"
] | null | null | null | basisgen/statistics.py | jccriado/basisgen | 9d9f31bf9182915862d3c677f35b668fd3fd7184 | [
"MIT"
] | 3 | 2020-09-10T03:43:27.000Z | 2022-02-15T15:11:10.000Z | import enum
class Statistics(enum.Enum):
BOSON = 1
FERMION = 2
| 10.428571 | 28 | 0.643836 | 10 | 73 | 4.7 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037736 | 0.273973 | 73 | 6 | 29 | 12.166667 | 0.849057 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 1 | 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 | 1 | 0 | 0 | 3 |
a4d1c2ddd823ec05859bd466907b9d84622b5018 | 14 | py | Python | ost_kyc_sdk_python/saas/__init__.py | OpenSTFoundation/kyc-sdk-python | 095d789e11a48a1578c73370cf88170196e7ebae | [
"MIT"
] | 13 | 2019-02-27T14:38:30.000Z | 2019-02-28T15:44:36.000Z | ost_kyc_sdk_python/saas/__init__.py | ostdotcom/ost-kyc-sdk-python | 095d789e11a48a1578c73370cf88170196e7ebae | [
"MIT"
] | null | null | null | ost_kyc_sdk_python/saas/__init__.py | ostdotcom/ost-kyc-sdk-python | 095d789e11a48a1578c73370cf88170196e7ebae | [
"MIT"
] | 2 | 2018-12-14T07:31:57.000Z | 2018-12-26T21:42:46.000Z | name = 'saas'
| 7 | 13 | 0.571429 | 2 | 14 | 4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.214286 | 14 | 1 | 14 | 14 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 3 |
a4ef3fcd5e4b8030ef7d7e10dbda468297c01241 | 202 | py | Python | puppies/urls.py | JAV04/puppy_waitlist | bddf1b35e6fbcdfe3912e35e249c57c9cb2d9584 | [
"MIT"
] | null | null | null | puppies/urls.py | JAV04/puppy_waitlist | bddf1b35e6fbcdfe3912e35e249c57c9cb2d9584 | [
"MIT"
] | null | null | null | puppies/urls.py | JAV04/puppy_waitlist | bddf1b35e6fbcdfe3912e35e249c57c9cb2d9584 | [
"MIT"
] | null | null | null | from django.urls import path
from .views import register_view, profile_view
urlpatterns = [
path('register/', register_view, name='register'),
path('update/', profile_view, name='update'),
]
| 20.2 | 54 | 0.712871 | 25 | 202 | 5.6 | 0.48 | 0.171429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148515 | 202 | 9 | 55 | 22.444444 | 0.813953 | 0 | 0 | 0 | 0 | 0 | 0.148515 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
a4f9ef97d42b85e866f9529e43d210dd9bb893e9 | 143 | py | Python | spp_cognito_auth/utils.py | ONSdigital/spp-cognito-auth | 0630b4e6516db4d5715c86fef72dd2886f0b0057 | [
"MIT"
] | null | null | null | spp_cognito_auth/utils.py | ONSdigital/spp-cognito-auth | 0630b4e6516db4d5715c86fef72dd2886f0b0057 | [
"MIT"
] | null | null | null | spp_cognito_auth/utils.py | ONSdigital/spp-cognito-auth | 0630b4e6516db4d5715c86fef72dd2886f0b0057 | [
"MIT"
] | 1 | 2021-04-11T07:57:14.000Z | 2021-04-11T07:57:14.000Z | import re
def fix_url(url: str) -> str:
if not re.match("(?:http|https)://", url):
url = "https://{}".format(url)
return url
| 17.875 | 46 | 0.538462 | 21 | 143 | 3.619048 | 0.619048 | 0.157895 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.237762 | 143 | 7 | 47 | 20.428571 | 0.697248 | 0 | 0 | 0 | 0 | 0 | 0.188811 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 1 | 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 | 1 | 0 | 0 | 3 |
35149d92e9a5545f544df338ca75be690f56d185 | 282 | py | Python | break_key.py | HuuHoangNguyen/Python_learning | c33940ca95866cefa6381cdef901062be755052d | [
"MIT"
] | null | null | null | break_key.py | HuuHoangNguyen/Python_learning | c33940ca95866cefa6381cdef901062be755052d | [
"MIT"
] | null | null | null | break_key.py | HuuHoangNguyen/Python_learning | c33940ca95866cefa6381cdef901062be755052d | [
"MIT"
] | null | null | null | #!/usr/bin/python
for letter in "Python": #First example
if letter == 'h':
break
print "Current variable value : ", letter
var = 10
while var > 10:
print "Current variable value : ", var
var = var - 1
if var == 5:
break
print "END"
| 18.8 | 50 | 0.549645 | 37 | 282 | 4.189189 | 0.567568 | 0.129032 | 0.258065 | 0.322581 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032086 | 0.336879 | 282 | 14 | 51 | 20.142857 | 0.796791 | 0.102837 | 0 | 0.181818 | 0 | 0 | 0.239044 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.272727 | 0 | 0 | 0 | null | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
352512b56666643c75d66e8d77ef4c77c1f177d0 | 445 | py | Python | pymtl3/passes/BasePass.py | kevinyuan/pymtl3 | 5949e6a4acc625c0ccbbb25be3af1d0db683df3c | [
"BSD-3-Clause"
] | 152 | 2020-06-03T02:34:11.000Z | 2022-03-30T04:16:45.000Z | pymtl3/passes/BasePass.py | kevinyuan/pymtl3 | 5949e6a4acc625c0ccbbb25be3af1d0db683df3c | [
"BSD-3-Clause"
] | 139 | 2019-05-29T00:37:09.000Z | 2020-05-17T16:49:26.000Z | pymtl3/passes/BasePass.py | kevinyuan/pymtl3 | 5949e6a4acc625c0ccbbb25be3af1d0db683df3c | [
"BSD-3-Clause"
] | 22 | 2020-05-18T13:42:05.000Z | 2022-03-11T08:37:51.000Z | """
========================================================================
BasePass.py
========================================================================
An "abstract" base class for all passes.
Author : Shunning Jiang
Date : Dec 17, 2017
"""
class PassMetadata:
pass
class BasePass:
def __init__( self, ... | 23.421053 | 72 | 0.460674 | 41 | 445 | 4.804878 | 0.731707 | 0.091371 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015915 | 0.152809 | 445 | 18 | 73 | 24.722222 | 0.506631 | 0.65618 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0.571429 | 0 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
352f96f1d2f1be307202c7d15ceea907b4a9b7c5 | 371 | py | Python | Chapter_4/SCU_4_4.py | charliealpha094/Introduction-to-Python-Programming-for-Business-and-Social-Sciences-Applications | 52c4612b0d80da3311411bc7aee1d98f75de3d95 | [
"MIT"
] | null | null | null | Chapter_4/SCU_4_4.py | charliealpha094/Introduction-to-Python-Programming-for-Business-and-Social-Sciences-Applications | 52c4612b0d80da3311411bc7aee1d98f75de3d95 | [
"MIT"
] | null | null | null | Chapter_4/SCU_4_4.py | charliealpha094/Introduction-to-Python-Programming-for-Business-and-Social-Sciences-Applications | 52c4612b0d80da3311411bc7aee1d98f75de3d95 | [
"MIT"
] | null | null | null | # Done by Carlos Amaral (2020/09/21)
# SCU 4.4 - Nested if Statements
value_entered = input("Please, enter a number less than 100: ")
if int(value_entered) > 50:
print("The value entered is greater than 50.")
if int(value_entered) < 75:
print("The value entered is also less than 75")
else:
prin... | 26.5 | 63 | 0.679245 | 62 | 371 | 4.016129 | 0.548387 | 0.289157 | 0.156627 | 0.240964 | 0.26506 | 0 | 0 | 0 | 0 | 0 | 0 | 0.07931 | 0.218329 | 371 | 14 | 64 | 26.5 | 0.77931 | 0.175202 | 0 | 0 | 0 | 0 | 0.523026 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.428571 | 0 | 0 | 0 | null | 1 | 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 | 1 | 0 | 3 |
106ce7955706cb852671c2af364a411bbd815ab1 | 159 | py | Python | flask_manage/project_template/app/factory.py | colinlogue/flask-manage | 14145e13c190f3428d822253b056458a5e480a87 | [
"MIT"
] | null | null | null | flask_manage/project_template/app/factory.py | colinlogue/flask-manage | 14145e13c190f3428d822253b056458a5e480a87 | [
"MIT"
] | null | null | null | flask_manage/project_template/app/factory.py | colinlogue/flask-manage | 14145e13c190f3428d822253b056458a5e480a87 | [
"MIT"
] | null | null | null | from flask import Flask
from flask_manage.core import register_modules
def create_app():
app = Flask(__name__)
register_modules(app)
return app | 15.9 | 46 | 0.748428 | 22 | 159 | 5.045455 | 0.545455 | 0.162162 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.194969 | 159 | 10 | 47 | 15.9 | 0.867188 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
106d59055b6e46e61971d09951a3aa3855035f97 | 234 | py | Python | openmdao.main/src/openmdao/main/test/src/doubler.py | mjfwest/OpenMDAO-Framework | a5521f47ad7686c25b203de74e1c7dff5fd7a52b | [
"Apache-2.0"
] | 69 | 2015-01-02T19:10:08.000Z | 2021-11-14T04:42:28.000Z | openmdao.main/src/openmdao/main/test/src/doubler.py | jcchin/OpenMDAO-Framework | 038e89b06da1c74f00918f4c6fbd8bd365e25657 | [
"Apache-2.0"
] | 3 | 2015-01-15T23:08:18.000Z | 2015-03-11T16:57:35.000Z | openmdao.main/src/openmdao/main/test/src/doubler.py | jcchin/OpenMDAO-Framework | 038e89b06da1c74f00918f4c6fbd8bd365e25657 | [
"Apache-2.0"
] | 31 | 2015-09-16T00:37:35.000Z | 2022-01-10T06:27:55.000Z |
from openmdao.main.api import Component
from openmdao.main.datatypes.api import Float
class Doubler(Component):
x = Float(0.0, iotype='in')
y = Float(0.0, iotype='out')
def execute(self):
self.y = self.x * 2
| 16.714286 | 45 | 0.649573 | 36 | 234 | 4.222222 | 0.555556 | 0.157895 | 0.210526 | 0.171053 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027322 | 0.217949 | 234 | 13 | 46 | 18 | 0.803279 | 0 | 0 | 0 | 0 | 0 | 0.021645 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 1 | 0 | 0 | 3 |
106e6f1fae91a068e236fbb3ed996de333b97dce | 136 | py | Python | 6 - Python/Regex And Patterns/7 - Validating A Roman Number.py | Terence-Guan/Python.HackerRank | 165a5f0e739c7678dfac7eae95443018e2167c3d | [
"MIT"
] | 88 | 2016-10-23T16:41:14.000Z | 2019-12-30T23:51:47.000Z | HackerRank/6 - Python/Regex And Patterns/7 - Validating A Roman Number.py | natalie-o-perret/coding-challenges | 9a242e0ec54488f59be82592822b31ff51af1633 | [
"MIT"
] | 1 | 2018-10-13T14:31:54.000Z | 2018-10-13T14:31:54.000Z | HackerRank/6 - Python/Regex And Patterns/7 - Validating A Roman Number.py | natalie-o-perret/coding-challenges | 9a242e0ec54488f59be82592822b31ff51af1633 | [
"MIT"
] | 82 | 2017-02-01T17:02:56.000Z | 2020-02-01T11:45:58.000Z | import re
S = input()
r = re.compile("^M{0,3}(CM|CD|D?C{0,3})(XC|XL|L?X{0,3})(IX|IV|V?I{0,3})$")
print(True if r.search(S) else False)
| 22.666667 | 74 | 0.580882 | 36 | 136 | 2.194444 | 0.75 | 0.101266 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065574 | 0.102941 | 136 | 5 | 75 | 27.2 | 0.581967 | 0 | 0 | 0 | 0 | 0.25 | 0.411765 | 0.411765 | 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 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1070e6855dc231ab77779d8d8a9e7590de3def7d | 2,514 | py | Python | Multi-agent Transfer RL/Transfer across tasks/Bayes-ToMoP/Performance.py | TJU-DRL-LAB/transfer-and-multi-task-reinforcement-learning | 2d8c12c2b5a4865c02934b63091945d3e2c92e90 | [
"MIT"
] | null | null | null | Multi-agent Transfer RL/Transfer across tasks/Bayes-ToMoP/Performance.py | TJU-DRL-LAB/transfer-and-multi-task-reinforcement-learning | 2d8c12c2b5a4865c02934b63091945d3e2c92e90 | [
"MIT"
] | null | null | null | Multi-agent Transfer RL/Transfer across tasks/Bayes-ToMoP/Performance.py | TJU-DRL-LAB/transfer-and-multi-task-reinforcement-learning | 2d8c12c2b5a4865c02934b63091945d3e2c92e90 | [
"MIT"
] | null | null | null | # -*- coding:utf-8 -*-
import numpy as np
import random
from scipy.stats import norm
class Performance():
def __init__(self, policy, op_policy):
# BallGame里,一共有4个策略,0代表持球积极策略,1代表持球不积极策略,2代表不持球积极策略,3代表不持球不积极策略
# policy 表示自己的策略个数,op_policy表示对手策略个数
self.policy = policy
self.op_policy... | 50.28 | 169 | 0.684566 | 340 | 2,514 | 4.773529 | 0.188235 | 0.311768 | 0.184227 | 0.269254 | 0.636476 | 0.636476 | 0.601972 | 0.478127 | 0.478127 | 0.367221 | 0 | 0.020697 | 0.212013 | 2,514 | 49 | 170 | 51.306122 | 0.798587 | 0.180191 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16129 | false | 0 | 0.096774 | 0.064516 | 0.387097 | 0 | 0 | 0 | 0 | null | 1 | 1 | 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 | 3 |
1076fc5b359a27ac6c78bed915de412603a6f78b | 530 | py | Python | src/utils/pidpigeon.py | creikey/DeepSpace2019 | 454453aec745df6b1d4e7cfa5222ac46af338a84 | [
"MIT"
] | 2 | 2021-12-08T05:02:28.000Z | 2021-12-29T14:47:55.000Z | src/utils/pidpigeon.py | creikey/DeepSpace2019 | 454453aec745df6b1d4e7cfa5222ac46af338a84 | [
"MIT"
] | 19 | 2019-01-07T01:42:07.000Z | 2019-03-08T05:38:52.000Z | src/utils/pidpigeon.py | creikey/DeepSpace2019 | 454453aec745df6b1d4e7cfa5222ac46af338a84 | [
"MIT"
] | 7 | 2018-10-29T05:09:50.000Z | 2020-04-16T04:04:18.000Z | from wpilib.analogpotentiometer import AnalogPotentiometer
from wpilib.interfaces.pidsource import PIDSource
class PIDPigeon(PIDSource):
def __init__(self, pigeon):
self.pigeon = pigeon
def pidGet(self):
yaw = self.pigeon.getYawPitchRoll()[0]
return yaw
def setPIDSourceType(self,... | 27.894737 | 63 | 0.711321 | 54 | 530 | 6.907407 | 0.537037 | 0.080429 | 0.187668 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002398 | 0.213208 | 530 | 18 | 64 | 29.444444 | 0.892086 | 0 | 0 | 0 | 0 | 0 | 0.060377 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0 | 0.153846 | 0.076923 | 0.692308 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
1077f03b1f2fda2d873e13ff6d6e6df6a242c204 | 97 | py | Python | committeeoversightapp/model_utils.py | datamade/committee-oversight | a9181d60e5e9e9f122908bc2cbf8777fb2d4a1fc | [
"MIT"
] | null | null | null | committeeoversightapp/model_utils.py | datamade/committee-oversight | a9181d60e5e9e9f122908bc2cbf8777fb2d4a1fc | [
"MIT"
] | 129 | 2018-10-05T14:29:41.000Z | 2021-03-01T14:14:08.000Z | committeeoversightapp/model_utils.py | datamade/committee-oversight | a9181d60e5e9e9f122908bc2cbf8777fb2d4a1fc | [
"MIT"
] | null | null | null | def cap_100(percent):
if percent <= 100:
return percent
else:
return 100
| 16.166667 | 22 | 0.56701 | 12 | 97 | 4.5 | 0.583333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145161 | 0.360825 | 97 | 5 | 23 | 19.4 | 0.725806 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.6 | 0 | 1 | 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 | 1 | 0 | 0 | 3 |
107aee404eaf46348106593ef2ca04faf659c9da | 1,320 | py | Python | grouper/plugin.py | zorkian/grouper | c77c9f5c0b6c1f98108e3ee2fc8ebbd1c4c4e1ec | [
"Apache-2.0"
] | null | null | null | grouper/plugin.py | zorkian/grouper | c77c9f5c0b6c1f98108e3ee2fc8ebbd1c4c4e1ec | [
"Apache-2.0"
] | null | null | null | grouper/plugin.py | zorkian/grouper | c77c9f5c0b6c1f98108e3ee2fc8ebbd1c4c4e1ec | [
"Apache-2.0"
] | null | null | null | """
plugin.py
Base plugin for Grouper plugins. These are plugins that can be written to extend Grouper
functionality.
"""
class BasePlugin(object):
def user_created(self, user):
"""Called when a new user is created
When new users enter into Grouper, you might have reason to set metadata on those... | 29.333333 | 93 | 0.626515 | 162 | 1,320 | 5.080247 | 0.574074 | 0.036452 | 0.043742 | 0.048603 | 0.109356 | 0.109356 | 0.109356 | 0.109356 | 0.109356 | 0.109356 | 0 | 0.013058 | 0.303788 | 1,320 | 44 | 94 | 30 | 0.882481 | 0.686364 | 0 | 0.428571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.428571 | false | 0.428571 | 0 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
109d642e86682cd6099ab94369aaab459bbb6720 | 108 | py | Python | openpype/tools/launcher/__init__.py | jonclothcat/OpenPype | d1208cbebc0a7f378de0062ccd653295c6399195 | [
"MIT"
] | 87 | 2021-05-07T08:40:46.000Z | 2022-03-19T00:36:25.000Z | openpype/tools/launcher/__init__.py | zafrs/OpenPype | 4b8e7e1ed002fc55b31307efdea70b0feaed474f | [
"MIT"
] | 1,019 | 2021-04-26T06:22:56.000Z | 2022-03-31T16:30:43.000Z | openpype/tools/launcher/__init__.py | zafrs/OpenPype | 4b8e7e1ed002fc55b31307efdea70b0feaed474f | [
"MIT"
] | 33 | 2021-04-29T12:35:54.000Z | 2022-03-25T14:48:42.000Z | from .window import LauncherWindow
from . import actions
__all__ = [
"LauncherWindow",
"actions"
]
| 13.5 | 34 | 0.694444 | 10 | 108 | 7.1 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.212963 | 108 | 7 | 35 | 15.428571 | 0.835294 | 0 | 0 | 0 | 0 | 0 | 0.194444 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
10b16e1fd077e6234a40e7a72fd73ad7910c6e30 | 414 | py | Python | Practice/models.py | Poornartha/VocabBuilder | bb24e524d686d8b8175d2a101ed0c0a0652c74b3 | [
"MIT"
] | 2 | 2020-09-13T11:39:50.000Z | 2021-02-06T22:20:41.000Z | Practice/models.py | Poornartha/VocabBuilder | bb24e524d686d8b8175d2a101ed0c0a0652c74b3 | [
"MIT"
] | null | null | null | Practice/models.py | Poornartha/VocabBuilder | bb24e524d686d8b8175d2a101ed0c0a0652c74b3 | [
"MIT"
] | null | null | null | from django.db import models
from django.contrib.auth.models import User
# Create your models here.
class Score(models.Model):
score = models.IntegerField(blank=True)
total = models.IntegerField(blank=True)
user = models.ManyToManyField(User, blank=True)
added = models.DateTimeField(auto_now_add=True)
... | 27.6 | 51 | 0.724638 | 52 | 414 | 5.730769 | 0.519231 | 0.120805 | 0.231544 | 0.271812 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.171498 | 414 | 14 | 52 | 29.571429 | 0.868805 | 0.057971 | 0 | 0 | 0 | 0 | 0.015504 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.9 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 1 | 0 | 0 | 3 |
52ae71f4652d38dc47ca213121ec8185925c6c5b | 3,108 | py | Python | apps/post/migrations/0001_initial.py | rmdes/tanzawa | d53baa10bd6c217cd18628437a88a43e3bd02b70 | [
"Apache-2.0"
] | 25 | 2021-06-13T03:38:44.000Z | 2022-03-15T15:53:31.000Z | apps/post/migrations/0001_initial.py | rmdes/tanzawa | d53baa10bd6c217cd18628437a88a43e3bd02b70 | [
"Apache-2.0"
] | 59 | 2021-06-12T23:35:06.000Z | 2022-03-24T21:40:24.000Z | apps/post/migrations/0001_initial.py | rmdes/tanzawa | d53baa10bd6c217cd18628437a88a43e3bd02b70 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.1.4 on 2020-12-30 22:49
import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = []
operations = [
migrations.CreateModel(
name="MPostKind",
fields=[
... | 33.419355 | 104 | 0.420528 | 236 | 3,108 | 5.351695 | 0.283898 | 0.120348 | 0.099762 | 0.118765 | 0.713381 | 0.713381 | 0.656374 | 0.656374 | 0.656374 | 0.656374 | 0 | 0.01399 | 0.471042 | 3,108 | 92 | 105 | 33.782609 | 0.754258 | 0.014479 | 0 | 0.623529 | 1 | 0 | 0.082326 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.023529 | 0 | 0.070588 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 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 | 3 |
52bb81c195ecc84630ccdf93b768feec8de666b9 | 451 | py | Python | refby/errors.py | stsewd/refby | f74a6afcb332c356b111266ea46ee724e78342c0 | [
"MIT"
] | null | null | null | refby/errors.py | stsewd/refby | f74a6afcb332c356b111266ea46ee724e78342c0 | [
"MIT"
] | null | null | null | refby/errors.py | stsewd/refby | f74a6afcb332c356b111266ea46ee724e78342c0 | [
"MIT"
] | null | null | null | class PrivateOrInvalidProfileError(Exception):
def __init__(self, user):
Exception.__init__(self, "User profile " + "'" + user + "'" + " is private or doesn't exist.")
class UserIdNotFoundError(Exception):
def __init__(self):
Exception.__init__(self, "User id not found.")
class OutputDirecto... | 32.214286 | 102 | 0.689579 | 48 | 451 | 5.979167 | 0.458333 | 0.167247 | 0.167247 | 0.209059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.186253 | 451 | 13 | 103 | 34.692308 | 0.782016 | 0 | 0 | 0 | 0 | 0 | 0.210643 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
52bc7c1be510c7fc37f4fdfb3fbd03dd3c2fcde2 | 79 | py | Python | database/config.py | rasmussenmatthew/cs257 | 968aeb4cbdbb49c8a5d77392dda1981086189e78 | [
"MIT"
] | null | null | null | database/config.py | rasmussenmatthew/cs257 | 968aeb4cbdbb49c8a5d77392dda1981086189e78 | [
"MIT"
] | null | null | null | database/config.py | rasmussenmatthew/cs257 | 968aeb4cbdbb49c8a5d77392dda1981086189e78 | [
"MIT"
] | null | null | null | database = 'olympics'
user = 'rasmussenmatthew'
password = 'Grogstrongjaw11!' | 26.333333 | 29 | 0.746835 | 6 | 79 | 9.833333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028986 | 0.126582 | 79 | 3 | 29 | 26.333333 | 0.826087 | 0 | 0 | 0 | 0 | 0 | 0.512821 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.333333 | 0 | 0 | 0 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
52c08ddd9f36b5d61ee86a6f91b829312c086dd9 | 237 | py | Python | itez/beneficiary/filters.py | Olipa776/itez | d6bba80c74d5ce385ae8a304e56546d927d24624 | [
"MIT"
] | 1 | 2021-12-12T11:46:47.000Z | 2021-12-12T11:46:47.000Z | itez/beneficiary/filters.py | Olipa776/itez | d6bba80c74d5ce385ae8a304e56546d927d24624 | [
"MIT"
] | 11 | 2021-11-03T10:46:00.000Z | 2021-12-20T11:35:00.000Z | itez/beneficiary/filters.py | Olipa776/itez | d6bba80c74d5ce385ae8a304e56546d927d24624 | [
"MIT"
] | 7 | 2021-11-01T15:03:02.000Z | 2021-11-06T13:06:10.000Z | import django_filters
from .models import Beneficiary
class BeneficiaryFilter(django_filters.FilterSet):
class Meta:
model = Beneficiary
fields = ["first_name", "last_name", "agent_id", "gender", "beneficiary_id"]
| 23.7 | 84 | 0.7173 | 26 | 237 | 6.307692 | 0.692308 | 0.158537 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181435 | 237 | 9 | 85 | 26.333333 | 0.845361 | 0 | 0 | 0 | 0 | 0 | 0.198312 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
5e080723a8939ce787b3ad2ce82031090cb3eb0a | 796 | py | Python | daq_server/daq/instrument/contrib/dmt/dmt.py | NOAA-PMEL/envDataSystem | 4db4a3569d2329658799a3eef06ce36dd5c0597d | [
"Unlicense"
] | 1 | 2021-11-06T19:22:53.000Z | 2021-11-06T19:22:53.000Z | daq_server/daq/instrument/contrib/dmt/dmt.py | NOAA-PMEL/envDataSystem | 4db4a3569d2329658799a3eef06ce36dd5c0597d | [
"Unlicense"
] | 25 | 2019-06-18T20:40:36.000Z | 2021-07-23T20:56:48.000Z | daq_server/daq/instrument/contrib/dmt/dmt.py | NOAA-PMEL/envDataSystem | 4db4a3569d2329658799a3eef06ce36dd5c0597d | [
"Unlicense"
] | null | null | null | from daq.instrument.instrument import Instrument
# from shared.data.message import Message
# from daq.daq import DAQ
# import asyncio
# from shared.utilities.util import time_to_next
# from daq.interface.interface import Interface
# from plots.plots import PlotManager
# from plots.apps.plot_app import TimeSeries1D
cl... | 24.121212 | 61 | 0.648241 | 91 | 796 | 5.472527 | 0.516484 | 0.042169 | 0.044177 | 0.068273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001709 | 0.265075 | 796 | 32 | 62 | 24.875 | 0.849573 | 0.516332 | 0 | 0 | 0 | 0 | 0.008152 | 0 | 0 | 0 | 0 | 0.03125 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
5e1fd603c386395b87fb4dde6a18d8a3a6d79120 | 1,167 | py | Python | disasmlib/machine/machine.py | nakandev/disasmlib | 4477e179886b5046c230c37038ddb140cea0cf68 | [
"MIT"
] | null | null | null | disasmlib/machine/machine.py | nakandev/disasmlib | 4477e179886b5046c230c37038ddb140cea0cf68 | [
"MIT"
] | null | null | null | disasmlib/machine/machine.py | nakandev/disasmlib | 4477e179886b5046c230c37038ddb140cea0cf68 | [
"MIT"
] | null | null | null | import re
class AsmMachine(object):
_classes = list()
command_prefix = '*'
jumps = ('jmp', 'jmpq',)
branchs = ('je', 'jne',)
calls = ('call',)
rets = ('ret',)
pseudos = ()
def __init__(self):
if self.__class__ not in AsmMachine._classes:
AsmMachine._classes.appen... | 23.816327 | 63 | 0.551842 | 151 | 1,167 | 4.046358 | 0.331126 | 0.07856 | 0.081833 | 0.091653 | 0.245499 | 0.245499 | 0.245499 | 0.150573 | 0 | 0 | 0 | 0.009988 | 0.313625 | 1,167 | 48 | 64 | 24.3125 | 0.752809 | 0 | 0 | 0.055556 | 0 | 0 | 0.026564 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.027778 | 0.166667 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
eaccd24428f1c54f51d37f604a4194551358cdb3 | 217 | py | Python | Chapter 3/Bicycles.py | 3GamersStudios/SHSPythonWork | 6f98ad3a25d30f2670dc48ca4f9b4cf75eb37a61 | [
"MIT"
] | null | null | null | Chapter 3/Bicycles.py | 3GamersStudios/SHSPythonWork | 6f98ad3a25d30f2670dc48ca4f9b4cf75eb37a61 | [
"MIT"
] | null | null | null | Chapter 3/Bicycles.py | 3GamersStudios/SHSPythonWork | 6f98ad3a25d30f2670dc48ca4f9b4cf75eb37a61 | [
"MIT"
] | null | null | null | bicyles = ['trek', 'cannondale', 'redline', 'specialized']
message = f"My first bicycle was a {bicyles[0].title()}"
print(bicyles[0].title())
print(bicyles[1])
print(bicyles[3])
print(bicyles[-1])
print(message) | 16.692308 | 58 | 0.677419 | 30 | 217 | 4.9 | 0.566667 | 0.326531 | 0.176871 | 0.244898 | 0.292517 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025907 | 0.110599 | 217 | 13 | 59 | 16.692308 | 0.735751 | 0 | 0 | 0 | 0 | 0 | 0.344037 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.714286 | 0 | 0 | 0 | null | 1 | 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 | 1 | 0 | 3 |
d8203d03ddadeaa336136b5d3d6499a5d549f932 | 447 | py | Python | rl_toolkit/core/process.py | markub3327/rl-baselines | 967a247249778dd23cb03016c51ea895ceb46b21 | [
"MIT"
] | null | null | null | rl_toolkit/core/process.py | markub3327/rl-baselines | 967a247249778dd23cb03016c51ea895ceb46b21 | [
"MIT"
] | null | null | null | rl_toolkit/core/process.py | markub3327/rl-baselines | 967a247249778dd23cb03016c51ea895ceb46b21 | [
"MIT"
] | null | null | null | import gym
import pybullet_envs # noqa
class Process:
"""
Base class for processes
=================
Attributes:
env_name (str): the name of environment
"""
def __init__(
self,
# ---
env_name: str,
):
# Herne prostredie
self._env = gym.mak... | 15.964286 | 47 | 0.514541 | 47 | 447 | 4.680851 | 0.574468 | 0.095455 | 0.090909 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.360179 | 447 | 27 | 48 | 16.555556 | 0.769231 | 0.33557 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.083333 | 0.166667 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
d82a3fea189537703d6a09ebe79a584156b57b46 | 277 | py | Python | python_submitty_utils/submitty_utils/string_utils.py | zeez2030/Submitty | 7118944ff4adc6f15d76984eb10a1e862926d724 | [
"BSD-3-Clause"
] | 411 | 2016-06-14T20:52:25.000Z | 2022-03-31T21:20:25.000Z | python_submitty_utils/submitty_utils/string_utils.py | KaelanWillauer/Submitty | cf9b6ceda15ec0a661e2ca81ea7864790094c64a | [
"BSD-3-Clause"
] | 5,730 | 2016-05-23T21:04:32.000Z | 2022-03-31T10:08:06.000Z | python_submitty_utils/submitty_utils/string_utils.py | KaelanWillauer/Submitty | cf9b6ceda15ec0a661e2ca81ea7864790094c64a | [
"BSD-3-Clause"
] | 423 | 2016-09-22T21:11:30.000Z | 2022-03-29T18:55:28.000Z | import random
import string
def generate_random_string(length):
"""
Return an uppercase string of n letters.
:return:
:rtype: string
"""
choices = string.ascii_letters + string.digits
return ''.join(random.choice(choices) for i in range(length))
| 19.785714 | 65 | 0.68231 | 35 | 277 | 5.314286 | 0.628571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.216607 | 277 | 13 | 66 | 21.307692 | 0.857143 | 0.234657 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
dc2ace19b523d16a6b5a3a80188b8cf41a0e11a2 | 166 | py | Python | sdk/python/opencannabis/geo/__init__.py | CookiesCo/OpenCannabis | a7bb1f71200c6b8f56c509df47039198f0c3bd4c | [
"MIT"
] | 2 | 2020-08-27T00:45:49.000Z | 2021-06-19T08:01:13.000Z | sdk/python/opencannabis/geo/__init__.py | CookiesCo/OpenCannabis | a7bb1f71200c6b8f56c509df47039198f0c3bd4c | [
"MIT"
] | 67 | 2020-08-27T03:16:33.000Z | 2022-03-26T14:33:38.000Z | sdk/python/opencannabis/geo/__init__.py | CookiesCo/OpenCannabis | a7bb1f71200c6b8f56c509df47039198f0c3bd4c | [
"MIT"
] | 1 | 2020-11-12T04:26:43.000Z | 2020-11-12T04:26:43.000Z | # ~*~ coding: utf-8 ~*~
__doc__ = """
`opencannabis.geo`
---------------------------
Objects and definitions related to geography.
"""
# `opencannabis.geo`
| 13.833333 | 47 | 0.518072 | 14 | 166 | 5.857143 | 0.857143 | 0.365854 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007299 | 0.174699 | 166 | 11 | 48 | 15.090909 | 0.591241 | 0.240964 | 0 | 0 | 0 | 0 | 0.829268 | 0.219512 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
dc324f390a8b27b87c5c9fbf14df39524f0fe3fc | 316 | py | Python | src/biosyn/__init__.py | ronaldseoh/BioSyn | 01c604c7bb2d2e97aaf2126ce8086e32dfeb7fc2 | [
"MIT"
] | 1 | 2020-05-11T05:51:30.000Z | 2020-05-11T05:51:30.000Z | src/biosyn/__init__.py | Manikant92/BioSyn | 2f0f02769acf82fc110c724a581dd2675c47d655 | [
"MIT"
] | null | null | null | src/biosyn/__init__.py | Manikant92/BioSyn | 2f0f02769acf82fc110c724a581dd2675c47d655 | [
"MIT"
] | 2 | 2021-02-23T23:18:13.000Z | 2021-03-31T17:42:28.000Z | from .data_loader import (
QueryDataset,
CandidateDataset,
DictionaryDataset,
)
from .preprocesser import TextPreprocess
from .rerankNet import RerankNet
from .tokenizer import BertTokenizer
from .sparse_encoder import SparseEncoder
from .abbr_resolver import Abbr_resolver
from .biosyn import BioSyn | 24.307692 | 41 | 0.813291 | 34 | 316 | 7.441176 | 0.529412 | 0.094862 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148734 | 316 | 13 | 42 | 24.307692 | 0.94052 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.636364 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
dc6bddd5717506b528bcc9e35698d79cb1aefa6a | 1,970 | py | Python | test/PR_test/unit_test/backend/test_permute.py | hanskrupakar/fastestimator | 1c3fe89ad8b012991b524a6c48f328b2a80dc9f6 | [
"Apache-2.0"
] | null | null | null | test/PR_test/unit_test/backend/test_permute.py | hanskrupakar/fastestimator | 1c3fe89ad8b012991b524a6c48f328b2a80dc9f6 | [
"Apache-2.0"
] | null | null | null | test/PR_test/unit_test/backend/test_permute.py | hanskrupakar/fastestimator | 1c3fe89ad8b012991b524a6c48f328b2a80dc9f6 | [
"Apache-2.0"
] | null | null | null | import unittest
import numpy as np
import tensorflow as tf
import torch
import fastestimator as fe
from fastestimator.test.unittest_util import is_equal
class TestPermute(unittest.TestCase):
def test_permute_np(self):
n = np.array([[[0, 1], [2, 3]], [[4, 5], [6, 7]], [[8, 9], [10, 11]]])
with se... | 41.914894 | 89 | 0.496954 | 298 | 1,970 | 3.238255 | 0.154362 | 0.018653 | 0.093264 | 0.161658 | 0.760622 | 0.758549 | 0.690155 | 0.690155 | 0.690155 | 0.690155 | 0 | 0.121254 | 0.271574 | 1,970 | 46 | 90 | 42.826087 | 0.55122 | 0 | 0 | 0.432432 | 0 | 0 | 0.054822 | 0 | 0 | 0 | 0 | 0 | 0.162162 | 1 | 0.081081 | false | 0 | 0.162162 | 0 | 0.27027 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 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 | 3 |
dc773570e6312cddaef68aa4c981f7ac6cf1c9af | 2,327 | py | Python | tests/unit/test_strategy.py | garzola/masonite-socialite | 70cb80365e2096773e291f84b6e7af81a276ac1b | [
"MIT"
] | 13 | 2020-02-02T01:27:51.000Z | 2021-11-08T08:50:57.000Z | tests/unit/test_strategy.py | garzola/masonite-socialite | 70cb80365e2096773e291f84b6e7af81a276ac1b | [
"MIT"
] | 17 | 2020-02-05T16:52:45.000Z | 2021-05-16T14:34:46.000Z | tests/unit/test_strategy.py | garzola/masonite-socialite | 70cb80365e2096773e291f84b6e7af81a276ac1b | [
"MIT"
] | 6 | 2020-02-03T14:20:30.000Z | 2021-03-18T01:33:21.000Z | from unittest import mock
from masonite.testing import TestCase
from socialite.helpers import load_strategy, load_backend
class TestMasoniteStrategy(TestCase):
def setUp(self):
super(TestMasoniteStrategy, self).setUp()
self.request = self.get('/', params={'x': 1}).request
self.strategy ... | 41.553571 | 95 | 0.682853 | 274 | 2,327 | 5.645985 | 0.266423 | 0.170653 | 0.208791 | 0.296703 | 0.458306 | 0.303167 | 0.206206 | 0.133161 | 0.071105 | 0 | 0 | 0.003655 | 0.177052 | 2,327 | 55 | 96 | 42.309091 | 0.804178 | 0 | 0 | 0 | 0 | 0 | 0.086377 | 0.042544 | 0 | 0 | 0 | 0 | 0.463415 | 1 | 0.170732 | false | 0 | 0.073171 | 0 | 0.268293 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
dc8db25767e199a1dea9a7abb57e01bbdd1ac251 | 1,091 | py | Python | perfreports/data.py | pavel-paulau/perfreports | 0860cf1126562cd28df2b554576da50b91a59ea5 | [
"Apache-2.0"
] | 2 | 2015-05-07T07:49:36.000Z | 2021-11-17T12:04:23.000Z | perfreports/data.py | pavel-paulau/perfreports | 0860cf1126562cd28df2b554576da50b91a59ea5 | [
"Apache-2.0"
] | null | null | null | perfreports/data.py | pavel-paulau/perfreports | 0860cf1126562cd28df2b554576da50b91a59ea5 | [
"Apache-2.0"
] | null | null | null | import pandas as pd
import requests
BASE_URL = 'http://127.0.0.1:8080/'
session = requests.session()
def snapshots(*args):
return session.get(url='{}'.format(BASE_URL, *args)).json()
def sources(*args):
return session.get(url='{}/{}'.format(BASE_URL, *args)).json()
def metrics(*args):
return sessi... | 23.717391 | 80 | 0.646196 | 149 | 1,091 | 4.637584 | 0.315436 | 0.060781 | 0.12301 | 0.144718 | 0.397974 | 0.306802 | 0.272069 | 0.272069 | 0.272069 | 0.272069 | 0 | 0.016447 | 0.16407 | 1,091 | 45 | 81 | 24.244444 | 0.741228 | 0.006416 | 0 | 0 | 0 | 0 | 0.067468 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.269231 | false | 0 | 0.076923 | 0.192308 | 0.615385 | 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 | 1 | 1 | 0 | 0 | 3 |
dc9b245e10de4db7e9cd40bac1e38025d9c82fb8 | 415 | py | Python | rlp/__init__.py | risklayer/corona-landkreis-crawler | 2e82448ff614240365de9493eafa0e6a620ac615 | [
"Unlicense"
] | 12 | 2022-02-23T11:06:06.000Z | 2022-03-04T17:21:44.000Z | rlp/__init__.py | risklayer/corona-landkreis-crawler | 2e82448ff614240365de9493eafa0e6a620ac615 | [
"Unlicense"
] | null | null | null | rlp/__init__.py | risklayer/corona-landkreis-crawler | 2e82448ff614240365de9493eafa0e6a620ac615 | [
"Unlicense"
] | null | null | null | from .land import rlp
from .ahrweiler import ahrweiler
from .altenkirchen import altenkirchen
from .alzeyworms import alzeyworms
from .cochem import cochem
#from .kaiserslautern import kaiserslautern
from .koblenz import koblenz
from .landau import landau
from .mainz import mainz
from .neuwied import neuwied
from .rhei... | 29.642857 | 43 | 0.840964 | 52 | 415 | 6.711538 | 0.307692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125301 | 415 | 13 | 44 | 31.923077 | 0.961433 | 0.101205 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
dcac1e099973bbfe7e878a1d951a764ca53192ce | 358 | py | Python | samtranslator/model/sns.py | giuliocalzolari/serverless-application-model | a2c69540ee93a673d03fa75bf7be4e4c75b80868 | [
"Apache-2.0"
] | 6 | 2019-03-29T02:56:59.000Z | 2021-03-28T22:07:02.000Z | samtranslator/model/sns.py | jesman/serverless-application-model | e8f74f56d19af0b5d0e3e534137a7a875f7d1f7a | [
"Apache-2.0"
] | 18 | 2019-10-09T23:27:48.000Z | 2021-06-25T15:18:24.000Z | samtranslator/model/sns.py | jesman/serverless-application-model | e8f74f56d19af0b5d0e3e534137a7a875f7d1f7a | [
"Apache-2.0"
] | 2 | 2018-08-01T13:56:19.000Z | 2018-08-01T14:01:23.000Z | from samtranslator.model import PropertyType, Resource
from samtranslator.model.types import is_str
class SNSSubscription(Resource):
resource_type = 'AWS::SNS::Subscription'
property_types = {
'Endpoint': PropertyType(True, is_str()),
'Protocol': PropertyType(True, is_str()),
'TopicArn... | 29.833333 | 54 | 0.698324 | 38 | 358 | 6.421053 | 0.526316 | 0.081967 | 0.221311 | 0.258197 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181564 | 358 | 11 | 55 | 32.545455 | 0.832765 | 0 | 0 | 0 | 0 | 0 | 0.128492 | 0.061453 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 1 | 0 | 0 | 3 |
f4aaec14d18598711ae199e9d5b35a39ccc85671 | 130 | py | Python | ebc/header.py | yangfl/python-easy-bytecode | 264cbde75dbd3369001604e12ae7a8c2ed04a039 | [
"Unlicense"
] | 1 | 2020-01-10T18:46:39.000Z | 2020-01-10T18:46:39.000Z | ebc/header.py | yangfl/python-easy-bytecode | 264cbde75dbd3369001604e12ae7a8c2ed04a039 | [
"Unlicense"
] | null | null | null | ebc/header.py | yangfl/python-easy-bytecode | 264cbde75dbd3369001604e12ae7a8c2ed04a039 | [
"Unlicense"
] | null | null | null | import struct
STRUCT_OP = struct.Struct('<B')
OP_LEN = STRUCT_OP.size
STRUCT_ARG = struct.Struct('<H')
ARG_LEN = STRUCT_ARG.size
| 18.571429 | 32 | 0.746154 | 22 | 130 | 4.136364 | 0.363636 | 0.395604 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115385 | 130 | 6 | 33 | 21.666667 | 0.791304 | 0 | 0 | 0 | 0 | 0 | 0.030769 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 1 | 0 | 0 | null | 1 | 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 | 3 |
f4b80fdb7008d4494bba8aae3efdd975e7744347 | 31 | py | Python | ui/__init__.py | nkrios/VMAttack | 67dcce6087163d85bbe7780e3f6e6e9e72e2212a | [
"MIT"
] | 724 | 2016-09-19T09:38:54.000Z | 2022-02-20T14:01:56.000Z | ui/__init__.py | 987432340/VMAttack | 23ba4614525d6f59c8f8fc6902c2c3ee1e05ee5d | [
"MIT"
] | 11 | 2016-10-21T02:05:42.000Z | 2021-06-20T09:35:41.000Z | ui/__init__.py | 987432340/VMAttack | 23ba4614525d6f59c8f8fc6902c2c3ee1e05ee5d | [
"MIT"
] | 173 | 2016-09-21T12:23:54.000Z | 2022-02-28T09:28:47.000Z | __author__ = 'Anatoli Kalysch'
| 15.5 | 30 | 0.774194 | 3 | 31 | 6.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.129032 | 31 | 1 | 31 | 31 | 0.740741 | 0 | 0 | 0 | 0 | 0 | 0.483871 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 3 |
f4cd9364551d91411f0d1223dff3f186cd68185c | 1,206 | py | Python | tests/tuning_test.py | bzamecnik/tfr | f58a4500eba0c2dc6edfbbd4d2c862a91a3637f2 | [
"MIT"
] | 33 | 2016-10-18T23:45:58.000Z | 2021-04-13T15:36:57.000Z | tests/tuning_test.py | ruohoruotsi/tfr | 5a7490dc9e7cb4ff6143987065cfd7a6ffb14cd5 | [
"MIT"
] | 27 | 2016-10-19T10:32:36.000Z | 2018-10-14T10:16:42.000Z | tests/tuning_test.py | ruohoruotsi/tfr | 5a7490dc9e7cb4ff6143987065cfd7a6ffb14cd5 | [
"MIT"
] | 11 | 2016-10-21T06:19:39.000Z | 2019-12-16T21:01:12.000Z | from __future__ import print_function, division
from tfr import Tuning
def test_pitch_to_relative_freq():
tuning_step1 = Tuning(steps_per_octave=1)
tuning_step12 = Tuning(steps_per_octave=12)
assert 1. == tuning_step1.pitch_to_relative_freq(0.)
assert 2. == tuning_step1.pitch_to_relative_freq(1.)
... | 35.470588 | 73 | 0.725539 | 183 | 1,206 | 4.420765 | 0.251366 | 0.147095 | 0.166873 | 0.211372 | 0.505562 | 0.482077 | 0.31644 | 0.242274 | 0.076638 | 0 | 0 | 0.119374 | 0.15257 | 1,206 | 33 | 74 | 36.545455 | 0.672211 | 0.067164 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030303 | 0.681818 | 1 | 0.090909 | false | 0 | 0.090909 | 0 | 0.181818 | 0.045455 | 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 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f4e4ce61a4ea415fcd830418ff4685281c71d3cc | 204 | py | Python | bitresource/coinbase/__init__.py | hbasria/bitresource | e436a7b958206fae7c7c0eafc73e59e2225102f1 | [
"MIT"
] | null | null | null | bitresource/coinbase/__init__.py | hbasria/bitresource | e436a7b958206fae7c7c0eafc73e59e2225102f1 | [
"MIT"
] | null | null | null | bitresource/coinbase/__init__.py | hbasria/bitresource | e436a7b958206fae7c7c0eafc73e59e2225102f1 | [
"MIT"
] | null | null | null | from http_resource import HttpResource
class CoinbaseHttpResource(HttpResource):
endpoint_url = 'https://coinbase.com/api/v1/'
ExchangeRates = CoinbaseHttpResource('currencies', 'exchange_rates')
| 22.666667 | 68 | 0.794118 | 20 | 204 | 7.95 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005464 | 0.102941 | 204 | 8 | 69 | 25.5 | 0.863388 | 0 | 0 | 0 | 0 | 0 | 0.254902 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.75 | 0 | 1 | 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 | 1 | 0 | 0 | 3 |
760f820163101684723568731bf0841de2b2d617 | 214 | py | Python | entities/relation.py | RiwsPy/Dose-the-light | 9cde10d98e1a08327650ab303f02d974045c0082 | [
"CC0-1.0"
] | null | null | null | entities/relation.py | RiwsPy/Dose-the-light | 9cde10d98e1a08327650ab303f02d974045c0082 | [
"CC0-1.0"
] | null | null | null | entities/relation.py | RiwsPy/Dose-the-light | 9cde10d98e1a08327650ab303f02d974045c0082 | [
"CC0-1.0"
] | null | null | null | from . import f_entity
class f_relation(f_entity):
def __init__(self, *args, **kwargs):
self.type = 'relation'
super().__init__(*args, **kwargs)
self.nodes = []
self.ways = []
| 21.4 | 41 | 0.570093 | 25 | 214 | 4.44 | 0.6 | 0.126126 | 0.252252 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.275701 | 214 | 9 | 42 | 23.777778 | 0.716129 | 0 | 0 | 0 | 0 | 0 | 0.037383 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.428571 | 0 | 1 | 0 | 0 | null | 0 | 1 | 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 | 3 |
522381d2c47a6cfae41713956396626946bd041e | 3,717 | py | Python | tests/full_wlm/test_wlm_helper_functions.py | MattToast/SmartSim | 4bd5e231445abd9b888561930db859062708678a | [
"BSD-2-Clause"
] | null | null | null | tests/full_wlm/test_wlm_helper_functions.py | MattToast/SmartSim | 4bd5e231445abd9b888561930db859062708678a | [
"BSD-2-Clause"
] | null | null | null | tests/full_wlm/test_wlm_helper_functions.py | MattToast/SmartSim | 4bd5e231445abd9b888561930db859062708678a | [
"BSD-2-Clause"
] | null | null | null | import os
from shutil import which
import pytest
import smartsim.wlm as wlm
from smartsim.error.errors import LauncherError, SmartSimError, SSUnsupportedError
def test_get_hosts(alloc_specs):
def verify_output(output):
assert isinstance(output, list)
assert all(isinstance(host, str) for host in ... | 31.235294 | 82 | 0.614743 | 439 | 3,717 | 4.979499 | 0.116173 | 0.060384 | 0.10247 | 0.10979 | 0.816102 | 0.8129 | 0.8129 | 0.678866 | 0.605672 | 0.499543 | 0 | 0 | 0.291095 | 3,717 | 118 | 83 | 31.5 | 0.829602 | 0 | 0 | 0.697917 | 0 | 0 | 0.057573 | 0 | 0 | 0 | 0 | 0 | 0.104167 | 1 | 0.083333 | false | 0 | 0.052083 | 0 | 0.135417 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 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 | 3 |
525a1cde42328f2e853b3c74cb5439c17fb8ccd9 | 108 | py | Python | cacreader/swig-4.0.2/Examples/test-suite/python/using_protected_runme.py | kyletanyag/LL-Smartcard | 02abea9de5a13f8bae4d7832ab34cb7f0d9514c9 | [
"BSD-3-Clause"
] | 1,031 | 2015-01-02T14:08:47.000Z | 2022-03-29T02:25:27.000Z | cacreader/swig-4.0.2/Examples/test-suite/python/using_protected_runme.py | kyletanyag/LL-Smartcard | 02abea9de5a13f8bae4d7832ab34cb7f0d9514c9 | [
"BSD-3-Clause"
] | 240 | 2015-01-11T04:27:19.000Z | 2022-03-30T00:35:57.000Z | cacreader/swig-4.0.2/Examples/test-suite/python/using_protected_runme.py | kyletanyag/LL-Smartcard | 02abea9de5a13f8bae4d7832ab34cb7f0d9514c9 | [
"BSD-3-Clause"
] | 224 | 2015-01-05T06:13:54.000Z | 2022-02-25T14:39:51.000Z | from using_protected import *
f = FooBar()
f.x = 3
if f.blah(4) != 4:
raise RuntimeError, "blah(int)"
| 13.5 | 35 | 0.62963 | 18 | 108 | 3.722222 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035294 | 0.212963 | 108 | 7 | 36 | 15.428571 | 0.752941 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.2 | null | null | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
525e85bb616452ac86ecf91e2cb02b1656954159 | 308 | py | Python | hubconf.py | petuum/tuun | 8eec472dbf0e5e695449b0fa2d98985469fd5b30 | [
"Apache-2.0"
] | 33 | 2020-08-30T16:22:35.000Z | 2022-02-26T13:48:32.000Z | hubconf.py | petuum/tuun | 8eec472dbf0e5e695449b0fa2d98985469fd5b30 | [
"Apache-2.0"
] | 2 | 2021-01-18T19:46:43.000Z | 2021-03-24T09:59:14.000Z | hubconf.py | petuum/tuun | 8eec472dbf0e5e695449b0fa2d98985469fd5b30 | [
"Apache-2.0"
] | 2 | 2020-08-25T17:02:15.000Z | 2021-04-21T16:40:44.000Z | from torchvision.models import resnet34, resnet50
def classificationResnet34(pretrained=False, **kwargs):
model = resnet34(pretrained=pretrained, **kwargs)
return model
def classificationResnet50(pretrained=False, **kwargs):
model = resnet50(pretrained=pretrained, **kwargs)
return model
| 25.666667 | 55 | 0.762987 | 30 | 308 | 7.833333 | 0.466667 | 0.12766 | 0.178723 | 0.221277 | 0.314894 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045283 | 0.13961 | 308 | 11 | 56 | 28 | 0.841509 | 0 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0 | 0.714286 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
526593f6c0363b443fbc1fb075381d550c77a7de | 161 | py | Python | setup.py | cimnine/pyhakuna | 8e74933418e371ddfd8527f0c98c645c498c3562 | [
"MIT"
] | 1 | 2022-01-17T17:05:35.000Z | 2022-01-17T17:05:35.000Z | setup.py | cimnine/pyhakuna | 8e74933418e371ddfd8527f0c98c645c498c3562 | [
"MIT"
] | 1 | 2021-01-21T13:06:10.000Z | 2021-01-21T13:08:28.000Z | setup.py | cimnine/pyhakuna | 8e74933418e371ddfd8527f0c98c645c498c3562 | [
"MIT"
] | 1 | 2021-06-26T22:02:14.000Z | 2021-06-26T22:02:14.000Z | from setuptools import setup
with open('README.md', 'r', encoding='utf-8') as fh:
long_description = fh.read()
setup(
long_description=long_description,
)
| 17.888889 | 52 | 0.726708 | 23 | 161 | 4.956522 | 0.73913 | 0.394737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007194 | 0.136646 | 161 | 8 | 53 | 20.125 | 0.81295 | 0 | 0 | 0 | 0 | 0 | 0.093168 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 1 | 0 | 0 | null | 1 | 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 | 3 |
526c79fbefbb38de49c59ce9de3502389eace85b | 2,739 | py | Python | src/crud.py | nikolai-neustroev/wsf_crud | 53c5e7e3e2a1dc686fae05f06ef3449f844dc14d | [
"MIT"
] | null | null | null | src/crud.py | nikolai-neustroev/wsf_crud | 53c5e7e3e2a1dc686fae05f06ef3449f844dc14d | [
"MIT"
] | null | null | null | src/crud.py | nikolai-neustroev/wsf_crud | 53c5e7e3e2a1dc686fae05f06ef3449f844dc14d | [
"MIT"
] | null | null | null | from sqlalchemy.orm import Session
from src import models, schemas
# Product Type
def get_product_type_by_id(db: Session, product_type_id: int):
return db.query(models.ProductType).get(product_type_id)
def get_product_type_by_name(db: Session, name: str):
return db.query(models.ProductType).filter(models.P... | 30.775281 | 109 | 0.746258 | 397 | 2,739 | 4.95466 | 0.110831 | 0.073208 | 0.079309 | 0.115913 | 0.472801 | 0.382816 | 0.330961 | 0.300458 | 0.260803 | 0.232334 | 0 | 0.006731 | 0.132165 | 2,739 | 88 | 110 | 31.125 | 0.820783 | 0.013509 | 0 | 0.078431 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.313725 | false | 0 | 0.039216 | 0.235294 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
526d19b9bfef0dea33051121f3a8c3e3fb7073ea | 953 | py | Python | backend/userservice/user/models.py | parastooAflaki/study-room | ae291af81df264f66c0106f5f2566f71954b806e | [
"MIT"
] | 7 | 2021-07-24T16:27:36.000Z | 2021-08-20T05:49:44.000Z | backend/userservice/user/models.py | parastooAflaki/study-room | ae291af81df264f66c0106f5f2566f71954b806e | [
"MIT"
] | null | null | null | backend/userservice/user/models.py | parastooAflaki/study-room | ae291af81df264f66c0106f5f2566f71954b806e | [
"MIT"
] | null | null | null | from django.db import models
from django.contrib.auth.hashers import make_password
# Create your models here.
class User(models.Model):
email = models.EmailField(unique=True)
password = models.CharField(max_length=255)
user_name = models.CharField(max_length= 255, unique=True)
first_nam... | 39.708333 | 66 | 0.69255 | 119 | 953 | 5.369748 | 0.394958 | 0.140845 | 0.169014 | 0.225352 | 0.447574 | 0.319249 | 0.215962 | 0.215962 | 0.215962 | 0.215962 | 0 | 0.02381 | 0.206716 | 953 | 23 | 67 | 41.434783 | 0.821429 | 0.025184 | 0 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0.166667 | 0.111111 | 0 | 0.888889 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
5283975be60e897d20c2bb5b6de896361f4769f3 | 313 | py | Python | neurolang/frontend/__init__.py | hndgzkn/NeuroLang | a3178d47f80bc0941440d9bb09e06c2f217b9566 | [
"BSD-3-Clause"
] | 1 | 2021-01-07T02:00:22.000Z | 2021-01-07T02:00:22.000Z | neurolang/frontend/__init__.py | hndgzkn/NeuroLang | a3178d47f80bc0941440d9bb09e06c2f217b9566 | [
"BSD-3-Clause"
] | 207 | 2020-11-04T12:51:10.000Z | 2022-03-30T13:42:26.000Z | neurolang/frontend/__init__.py | hndgzkn/NeuroLang | a3178d47f80bc0941440d9bb09e06c2f217b9566 | [
"BSD-3-Clause"
] | 6 | 2020-11-04T13:59:35.000Z | 2021-03-19T05:28:10.000Z | from ..regions import ExplicitVBR, ExplicitVBROverlay
from .deterministic_frontend import NeurolangDL
from .probabilistic_frontend import NeurolangPDL
from .query_resolution_expressions import Symbol
__all__ = [
"NeurolangDL",
"NeurolangPDL",
"ExplicitVBR",
"ExplicitVBROverlay",
"Symbol",
]
| 24.076923 | 53 | 0.773163 | 27 | 313 | 8.666667 | 0.555556 | 0.247863 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15016 | 313 | 12 | 54 | 26.083333 | 0.879699 | 0 | 0 | 0 | 0 | 0 | 0.185304 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.363636 | 0 | 0.363636 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
5289aa81e104ba138950cf5e3c25aedcc665547f | 100 | py | Python | audit_history/apps.py | suryadana/django-audit-history | f496a2f42e02f4871589ac13fa10c34894b4cf17 | [
"MIT"
] | 1 | 2019-01-24T14:58:27.000Z | 2019-01-24T14:58:27.000Z | audit_history/apps.py | suryadana/django-audit-history | f496a2f42e02f4871589ac13fa10c34894b4cf17 | [
"MIT"
] | null | null | null | audit_history/apps.py | suryadana/django-audit-history | f496a2f42e02f4871589ac13fa10c34894b4cf17 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class AuditHistoryConfig(AppConfig):
name = 'audit_history'
| 16.666667 | 36 | 0.78 | 11 | 100 | 7 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15 | 100 | 5 | 37 | 20 | 0.905882 | 0 | 0 | 0 | 0 | 0 | 0.13 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
528e765b45ccca23ffefb1d3d863d815b940fb16 | 54,109 | py | Python | desktop/libs/liboozie/src/liboozie/submission2.py | maulikjs/hue | 59ac879b55bb6fb26ecb4e85f4c70836fc21173f | [
"Apache-2.0"
] | 1 | 2019-08-28T10:11:46.000Z | 2019-08-28T10:11:46.000Z | desktop/libs/liboozie/src/liboozie/submission2.py | ihaoranmeng/hue | 14cb3e91f410e31edcd8534dee5bc87c92b1d8f0 | [
"Apache-2.0"
] | 2 | 2022-02-13T22:56:24.000Z | 2022-03-02T10:06:35.000Z | desktop/libs/liboozie/src/liboozie/submission2.py | ihaoranmeng/hue | 14cb3e91f410e31edcd8534dee5bc87c92b1d8f0 | [
"Apache-2.0"
] | 1 | 2020-07-25T07:03:40.000Z | 2020-07-25T07:03:40.000Z | #!/usr/bin/env python
# Licensed to Cloudera, Inc. under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. Cloudera, Inc. licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you ma... | 65.826034 | 11,018 | 0.718494 | 8,004 | 54,109 | 4.753123 | 0.106447 | 0.04458 | 0.013248 | 0.013879 | 0.699243 | 0.653217 | 0.635527 | 0.613053 | 0.597466 | 0.589212 | 0 | 0.134334 | 0.133545 | 54,109 | 821 | 11,019 | 65.906212 | 0.677132 | 0.033506 | 0 | 0.313821 | 0 | 0.011382 | 0.573399 | 0.444754 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.065041 | null | null | 0.014634 | 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 | 1 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8704030595fcddf063ded101a2526c4727ac5846 | 249 | py | Python | CPMel(1)/AdditionalFeatures.py | 2921251087/CPMel-1 | 09afe43052f646e9e9bbd5c876614db211b1c42b | [
"Apache-2.0"
] | 1 | 2021-08-01T12:49:50.000Z | 2021-08-01T12:49:50.000Z | CPMel(1)/AdditionalFeatures.py | 2921251087/CPMel-1 | 09afe43052f646e9e9bbd5c876614db211b1c42b | [
"Apache-2.0"
] | null | null | null | CPMel(1)/AdditionalFeatures.py | 2921251087/CPMel-1 | 09afe43052f646e9e9bbd5c876614db211b1c42b | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
#-*-coding:gbk -*-
import maya.api.OpenMaya as om
def displayError(v):
om.MGlobal.displayError(str(v))
def displayWarning(v):
om.MGlobal.displayWarning(str(v))
def displayPrint(v):
om.MGlobal.displayInfo(str(v)) | 27.666667 | 38 | 0.690763 | 35 | 249 | 4.914286 | 0.542857 | 0.052326 | 0.174419 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.140562 | 249 | 9 | 39 | 27.666667 | 0.803738 | 0.13253 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.428571 | false | 0 | 0.142857 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
8707447b06a7d240252840edb10ea2b571ef6cad | 102 | py | Python | checkio/__init__.py | KenMercusLai/checkio | c7702221e1bc0b0b30425859ffa6c09722949d65 | [
"MIT"
] | 39 | 2015-02-09T13:24:12.000Z | 2019-05-16T17:51:19.000Z | checkio/__init__.py | KenMercusLai/checkio | c7702221e1bc0b0b30425859ffa6c09722949d65 | [
"MIT"
] | 1 | 2019-10-21T16:18:14.000Z | 2019-10-21T16:18:14.000Z | checkio/__init__.py | KenMercusLai/checkio | c7702221e1bc0b0b30425859ffa6c09722949d65 | [
"MIT"
] | 22 | 2015-01-30T18:00:05.000Z | 2021-05-22T02:57:23.000Z | __project__ = 'checkio'
__version__ = '0.72.0'
VERSION = "{0} v{1}".format(__project__, __version__)
| 20.4 | 53 | 0.696078 | 13 | 102 | 4.230769 | 0.615385 | 0.290909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 0.117647 | 102 | 4 | 54 | 25.5 | 0.544444 | 0 | 0 | 0 | 0 | 0 | 0.205882 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 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 | 3 |
87301b5a182acb20e12c84cd24e9cbaa3074d4df | 657 | py | Python | simple.py | bearpaw/opendr | 06840488ad04b3283aa142be7f71d5c3e8766e49 | [
"MIT"
] | null | null | null | simple.py | bearpaw/opendr | 06840488ad04b3283aa142be7f71d5c3e8766e49 | [
"MIT"
] | null | null | null | simple.py | bearpaw/opendr | 06840488ad04b3283aa142be7f71d5c3e8766e49 | [
"MIT"
] | null | null | null | __all__ = []
from . import camera
from .camera import *
__all__ += camera.__all__
from . import renderer
from .renderer import *
__all__ += renderer.__all__
from . import lighting
from .lighting import *
__all__ += lighting.__all__
from . import topology
from .topology import *
__all__ += topology.__all__
from . i... | 17.756757 | 32 | 0.750381 | 79 | 657 | 5.329114 | 0.177215 | 0.133017 | 0.247031 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.162861 | 657 | 36 | 33 | 18.25 | 0.765455 | 0 | 0 | 0 | 0 | 0 | 0.003044 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.62963 | 0 | 0.62963 | 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 | 1 | 0 | 1 | 0 | 0 | 3 |
873b5767ab23153daefbe36aebeb0f40a2704009 | 2,000 | py | Python | tests/mocked_server.py | StenSipma/astrometry-client | 11d5b0cd0ae41a18b5bbd7f5570af60dbfbd9cc6 | [
"MIT"
] | 1 | 2020-08-06T17:55:52.000Z | 2020-08-06T17:55:52.000Z | tests/mocked_server.py | StenSipma/astrometry-client | 11d5b0cd0ae41a18b5bbd7f5570af60dbfbd9cc6 | [
"MIT"
] | 1 | 2021-12-18T17:03:21.000Z | 2021-12-19T12:33:16.000Z | tests/mocked_server.py | StenSipma/astrometry-client | 11d5b0cd0ae41a18b5bbd7f5570af60dbfbd9cc6 | [
"MIT"
] | null | null | null | from requests.exceptions import HTTPError
class ResponseObj:
_DEFAULT_HEADER = {"Content-Type": "text/plain"}
def __init__(self, content, headers=_DEFAULT_HEADER, status_code=200):
self._content = content
self.headers = headers
self.status_code = status_code
def text(self):
... | 28.985507 | 75 | 0.6205 | 256 | 2,000 | 4.695313 | 0.339844 | 0.034942 | 0.043261 | 0.02995 | 0.163062 | 0.163062 | 0.113145 | 0 | 0 | 0 | 0 | 0.004824 | 0.2745 | 2,000 | 68 | 76 | 29.411765 | 0.82357 | 0.1075 | 0 | 0.088889 | 0 | 0 | 0.053963 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.244444 | false | 0 | 0.022222 | 0.111111 | 0.577778 | 0.044444 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
876baf976c259cbb3c3bb416587962448b972cb0 | 201 | py | Python | structure/generator.py | csuriano23/pycombinator | ed10b92af82533b4ad9f4e453dd4d3080919da06 | [
"Unlicense"
] | null | null | null | structure/generator.py | csuriano23/pycombinator | ed10b92af82533b4ad9f4e453dd4d3080919da06 | [
"Unlicense"
] | null | null | null | structure/generator.py | csuriano23/pycombinator | ed10b92af82533b4ad9f4e453dd4d3080919da06 | [
"Unlicense"
] | null | null | null | from __future__ import absolute_import
import types
def trampoline(fn, *args, **kwargs):
g = fn(*args, **kwargs)
while isinstance(g, types.GeneratorType):
g = next(g)
return g
| 15.461538 | 45 | 0.651741 | 26 | 201 | 4.846154 | 0.615385 | 0.095238 | 0.190476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.233831 | 201 | 12 | 46 | 16.75 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.571429 | 0 | 1 | 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 | 1 | 0 | 0 | 3 |
8770cd107742266544f9128e0662f82451235559 | 210 | py | Python | warranty/admin.py | FelixTheC/allSales | 76d955b80bf9b5bb58bd53d8ee644249cf04e1a3 | [
"Apache-2.0"
] | null | null | null | warranty/admin.py | FelixTheC/allSales | 76d955b80bf9b5bb58bd53d8ee644249cf04e1a3 | [
"Apache-2.0"
] | null | null | null | warranty/admin.py | FelixTheC/allSales | 76d955b80bf9b5bb58bd53d8ee644249cf04e1a3 | [
"Apache-2.0"
] | null | null | null | from django.contrib import admin
from .models import Warranty
class WarrantyAdmin(admin.ModelAdmin):
list_display = ('pk', 'comment', 'description_failure')
admin.site.register(Warranty, WarrantyAdmin)
| 21 | 59 | 0.77619 | 24 | 210 | 6.708333 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119048 | 210 | 9 | 60 | 23.333333 | 0.87027 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.8 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
5e4696551c7e475ca7598f3db48f271b409d0e60 | 196 | py | Python | lfview/resources/files/__init__.py | seequent/lfview-resources-files | 7ac0d44724471646bb90cf0a030b279fbc9c5c7e | [
"MIT"
] | null | null | null | lfview/resources/files/__init__.py | seequent/lfview-resources-files | 7ac0d44724471646bb90cf0a030b279fbc9c5c7e | [
"MIT"
] | 2 | 2019-04-04T08:31:16.000Z | 2019-04-11T19:42:50.000Z | lfview/resources/files/__init__.py | seequent/lfview-resources-files | 7ac0d44724471646bb90cf0a030b279fbc9c5c7e | [
"MIT"
] | null | null | null | """File and Array resources for LF View API Python client"""
from . import base, files
from .files import Array, Image, Thumbnail
FILES_REGISTRY = base._BaseFile._REGISTRY
__version__ = '0.0.2'
| 24.5 | 60 | 0.755102 | 29 | 196 | 4.862069 | 0.724138 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017964 | 0.147959 | 196 | 7 | 61 | 28 | 0.826347 | 0.27551 | 0 | 0 | 0 | 0 | 0.036765 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
5e5bddd25a978cf33160e8dad01fc149571a7c40 | 615 | py | Python | app/api_v1/__init__.py | dmazzer/nors_server | b54c89320e0ebc37ed398238200fc40f89919556 | [
"MIT"
] | null | null | null | app/api_v1/__init__.py | dmazzer/nors_server | b54c89320e0ebc37ed398238200fc40f89919556 | [
"MIT"
] | 5 | 2016-09-10T11:31:57.000Z | 2017-10-09T10:44:31.000Z | app/api_v1/__init__.py | dmazzer/nors_server | b54c89320e0ebc37ed398238200fc40f89919556 | [
"MIT"
] | null | null | null | from flask import Blueprint
from ..auth import auth_token
from ..decorators import etag, rate_limit
from flask_jwt import JWT, jwt_required, current_identity
api = Blueprint('api', __name__)
@api.before_request
#@rate_limit(limit=5, period=15)
#@auth_token.login_required
@jwt_required()
def before_request():
"""... | 23.653846 | 85 | 0.741463 | 84 | 615 | 5.22619 | 0.535714 | 0.041002 | 0.050114 | 0.068337 | 0.109339 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005758 | 0.152846 | 615 | 25 | 86 | 24.6 | 0.836852 | 0.447154 | 0 | 0 | 0 | 0 | 0.009202 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.1 | 0.5 | 0 | 0.6 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
5e6639e8860823ff88a51cf2ff294342cd6f872c | 9,990 | py | Python | event_log.py | LairdCP/BT510-Python | a7c5b2825a3919b3b261524763ec0a5ed76d54da | [
"Apache-2.0"
] | 1 | 2021-05-16T17:53:33.000Z | 2021-05-16T17:53:33.000Z | event_log.py | LairdCP/BT510-Python | a7c5b2825a3919b3b261524763ec0a5ed76d54da | [
"Apache-2.0"
] | null | null | null | event_log.py | LairdCP/BT510-Python | a7c5b2825a3919b3b261524763ec0a5ed76d54da | [
"Apache-2.0"
] | 1 | 2021-04-23T22:33:21.000Z | 2021-04-23T22:33:21.000Z |
"""
Reads base64 encoded BT510 logs, decode them, and write them to a file.
"""
import time
import logging
import struct
from collections import namedtuple
import base64
from ctypes import c_int16
from sensor_event import SensorEventType
from sensor_event import MagnetState
from sensor_event import ResetReason
# Sal... | 62.049689 | 1,394 | 0.735135 | 763 | 9,990 | 9.411533 | 0.323722 | 0.030079 | 0.066843 | 0.047069 | 0.088428 | 0.052082 | 0.047069 | 0.008634 | 0.008634 | 0.008634 | 0 | 0.061293 | 0.191592 | 9,990 | 160 | 1,395 | 62.4375 | 0.827885 | 0.048448 | 0 | 0.148438 | 0 | 0.023438 | 0.458783 | 0.406679 | 0 | 1 | 0.000317 | 0 | 0 | 1 | 0.054688 | false | 0.007813 | 0.078125 | 0.007813 | 0.234375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5e7ccd7c3215129fdd22ed7b17b149062011af79 | 4,219 | py | Python | tests/test_grid_distortion.py | function2-llx/MONAI | 4cddaa830b61b88ec78e089bb5f21e05bb1a78f4 | [
"Apache-2.0"
] | 3 | 2020-06-22T20:59:14.000Z | 2021-04-09T21:24:45.000Z | tests/test_grid_distortion.py | Borda/MONAI | e0db5a564225a7cb62e7a23df97267019006302f | [
"Apache-2.0"
] | null | null | null | tests/test_grid_distortion.py | Borda/MONAI | e0db5a564225a7cb62e7a23df97267019006302f | [
"Apache-2.0"
] | 1 | 2020-05-27T12:53:58.000Z | 2020-05-27T12:53:58.000Z | # Copyright (c) MONAI Consortium
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, so... | 38.706422 | 111 | 0.391088 | 615 | 4,219 | 2.626016 | 0.196748 | 0.231579 | 0.317647 | 0.383901 | 0.377709 | 0.334985 | 0.334985 | 0.334985 | 0.295356 | 0.289783 | 0 | 0.172222 | 0.445366 | 4,219 | 108 | 112 | 39.064815 | 0.517949 | 0.130837 | 0 | 0.488889 | 0 | 0 | 0.013676 | 0 | 0 | 0 | 0 | 0 | 0.022222 | 1 | 0.011111 | false | 0 | 0.055556 | 0 | 0.077778 | 0 | 0 | 0 | 0 | null | 1 | 1 | 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 | 3 |
5e8787d74d20bb82b479d4d223a31ce038f496cd | 4,696 | py | Python | resources/mgltools_x86_64Linux2_1.5.6/MGLToolsPckgs/UTpackages/UTmesh/lbiemesher.py | J-E-J-S/aaRS-Pipeline | 43f59f28ab06e4b16328c3bc405cdddc6e69ac44 | [
"MIT"
] | 8 | 2021-12-14T21:30:01.000Z | 2022-02-14T11:30:03.000Z | resources/mgltools_x86_64Linux2_1.5.6/MGLToolsPckgs/UTpackages/UTmesh/lbiemesher.py | J-E-J-S/aaRS-Pipeline | 43f59f28ab06e4b16328c3bc405cdddc6e69ac44 | [
"MIT"
] | null | null | null | resources/mgltools_x86_64Linux2_1.5.6/MGLToolsPckgs/UTpackages/UTmesh/lbiemesher.py | J-E-J-S/aaRS-Pipeline | 43f59f28ab06e4b16328c3bc405cdddc6e69ac44 | [
"MIT"
] | null | null | null | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 1.3.31
#
# Don't modify this file, modify the SWIG interface instead.
# This file is compatible with both classic and new-style classes.
import _lbiemesher
import new
new_instancemethod = new.instancemethod
try:
_swig_property = prope... | 46.49505 | 109 | 0.741482 | 589 | 4,696 | 5.494058 | 0.213922 | 0.123609 | 0.154512 | 0.160692 | 0.361557 | 0.305933 | 0.127936 | 0.048208 | 0 | 0 | 0 | 0.003473 | 0.14161 | 4,696 | 100 | 110 | 46.96 | 0.799305 | 0.052172 | 0 | 0.047059 | 1 | 0 | 0.019365 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.023529 | 0.035294 | null | null | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5ea89023e671e39f53802bcf2c41cd71ec38ab9d | 126 | py | Python | mimic/plugins/nova_plugin.py | maxlinc/mimic | 4539be8aac5512de721e01ead3bab6434e1de664 | [
"Apache-2.0"
] | null | null | null | mimic/plugins/nova_plugin.py | maxlinc/mimic | 4539be8aac5512de721e01ead3bab6434e1de664 | [
"Apache-2.0"
] | null | null | null | mimic/plugins/nova_plugin.py | maxlinc/mimic | 4539be8aac5512de721e01ead3bab6434e1de664 | [
"Apache-2.0"
] | null | null | null | """
Plugin for OpenStack compute / Rackspace cloud server mock.
"""
from mimic.rest.nova_api import NovaApi
nova = NovaApi()
| 18 | 59 | 0.746032 | 17 | 126 | 5.470588 | 0.882353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.150794 | 126 | 6 | 60 | 21 | 0.869159 | 0.468254 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
5ec95abcf0f701e1ef9c83086d440b4997ddfdf3 | 2,123 | py | Python | playground/webcam/processors/cv2_frame_processor.py | dnbaumann/acoustic-sight | 5380fa61eba1f763b017ead7a65ccacdae45c821 | [
"MIT"
] | null | null | null | playground/webcam/processors/cv2_frame_processor.py | dnbaumann/acoustic-sight | 5380fa61eba1f763b017ead7a65ccacdae45c821 | [
"MIT"
] | null | null | null | playground/webcam/processors/cv2_frame_processor.py | dnbaumann/acoustic-sight | 5380fa61eba1f763b017ead7a65ccacdae45c821 | [
"MIT"
] | 1 | 2020-11-15T12:15:54.000Z | 2020-11-15T12:15:54.000Z | import cv2
import numpy as np
from typing import Tuple
from acoustic_sight_server.tools import square_crop
from playground.webcam.processors.frame_processor import FrameProcessor
class CV2FrameProcessor(FrameProcessor):
def __init__(self, side_in: int, side_out: int, buffer_size: int=2):
super().__init__... | 27.934211 | 92 | 0.626943 | 259 | 2,123 | 4.976834 | 0.34749 | 0.069822 | 0.093095 | 0.006206 | 0.051202 | 0.051202 | 0.051202 | 0.051202 | 0 | 0 | 0 | 0.028223 | 0.265662 | 2,123 | 76 | 93 | 27.934211 | 0.798589 | 0.075365 | 0 | 0.156863 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.098039 | 0.196078 | 0.568627 | 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 | 1 | 1 | 0 | 0 | 3 |
5ed22e80f86d60bac62c528220c0f82c47cc7d51 | 227 | py | Python | base/decisoes.py | asalesg/python | 885ff5fae1e685424863286082fbe49ca5f4efe7 | [
"MIT"
] | null | null | null | base/decisoes.py | asalesg/python | 885ff5fae1e685424863286082fbe49ca5f4efe7 | [
"MIT"
] | null | null | null | base/decisoes.py | asalesg/python | 885ff5fae1e685424863286082fbe49ca5f4efe7 | [
"MIT"
] | null | null | null | nome=input("digite seu nome: ")
idade=int(input("digite a idade "))
if idade>=65:
print("o paciente " + nome + " POSSUI atendimento prioritario")
else:
print("O paciente " + nome + " NÃO possui atendimento prioritário") | 37.833333 | 71 | 0.682819 | 30 | 227 | 5.166667 | 0.6 | 0.141935 | 0.180645 | 0.232258 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010638 | 0.171806 | 227 | 6 | 71 | 37.833333 | 0.81383 | 0 | 0 | 0 | 0 | 0 | 0.526316 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | null | 0 | 1 | 1 | 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 | 3 |
0d635ddad4d607f56bdaee55ff13fa53f3f97b58 | 216 | py | Python | roast/machines/kc705.py | Xilinx/roast-xilinx | ce24becf31c90fb3c4562f4347bf0859af845c05 | [
"MIT"
] | 1 | 2021-09-01T15:29:08.000Z | 2021-09-01T15:29:08.000Z | roast/machines/kc705.py | Xilinx/roast-xilinx | ce24becf31c90fb3c4562f4347bf0859af845c05 | [
"MIT"
] | null | null | null | roast/machines/kc705.py | Xilinx/roast-xilinx | ce24becf31c90fb3c4562f4347bf0859af845c05 | [
"MIT"
] | 1 | 2021-11-18T13:11:21.000Z | 2021-11-18T13:11:21.000Z | #
# Copyright (c) 2020 Xilinx, Inc. All rights reserved.
# SPDX-License-Identifier: MIT
#
from roast.machines.microblaze import *
PLNX_BSP = "xilinx-kc705-v{version}-final.bsp"
plnx_proj = "xilinx-kc705-{version}"
| 21.6 | 54 | 0.736111 | 30 | 216 | 5.233333 | 0.8 | 0.140127 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 0.12037 | 216 | 9 | 55 | 24 | 0.773684 | 0.375 | 0 | 0 | 0 | 0 | 0.423077 | 0.423077 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
0d6707d42b3cf5e955a7a7bcd1a4a94f68e73600 | 177 | py | Python | python_modules/dagster/dagster_tests/utils_tests/test_frozendict.py | shahvineet98/dagster | 2471d39c52f660e23e8c0d8e8ded873ddc3df036 | [
"Apache-2.0"
] | 3 | 2020-04-28T16:27:33.000Z | 2020-07-22T07:43:30.000Z | python_modules/dagster/dagster_tests/utils_tests/test_frozendict.py | shahvineet98/dagster | 2471d39c52f660e23e8c0d8e8ded873ddc3df036 | [
"Apache-2.0"
] | 2 | 2021-05-11T13:36:27.000Z | 2021-09-03T01:53:11.000Z | python_modules/dagster/dagster_tests/utils_tests/test_frozendict.py | shahvineet98/dagster | 2471d39c52f660e23e8c0d8e8ded873ddc3df036 | [
"Apache-2.0"
] | 1 | 2021-02-21T12:16:47.000Z | 2021-02-21T12:16:47.000Z | import pytest
from dagster.utils import frozendict
def test_frozendict():
d = frozendict({'foo': 'bar'})
with pytest.raises(RuntimeError):
d['zip'] = 'zowie'
| 17.7 | 37 | 0.655367 | 21 | 177 | 5.47619 | 0.761905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.20339 | 177 | 9 | 38 | 19.666667 | 0.815603 | 0 | 0 | 0 | 0 | 0 | 0.079096 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.5 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
0d6b6a465aad76978c358a4eeac0735b95a86a5a | 3,656 | py | Python | myblog/config/settings/base.py | dbutlerdb/blog | 2dd2c462b231ca4cd2ade6999e543ddd64ecdad6 | [
"MIT"
] | null | null | null | myblog/config/settings/base.py | dbutlerdb/blog | 2dd2c462b231ca4cd2ade6999e543ddd64ecdad6 | [
"MIT"
] | null | null | null | myblog/config/settings/base.py | dbutlerdb/blog | 2dd2c462b231ca4cd2ade6999e543ddd64ecdad6 | [
"MIT"
] | null | null | null | """
Django settings for myblog project.
Generated by 'django-admin startproject' using Django 2.2.1.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import environ... | 24.052632 | 91 | 0.704595 | 409 | 3,656 | 6.139364 | 0.396088 | 0.088013 | 0.054162 | 0.069693 | 0.168459 | 0.168459 | 0.106332 | 0.106332 | 0.04779 | 0 | 0 | 0.008516 | 0.164934 | 3,656 | 151 | 92 | 24.211921 | 0.813953 | 0.245897 | 0 | 0 | 1 | 0 | 0.517014 | 0.420051 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.05618 | 0.011236 | 0 | 0.011236 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
0d759c455f82879247cd7a8d2b00658183663438 | 21 | py | Python | tests/__init__.py | jefdaj/treecl-nix | 54d892505488d9da68b66f28ce22aaf791943808 | [
"MIT"
] | 22 | 2015-05-13T12:40:28.000Z | 2022-03-25T09:56:14.000Z | tests/__init__.py | DessimozLab/treeCl | fed624b3db1c19cc07175ca04e3eda6905a8d305 | [
"MIT"
] | 26 | 2015-11-13T09:04:42.000Z | 2021-06-03T18:24:27.000Z | tests/__init__.py | DessimozLab/treeCl | fed624b3db1c19cc07175ca04e3eda6905a8d305 | [
"MIT"
] | 8 | 2015-10-10T19:09:19.000Z | 2020-10-20T20:59:29.000Z | __author__ = 'kgori'
| 10.5 | 20 | 0.714286 | 2 | 21 | 5.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 21 | 1 | 21 | 21 | 0.611111 | 0 | 0 | 0 | 0 | 0 | 0.238095 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 3 |
0d8de90e898cf5aad5615908a40b55fcd04ed3ab | 207 | py | Python | Python diye Programming sekha 2nd/Finding dates from a text.py | mitul3737/My-Python-Programming-journey-from-Beginning-to-Data-Sciene-Machine-Learning-AI-Deep-Learning | ca2c15c597a64e5a7689ba3a44ce36a1c0828194 | [
"MIT"
] | 1 | 2021-05-02T20:30:33.000Z | 2021-05-02T20:30:33.000Z | Python diye Programming sekha 2nd/Finding dates from a text.py | Mit382/My-Python-Programming-Journey-from-Beginning-to-Data-Sciene-Machine-Learning-AI-Deep-Learning | c19d84dfe6dcf496ff4527724f92e228579b6456 | [
"MIT"
] | null | null | null | Python diye Programming sekha 2nd/Finding dates from a text.py | Mit382/My-Python-Programming-Journey-from-Beginning-to-Data-Sciene-Machine-Learning-AI-Deep-Learning | c19d84dfe6dcf496ff4527724f92e228579b6456 | [
"MIT"
] | 1 | 2021-05-02T20:30:29.000Z | 2021-05-02T20:30:29.000Z | text="This is line 1. Date is 2017/06/01. And there is another date: 2017-07-01. The third and final date is 2017/08/30."
import re
pat=re.compile(r'(\d{4})[-/](\d{2})[-/](\d{2})')
print(pat.findall(text)) | 41.4 | 122 | 0.647343 | 43 | 207 | 3.116279 | 0.651163 | 0.089552 | 0.149254 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 0.120773 | 207 | 5 | 123 | 41.4 | 0.582418 | 0 | 0 | 0 | 0 | 0.25 | 0.692308 | 0.139423 | 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 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0ddc5b3a1b9d67bc73f0c550b50ac13f1bb087a3 | 96 | py | Python | data.py | aymericvie/networked-genetic-algorithms | fa7ef58ad3f37dc430ed9a9823e87d5b221c26e5 | [
"MIT"
] | 3 | 2021-04-06T16:16:06.000Z | 2022-02-28T14:27:37.000Z | data.py | aymericvie/networked-genetic-algorithms | fa7ef58ad3f37dc430ed9a9823e87d5b221c26e5 | [
"MIT"
] | null | null | null | data.py | aymericvie/networked-genetic-algorithms | fa7ef58ad3f37dc430ed9a9823e87d5b221c26e5 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Wed Jul 7 12:26:07 2021
@author: aymer
"""
data | 12 | 36 | 0.53125 | 15 | 96 | 3.4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.171429 | 0.270833 | 96 | 8 | 37 | 12 | 0.557143 | 0.770833 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0ddd1bb0b96dc9e45332c697c41c727c168eaef4 | 1,417 | py | Python | frontend/widgets/basewidget.py | ludica-squamata/BehaviourTreeEditor_v2 | 65ca608f7086cd2b4f0cc1eab7b714959b312b94 | [
"MIT"
] | null | null | null | frontend/widgets/basewidget.py | ludica-squamata/BehaviourTreeEditor_v2 | 65ca608f7086cd2b4f0cc1eab7b714959b312b94 | [
"MIT"
] | null | null | null | frontend/widgets/basewidget.py | ludica-squamata/BehaviourTreeEditor_v2 | 65ca608f7086cd2b4f0cc1eab7b714959b312b94 | [
"MIT"
] | null | null | null | from pygame.sprite import Sprite
from pygame import K_DELETE
class BaseWidget(Sprite):
rect = None
is_selected = False
on_focus = False
selectable = False
numerable = False
editable = False
draggable = True
order = None
def __init__(self, parent=None):
self.... | 22.854839 | 47 | 0.553282 | 161 | 1,417 | 4.714286 | 0.36646 | 0.071146 | 0.051383 | 0.063241 | 0.071146 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002212 | 0.362032 | 1,417 | 61 | 48 | 23.229508 | 0.837389 | 0.027523 | 0 | 0.065217 | 0 | 0 | 0.015221 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.23913 | false | 0.065217 | 0.043478 | 0.043478 | 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 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
0df3ccea22812043247578be31897f98f1b0e9a5 | 53 | py | Python | fc_passion/tempCodeRunnerFile.py | jinShine/fc-passion-page | 1e3af3595318a9ebf325e80869ac4d6c7194d0ff | [
"MIT"
] | 1 | 2020-04-19T02:12:28.000Z | 2020-04-19T02:12:28.000Z | fc_passion/tempCodeRunnerFile.py | jinShine/fc-passion-page | 1e3af3595318a9ebf325e80869ac4d6c7194d0ff | [
"MIT"
] | null | null | null | fc_passion/tempCodeRunnerFile.py | jinShine/fc-passion-page | 1e3af3595318a9ebf325e80869ac4d6c7194d0ff | [
"MIT"
] | null | null | null |
# '/notice/header-basic-signup.html'
# ) | 17.666667 | 44 | 0.509434 | 5 | 53 | 5.4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.301887 | 53 | 3 | 45 | 17.666667 | 0.72973 | 0.679245 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
21797d7d1bd29ef28c70f668209704cdfc2ac120 | 727 | py | Python | Unit 7 Objects/Circle.py | ItsMrTurtle/PythonChris | 4513dea336e68f48fabf480ad87bc538a323c2cd | [
"MIT"
] | null | null | null | Unit 7 Objects/Circle.py | ItsMrTurtle/PythonChris | 4513dea336e68f48fabf480ad87bc538a323c2cd | [
"MIT"
] | null | null | null | Unit 7 Objects/Circle.py | ItsMrTurtle/PythonChris | 4513dea336e68f48fabf480ad87bc538a323c2cd | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Sat May 23 15:47:06 2020
@author: Christopher Cheng
"""
# Define an object type via class
# parenthesis of object means your class is going to be a python object
class Circle (object):
# Must initialize parameters of a class afterwards
# this is aka method
# self i... | 34.619048 | 81 | 0.674003 | 113 | 727 | 4.283186 | 0.60177 | 0.082645 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025878 | 0.255846 | 727 | 21 | 82 | 34.619048 | 0.868762 | 0.657497 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.428571 | false | 0 | 0 | 0.142857 | 0.714286 | 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 | 1 | 1 | 0 | 0 | 3 |
217fc3ea1e388ee5be44186391e6fb79aea0dc62 | 120 | py | Python | app.py | Rayraegah/python3 | fa955f6e4f93903c13e7477b0eaabafd520aefc4 | [
"MIT"
] | null | null | null | app.py | Rayraegah/python3 | fa955f6e4f93903c13e7477b0eaabafd520aefc4 | [
"MIT"
] | null | null | null | app.py | Rayraegah/python3 | fa955f6e4f93903c13e7477b0eaabafd520aefc4 | [
"MIT"
] | null | null | null | import responder
app = responder.API()
@app.route("/")
def hello_world(req, resp):
resp.text = "hello, world!!"
| 12 | 32 | 0.641667 | 16 | 120 | 4.75 | 0.6875 | 0.263158 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.175 | 120 | 9 | 33 | 13.333333 | 0.767677 | 0 | 0 | 0 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 1 | 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 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.