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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5ced01ac9ef8ae3d7716b3b971d1835e202f6024 | 385 | py | Python | notebooks/solutions/01-ex04-solutions.py | tramposh-olo/ml-workshop-intermediate-2-of-2 | a9d81d760f875ff67796190f95818a0f4f0f5d6b | [
"MIT"
] | null | null | null | notebooks/solutions/01-ex04-solutions.py | tramposh-olo/ml-workshop-intermediate-2-of-2 | a9d81d760f875ff67796190f95818a0f4f0f5d6b | [
"MIT"
] | null | null | null | notebooks/solutions/01-ex04-solutions.py | tramposh-olo/ml-workshop-intermediate-2-of-2 | a9d81d760f875ff67796190f95818a0f4f0f5d6b | [
"MIT"
] | null | null | null | from sklearn.ensemble import RandomForestRegressor
from sklearn.metrics import r2_score
from sklearn.metrics import mean_squared_error
from sklearn.metrics import mean_absolute_error
rf = RandomForestRegressor(random_state=42)
rf.fit(X_train, y_train)
rf_pred = rf.predict(X_test)
r2_score(y_test, rf_pred)
mean_squa... | 24.0625 | 50 | 0.844156 | 62 | 385 | 4.903226 | 0.370968 | 0.144737 | 0.177632 | 0.236842 | 0.351974 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011429 | 0.090909 | 385 | 15 | 51 | 25.666667 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
5cf19f197631f63c8d9513d8b9abb97666915389 | 1,230 | py | Python | authkit/authenticate/sso/__init__.py | bobrock/AuthKit | ba82501d9dff699be9eef33266aecd03d016cec2 | [
"MIT"
] | null | null | null | authkit/authenticate/sso/__init__.py | bobrock/AuthKit | ba82501d9dff699be9eef33266aecd03d016cec2 | [
"MIT"
] | null | null | null | authkit/authenticate/sso/__init__.py | bobrock/AuthKit | ba82501d9dff699be9eef33266aecd03d016cec2 | [
"MIT"
] | 1 | 2020-06-24T19:20:13.000Z | 2020-06-24T19:20:13.000Z | """Authenticate Single Sign-On Middleware
==============
Single-Sign On
==============
About SSO
---------
Single sign on is a session/user authentication process that allows a user to
provide his or her credentials once in order to access multiple applications.
The single sign on authenticates the user to access a... | 34.166667 | 81 | 0.756911 | 170 | 1,230 | 5.464706 | 0.664706 | 0.053821 | 0.064586 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010526 | 0.150407 | 1,230 | 35 | 82 | 35.142857 | 0.878469 | 0.993496 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
cf0d1e9a030a45715261e6af31490bcb4b8a55b2 | 3,361 | py | Python | tapioca_disqus/resource_mapping/forums.py | marctc/tapioca-disqus | a397d21ad1b6c69f7691015338e491d106e58da4 | [
"MIT"
] | 5 | 2015-08-13T10:21:13.000Z | 2019-01-05T21:12:24.000Z | tapioca_disqus/resource_mapping/forums.py | marctc/tapioca-disqus | a397d21ad1b6c69f7691015338e491d106e58da4 | [
"MIT"
] | 3 | 2015-12-09T05:41:13.000Z | 2016-03-25T17:34:45.000Z | tapioca_disqus/resource_mapping/forums.py | marctc/tapioca-disqus | a397d21ad1b6c69f7691015338e491d106e58da4 | [
"MIT"
] | 4 | 2015-12-09T05:41:18.000Z | 2019-01-05T21:12:27.000Z | FORUMS_MAPPING = {
'forums_add_moderator': {
'resource': 'forums/addModerator.json',
'docs': 'https://disqus.com/api/docs/forums/addModerator/',
'methods': ['POST'],
},
'forums_create': {
'resource': 'forums/create.json',
'docs': 'https://disqus.com/api/docs/forums/cr... | 36.139785 | 85 | 0.580184 | 312 | 3,361 | 6.11859 | 0.163462 | 0.132006 | 0.122577 | 0.179151 | 0.35516 | 0.330016 | 0.330016 | 0.330016 | 0 | 0 | 0 | 0 | 0.220768 | 3,361 | 92 | 86 | 36.532609 | 0.728904 | 0 | 0 | 0.195652 | 0 | 0 | 0.63493 | 0.181494 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
cf1379541ce40bdf7c286012870b15d463d7defa | 58 | py | Python | gfxlcd/driver/ad7843/__init__.py | bkosciow/gfxlcd | 953d013abb9b695c2226b348093cc64391a01f6c | [
"MIT"
] | 12 | 2018-01-31T18:43:23.000Z | 2021-10-06T10:23:05.000Z | gfxlcd/driver/ad7843/__init__.py | bkosciow/gfxlcd | 953d013abb9b695c2226b348093cc64391a01f6c | [
"MIT"
] | 4 | 2018-04-25T15:15:16.000Z | 2021-03-21T09:21:50.000Z | gfxlcd/driver/ad7843/__init__.py | bkosciow/gfxlcd | 953d013abb9b695c2226b348093cc64391a01f6c | [
"MIT"
] | 4 | 2018-03-15T09:12:09.000Z | 2021-03-19T20:07:33.000Z | """driver/ad7843 module"""
__author__ = 'Bartosz Kosciow'
| 19.333333 | 30 | 0.724138 | 6 | 58 | 6.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 0.103448 | 58 | 2 | 31 | 29 | 0.653846 | 0.344828 | 0 | 0 | 0 | 0 | 0.46875 | 0 | 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 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
cf2003bb501336b11e7299124a046e9392cff5a7 | 799 | py | Python | trader/lib/definitions.py | ajhenri/trading-simulator | 90738710d50a89be553910bc5d1e0fff80e3c6a1 | [
"MIT"
] | null | null | null | trader/lib/definitions.py | ajhenri/trading-simulator | 90738710d50a89be553910bc5d1e0fff80e3c6a1 | [
"MIT"
] | 4 | 2020-10-12T22:49:02.000Z | 2022-02-27T10:23:56.000Z | trader/lib/definitions.py | ajhenri/trading-simulator | 90738710d50a89be553910bc5d1e0fff80e3c6a1 | [
"MIT"
] | null | null | null | class ResponseErrors:
DEFAULT = 'An unexpected error occurred while processing this request'
INVALID_JSON = 'Unable to parse JSON from the request body'
INVALID_LOGIN = 'The username/password you specified is invalid'
USER_DNE = 'User does not exist'
ACCOUNT_DNE = 'Account does not exist'
ACCOUN... | 53.266667 | 74 | 0.749687 | 106 | 799 | 5.481132 | 0.518868 | 0.036145 | 0.061962 | 0.065404 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.195244 | 799 | 15 | 75 | 53.266667 | 0.903577 | 0 | 0 | 0 | 0 | 0 | 0.54375 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.133333 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
cf248937a1f0ddbbed80fc10763c1ab5067ed373 | 380 | py | Python | tests/test_ffwd_send.py | smstone/ffwd-client-python | 9a904ea9eecea3ab0a9c90160910bba2600d48f0 | [
"Apache-2.0"
] | null | null | null | tests/test_ffwd_send.py | smstone/ffwd-client-python | 9a904ea9eecea3ab0a9c90160910bba2600d48f0 | [
"Apache-2.0"
] | null | null | null | tests/test_ffwd_send.py | smstone/ffwd-client-python | 9a904ea9eecea3ab0a9c90160910bba2600d48f0 | [
"Apache-2.0"
] | null | null | null | import argparse
import unittest
from ffwd.ffwd_send import tag_type
class TestFFWDSend(unittest.TestCase):
def test_tag_type(self):
self.assertEquals(('hello', 'world'), tag_type("hello:world"))
self.assertEquals(('hello', 'world:two'), tag_type("hello:world:two"))
with self.assertRaises... | 27.142857 | 78 | 0.694737 | 46 | 380 | 5.586957 | 0.456522 | 0.136187 | 0.140078 | 0.202335 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.171053 | 380 | 13 | 79 | 29.230769 | 0.815873 | 0 | 0 | 0 | 0 | 0 | 0.144737 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
cf259671523b5fd8d5e44da5a9826f127e7fbc84 | 162 | py | Python | big-meme/src/model/meme.py | neovasili/101_serverless_workshop | a005ab4af620c3c1a522aab8d201378ea7840ab5 | [
"MIT"
] | 4 | 2019-11-13T17:58:15.000Z | 2020-03-12T12:24:10.000Z | big-meme/src/model/meme.py | neovasili/101_serverless_workshop | a005ab4af620c3c1a522aab8d201378ea7840ab5 | [
"MIT"
] | null | null | null | big-meme/src/model/meme.py | neovasili/101_serverless_workshop | a005ab4af620c3c1a522aab8d201378ea7840ab5 | [
"MIT"
] | null | null | null |
class Meme( object ):
def __init__( self, name, image, themes ):
self.__name = name
self.__image = image
self.__themes = themes | 20.25 | 46 | 0.574074 | 18 | 162 | 4.611111 | 0.5 | 0.192771 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 162 | 8 | 47 | 20.25 | 0.768519 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.4 | 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 | 0 | 0 | 0 | 2 |
cf3478f4de02de9ef45febd053640f7c5386da10 | 778 | py | Python | game_shop/forms.py | ziyic/UoA_PGT_CS551Q_shopping | e0ccf867871f2ecc014a5e6fff95cba4b8342393 | [
"BSD-3-Clause"
] | null | null | null | game_shop/forms.py | ziyic/UoA_PGT_CS551Q_shopping | e0ccf867871f2ecc014a5e6fff95cba4b8342393 | [
"BSD-3-Clause"
] | null | null | null | game_shop/forms.py | ziyic/UoA_PGT_CS551Q_shopping | e0ccf867871f2ecc014a5e6fff95cba4b8342393 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# @Author : Ziyi Cao
# @Time : 2021/4/26
# @Function:
from django import forms
from django.contrib.auth.models import User
from django.contrib.auth.forms import UserCreationForm
from .models import Game
class SignUpForm(UserCreationForm):
username = forms.CharFi... | 25.933333 | 64 | 0.660668 | 94 | 778 | 5.382979 | 0.5 | 0.110672 | 0.100791 | 0.136364 | 0.164032 | 0.114625 | 0 | 0 | 0 | 0 | 0 | 0.030945 | 0.210797 | 778 | 29 | 65 | 26.827586 | 0.79316 | 0.122108 | 0 | 0.111111 | 0 | 0 | 0.097345 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.055556 | 0.222222 | 0 | 0.722222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
cf38a491c875d1bd0ae06532a675a01ccb64787d | 426 | py | Python | tests/integration/test_status.py | pnw/env-tracker | ab7a539afa329b529b6e10e55ca23cc214e0fd49 | [
"MIT"
] | null | null | null | tests/integration/test_status.py | pnw/env-tracker | ab7a539afa329b529b6e10e55ca23cc214e0fd49 | [
"MIT"
] | null | null | null | tests/integration/test_status.py | pnw/env-tracker | ab7a539afa329b529b6e10e55ca23cc214e0fd49 | [
"MIT"
] | null | null | null | from tests.helpers import BaseTestCase
class TestStatusCommand(BaseTestCase):
def test_can_status(self):
"""
Default use case where user invokes `et status` with minimal parameters
"""
self.fail('Not Implemented')
def test_does_not_work_outside_of_a_linked_project(self):
... | 26.625 | 79 | 0.65493 | 52 | 426 | 5.173077 | 0.730769 | 0.052045 | 0.081784 | 0.163569 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.265258 | 426 | 15 | 80 | 28.4 | 0.859425 | 0.265258 | 0 | 0.333333 | 0 | 0 | 0.112782 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.166667 | 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 | 0 | 0 | 0 | 2 |
cf3bfcccde630a28147bd6f4bf35f454312666f8 | 179 | py | Python | tests/model.py | gunyarakun/cached-image-optimizer | 80e4c9501bcde1a82e8aeb24c32563d97841dafa | [
"MIT"
] | 2 | 2021-04-06T06:07:35.000Z | 2021-04-16T08:42:13.000Z | tests/model.py | gunyarakun/cached-image-optimizer | 80e4c9501bcde1a82e8aeb24c32563d97841dafa | [
"MIT"
] | null | null | null | tests/model.py | gunyarakun/cached-image-optimizer | 80e4c9501bcde1a82e8aeb24c32563d97841dafa | [
"MIT"
] | null | null | null | from dataclasses import dataclass
from typing import Dict
@dataclass(frozen=True)
class FixtureURLContent:
content: bytes = b""
FixtureURLS = Dict[str, FixtureURLContent]
| 16.272727 | 42 | 0.776536 | 20 | 179 | 6.95 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.150838 | 179 | 10 | 43 | 17.9 | 0.914474 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 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 | 2 |
cf4c769e8b0574ab598dafe57a75ab7656e052d7 | 2,090 | py | Python | src/sympais/infer/utils.py | ethanluoyc/sympais | 68bc696434c86edb8457a3c74473c810b2c5c8f2 | [
"MIT"
] | 5 | 2021-06-04T23:24:41.000Z | 2021-12-13T21:39:57.000Z | src/sympais/infer/utils.py | ethanluoyc/sympais | 68bc696434c86edb8457a3c74473c810b2c5c8f2 | [
"MIT"
] | 24 | 2021-07-12T02:08:34.000Z | 2021-12-20T02:14:54.000Z | src/sympais/infer/utils.py | ethanluoyc/sympais | 68bc696434c86edb8457a3c74473c810b2c5c8f2 | [
"MIT"
] | 1 | 2021-07-31T10:34:19.000Z | 2021-07-31T10:34:19.000Z | import jax
from jax import lax
from jax import tree_util
import jax.numpy as np
def is_list_like(x):
return isinstance(x, (list, tuple))
def call_fn(fn, args):
if is_list_like(args):
return fn(*args)
return fn(args)
def call_fn_value_and_grad(fn, args):
def _fn(args):
if is_list_like(args):
... | 24.880952 | 86 | 0.679904 | 324 | 2,090 | 4.117284 | 0.243827 | 0.089955 | 0.037481 | 0.047976 | 0.167166 | 0.167166 | 0.126687 | 0.126687 | 0.068966 | 0.068966 | 0 | 0.002424 | 0.210526 | 2,090 | 83 | 87 | 25.180723 | 0.806061 | 0 | 0 | 0.157895 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017544 | 1 | 0.210526 | false | 0 | 0.070175 | 0.017544 | 0.526316 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
cf56be3b91ad405a29cca6a62ba0311c0c51443c | 1,424 | py | Python | archieves/checkdata.py | Donsuno/conda | d5c8fb2cc3f724c109b7343cc0bdb93a5afa12ba | [
"BSD-3-Clause"
] | null | null | null | archieves/checkdata.py | Donsuno/conda | d5c8fb2cc3f724c109b7343cc0bdb93a5afa12ba | [
"BSD-3-Clause"
] | null | null | null | archieves/checkdata.py | Donsuno/conda | d5c8fb2cc3f724c109b7343cc0bdb93a5afa12ba | [
"BSD-3-Clause"
] | null | null | null | from ipywidgets import widgets,interact, interact_manual
import numpy as np
import pandas as pd
from IPython.display import display,clear_output
from numpy import arange, sin, pi
import plotly.figure_factory as ff
import re
import matplotlib.pyplot as plt
from IPython.display import Image
from plotly.offline import i... | 37.473684 | 147 | 0.70014 | 185 | 1,424 | 5.254054 | 0.497297 | 0.037037 | 0.037037 | 0.049383 | 0.078189 | 0.078189 | 0.078189 | 0.078189 | 0.078189 | 0.078189 | 0 | 0.013889 | 0.191011 | 1,424 | 38 | 148 | 37.473684 | 0.829861 | 0.146067 | 0 | 0.066667 | 0 | 0 | 0.07577 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.333333 | null | null | 0.033333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
cf58512d21f3bb124c3398a2b735d1fa164545ea | 812 | py | Python | accounts/migrations/0002_auto_20180531_1023.py | USKPA-dev/uskpa | 45481ba59a55f2c202723d11dde9e6b457f9b71d | [
"CC0-1.0"
] | 2 | 2018-06-07T13:06:15.000Z | 2022-02-19T07:51:40.000Z | accounts/migrations/0002_auto_20180531_1023.py | USKPA-dev/uskpa | 45481ba59a55f2c202723d11dde9e6b457f9b71d | [
"CC0-1.0"
] | 164 | 2018-04-11T15:11:54.000Z | 2021-09-07T23:58:59.000Z | accounts/migrations/0002_auto_20180531_1023.py | USKPA-dev/uskpa | 45481ba59a55f2c202723d11dde9e6b457f9b71d | [
"CC0-1.0"
] | 3 | 2018-04-24T18:36:57.000Z | 2018-06-08T21:12:34.000Z | # Generated by Django 2.0.5 on 2018-05-31 10:23
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('accounts', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='historicalhistoryuser',
name='history_user'... | 23.2 | 47 | 0.552956 | 61 | 812 | 7.262295 | 0.52459 | 0.142212 | 0.176072 | 0.20316 | 0.288939 | 0.288939 | 0.288939 | 0.288939 | 0.288939 | 0 | 0 | 0.035581 | 0.342365 | 812 | 34 | 48 | 23.882353 | 0.794007 | 0.055419 | 0 | 0.571429 | 1 | 0 | 0.198693 | 0.054902 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.035714 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
cf6ccb75aed895f75e03cfa7e1750d857352705e | 1,511 | py | Python | test/test_scores.py | gigantenbein/UNet-Zoo | d157c22ef8041ed743aa7bbcf377f0f8ad85e755 | [
"Apache-2.0"
] | 20 | 2020-02-16T07:20:23.000Z | 2022-03-14T04:11:02.000Z | test/test_scores.py | suyanzhou626/UNet-Zoo | 76d23952d90a45a01da1cc2926b4d3a24a1adb75 | [
"Apache-2.0"
] | 6 | 2021-06-08T21:03:07.000Z | 2022-03-17T13:28:33.000Z | test/test_scores.py | suyanzhou626/UNet-Zoo | 76d23952d90a45a01da1cc2926b4d3a24a1adb75 | [
"Apache-2.0"
] | 5 | 2020-03-20T02:04:49.000Z | 2021-10-20T17:37:52.000Z | """Testing scoring functions"""
import pytest
import os
from importlib.machinery import SourceFileLoader
import utils
import shutil
import torch
import math
import matplotlib.pyplot as plt
import torchvision
@pytest.fixture
def lidc_data():
config_file = '/Users/marcgantenbein/PycharmProjects/UNet-Zoo/models/e... | 25.183333 | 106 | 0.743878 | 228 | 1,511 | 4.635965 | 0.429825 | 0.045412 | 0.028382 | 0.070956 | 0.172185 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02648 | 0.150232 | 1,511 | 59 | 107 | 25.610169 | 0.796729 | 0.019854 | 0 | 0.111111 | 0 | 0 | 0.086839 | 0.058345 | 0 | 0 | 0 | 0 | 0.083333 | 1 | 0.111111 | false | 0.055556 | 0.305556 | 0 | 0.444444 | 0.027778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 2 |
cf71e91499d6deed3463b430dfcb4800d8deebe8 | 521 | py | Python | app/database.py | dorneanu/flask-app-template | ea238742f354937a19cd72a32418307dd4a7af1a | [
"MIT"
] | null | null | null | app/database.py | dorneanu/flask-app-template | ea238742f354937a19cd72a32418307dd4a7af1a | [
"MIT"
] | null | null | null | app/database.py | dorneanu/flask-app-template | ea238742f354937a19cd72a32418307dd4a7af1a | [
"MIT"
] | null | null | null | from flask import current_app
from flask_sqlalchemy import SQLAlchemy
from sqlalchemy import create_engine
from sqlalchemy.orm import scoped_session, sessionmaker
from sqlalchemy.ext.declarative import declarative_base
# Init engine and db_session
#engine = create_engine(current_app.config['SQLALCHEMY_DATABASE_URI'], ... | 37.214286 | 92 | 0.834933 | 68 | 521 | 6.161765 | 0.441176 | 0.100239 | 0.119332 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088292 | 521 | 13 | 93 | 40.076923 | 0.882105 | 0.520154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.833333 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
cf7374d195b400da99176ae7ebdc84ce6102d8fa | 1,329 | py | Python | roles/system/files/boot-setup.py | JesperNaarttijarvi/minotaur-centos-install | df5b9ebdd1ccc717d53c06ef0060c84d72bf8e5e | [
"MIT"
] | null | null | null | roles/system/files/boot-setup.py | JesperNaarttijarvi/minotaur-centos-install | df5b9ebdd1ccc717d53c06ef0060c84d72bf8e5e | [
"MIT"
] | null | null | null | roles/system/files/boot-setup.py | JesperNaarttijarvi/minotaur-centos-install | df5b9ebdd1ccc717d53c06ef0060c84d72bf8e5e | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import os
import sys
n_devices = len(os.popen("lspci |grep 'VGA compatible controller: NVIDIA Corporation'").read().rstrip().split("\n"))
if n_devices == 0:
print "fatal: no Nvidia devices found"
sys.exit(1)
with open("/etc/miner-startup.sh","w") as f:
f.write("#!/bin/bash\n")
f.write(... | 37.971429 | 116 | 0.665914 | 241 | 1,329 | 3.659751 | 0.327801 | 0.129252 | 0.119048 | 0.056689 | 0.478458 | 0.464853 | 0.352608 | 0.31746 | 0.222222 | 0.222222 | 0 | 0.008554 | 0.120391 | 1,329 | 34 | 117 | 39.088235 | 0.745937 | 0.015049 | 0 | 0.074074 | 0 | 0.185185 | 0.644495 | 0.184251 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.074074 | null | null | 0.037037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
cf7e800c7c1a59352899d5b0f4d9c283b3e91edb | 1,010 | py | Python | launches.py | zweed4u/launchesEND | fd016478c6f757e323009611d6b83ea42fbf8116 | [
"MIT"
] | 5 | 2017-12-05T04:00:22.000Z | 2020-12-16T20:44:46.000Z | launches.py | zweed4u/launchesEND | fd016478c6f757e323009611d6b83ea42fbf8116 | [
"MIT"
] | null | null | null | launches.py | zweed4u/launchesEND | fd016478c6f757e323009611d6b83ea42fbf8116 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
#Hmmm... http://www.endclothing.com/media/us_sitemap.xml
import urllib2, zlib, json
url='https://launches.endclothing.com/api/products'
req = urllib2.Request(url)
req.add_header(':host','launches.endclothing.com');req.add_header(':method','GET');req.add_header(':path','/api/products');req.add_hea... | 67.333333 | 598 | 0.723762 | 162 | 1,010 | 4.419753 | 0.549383 | 0.092179 | 0.184358 | 0.075419 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052356 | 0.054455 | 1,010 | 14 | 599 | 72.142857 | 0.697382 | 0.074257 | 0 | 0 | 0 | 0.090909 | 0.436227 | 0.049303 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.090909 | null | null | 0.181818 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d85630288b52620b9339fd834ada73fb4075abbe | 558 | py | Python | PyObjCTest/test_nspagelayout.py | linuxfood/pyobjc-framework-Cocoa-test | 3475890f165ab26a740f13d5afe4c62b4423a140 | [
"MIT"
] | null | null | null | PyObjCTest/test_nspagelayout.py | linuxfood/pyobjc-framework-Cocoa-test | 3475890f165ab26a740f13d5afe4c62b4423a140 | [
"MIT"
] | null | null | null | PyObjCTest/test_nspagelayout.py | linuxfood/pyobjc-framework-Cocoa-test | 3475890f165ab26a740f13d5afe4c62b4423a140 | [
"MIT"
] | null | null | null | import AppKit
from PyObjCTools.TestSupport import TestCase
import objc
class TestNSPageLayout(TestCase):
def testMethods(self):
self.assertArgIsSEL(
AppKit.NSPageLayout.beginSheetWithPrintInfo_modalForWindow_delegate_didEndSelector_contextInfo_, # noqa: B950
3,
b"v@:@"... | 31 | 122 | 0.668459 | 48 | 558 | 7.520833 | 0.583333 | 0.016621 | 0.227147 | 0.304709 | 0.531856 | 0.531856 | 0.531856 | 0.531856 | 0.531856 | 0 | 0 | 0.019324 | 0.258065 | 558 | 17 | 123 | 32.823529 | 0.852657 | 0.037634 | 0 | 0.133333 | 0 | 0 | 0.014981 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 1 | 0.066667 | false | 0 | 0.2 | 0 | 0.333333 | 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 | 0 | 0 | 0 | 2 |
d859f7d3fb379be25a76d21ab67ead4d433c1d6c | 777 | py | Python | src/weathair_backend/weathair_backend/api/migrations/0004_auto_20201004_0412.py | willson556/weathair | e2b988f216f81a55d32d432ed41a09bf19d909b2 | [
"MIT"
] | null | null | null | src/weathair_backend/weathair_backend/api/migrations/0004_auto_20201004_0412.py | willson556/weathair | e2b988f216f81a55d32d432ed41a09bf19d909b2 | [
"MIT"
] | null | null | null | src/weathair_backend/weathair_backend/api/migrations/0004_auto_20201004_0412.py | willson556/weathair | e2b988f216f81a55d32d432ed41a09bf19d909b2 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.2 on 2020-10-04 04:12
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('api', '0003_auto_20201004_0401'),
]
operations = [
migrations.AlterField(
model_name='airnowreportingarea',
name='na... | 27.75 | 98 | 0.604891 | 80 | 777 | 5.675 | 0.5375 | 0.059471 | 0.185022 | 0.127753 | 0.405286 | 0.405286 | 0.176211 | 0.176211 | 0 | 0 | 0 | 0.067736 | 0.277992 | 777 | 27 | 99 | 28.777778 | 0.741533 | 0.057915 | 0 | 0.380952 | 1 | 0 | 0.189041 | 0.068493 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.047619 | 0 | 0.190476 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d86510c82b66f95dc50fd62936d72f29aeaa9999 | 360 | py | Python | pirates/creature/DistributedCreatureAI.py | Willy5s/Pirates-Online-Rewritten | 7434cf98d9b7c837d57c181e5dabd02ddf98acb7 | [
"BSD-3-Clause"
] | 81 | 2018-04-08T18:14:24.000Z | 2022-01-11T07:22:15.000Z | pirates/creature/DistributedCreatureAI.py | Willy5s/Pirates-Online-Rewritten | 7434cf98d9b7c837d57c181e5dabd02ddf98acb7 | [
"BSD-3-Clause"
] | 4 | 2018-09-13T20:41:22.000Z | 2022-01-08T06:57:00.000Z | pirates/creature/DistributedCreatureAI.py | Willy5s/Pirates-Online-Rewritten | 7434cf98d9b7c837d57c181e5dabd02ddf98acb7 | [
"BSD-3-Clause"
] | 26 | 2018-05-26T12:49:27.000Z | 2021-09-11T09:11:59.000Z | from direct.directnotify import DirectNotifyGlobal
from pirates.battle.DistributedBattleNPCAI import *
from pirates.pirate import AvatarTypes
class DistributedCreatureAI(DistributedBattleNPCAI):
notify = DirectNotifyGlobal.directNotify.newCategory('DistributedCreatureAI')
def __init__(self, air):
Dist... | 32.727273 | 81 | 0.822222 | 31 | 360 | 9.290323 | 0.580645 | 0.076389 | 0.076389 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113889 | 360 | 10 | 82 | 36 | 0.902821 | 0 | 0 | 0 | 0 | 0 | 0.058496 | 0.058496 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.428571 | 0 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
d8720456fd135a7561fb3d2146537a8ebeb01212 | 77 | py | Python | vmaig_blog/uwsgi-2.0.14/plugins/zergpool/uwsgiplugin.py | StanYaha/Blog | 3cb38918e14ebe6ce2e2952ef272de116849910d | [
"BSD-3-Clause"
] | 1 | 2018-11-24T16:10:49.000Z | 2018-11-24T16:10:49.000Z | vmaig_blog/uwsgi-2.0.14/plugins/zergpool/uwsgiplugin.py | StanYaha/Blog | 3cb38918e14ebe6ce2e2952ef272de116849910d | [
"BSD-3-Clause"
] | null | null | null | vmaig_blog/uwsgi-2.0.14/plugins/zergpool/uwsgiplugin.py | StanYaha/Blog | 3cb38918e14ebe6ce2e2952ef272de116849910d | [
"BSD-3-Clause"
] | null | null | null |
NAME='zergpool'
CFLAGS = []
LDFLAGS = []
LIBS = []
GCC_LIST = ['zergpool']
| 9.625 | 23 | 0.584416 | 8 | 77 | 5.5 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.194805 | 77 | 7 | 24 | 11 | 0.709677 | 0 | 0 | 0 | 0 | 0 | 0.210526 | 0 | 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 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d88c5d3fd6e480648f2585b49ccf5181a7bd2748 | 803 | py | Python | flows/builtin/tests/unit/webserver/factory/test_simple_http_server_flow_factory.py | vdloo/jobrunner | a3a7b8f7fd4d879d398f1390db0611f9c626f6db | [
"Apache-2.0"
] | 1 | 2020-08-31T19:06:16.000Z | 2020-08-31T19:06:16.000Z | flows/builtin/tests/unit/webserver/factory/test_simple_http_server_flow_factory.py | vdloo/jobrunner | a3a7b8f7fd4d879d398f1390db0611f9c626f6db | [
"Apache-2.0"
] | null | null | null | flows/builtin/tests/unit/webserver/factory/test_simple_http_server_flow_factory.py | vdloo/jobrunner | a3a7b8f7fd4d879d398f1390db0611f9c626f6db | [
"Apache-2.0"
] | null | null | null | from flows.builtin.webserver.factory import simple_http_server_flow_factory
from jobrunner.utils import list_tasks_in_flow
from tests.testcase import TestCase
class TestSimpleHTTPServerFlowFactory(TestCase):
def test_simple_http_server_flow_factory_creates_flow_with_name(self):
flow = simple_http_server_f... | 33.458333 | 75 | 0.768369 | 102 | 803 | 5.558824 | 0.352941 | 0.141093 | 0.22575 | 0.21164 | 0.440917 | 0.252205 | 0.252205 | 0.190476 | 0.190476 | 0.190476 | 0 | 0.002994 | 0.16812 | 803 | 23 | 76 | 34.913043 | 0.845808 | 0 | 0 | 0.1875 | 0 | 0 | 0.053549 | 0.028643 | 0 | 0 | 0 | 0 | 0.1875 | 1 | 0.1875 | false | 0 | 0.1875 | 0 | 0.4375 | 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 | 0 | 0 | 0 | 2 |
d88d675c24541241d384af1e5883cd0ed00a17c1 | 5,045 | py | Python | tests/test_views.py | acutexyz/monkeyideas | 062ffa16f3bdf1fa57338837b50bfddfebdecdac | [
"MIT"
] | null | null | null | tests/test_views.py | acutexyz/monkeyideas | 062ffa16f3bdf1fa57338837b50bfddfebdecdac | [
"MIT"
] | null | null | null | tests/test_views.py | acutexyz/monkeyideas | 062ffa16f3bdf1fa57338837b50bfddfebdecdac | [
"MIT"
] | null | null | null | from app.models import *
import pytest
from app.forms import *
from werkzeug.datastructures import MultiDict
from flask import url_for
import json
from flask.ext.login import current_user, login_user, logout_user
@pytest.fixture
def profession(session):
p = Profession(name='Software Engineer in Test')
session... | 27.71978 | 76 | 0.5556 | 540 | 5,045 | 5.068519 | 0.224074 | 0.047497 | 0.040921 | 0.040921 | 0.313482 | 0.265619 | 0.232006 | 0.210815 | 0.194739 | 0.168798 | 0 | 0.008172 | 0.345094 | 5,045 | 181 | 77 | 27.872928 | 0.820218 | 0 | 0 | 0.337748 | 0 | 0 | 0.11267 | 0.018444 | 0 | 0 | 0 | 0 | 0.07947 | 0 | null | null | 0.125828 | 0.046358 | null | null | 0.013245 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
d8a962009dd9b86f4b5fe67a974e8bc3e24fe091 | 307 | py | Python | Test/test_main_methods.py | abualrubbaraa/Baraa-Validator | bff356f4e35ea7de66de799e7f063c383e298d1f | [
"MIT"
] | null | null | null | Test/test_main_methods.py | abualrubbaraa/Baraa-Validator | bff356f4e35ea7de66de799e7f063c383e298d1f | [
"MIT"
] | null | null | null | Test/test_main_methods.py | abualrubbaraa/Baraa-Validator | bff356f4e35ea7de66de799e7f063c383e298d1f | [
"MIT"
] | null | null | null | from BaraaValidator.transactionValidators import validateTransactionsFolder, validateTransactionsFile
import os
def test_mainMethods():
dirpath = os.path.dirname(__file__)
filepath = os.path.join(dirpath, 'transaction.json')
assert (validateTransactionsFile(filepath)) == True
test_mainMethods() | 43.857143 | 101 | 0.807818 | 29 | 307 | 8.344828 | 0.689655 | 0.123967 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.104235 | 307 | 7 | 102 | 43.857143 | 0.88 | 0 | 0 | 0 | 0 | 0 | 0.051948 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.428571 | 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 | 0 | 0 | 0 | 2 |
d8aa62a69b511bd6fe8eb61dcb1de9e114c05f4a | 8,331 | py | Python | backend/app/settings.py | draihal/main-pr | 81814c5370b592963e91ad0683caa560b0ea9579 | [
"MIT"
] | 2 | 2021-01-28T08:23:15.000Z | 2021-03-09T06:06:58.000Z | backend/app/settings.py | draihal/main-pr | 81814c5370b592963e91ad0683caa560b0ea9579 | [
"MIT"
] | 9 | 2020-01-02T15:31:04.000Z | 2021-12-09T01:59:26.000Z | backend/app/settings.py | draihal/main-pr | 81814c5370b592963e91ad0683caa560b0ea9579 | [
"MIT"
] | 1 | 2021-03-09T06:11:16.000Z | 2021-03-09T06:11:16.000Z | """
Django settings for app project.
Generated by 'django-admin startproject' using Django 2.2.5.
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/
"""
from datetime im... | 31.79771 | 119 | 0.706638 | 967 | 8,331 | 5.910031 | 0.355739 | 0.031496 | 0.037795 | 0.030621 | 0.153456 | 0.130884 | 0.074891 | 0.074891 | 0.055993 | 0.016798 | 0 | 0.009302 | 0.161205 | 8,331 | 261 | 120 | 31.91954 | 0.808529 | 0.25099 | 0 | 0.018293 | 1 | 0 | 0.52228 | 0.36939 | 0 | 0 | 0 | 0.003831 | 0 | 1 | 0 | false | 0.067073 | 0.02439 | 0 | 0.02439 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
d8afbaf2b23594f1f8428b9469b3f739261f7278 | 518 | py | Python | jwtauthenticator/test_jwtauthenticator.py | YuanZhencai/jwtauthenticator | 0be5e45a3c63f479758ea2768035266d3de5ec41 | [
"Apache-2.0"
] | null | null | null | jwtauthenticator/test_jwtauthenticator.py | YuanZhencai/jwtauthenticator | 0be5e45a3c63f479758ea2768035266d3de5ec41 | [
"Apache-2.0"
] | null | null | null | jwtauthenticator/test_jwtauthenticator.py | YuanZhencai/jwtauthenticator | 0be5e45a3c63f479758ea2768035266d3de5ec41 | [
"Apache-2.0"
] | null | null | null | from unittest import TestCase
from jose import jwt
class TestJSONWebTokenLoginHandler(TestCase):
def test_parse_jwt(self):
json_web_token = 'eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ5dWFuemhlbmNhaSIsImF1dGgiOiJST0xFX1VTRVIiLCJleHAiOjE1OTAyMjk5NTJ9.PcI6wGxXew-AASYqCKneUyW4ZUVHosgfE0qkWh0Y5pB4nNr1kneSC8yt8liJ31TSjhzt2VVA... | 37 | 207 | 0.835907 | 42 | 518 | 10.119048 | 0.738095 | 0.032941 | 0.056471 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106838 | 0.096525 | 518 | 13 | 208 | 39.846154 | 0.801282 | 0 | 0 | 0 | 0 | 0 | 0.474806 | 0.434109 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.5 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d8b5512902d4771f78aff0209b9c30789409995b | 21,636 | py | Python | tests/6_performance.py | Lucieno/SEAL-Python | 9be8f65e945f43de03669a6550c26de0b098326b | [
"MIT"
] | 3 | 2019-12-24T07:08:33.000Z | 2020-05-13T17:40:28.000Z | tests/6_performance.py | adi-ar/LogisticRegression_SEAL-Python | 047bcf7e2142bbdca178754de26cace4298c5936 | [
"MIT"
] | null | null | null | tests/6_performance.py | adi-ar/LogisticRegression_SEAL-Python | 047bcf7e2142bbdca178754de26cace4298c5936 | [
"MIT"
] | null | null | null | import time
import math
import random
from seal import *
from seal_helper import *
def rand_int():
return int(random.random()*(10**10))
def bfv_performance_test(context):
print_parameters(context)
parms = context.first_context_data().parms()
plain_modulus = parms.plain_modulus()
poly_modulus_de... | 36.921502 | 123 | 0.650259 | 2,552 | 21,636 | 5.222571 | 0.10815 | 0.05042 | 0.082908 | 0.03699 | 0.76133 | 0.725015 | 0.685474 | 0.66139 | 0.641131 | 0.609469 | 0 | 0.031909 | 0.252588 | 21,636 | 585 | 124 | 36.984615 | 0.792282 | 0.028332 | 0 | 0.685504 | 0 | 0 | 0.101646 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017199 | false | 0 | 0.012285 | 0.002457 | 0.046683 | 0.149877 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 | 2 |
d8b7b5fb9877032f2872e9552bf777e9672ad149 | 452 | py | Python | semestr7/subd/model/client.py | ffedoroff/omgtu | 0cad61a2ce6a7c9bb5c9cac72c16eccf33bb4b77 | [
"MIT"
] | 1 | 2017-08-01T03:49:15.000Z | 2017-08-01T03:49:15.000Z | semestr7/subd/model/client.py | ffedoroff/omgtu | 0cad61a2ce6a7c9bb5c9cac72c16eccf33bb4b77 | [
"MIT"
] | null | null | null | semestr7/subd/model/client.py | ffedoroff/omgtu | 0cad61a2ce6a7c9bb5c9cac72c16eccf33bb4b77 | [
"MIT"
] | 4 | 2020-05-22T17:10:38.000Z | 2021-12-08T00:52:00.000Z | # -*- coding: utf-8 -*-
from django.db import models
from django.db.models import DateTimeField, GenericIPAddressField
class Client(models.Model):
class Meta:
app_label = "subd"
verbose_name = "Клиент"
verbose_name_plural = "Клиенты"
fio = models.CharField("ФИО", max_length=200)
... | 22.6 | 65 | 0.650442 | 56 | 452 | 5.017857 | 0.660714 | 0.02847 | 0.085409 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017094 | 0.223451 | 452 | 19 | 66 | 23.789474 | 0.783476 | 0.04646 | 0 | 0 | 0 | 0 | 0.074592 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0.166667 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
d8bd8bd8d533ca30262aba2bf7317396c7dab909 | 443 | py | Python | blender/arm/logicnode/native/LN_read_storage.py | onelsonic/armory | 55cfead0844923d419d75bf4bd677ebed714b4b5 | [
"Zlib"
] | 2,583 | 2016-07-27T08:25:47.000Z | 2022-03-31T10:42:17.000Z | blender/arm/logicnode/native/LN_read_storage.py | onelsonic/armory | 55cfead0844923d419d75bf4bd677ebed714b4b5 | [
"Zlib"
] | 2,122 | 2016-07-31T14:20:04.000Z | 2022-03-31T20:44:14.000Z | blender/arm/logicnode/native/LN_read_storage.py | onelsonic/armory | 55cfead0844923d419d75bf4bd677ebed714b4b5 | [
"Zlib"
] | 451 | 2016-08-12T05:52:58.000Z | 2022-03-31T01:33:07.000Z | from arm.logicnode.arm_nodes import *
class ReadStorageNode(ArmLogicTreeNode):
"""Reads a stored content.
@seeNode Write Storage"""
bl_idname = 'LNReadStorageNode'
bl_label = 'Read Storage'
arm_section = 'file'
arm_version = 1
def arm_init(self, context):
self.add_input('ArmString... | 26.058824 | 52 | 0.677201 | 49 | 443 | 5.938776 | 0.734694 | 0.072165 | 0.082474 | 0.185567 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002841 | 0.205418 | 443 | 16 | 53 | 27.6875 | 0.823864 | 0.106095 | 0 | 0 | 0 | 0 | 0.243523 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.1 | 0 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
d8c08d175a1cbd3180bab825774c67e642b794d4 | 1,731 | py | Python | generator/framework/util/cfg_generator.py | sinsay/ds_generator | 9365e22e8730418caf29b8ed6ada1f30f936a297 | [
"Apache-2.0"
] | null | null | null | generator/framework/util/cfg_generator.py | sinsay/ds_generator | 9365e22e8730418caf29b8ed6ada1f30f936a297 | [
"Apache-2.0"
] | null | null | null | generator/framework/util/cfg_generator.py | sinsay/ds_generator | 9365e22e8730418caf29b8ed6ada1f30f936a297 | [
"Apache-2.0"
] | null | null | null | class HasIdent(object):
"""
避免 CfgGenerator 交叉引用所使用的基类
"""
def __init__(self, ident: int = 0):
self.ident = ident
def increase_ident(self):
self.ident += 1
def decrease_ident(self):
self.ident -= 1
class CfgGeneratorIdent(object):
def __init__(self, gen: HasIdent)... | 22.192308 | 90 | 0.536684 | 196 | 1,731 | 4.494898 | 0.285714 | 0.091941 | 0.037457 | 0.038593 | 0.043133 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004371 | 0.33911 | 1,731 | 77 | 91 | 22.480519 | 0.765734 | 0.137493 | 0 | 0 | 0 | 0 | 0.008475 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.371429 | false | 0 | 0 | 0.028571 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
d8d3e8f353c9df0eca02ab9d7ac5d28b32d4bbb1 | 1,287 | py | Python | newsletter/models.py | doctsystems/newsletter | 7355ad7bca5f2d082abf9703a20fc91a0c325454 | [
"MIT"
] | null | null | null | newsletter/models.py | doctsystems/newsletter | 7355ad7bca5f2d082abf9703a20fc91a0c325454 | [
"MIT"
] | null | null | null | newsletter/models.py | doctsystems/newsletter | 7355ad7bca5f2d082abf9703a20fc91a0c325454 | [
"MIT"
] | null | null | null | from django.db import models
class Newsletter(models.Model):
name=models.CharField(max_length=100)
description=models.TextField()
created_at=models.DateTimeField(auto_now_add=True)
updated_at=models.DateTimeField(auto_now=True)
def __str__(self):
return self.name
class Subscriber(models.Model):
name = models... | 30.642857 | 72 | 0.79798 | 170 | 1,287 | 5.788235 | 0.247059 | 0.065041 | 0.170732 | 0.203252 | 0.697154 | 0.676829 | 0.676829 | 0.634146 | 0.449187 | 0.449187 | 0 | 0.010309 | 0.095571 | 1,287 | 42 | 73 | 30.642857 | 0.835052 | 0 | 0 | 0.580645 | 0 | 0 | 0.04736 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.129032 | false | 0 | 0.032258 | 0.129032 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
d8dd3e6986ec9de4d911cd084dbaeaf781af98b0 | 186 | py | Python | python_for_everybody/for_in_range.py | timothyyu/p4e-prac | f978b71ce147b6e9058372929f2666c2e67d0741 | [
"BSD-3-Clause"
] | null | null | null | python_for_everybody/for_in_range.py | timothyyu/p4e-prac | f978b71ce147b6e9058372929f2666c2e67d0741 | [
"BSD-3-Clause"
] | null | null | null | python_for_everybody/for_in_range.py | timothyyu/p4e-prac | f978b71ce147b6e9058372929f2666c2e67d0741 | [
"BSD-3-Clause"
] | 1 | 2020-04-18T16:09:04.000Z | 2020-04-18T16:09:04.000Z | x = 0
for y in range(5):
print(x,y)
x = x + y
# x = 0 + 0
# x = 0 + 1 ==> x = 1
# x = 1 + 2 ==> x = 3
# x = 3 + 3 ==> x = 6
# x = 6 + 4 ==> x = 10
print(x)
| 15.5 | 27 | 0.290323 | 38 | 186 | 1.421053 | 0.368421 | 0.111111 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.177083 | 0.483871 | 186 | 11 | 28 | 16.909091 | 0.385417 | 0.483871 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d8e326a0842502832eb889a12acb3aa9cc0f3dbc | 679 | py | Python | simple_import/forms.py | smcoll/django-simple-import | fcdaaf61196fb7c596c3383159d49f11a8dd518e | [
"BSD-3-Clause"
] | null | null | null | simple_import/forms.py | smcoll/django-simple-import | fcdaaf61196fb7c596c3383159d49f11a8dd518e | [
"BSD-3-Clause"
] | null | null | null | simple_import/forms.py | smcoll/django-simple-import | fcdaaf61196fb7c596c3383159d49f11a8dd518e | [
"BSD-3-Clause"
] | null | null | null | from django import forms
from django.contrib.contenttypes.models import ContentType
from simple_import.models import ImportLog, ColumnMatch, RelationalMatch
class ImportForm(forms.ModelForm):
class Meta:
model = ImportLog
fields = ('name', 'import_file', 'import_type')
model = forms.ModelChoi... | 27.16 | 76 | 0.664212 | 65 | 679 | 6.846154 | 0.523077 | 0.094382 | 0.12809 | 0.155056 | 0.188764 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.222386 | 679 | 24 | 77 | 28.291667 | 0.842803 | 0 | 0 | 0.166667 | 0 | 0 | 0.100147 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.722222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
d8e730bb375940f9f3582e34ab7d4585a0799ed3 | 80 | py | Python | T26-04/program.py | tiagomendes7/SSof-Project1920 | 9b026763a492683ab982aa769f2a381ed02930aa | [
"MIT"
] | 2 | 2019-11-20T19:26:07.000Z | 2019-11-22T00:42:23.000Z | T26-04/program.py | tiagomendes7/SSof-Project1920 | 9b026763a492683ab982aa769f2a381ed02930aa | [
"MIT"
] | 2 | 2019-11-28T05:21:24.000Z | 2019-11-28T05:21:58.000Z | T26-04/program.py | tiagomendes7/SSof-Project1920 | 9b026763a492683ab982aa769f2a381ed02930aa | [
"MIT"
] | 25 | 2019-11-27T01:40:56.000Z | 2019-12-04T23:38:59.000Z | src = source()
src2 = src
src3 = src2
src5 = src2
src4 = src3
src4 = sink(src4)
| 11.428571 | 17 | 0.65 | 13 | 80 | 4 | 0.538462 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145161 | 0.225 | 80 | 6 | 18 | 13.333333 | 0.693548 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d8e84bbf2e79e843bed9f808b75020d51a48d30f | 3,855 | py | Python | faker/providers/barcode/__init__.py | StabbarN/faker | 57882ff73255cb248d8f995b2abfce5cfee45ab3 | [
"MIT"
] | 4 | 2020-09-23T15:48:00.000Z | 2021-02-25T07:55:23.000Z | faker/providers/barcode/__init__.py | StabbarN/faker | 57882ff73255cb248d8f995b2abfce5cfee45ab3 | [
"MIT"
] | 7 | 2021-03-05T23:08:02.000Z | 2022-03-12T00:47:19.000Z | faker/providers/barcode/__init__.py | StabbarN/faker | 57882ff73255cb248d8f995b2abfce5cfee45ab3 | [
"MIT"
] | 1 | 2022-03-10T16:25:33.000Z | 2022-03-10T16:25:33.000Z | from .. import BaseProvider
localized = True
class Provider(BaseProvider):
# Source of GS1 country codes: https://gs1.org/standards/id-keys/company-prefix
local_prefixes = ()
def _ean(self, length=13, prefixes=()):
if length not in (8, 13):
raise AssertionError("length can only be 8 ... | 33.232759 | 102 | 0.597925 | 500 | 3,855 | 4.562 | 0.224 | 0.007891 | 0.010522 | 0.012275 | 0.64007 | 0.556335 | 0.512495 | 0.494082 | 0.494082 | 0.494082 | 0 | 0.038242 | 0.274189 | 3,855 | 115 | 103 | 33.521739 | 0.776984 | 0.554086 | 0 | 0 | 0 | 0 | 0.019316 | 0 | 0 | 0 | 0 | 0 | 0.032258 | 1 | 0.225806 | false | 0 | 0.032258 | 0 | 0.548387 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
d8f4b8a4abb68a6dab26dbeb1dd2c937dba8e5c5 | 1,911 | py | Python | modules/data/warehouse/tools/import_record.py | Shokoofeh/apollo | 71d6ea753b4595eb38cc54d6650c8de677b173df | [
"Apache-2.0"
] | 7 | 2017-07-07T07:56:13.000Z | 2019-03-06T06:27:00.000Z | modules/data/warehouse/tools/import_record.py | Shokoofeh/apollo | 71d6ea753b4595eb38cc54d6650c8de677b173df | [
"Apache-2.0"
] | null | null | null | modules/data/warehouse/tools/import_record.py | Shokoofeh/apollo | 71d6ea753b4595eb38cc54d6650c8de677b173df | [
"Apache-2.0"
] | 2 | 2017-07-07T07:56:15.000Z | 2018-08-10T17:13:34.000Z | #!/usr/bin/env python
# -*- coding: UTF-8-*-
###############################################################################
# Copyright 2018 The Apollo 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.
# ... | 30.822581 | 79 | 0.641549 | 234 | 1,911 | 5.141026 | 0.525641 | 0.049875 | 0.021613 | 0.0266 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007042 | 0.182627 | 1,911 | 61 | 80 | 31.327869 | 0.763124 | 0.418629 | 0 | 0 | 0 | 0 | 0.114007 | 0.022801 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.416667 | 0 | 0.541667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
d8f8b4873e2a9d706b1b4b89de4220f8b9ddd61d | 731 | py | Python | concordia/migrations/0002_auto_20181004_1848.py | juliecentofanti172/juliecentofanti.github.io | 446ea8522b9f4a6709124ebb6e0f675acf7fe205 | [
"CC0-1.0"
] | 134 | 2018-05-23T14:00:29.000Z | 2022-03-10T15:47:53.000Z | concordia/migrations/0002_auto_20181004_1848.py | ptrourke/concordia | 56ff364dbf38cb8a763df489479821fe43b76d69 | [
"CC0-1.0"
] | 1,104 | 2018-05-22T20:18:22.000Z | 2022-03-31T17:28:40.000Z | concordia/migrations/0002_auto_20181004_1848.py | ptrourke/concordia | 56ff364dbf38cb8a763df489479821fe43b76d69 | [
"CC0-1.0"
] | 32 | 2018-05-22T20:22:38.000Z | 2021-12-21T14:11:44.000Z | # Generated by Django 2.0.9 on 2018-10-04 18:48
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [("concordia", "0001_squashed_0040_remove_campaign_is_active")]
operations = [
migrations.AlterField(
model_name="pageinuse",
name="... | 27.074074 | 82 | 0.603283 | 75 | 731 | 5.666667 | 0.626667 | 0.141176 | 0.176471 | 0.204706 | 0.451765 | 0.451765 | 0 | 0 | 0 | 0 | 0 | 0.05 | 0.288646 | 731 | 26 | 83 | 28.115385 | 0.767308 | 0.06156 | 0 | 0.45 | 1 | 0 | 0.157895 | 0.064327 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.05 | 0 | 0.2 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2b0f54ec033255faf4b2fe939082f385da0b5246 | 263 | py | Python | example.py | pnsn/python_template | 1e09b87149407ee8e5f5ed78f57244470cb1415d | [
"MIT"
] | null | null | null | example.py | pnsn/python_template | 1e09b87149407ee8e5f5ed78f57244470cb1415d | [
"MIT"
] | null | null | null | example.py | pnsn/python_template | 1e09b87149407ee8e5f5ed78f57244470cb1415d | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
'''
All projects should use python 3
virtualenv symlinks python, python3, python3.x to environments python
envoke with either python example.py
or ./example.py
'''
def main():
print("Hello PNSN")
if __name__ == "__main__":
main() | 18.785714 | 69 | 0.711027 | 37 | 263 | 4.837838 | 0.756757 | 0.100559 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018265 | 0.1673 | 263 | 14 | 70 | 18.785714 | 0.799087 | 0.673004 | 0 | 0 | 0 | 0 | 0.227848 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | true | 0 | 0 | 0 | 0.25 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2b25b21c76b9e5d09cd75db1cb54b32efea42278 | 906 | py | Python | examples/wsgi.py | eliziario/django-websocket-redis | e36449a622230dfc7af090471e0ae59b51526767 | [
"MIT"
] | 815 | 2015-01-04T03:02:03.000Z | 2022-03-18T21:48:48.000Z | examples/wsgi.py | eliziario/django-websocket-redis | e36449a622230dfc7af090471e0ae59b51526767 | [
"MIT"
] | 213 | 2015-01-06T14:15:32.000Z | 2022-01-28T17:35:45.000Z | examples/wsgi.py | eliziario/django-websocket-redis | e36449a622230dfc7af090471e0ae59b51526767 | [
"MIT"
] | 253 | 2015-01-02T16:38:15.000Z | 2022-03-30T20:43:58.000Z | # Django with Websocket for Redis under a single uWSGI server
# (for sites with low traffic)
#
# uwsgi --virtualenv /path/to/virtualenv --http :9090 --gevent 100 --http-websockets --module wsgi
#
# See: http://django-websocket-redis.readthedocs.io/en/latest/running.html#django-with-websockets-for-redis-as-a-stand-alo... | 36.24 | 137 | 0.788079 | 122 | 906 | 5.688525 | 0.491803 | 0.051873 | 0.086455 | 0.066282 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01107 | 0.102649 | 906 | 24 | 138 | 37.75 | 0.842558 | 0.355408 | 0 | 0 | 0 | 0 | 0.090278 | 0.038194 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.384615 | 0 | 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 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
2b32a48c0617127fad513107b6b55bc15c45960a | 15,313 | py | Python | .ipynb_checkpoints/scrape_mars-checkpoint.py | re-ga-na/webscrapingchallenge | 04ade4080e1f317768ce6fff4dfadd5c7e23e387 | [
"ADSL"
] | null | null | null | .ipynb_checkpoints/scrape_mars-checkpoint.py | re-ga-na/webscrapingchallenge | 04ade4080e1f317768ce6fff4dfadd5c7e23e387 | [
"ADSL"
] | null | null | null | .ipynb_checkpoints/scrape_mars-checkpoint.py | re-ga-na/webscrapingchallenge | 04ade4080e1f317768ce6fff4dfadd5c7e23e387 | [
"ADSL"
] | null | null | null | {
"cells": [
{
"cell_type": "code",
"execution_count": 211,
"metadata": {},
"outputs": [],
"source": [
"import pandas as pd\n",
"import requests\n",
"\n",
"from splinter import Browser\n",
"from selenium import webdriver\n",
"from bs4 import BeautifulSoup"
]
},
{
"cel... | 26.724258 | 606 | 0.46614 | 1,693 | 15,313 | 4.121087 | 0.202008 | 0.018059 | 0.022932 | 0.072237 | 0.508098 | 0.422531 | 0.302996 | 0.269457 | 0.220869 | 0.220869 | 0 | 0.030555 | 0.316071 | 15,313 | 572 | 607 | 26.770979 | 0.634871 | 0 | 0 | 0.482517 | 0 | 0.012238 | 0.6262 | 0.055443 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.008741 | 0 | 0.008741 | 0.008741 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2b3b7c8eae4ae649f3b1f6cafa46b3e7c9a4ac45 | 20,937 | py | Python | lophi-net-services/lophinet/proxydhcpd/dhcpd.py | patriotemeritus/LO-PHI | 8f92c4efb94061cb08b7e9b0ff96346565c12653 | [
"BSD-3-Clause"
] | 28 | 2016-02-26T00:54:16.000Z | 2022-02-24T12:21:15.000Z | lophi-net-services/lophinet/proxydhcpd/dhcpd.py | patriotemeritus/LO-PHI | 8f92c4efb94061cb08b7e9b0ff96346565c12653 | [
"BSD-3-Clause"
] | 2 | 2016-03-15T21:49:09.000Z | 2016-07-12T22:11:39.000Z | lophi-net-services/lophinet/proxydhcpd/dhcpd.py | patriotemeritus/LO-PHI | 8f92c4efb94061cb08b7e9b0ff96346565c12653 | [
"BSD-3-Clause"
] | 9 | 2016-06-08T14:42:28.000Z | 2021-11-11T03:51:34.000Z | """
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
bu... | 47.910755 | 169 | 0.580742 | 2,262 | 20,937 | 5.240053 | 0.156499 | 0.031216 | 0.029107 | 0.032987 | 0.739813 | 0.693242 | 0.652493 | 0.626255 | 0.616806 | 0.610816 | 0 | 0.021031 | 0.293691 | 20,937 | 436 | 170 | 48.020642 | 0.780498 | 0.13469 | 0 | 0.561538 | 0 | 0 | 0.162835 | 0.021925 | 0 | 0 | 0.001185 | 0 | 0 | 0 | null | null | 0 | 0.030769 | null | null | 0.003846 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2b446474ab736a03796add587552ea1e155e2ffd | 888 | py | Python | app/forms.py | sjsafranek/pomegranate | 8965a7cc2fe8b6981f3961fa8cd6e8b1bdff8ccf | [
"MIT"
] | null | null | null | app/forms.py | sjsafranek/pomegranate | 8965a7cc2fe8b6981f3961fa8cd6e8b1bdff8ccf | [
"MIT"
] | 1 | 2017-01-19T02:02:15.000Z | 2017-01-19T02:38:58.000Z | app/forms.py | sjsafranek/pomegranate | 8965a7cc2fe8b6981f3961fa8cd6e8b1bdff8ccf | [
"MIT"
] | null | null | null | #!/usr/bin/python
'''
from django import forms
from django.contrib.auth import authenticate
#from django.contrib.auth import login
class LoginForm(forms.Form):
username = forms.CharField(max_length=255, required=True)
password = forms.CharField(widget=forms.PasswordInput, required=True)
def clean(self):
... | 32.888889 | 91 | 0.699324 | 107 | 888 | 5.738318 | 0.439252 | 0.089577 | 0.12215 | 0.117264 | 0.465798 | 0.37785 | 0.37785 | 0.37785 | 0.37785 | 0.37785 | 0 | 0.004202 | 0.195946 | 888 | 26 | 92 | 34.153846 | 0.855742 | 0.986486 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2b4bd98e0c177ca5b3a4dad706f295999dd8004f | 10,469 | py | Python | sms_bomber.py | mrdictawt0r/sms-bomber-iran | 89b43059d7f9e80ec8bb625107376625dbecc3ae | [
"Unlicense"
] | null | null | null | sms_bomber.py | mrdictawt0r/sms-bomber-iran | 89b43059d7f9e80ec8bb625107376625dbecc3ae | [
"Unlicense"
] | null | null | null | sms_bomber.py | mrdictawt0r/sms-bomber-iran | 89b43059d7f9e80ec8bb625107376625dbecc3ae | [
"Unlicense"
] | null | null | null | #dictawtor
#t.me/dictawt0r
import os
import time
import requests
from threading import Thread
proxy = {"https": "127.0.0.1:8000"}
def snap(phone):
#snap api
snapH = {"Host": "app.snapp.taxi", "content-length": "29", "x-app-name": "passenger-pwa", "x-app-version": "5.0.0", "app-version"... | 73.20979 | 1,080 | 0.650014 | 1,403 | 10,469 | 4.826087 | 0.190306 | 0.037218 | 0.011815 | 0.022596 | 0.561217 | 0.483828 | 0.478807 | 0.45621 | 0.451189 | 0.451189 | 0 | 0.088701 | 0.142803 | 10,469 | 142 | 1,081 | 73.725352 | 0.665812 | 0.009648 | 0 | 0.452174 | 0 | 0.165217 | 0.611084 | 0.172231 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0.026087 | 0.034783 | 0 | 0.121739 | 0.226087 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2b60e2628d815b25ace1f2175354070d83869ce9 | 242 | py | Python | sam-application/lambda_restapi/api/endpoints/root/__init__.py | gbourniq/lambda-restapi | 11d59bb7182fb8d2a0508399607724b9ac3c1601 | [
"MIT"
] | 2 | 2020-12-25T20:13:04.000Z | 2021-02-04T19:09:11.000Z | sam-application/lambda_restapi/api/endpoints/root/__init__.py | gbourniq/lambda-restapi | 11d59bb7182fb8d2a0508399607724b9ac3c1601 | [
"MIT"
] | null | null | null | sam-application/lambda_restapi/api/endpoints/root/__init__.py | gbourniq/lambda-restapi | 11d59bb7182fb8d2a0508399607724b9ac3c1601 | [
"MIT"
] | null | null | null | """This module defines the main router among all ROOT endpoints"""
from fastapi import APIRouter
from .healthcheck import router as healthcheck_router
router = APIRouter()
router.include_router(healthcheck_router, include_in_schema=False)
| 26.888889 | 66 | 0.822314 | 32 | 242 | 6.0625 | 0.625 | 0.175258 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115702 | 242 | 8 | 67 | 30.25 | 0.906542 | 0.247934 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
2b696f156bbe3a81a3af6dc7e753998acc610ace | 7,144 | py | Python | LIM_scripts/stationTimings/examples/run_plotBlocks.py | Bhare8972/LOFAR-LIM | 89f25be8c02cb8980c2e237da3eaac279d40a06a | [
"MIT"
] | 3 | 2019-04-21T13:13:02.000Z | 2020-10-15T12:44:23.000Z | LIM_scripts/stationTimings/examples/run_plotBlocks.py | Bhare8972/LOFAR-LIM | 89f25be8c02cb8980c2e237da3eaac279d40a06a | [
"MIT"
] | null | null | null | LIM_scripts/stationTimings/examples/run_plotBlocks.py | Bhare8972/LOFAR-LIM | 89f25be8c02cb8980c2e237da3eaac279d40a06a | [
"MIT"
] | 2 | 2018-11-06T18:34:33.000Z | 2019-04-04T14:16:57.000Z | #!/usr/bin/env python3
from LoLIM.stationTimings.plot_multiple_data_all_stations import plot_blocks
## these lines are anachronistic and should be fixed at some point
from LoLIM import utilities
utilities.default_raw_data_loc = "/exp_app2/appexp1/public/raw_data"
utilities.default_processed_data_loc = "/home/brian/p... | 62.666667 | 962 | 0.656355 | 987 | 7,144 | 4.687943 | 0.333333 | 0.080398 | 0.147396 | 0.115193 | 0.179814 | 0.022909 | 0.022909 | 0.022909 | 0.022909 | 0.022909 | 0 | 0.451591 | 0.177352 | 7,144 | 114 | 963 | 62.666667 | 0.335716 | 0.62808 | 0 | 0 | 0 | 0 | 0.133468 | 0.041532 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.032787 | 0 | 0.032787 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2b700bb220db47ad3294d7a1cf69cd6666d04ddf | 460 | py | Python | tests/gof/test_utils.py | michaelosthege/aesara | 55c88832ba71f87c9612d573ede74a4c042ef570 | [
"BSD-3-Clause"
] | null | null | null | tests/gof/test_utils.py | michaelosthege/aesara | 55c88832ba71f87c9612d573ede74a4c042ef570 | [
"BSD-3-Clause"
] | null | null | null | tests/gof/test_utils.py | michaelosthege/aesara | 55c88832ba71f87c9612d573ede74a4c042ef570 | [
"BSD-3-Clause"
] | null | null | null | import theano
def test_stack_trace():
orig = theano.config.traceback__limit
try:
theano.config.traceback__limit = 1
v = theano.tensor.vector()
assert len(v.tag.trace) == 1
assert len(v.tag.trace[0]) == 1
theano.config.traceback__limit = 2
v = theano.tensor.vecto... | 27.058824 | 45 | 0.606522 | 62 | 460 | 4.33871 | 0.33871 | 0.178439 | 0.312268 | 0.386617 | 0.423792 | 0.423792 | 0.423792 | 0.423792 | 0.423792 | 0.423792 | 0 | 0.023952 | 0.273913 | 460 | 16 | 46 | 28.75 | 0.781437 | 0 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 1 | 0.071429 | false | 0 | 0.071429 | 0 | 0.142857 | 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 | 0 | 0 | 0 | 2 |
2b707d6571d63f6cfb0ac8817d11200f9196de51 | 1,208 | py | Python | torchdiffeq/covar/fixed_grid.py | gaozhihan/torchdiffeq | 414781617d595ba01cc3f23382e25ab890f4ca66 | [
"MIT"
] | 1 | 2022-02-22T12:22:48.000Z | 2022-02-22T12:22:48.000Z | torchdiffeq/covar/fixed_grid.py | gaozhihan/torchdiffeq | 414781617d595ba01cc3f23382e25ab890f4ca66 | [
"MIT"
] | null | null | null | torchdiffeq/covar/fixed_grid.py | gaozhihan/torchdiffeq | 414781617d595ba01cc3f23382e25ab890f4ca66 | [
"MIT"
] | null | null | null | import torch
from torchdiffeq.covar.solvers import FixedGridODESolver_Covar
from torchdiffeq._impl.rk_common import rk4_alt_step_func
class Euler_Covar(FixedGridODESolver_Covar):
order = 1
def __init__(self, eps=0., **kwargs):
super(Euler_Covar, self).__init__(**kwargs)
self.eps = torch.as_te... | 30.974359 | 77 | 0.664735 | 180 | 1,208 | 4.15 | 0.216667 | 0.093708 | 0.11245 | 0.13253 | 0.536814 | 0.502008 | 0.502008 | 0.39759 | 0.39759 | 0.39759 | 0 | 0.013598 | 0.208609 | 1,208 | 38 | 78 | 31.789474 | 0.767782 | 0 | 0 | 0.346154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.115385 | 0.076923 | 0.692308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
990d44c23c9a98487c5847b19f0dbb7393d43a48 | 326 | py | Python | api/account/REST_API/views.py | HVLLO/FaceMash | 014354a593dc6f6a4313490535682a6902c28129 | [
"MIT"
] | null | null | null | api/account/REST_API/views.py | HVLLO/FaceMash | 014354a593dc6f6a4313490535682a6902c28129 | [
"MIT"
] | 7 | 2020-02-11T23:32:22.000Z | 2022-03-11T23:37:06.000Z | api/account/REST_API/views.py | HVLLO/FaceMash | 014354a593dc6f6a4313490535682a6902c28129 | [
"MIT"
] | null | null | null | from rest_framework.permissions import AllowAny, IsAuthenticated
from rest_framework.generics import (CreateAPIView, UpdateAPIView,)
from api.account.REST_API.serializers import UserProfileSerializer
class CreateUserAPIView(CreateAPIView):
permission_classes = (AllowAny,)
serializer_class = UserProfileSerial... | 29.636364 | 67 | 0.840491 | 31 | 326 | 8.677419 | 0.612903 | 0.05948 | 0.126394 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.104294 | 326 | 10 | 68 | 32.6 | 0.921233 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
9922c34386986c8e072fc243b53715d54edecc95 | 92 | py | Python | src/datacatalog_fileset_enricher/__init__.py | mesmacosta/datacatalog-fileset-enricher | 0792632fc181b13696f89ef3335da4e2ce1dca4a | [
"MIT"
] | 3 | 2020-04-01T15:28:25.000Z | 2020-06-06T18:30:34.000Z | src/datacatalog_fileset_enricher/__init__.py | mesmacosta/datacatalog-fileset-enricher | 0792632fc181b13696f89ef3335da4e2ce1dca4a | [
"MIT"
] | null | null | null | src/datacatalog_fileset_enricher/__init__.py | mesmacosta/datacatalog-fileset-enricher | 0792632fc181b13696f89ef3335da4e2ce1dca4a | [
"MIT"
] | 1 | 2020-07-09T06:05:24.000Z | 2020-07-09T06:05:24.000Z | __author__ = """Marcelo Miranda"""
__email__ = 'mesmacosta@gmail.com'
__version__ = '1.1.1'
| 23 | 34 | 0.706522 | 11 | 92 | 4.818182 | 0.818182 | 0.075472 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036585 | 0.108696 | 92 | 3 | 35 | 30.666667 | 0.609756 | 0 | 0 | 0 | 0 | 0 | 0.434783 | 0 | 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 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
992c24f78534fed26453b87520fe3136459de217 | 4,333 | py | Python | students/K33421/laboratory_works/Lakiza_Alexander/laboratory_work_3/college_app/views.py | emina13/ITMO_ICT_WebDevelopment_2021-2022 | 498a6138e352e7e0ca40d1eb301bc29416158f51 | [
"MIT"
] | 7 | 2021-09-02T08:20:58.000Z | 2022-01-12T11:48:07.000Z | students/K33421/laboratory_works/Lakiza_Alexander/laboratory_work_3/college_app/views.py | emina13/ITMO_ICT_WebDevelopment_2021-2022 | 498a6138e352e7e0ca40d1eb301bc29416158f51 | [
"MIT"
] | 76 | 2021-09-17T23:01:50.000Z | 2022-03-18T16:42:03.000Z | students/K33421/laboratory_works/Lakiza_Alexander/laboratory_work_3/college_app/views.py | emina13/ITMO_ICT_WebDevelopment_2021-2022 | 498a6138e352e7e0ca40d1eb301bc29416158f51 | [
"MIT"
] | 60 | 2021-09-04T16:47:39.000Z | 2022-03-21T04:41:27.000Z | from rest_framework.authentication import TokenAuthentication
from rest_framework.generics import *
from rest_framework.permissions import *
from .serializers import *
class IsManager(BasePermission):
def has_permission(self, request, view):
return request.user.type == 'manager'
class IsDeputy(BasePermi... | 27.08125 | 61 | 0.769213 | 363 | 4,333 | 9.035813 | 0.203857 | 0.073171 | 0.146341 | 0.182927 | 0.644512 | 0.644512 | 0.644512 | 0.617073 | 0.617073 | 0.431707 | 0 | 0 | 0.15532 | 4,333 | 159 | 62 | 27.251572 | 0.896175 | 0 | 0 | 0.691589 | 0 | 0 | 0.003 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018692 | false | 0 | 0.037383 | 0.009346 | 0.990654 | 0.009346 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
993ab93218e3036d090d453fc1cde516f0a53099 | 1,544 | py | Python | django_cloud_deploy/workflow/_file_bucket.py | GoogleCloudPlatform/django-cloud-deploy | d316b1e45357761e2b124143e6e12ce34ef6f975 | [
"Apache-2.0"
] | 61 | 2018-10-17T17:39:08.000Z | 2022-02-20T06:16:49.000Z | django_cloud_deploy/workflow/_file_bucket.py | ggurbet/django-cloud-deploy | 0b7c0bb0f40ba81c48ba3db374dbd5c596f4064c | [
"Apache-2.0"
] | 202 | 2018-10-16T18:15:51.000Z | 2021-11-11T19:05:33.000Z | django_cloud_deploy/workflow/_file_bucket.py | ggurbet/django-cloud-deploy | 0b7c0bb0f40ba81c48ba3db374dbd5c596f4064c | [
"Apache-2.0"
] | 23 | 2018-10-31T00:01:52.000Z | 2021-10-09T03:43:59.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 36.761905 | 80 | 0.716969 | 211 | 1,544 | 5.151659 | 0.511848 | 0.055198 | 0.023919 | 0.029439 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006645 | 0.220207 | 1,544 | 41 | 81 | 37.658537 | 0.896179 | 0.642487 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
993ec8cc9eaca5be7b60d45d5603b3cb294439a2 | 276 | py | Python | Code coach problems/Easy/Python/Jungle_Camping.py | Djivs/sololearn-code-solutions | 7727dd97f79863a88841548770481f6f2abdc7bf | [
"MIT"
] | 1 | 2020-07-27T07:32:57.000Z | 2020-07-27T07:32:57.000Z | Code coach problems/Easy/Python/Jungle_Camping.py | Djivs/sololearn-code-solutions | 7727dd97f79863a88841548770481f6f2abdc7bf | [
"MIT"
] | null | null | null | Code coach problems/Easy/Python/Jungle_Camping.py | Djivs/sololearn-code-solutions | 7727dd97f79863a88841548770481f6f2abdc7bf | [
"MIT"
] | 1 | 2020-11-07T12:45:21.000Z | 2020-11-07T12:45:21.000Z | a = input()
for i in range(len(a)):
if i == 0 or a[i] == ' ':
if i != 0:
i+=1
if a[i] == 'S':
print("Snake", end = " ")
elif a[i] == 'G':
print("Lion", end = " ")
elif a[i] == 'R':
print("Tiger", end = " ")
elif a[i] == 'C':
print("Bird", end = " ")
| 19.714286 | 28 | 0.402174 | 47 | 276 | 2.361702 | 0.468085 | 0.09009 | 0.216216 | 0.243243 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015544 | 0.300725 | 276 | 13 | 29 | 21.230769 | 0.559585 | 0 | 0 | 0 | 0 | 0 | 0.097826 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.307692 | 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 | 0 | 0 | 0 | 2 |
99641347f295a7ff5a40d732751c3697679eb9d0 | 1,498 | py | Python | openquake/qa_tests_data/classical/case_20/__init__.py | gfzriesgos/shakyground-lfs | 2caf67cc32e6800286eded2df1efb05973ccf41b | [
"BSD-3-Clause"
] | 1 | 2019-08-01T00:28:24.000Z | 2019-08-01T00:28:24.000Z | openquake/qa_tests_data/classical/case_20/__init__.py | gfzriesgos/shakyground-lfs | 2caf67cc32e6800286eded2df1efb05973ccf41b | [
"BSD-3-Clause"
] | 4 | 2018-08-31T14:14:35.000Z | 2021-10-11T12:53:13.000Z | openquake/qa_tests_data/classical/case_20/__init__.py | gfzriesgos/shakyground-lfs | 2caf67cc32e6800286eded2df1efb05973ccf41b | [
"BSD-3-Clause"
] | 3 | 2018-08-31T14:11:00.000Z | 2019-07-17T10:06:02.000Z | # -*- coding: utf-8 -*-
# vim: tabstop=4 shiftwidth=4 softtabstop=4
#
# Copyright (C) 2015-2018 GEM Foundation
#
# OpenQuake is free software: you can redistribute it and/or modify it
# under the terms of the GNU Affero General Public License as published
# by the Free Software Foundation, either version 3 of the Licen... | 35.666667 | 77 | 0.777704 | 237 | 1,498 | 4.700422 | 0.49789 | 0.043088 | 0.032316 | 0.051167 | 0.089767 | 0.089767 | 0.061041 | 0 | 0 | 0 | 0 | 0.041245 | 0.14219 | 1,498 | 41 | 78 | 36.536585 | 0.825681 | 0.971295 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
999ba25c335559c3e34efe18682e396868769eb8 | 1,651 | py | Python | src/modlunky2/sprites/monsters/big.py | mriswithe/modlunky2 | 20de5c7d226df7134cf87a9b9351fc9c28a89d6a | [
"Apache-2.0"
] | null | null | null | src/modlunky2/sprites/monsters/big.py | mriswithe/modlunky2 | 20de5c7d226df7134cf87a9b9351fc9c28a89d6a | [
"Apache-2.0"
] | null | null | null | src/modlunky2/sprites/monsters/big.py | mriswithe/modlunky2 | 20de5c7d226df7134cf87a9b9351fc9c28a89d6a | [
"Apache-2.0"
] | null | null | null | from pathlib import Path
from ..base_classes.base_sprite_loader import BaseSpriteLoader
class Big1(BaseSpriteLoader):
_sprite_sheet_path = Path("Data/Textures/monstersbig01.png")
_chunk_size = 128
_chunk_map = {
"cavemanboss": (0, 0, 2, 2),
"giantspider": (0, 10, 2, 12),
"queenbee... | 25.015152 | 64 | 0.562689 | 211 | 1,651 | 4.175355 | 0.312796 | 0.14983 | 0.183882 | 0.211124 | 0.476731 | 0.476731 | 0.320091 | 0 | 0 | 0 | 0 | 0.115641 | 0.271956 | 1,651 | 65 | 65 | 25.4 | 0.617304 | 0 | 0 | 0.230769 | 0 | 0 | 0.207147 | 0.112659 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.038462 | 0 | 0.5 | 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 | 0 | 0 | 0 | 2 |
999e7ada6755057b2bc606106ac56df66fb8b441 | 1,446 | py | Python | MachineInterface/mproxy/server/job_status.py | KTH-HPC/vestec-system | 8168b90385468ca5e1ed701b5a0090e4423186c7 | [
"BSD-3-Clause"
] | 1 | 2021-10-31T08:41:58.000Z | 2021-10-31T08:41:58.000Z | MachineInterface/mproxy/server/job_status.py | KTH-HPC/vestec-system | 8168b90385468ca5e1ed701b5a0090e4423186c7 | [
"BSD-3-Clause"
] | null | null | null | MachineInterface/mproxy/server/job_status.py | KTH-HPC/vestec-system | 8168b90385468ca5e1ed701b5a0090e4423186c7 | [
"BSD-3-Clause"
] | 1 | 2022-02-08T16:57:05.000Z | 2022-02-08T16:57:05.000Z | import time
import datetime
from dateutil.parser import parse
class JobStatus:
def __init__(self, queue_id, status, walltime, number_nodes, submit_time, start_time, end_time):
self.queue_id=queue_id
self.status=status
self.walltime=walltime
self.number_nodes=number_nodes
sel... | 32.863636 | 132 | 0.644537 | 180 | 1,446 | 4.988889 | 0.2 | 0.100223 | 0.072383 | 0.084633 | 0.140312 | 0.093541 | 0.093541 | 0.093541 | 0 | 0 | 0 | 0 | 0.230982 | 1,446 | 44 | 133 | 32.863636 | 0.807554 | 0 | 0 | 0.117647 | 0 | 0 | 0.024188 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.088235 | 0.147059 | 0.617647 | 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 | 0 | 0 | 0 | 2 |
99a1309fdf682660b44c9cdb76eca07c595e6924 | 3,024 | py | Python | tools/lcm_logger.py | GTLIDAR/drake-schunk-driver | 65230aac6a5f5f4906c5ce2aa33f5469a0800342 | [
"BSD-3-Clause"
] | 2 | 2020-02-16T02:18:38.000Z | 2020-02-16T02:18:46.000Z | tools/lcm_logger.py | GTLIDAR/drake-schunk-driver | 65230aac6a5f5f4906c5ce2aa33f5469a0800342 | [
"BSD-3-Clause"
] | 3 | 2018-04-02T20:54:23.000Z | 2019-02-08T18:34:16.000Z | tools/lcm_logger.py | GTLIDAR/drake-schunk-driver | 65230aac6a5f5f4906c5ce2aa33f5469a0800342 | [
"BSD-3-Clause"
] | 3 | 2018-04-02T20:47:17.000Z | 2021-03-19T16:08:11.000Z | #!/usr/bin/env python
import argparse
import sys
import lcm_adapter as lcm
if len(sys.argv) < 2:
print """The first argument to this command must be the directory
of the generated python files for LCM messages."""
sys.exit(1)
MESSAGE_CLASSES = lcm.get_all_lcm_message_classes(sys.argv[1])
def ... | 35.576471 | 79 | 0.627976 | 383 | 3,024 | 4.796345 | 0.37859 | 0.035384 | 0.027763 | 0.022863 | 0.109962 | 0.064235 | 0 | 0 | 0 | 0 | 0 | 0.001779 | 0.256283 | 3,024 | 84 | 80 | 36 | 0.815029 | 0.04332 | 0 | 0.126984 | 1 | 0.015873 | 0.156009 | 0 | 0 | 0 | 0 | 0 | 0.015873 | 0 | null | null | 0.015873 | 0.047619 | null | null | 0.063492 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
99a891aedae6992a71d2251dfc4ff9348ce3d420 | 1,481 | py | Python | Examen_02_sim01/p4/p4.py | GuidoZalles/Computacion_para_Ingenieria | 2afc06784760ca07786396374397a32ac2c19a27 | [
"Apache-2.0"
] | null | null | null | Examen_02_sim01/p4/p4.py | GuidoZalles/Computacion_para_Ingenieria | 2afc06784760ca07786396374397a32ac2c19a27 | [
"Apache-2.0"
] | null | null | null | Examen_02_sim01/p4/p4.py | GuidoZalles/Computacion_para_Ingenieria | 2afc06784760ca07786396374397a32ac2c19a27 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Tue Feb 15 19:25:58 2022
@author: User
"""
class person:
def __init__(self, name, phone_number, email_addres, addres):
self.name = name
self.phone_number = phone_number
self.email_addres = email_addres
self.addres = addres
de... | 23.140625 | 94 | 0.602296 | 163 | 1,481 | 5.184049 | 0.355828 | 0.091124 | 0.071006 | 0.100592 | 0.297041 | 0.297041 | 0.297041 | 0.297041 | 0.297041 | 0.132544 | 0 | 0.026949 | 0.298447 | 1,481 | 64 | 95 | 23.140625 | 0.786333 | 0.049291 | 0 | 0.176471 | 0 | 0 | 0.052106 | 0.014989 | 0 | 0 | 0 | 0 | 0 | 1 | 0.264706 | false | 0.147059 | 0 | 0 | 0.382353 | 0.029412 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 2 |
41d4b3a8528e092d2bed2da155c8fbd1a073ab7d | 869 | py | Python | test/test_signal.py | dabercro/dynamo-consistency | f37dfebe781a833e9ae30869d8f57be79b4f583c | [
"MIT"
] | null | null | null | test/test_signal.py | dabercro/dynamo-consistency | f37dfebe781a833e9ae30869d8f57be79b4f583c | [
"MIT"
] | 1 | 2018-02-20T21:21:14.000Z | 2018-02-20T21:21:14.000Z | test/test_signal.py | dabercro/dynamo-consistency | f37dfebe781a833e9ae30869d8f57be79b4f583c | [
"MIT"
] | 2 | 2018-06-25T11:27:45.000Z | 2021-05-13T20:32:36.000Z | #! /usr/bin/env python
# This is to allow operators to disable a site and separately
# kill the process without un-disabling the site
import unittest
from dynamo_consistency import signaling
from dynamo_consistency import summary
from dynamo_consistency import main
from dynamo_consistency import picker
import base
... | 25.558824 | 68 | 0.728423 | 112 | 869 | 5.482143 | 0.455357 | 0.089577 | 0.136808 | 0.175896 | 0.267101 | 0.267101 | 0.267101 | 0.198697 | 0.198697 | 0.198697 | 0 | 0.002821 | 0.18412 | 869 | 33 | 69 | 26.333333 | 0.863188 | 0.147296 | 0 | 0.105263 | 0 | 0 | 0.02439 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 1 | 0.052632 | false | 0 | 0.315789 | 0 | 0.421053 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
41e4a272d03b82c913d673af1e5e15ff825ef623 | 2,074 | py | Python | blockade/komand_blockade/actions/add_user/schema.py | xhennessy-r7/insightconnect-plugins | 59268051313d67735b5dd3a30222eccb92aca8e9 | [
"MIT"
] | null | null | null | blockade/komand_blockade/actions/add_user/schema.py | xhennessy-r7/insightconnect-plugins | 59268051313d67735b5dd3a30222eccb92aca8e9 | [
"MIT"
] | null | null | null | blockade/komand_blockade/actions/add_user/schema.py | xhennessy-r7/insightconnect-plugins | 59268051313d67735b5dd3a30222eccb92aca8e9 | [
"MIT"
] | null | null | null | # GENERATED BY KOMAND SDK - DO NOT EDIT
import komand
import json
class Input:
USER_EMAIL = "user_email"
USER_NAME = "user_name"
USER_ROLE = "user_role"
class Output:
API_KEY = "api_key"
EMAIL = "email"
MESSAGE = "message"
NAME = "name"
ROLE = "role"
SUCCESS = "success"
... | 18.192982 | 57 | 0.486982 | 194 | 2,074 | 5.005155 | 0.257732 | 0.082389 | 0.123584 | 0.035015 | 0.395469 | 0.352214 | 0.352214 | 0.189495 | 0.088568 | 0.088568 | 0 | 0.006401 | 0.322083 | 2,074 | 113 | 58 | 18.353982 | 0.684211 | 0.01784 | 0 | 0.333333 | 1 | 0 | 0.743489 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019608 | false | 0 | 0.019608 | 0 | 0.186275 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
5105155b27194145a1c2533733e5d9490dd7a885 | 132 | py | Python | numba_stream/__init__.py | jackd/numba-stream | 79a12616a4a5b3107d8e9c17dc98cdeb79b2430a | [
"Apache-2.0"
] | null | null | null | numba_stream/__init__.py | jackd/numba-stream | 79a12616a4a5b3107d8e9c17dc98cdeb79b2430a | [
"Apache-2.0"
] | null | null | null | numba_stream/__init__.py | jackd/numba-stream | 79a12616a4a5b3107d8e9c17dc98cdeb79b2430a | [
"Apache-2.0"
] | null | null | null | from . import grid, lif, neighbors, ragged, utils
__all__ = [
"grid",
"utils",
"ragged",
"neighbors",
"lif",
]
| 13.2 | 49 | 0.537879 | 13 | 132 | 5.153846 | 0.615385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.287879 | 132 | 9 | 50 | 14.666667 | 0.712766 | 0 | 0 | 0 | 0 | 0 | 0.204545 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 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 | 0 | 0 | 0 | 2 |
510f5b8577eceaa2d67a2069c8c286b003c41202 | 2,371 | py | Python | rescape_region/models/project.py | calocan/rescape-region | 8cb0c4d5e2f4c92939eb9a30473808decdb4bef2 | [
"MIT"
] | 1 | 2021-05-08T12:04:23.000Z | 2021-05-08T12:04:23.000Z | rescape_region/models/project.py | rescapes/rescape-region | b247aa277928d126bcf020c8204994b00ae4c18d | [
"MIT"
] | 15 | 2021-04-06T18:05:04.000Z | 2022-03-12T00:22:35.000Z | rescape_region/models/project.py | rescapes/rescape-region | b247aa277928d126bcf020c8204994b00ae4c18d | [
"MIT"
] | null | null | null | import reversion
from django.contrib.auth import get_user_model
from django.contrib.gis.db.models import SET_NULL, CASCADE, Q
from django.db.models import (
CharField,
ForeignKey, ManyToManyField, UniqueConstraint)
from django.db.models import JSONField
from safedelete.models import SafeDeleteModel
from rescap... | 45.596154 | 117 | 0.710671 | 291 | 2,371 | 5.66323 | 0.439863 | 0.024272 | 0.025485 | 0.021845 | 0.14199 | 0.081311 | 0 | 0 | 0 | 0 | 0 | 0.006424 | 0.212147 | 2,371 | 51 | 118 | 46.490196 | 0.875803 | 0.334036 | 0 | 0 | 0 | 0 | 0.074887 | 0.036798 | 0 | 0 | 0 | 0.019608 | 0 | 1 | 0.033333 | false | 0 | 0.266667 | 0.033333 | 0.633333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
512d55659640ebb6a556347baa4a333ef9d98192 | 1,478 | py | Python | tests/highlevel/highlink-schema-tf.py | sjdv1982/seamless | 1b814341e74a56333c163f10e6f6ceab508b7df9 | [
"MIT"
] | 15 | 2017-06-07T12:49:12.000Z | 2020-07-25T18:06:04.000Z | tests/highlevel/highlink-schema-tf.py | sjdv1982/seamless | 1b814341e74a56333c163f10e6f6ceab508b7df9 | [
"MIT"
] | 110 | 2016-06-21T23:20:44.000Z | 2022-02-24T16:15:22.000Z | tests/highlevel/highlink-schema-tf.py | sjdv1982/seamless | 1b814341e74a56333c163f10e6f6ceab508b7df9 | [
"MIT"
] | 6 | 2016-06-21T11:19:22.000Z | 2019-01-21T13:45:39.000Z | from seamless.highlevel import Context, Cell, Transformer
ctx = Context()
ctx.v = lambda a: 42
ctx.v.a = "test"
ctx.v_schema = Cell()
ctx.v_schema.celltype = "plain"
ctx.translate()
ctx.link(ctx.v.schema, ctx.v_schema)
ctx.translate()
ctx.v_schema.set({'type': 'object', 'properties': {'a': {'type': 'integer'}}})
ctx.c... | 28.423077 | 78 | 0.691475 | 246 | 1,478 | 4.101626 | 0.215447 | 0.138751 | 0.188305 | 0.11893 | 0.551041 | 0.517344 | 0.469772 | 0.319128 | 0.22894 | 0.166501 | 0 | 0.013483 | 0.096752 | 1,478 | 52 | 79 | 28.423077 | 0.742322 | 0.075778 | 0 | 0.530612 | 0 | 0 | 0.11437 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.020408 | 0 | 0.020408 | 0.55102 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
51493c53717606761bb6b13240fa86406df2fac3 | 985 | py | Python | cms/tests.py | royaleagle-dev/djangoblog | 624a17972772d54fc44d5a480fe42011c9b272fa | [
"Apache-2.0"
] | null | null | null | cms/tests.py | royaleagle-dev/djangoblog | 624a17972772d54fc44d5a480fe42011c9b272fa | [
"Apache-2.0"
] | null | null | null | cms/tests.py | royaleagle-dev/djangoblog | 624a17972772d54fc44d5a480fe42011c9b272fa | [
"Apache-2.0"
] | null | null | null | from django.test import TestCase
from . models import Post, Tag, Category
def createCategory(title):
return Category.objects.create(title = title)
def createTag(name):
return Tag.objects.create(name = name)
def createPost(title, body, author, postState):
tag = Tag.objects.create(name = 'NewT')
post = Post.object... | 29.848485 | 119 | 0.73401 | 131 | 985 | 5.427481 | 0.343511 | 0.109705 | 0.075949 | 0.084388 | 0.064698 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00116 | 0.124873 | 985 | 32 | 120 | 30.78125 | 0.823666 | 0 | 0 | 0 | 0 | 0 | 0.079188 | 0 | 0 | 0 | 0 | 0 | 0.12 | 1 | 0.28 | false | 0 | 0.08 | 0.08 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
515285c60dcab2bc55d78dce23f2882c85fc837c | 279 | py | Python | print-var.py | christoga/python | 1395b3177e7baf46677a7a7a4ae89d2488c6f0fa | [
"MIT"
] | 5 | 2015-11-15T19:08:31.000Z | 2015-11-27T02:34:28.000Z | print-var.py | christoga/python | 1395b3177e7baf46677a7a7a4ae89d2488c6f0fa | [
"MIT"
] | null | null | null | print-var.py | christoga/python | 1395b3177e7baf46677a7a7a4ae89d2488c6f0fa | [
"MIT"
] | null | null | null | my_name = 'Andre Christoga'
my_age = 11 # Really, this is my age
# my_height = 150 # Centimeter
# my_weight = 32 # Kilogram
# my_eyes = "Brown"
# my_teeth = "White"
print "Oh, Hello there."
print "My name is " + my_name
print "My age is 11"
print "I know, too young to code?"
| 23.25 | 36 | 0.670251 | 48 | 279 | 3.75 | 0.604167 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040909 | 0.21147 | 279 | 11 | 37 | 25.363636 | 0.777273 | 0.401434 | 0 | 0 | 0 | 0 | 0.503145 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.666667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
515cab618ed79aaba5d009928d26db2168402cb0 | 6,387 | py | Python | tests/test_271.py | pedromtorres/TigerShark | 2790a7c03905a094b126b48387c7919c09cce238 | [
"BSD-3-Clause"
] | 24 | 2015-03-18T10:15:20.000Z | 2022-03-18T13:38:34.000Z | tests/test_271.py | tspannhw/TigerShark | 5081641f1b189a43e9eab4813256598cc0a79f6f | [
"BSD-3-Clause"
] | 6 | 2015-03-27T12:36:57.000Z | 2021-04-13T15:01:24.000Z | tests/test_271.py | tspannhw/TigerShark | 5081641f1b189a43e9eab4813256598cc0a79f6f | [
"BSD-3-Clause"
] | 21 | 2015-11-21T09:19:47.000Z | 2020-09-17T16:52:50.000Z | import unittest
import logging
import sys
import datetime
from tigershark.facade import f271
from tigershark.parsers import M271_4010_X092_A1
class TestParsed271(unittest.TestCase):
def setUp(self):
m = M271_4010_X092_A1.parsed_271
with open('tests/271-example.txt') as f:
parsed = m.u... | 41.206452 | 78 | 0.608736 | 690 | 6,387 | 5.469565 | 0.242029 | 0.18283 | 0.059353 | 0.024112 | 0.455485 | 0.330419 | 0.271595 | 0.152623 | 0.138845 | 0.138845 | 0 | 0.04057 | 0.274464 | 6,387 | 154 | 79 | 41.474026 | 0.773845 | 0 | 0 | 0.176471 | 0 | 0 | 0.123376 | 0.003288 | 0 | 0 | 0 | 0 | 0.411765 | 0 | null | null | 0 | 0.044118 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
515e89e12ec857736349c37b4aecc618592abe73 | 77 | py | Python | const.py | tfyoung/wattsonhass | eece56779561277fa9f2928230ac39bd43329344 | [
"Apache-2.0"
] | 1 | 2021-02-28T12:07:20.000Z | 2021-02-28T12:07:20.000Z | const.py | tfyoung/wattsonhass | eece56779561277fa9f2928230ac39bd43329344 | [
"Apache-2.0"
] | null | null | null | const.py | tfyoung/wattsonhass | eece56779561277fa9f2928230ac39bd43329344 | [
"Apache-2.0"
] | null | null | null | """Constants for the Wattson power meter integration."""
DOMAIN = "wattson"
| 19.25 | 56 | 0.727273 | 9 | 77 | 6.222222 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 77 | 3 | 57 | 25.666667 | 0.848485 | 0.649351 | 0 | 0 | 0 | 0 | 0.333333 | 0 | 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 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
51617330e9ebead5bbb61a5ae564be20889db321 | 893 | py | Python | unittest_reinvent/scoring_tests/scoring_components/test_tanimoto_similarity.py | MolecularAI/reinvent-scoring | f7e052ceeffd29e17e1672c33607189873c82a45 | [
"MIT"
] | null | null | null | unittest_reinvent/scoring_tests/scoring_components/test_tanimoto_similarity.py | MolecularAI/reinvent-scoring | f7e052ceeffd29e17e1672c33607189873c82a45 | [
"MIT"
] | 2 | 2021-11-01T23:19:42.000Z | 2021-11-22T23:41:39.000Z | unittest_reinvent/scoring_tests/scoring_components/test_tanimoto_similarity.py | MolecularAI/reinvent-scoring | f7e052ceeffd29e17e1672c33607189873c82a45 | [
"MIT"
] | 2 | 2021-11-18T13:14:22.000Z | 2022-03-16T07:52:57.000Z | import unittest
import numpy.testing as npt
from unittest_reinvent.fixtures.test_data import CELECOXIB, CELECOXIB_C, BUTANE
from unittest_reinvent.scoring_tests.scoring_components.fixtures import score_single, score, instantiate_component
class TestTanimotoSimilarity(unittest.TestCase):
@classmethod
def se... | 31.892857 | 114 | 0.753639 | 115 | 893 | 5.6 | 0.365217 | 0.068323 | 0.10559 | 0.124224 | 0.310559 | 0.251553 | 0.251553 | 0.251553 | 0.251553 | 0.177019 | 0 | 0.018667 | 0.160134 | 893 | 27 | 115 | 33.074074 | 0.84 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 1 | 0.277778 | false | 0 | 0.222222 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
516516f68aa7cecc66414e1c2f63b93bd749ec5c | 59 | py | Python | example_snippets/multimenus_snippets/NewSnippets/SymPy/Manipulating expressions/Miscellaneous/Simplify Bessel functions.py | kuanpern/jupyterlab-snippets-multimenus | 477f51cfdbad7409eab45abe53cf774cd70f380c | [
"BSD-3-Clause"
] | null | null | null | example_snippets/multimenus_snippets/NewSnippets/SymPy/Manipulating expressions/Miscellaneous/Simplify Bessel functions.py | kuanpern/jupyterlab-snippets-multimenus | 477f51cfdbad7409eab45abe53cf774cd70f380c | [
"BSD-3-Clause"
] | null | null | null | example_snippets/multimenus_snippets/NewSnippets/SymPy/Manipulating expressions/Miscellaneous/Simplify Bessel functions.py | kuanpern/jupyterlab-snippets-multimenus | 477f51cfdbad7409eab45abe53cf774cd70f380c | [
"BSD-3-Clause"
] | 1 | 2021-02-04T04:51:48.000Z | 2021-02-04T04:51:48.000Z | expr = besselj(x, z*polar_lift(-1))
expr = besselsimp(expr) | 29.5 | 35 | 0.711864 | 10 | 59 | 4.1 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018868 | 0.101695 | 59 | 2 | 36 | 29.5 | 0.754717 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
516648ad34a16a2a40620bcd9fd2d7782735d4c0 | 274 | py | Python | Utility.py | YiFanChen99/PyQtComponent | fdf83d6e3f8a448acce866db85ce418ce0df121e | [
"MIT"
] | null | null | null | Utility.py | YiFanChen99/PyQtComponent | fdf83d6e3f8a448acce866db85ce418ce0df121e | [
"MIT"
] | null | null | null | Utility.py | YiFanChen99/PyQtComponent | fdf83d6e3f8a448acce866db85ce418ce0df121e | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from PyQt5.QtWidgets import *
def launch_application(creator):
def wrapper():
import sys
app = QApplication(sys.argv)
widget = creator()
widget.show()
app.exec_()
return wrapper
| 19.571429 | 36 | 0.591241 | 31 | 274 | 5.16129 | 0.774194 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010152 | 0.281022 | 274 | 13 | 37 | 21.076923 | 0.80203 | 0.153285 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
5ab4e1cb0b8290fb37e3f50f7412275885208296 | 4,463 | py | Python | geocoder/opencage.py | guess3233qa/geocoder1 | 31de0344e698fb209b709c5bb11181e845279a59 | [
"MIT"
] | 1 | 2021-02-08T13:30:00.000Z | 2021-02-08T13:30:00.000Z | geocoder/opencage.py | star-is-here/geocoder | 31b5ccdf54f199d7640995a787c84909687ee03c | [
"MIT"
] | null | null | null | geocoder/opencage.py | star-is-here/geocoder | 31b5ccdf54f199d7640995a787c84909687ee03c | [
"MIT"
] | null | null | null | #!/usr/bin/python
# coding: utf8
from __future__ import absolute_import
from geocoder.base import Base
from geocoder.keys import opencage_key
class OpenCage(Base):
"""
OpenCage Geocoding Services
===========================
OpenCage Geocoder simple, easy, and open geocoding for the entire world
O... | 26.724551 | 93 | 0.60363 | 507 | 4,463 | 5.238659 | 0.278107 | 0.105045 | 0.110693 | 0.150226 | 0.278614 | 0.225904 | 0.045181 | 0.045181 | 0.045181 | 0.045181 | 0 | 0.003056 | 0.266861 | 4,463 | 166 | 94 | 26.885542 | 0.80868 | 0.125476 | 0 | 0.201681 | 0 | 0 | 0.141595 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.226891 | false | 0 | 0.02521 | 0.176471 | 0.512605 | 0.008403 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 0 | 0 | 0 | 2 |
5abbfe4f3603e53b2ca44eaf8727990f742d0172 | 1,006 | py | Python | aspen/__main__.py | Acidburn0zzz/aspen-python | 3b25a3ca041bd0bf4d313f7fc3a15cf092903de7 | [
"MIT"
] | null | null | null | aspen/__main__.py | Acidburn0zzz/aspen-python | 3b25a3ca041bd0bf4d313f7fc3a15cf092903de7 | [
"MIT"
] | null | null | null | aspen/__main__.py | Acidburn0zzz/aspen-python | 3b25a3ca041bd0bf4d313f7fc3a15cf092903de7 | [
"MIT"
] | null | null | null | """
python -m aspen
===============
Aspen ships with a server (wsgiref.simple_server) that is
suitable for development and testing. It can be invoked via:
python -m aspen
though even for development you'll likely want to specify a
project root, so a more likely incantation is:
ASPEN_PROJECT_ROOT=/path/to/w... | 27.944444 | 71 | 0.754473 | 146 | 1,006 | 4.952055 | 0.547945 | 0.055325 | 0.08852 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010626 | 0.158052 | 1,006 | 35 | 72 | 28.742857 | 0.842975 | 0.475149 | 0 | 0 | 0 | 0 | 0.121154 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.571429 | 0 | 0.571429 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
5ad437188ad82881b1a7663301a30cca6f73df88 | 2,745 | py | Python | modules/2.79/bpy/ops/uv.py | cmbasnett/fake-bpy-module | acb8b0f102751a9563e5b5e5c7cd69a4e8aa2a55 | [
"MIT"
] | null | null | null | modules/2.79/bpy/ops/uv.py | cmbasnett/fake-bpy-module | acb8b0f102751a9563e5b5e5c7cd69a4e8aa2a55 | [
"MIT"
] | null | null | null | modules/2.79/bpy/ops/uv.py | cmbasnett/fake-bpy-module | acb8b0f102751a9563e5b5e5c7cd69a4e8aa2a55 | [
"MIT"
] | null | null | null | def align(axis='ALIGN_AUTO'):
pass
def average_islands_scale():
pass
def circle_select(x=0, y=0, radius=1, gesture_mode=0):
pass
def cube_project(cube_size=1.0, correct_aspect=True, clip_to_bounds=False, scale_to_bounds=False):
pass
def cursor_set(location=(0.0, 0.0)):
pass
def cylinder_pr... | 17.941176 | 175 | 0.726047 | 433 | 2,745 | 4.357968 | 0.332564 | 0.137255 | 0.069952 | 0.023847 | 0.280339 | 0.237944 | 0.237944 | 0.227875 | 0.18442 | 0.18442 | 0 | 0.031719 | 0.150091 | 2,745 | 152 | 176 | 18.059211 | 0.777111 | 0 | 0 | 0.5 | 0 | 0 | 0.044841 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0.5 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
850fc416eea9a42898354a3b01b19081bd0c187e | 2,370 | py | Python | facebook_post_scrapper.py | dev-strender/facebook_scrapper | 400a16bf54e2b3dcb3fd3bac62df96e5fe418b15 | [
"MIT"
] | 2 | 2015-03-08T12:27:22.000Z | 2015-03-08T12:27:24.000Z | facebook_post_scrapper.py | dev-strender/facebook_scrapper | 400a16bf54e2b3dcb3fd3bac62df96e5fe418b15 | [
"MIT"
] | null | null | null | facebook_post_scrapper.py | dev-strender/facebook_scrapper | 400a16bf54e2b3dcb3fd3bac62df96e5fe418b15 | [
"MIT"
] | null | null | null | #-*- coding: utf-8 -*-
#from datetime import datetime
#import facebook
import urllib2
import mechanize
import json
import sys, os
from config import fb_email, fb_pass, app_id, group_id, limit
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
facebook_app_link='https://www.facebook.com/dialog/oauth?scope=manage_... | 34.852941 | 340 | 0.693249 | 375 | 2,370 | 4.250667 | 0.402667 | 0.081556 | 0.040151 | 0.033877 | 0.205772 | 0.176913 | 0.130489 | 0.130489 | 0.04266 | 0.04266 | 0 | 0.013445 | 0.089873 | 2,370 | 67 | 341 | 35.373134 | 0.725545 | 0.040928 | 0 | 0.159091 | 0 | 0.090909 | 0.444004 | 0.089065 | 0.022727 | 0 | 0 | 0 | 0 | 0 | null | null | 0.136364 | 0.113636 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
85193cd46f2b51d89264d567ad17c94fb2c3a891 | 1,524 | py | Python | src/lcmap/client/api/auth.py | lcmap/client-py | fc356d9b2917f8e2d0e73048c9bf86982caa6676 | [
"NASA-1.3"
] | null | null | null | src/lcmap/client/api/auth.py | lcmap/client-py | fc356d9b2917f8e2d0e73048c9bf86982caa6676 | [
"NASA-1.3"
] | null | null | null | src/lcmap/client/api/auth.py | lcmap/client-py | fc356d9b2917f8e2d0e73048c9bf86982caa6676 | [
"NASA-1.3"
] | null | null | null | """
The authentication module holds the Auth class which is is not only responsible
for the action of logging in, but also providing accessor method to the data
obtained upon a successful login.
"""
import logging
from lcmap.client.api import routes
log = logging.getLogger(__name__)
context = routes.auth_context
lo... | 27.214286 | 79 | 0.629265 | 191 | 1,524 | 4.884817 | 0.356021 | 0.064309 | 0.090032 | 0.091104 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.253937 | 1,524 | 55 | 80 | 27.709091 | 0.82058 | 0.124672 | 0 | 0 | 0 | 0 | 0.068627 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.184211 | false | 0.157895 | 0.052632 | 0.131579 | 0.421053 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 2 |
852c0ab02a12f08a6f0bb83704cd9fe9581e2543 | 7,390 | py | Python | typeddfs/_mixins/_retype_mixin.py | dmyersturnbull/typed-dfs | 57504da6cf2085e96ef62f35afcc2f733a9910e0 | [
"Apache-2.0"
] | 5 | 2020-07-14T14:03:35.000Z | 2022-01-15T03:34:15.000Z | typeddfs/_mixins/_retype_mixin.py | kokellab/typed-dfs | 11c80080446a28e618a379569606f1c1ba387062 | [
"Apache-2.0"
] | 83 | 2021-01-06T06:19:12.000Z | 2022-03-28T03:06:18.000Z | typeddfs/_mixins/_retype_mixin.py | kokellab/typed-dfs | 11c80080446a28e618a379569606f1c1ba387062 | [
"Apache-2.0"
] | null | null | null | """
Mixin that overrides Pandas functions to retype.
"""
import pandas as pd
from pandas.core.frame import DataFrame as _InternalDataFrame
from typeddfs.df_errors import UnsupportedOperationError
class _RetypeMixin:
def __add__(self, other):
x = super().__add__(other)
return self._change_if_df(x... | 31.313559 | 94 | 0.620568 | 856 | 7,390 | 4.815421 | 0.141355 | 0.101892 | 0.083697 | 0.117176 | 0.591703 | 0.554828 | 0.457302 | 0.406599 | 0.207909 | 0.161815 | 0 | 0.000361 | 0.249662 | 7,390 | 235 | 95 | 31.446809 | 0.743012 | 0.055751 | 0 | 0.313253 | 0 | 0 | 0.010496 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.277108 | false | 0 | 0.018072 | 0.042169 | 0.590361 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
852c717ab6013f61566b41226504075417ed71cd | 551 | py | Python | djbver/db/models.py | springkjw/djbver | 671de8090fec885c15ded7a1a8aacc19d544d094 | [
"MIT"
] | null | null | null | djbver/db/models.py | springkjw/djbver | 671de8090fec885c15ded7a1a8aacc19d544d094 | [
"MIT"
] | 5 | 2021-03-30T13:47:57.000Z | 2021-09-22T19:15:26.000Z | djbver/db/models.py | springkjw/djbver | 671de8090fec885c15ded7a1a8aacc19d544d094 | [
"MIT"
] | null | null | null | from django.db import models
__all__ = [
'GenericModel',
'GenericAtiveModel',
]
class GenericModel(models.Model):
created = models.DateTimeField('생성일', auto_now_add=True)
updated = models.DateTimeField('수정일', auto_now=True)
class Meta:
abstract = True
class GenericActiveModel(models.M... | 21.192308 | 60 | 0.68784 | 62 | 551 | 5.935484 | 0.451613 | 0.206522 | 0.141304 | 0.157609 | 0.565217 | 0.565217 | 0.565217 | 0.565217 | 0.565217 | 0.565217 | 0 | 0 | 0.199637 | 551 | 25 | 61 | 22.04 | 0.834467 | 0 | 0 | 0.5 | 0 | 0 | 0.085299 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
5170d881c7a8df80f7334c36da539ccea741fdfe | 1,729 | py | Python | PI_SimData1.py | pbuckner/xppython3-demos | 8b6441da93c8982faa90d84d81f7c8b1ba7b1571 | [
"MIT"
] | 1 | 2021-09-21T18:48:38.000Z | 2021-09-21T18:48:38.000Z | PI_SimData1.py | pbuckner/xppython3-demos | 8b6441da93c8982faa90d84d81f7c8b1ba7b1571 | [
"MIT"
] | 1 | 2022-01-11T05:56:15.000Z | 2022-01-16T15:53:21.000Z | PI_SimData1.py | pbuckner/xppython3-demos | 8b6441da93c8982faa90d84d81f7c8b1ba7b1571 | [
"MIT"
] | null | null | null | """
SimData1.py
Ported to Python by Sandy Barbour - 28/04/2005
Ported to XPPython3 by Peter Buckner - 2-Aug-2020
This example demonstrates how to interact with X-Plane by reading and writing
data. This example creates menus items that change the nav-1 radio frequency.
"""
import xp
class PythonInterf... | 35.285714 | 116 | 0.651822 | 212 | 1,729 | 5.306604 | 0.518868 | 0.035556 | 0.035556 | 0.046222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03362 | 0.260266 | 1,729 | 48 | 117 | 36.020833 | 0.845973 | 0.313476 | 0 | 0.086957 | 0 | 0 | 0.136572 | 0.050412 | 0 | 0 | 0 | 0 | 0 | 1 | 0.26087 | false | 0.086957 | 0.043478 | 0.043478 | 0.434783 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
51773f027e0351f9e76dd4ae0f17318c0af9c884 | 2,250 | py | Python | lpd/metrics/metric_base.py | RoySadaka/lpd | 921454d9730d8228f4b0ca5349b0558ebd123c65 | [
"MIT"
] | 4 | 2020-10-02T10:04:19.000Z | 2022-01-19T12:45:02.000Z | lpd/metrics/metric_base.py | RoySadaka/lpd | 921454d9730d8228f4b0ca5349b0558ebd123c65 | [
"MIT"
] | 1 | 2020-10-06T17:43:57.000Z | 2020-10-06T17:47:43.000Z | lpd/metrics/metric_base.py | RoySadaka/lpd | 921454d9730d8228f4b0ca5349b0558ebd123c65 | [
"MIT"
] | 1 | 2020-10-03T17:21:32.000Z | 2020-10-03T17:21:32.000Z | from lpd.enums.metric_method import MetricMethod
import torch as T
from lpd.enums.confusion_matrix_based_metric import ConfusionMatrixBasedMetric
class MetricBase:
"""
Args:
metric_method - from lpd.enums.MetricMethod, use this to dictate how this metric is behaving over the batches,
... | 45.918367 | 164 | 0.725778 | 274 | 2,250 | 5.675182 | 0.364964 | 0.106109 | 0.023151 | 0.055949 | 0.064309 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001118 | 0.204889 | 2,250 | 48 | 165 | 46.875 | 0.868083 | 0.214222 | 0 | 0 | 0 | 0.034483 | 0.102488 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.206897 | false | 0 | 0.103448 | 0.068966 | 0.551724 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
51a49a4995bff223d947f29602fdc6e1a5d73c32 | 208 | py | Python | main.py | syqu22/discord-bot-wow-helper | b1d5426b683c41dfe2c7d6742a671e6d209b6e42 | [
"MIT"
] | 1 | 2021-12-14T17:23:12.000Z | 2021-12-14T17:23:12.000Z | main.py | syqu22/discord-bot-wow-helper | b1d5426b683c41dfe2c7d6742a671e6d209b6e42 | [
"MIT"
] | null | null | null | main.py | syqu22/discord-bot-wow-helper | b1d5426b683c41dfe2c7d6742a671e6d209b6e42 | [
"MIT"
] | null | null | null | import os
from bot import bot
from dotenv import load_dotenv
# Read environment variables from .env
load_dotenv()
if __name__ == "__main__":
# Start the bot
bot.bot.run(os.getenv("DISCORD_TOKEN"))
| 17.333333 | 43 | 0.730769 | 31 | 208 | 4.548387 | 0.612903 | 0.141844 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.177885 | 208 | 11 | 44 | 18.909091 | 0.824561 | 0.240385 | 0 | 0 | 0 | 0 | 0.135484 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
51ae04a6cf49cbb0f24fa3e18989871f944277d7 | 943 | py | Python | src/yellowdog_client/compute/__init__.py | yellowdog/yellowdog-sdk-python-public | da69a7d6e45c92933e34fefcaef8b5d98dcd6036 | [
"Apache-2.0"
] | null | null | null | src/yellowdog_client/compute/__init__.py | yellowdog/yellowdog-sdk-python-public | da69a7d6e45c92933e34fefcaef8b5d98dcd6036 | [
"Apache-2.0"
] | null | null | null | src/yellowdog_client/compute/__init__.py | yellowdog/yellowdog-sdk-python-public | da69a7d6e45c92933e34fefcaef8b5d98dcd6036 | [
"Apache-2.0"
] | null | null | null | from .compute_changed_event_data import ComputeChangedEventData
from .compute_client import ComputeClient
from .compute_client_impl import ComputeClientImpl
from .compute_requirement_helper import ComputeRequirementHelper
from .compute_requirement_instances_changed_event_listener import \
ComputeRequirementInstance... | 42.863636 | 102 | 0.869565 | 66 | 943 | 11.984848 | 0.378788 | 0.097345 | 0.083439 | 0.078382 | 0.128951 | 0.128951 | 0.128951 | 0 | 0 | 0 | 0 | 0 | 0.092259 | 943 | 21 | 103 | 44.904762 | 0.924065 | 0 | 0 | 0 | 0 | 0 | 0.250265 | 0.198303 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 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 | 2 |
51ba33a22ebf12fec0e07b6d40becaca5f11662d | 116 | py | Python | number/numberSystem.py | Dariece/number_system_calc | 5d5934c59557af9bdf0accdfc68dd8719e7fd331 | [
"Apache-2.0"
] | null | null | null | number/numberSystem.py | Dariece/number_system_calc | 5d5934c59557af9bdf0accdfc68dd8719e7fd331 | [
"Apache-2.0"
] | null | null | null | number/numberSystem.py | Dariece/number_system_calc | 5d5934c59557af9bdf0accdfc68dd8719e7fd331 | [
"Apache-2.0"
] | null | null | null | from enum import Enum
class NumberSystem(Enum):
BINARY = 2
OCTAL = 8
DECIMAL = 10
HEXADECIMAL = 16 | 14.5 | 25 | 0.637931 | 15 | 116 | 4.933333 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.074074 | 0.301724 | 116 | 8 | 26 | 14.5 | 0.839506 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 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 | 0 | 0 | 0 | 2 |
51c8fa56a66ee4effef1038af84f282d8f3c34a3 | 2,792 | py | Python | cwmud/core/help.py | whutch/cwmud | bee8b126a5e70edd0593dae9753a6be8d52357cf | [
"MIT"
] | 11 | 2016-03-03T03:56:59.000Z | 2021-11-19T15:38:51.000Z | cwmud/core/help.py | whutch/atria | bee8b126a5e70edd0593dae9753a6be8d52357cf | [
"MIT"
] | 26 | 2016-08-31T23:19:45.000Z | 2019-10-19T21:50:33.000Z | cwmud/core/help.py | whutch/atria | bee8b126a5e70edd0593dae9753a6be8d52357cf | [
"MIT"
] | 2 | 2016-01-22T21:22:34.000Z | 2016-02-09T06:03:57.000Z | # -*- coding: utf-8 -*-
"""Help information management."""
# Part of Clockwork MUD Server (https://github.com/whutch/cwmud)
# :copyright: (c) 2008 - 2017 Will Hutcheson
# :license: MIT (https://github.com/whutch/cwmud/blob/master/LICENSE.txt)
import fnmatch
import re
from .utils.bases import Manager
class HelpSourc... | 25.851852 | 75 | 0.607808 | 337 | 2,792 | 4.89911 | 0.305638 | 0.059964 | 0.025439 | 0.034525 | 0.302847 | 0.23622 | 0.23622 | 0.23622 | 0.190188 | 0.190188 | 0 | 0.004505 | 0.284384 | 2,792 | 107 | 76 | 26.093458 | 0.821822 | 0.336318 | 0 | 0.09434 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.264151 | false | 0 | 0.056604 | 0.056604 | 0.566038 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
51caa180627fad5f8de627d1958808284fb5c7a9 | 435 | py | Python | oa_server/time_series/urls.py | Open-Acidification/Open_Acidification_Server | 3ae668dc033e1a1478a6fc59b8b4dcec4de87564 | [
"MIT"
] | null | null | null | oa_server/time_series/urls.py | Open-Acidification/Open_Acidification_Server | 3ae668dc033e1a1478a6fc59b8b4dcec4de87564 | [
"MIT"
] | 37 | 2020-04-23T16:55:16.000Z | 2020-11-23T23:25:48.000Z | oa_server/time_series/urls.py | Open-Acidification/TankControllerManager | 3ae668dc033e1a1478a6fc59b8b4dcec4de87564 | [
"MIT"
] | 4 | 2021-09-30T21:43:52.000Z | 2022-02-23T03:26:25.000Z | from django.urls import path
from . import views
urlpatterns = [
path('', views.time_series_save),
path('<int:ts_id>/', views.time_series_detail),
path('<str:ts_type>/', views.time_series_list),
path('<str:ts_type>/generate/hold/', views.time_series_generate_hold),
path('<str:ts_type>/generate/ramp... | 36.25 | 74 | 0.71954 | 63 | 435 | 4.650794 | 0.333333 | 0.1843 | 0.307167 | 0.177474 | 0.215017 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.112644 | 435 | 11 | 75 | 39.545455 | 0.759067 | 0 | 0 | 0 | 0 | 0 | 0.252874 | 0.193103 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 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 | 0 | 0 | 0 | 2 |
51cc3d274750348efa67895ac9e88ba7ad90e3f1 | 912 | py | Python | dae_utils.py | FlorentPajot/sample-projects | dea586307c301a5aedf6ac94f7a6b3b15bde9552 | [
"MIT"
] | null | null | null | dae_utils.py | FlorentPajot/sample-projects | dea586307c301a5aedf6ac94f7a6b3b15bde9552 | [
"MIT"
] | null | null | null | dae_utils.py | FlorentPajot/sample-projects | dea586307c301a5aedf6ac94f7a6b3b15bde9552 | [
"MIT"
] | null | null | null | import numpy as np
from sklearn.base import BaseEstimator, TransformerMixin
class SwapNoise(BaseEstimator, TransformerMixin):
def __init__(self, ratio=.15, random_seed=123):
self.seed = random_seed
self.ratio = ratio
def fit(self):
return self
def transform(self, input... | 30.4 | 67 | 0.591009 | 122 | 912 | 4.229508 | 0.352459 | 0.104651 | 0.054264 | 0.085271 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01087 | 0.29386 | 912 | 30 | 68 | 30.4 | 0.790373 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217391 | false | 0 | 0.086957 | 0.043478 | 0.521739 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
51e23600088ad593a6f5956c2914181ca7e20049 | 3,398 | py | Python | mysite/finance/migrations/0001_initial.py | brzx/djfinance | 958768e3e665a23dad7118741a9c9fcf769574df | [
"BSD-2-Clause"
] | null | null | null | mysite/finance/migrations/0001_initial.py | brzx/djfinance | 958768e3e665a23dad7118741a9c9fcf769574df | [
"BSD-2-Clause"
] | null | null | null | mysite/finance/migrations/0001_initial.py | brzx/djfinance | 958768e3e665a23dad7118741a9c9fcf769574df | [
"BSD-2-Clause"
] | null | null | null | # Generated by Django 2.1.3 on 2019-04-11 09:09
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('djfauth', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='A... | 45.918919 | 115 | 0.587699 | 357 | 3,398 | 5.436975 | 0.263305 | 0.085008 | 0.049459 | 0.056672 | 0.779495 | 0.723854 | 0.631633 | 0.631633 | 0.631633 | 0.586296 | 0 | 0.023657 | 0.266039 | 3,398 | 73 | 116 | 46.547945 | 0.754611 | 0.013243 | 0 | 0.590909 | 1 | 0 | 0.126828 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.030303 | 0 | 0.090909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
51e5e2f9e6590f0c3de91a80f943ddc82d5c24e6 | 226 | py | Python | libpaas/camp/planparser.py | hvishwanath/libpaas | 3df07adca59c003ee754c4e919cf506c13953be1 | [
"MIT"
] | null | null | null | libpaas/camp/planparser.py | hvishwanath/libpaas | 3df07adca59c003ee754c4e919cf506c13953be1 | [
"MIT"
] | null | null | null | libpaas/camp/planparser.py | hvishwanath/libpaas | 3df07adca59c003ee754c4e919cf506c13953be1 | [
"MIT"
] | null | null | null | __author__ = 'hvishwanath'
import yaml
from models import *
class PlanParser(object):
@classmethod
def parse(cls, planfile):
y = yaml.safe_load(file(planfile))
return CAMPPlan.create_from_dict(y)
| 15.066667 | 43 | 0.685841 | 27 | 226 | 5.481481 | 0.814815 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.221239 | 226 | 14 | 44 | 16.142857 | 0.840909 | 0 | 0 | 0 | 0 | 0 | 0.049327 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.625 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
51e80509e8407b12965b7a40a0711a4c2dc1fa8b | 243 | py | Python | module1-introduction-to-sql/buddymove_create.py | alexmjn/DS-Unit-3-Sprint-2-SQL-and-Databases | 89d66757d25b7d07090bfb6280a78b897f87fc69 | [
"MIT"
] | 1 | 2020-02-17T17:02:43.000Z | 2020-02-17T17:02:43.000Z | module1-introduction-to-sql/buddymove_create.py | alexmjn/DS-Unit-3-Sprint-2-SQL-and-Databases | 89d66757d25b7d07090bfb6280a78b897f87fc69 | [
"MIT"
] | null | null | null | module1-introduction-to-sql/buddymove_create.py | alexmjn/DS-Unit-3-Sprint-2-SQL-and-Databases | 89d66757d25b7d07090bfb6280a78b897f87fc69 | [
"MIT"
] | null | null | null | import pandas as pd
import sqlite3
df = pd.read_csv("buddymove_holidayiq.csv")
connection = sqlite3.connect("buddymove_holidayiq.sqlite3")
df.to_sql("review", connection)
print(connection.execute("SELECT * FROM review LIMIT 10").fetchall())
| 27 | 69 | 0.781893 | 33 | 243 | 5.636364 | 0.666667 | 0.096774 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022624 | 0.090535 | 243 | 8 | 70 | 30.375 | 0.819005 | 0 | 0 | 0 | 0 | 0 | 0.349794 | 0.205761 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
51edfd8aa7141c159d7380cdc94b6b92242facba | 469 | py | Python | models/EntryRating.py | felix19350/Nature-Trails | 11b91643e38139ec8c15674289fa67dc0fe65ac4 | [
"Unlicense"
] | null | null | null | models/EntryRating.py | felix19350/Nature-Trails | 11b91643e38139ec8c15674289fa67dc0fe65ac4 | [
"Unlicense"
] | null | null | null | models/EntryRating.py | felix19350/Nature-Trails | 11b91643e38139ec8c15674289fa67dc0fe65ac4 | [
"Unlicense"
] | null | null | null | from google.appengine.ext import db
from models.Trail import Trail
class EntryRating(db.Model):
'''
Stores the ratings users give to locations
Parameters:
entry_key
user_id
rating
'''
trail = db.ReferenceProperty(Trail)
user = db.UserProperty(required = True)
rating ... | 26.055556 | 78 | 0.635394 | 56 | 469 | 5.214286 | 0.660714 | 0.082192 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.260128 | 469 | 18 | 79 | 26.055556 | 0.841499 | 0.19403 | 0 | 0 | 0 | 0 | 0.0317 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0.125 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
51f93647e99d693a4f01deefb081bc1f04d2c371 | 1,365 | py | Python | logic_bank/exec_trans_logic/row_sets.py | valhuber/LogicBank | 0df8790395fe260778e910badcc15fba49c23e96 | [
"BSD-3-Clause"
] | 39 | 2020-10-14T02:23:59.000Z | 2022-02-11T14:08:46.000Z | logic_bank/exec_trans_logic/row_sets.py | valhuber/LogicBank | 0df8790395fe260778e910badcc15fba49c23e96 | [
"BSD-3-Clause"
] | 7 | 2020-10-14T23:59:49.000Z | 2022-03-16T16:25:43.000Z | logic_bank/exec_trans_logic/row_sets.py | valhuber/Logic-Bank | 3f31b47786ce3fae53fd96af8795cd693e20547b | [
"BSD-3-Clause"
] | 7 | 2020-10-17T02:59:51.000Z | 2022-03-26T08:56:46.000Z | from __future__ import annotations
from typing import List, TypeVar, Dict
from sqlalchemy.engine import base
from sqlalchemy.ext.declarative import declarative_base
from logic_bank.exec_row_logic.logic_row import LogicRow
class RowSets():
"""
Sets of rows used in transaction
* processed_rows: Dict o... | 31.744186 | 109 | 0.688645 | 180 | 1,365 | 5.027778 | 0.366667 | 0.070718 | 0.088398 | 0.044199 | 0.046409 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.240293 | 1,365 | 42 | 110 | 32.5 | 0.87271 | 0.324542 | 0 | 0 | 0 | 0 | 0.009281 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
51ffbfd3d872b709f2360f5964f2dd0857b13249 | 462 | py | Python | src/glitchygames/movement/horizontal.py | terrysimons/ghettogames | 23773119d1994251b43c42db39c1c99c08386c24 | [
"BSD-3-Clause"
] | 1 | 2019-07-06T02:01:27.000Z | 2019-07-06T02:01:27.000Z | src/glitchygames/movement/horizontal.py | terrysimons/ghettogames | 23773119d1994251b43c42db39c1c99c08386c24 | [
"BSD-3-Clause"
] | 4 | 2021-12-31T04:18:01.000Z | 2022-03-29T13:40:32.000Z | src/glitchygames/movement/horizontal.py | terrysimons/glitchygames | 23773119d1994251b43c42db39c1c99c08386c24 | [
"BSD-3-Clause"
] | 1 | 2019-07-12T19:41:09.000Z | 2019-07-12T19:41:09.000Z | """
Horizontal:
Adds movement functions along the horizontal (X) axis to a game object
"""
class Horizontal:
def __init__(self, speed):
self.speed = speed
self.current_speed = self.speed.x
def _change_speed(self, value):
self.current_speed = value
def left(self):
self._... | 18.48 | 70 | 0.640693 | 62 | 462 | 4.548387 | 0.387097 | 0.191489 | 0.198582 | 0.159574 | 0.29078 | 0.22695 | 0.22695 | 0.22695 | 0 | 0 | 0 | 0.002899 | 0.253247 | 462 | 24 | 71 | 19.25 | 0.814493 | 0.177489 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.416667 | false | 0 | 0 | 0 | 0.5 | 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 | 0 | 0 | 0 | 2 |
cfa4150c13a90de6b3895ea197f143bf9acae07d | 834 | py | Python | drivers/firmata.py | prozum/embug | dbb84a2f17229725a209a1cd8f99906f34948058 | [
"MIT"
] | null | null | null | drivers/firmata.py | prozum/embug | dbb84a2f17229725a209a1cd8f99906f34948058 | [
"MIT"
] | null | null | null | drivers/firmata.py | prozum/embug | dbb84a2f17229725a209a1cd8f99906f34948058 | [
"MIT"
] | null | null | null | import pyfirmata
dPins = range(14)
aPins = range(18,24)
A0,A1,A2,A3,A4,A5 = aPins
HIGH,OUT = (1,1)
LOW,IN = (0,0)
class Driver():
def __init__(self,device):
self.board = pyfirmata.Arduino(device)
# Setup Analog Pins
it = pyfirmata.util.Iterator(self.board)
it.start()
... | 18.533333 | 62 | 0.558753 | 105 | 834 | 4.380952 | 0.52381 | 0.117391 | 0.095652 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033808 | 0.326139 | 834 | 45 | 63 | 18.533333 | 0.784698 | 0.034772 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.178571 | 0.035714 | null | null | 0.035714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
cfae1b2a8bae0b3534aa7c2f45c77338d26aaf5c | 438 | py | Python | exercicio42.py | shyga362/projetoPython | 1efad8c234b3e728cb23cb02fc11c8e1b7887a25 | [
"MIT"
] | 2 | 2022-01-06T23:31:00.000Z | 2022-01-06T23:35:49.000Z | exercicio42.py | shyga362/projetoPython | 1efad8c234b3e728cb23cb02fc11c8e1b7887a25 | [
"MIT"
] | null | null | null | exercicio42.py | shyga362/projetoPython | 1efad8c234b3e728cb23cb02fc11c8e1b7887a25 | [
"MIT"
] | null | null | null | r1 = float(input("Digite um numero: "))
r2 = float(input("Digite outro numero: "))
r3 = float(input("Digite outro numero: "))
if r1 < r2 + r3 and r2 < r1 + r3 and r3 < r1 + r2:
print("Os seguimentos acima é um triangulo", end='')
if r1 == r2 == r3:
print("equilatero")
elif r1 != r2 != r3 != r1:
... | 31.285714 | 58 | 0.577626 | 63 | 438 | 4.015873 | 0.380952 | 0.063241 | 0.189723 | 0.166008 | 0.213439 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059006 | 0.26484 | 438 | 14 | 59 | 31.285714 | 0.726708 | 0 | 0 | 0.153846 | 0 | 0 | 0.359909 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.384615 | 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 | 0 | 0 | 0 | 2 |
cfc454e37616069169f51eecb957aaca3ad1f6d0 | 2,368 | py | Python | final_exam_may2020/others/practistrash.py | ilante/programming_immanuela_englander | 45d51c99b09ae335a67e03ac5ea79fc775bdf0bd | [
"MIT"
] | null | null | null | final_exam_may2020/others/practistrash.py | ilante/programming_immanuela_englander | 45d51c99b09ae335a67e03ac5ea79fc775bdf0bd | [
"MIT"
] | null | null | null | final_exam_may2020/others/practistrash.py | ilante/programming_immanuela_englander | 45d51c99b09ae335a67e03ac5ea79fc775bdf0bd | [
"MIT"
] | null | null | null | difficultlist = ['>tr|Q9IQN3|Q9IQN3_9HIV1 Protein Rev (Fragment) OS=Human immunodeficiency virus 1 OX=11676 GN=rev PE=4 SV=1', 'PPPSSEGTRQARRNRRRRWRERQRQIRRISGWILSNHLGGLTEPVPLQLPPLERLTLDCN', 'EDCGTSGTQGVGSPQIPVESPTVLESGTKE', '>sp|O95218|ZRAB2_HUMAN Zinc finger Ran-binding domain-containing protein 2 OS=Homo sapiens OX=... | 35.878788 | 704 | 0.638936 | 249 | 2,368 | 6.02008 | 0.457831 | 0.018679 | 0.020013 | 0.014676 | 0.018679 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025082 | 0.225507 | 2,368 | 66 | 705 | 35.878788 | 0.792257 | 0.532095 | 0 | 0 | 0 | 0.142857 | 0.616541 | 0.43703 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.285714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
cfce448de4932fcdd0211b3f96ebcde12de01549 | 920 | py | Python | python/examples/_paramiko.py | mr-uuid/snippets | 49bb59641d8160d7635b8d5e574cb50f9e5362e2 | [
"MIT"
] | null | null | null | python/examples/_paramiko.py | mr-uuid/snippets | 49bb59641d8160d7635b8d5e574cb50f9e5362e2 | [
"MIT"
] | 1 | 2021-03-10T04:00:01.000Z | 2021-03-10T04:00:01.000Z | python/examples/_paramiko.py | mr-uuid/snippets | 49bb59641d8160d7635b8d5e574cb50f9e5362e2 | [
"MIT"
] | null | null | null | import getpass
import paramiko
class SSHConnection(object):
def __init__(self, host, username, password):
self.host = host
self.username = username
self.password = password
self.ssh = paramiko.SSHClient()
self.ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
d... | 27.878788 | 72 | 0.619565 | 104 | 920 | 5.317308 | 0.394231 | 0.063291 | 0.108499 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00916 | 0.288043 | 920 | 32 | 73 | 28.75 | 0.835115 | 0 | 0 | 0.08 | 0 | 0 | 0.038043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.24 | 0.08 | null | null | 0.08 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
cfda4ec83b1837072ae82cc908a8914b6342956d | 2,332 | py | Python | counting_paths_in_matrix.py | Sem8/lambda_x_whiteboard | bffbbd281bc825b3d21ac0462b61e60e7f299fab | [
"MIT"
] | null | null | null | counting_paths_in_matrix.py | Sem8/lambda_x_whiteboard | bffbbd281bc825b3d21ac0462b61e60e7f299fab | [
"MIT"
] | null | null | null | counting_paths_in_matrix.py | Sem8/lambda_x_whiteboard | bffbbd281bc825b3d21ac0462b61e60e7f299fab | [
"MIT"
] | null | null | null | # generate an nxn matrix with cells above the diagonal blocked out
def generate_matrix(n):
matrix = [[1 for i in range(n)] for _ in range(n)]
for i in range(n):
for j in range(n):
if i < j:
matrix[i][j] = -1
return matrix
# receives a matrix and row and col parameters indicating the
# s... | 32.84507 | 69 | 0.686535 | 408 | 2,332 | 3.894608 | 0.357843 | 0.03776 | 0.020138 | 0.020768 | 0.15922 | 0.15922 | 0.070485 | 0.070485 | 0.036501 | 0 | 0 | 0.018733 | 0.221698 | 2,332 | 71 | 70 | 32.84507 | 0.856749 | 0.351201 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.052632 | null | null | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
cfdb523e6cf5322fbb1c670fdab52365d64979a9 | 296 | py | Python | Prototype/BasicRsshUsb/main.py | school-ehayashi1/6-1-22-ReverseSshWithPythonSocketWithScripts | 154a49b1e670999249a468724f380b62d34b806d | [
"MIT"
] | null | null | null | Prototype/BasicRsshUsb/main.py | school-ehayashi1/6-1-22-ReverseSshWithPythonSocketWithScripts | 154a49b1e670999249a468724f380b62d34b806d | [
"MIT"
] | null | null | null | Prototype/BasicRsshUsb/main.py | school-ehayashi1/6-1-22-ReverseSshWithPythonSocketWithScripts | 154a49b1e670999249a468724f380b62d34b806d | [
"MIT"
] | null | null | null | import os
#https://stackoverflow.com/questions/3751900/create-file-path-from-variables
import subprocess
process = subprocess.Popen(['powershell','-c', 'Get -PSDrive -PSProvider "Filesystem"'], stderr=subprocess.PIPE, stdout=subprocess.PIPE)
stdout, stderr = process.communicate()
print(stdout)
| 37 | 136 | 0.783784 | 35 | 296 | 6.628571 | 0.742857 | 0.12069 | 0.172414 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025362 | 0.067568 | 296 | 7 | 137 | 42.285714 | 0.815217 | 0.253378 | 0 | 0 | 0 | 0 | 0.223744 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
cfe2fe297fd7bf90005dc5ad2f8cbaac94d7c10e | 213 | py | Python | desafio 013.py | KelvinAraujo/Python | 8bf05153838b603bcc51d363ad17aecb8ea8bdd2 | [
"MIT"
] | null | null | null | desafio 013.py | KelvinAraujo/Python | 8bf05153838b603bcc51d363ad17aecb8ea8bdd2 | [
"MIT"
] | null | null | null | desafio 013.py | KelvinAraujo/Python | 8bf05153838b603bcc51d363ad17aecb8ea8bdd2 | [
"MIT"
] | null | null | null | salario = float(input('\033[32m Quanto é o salário? R$'))
novo = salario + (salario * 15 / 100)
print('\033[36m Um funcionário que ganhava R${:.2f}, com aumento de 15% agora recebe R${:.2f}'.format(salario,novo))
| 53.25 | 116 | 0.676056 | 35 | 213 | 4.114286 | 0.742857 | 0.041667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.103825 | 0.140845 | 213 | 3 | 117 | 71 | 0.68306 | 0 | 0 | 0 | 0 | 0.333333 | 0.549296 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
cfe6445a17d673248005f5bca926ac3f9b7ef028 | 1,806 | py | Python | server/db/models/user.py | tetelevm/OrdeRPG | 5bea9fbaf3fdd84ab14f7e3033e18eead2cf30ab | [
"MIT"
] | null | null | null | server/db/models/user.py | tetelevm/OrdeRPG | 5bea9fbaf3fdd84ab14f7e3033e18eead2cf30ab | [
"MIT"
] | null | null | null | server/db/models/user.py | tetelevm/OrdeRPG | 5bea9fbaf3fdd84ab14f7e3033e18eead2cf30ab | [
"MIT"
] | null | null | null | """
User models, which are responsible for authorization and all of the
user's business data.
"""
from sqlalchemy import func
from server.framework.db import (
attribute_presetter,
BaseModel,
)
from server.framework.db.fields import (
IntegerField,
StringField,
DateTimeField,
RandomStringField,... | 26.558824 | 69 | 0.704319 | 188 | 1,806 | 6.68617 | 0.457447 | 0.113763 | 0.055688 | 0.066826 | 0.078759 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011127 | 0.203765 | 1,806 | 67 | 70 | 26.955224 | 0.863004 | 0.107973 | 0 | 0 | 0 | 0 | 0.017688 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.06383 | false | 0.191489 | 0.085106 | 0.042553 | 0.574468 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
cff54bf21d2c7f73c7e6e904fd48c71ab9313a53 | 253 | py | Python | invitation/admin.py | volrath/django-invitation-backend | aaab733be53c3626efcb762f5a85793a0963e876 | [
"BSD-3-Clause"
] | 1 | 2019-06-27T13:58:43.000Z | 2019-06-27T13:58:43.000Z | invitation/admin.py | volrath/django-invitation-backend | aaab733be53c3626efcb762f5a85793a0963e876 | [
"BSD-3-Clause"
] | null | null | null | invitation/admin.py | volrath/django-invitation-backend | aaab733be53c3626efcb762f5a85793a0963e876 | [
"BSD-3-Clause"
] | 3 | 2015-03-29T17:45:02.000Z | 2021-05-10T15:49:40.000Z | from __future__ import absolute_import
from django.contrib import admin
from .models import Invitation
class InvitationAdmin(admin.ModelAdmin):
list_display = ('user', 'email', 'expiration_date')
admin.site.register(Invitation, InvitationAdmin)
| 23 | 55 | 0.798419 | 29 | 253 | 6.724138 | 0.689655 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114625 | 253 | 10 | 56 | 25.3 | 0.870536 | 0 | 0 | 0 | 0 | 0 | 0.094862 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.833333 | 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 | 0 | 0 | 0 | 2 |
cffe643a173408cf62f7360aa229e9e14fe19bb1 | 686 | py | Python | crowdsourcing/viewsets/drive.py | AKSHANSH47/crowdsource-platform2 | a31446d44bc10dca56a0d534cab226947a6bbb4e | [
"MIT"
] | null | null | null | crowdsourcing/viewsets/drive.py | AKSHANSH47/crowdsource-platform2 | a31446d44bc10dca56a0d534cab226947a6bbb4e | [
"MIT"
] | null | null | null | crowdsourcing/viewsets/drive.py | AKSHANSH47/crowdsource-platform2 | a31446d44bc10dca56a0d534cab226947a6bbb4e | [
"MIT"
] | 2 | 2020-01-27T05:35:50.000Z | 2020-02-29T12:55:39.000Z | from rest_framework import viewsets
from rest_framework.response import Response
from crowdsourcing.serializers.accountModel import *
from crowdsourcing.models import *
from crowdsourcing.permissions.util import *
class AccountModelViewSet(viewsets.ModelViewSet):
queryset = AccountModel.objects.all()
seriali... | 32.666667 | 75 | 0.733236 | 64 | 686 | 7.765625 | 0.5625 | 0.102616 | 0.06841 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.193878 | 686 | 20 | 76 | 34.3 | 0.898734 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.3125 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.