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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
057a549b59e9c893c4abd50247ba001cdab7fac2 | 966 | py | Python | toughradius/tests/test_base.py | geosson/GSRadius | 5870e3d055e8366f98b8e65220a1520b5da22f6d | [
"Apache-2.0"
] | 1 | 2019-05-12T15:06:58.000Z | 2019-05-12T15:06:58.000Z | toughradius/tests/test_base.py | geosson/GSRadius | 5870e3d055e8366f98b8e65220a1520b5da22f6d | [
"Apache-2.0"
] | null | null | null | toughradius/tests/test_base.py | geosson/GSRadius | 5870e3d055e8366f98b8e65220a1520b5da22f6d | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
#coding:utf-8
from toughlib import config as iconfig
import os
import requests
class TestMixin:
MANAGE_URL = 'http://127.0.0.1:18160'
def sub_path(self,path):
return "%s%s"%(TestMixin.MANAGE_URL,path)
def init_rundir(self):
try:
os.mkdir("/tmp/toughradiu... | 27.6 | 95 | 0.575569 | 123 | 966 | 4.398374 | 0.552846 | 0.033272 | 0.066543 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023358 | 0.29089 | 966 | 35 | 96 | 27.6 | 0.766423 | 0.033126 | 0 | 0.074074 | 0 | 0 | 0.109325 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.037037 | 0.111111 | 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 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
057c321a1c38497a94f1e9f85d9de7c4b624cddb | 10,869 | py | Python | mscode/xp/general_comparison.py | cohenjer/mscode | e761c4af0227c386bdc7d22a55a2218486faf708 | [
"MIT"
] | null | null | null | mscode/xp/general_comparison.py | cohenjer/mscode | e761c4af0227c386bdc7d22a55a2218486faf708 | [
"MIT"
] | null | null | null | mscode/xp/general_comparison.py | cohenjer/mscode | e761c4af0227c386bdc7d22a55a2218486faf708 | [
"MIT"
] | null | null | null | # recovery (and error) vs noise for all algorithms
# recovery (and error) vs condB for all algorithms
# recovery vs (k,d) for all algorithms (heatmap)
# todo: also condD?
# Questions:
# - test two distributions for X: Gaussian, and decreasing
# - to choose lambda(s), we fix according to average best one from a set o... | 44.004049 | 261 | 0.631153 | 1,764 | 10,869 | 3.738662 | 0.153628 | 0.029113 | 0.021835 | 0.029113 | 0.710083 | 0.664443 | 0.656861 | 0.656861 | 0.645337 | 0.645337 | 0 | 0.051116 | 0.19183 | 10,869 | 246 | 262 | 44.182927 | 0.699681 | 0.173889 | 0 | 0.606936 | 0 | 0 | 0.133072 | 0 | 0 | 0 | 0 | 0.004065 | 0 | 1 | 0 | false | 0 | 0.052023 | 0 | 0.052023 | 0.034682 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
057ec8e5e224d55258d512334e2a91039899ab2c | 747 | py | Python | src/genui/generators/serializers.py | Tontolda/genui | c5b7da7c5a99fc16d34878e2170145ac7c8e31c4 | [
"0BSD"
] | 15 | 2021-05-31T13:39:17.000Z | 2022-03-30T12:04:14.000Z | src/genui/generators/serializers.py | martin-sicho/genui | ea7f1272030a13e8e253a7a9b6479ac6a78552d3 | [
"MIT"
] | 3 | 2021-04-08T22:02:22.000Z | 2022-03-16T09:10:20.000Z | src/genui/generators/serializers.py | Tontolda/genui | c5b7da7c5a99fc16d34878e2170145ac7c8e31c4 | [
"0BSD"
] | 5 | 2021-03-04T11:00:54.000Z | 2021-12-18T22:59:22.000Z | """
serializers
Created by: Martin Sicho
On: 27-01-20, 17:00
"""
from rest_framework import serializers
from genui.utils.serializers import GenericModelSerializerMixIn
from genui.compounds.serializers import MolSetSerializer
from genui.projects.serializers import ProjectSerializer
from . import models
class Generato... | 29.88 | 96 | 0.781794 | 69 | 747 | 8.449275 | 0.565217 | 0.046312 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01548 | 0.135208 | 747 | 24 | 97 | 31.125 | 0.886997 | 0.076305 | 0 | 0 | 0 | 0 | 0.075 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.384615 | 0 | 0.846154 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
057f8e845bc31c86789aa18cb713245d93a393bc | 5,898 | py | Python | cccbr_methods/models.py | lelandpaul/cccbr_methods | 8fce303d7d7fd178f1b371389a4cc318852e392a | [
"MIT"
] | null | null | null | cccbr_methods/models.py | lelandpaul/cccbr_methods | 8fce303d7d7fd178f1b371389a4cc318852e392a | [
"MIT"
] | 1 | 2021-12-13T20:44:46.000Z | 2021-12-13T20:44:46.000Z | cccbr_methods/models.py | lelandpaul/cccbr_methods | 8fce303d7d7fd178f1b371389a4cc318852e392a | [
"MIT"
] | null | null | null | from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy import create_engine
from datetime import datetime, timedelta
from sqlalchemy import Table, Column, Integer, String, Date, ForeignKey, Boolean
from sqlalchemy.orm import relationship, backref
from sqlalchemy.orm import sessionmaker
from re import s... | 45.369231 | 106 | 0.590709 | 602 | 5,898 | 5.666113 | 0.262458 | 0.091469 | 0.086192 | 0.064497 | 0.329522 | 0.2017 | 0.184697 | 0.122545 | 0.122545 | 0.122545 | 0 | 0.014915 | 0.295185 | 5,898 | 129 | 107 | 45.72093 | 0.805629 | 0.189895 | 0 | 0.182796 | 0 | 0 | 0.043905 | 0.011083 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096774 | false | 0 | 0.086022 | 0.043011 | 0.731183 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
0582c3422fbd8d71835125e19cb23d6667d70ef1 | 3,157 | py | Python | nexrad/nexrad_tutorial.py | uva-hydroinformatics-lab/precipitation_processing | 54ef1673900b6bb2ee38daec3aac33748a8402cd | [
"MIT"
] | 1 | 2019-01-08T03:57:49.000Z | 2019-01-08T03:57:49.000Z | nexrad/nexrad_tutorial.py | uva-hydroinformatics/precipitation_processing | 54ef1673900b6bb2ee38daec3aac33748a8402cd | [
"MIT"
] | null | null | null | nexrad/nexrad_tutorial.py | uva-hydroinformatics/precipitation_processing | 54ef1673900b6bb2ee38daec3aac33748a8402cd | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
import numpy.ma as ma
import numpy as np
import pyart.graph
import tempfile
import pyart.io
import boto
s3conn = boto.connect_s3("AKIAISFFH4JXWC2HYFSA","9Az+XWYP9cbL3Sh641z/tbMuC1CSpjPjQTFkHj8D")
bucket = s3conn.get_bucket('noaa-nexrad-level2')
s3key = bucket.get_key('2015/05/... | 36.287356 | 113 | 0.667089 | 436 | 3,157 | 4.701835 | 0.376147 | 0.011707 | 0.033171 | 0.037073 | 0.360976 | 0.334634 | 0.334634 | 0.334634 | 0.334634 | 0.334634 | 0 | 0.048532 | 0.190687 | 3,157 | 86 | 114 | 36.709302 | 0.753816 | 0.10643 | 0 | 0.246154 | 0 | 0 | 0.225156 | 0.065273 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.107692 | null | null | 0.061538 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
05836efbaef8a6e021845f469c0a620d95e4b977 | 372 | py | Python | MotorTorpedoQuotePT109/QuotePT109/migrations/0002_page_likes.py | alex-lake29/MotorTorpedoQuotePT-109 | 012d45e8a329022492acad86e6693abf0ba5b7d2 | [
"MIT"
] | null | null | null | MotorTorpedoQuotePT109/QuotePT109/migrations/0002_page_likes.py | alex-lake29/MotorTorpedoQuotePT-109 | 012d45e8a329022492acad86e6693abf0ba5b7d2 | [
"MIT"
] | null | null | null | MotorTorpedoQuotePT109/QuotePT109/migrations/0002_page_likes.py | alex-lake29/MotorTorpedoQuotePT-109 | 012d45e8a329022492acad86e6693abf0ba5b7d2 | [
"MIT"
] | null | null | null | # Generated by Django 2.1.5 on 2022-03-21 19:27
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('QuotePT109', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='page',
name='likes',
fie... | 19.578947 | 49 | 0.583333 | 39 | 372 | 5.512821 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088123 | 0.298387 | 372 | 18 | 50 | 20.666667 | 0.735632 | 0.120968 | 0 | 0 | 1 | 0 | 0.095385 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0585d3beb2756c9c282cc3b3a1b2f3b72dff380a | 474 | py | Python | message_sender/migrations/0003_auto_20161124_1357.py | praekeltfoundation/seed-message-sender | d90ef4dc9fa248df97ca97f07569c6c70afcd1bd | [
"BSD-3-Clause"
] | 1 | 2017-01-03T08:53:18.000Z | 2017-01-03T08:53:18.000Z | message_sender/migrations/0003_auto_20161124_1357.py | praekelt/seed-message-sender | d90ef4dc9fa248df97ca97f07569c6c70afcd1bd | [
"BSD-3-Clause"
] | 45 | 2016-03-16T09:32:27.000Z | 2018-06-28T10:05:19.000Z | message_sender/migrations/0003_auto_20161124_1357.py | praekeltfoundation/seed-message-sender | d90ef4dc9fa248df97ca97f07569c6c70afcd1bd | [
"BSD-3-Clause"
] | 1 | 2016-09-28T09:32:05.000Z | 2016-09-28T09:32:05.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.9.1 on 2016-11-24 13:57
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [("message_sender", "0002_auto_20161124_1150")]
operations = [
migrations.AlterField(
... | 24.947368 | 74 | 0.656118 | 56 | 474 | 5.339286 | 0.821429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.095628 | 0.227848 | 474 | 18 | 75 | 26.333333 | 0.721311 | 0.14135 | 0 | 0 | 1 | 0 | 0.143564 | 0.056931 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
058753427b8d12d1061f42dc505d9be81b5a17ea | 15,639 | py | Python | src/02_ppo.py | grzegorzwojdyga/trl | 1921e71a7465a43dcc135d97821aa8b03bfebf8c | [
"Apache-2.0"
] | null | null | null | src/02_ppo.py | grzegorzwojdyga/trl | 1921e71a7465a43dcc135d97821aa8b03bfebf8c | [
"Apache-2.0"
] | null | null | null | src/02_ppo.py | grzegorzwojdyga/trl | 1921e71a7465a43dcc135d97821aa8b03bfebf8c | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""02-ppo.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1GXTVkhpJyQQsUWn6tGQAWPmstw9adAzj
# PPO for transformer models
> A Pytorch implementation of Proximal Policy Optimization for transfomer models.
This follows the l... | 47.390909 | 564 | 0.632585 | 1,988 | 15,639 | 4.812877 | 0.21328 | 0.022575 | 0.028533 | 0.012542 | 0.20485 | 0.131375 | 0.064068 | 0.025711 | 0.020276 | 0.013796 | 0 | 0.012815 | 0.261526 | 15,639 | 330 | 565 | 47.390909 | 0.815655 | 0.193235 | 0 | 0.065574 | 1 | 0 | 0.076766 | 0.014494 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060109 | false | 0.021858 | 0.043716 | 0 | 0.15847 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0588017972ca3ca8aebe2412eda69531f658e740 | 807 | py | Python | jarvis/accounts/tests/factories.py | Anubhav722/blahblah | 160698e06a02e671ac40de3113cd37d642e72e96 | [
"MIT"
] | 1 | 2019-01-03T06:10:04.000Z | 2019-01-03T06:10:04.000Z | jarvis/accounts/tests/factories.py | Anubhav722/blahblah | 160698e06a02e671ac40de3113cd37d642e72e96 | [
"MIT"
] | 1 | 2021-03-31T19:11:52.000Z | 2021-03-31T19:11:52.000Z | jarvis/accounts/tests/factories.py | Anubhav722/blahblah | 160698e06a02e671ac40de3113cd37d642e72e96 | [
"MIT"
] | null | null | null | from faker import Faker
from ..models import Client, UserProfile
from django.contrib.auth import get_user_model
from factory import django, SubFactory, fuzzy, Sequence, LazyAttribute
fake = Faker()
User = get_user_model()
class ClientFactory(django.DjangoModelFactory):
class Meta:
model = Client
ke... | 21.810811 | 70 | 0.700124 | 88 | 807 | 6.329545 | 0.431818 | 0.129264 | 0.156194 | 0.177738 | 0.204668 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00627 | 0.209418 | 807 | 36 | 71 | 22.416667 | 0.866771 | 0 | 0 | 0.12 | 0 | 0 | 0.004957 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.16 | 0 | 0.76 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
058ba31e5a3c9cecbd73c880b21c4ea42a75e1cf | 3,056 | py | Python | tests/test_cli.py | SlawekNowy/vpk | 3c9e175f48d8d56b5995387bcaa2c16ec62f9688 | [
"MIT"
] | 116 | 2015-08-29T23:24:28.000Z | 2022-03-04T19:35:52.000Z | tests/test_cli.py | SlawekNowy/vpk | 3c9e175f48d8d56b5995387bcaa2c16ec62f9688 | [
"MIT"
] | 27 | 2015-07-30T16:44:17.000Z | 2021-12-25T19:00:44.000Z | tests/test_cli.py | SlawekNowy/vpk | 3c9e175f48d8d56b5995387bcaa2c16ec62f9688 | [
"MIT"
] | 21 | 2015-08-03T23:57:25.000Z | 2021-12-21T10:29:59.000Z | import sys
import unittest
from contextlib import contextmanager
try:
from io import StringIO
except ImportError:
from StringIO import StringIO
from vpk import cli
@contextmanager
def capture_stdout():
new_out = StringIO()
old_out = sys.stdout
try:
sys.stdout = new_out
yield sys.... | 35.534884 | 105 | 0.634162 | 412 | 3,056 | 4.512136 | 0.184466 | 0.086606 | 0.097902 | 0.075309 | 0.655729 | 0.614847 | 0.600861 | 0.600861 | 0.600861 | 0.600861 | 0 | 0.0122 | 0.222186 | 3,056 | 85 | 106 | 35.952941 | 0.769878 | 0.054647 | 0 | 0.306452 | 0 | 0 | 0.091635 | 0.014578 | 0 | 0 | 0 | 0 | 0.322581 | 1 | 0.112903 | false | 0 | 0.112903 | 0 | 0.258065 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
058c66b876771cc78eea5a8cc9478dd196dd972b | 1,768 | py | Python | authentic/authentic.settings.py | GuillaumeGautierLA/publik | 5ef6c19e9b91bf066717b4bc9df2540f4c2e1bc2 | [
"MIT"
] | null | null | null | authentic/authentic.settings.py | GuillaumeGautierLA/publik | 5ef6c19e9b91bf066717b4bc9df2540f4c2e1bc2 | [
"MIT"
] | 13 | 2019-12-21T09:48:42.000Z | 2020-07-01T19:12:28.000Z | authentic/authentic.settings.py | GuillaumeGautierLA/publik | 5ef6c19e9b91bf066717b4bc9df2540f4c2e1bc2 | [
"MIT"
] | 4 | 2020-01-06T16:00:00.000Z | 2021-01-08T14:46:29.000Z | # To pass env vars to Python scripts run by Publik in services which remove custom env vars:
# https://unix.stackexchange.com/questions/44370/how-to-make-unix-service-see-environment-variables
# So we hardcode the values in the file below when the container starts
import sys
sys.path.insert(0, "/home")
from pyenv impor... | 26.38806 | 99 | 0.750566 | 247 | 1,768 | 5.117409 | 0.48583 | 0.075949 | 0.030854 | 0.016614 | 0.026899 | 0.018987 | 0.018987 | 0 | 0 | 0 | 0 | 0.021484 | 0.131222 | 1,768 | 67 | 100 | 26.38806 | 0.801432 | 0.324661 | 0 | 0 | 0 | 0 | 0.269787 | 0.13617 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.108108 | 0.054054 | 0 | 0.054054 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
553885dd25affc404a552785fdb6d4e6392000ff | 18,526 | py | Python | pysac/mhs_atmosphere/mhs_model/flux_tubes.py | SolarDrew/pysac | 9fd86dd03966b7e7f90653a47a2ccca7964c83bc | [
"BSD-2-Clause"
] | null | null | null | pysac/mhs_atmosphere/mhs_model/flux_tubes.py | SolarDrew/pysac | 9fd86dd03966b7e7f90653a47a2ccca7964c83bc | [
"BSD-2-Clause"
] | null | null | null | pysac/mhs_atmosphere/mhs_model/flux_tubes.py | SolarDrew/pysac | 9fd86dd03966b7e7f90653a47a2ccca7964c83bc | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Thu Dec 11 11:37:39 2014
@author: sm1fg
Construct the magnetic network and generate the adjustments to the
non-magnetic atmosphere for mhs equilibrium.
"""
import os
import warnings
import numpy as np
import astropy.units as u
from scipy.interpolate import RectBivaria... | 40.986726 | 83 | 0.45428 | 2,580 | 18,526 | 3.192636 | 0.162791 | 0.038242 | 0.016996 | 0.011655 | 0.500911 | 0.438631 | 0.411072 | 0.395775 | 0.376593 | 0.346971 | 0 | 0.120953 | 0.356472 | 18,526 | 451 | 84 | 41.077605 | 0.569955 | 0.18358 | 0 | 0.372727 | 1 | 0 | 0.048691 | 0.003518 | 0 | 0 | 0 | 0 | 0 | 1 | 0.012121 | false | 0 | 0.021212 | 0 | 0.042424 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
553df305accc95bd90095dbb25295bf9604e38ba | 268 | py | Python | Aula 05/[Exercicio 01] .py | IsaacPSilva/LetsCode | 64396ee9fd0ad395598c74c3727a614261e5dd50 | [
"MIT"
] | null | null | null | Aula 05/[Exercicio 01] .py | IsaacPSilva/LetsCode | 64396ee9fd0ad395598c74c3727a614261e5dd50 | [
"MIT"
] | null | null | null | Aula 05/[Exercicio 01] .py | IsaacPSilva/LetsCode | 64396ee9fd0ad395598c74c3727a614261e5dd50 | [
"MIT"
] | null | null | null | '''1. Faça um programa que pede para o usuário digitar uma palavra e
imprima cada letra em uma linha.'''
#Informando frase a ser verificada
frase = input('Digite uma palavra: ')
#Convertendo frase em palavras, e imprimindo depois
for letra in frase:
print(letra) | 29.777778 | 68 | 0.75 | 42 | 268 | 4.785714 | 0.761905 | 0.099502 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004525 | 0.175373 | 268 | 9 | 69 | 29.777778 | 0.904977 | 0.679104 | 0 | 0 | 0 | 0 | 0.25 | 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 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5542f0b7bef41dfe29c0868984e349d2a0c056ea | 300 | py | Python | F_Machine_learning/2_Unsupervised-Learning/solutions/ex2_3.py | sylvain2002/CBM101 | 4d9dc4264ce81cc2af58ceaff96fd0ed7a570af5 | [
"MIT"
] | 7 | 2019-07-03T07:41:55.000Z | 2022-02-06T20:25:37.000Z | F_Machine_learning/2_Unsupervised-Learning/solutions/ex2_3.py | sylvain2002/CBM101 | 4d9dc4264ce81cc2af58ceaff96fd0ed7a570af5 | [
"MIT"
] | 9 | 2019-03-14T15:15:09.000Z | 2019-08-01T14:18:21.000Z | F_Machine_learning/2_Unsupervised-Learning/solutions/ex2_3.py | sylvain2002/CBM101 | 4d9dc4264ce81cc2af58ceaff96fd0ed7a570af5 | [
"MIT"
] | 11 | 2019-03-12T10:43:11.000Z | 2021-10-05T12:15:00.000Z | a = 'ARRYR'
b = 'ARSYS'
levenshtein(a,b)
# ANSWER a)
# It quantifies the number of single-letter changes to morph one into the other
#
# ANSWER b)
# We could encode the 'price' of changing between particular amino acids
# thereby acknowledging that some substitutions are more or less costly/likely | 27.272727 | 79 | 0.756667 | 47 | 300 | 4.829787 | 0.829787 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173333 | 300 | 11 | 80 | 27.272727 | 0.915323 | 0.816667 | 0 | 0 | 0 | 0 | 0.204082 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
554fefef5722dcfd6c785e2d4dadd682981a85f8 | 1,361 | py | Python | auth-api/app.py | dlavery/auth | 9f37b4be2eeda2446b7d3abd44c7b45918486e0b | [
"MIT"
] | null | null | null | auth-api/app.py | dlavery/auth | 9f37b4be2eeda2446b7d3abd44c7b45918486e0b | [
"MIT"
] | null | null | null | auth-api/app.py | dlavery/auth | 9f37b4be2eeda2446b7d3abd44c7b45918486e0b | [
"MIT"
] | null | null | null | import configparser
import logging
from flask import Flask
from flask_pymongo import PyMongo
from Crypto.PublicKey import RSA
# Value mapping
LOG_LEVELS = {'INFO': logging.INFO, 'DEBUG': logging.DEBUG, 'WARN': logging.DEBUG, 'ERROR': logging.ERROR}
# Create application
app = Flask(__name__)
# Read external config
co... | 32.404762 | 106 | 0.740632 | 171 | 1,361 | 5.818713 | 0.426901 | 0.036181 | 0.028141 | 0.032161 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000806 | 0.088905 | 1,361 | 41 | 107 | 33.195122 | 0.801613 | 0.083762 | 0 | 0 | 0 | 0 | 0.225182 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.074074 | 0.259259 | 0 | 0.259259 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
555da31cec0240cea59e597af6f6196956ec03f6 | 574 | py | Python | tests/test_common.py | shikanon/BaiduMapAPI | 36c41bd99e523fa231e7d654f0ba504349b2a7ad | [
"MIT"
] | 7 | 2019-03-07T04:38:44.000Z | 2021-04-23T02:43:10.000Z | tests/test_common.py | shikanon/BaiduMapAPI | 36c41bd99e523fa231e7d654f0ba504349b2a7ad | [
"MIT"
] | 2 | 2020-03-24T16:47:11.000Z | 2020-12-03T08:52:31.000Z | tests/test_common.py | shikanon/BaiduMapAPI | 36c41bd99e523fa231e7d654f0ba504349b2a7ad | [
"MIT"
] | 1 | 2019-10-22T07:21:58.000Z | 2019-10-22T07:21:58.000Z | from BaiduMapAPI.common import convertCoord, expandUp
import pytest
def test_convertCoord():
coord = convertCoord("12.32323,56.23422")
assert coord == "12.32323,56.23422"
coord = convertCoord((12.32323,56.23422))
assert coord == "12.32323,56.23422"
def test_expandUp():
test_dict = {"a" : "A", "b":... | 41 | 90 | 0.606272 | 84 | 574 | 3.916667 | 0.321429 | 0.085106 | 0.109422 | 0.170213 | 0.340426 | 0.340426 | 0.340426 | 0.340426 | 0.340426 | 0.340426 | 0 | 0.135484 | 0.189895 | 574 | 14 | 91 | 41 | 0.572043 | 0 | 0 | 0.166667 | 0 | 0 | 0.24 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5560d79a769a8dcd00036d30ac155bdbbb8657ae | 422 | py | Python | homeassistant/components/system_bridge/const.py | basicpail/core | 5cc54618c5af3f75c08314bf2375cc7ac40d2b7e | [
"Apache-2.0"
] | 11 | 2018-02-16T15:35:47.000Z | 2020-01-14T15:20:00.000Z | homeassistant/components/system_bridge/const.py | basicpail/core | 5cc54618c5af3f75c08314bf2375cc7ac40d2b7e | [
"Apache-2.0"
] | 87 | 2020-07-06T22:22:54.000Z | 2022-03-31T06:01:46.000Z | homeassistant/components/system_bridge/const.py | Vaarlion/core | f3de8b9f28de01abf72c0f5bb0b457eb1841f201 | [
"Apache-2.0"
] | 11 | 2020-12-16T13:48:14.000Z | 2022-02-01T00:28:05.000Z | """Constants for the System Bridge integration."""
import asyncio
from aiohttp.client_exceptions import (
ClientConnectionError,
ClientConnectorError,
ClientResponseError,
)
from systembridge.exceptions import BridgeException
DOMAIN = "system_bridge"
BRIDGE_CONNECTION_ERRORS = (
asyncio.TimeoutError,... | 21.1 | 51 | 0.779621 | 33 | 422 | 9.848485 | 0.636364 | 0.073846 | 0.369231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.158768 | 422 | 19 | 52 | 22.210526 | 0.915493 | 0.104265 | 0 | 0.4 | 0 | 0 | 0.034946 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
556e3ec9c1d73a0070074ad45f8de00d47c96b09 | 179 | py | Python | year1/python/week2/q9_squareroots.py | OthmanEmpire/university | 3405e1463e82ca2e6f7deef05c3b1ba0ab9c1278 | [
"MIT"
] | 1 | 2016-05-21T17:23:50.000Z | 2016-05-21T17:23:50.000Z | year1/python/week2/q9_squareroots.py | OthmanEmpire/university_code | 3405e1463e82ca2e6f7deef05c3b1ba0ab9c1278 | [
"MIT"
] | null | null | null | year1/python/week2/q9_squareroots.py | OthmanEmpire/university_code | 3405e1463e82ca2e6f7deef05c3b1ba0ab9c1278 | [
"MIT"
] | null | null | null | ## This program prints out the first 10 square roots that are even ##
for x in range(1,10):
y = (2*x)**2 # If n^2 is even hence n must be even as well
print(y)
| 29.833333 | 72 | 0.603352 | 36 | 179 | 3 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.063492 | 0.296089 | 179 | 5 | 73 | 35.8 | 0.793651 | 0.603352 | 0 | 0 | 0 | 0 | 0 | 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 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
557658851f4a3ae8f5f44ddef879cff02f03ad5f | 1,096 | py | Python | l10n_ar_ux/models/res_company.py | odoo-mastercore/odoo-argentina | 58cdfe8610bae42f69ddb9d652a28eb3245f6a04 | [
"MIT"
] | 1 | 2021-01-25T15:57:58.000Z | 2021-01-25T15:57:58.000Z | l10n_ar_ux/models/res_company.py | odoo-mastercore/odoo-argentina | 58cdfe8610bae42f69ddb9d652a28eb3245f6a04 | [
"MIT"
] | null | null | null | l10n_ar_ux/models/res_company.py | odoo-mastercore/odoo-argentina | 58cdfe8610bae42f69ddb9d652a28eb3245f6a04 | [
"MIT"
] | 2 | 2020-10-17T16:36:02.000Z | 2021-01-24T10:20:05.000Z | ##############################################################################
# For copyright and license notices, see __manifest__.py file in module root
# directory
##############################################################################
from odoo import fields, models
class ResCompany(models.Model):
_i... | 39.142857 | 81 | 0.620438 | 123 | 1,096 | 5.292683 | 0.691057 | 0.036866 | 0.070661 | 0.079877 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009923 | 0.172445 | 1,096 | 27 | 82 | 40.592593 | 0.707828 | 0.25 | 0 | 0 | 0 | 0 | 0.231818 | 0.092424 | 0 | 0 | 0 | 0.037037 | 0 | 1 | 0 | false | 0 | 0.0625 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
558514d3c5a79e30120fc03aa990f786ff898ee6 | 355 | py | Python | server/soman/announcements/urls.py | bilgorajskim/soman | 0d65d632c39a72f51b43fae71f4b00efc7b286c1 | [
"MIT"
] | null | null | null | server/soman/announcements/urls.py | bilgorajskim/soman | 0d65d632c39a72f51b43fae71f4b00efc7b286c1 | [
"MIT"
] | null | null | null | server/soman/announcements/urls.py | bilgorajskim/soman | 0d65d632c39a72f51b43fae71f4b00efc7b286c1 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
from django.conf.urls import url, include
from rest_framework import routers, serializers, viewsets
from . import views
router = routers.DefaultRouter()
router.register(r'announcements', views.AnnouncementViewSet)
urlpatterns = [
url... | 27.307692 | 60 | 0.769014 | 43 | 355 | 6.186047 | 0.651163 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003195 | 0.11831 | 355 | 12 | 61 | 29.583333 | 0.846645 | 0.059155 | 0 | 0 | 0 | 0 | 0.054217 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.444444 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
55860760bf8930847b1a7c03d8b03442f460fce6 | 414 | py | Python | backend/app/db/__init__.py | MaxKochanov/stock-news | 42776196604e91cd673c94c9f7dea71343791bd1 | [
"MIT"
] | null | null | null | backend/app/db/__init__.py | MaxKochanov/stock-news | 42776196604e91cd673c94c9f7dea71343791bd1 | [
"MIT"
] | null | null | null | backend/app/db/__init__.py | MaxKochanov/stock-news | 42776196604e91cd673c94c9f7dea71343791bd1 | [
"MIT"
] | null | null | null | from app.db.wrappers import ClickHouse
DBS = {}
async def init_databases(config):
"""
Usage example
DBS["clickhouse"] = await ClickHouse.init_async(config["clickhouse"])
DBS["mysql"] = await MySQL.init_async(config["mysql"])
"""
pass
async def shutdown_databases():
"""
await ClickHo... | 19.714286 | 73 | 0.654589 | 48 | 414 | 5.520833 | 0.395833 | 0.098113 | 0.135849 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.198068 | 414 | 20 | 74 | 20.7 | 0.798193 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.333333 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
5588a3d3733f037d283e357aa48613bd11e602e8 | 1,108 | py | Python | ravendb/tests/jvm_migrated_tests/client/executor/test_request_executor.py | ravendb/RavenDB-Python-Client | 6286b459b501e755fe8e8591a48acf8616605ccd | [
"MIT"
] | 8 | 2016-10-08T17:45:44.000Z | 2018-05-29T12:16:43.000Z | ravendb/tests/jvm_migrated_tests/client/executor/test_request_executor.py | ravendb/RavenDB-Python-Client | 6286b459b501e755fe8e8591a48acf8616605ccd | [
"MIT"
] | 5 | 2017-02-12T15:50:53.000Z | 2017-09-18T12:25:01.000Z | ravendb/tests/jvm_migrated_tests/client/executor/test_request_executor.py | ravendb/RavenDB-Python-Client | 6286b459b501e755fe8e8591a48acf8616605ccd | [
"MIT"
] | 8 | 2016-07-03T07:59:12.000Z | 2017-09-18T11:22:23.000Z | from ravendb.documents.conventions.document_conventions import DocumentConventions
from ravendb.exceptions.exceptions import DatabaseDoesNotExistException
from ravendb.http.request_executor import RequestExecutor
from ravendb.http.server_node import ServerNode
from ravendb.http.topology import UpdateTopologyParameters
... | 44.32 | 99 | 0.773466 | 117 | 1,108 | 7.076923 | 0.470085 | 0.07971 | 0.054348 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005388 | 0.162455 | 1,108 | 24 | 100 | 46.166667 | 0.886853 | 0 | 0 | 0 | 0 | 0 | 0.015343 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 1 | 0.105263 | false | 0 | 0.315789 | 0 | 0.473684 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
55895bd32cc5eee1e655399e93c373ec1fa66d6b | 1,462 | py | Python | install_R_packages.py | mohaEs/PyVisualField | 64c7303c77500c923300536dd717f2e6c0262323 | [
"MIT"
] | null | null | null | install_R_packages.py | mohaEs/PyVisualField | 64c7303c77500c923300536dd717f2e6c0262323 | [
"MIT"
] | null | null | null | install_R_packages.py | mohaEs/PyVisualField | 64c7303c77500c923300536dd717f2e6c0262323 | [
"MIT"
] | 1 | 2022-01-04T19:33:06.000Z | 2022-01-04T19:33:06.000Z | # -*- coding: utf-8 -*-
"""
Created on Mon Oct 11 18:00:28 2021
@author: Mohammad Eslami
"""
try:
import rpy2
print('===> rpy2 version: ', rpy2.__version__)
from rpy2.robjects.packages import importr
# import rpy2's package module
import rpy2.robjects.packages as rpackages
# R vector of ... | 27.584906 | 75 | 0.699042 | 187 | 1,462 | 5.374332 | 0.406417 | 0.029851 | 0.059701 | 0.065672 | 0.172139 | 0.145274 | 0.089552 | 0 | 0 | 0 | 0 | 0.019312 | 0.185363 | 1,462 | 52 | 76 | 28.115385 | 0.824517 | 0.333105 | 0 | 0.181818 | 0 | 0 | 0.316562 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.363636 | 0 | 0.363636 | 0.227273 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
558acc49675640913785e7f0a2b6dca8cde8835f | 2,654 | py | Python | tests/unit/utils/test_io_utils.py | briannemsick/barrage | f86bd0723abc0ab94b0b8f2ca3ffa5e3b7541455 | [
"MIT"
] | 16 | 2019-06-21T22:45:59.000Z | 2020-08-20T22:26:22.000Z | tests/unit/utils/test_io_utils.py | briannemsick/barrage | f86bd0723abc0ab94b0b8f2ca3ffa5e3b7541455 | [
"MIT"
] | 15 | 2019-06-21T23:09:59.000Z | 2020-05-07T03:02:33.000Z | tests/unit/utils/test_io_utils.py | briannemsick/barrage | f86bd0723abc0ab94b0b8f2ca3ffa5e3b7541455 | [
"MIT"
] | 6 | 2019-06-22T15:27:39.000Z | 2020-07-06T02:18:55.000Z | import json
import os
import pickle
import numpy as np
import pandas as pd
import pytest
from barrage.utils import io_utils
@pytest.fixture()
def sample_dict():
return {"unit": "test"}
def test_save_json(artifact_path, sample_dict):
filename = "unit_test.json"
io_utils.save_json(sample_dict, filename,... | 31.223529 | 78 | 0.715901 | 397 | 2,654 | 4.554156 | 0.151134 | 0.185841 | 0.071903 | 0.129425 | 0.709071 | 0.709071 | 0.654314 | 0.596792 | 0.527655 | 0.373894 | 0 | 0.005379 | 0.159382 | 2,654 | 84 | 79 | 31.595238 | 0.80502 | 0 | 0 | 0.372881 | 0 | 0 | 0.071967 | 0 | 0 | 0 | 0 | 0 | 0.20339 | 1 | 0.118644 | false | 0 | 0.118644 | 0.016949 | 0.254237 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5596e16fb509c3accc1b616f5872b39869a62e82 | 2,746 | py | Python | scripts/custom_task_manager.py | operaun/dotfiles | 6e91206427199a9f6a9ac7397a886ac2f26eade0 | [
"MIT"
] | 1 | 2016-10-06T12:31:04.000Z | 2016-10-06T12:31:04.000Z | scripts/custom_task_manager.py | operaun/dotfiles | 6e91206427199a9f6a9ac7397a886ac2f26eade0 | [
"MIT"
] | null | null | null | scripts/custom_task_manager.py | operaun/dotfiles | 6e91206427199a9f6a9ac7397a886ac2f26eade0 | [
"MIT"
] | null | null | null | # scripts/custom_task_manager.py
import os
import subprocess
from abc import ABCMeta, abstractmethod
from pretty_printer import *
class CustomTaskManager(object):
def __init__(self):
self.tasks = list()
def printMessages(self):
for task in self.tasks:
task.printHelpMessage()
de... | 31.204545 | 99 | 0.659505 | 334 | 2,746 | 5.341317 | 0.374252 | 0.071749 | 0.049327 | 0.066704 | 0.310538 | 0.26009 | 0.069507 | 0.040359 | 0.040359 | 0.040359 | 0 | 0.000937 | 0.222505 | 2,746 | 87 | 100 | 31.563218 | 0.83466 | 0.010925 | 0 | 0.212121 | 0 | 0.015152 | 0.293034 | 0.019536 | 0 | 0 | 0 | 0 | 0 | 1 | 0.257576 | false | 0 | 0.060606 | 0 | 0.469697 | 0.242424 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
559ad11e61e76b073ffa707dfeef7cd524cd64ce | 4,923 | py | Python | delpapa/avalanches/data_analysis.py | delpapa/CritSORN | cdad55d55f39e04f568ca1bc0c6036bec8db08fb | [
"MIT"
] | null | null | null | delpapa/avalanches/data_analysis.py | delpapa/CritSORN | cdad55d55f39e04f568ca1bc0c6036bec8db08fb | [
"MIT"
] | null | null | null | delpapa/avalanches/data_analysis.py | delpapa/CritSORN | cdad55d55f39e04f568ca1bc0c6036bec8db08fb | [
"MIT"
] | null | null | null | ########################################################################
# This script contains all the data analysis functions #
########################################################################
from __future__ import division
from pylab import *
import scipy, scipy.stats
import tables
import ... | 33.489796 | 78 | 0.558399 | 600 | 4,923 | 4.408333 | 0.246667 | 0.14518 | 0.063516 | 0.016635 | 0.133081 | 0.113422 | 0.068809 | 0.028733 | 0.028733 | 0.028733 | 0 | 0.024296 | 0.314442 | 4,923 | 146 | 79 | 33.719178 | 0.759407 | 0.170221 | 0 | 0.148936 | 0 | 0 | 0.023541 | 0 | 0 | 0 | 0 | 0.006849 | 0 | 0 | null | null | 0 | 0.06383 | null | null | 0.021277 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
55a448450ef16dcbbfd95d6484daa13257f8e1ca | 1,089 | py | Python | disjoint_set.py | Mt-Kunlun/Object-Saliency-Map-Atari | 759f7d9d2658626043f6b0e0dcaf8acd3c0e4655 | [
"MIT"
] | null | null | null | disjoint_set.py | Mt-Kunlun/Object-Saliency-Map-Atari | 759f7d9d2658626043f6b0e0dcaf8acd3c0e4655 | [
"MIT"
] | null | null | null | disjoint_set.py | Mt-Kunlun/Object-Saliency-Map-Atari | 759f7d9d2658626043f6b0e0dcaf8acd3c0e4655 | [
"MIT"
] | null | null | null | import numpy as np
# disjoint-set forests using union-by-rank and path compression (sort of).
class universe:
def __init__(self, n_elements):
self.num = n_elements
self.elts = np.empty(shape=(n_elements, 3), dtype=int)
for i in range(n_elements):
self.elts[i, 0] = 0 #... | 27.923077 | 75 | 0.459137 | 166 | 1,089 | 2.957831 | 0.289157 | 0.309572 | 0.14664 | 0.081466 | 0.236253 | 0.126273 | 0.126273 | 0.126273 | 0.126273 | 0.126273 | 0 | 0.035061 | 0.397612 | 1,089 | 38 | 76 | 28.657895 | 0.713415 | 0.097337 | 0 | 0.068966 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.172414 | false | 0 | 0.034483 | 0.068966 | 0.344828 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
55a5624a3d2ac28eb83b211136e77b9c0d5431d3 | 1,441 | py | Python | latteys/latteys/doctype/auto_mail.py | hrgadesha/lattyeys | 428b752ac99620ac7ad706fd305f07210bdcb315 | [
"MIT"
] | 1 | 2021-09-10T03:51:22.000Z | 2021-09-10T03:51:22.000Z | latteys/latteys/doctype/auto_mail.py | hrgadesha/lattyeys | 428b752ac99620ac7ad706fd305f07210bdcb315 | [
"MIT"
] | null | null | null | latteys/latteys/doctype/auto_mail.py | hrgadesha/lattyeys | 428b752ac99620ac7ad706fd305f07210bdcb315 | [
"MIT"
] | null | null | null | from __future__ import unicode_literals
import frappe
from datetime import datetime
from frappe.model.document import Document
@frappe.whitelist(allow_guest=True)
def sendMail(doc,method):
if doc.send_email_on_event_creation:
for d in doc.event_participants:
if d.reference_doctype == "Employee":
email = frap... | 65.5 | 277 | 0.687717 | 217 | 1,441 | 4.451613 | 0.294931 | 0.062112 | 0.016563 | 0.039337 | 0.662526 | 0.616977 | 0.616977 | 0.616977 | 0.616977 | 0.616977 | 0 | 0.009217 | 0.096461 | 1,441 | 21 | 278 | 68.619048 | 0.732719 | 0 | 0 | 0.333333 | 0 | 0 | 0.355309 | 0.101319 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.222222 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
55a64a7a3b06450aa004faf6e58c77885b9ba532 | 1,377 | py | Python | leetcode/medium/113-Path_sum_II.py | shubhamoli/practice | 5a24fdeb6e5f43b821ef0510fe3b343ddda18f22 | [
"MIT"
] | 1 | 2020-02-25T10:32:27.000Z | 2020-02-25T10:32:27.000Z | leetcode/medium/113-Path_sum_II.py | shubhamoli/practice | 5a24fdeb6e5f43b821ef0510fe3b343ddda18f22 | [
"MIT"
] | null | null | null | leetcode/medium/113-Path_sum_II.py | shubhamoli/practice | 5a24fdeb6e5f43b821ef0510fe3b343ddda18f22 | [
"MIT"
] | null | null | null | """
Leetcode #113
"""
from typing import List
class TreeNode:
def __init__(self, val=0, left=None, right=None):
self.val = val
self.left = left
self.right = right
class Solution:
def pathSum(self, root: TreeNode, sum: int) -> List[List[int]]:
if not root:
re... | 19.394366 | 67 | 0.511256 | 167 | 1,377 | 4.143713 | 0.281437 | 0.057803 | 0.052023 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03555 | 0.366739 | 1,377 | 70 | 68 | 19.671429 | 0.758028 | 0 | 0 | 0 | 0 | 0 | 0.006568 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.027778 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
55a76346989d9cefd61701c39bcea10af1d5f5b9 | 4,254 | py | Python | main.py | MrValdez/ggj-2018 | d8806a47f561f54afd915d7b5e03181fbd2dbcfa | [
"MIT"
] | null | null | null | main.py | MrValdez/ggj-2018 | d8806a47f561f54afd915d7b5e03181fbd2dbcfa | [
"MIT"
] | null | null | null | main.py | MrValdez/ggj-2018 | d8806a47f561f54afd915d7b5e03181fbd2dbcfa | [
"MIT"
] | 1 | 2018-02-25T15:04:43.000Z | 2018-02-25T15:04:43.000Z | import os
import pygame
from input import Input
from stages.stage import Stage
from stages.stage_example import StageExample
from stages.stage1 import Stage1
from stages.stage2 import Stage2
from stages.stage3 import Stage3
from stages.stage4 import Stage4
from stages.stage5 import Stage5
from stages.stage6 import St... | 32.723077 | 77 | 0.704278 | 497 | 4,254 | 5.971831 | 0.331992 | 0.124663 | 0.02527 | 0.011456 | 0.01752 | 0.01752 | 0 | 0 | 0 | 0 | 0 | 0.056712 | 0.220733 | 4,254 | 130 | 78 | 32.723077 | 0.838612 | 0.152562 | 0 | 0.018349 | 0 | 0 | 0.012885 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.366972 | 0 | 0.366972 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
55b6ea1d5523af9cb10562cdce01d07f5fcf19a0 | 2,605 | py | Python | main.py | famaxth/Amazon-Parser | efc236459f2c9d723e02c87e5ebd3b1cf5a09e58 | [
"MIT"
] | null | null | null | main.py | famaxth/Amazon-Parser | efc236459f2c9d723e02c87e5ebd3b1cf5a09e58 | [
"MIT"
] | null | null | null | main.py | famaxth/Amazon-Parser | efc236459f2c9d723e02c87e5ebd3b1cf5a09e58 | [
"MIT"
] | null | null | null | # - *- coding: utf- 8 - *-
import time
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.chrome.options import Options
options = Options()
options.headless = True
path = 'path/to/chromedriver.exe' # You need to change this
def parser():
tex... | 56.630435 | 222 | 0.603839 | 431 | 2,605 | 3.580046 | 0.229698 | 0.147764 | 0.122489 | 0.093325 | 0.605314 | 0.605314 | 0.588464 | 0.588464 | 0.588464 | 0.588464 | 0 | 0.030158 | 0.198081 | 2,605 | 45 | 223 | 57.888889 | 0.707516 | 0.018426 | 0 | 0.171429 | 0 | 0.257143 | 0.542447 | 0.374253 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028571 | false | 0 | 0.114286 | 0 | 0.142857 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
55b9023ec88372bc40c1756a9431095fe3d52bb6 | 1,059 | py | Python | xgboost_model.py | aravindpadman/Riiid-Answer-Correctness-Prediction | 127037d372352af969fbfa335bff8bad84afb603 | [
"MIT"
] | null | null | null | xgboost_model.py | aravindpadman/Riiid-Answer-Correctness-Prediction | 127037d372352af969fbfa335bff8bad84afb603 | [
"MIT"
] | null | null | null | xgboost_model.py | aravindpadman/Riiid-Answer-Correctness-Prediction | 127037d372352af969fbfa335bff8bad84afb603 | [
"MIT"
] | null | null | null | import pandas as pd
import numpy as np
import optuna
import xgboost
train = pd.read_csv("~/kaggledatasets/riiid-test-answer-prediction/train.csv", nrows=3e6,
dtype={'row_id': 'int64',
'timestamp': 'int64',
'user_id': 'int32',
... | 28.621622 | 90 | 0.481586 | 101 | 1,059 | 4.821782 | 0.623762 | 0.036961 | 0.073922 | 0.041068 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029126 | 0.416431 | 1,059 | 36 | 91 | 29.416667 | 0.7589 | 0 | 0 | 0.068966 | 0 | 0 | 0.241737 | 0.10576 | 0 | 0 | 0 | 0 | 0 | 1 | 0.137931 | false | 0.068966 | 0.137931 | 0 | 0.344828 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
55b9f31d49258d834824cb0904941fbaf15740b7 | 898 | py | Python | authors/apps/profiles/models.py | andela/ah-backend-odin | 0e9ef1a10c8a3f6736999a5111736f7bd7236689 | [
"BSD-3-Clause"
] | null | null | null | authors/apps/profiles/models.py | andela/ah-backend-odin | 0e9ef1a10c8a3f6736999a5111736f7bd7236689 | [
"BSD-3-Clause"
] | 43 | 2018-10-25T10:14:52.000Z | 2022-03-11T23:33:46.000Z | authors/apps/profiles/models.py | andela/ah-backend-odin | 0e9ef1a10c8a3f6736999a5111736f7bd7236689 | [
"BSD-3-Clause"
] | 4 | 2018-10-29T07:04:58.000Z | 2020-04-02T14:15:10.000Z | from django.db import models
from django.conf import settings
from django.db.models.signals import post_save
class Profile(models.Model):
username = models.CharField(max_length=255, primary_key=True)
bio = models.TextField(null=True, blank=True)
image = models.URLField(
null=True,
blank=T... | 26.411765 | 68 | 0.711581 | 117 | 898 | 5.273504 | 0.495727 | 0.048622 | 0.038898 | 0.055105 | 0.090762 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004172 | 0.199332 | 898 | 33 | 69 | 27.212121 | 0.853964 | 0.05902 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0.130435 | 0.043478 | 0.565217 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
55bb525b00d7081596041b440b9ccf7eb9668e9b | 31,939 | py | Python | tests/test_model.py | olzama/xigt | 60daa7201258ec02330264317e7a2315d929bd86 | [
"MIT"
] | 17 | 2017-01-14T23:29:07.000Z | 2022-02-23T08:50:09.000Z | tests/test_model.py | olzama/xigt | 60daa7201258ec02330264317e7a2315d929bd86 | [
"MIT"
] | 31 | 2015-02-11T17:25:59.000Z | 2015-12-07T21:04:39.000Z | tests/test_model.py | olzama/xigt | 60daa7201258ec02330264317e7a2315d929bd86 | [
"MIT"
] | 4 | 2018-02-04T17:21:53.000Z | 2021-11-29T16:33:45.000Z | import pytest
from xigt import XigtCorpus, Igt, Tier, Item, Metadata, Meta, MetaChild
from xigt.errors import XigtError, XigtStructureError
class TestMetadata():
md1 = Metadata()
m1 = Meta(id='meta1', text='meta')
md2 = Metadata(
id='md2',
type='basic',
attributes={'attr':'val'},... | 31.312745 | 82 | 0.558032 | 4,463 | 31,939 | 3.936366 | 0.044813 | 0.124658 | 0.078324 | 0.056466 | 0.728256 | 0.586123 | 0.410235 | 0.293488 | 0.231956 | 0.195867 | 0 | 0.035869 | 0.284229 | 31,939 | 1,019 | 83 | 31.343474 | 0.732601 | 0.036225 | 0 | 0.342604 | 0 | 0 | 0.055126 | 0 | 0 | 0 | 0 | 0 | 0.495575 | 1 | 0.125158 | false | 0 | 0.003793 | 0 | 0.174463 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
55beea09bbe265b3360f6e0c1ea21bb757b756fd | 7,784 | py | Python | pysnmp-with-texts/HP-ICF-IPV6-RA-GUARD-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/HP-ICF-IPV6-RA-GUARD-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/HP-ICF-IPV6-RA-GUARD-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module HP-ICF-IPV6-RA-GUARD-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HP-ICF-IPV6-RA-GUARD-MIB
# Produced by pysmi-0.3.4 at Wed May 1 13:34:21 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.... | 127.606557 | 828 | 0.776208 | 925 | 7,784 | 6.52973 | 0.245405 | 0.007616 | 0.073013 | 0.009934 | 0.352152 | 0.246854 | 0.187914 | 0.187914 | 0.17798 | 0.17798 | 0 | 0.068691 | 0.09481 | 7,784 | 60 | 829 | 129.733333 | 0.788533 | 0.043936 | 0 | 0.058824 | 0 | 0.058824 | 0.301493 | 0.052469 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.156863 | 0 | 0.156863 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
55c0577110244c4fafd7e8c73ddb2adb8d710299 | 10,584 | py | Python | isi_sdk/models/report_subreport_policy_file_matching_pattern_or_criteria_item_and_criteria_item.py | Atomicology/isilon_sdk_python | 91039da803ae37ed4abf8d2a3f59c333f3ef1866 | [
"MIT"
] | null | null | null | isi_sdk/models/report_subreport_policy_file_matching_pattern_or_criteria_item_and_criteria_item.py | Atomicology/isilon_sdk_python | 91039da803ae37ed4abf8d2a3f59c333f3ef1866 | [
"MIT"
] | null | null | null | isi_sdk/models/report_subreport_policy_file_matching_pattern_or_criteria_item_and_criteria_item.py | Atomicology/isilon_sdk_python | 91039da803ae37ed4abf8d2a3f59c333f3ef1866 | [
"MIT"
] | null | null | null | # coding: utf-8
"""
Copyright 2016 SmartBear Software
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applica... | 36.371134 | 305 | 0.647865 | 1,033 | 10,584 | 6.50726 | 0.187803 | 0.026778 | 0.312407 | 0.083309 | 0.606218 | 0.571407 | 0.493306 | 0.367748 | 0.357037 | 0.322226 | 0 | 0.001838 | 0.28014 | 10,584 | 290 | 306 | 36.496552 | 0.880431 | 0.52551 | 0 | 0.116071 | 0 | 0 | 0.128551 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.178571 | false | 0 | 0.026786 | 0 | 0.321429 | 0.008929 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e95640499c478bef869502f2fe8e6dcadc430eb2 | 399 | py | Python | src/commands/i_stat/anticheat.py | slimsevernake/osbb-bot | 3a6b9512523a5374034c2f1cdb83ea5cd6de0ac8 | [
"MIT"
] | 9 | 2018-08-19T12:55:58.000Z | 2021-07-17T15:38:40.000Z | src/commands/i_stat/anticheat.py | slimsevernake/osbb-bot | 3a6b9512523a5374034c2f1cdb83ea5cd6de0ac8 | [
"MIT"
] | 124 | 2018-07-31T13:43:58.000Z | 2022-03-11T23:27:43.000Z | src/commands/i_stat/anticheat.py | slimsevernake/osbb-bot | 3a6b9512523a5374034c2f1cdb83ea5cd6de0ac8 | [
"MIT"
] | 3 | 2019-10-21T13:18:14.000Z | 2021-02-09T11:05:10.000Z | from src.utils.cache import cache
def cheats_key(chat_id: int, user_id: int) -> str:
return f'i_stat:cheats:{chat_id}:{user_id}'
def cheats_found(chat_id: int, user_id: int, sum_count: int) -> bool:
key = cheats_key(chat_id, user_id)
sums = cache.get(key, 0)
sums += sum_count
if sums > 50:
... | 23.470588 | 69 | 0.649123 | 68 | 399 | 3.602941 | 0.485294 | 0.097959 | 0.106122 | 0.122449 | 0.146939 | 0.146939 | 0 | 0 | 0 | 0 | 0 | 0.029126 | 0.225564 | 399 | 16 | 70 | 24.9375 | 0.763754 | 0.007519 | 0 | 0 | 0 | 0 | 0.083756 | 0.083756 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.090909 | 0.090909 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
e95c3c23ff20e2cb3d818ef3d5c5a11d27117013 | 3,953 | py | Python | ipbb/models/ipbb.py | aagusti/i-pbb | 8178f68744b440f96f2c3d114c2485d728655e24 | [
"MIT"
] | null | null | null | ipbb/models/ipbb.py | aagusti/i-pbb | 8178f68744b440f96f2c3d114c2485d728655e24 | [
"MIT"
] | null | null | null | ipbb/models/ipbb.py | aagusti/i-pbb | 8178f68744b440f96f2c3d114c2485d728655e24 | [
"MIT"
] | null | null | null | from datetime import datetime
from sqlalchemy import (
Column,
Integer,
Text,
DateTime,
SmallInteger,
BigInteger,
String,
Date,
ForeignKey,
UniqueConstraint
)
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm.exc import NoResultFound
from sqlalchemy.... | 39.53 | 85 | 0.698963 | 462 | 3,953 | 5.785714 | 0.218615 | 0.165357 | 0.094276 | 0.120464 | 0.56229 | 0.496072 | 0.443696 | 0.382342 | 0.298167 | 0.258511 | 0 | 0.016986 | 0.180875 | 3,953 | 99 | 86 | 39.929293 | 0.808524 | 0.005312 | 0 | 0.261364 | 0 | 0 | 0.061562 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034091 | false | 0.022727 | 0.079545 | 0.034091 | 0.784091 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
e95cb362167c296066d686777e92e50fed2083ee | 977 | py | Python | core/models/transaction.py | soslaio/openme | b6e8c87279363a62992b5db14646dbaa655dc936 | [
"MIT"
] | null | null | null | core/models/transaction.py | soslaio/openme | b6e8c87279363a62992b5db14646dbaa655dc936 | [
"MIT"
] | null | null | null | core/models/transaction.py | soslaio/openme | b6e8c87279363a62992b5db14646dbaa655dc936 | [
"MIT"
] | null | null | null |
from django.db import models
from .base import Base
class Transaction(Base):
date = models.DateField()
description = models.CharField(max_length=400)
ammount = models.DecimalField(max_digits=10, decimal_places=2)
category = models.ForeignKey('Category', on_delete=models.CASCADE)
from_account = mo... | 33.689655 | 107 | 0.69089 | 117 | 977 | 5.598291 | 0.470085 | 0.073282 | 0.064122 | 0.096183 | 0.155725 | 0.155725 | 0.155725 | 0.155725 | 0 | 0 | 0 | 0.009079 | 0.21085 | 977 | 28 | 108 | 34.892857 | 0.840467 | 0 | 0 | 0.090909 | 0 | 0 | 0.074795 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136364 | false | 0 | 0.090909 | 0.090909 | 0.818182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
e96535fbd6c7f8ed1b7186f2611a4c30b772e4ba | 866 | py | Python | tbx/settings/dev.py | elviva404/wagtail-torchbox | 718d9e2c4337073f010296932d369c726a01dbd3 | [
"MIT"
] | 103 | 2015-02-24T17:58:21.000Z | 2022-03-23T08:08:58.000Z | tbx/settings/dev.py | elviva404/wagtail-torchbox | 718d9e2c4337073f010296932d369c726a01dbd3 | [
"MIT"
] | 145 | 2015-01-13T17:13:43.000Z | 2022-03-29T12:56:20.000Z | tbx/settings/dev.py | elviva404/wagtail-torchbox | 718d9e2c4337073f010296932d369c726a01dbd3 | [
"MIT"
] | 57 | 2015-01-03T12:00:37.000Z | 2022-02-09T13:11:30.000Z | from .base import * # noqa
DEBUG = True
SECURE_SSL_REDIRECT = False
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = "CHANGEME!!!"
# Enable FE component library
PATTERN_LIBRARY_ENABLED = True
INTERNAL_IPS = ("127.0.0.1", "10.0.2.2")
BASE_URL = "http://localhost:8000"
# URL to dire... | 23.405405 | 66 | 0.742494 | 122 | 866 | 5.147541 | 0.688525 | 0.033439 | 0.076433 | 0.073248 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030997 | 0.143187 | 866 | 36 | 67 | 24.055556 | 0.815364 | 0.364896 | 0 | 0 | 0 | 0 | 0.333333 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.117647 | 0.176471 | 0 | 0.176471 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
e9676f23c227a8e3dbd2af8223b0d6f349a5e56a | 408 | py | Python | envdsys/envdaq/migrations/0009_auto_20210415_2246.py | NOAA-PMEL/envDataSystem | 4db4a3569d2329658799a3eef06ce36dd5c0597d | [
"Unlicense"
] | 1 | 2021-11-06T19:22:53.000Z | 2021-11-06T19:22:53.000Z | envdsys/envdaq/migrations/0009_auto_20210415_2246.py | NOAA-PMEL/envDataSystem | 4db4a3569d2329658799a3eef06ce36dd5c0597d | [
"Unlicense"
] | 25 | 2019-06-18T20:40:36.000Z | 2021-07-23T20:56:48.000Z | envdsys/envdaq/migrations/0009_auto_20210415_2246.py | NOAA-PMEL/envDataSystem | 4db4a3569d2329658799a3eef06ce36dd5c0597d | [
"Unlicense"
] | null | null | null | # Generated by Django 3.1.7 on 2021-04-15 22:46
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('envdaq', '0008_interface'),
]
operations = [
migrations.AlterField(
model_name='interface',
name='config',
... | 21.473684 | 79 | 0.607843 | 42 | 408 | 5.833333 | 0.809524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064189 | 0.27451 | 408 | 18 | 80 | 22.666667 | 0.763514 | 0.110294 | 0 | 0 | 1 | 0 | 0.132964 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e9681f3574652f7f41d0d0d5c77f92d6ff04b1eb | 2,020 | py | Python | works/migrations/0001_initial.py | wildcodear/wildcode_project | 95d396ad3acbed08f607f618d6ada9d04b351bd8 | [
"MIT"
] | null | null | null | works/migrations/0001_initial.py | wildcodear/wildcode_project | 95d396ad3acbed08f607f618d6ada9d04b351bd8 | [
"MIT"
] | null | null | null | works/migrations/0001_initial.py | wildcodear/wildcode_project | 95d396ad3acbed08f607f618d6ada9d04b351bd8 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('documents', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Client',
fields=[
... | 40.4 | 114 | 0.550495 | 190 | 2,020 | 5.705263 | 0.363158 | 0.074723 | 0.132841 | 0.177122 | 0.523063 | 0.392989 | 0.304428 | 0.304428 | 0.304428 | 0.304428 | 0 | 0.019732 | 0.297525 | 2,020 | 49 | 115 | 41.22449 | 0.744186 | 0.010396 | 0 | 0.418605 | 0 | 0 | 0.094642 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.046512 | 0 | 0.116279 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e96a9a36758616e89fb2f6e13a5fba67dd556005 | 323 | py | Python | setup.py | alkaupp/weather | 0aab40b26064ae8ebc4b0868da828a07a4c39631 | [
"MIT"
] | null | null | null | setup.py | alkaupp/weather | 0aab40b26064ae8ebc4b0868da828a07a4c39631 | [
"MIT"
] | null | null | null | setup.py | alkaupp/weather | 0aab40b26064ae8ebc4b0868da828a07a4c39631 | [
"MIT"
] | null | null | null | from setuptools import setup
setup(
name='weather',
version='0.1',
description='CLI frontend for querying weather',
packages=['weather'],
entry_points={
'console_scripts': ['weather = weather.__main__:main']
},
author='Aleksi Kauppila',
author_email='aleksi.kauppila@gmail.com'
)... | 20.1875 | 62 | 0.656347 | 35 | 323 | 5.857143 | 0.742857 | 0.136585 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007782 | 0.204334 | 323 | 15 | 63 | 21.533333 | 0.789883 | 0 | 0 | 0 | 0 | 0 | 0.423676 | 0.143302 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.083333 | 0 | 0.083333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e96dd4f2640b513649fb3793b8d1056d51d5824e | 1,525 | py | Python | src/futebol_wss_agent/lib/verification.py | nerds-ufes/futebol-optical-agent | 405117b152ce96f09770ff5ca646bd18a72ee2fa | [
"Apache-2.0"
] | null | null | null | src/futebol_wss_agent/lib/verification.py | nerds-ufes/futebol-optical-agent | 405117b152ce96f09770ff5ca646bd18a72ee2fa | [
"Apache-2.0"
] | null | null | null | src/futebol_wss_agent/lib/verification.py | nerds-ufes/futebol-optical-agent | 405117b152ce96f09770ff5ca646bd18a72ee2fa | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright 2017-2022 Anderson Bravalheri, Univertity of Bristol
# High Performance Networks Group
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# Yo... | 34.659091 | 74 | 0.727213 | 191 | 1,525 | 5.753927 | 0.659686 | 0.054595 | 0.023658 | 0.029117 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010425 | 0.182295 | 1,525 | 43 | 75 | 35.465116 | 0.87089 | 0.643934 | 0 | 0 | 0 | 0 | 0.100402 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.888889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
e972ad4a4720505a28ff8ccfa9d6a0290e94f706 | 11,599 | py | Python | colabutil.py | cmcheungMOOC/colabUtil | c08da88ae56d461404960de3426344e7da49f3db | [
"MIT"
] | 1 | 2018-08-07T05:34:11.000Z | 2018-08-07T05:34:11.000Z | colabutil.py | cmcheungMOOC/colabUtil | c08da88ae56d461404960de3426344e7da49f3db | [
"MIT"
] | null | null | null | colabutil.py | cmcheungMOOC/colabUtil | c08da88ae56d461404960de3426344e7da49f3db | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""colabUtil.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1KX9x-rqyj0XfUkLtfOVh8t8T_kW0hs0u
#Colab Util
This is a collection of utility functions that simplifies data science researchin using colab. I wrote this while ... | 30.049223 | 512 | 0.691698 | 1,557 | 11,599 | 5.134233 | 0.246628 | 0.015011 | 0.024393 | 0.034151 | 0.231173 | 0.198649 | 0.166625 | 0.15987 | 0.151864 | 0.137853 | 0 | 0.012117 | 0.17467 | 11,599 | 386 | 513 | 30.049223 | 0.82294 | 0.39081 | 0 | 0.294931 | 1 | 0.004608 | 0.119095 | 0.014065 | 0 | 0 | 0 | 0 | 0 | 1 | 0.073733 | false | 0 | 0.046083 | 0.004608 | 0.207373 | 0.152074 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e97d491587ef3bda7620cb34a61d716763821b01 | 5,288 | py | Python | datalad_osf/utils.py | adswa/datalad-osf-2 | 25988f898ffc6f489c0855933136f39f79cf8c65 | [
"BSD-3-Clause"
] | null | null | null | datalad_osf/utils.py | adswa/datalad-osf-2 | 25988f898ffc6f489c0855933136f39f79cf8c65 | [
"BSD-3-Clause"
] | null | null | null | datalad_osf/utils.py | adswa/datalad-osf-2 | 25988f898ffc6f489c0855933136f39f79cf8c65 | [
"BSD-3-Clause"
] | null | null | null | # emacs: -*- mode: python; py-indent-offset: 4; tab-width: 4; indent-tabs-mode: nil -*-
# ex: set sts=4 ts=4 sw=4 noet:
# ## ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ##
#
# See LICENSE file distributed along with the datalad_osf package for the
# copyright and license terms.
#
# ## ##... | 31.664671 | 87 | 0.580182 | 633 | 5,288 | 4.751975 | 0.336493 | 0.023271 | 0.025931 | 0.017952 | 0.15891 | 0.097739 | 0.051197 | 0.051197 | 0.051197 | 0.027926 | 0 | 0.001346 | 0.297277 | 5,288 | 166 | 88 | 31.855422 | 0.808127 | 0.369705 | 0 | 0.1125 | 0 | 0 | 0.13975 | 0 | 0 | 0 | 0 | 0.006024 | 0 | 1 | 0.05 | false | 0.1125 | 0.0625 | 0 | 0.15 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
e97dc3bd342d59f1490983b6c64ea74961cdd4e4 | 1,487 | py | Python | tpDcc/libs/qt/core/observable.py | tpDcc/tpQtLib | 26b6e893395633a1b189a1b73654891b7688648d | [
"MIT"
] | 3 | 2019-08-26T05:56:12.000Z | 2019-10-03T11:35:53.000Z | tpDcc/libs/qt/core/observable.py | tpDcc/tpQtLib | 26b6e893395633a1b189a1b73654891b7688648d | [
"MIT"
] | null | null | null | tpDcc/libs/qt/core/observable.py | tpDcc/tpQtLib | 26b6e893395633a1b189a1b73654891b7688648d | [
"MIT"
] | 1 | 2021-03-03T21:01:50.000Z | 2021-03-03T21:01:50.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Module that contains Qt observer pattern related functions and classes
"""
from __future__ import print_function, division, absolute_import
from uuid import uuid4
from functools import partial
from Qt.QtCore import Signal, QObject
class ObservableProxy(QObject):
... | 31.638298 | 119 | 0.462677 | 121 | 1,487 | 5.454545 | 0.520661 | 0.066667 | 0.042424 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002423 | 0.167451 | 1,487 | 46 | 120 | 32.326087 | 0.530695 | 0.449899 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.222222 | 0 | 0.555556 | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
e980cd0e0ae302b2d5e582e27e0280d700f45285 | 1,909 | py | Python | rest_framework_json_api/utils.py | jwhitlock/drf-json-api | a62802432c612c34079f3c3694129f37778e2577 | [
"MIT"
] | null | null | null | rest_framework_json_api/utils.py | jwhitlock/drf-json-api | a62802432c612c34079f3c3694129f37778e2577 | [
"MIT"
] | null | null | null | rest_framework_json_api/utils.py | jwhitlock/drf-json-api | a62802432c612c34079f3c3694129f37778e2577 | [
"MIT"
] | null | null | null | from django.utils.encoding import force_text
from django.utils.text import slugify
try:
from rest_framework.serializers import ManyRelatedField
except ImportError:
ManyRelatedField = type(None)
try:
from rest_framework.serializers import ListSerializer
except ImportError:
ListSerializer = type(None)
... | 20.526882 | 71 | 0.671032 | 222 | 1,909 | 5.675676 | 0.342342 | 0.038095 | 0.053968 | 0.045238 | 0.303175 | 0.130159 | 0.071429 | 0.071429 | 0.071429 | 0 | 0 | 0.001354 | 0.226296 | 1,909 | 92 | 72 | 20.75 | 0.851726 | 0.225249 | 0 | 0.232558 | 0 | 0 | 0.018505 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.162791 | false | 0 | 0.139535 | 0 | 0.651163 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
e982548723b8fb19b5a93e5e600f9ad6d5133e1c | 2,246 | py | Python | Ui_ZhkuMainWindow.py | yujiecong/PyQt-Zhku-Client | 8fa35592cbf8af7efe8d55d4f66625cd4918a3ff | [
"MIT"
] | null | null | null | Ui_ZhkuMainWindow.py | yujiecong/PyQt-Zhku-Client | 8fa35592cbf8af7efe8d55d4f66625cd4918a3ff | [
"MIT"
] | null | null | null | Ui_ZhkuMainWindow.py | yujiecong/PyQt-Zhku-Client | 8fa35592cbf8af7efe8d55d4f66625cd4918a3ff | [
"MIT"
] | 1 | 2021-09-14T03:28:16.000Z | 2021-09-14T03:28:16.000Z | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'Ui_ZhkuMainWindow.ui'
#
# Created by: PyQt5 UI code generator 5.15.2
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 import Qt... | 44.92 | 81 | 0.740427 | 233 | 2,246 | 7.038627 | 0.364807 | 0.170732 | 0.076829 | 0.038415 | 0.212195 | 0.178049 | 0.076829 | 0 | 0 | 0 | 0 | 0.033636 | 0.166073 | 2,246 | 49 | 82 | 45.836735 | 0.841965 | 0.125557 | 0 | 0 | 1 | 0 | 0.107873 | 0.048057 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057143 | false | 0 | 0.057143 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e98a1dc0d5d9161eac10445f95ac9ce1dbe57950 | 348 | py | Python | projecteuler/problems/problem_41.py | hjheath/ProjectEuler | 6961fe81e2039c281ea9d4ab0bdd85611bf256a8 | [
"MIT"
] | 1 | 2015-04-25T10:37:52.000Z | 2015-04-25T10:37:52.000Z | projecteuler/problems/problem_41.py | hjheath/ProjectEuler | 6961fe81e2039c281ea9d4ab0bdd85611bf256a8 | [
"MIT"
] | null | null | null | projecteuler/problems/problem_41.py | hjheath/ProjectEuler | 6961fe81e2039c281ea9d4ab0bdd85611bf256a8 | [
"MIT"
] | null | null | null | """Problem 41 of https://projecteuler.net"""
from itertools import permutations
from projecteuler.inspectors import is_prime
def problem_41():
"""Solution to problem 41."""
# All 8 and 9 digit pandigitals are divisible by 3.
perms = [int(''.join(x)) for x in permutations('1234567')]
return max(x for... | 26.769231 | 62 | 0.698276 | 53 | 348 | 4.528302 | 0.679245 | 0.1125 | 0.041667 | 0.058333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056338 | 0.183908 | 348 | 12 | 63 | 29 | 0.788732 | 0.324713 | 0 | 0 | 0 | 0 | 0.03125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
e98ee77c65cf6881d1b3b3557c92ca630d8803bb | 2,905 | py | Python | beaconsite/tests/test_permissions.py | brand-fabian/varfish-server | 6a084d891d676ff29355e72a29d4f7b207220283 | [
"MIT"
] | 14 | 2019-09-30T12:44:17.000Z | 2022-02-04T14:45:16.000Z | beaconsite/tests/test_permissions.py | brand-fabian/varfish-server | 6a084d891d676ff29355e72a29d4f7b207220283 | [
"MIT"
] | 244 | 2021-03-26T15:13:15.000Z | 2022-03-31T15:48:04.000Z | beaconsite/tests/test_permissions.py | brand-fabian/varfish-server | 6a084d891d676ff29355e72a29d4f7b207220283 | [
"MIT"
] | 8 | 2020-05-19T21:55:13.000Z | 2022-03-31T07:02:58.000Z | from django.urls import reverse
from projectroles.tests.test_permissions import TestProjectPermissionBase
from beaconsite.tests.factories import ConsortiumFactory, SiteFactory
class UsersMixin:
def setUp(self):
super().setUp()
self.consortium = ConsortiumFactory()
self.site = SiteFactory(... | 35.864198 | 98 | 0.664028 | 345 | 2,905 | 5.411594 | 0.153623 | 0.096411 | 0.17354 | 0.202464 | 0.701125 | 0.67113 | 0.67113 | 0.67113 | 0.67113 | 0.596144 | 0 | 0.023936 | 0.223408 | 2,905 | 80 | 99 | 36.3125 | 0.803635 | 0 | 0 | 0.446154 | 0 | 0 | 0.087435 | 0.060585 | 0 | 0 | 0 | 0 | 0.276923 | 1 | 0.153846 | false | 0 | 0.046154 | 0 | 0.261538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e98f933a4b8c3a1b81125f679e51f0db2f252a76 | 22,851 | py | Python | uldaq-1.2.1/uldaq/ul_c_interface.py | Novellogiampiero/RapLib | 614d25abf402052dcaf81aa72044e3a03cb014fa | [
"Apache-2.0"
] | null | null | null | uldaq-1.2.1/uldaq/ul_c_interface.py | Novellogiampiero/RapLib | 614d25abf402052dcaf81aa72044e3a03cb014fa | [
"Apache-2.0"
] | null | null | null | uldaq-1.2.1/uldaq/ul_c_interface.py | Novellogiampiero/RapLib | 614d25abf402052dcaf81aa72044e3a03cb014fa | [
"Apache-2.0"
] | null | null | null | """
Created on Mar 7 2018
@author: MCC
"""
from ctypes import (CDLL, CFUNCTYPE, Structure, c_uint, c_int, c_longlong,
POINTER, c_double, c_char, py_object, c_ulonglong, cast,
c_char_p, c_byte)
from enum import IntEnum
from .ul_structs import DaqDeviceDescriptor, AiQueueElement, ... | 56.843284 | 136 | 0.733928 | 3,251 | 22,851 | 4.960628 | 0.139957 | 0.052087 | 0.101197 | 0.082594 | 0.554846 | 0.499349 | 0.467105 | 0.415824 | 0.385813 | 0.330378 | 0 | 0.012654 | 0.166557 | 22,851 | 401 | 137 | 56.985037 | 0.83413 | 0.400508 | 0 | 0.155235 | 0 | 0 | 0.003945 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.00361 | false | 0 | 0.021661 | 0 | 0.548736 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
e9a055a93eab839ab9a14c3a44071ae1537f4ac6 | 1,528 | py | Python | fpga/test/fifo/fifo_tb.py | edge-analytics/fpga-sleep-tracker | 50efd114500e134297be5229775a9ec6809abb53 | [
"MIT"
] | 2 | 2021-11-05T13:27:35.000Z | 2022-03-12T04:44:03.000Z | fpga/test/fifo/fifo_tb.py | edge-analytics/fpga-sleep-tracker | 50efd114500e134297be5229775a9ec6809abb53 | [
"MIT"
] | null | null | null | fpga/test/fifo/fifo_tb.py | edge-analytics/fpga-sleep-tracker | 50efd114500e134297be5229775a9ec6809abb53 | [
"MIT"
] | null | null | null | import cocotb
from cocotb.clock import Clock
from cocotb.triggers import ClockCycles, RisingEdge, FallingEdge, NextTimeStep, ReadWrite
N = 16
test_input = list(range(N))
async def writer(dut):
for i in test_input:
busy_check = lambda : not dut.ready_for_input.value
while busy_check():
... | 28.296296 | 89 | 0.630236 | 212 | 1,528 | 4.410377 | 0.358491 | 0.04492 | 0.047059 | 0.094118 | 0.204278 | 0.077005 | 0.077005 | 0.077005 | 0 | 0 | 0 | 0.018767 | 0.26767 | 1,528 | 53 | 90 | 28.830189 | 0.816801 | 0.093586 | 0 | 0.170732 | 0 | 0 | 0.00145 | 0 | 0 | 0 | 0 | 0.018868 | 0.02439 | 1 | 0 | false | 0 | 0.073171 | 0 | 0.097561 | 0.02439 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e9a341910fc41cf0116d2acf9b1914cdde30cec5 | 615 | py | Python | library/tests/test_setup.py | pimoroni/mics6814-python | 73c4f23d36c1f97dcdcb2d4ee08a52f6fedcda79 | [
"MIT"
] | 6 | 2021-05-16T05:02:57.000Z | 2022-01-05T16:02:46.000Z | library/tests/test_setup.py | pimoroni/mics6814-python | 73c4f23d36c1f97dcdcb2d4ee08a52f6fedcda79 | [
"MIT"
] | 3 | 2021-09-15T10:24:56.000Z | 2022-01-24T21:16:05.000Z | library/tests/test_setup.py | pimoroni/mics6814-python | 73c4f23d36c1f97dcdcb2d4ee08a52f6fedcda79 | [
"MIT"
] | null | null | null | import mock
def test_setup(ioexpander):
from mics6814 import MICS6814
mics6814 = MICS6814()
mics6814._ioe.set_pwm_period.assert_called_once_with(5100)
mics6814._ioe.set_mode.assert_has_calls((
mock.call(3, ioexpander.PWM),
mock.call(7, ioexpander.PWM),
mock.call(2, ioexpander... | 24.6 | 67 | 0.666667 | 81 | 615 | 4.876543 | 0.419753 | 0.162025 | 0.172152 | 0.212658 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.10166 | 0.21626 | 615 | 24 | 68 | 25.625 | 0.717842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176471 | 1 | 0.058824 | false | 0 | 0.117647 | 0 | 0.176471 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e9a3a67be8807d04ec27501d70d8ad63e1c4fad0 | 1,194 | py | Python | app/db.py | JuanDM93/fcc-fastapi-demo | 7d20f91fa96989d22426632c1ab2550f62898789 | [
"MIT"
] | null | null | null | app/db.py | JuanDM93/fcc-fastapi-demo | 7d20f91fa96989d22426632c1ab2550f62898789 | [
"MIT"
] | null | null | null | app/db.py | JuanDM93/fcc-fastapi-demo | 7d20f91fa96989d22426632c1ab2550f62898789 | [
"MIT"
] | null | null | null | from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
from sqlalchemy.ext.declarative import declarative_base
from .config import settings
SQLALCHEMY_DATABASE_URL = 'postgresql://{user}:{password}@{host}:{port}/{db}'.format(
user=settings.DB_USER,
password=settings.DB_PASSWORD,
hos... | 23.88 | 85 | 0.664154 | 137 | 1,194 | 5.627737 | 0.416058 | 0.129702 | 0.054475 | 0.046693 | 0.207523 | 0.207523 | 0.207523 | 0.207523 | 0 | 0 | 0 | 0.002193 | 0.236181 | 1,194 | 49 | 86 | 24.367347 | 0.843202 | 0 | 0 | 0 | 0 | 0 | 0.075734 | 0.075734 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0.1 | 0.2 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
e9a3c9a700552b660476506eef95bc2604a7a3bc | 1,156 | py | Python | migrations/0002_user_biography_user_gender_user_phone_number_and_more.py | sepydev/django-user | 1a67caa197f9bb72ec41491cac1ae0a94385da87 | [
"MIT"
] | 1 | 2022-02-05T18:26:02.000Z | 2022-02-05T18:26:02.000Z | migrations/0002_user_biography_user_gender_user_phone_number_and_more.py | mrprocs/django-user | 1a67caa197f9bb72ec41491cac1ae0a94385da87 | [
"MIT"
] | null | null | null | migrations/0002_user_biography_user_gender_user_phone_number_and_more.py | mrprocs/django-user | 1a67caa197f9bb72ec41491cac1ae0a94385da87 | [
"MIT"
] | null | null | null | # Generated by Django 4.0.1 on 2022-02-07 17:53
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='user',
name... | 33.028571 | 264 | 0.601211 | 125 | 1,156 | 5.464 | 0.504 | 0.105417 | 0.1347 | 0.158126 | 0.316252 | 0.316252 | 0.111274 | 0 | 0 | 0 | 0 | 0.044759 | 0.265571 | 1,156 | 34 | 265 | 34 | 0.759717 | 0.038927 | 0 | 0.428571 | 1 | 0 | 0.187556 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.178571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e9a5f013db2d4eef22aa1809148db7e678473ae5 | 501 | py | Python | utils/constants.py | tholiao/learning-morph-and-ctrl | 6093cc7cede3b7ab2f3304d7060815712d535a2d | [
"MIT"
] | 1 | 2022-03-10T08:17:18.000Z | 2022-03-10T08:17:18.000Z | utils/constants.py | tholiao/learning-morph-and-ctrl | 6093cc7cede3b7ab2f3304d7060815712d535a2d | [
"MIT"
] | null | null | null | utils/constants.py | tholiao/learning-morph-and-ctrl | 6093cc7cede3b7ab2f3304d7060815712d535a2d | [
"MIT"
] | null | null | null | import numpy as np
from walkers import ScalableWalker
DEFAULT_SCENE = "scenes/walker.ttt"
DEFAULT_WALKER = ScalableWalker
N_MRPH_PARAMS = [3, 3, 6]
N_CTRL_PARAMS = [4, 8, 8]
MORPHOLOGY_BOUNDS = [
[[0.7] * 3, [1.4] * 3],
[[0.7] * 3, [1.4] * 3],
[[0.7] * 6, [1.4] * 6]
]
CONTROLLER_BOUNDS = [
[[1, -np... | 22.772727 | 73 | 0.493014 | 96 | 501 | 2.489583 | 0.302083 | 0.058577 | 0.050209 | 0.075314 | 0.288703 | 0.259414 | 0.259414 | 0.259414 | 0.200837 | 0.200837 | 0 | 0.159686 | 0.237525 | 501 | 21 | 74 | 23.857143 | 0.465969 | 0 | 0 | 0.125 | 0 | 0 | 0.033932 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e9b137261c2449a945a4fb05ca0369045630920a | 879 | py | Python | casbin/util/util.py | goodrain/pycasbin | 1a481ba1af7619e1cc7e83896581d14976927d80 | [
"Apache-2.0"
] | null | null | null | casbin/util/util.py | goodrain/pycasbin | 1a481ba1af7619e1cc7e83896581d14976927d80 | [
"Apache-2.0"
] | null | null | null | casbin/util/util.py | goodrain/pycasbin | 1a481ba1af7619e1cc7e83896581d14976927d80 | [
"Apache-2.0"
] | null | null | null | def escape_assertion(s):
"""escapes the dots in the assertion, because the expression evaluation doesn't support such variable names."""
s = s.replace("r.", "r_")
s = s.replace("p.", "p_")
return s
def remove_comments(s):
"""removes the comments starting with # in the text."""
pos = s.find(... | 20.44186 | 115 | 0.576792 | 129 | 879 | 3.852713 | 0.434109 | 0.056338 | 0.036217 | 0.052314 | 0.128773 | 0.128773 | 0.128773 | 0.128773 | 0 | 0 | 0 | 0.006349 | 0.283276 | 879 | 42 | 116 | 20.928571 | 0.78254 | 0.351536 | 0 | 0.181818 | 0 | 0 | 0.023897 | 0 | 0 | 0 | 0 | 0 | 0.045455 | 1 | 0.227273 | false | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e9b97dc8d0695130796496766449b39ed72da44e | 8,299 | py | Python | sdk/python/pulumi_aws/sns/platform_application.py | pulumi-bot/pulumi-aws | 756c60135851e015232043c8206567101b8ebd85 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_aws/sns/platform_application.py | pulumi-bot/pulumi-aws | 756c60135851e015232043c8206567101b8ebd85 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_aws/sns/platform_application.py | pulumi-bot/pulumi-aws | 756c60135851e015232043c8206567101b8ebd85 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import pulumi
import pulumi.runtime
class PlatformApplication(pulumi.CustomResource):
"""
Provides an SNS platform application... | 54.960265 | 384 | 0.719605 | 937 | 8,299 | 5.982924 | 0.161153 | 0.045665 | 0.042811 | 0.068498 | 0.517481 | 0.372101 | 0.264716 | 0.196932 | 0.150018 | 0.080628 | 0 | 0.001235 | 0.219424 | 8,299 | 150 | 385 | 55.326667 | 0.864156 | 0.037354 | 0 | 0 | 1 | 0 | 0.255997 | 0.125631 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022222 | false | 0 | 0.022222 | 0 | 0.055556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e9ca0883ad077b45b1ec76d740903d31001f2d85 | 609 | py | Python | Python Advanced/File Handling/Exercise/directory_traversal.py | DonikaChervenkova/SoftUni | bff579c037ec48f39ed193b34bc3502a32e90732 | [
"MIT"
] | 1 | 2022-03-16T10:23:04.000Z | 2022-03-16T10:23:04.000Z | Python Advanced/Advanced/File Handling/Exercise/directory_traversal.py | IvanTodorovBG/SoftUni | 7b667f6905d9f695ab1484efbb02b6715f6d569e | [
"MIT"
] | null | null | null | Python Advanced/Advanced/File Handling/Exercise/directory_traversal.py | IvanTodorovBG/SoftUni | 7b667f6905d9f695ab1484efbb02b6715f6d569e | [
"MIT"
] | 1 | 2021-12-04T12:30:57.000Z | 2021-12-04T12:30:57.000Z | from os import listdir, path
def traverse_dir(current_path, files_by_ext):
for el in listdir(current_path):
if path.isdir(path.join(current_path, el)):
traverse_dir(path.join(current_path, el), files_by_ext)
else:
extension = el.split(".")[-1]
if extension not i... | 27.681818 | 67 | 0.619048 | 87 | 609 | 4.068966 | 0.333333 | 0.158192 | 0.225989 | 0.073446 | 0.118644 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002188 | 0.249589 | 609 | 21 | 68 | 29 | 0.772429 | 0 | 0 | 0 | 0 | 0 | 0.027915 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.0625 | 0 | 0.125 | 0.125 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e9ded115d696296991152dc24cb65d091ffcff68 | 4,072 | py | Python | venv/Lib/site-packages/tests/unit/driver/test_async_generic_driver.py | melihteke/ebook_study | 4848ea42e37ee1d6ec777bfc33f49984653ace34 | [
"MIT"
] | null | null | null | venv/Lib/site-packages/tests/unit/driver/test_async_generic_driver.py | melihteke/ebook_study | 4848ea42e37ee1d6ec777bfc33f49984653ace34 | [
"MIT"
] | null | null | null | venv/Lib/site-packages/tests/unit/driver/test_async_generic_driver.py | melihteke/ebook_study | 4848ea42e37ee1d6ec777bfc33f49984653ace34 | [
"MIT"
] | null | null | null | from pathlib import Path
import pytest
import scrapli
from scrapli.channel import Channel
from scrapli.transport import Transport
from ...test_data.unit_test_cases import TEST_CASES
TEST_DATA_DIR = f"{Path(scrapli.__file__).parents[1]}/tests/test_data"
def test_init(sync_generic_driver_conn):
"""Test that all... | 42.416667 | 99 | 0.766208 | 539 | 4,072 | 5.371058 | 0.139147 | 0.079793 | 0.117444 | 0.129188 | 0.758549 | 0.723316 | 0.662867 | 0.570639 | 0.487047 | 0.451123 | 0 | 0.002245 | 0.124754 | 4,072 | 95 | 100 | 42.863158 | 0.810045 | 0.020629 | 0 | 0.423077 | 0 | 0 | 0.219237 | 0.04219 | 0 | 0 | 0 | 0 | 0.141026 | 1 | 0.012821 | false | 0 | 0.076923 | 0 | 0.089744 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e9e13d802219234f0d6ee29b93ebb1c9e6c8a66a | 629 | py | Python | tests/core/test_annotations.py | penguinmenac3/leanai | 6d26575b248ff03c4a24009cd82f26ea99d96d15 | [
"MIT"
] | 1 | 2021-03-28T21:32:59.000Z | 2021-03-28T21:32:59.000Z | tests/core/test_annotations.py | penguinmenac3/leanai | 6d26575b248ff03c4a24009cd82f26ea99d96d15 | [
"MIT"
] | null | null | null | tests/core/test_annotations.py | penguinmenac3/leanai | 6d26575b248ff03c4a24009cd82f26ea99d96d15 | [
"MIT"
] | null | null | null | import unittest
from leanai.core.annotations import RunOnlyOnce
class TestAnnotations(unittest.TestCase):
def setUp(self) -> None:
self.var = 0
def runner(self):
return self.var
@RunOnlyOnce
def run_once(self):
return self.var
def test_output(self):
self.var = 1
... | 21.689655 | 50 | 0.616852 | 78 | 629 | 4.820513 | 0.384615 | 0.167553 | 0.212766 | 0.090426 | 0.367021 | 0.367021 | 0.212766 | 0.212766 | 0 | 0 | 0 | 0.021786 | 0.27027 | 629 | 28 | 51 | 22.464286 | 0.797386 | 0 | 0 | 0.285714 | 0 | 0 | 0.012719 | 0 | 0 | 0 | 0 | 0 | 0.190476 | 1 | 0.190476 | false | 0 | 0.095238 | 0.095238 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
756844e5d69bfb4f7a881cf7182f56ff34c5aee1 | 201 | py | Python | tests/manualThreadTests.py | velexio/pyLegos | 64d3622f2b6d78a02b171e0438a0224a951d2644 | [
"MIT"
] | null | null | null | tests/manualThreadTests.py | velexio/pyLegos | 64d3622f2b6d78a02b171e0438a0224a951d2644 | [
"MIT"
] | 2 | 2016-11-23T00:36:34.000Z | 2016-11-23T00:39:08.000Z | tests/manualThreadTests.py | velexio/pyLegos | 64d3622f2b6d78a02b171e0438a0224a951d2644 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import time
from pylegos.core import Thread
def worker(sleepSec):
time.sleep(sleepSec)
t = Thread()
t.runAndWait(threadName='test', runFunc=worker(10))
print('finished')
| 14.357143 | 51 | 0.726368 | 28 | 201 | 5.214286 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011429 | 0.129353 | 201 | 13 | 52 | 15.461538 | 0.822857 | 0.099502 | 0 | 0 | 0 | 0 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.428571 | 0.142857 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
757deb3edec28d6288b4d6073331b4f58c9cf7f2 | 14,541 | py | Python | system/scripts/coordinator/strategies.py | maxvonhippel/snake | 0805773dc34e1480dffaae40174aa1f82d1c6ce8 | [
"BSD-3-Clause"
] | 11 | 2015-11-24T11:07:28.000Z | 2021-12-23T04:10:29.000Z | system/scripts/coordinator/strategies.py | maxvonhippel/snake | 0805773dc34e1480dffaae40174aa1f82d1c6ce8 | [
"BSD-3-Clause"
] | null | null | null | system/scripts/coordinator/strategies.py | maxvonhippel/snake | 0805773dc34e1480dffaae40174aa1f82d1c6ce8 | [
"BSD-3-Clause"
] | 6 | 2016-03-01T06:32:21.000Z | 2022-03-24T19:31:41.000Z | #Samuel Jero <sjero@purdue.edu>
#vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
import os
import sys
import time
from datetime import datetime
import re
import pprint
from types import NoneType
import ast
import manipulations
import fields
system_home = os.path.split(os.path.dirname(os.path.realpath(__file__)))[0... | 45.726415 | 231 | 0.510213 | 1,690 | 14,541 | 4.247337 | 0.136686 | 0.022987 | 0.058512 | 0.033436 | 0.515464 | 0.433408 | 0.386737 | 0.338952 | 0.316244 | 0.284759 | 0 | 0.013691 | 0.36208 | 14,541 | 317 | 232 | 45.870662 | 0.760134 | 0.030741 | 0 | 0.230469 | 0 | 0.03125 | 0.146766 | 0.002985 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.003906 | 0.042969 | null | null | 0.054688 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7584b9125e63b40a450fd83b83b2635f253ee500 | 1,824 | py | Python | modules/cisne_api.py | ppcamp/ReportCovid19Itabira | a48cb20072a1e9cecdaab589876f5b0e2e3440b6 | [
"MIT"
] | 1 | 2020-06-23T14:54:19.000Z | 2020-06-23T14:54:19.000Z | modules/cisne_api.py | ppcamp/ReportCovid19Itabira | a48cb20072a1e9cecdaab589876f5b0e2e3440b6 | [
"MIT"
] | 8 | 2020-06-20T16:33:23.000Z | 2020-07-31T17:33:05.000Z | modules/cisne_api.py | ppcamp/ReportCovid19Itabira | a48cb20072a1e9cecdaab589876f5b0e2e3440b6 | [
"MIT"
] | null | null | null | import requests
import json
import pandas as pd
from datetime import datetime
def GetEpidemicWeek(curr_date):
'''
Parameters
----------
curr_date: (str) Date in yyyy-mm-dd
Return
------
(int) Week number of year
'''
_aux = datetime.strptime(curr_date, '%Y-%m-%d')
return _aux.is... | 26.057143 | 92 | 0.576754 | 210 | 1,824 | 4.871429 | 0.471429 | 0.054741 | 0.035191 | 0.041056 | 0.152493 | 0.152493 | 0.080156 | 0.080156 | 0.080156 | 0.080156 | 0 | 0.006955 | 0.29057 | 1,824 | 69 | 93 | 26.434783 | 0.783617 | 0.264803 | 0 | 0 | 0 | 0 | 0.17506 | 0.027178 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060606 | false | 0.121212 | 0.121212 | 0 | 0.272727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
7585d58771f71f59f83ac3fcba41c6ed4b3d1ae1 | 1,836 | py | Python | aboutdialog.py | ShawnDriscoll/PyQt5-Dice-App | 90d64db322b5330800be43247d46e196258f6a6b | [
"MIT"
] | null | null | null | aboutdialog.py | ShawnDriscoll/PyQt5-Dice-App | 90d64db322b5330800be43247d46e196258f6a6b | [
"MIT"
] | null | null | null | aboutdialog.py | ShawnDriscoll/PyQt5-Dice-App | 90d64db322b5330800be43247d46e196258f6a6b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'aboutdialog.ui'
#
# Created by: PyQt5 UI code generator 5.15.4
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 import QtCore, ... | 48.315789 | 317 | 0.706972 | 214 | 1,836 | 6.042056 | 0.495327 | 0.070379 | 0.027842 | 0.039443 | 0.075019 | 0.058778 | 0.058778 | 0.058778 | 0.058778 | 0.058778 | 0 | 0.03357 | 0.156318 | 1,836 | 37 | 318 | 49.621622 | 0.801162 | 0.150327 | 0 | 0 | 1 | 0 | 0.164304 | 0.034794 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0.043478 | 0 | 0.173913 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
758b01fbbf221b2664b2728c99e75c2df92abd02 | 280 | py | Python | src/main.py | lauhuiyik/same-page | decd8b5f45eeca750edfecd4b21a37103553ad9d | [
"MIT"
] | 1 | 2020-05-25T21:32:48.000Z | 2020-05-25T21:32:48.000Z | src/main.py | lauhuiyik/same-page | decd8b5f45eeca750edfecd4b21a37103553ad9d | [
"MIT"
] | null | null | null | src/main.py | lauhuiyik/same-page | decd8b5f45eeca750edfecd4b21a37103553ad9d | [
"MIT"
] | null | null | null | #!/usr/bin/env python
##########
import web
from handlers.front import FrontPage
from handlers.home import HomePage
##########
urls = ('/home', 'HomePage',
'/', 'FrontPage')
app = web.application(urls, globals())
##########
if __name__ == "__main__":
app.run()
| 14 | 38 | 0.582143 | 30 | 280 | 5.166667 | 0.666667 | 0.154839 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.175 | 280 | 19 | 39 | 14.736842 | 0.670996 | 0.071429 | 0 | 0 | 0 | 0 | 0.135965 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
758f66b1bfeec1c3413eae058bce0eb697970ad8 | 411 | py | Python | utils/reward.py | 1980744819/playing-mario-with-DQN | f263e3615bf4439ad17d95a9f449c6145792402b | [
"MIT"
] | 3 | 2020-03-12T19:20:27.000Z | 2020-12-16T06:21:05.000Z | utils/reward.py | 1980744819/playing-mario-with-DQN | f263e3615bf4439ad17d95a9f449c6145792402b | [
"MIT"
] | null | null | null | utils/reward.py | 1980744819/playing-mario-with-DQN | f263e3615bf4439ad17d95a9f449c6145792402b | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @File : reward.py
# @Author: zixiao
# @Date : 2019-03-28
# @Desc :
def get_reward(info, last_info):
re = info['coins'] - last_info['coins'] + info['time'] - last_info['time'] + (
info['lives'] - last_info['lives']) * 10 + info['score'] - last_info['sc... | 29.357143 | 113 | 0.562044 | 56 | 411 | 4 | 0.571429 | 0.214286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055901 | 0.216545 | 411 | 13 | 114 | 31.615385 | 0.639752 | 0.257908 | 0 | 0 | 0 | 0 | 0.187291 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
758f716bb197ed14c12012351f797136c91cbd8a | 1,270 | py | Python | Buddystring.py | pgupta119/LeetCode | 3e7418402d736cba19362fe7525fdc9067cfcaef | [
"MIT"
] | null | null | null | Buddystring.py | pgupta119/LeetCode | 3e7418402d736cba19362fe7525fdc9067cfcaef | [
"MIT"
] | null | null | null | Buddystring.py | pgupta119/LeetCode | 3e7418402d736cba19362fe7525fdc9067cfcaef | [
"MIT"
] | null | null | null | # Given two strings a and b, return true if you can swap two letters in a so the result is equal to b, otherwise, return false.
# Swapping letters is defined as taking two indices i and j (0-indexed) such that i != j and swapping the characters at a[i] and b[j]. For example, swapping at indices 0 and 2 in "abcd" resul... | 42.333333 | 204 | 0.616535 | 217 | 1,270 | 3.608295 | 0.368664 | 0.025543 | 0.025543 | 0.025543 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012048 | 0.281102 | 1,270 | 29 | 205 | 43.793103 | 0.845564 | 0 | 0 | 0 | 0 | 0 | 0.004115 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7590bc68d426088e6dfdde0c77099c6866ef8478 | 3,583 | py | Python | datasets/robothor_data.py | SgtVincent/Robothor-2020---VIPL-ICT | 5eee00c077c07e69120fb8108f574c2339688f34 | [
"Apache-2.0"
] | null | null | null | datasets/robothor_data.py | SgtVincent/Robothor-2020---VIPL-ICT | 5eee00c077c07e69120fb8108f574c2339688f34 | [
"Apache-2.0"
] | 1 | 2022-03-14T03:34:49.000Z | 2022-03-14T03:34:49.000Z | datasets/robothor_data.py | SgtVincent/Robothor-2020---VIPL-ICT | 5eee00c077c07e69120fb8108f574c2339688f34 | [
"Apache-2.0"
] | null | null | null | from .constants import (
ROBOTHOR_ORIGINAL_CLASS_LIST
)
import re
import os
import json
import networkx
import h5py
import numpy as np
scene_types = ['FloorPlan_Train1', 'FloorPlan_Train2', 'FloorPlan_Train3',
'FloorPlan_Train4', 'FloorPlan_Train5', 'FloorPlan_Train6',
'FloorPlan_Trai... | 36.191919 | 115 | 0.662294 | 488 | 3,583 | 4.581967 | 0.258197 | 0.044275 | 0.045617 | 0.037567 | 0.227191 | 0.193202 | 0.171735 | 0.171735 | 0.112701 | 0.060376 | 0 | 0.010108 | 0.226905 | 3,583 | 98 | 116 | 36.561224 | 0.797112 | 0.085124 | 0 | 0.057143 | 0 | 0 | 0.103364 | 0.013761 | 0 | 0 | 0 | 0.010204 | 0 | 1 | 0.1 | false | 0 | 0.1 | 0.042857 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
759b22ff49969cf5635a933561ca5a0c9d611cf7 | 363 | py | Python | mavweb/server/apps.py | vixadd/MAVWed | c86327a18c1f5260aa77a5975d2977df5e9267cc | [
"MIT"
] | null | null | null | mavweb/server/apps.py | vixadd/MAVWed | c86327a18c1f5260aa77a5975d2977df5e9267cc | [
"MIT"
] | null | null | null | mavweb/server/apps.py | vixadd/MAVWed | c86327a18c1f5260aa77a5975d2977df5e9267cc | [
"MIT"
] | null | null | null | from django.apps import AppConfig
from mavweb.mavlink_arbiter.main import Main
class ServerConfig(AppConfig):
"""
Django Server configurations.
"""
name = 'server'
class MavlinkArbiter(AppConfig):
"""
Mavlink arbiter used for application pairing with mavlink functions.
"""
name = 'ma... | 20.166667 | 72 | 0.699725 | 38 | 363 | 6.605263 | 0.578947 | 0.167331 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.212121 | 363 | 17 | 73 | 21.352941 | 0.877622 | 0.269972 | 0 | 0 | 0 | 0 | 0.089744 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
759bf327009e2a0d20028cd808a8ae5f1f115897 | 429 | py | Python | generate_target.py | jmpmulter/coolon-pipeline | 8e92aa717e89d4ec901366a20da58e4fab14f778 | [
"MIT"
] | null | null | null | generate_target.py | jmpmulter/coolon-pipeline | 8e92aa717e89d4ec901366a20da58e4fab14f778 | [
"MIT"
] | null | null | null | generate_target.py | jmpmulter/coolon-pipeline | 8e92aa717e89d4ec901366a20da58e4fab14f778 | [
"MIT"
] | null | null | null | #generate_target.py
#Generates a list of target genes from a flybase output
import os
import sys
def main():
in_path = sys.argv[1]
out_path = sys.argv[2]
infile = open(in_path, "r")
outfile = open(out_path, "x")
for l0 in infile:
l0s = l0.split(",")
for item in l0s:
if "... | 23.833333 | 55 | 0.575758 | 64 | 429 | 3.65625 | 0.578125 | 0.051282 | 0.094017 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022727 | 0.282051 | 429 | 18 | 56 | 23.833333 | 0.737013 | 0.167832 | 0 | 0 | 1 | 0 | 0.053371 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.142857 | 0 | 0.214286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
759bf36e0615b479286d04e29a2aa057689eab17 | 3,512 | py | Python | pgAdmin/utils/master_password.py | WeilerWebServices/PostgreSQL | ae594ed077bebbad1be3c1d95c38b7c2c2683e8c | [
"PostgreSQL"
] | null | null | null | pgAdmin/utils/master_password.py | WeilerWebServices/PostgreSQL | ae594ed077bebbad1be3c1d95c38b7c2c2683e8c | [
"PostgreSQL"
] | 3 | 2021-09-02T15:51:44.000Z | 2022-03-02T09:53:17.000Z | win64-postgresql/pgAdmin 4/web/pgadmin/utils/master_password.py | vnetcon/curvy | ed3749bd5d298c7ab6c0625de91c211d6da4c762 | [
"Apache-2.0"
] | null | null | null | import config
from flask import current_app
from flask_login import current_user
from pgadmin.model import db, User, Server
from pgadmin.utils.crypto import encrypt, decrypt
MASTERPASS_CHECK_TEXT = 'ideas are bulletproof'
def set_crypt_key(_key, _new_login=True):
"""
Set the crypt key
:param _key: The k... | 29.266667 | 77 | 0.691913 | 453 | 3,512 | 5.178808 | 0.278146 | 0.070332 | 0.040494 | 0.035806 | 0.107417 | 0.080563 | 0.042626 | 0.042626 | 0.042626 | 0 | 0 | 0 | 0.244021 | 3,512 | 119 | 78 | 29.512605 | 0.883616 | 0.295843 | 0 | 0.172414 | 0 | 0 | 0.009005 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103448 | false | 0.327586 | 0.12069 | 0 | 0.344828 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
75a4a4e7e2bdd3feb7c08bb48946dfcce4709039 | 701 | py | Python | roster/migrations/0040_auto_20200428_0914.py | ankanb240/otis-web | 45eda65b419705c65c02b15872a137969d53d8e9 | [
"MIT"
] | 15 | 2021-08-28T18:18:37.000Z | 2022-03-13T07:48:15.000Z | roster/migrations/0040_auto_20200428_0914.py | ankanb240/otis-web | 45eda65b419705c65c02b15872a137969d53d8e9 | [
"MIT"
] | 65 | 2021-08-20T02:37:27.000Z | 2022-02-07T17:19:23.000Z | roster/migrations/0040_auto_20200428_0914.py | ankanb240/otis-web | 45eda65b419705c65c02b15872a137969d53d8e9 | [
"MIT"
] | 31 | 2020-01-09T02:35:29.000Z | 2022-03-13T07:48:18.000Z | # Generated by Django 3.0.3 on 2020-04-28 13:14
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('roster', '0039_unlock_units'),
]
operations = [
migrations.AlterField(
model_name='student',
name='num_units_done',
... | 29.208333 | 144 | 0.621969 | 81 | 701 | 5.283951 | 0.716049 | 0.093458 | 0.116822 | 0.135514 | 0.186916 | 0.186916 | 0 | 0 | 0 | 0 | 0 | 0.041016 | 0.269615 | 701 | 23 | 145 | 30.478261 | 0.794922 | 0.064194 | 0 | 0.352941 | 1 | 0 | 0.275229 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
75b2e04cb5f586ec15b752e5cc06367509fd6133 | 1,004 | py | Python | RecoLocalCalo/HGCalRecProducers/python/hgcalLayerClusters_cff.py | bisnupriyasahu/cmssw | 6cf37ca459246525be0e8a6f5172c6123637d259 | [
"Apache-2.0"
] | 3 | 2018-08-24T19:10:26.000Z | 2019-02-19T11:45:32.000Z | RecoLocalCalo/HGCalRecProducers/python/hgcalLayerClusters_cff.py | bisnupriyasahu/cmssw | 6cf37ca459246525be0e8a6f5172c6123637d259 | [
"Apache-2.0"
] | 3 | 2018-08-23T13:40:24.000Z | 2019-12-05T21:16:03.000Z | RecoLocalCalo/HGCalRecProducers/python/hgcalLayerClusters_cff.py | bisnupriyasahu/cmssw | 6cf37ca459246525be0e8a6f5172c6123637d259 | [
"Apache-2.0"
] | 5 | 2018-08-21T16:37:52.000Z | 2020-01-09T13:33:17.000Z | import FWCore.ParameterSet.Config as cms
from RecoLocalCalo.HGCalRecProducers.hgcalLayerClusters_cfi import hgcalLayerClusters as hgcalLayerClusters_
from RecoLocalCalo.HGCalRecProducers.HGCalRecHit_cfi import dEdX, HGCalRecHit
from RecoLocalCalo.HGCalRecProducers.HGCalUncalibRecHit_cfi import HGCalUncalibRecHit
fr... | 50.2 | 110 | 0.878486 | 95 | 1,004 | 9.147368 | 0.452632 | 0.165708 | 0.117376 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056773 | 1,004 | 19 | 111 | 52.842105 | 0.917635 | 0 | 0 | 0 | 0 | 0 | 0.011952 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.384615 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
75c4b53c5b63ac8649c46b0cdcaee35a32ddb87c | 573 | py | Python | www/test.py | Lneedy/pyBlobDemo | 19ff1d9b5478f62bbc7f510bffa81adc7915a73b | [
"MIT"
] | null | null | null | www/test.py | Lneedy/pyBlobDemo | 19ff1d9b5478f62bbc7f510bffa81adc7915a73b | [
"MIT"
] | null | null | null | www/test.py | Lneedy/pyBlobDemo | 19ff1d9b5478f62bbc7f510bffa81adc7915a73b | [
"MIT"
] | null | null | null | '''
测试数据库存储数据demo
>> mysql -u root -p < schema.sql
'''
import orm
from models import User, Blog, Comment
import asyncio
async def test (loop):
await orm.create_pool(loop, user='www-data', password='www-data', db='awesome')
# u = User(id='2', name='Test1', email='test1@example.com', passwd='1234567890', imag... | 23.875 | 105 | 0.65445 | 81 | 573 | 4.469136 | 0.654321 | 0.044199 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027601 | 0.17801 | 573 | 24 | 106 | 23.875 | 0.740977 | 0.284468 | 0 | 0 | 0 | 0 | 0.159204 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.083333 | 0.25 | 0 | 0.25 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
75c61bdb0e5516f5f220ea06ae4eb78827a719a4 | 210 | py | Python | naloga002.py | pzi-si/pzi-src-2 | 819069db98873becf8c8ff93bb1e8fb9dca3036c | [
"CC0-1.0"
] | null | null | null | naloga002.py | pzi-si/pzi-src-2 | 819069db98873becf8c8ff93bb1e8fb9dca3036c | [
"CC0-1.0"
] | null | null | null | naloga002.py | pzi-si/pzi-src-2 | 819069db98873becf8c8ff93bb1e8fb9dca3036c | [
"CC0-1.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
""" Program, ki vas vpraša po imenu, nato pa vas pozdravi. """
# povprašamo po imenu
ime = input("Kako ti je ime? ")
# pozdravimo
print(f"Pozdravljen_a, {ime}!") | 21 | 62 | 0.642857 | 32 | 210 | 4.1875 | 0.84375 | 0.104478 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005747 | 0.171429 | 210 | 10 | 63 | 21 | 0.764368 | 0.614286 | 0 | 0 | 0 | 0 | 0.513889 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
75cd39985df9ba1fac685c50b84e7d3ed1571cd1 | 3,813 | py | Python | Scripts/IDA_SyncDecompiledFuncs.py | THEONLYDarkShadow/alive_reversing | 680d87088023f2d5f2a40c42d6543809281374fb | [
"MIT"
] | 208 | 2018-06-06T13:14:03.000Z | 2022-03-30T02:21:27.000Z | Scripts/IDA_SyncDecompiledFuncs.py | THEONLYDarkShadow/alive_reversing | 680d87088023f2d5f2a40c42d6543809281374fb | [
"MIT"
] | 537 | 2018-06-06T16:50:45.000Z | 2022-03-31T16:41:15.000Z | Scripts/IDA_SyncDecompiledFuncs.py | THEONLYDarkShadow/alive_reversing | 680d87088023f2d5f2a40c42d6543809281374fb | [
"MIT"
] | 42 | 2018-06-06T00:40:08.000Z | 2022-03-23T08:38:55.000Z | from idautils import *
from idaapi import *
from idc import *
import urllib2
def ida_set_function_colour(function_address, colour):
idc.set_color(function_address, CIC_FUNC, colour)
def ida_get_function_colour(function_address):
function = idaapi.get_func(function_address)
if not function:
... | 30.504 | 193 | 0.620771 | 409 | 3,813 | 5.674817 | 0.308068 | 0.037915 | 0.025851 | 0.031021 | 0.191728 | 0.124084 | 0.09651 | 0.060319 | 0.022404 | 0 | 0 | 0.024114 | 0.282193 | 3,813 | 124 | 194 | 30.75 | 0.823895 | 0.105953 | 0 | 0.16129 | 0 | 0 | 0.064753 | 0.018632 | 0 | 0 | 0.009774 | 0 | 0 | 0 | null | null | 0 | 0.043011 | null | null | 0.043011 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
75d35dd0f6991525937dfc89b52855e73f47aaa9 | 1,941 | py | Python | Chapter07/python/com/sparksamples/gradientboostedtrees/GradientBoostedTreesUtil.py | quguiliang/Machine-Learning-with-Spark-Second-Edition | 0ba131e6c15a3de97609c6cb5d976806ccc14f09 | [
"MIT"
] | 112 | 2017-05-13T15:44:29.000Z | 2022-02-19T20:14:14.000Z | Chapter07/python/com/sparksamples/gradientboostedtrees/GradientBoostedTreesUtil.py | tophua/Machine-Learning-with-Spark-Second-Edition | 0d93e992f6c79d55ad5cdcab735dbe6674143974 | [
"MIT"
] | 1 | 2017-05-25T00:10:43.000Z | 2017-05-25T00:10:43.000Z | Chapter07/python/com/sparksamples/gradientboostedtrees/GradientBoostedTreesUtil.py | tophua/Machine-Learning-with-Spark-Second-Edition | 0d93e992f6c79d55ad5cdcab735dbe6674143974 | [
"MIT"
] | 115 | 2017-05-06T10:49:00.000Z | 2022-03-08T07:48:54.000Z | import numpy as np
from com.sparksamples.util import get_records
from com.sparksamples.util import get_mapping
from com.sparksamples.util import extract_features
from com.sparksamples.util import extract_label
from com.sparksamples.util import extract_features_dt
#from pyspark.mllib.tree import DecisionTree
from pysp... | 41.297872 | 107 | 0.714065 | 260 | 1,941 | 5.165385 | 0.369231 | 0.053611 | 0.084885 | 0.102755 | 0.306031 | 0.22487 | 0.15041 | 0.084885 | 0.084885 | 0.084885 | 0 | 0.011942 | 0.180319 | 1,941 | 46 | 108 | 42.195652 | 0.832181 | 0.177743 | 0 | 0 | 0 | 0 | 0.006918 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.3 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
75d6d6a2674761306d18d16bf5fb2a0d2ba911d3 | 543 | py | Python | kratos/apps/trigger/views.py | cipher-ops/backend-kts | 7ea54d7f56bcb0da54b901ac8f3cfbfbb0b12319 | [
"MIT"
] | 1 | 2020-11-30T09:53:40.000Z | 2020-11-30T09:53:40.000Z | kratos/apps/trigger/views.py | cipher-ops/backend-kts | 7ea54d7f56bcb0da54b901ac8f3cfbfbb0b12319 | [
"MIT"
] | null | null | null | kratos/apps/trigger/views.py | cipher-ops/backend-kts | 7ea54d7f56bcb0da54b901ac8f3cfbfbb0b12319 | [
"MIT"
] | null | null | null | from rest_framework import viewsets
from kratos.apps.trigger import models, serializers
class TriggerViewSet(viewsets.GenericViewSet):
'''
Trigger信息
'''
serializer_class = serializers.TriggerRecordSerializer
queryset = models.TriggerRecord.objects.all()
def list(self, request):
'''
Trigger调用记录列表
... | 30.166667 | 92 | 0.762431 | 58 | 543 | 7.017241 | 0.62069 | 0.054054 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138122 | 543 | 17 | 93 | 31.941176 | 0.869658 | 0.042357 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
75d9805219c61b5aa264d0f163f779ea93a814b4 | 492 | py | Python | lib/watchlists.py | nickcamel/IgApi | 19717cb8f3aea88adf060d8dad4762f8cd81e584 | [
"MIT"
] | 1 | 2021-10-02T00:30:17.000Z | 2021-10-02T00:30:17.000Z | lib/watchlists.py | nickcamel/IgApi | 19717cb8f3aea88adf060d8dad4762f8cd81e584 | [
"MIT"
] | null | null | null | lib/watchlists.py | nickcamel/IgApi | 19717cb8f3aea88adf060d8dad4762f8cd81e584 | [
"MIT"
] | null | null | null | # REF: https://labs.ig.com/rest-trading-api-reference
class Watchlists:
"""
DO NOT CHANGE
Adding is ok ... and encouraged ;)
"""
base = {
'path': 'watchlists',
'GET': {
'version': '1',
'tokens': True,
}
# Not supported yet: 'POST'
}
... | 18.923077 | 53 | 0.422764 | 44 | 492 | 4.727273 | 0.727273 | 0.134615 | 0.163462 | 0.230769 | 0.480769 | 0.480769 | 0.480769 | 0.480769 | 0.480769 | 0.480769 | 0 | 0.006873 | 0.408537 | 492 | 25 | 54 | 19.68 | 0.707904 | 0.329268 | 0 | 0.4 | 0 | 0 | 0.204545 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
75da6f1e542a2683ea21908b7c192b05e4167dbd | 1,094 | py | Python | Day 3/login-registrasi.py | adamsaparudin/python-datascience | 1b4164bb8a091f88def950f07108fe023737399c | [
"MIT"
] | null | null | null | Day 3/login-registrasi.py | adamsaparudin/python-datascience | 1b4164bb8a091f88def950f07108fe023737399c | [
"MIT"
] | null | null | null | Day 3/login-registrasi.py | adamsaparudin/python-datascience | 1b4164bb8a091f88def950f07108fe023737399c | [
"MIT"
] | null | null | null | import sys
def registrasi():
username = input("Masukan username: ")
password = input("Masukan password: ")
return username, password
def login(username, password): # list_user,
input_user = input("Masukan username: ")
input_pass = input("Masukan password: ")
if username == input_user and passw... | 27.35 | 76 | 0.576782 | 117 | 1,094 | 5.316239 | 0.358974 | 0.180064 | 0.064309 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007722 | 0.289762 | 1,094 | 40 | 77 | 27.35 | 0.792793 | 0.104205 | 0 | 0.0625 | 0 | 0 | 0.229744 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.28125 | 0.03125 | 0 | 0.1875 | 0.28125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
75e1a861f6479f18e30cc2201832823b09eb3ea9 | 803 | py | Python | src/data.py | voschezang/ABM | 523fcf30000057e73ba93f5a500d8896c945a35f | [
"MIT"
] | null | null | null | src/data.py | voschezang/ABM | 523fcf30000057e73ba93f5a500d8896c945a35f | [
"MIT"
] | null | null | null | src/data.py | voschezang/ABM | 523fcf30000057e73ba93f5a500d8896c945a35f | [
"MIT"
] | null | null | null | from mesa.datacollection import DataCollector
### datacollection functions
def density(model):
"""Density: number of cars per unit length of road."""
return len(model.schedule.agents) / model.space.length
def flow(model):
"""Flow: number of cars passing a reference point per unit of time."""
# get... | 25.903226 | 74 | 0.674969 | 101 | 803 | 5.168317 | 0.455446 | 0.10728 | 0.103448 | 0.072797 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003257 | 0.235367 | 803 | 30 | 75 | 26.766667 | 0.846906 | 0.308842 | 0 | 0 | 0 | 0 | 0.007435 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.071429 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
75e66488020f917b36c64a0fe8d0a2a1ac18f43c | 1,280 | py | Python | yatube/posts/models.py | PabloKor/Yatube | 5c835e9d66a29e95781f08a87a102ec017fbc91b | [
"MIT"
] | null | null | null | yatube/posts/models.py | PabloKor/Yatube | 5c835e9d66a29e95781f08a87a102ec017fbc91b | [
"MIT"
] | null | null | null | yatube/posts/models.py | PabloKor/Yatube | 5c835e9d66a29e95781f08a87a102ec017fbc91b | [
"MIT"
] | null | null | null | from django.contrib.auth import get_user_model
from django.db import models
# Create your models here.
User = get_user_model()
class Post(models.Model):
text = models.TextField(verbose_name='Текст')
pub_date = models.DateTimeField(auto_now_add=True, verbose_name="date published")
author = models.ForeignK... | 34.594595 | 87 | 0.670313 | 155 | 1,280 | 5.335484 | 0.387097 | 0.077388 | 0.067715 | 0.101572 | 0.367594 | 0.367594 | 0.287787 | 0.229746 | 0.229746 | 0.140266 | 0 | 0.006024 | 0.221875 | 1,280 | 36 | 88 | 35.555556 | 0.824297 | 0.01875 | 0 | 0.076923 | 0 | 0 | 0.049442 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.076923 | 0.076923 | 0.807692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
75f9dd3819053deb8e0d3dbd4dc28b348322030d | 2,113 | py | Python | shared-data/python/opentrons_shared_data/deck/dev_types.py | Opentrons/protocol_framework | ebbd6b2fe984edd6ecfcbf1dbe040db7f7356b9f | [
"Apache-2.0"
] | null | null | null | shared-data/python/opentrons_shared_data/deck/dev_types.py | Opentrons/protocol_framework | ebbd6b2fe984edd6ecfcbf1dbe040db7f7356b9f | [
"Apache-2.0"
] | null | null | null | shared-data/python/opentrons_shared_data/deck/dev_types.py | Opentrons/protocol_framework | ebbd6b2fe984edd6ecfcbf1dbe040db7f7356b9f | [
"Apache-2.0"
] | null | null | null | """
opentrons_shared_data.deck.dev_types: types for deck defs
This should only be imported if typing.TYPE_CHECKING is True
"""
from typing import Any, Dict, List, NewType, Union
from typing_extensions import Literal, TypedDict
from ..module.dev_types import ModuleType
DeckSchemaVersion3 = Literal[3]
DeckSchemaVers... | 19.564815 | 88 | 0.730715 | 220 | 2,113 | 6.990909 | 0.372727 | 0.063719 | 0.045514 | 0.06502 | 0.143043 | 0.114434 | 0.114434 | 0 | 0 | 0 | 0 | 0.009867 | 0.184572 | 2,113 | 107 | 89 | 19.747664 | 0.882763 | 0.056318 | 0 | 0.358209 | 0 | 0 | 0.018127 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.044776 | 0 | 0.865672 | 0.014925 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
75fe3189c125c3919b270ac5067d6ecc73d03252 | 375 | py | Python | University Codesprint Contest/seperaenos.py | ukirderohit/Python-Hacker-rank-solutions | de3b60b00d864c15a452977225b33ead19c878a5 | [
"MIT"
] | null | null | null | University Codesprint Contest/seperaenos.py | ukirderohit/Python-Hacker-rank-solutions | de3b60b00d864c15a452977225b33ead19c878a5 | [
"MIT"
] | null | null | null | University Codesprint Contest/seperaenos.py | ukirderohit/Python-Hacker-rank-solutions | de3b60b00d864c15a452977225b33ead19c878a5 | [
"MIT"
] | null | null | null | q = int(raw_input().strip())
for a0 in xrange(q):
s=raw_input().strip()
# if s.startswith('0'):
# print "No"
# print s.find('1')
# print s.rfind(s,a0,a0-1)
# posof1 = s.find('1')
digits = [str(x) for x in str(s)]
print digits
for digit in len(digits):
if digits[digit]-dig... | 26.785714 | 46 | 0.512 | 59 | 375 | 3.220339 | 0.423729 | 0.084211 | 0.136842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038462 | 0.306667 | 375 | 14 | 47 | 26.785714 | 0.692308 | 0.256 | 0 | 0 | 0 | 0 | 0.010949 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f93060fe13dca91fd46628410cdb2477c1e8f235 | 2,844 | py | Python | app/api/auth.py | ergo-pad/paideia-api | 7ffc78366567c72722d107f06ad37aa7557b05be | [
"MIT"
] | null | null | null | app/api/auth.py | ergo-pad/paideia-api | 7ffc78366567c72722d107f06ad37aa7557b05be | [
"MIT"
] | null | null | null | app/api/auth.py | ergo-pad/paideia-api | 7ffc78366567c72722d107f06ad37aa7557b05be | [
"MIT"
] | null | null | null | from fastapi.security import OAuth2PasswordRequestForm
from fastapi import APIRouter, Depends, HTTPException, status
from datetime import timedelta
from starlette.responses import JSONResponse
from db.crud.users import blacklist_token
from db.session import get_db
from core import security
from core.auth import authe... | 33.857143 | 130 | 0.654008 | 322 | 2,844 | 5.565217 | 0.270186 | 0.085938 | 0.022321 | 0.023438 | 0.622768 | 0.608259 | 0.608259 | 0.58817 | 0.58817 | 0.58817 | 0 | 0.008903 | 0.249648 | 2,844 | 83 | 131 | 34.26506 | 0.830834 | 0 | 0 | 0.535211 | 0 | 0 | 0.102321 | 0.014768 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.084507 | 0.112676 | 0 | 0.183099 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
f9368f4ecdf91a5437237dc760bad64780ffdbe1 | 430 | py | Python | eve_swagger/__init__.py | Annakan/eve-swagger | 34b91a335e0e2c471fc552800751e9d702a7f260 | [
"BSD-3-Clause"
] | null | null | null | eve_swagger/__init__.py | Annakan/eve-swagger | 34b91a335e0e2c471fc552800751e9d702a7f260 | [
"BSD-3-Clause"
] | null | null | null | eve_swagger/__init__.py | Annakan/eve-swagger | 34b91a335e0e2c471fc552800751e9d702a7f260 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
eve-swagger
~~~~~~~~~~~
swagger.io extension for Eve-powered REST APIs.
:copyright: (c) 2015 by Nicola Iarocci.
:license: BSD, see LICENSE for more details.
"""
try:
from collections import OrderedDict
except ImportError:
from ordereddict import OrderedDict # no... | 23.888889 | 55 | 0.676744 | 52 | 430 | 5.538462 | 0.673077 | 0.118056 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023324 | 0.202326 | 430 | 17 | 56 | 25.294118 | 0.816327 | 0.455814 | 0 | 0 | 0 | 0 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.571429 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
f936f234615d9bcf0427f9ba2eb780c873f4aa17 | 9,005 | py | Python | 2018_Epoch_Spectra.py | chunders/EpochAnalysis | b5d83d9608692e3bf5f9947bb3627e04a54a312f | [
"MIT"
] | null | null | null | 2018_Epoch_Spectra.py | chunders/EpochAnalysis | b5d83d9608692e3bf5f9947bb3627e04a54a312f | [
"MIT"
] | null | null | null | 2018_Epoch_Spectra.py | chunders/EpochAnalysis | b5d83d9608692e3bf5f9947bb3627e04a54a312f | [
"MIT"
] | null | null | null | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
_
/ | | __ _ __ _
/ | / |_||_|| ||
/ | / | |\ | ||_
/____ |__/\ . | | \|_|\_|
__________________________ .
███████╗██████╗ ██████╗ ██████... | 31.596491 | 125 | 0.4804 | 960 | 9,005 | 4.565625 | 0.3125 | 0.024641 | 0.012548 | 0.019165 | 0.335387 | 0.312799 | 0.2893 | 0.2893 | 0.2893 | 0.2893 | 0 | 0.027685 | 0.265963 | 9,005 | 284 | 126 | 31.707746 | 0.605144 | 0.291949 | 0 | 0.368794 | 0 | 0 | 0.08709 | 0.025167 | 0 | 0 | 0 | 0 | 0.007092 | 0 | null | null | 0.007092 | 0.028369 | null | null | 0.056738 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f93b74e758fc59e8cc9ffa0d3c99de08f971b204 | 656 | py | Python | setup.py | HiteshSachdev/casualty | 7d3878bea7bc503a3cc5eb6046aa658608164e0f | [
"MIT"
] | 14 | 2018-10-07T12:05:24.000Z | 2022-03-01T01:58:21.000Z | setup.py | treebohotels/corelated-logs | 13926c97a473bc63c7b18e22870d1760089f30d1 | [
"MIT"
] | 6 | 2018-10-07T09:07:59.000Z | 2019-06-08T09:23:45.000Z | setup.py | treebohotels/corelated-logs | 13926c97a473bc63c7b18e22870d1760089f30d1 | [
"MIT"
] | 2 | 2019-01-23T06:14:31.000Z | 2021-06-21T04:02:26.000Z | from setuptools import find_packages, setup
setup(
name="casualty",
version="0.1.9",
packages=find_packages(exclude=["tests"]),
install_requires=[
"structlog==18.2.0",
"wrapt==1.10.11",
"pre-commit-hooks==1.4.0",
"mock==2.0.0",
"pytest==3.8.2",
"pytest-m... | 26.24 | 105 | 0.568598 | 92 | 656 | 3.98913 | 0.652174 | 0.065395 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075248 | 0.230183 | 656 | 24 | 106 | 27.333333 | 0.651485 | 0 | 0 | 0 | 0 | 0.045455 | 0.442073 | 0.035061 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.045455 | 0 | 0.045455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f93db1c837037edf147a1adf0e6c511aadcb0960 | 5,321 | py | Python | isaactest/tests/user_progress_access.py | jsharkey13/isaac-selenium-testing | fc57ec57179cf7d9f0bb5ef46d759792b2af3bc8 | [
"MIT"
] | null | null | null | isaactest/tests/user_progress_access.py | jsharkey13/isaac-selenium-testing | fc57ec57179cf7d9f0bb5ef46d759792b2af3bc8 | [
"MIT"
] | 1 | 2016-01-15T11:28:06.000Z | 2016-01-25T17:09:18.000Z | isaactest/tests/user_progress_access.py | jsharkey13/isaac-selenium-testing | fc57ec57179cf7d9f0bb5ef46d759792b2af3bc8 | [
"MIT"
] | 1 | 2019-05-14T16:53:49.000Z | 2019-05-14T16:53:49.000Z | import time
from ..utils.log import log, INFO, ERROR, PASS
from ..utils.isaac import submit_login_form, assert_logged_in
from ..utils.i_selenium import assert_tab, image_div
from ..utils.i_selenium import wait_for_xpath_element, wait_for_invisible_xpath
from ..tests import TestWithDependency
from selenium.common.except... | 47.088496 | 141 | 0.64236 | 713 | 5,321 | 4.618513 | 0.211781 | 0.042514 | 0.039478 | 0.048588 | 0.396295 | 0.372305 | 0.348922 | 0.348922 | 0.310963 | 0.286669 | 0 | 0.005716 | 0.243751 | 5,321 | 112 | 142 | 47.508929 | 0.812624 | 0.006202 | 0 | 0.554348 | 0 | 0.01087 | 0.330979 | 0.057518 | 0 | 0 | 0 | 0 | 0.130435 | 0 | null | null | 0.021739 | 0.076087 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f93dfe9bacfa4bd9cb38fd01bfa6466399547497 | 423 | py | Python | insert_loc_code.py | dspshin/house-bot | 1e2755abae114c3284d7d95d81c40fadb0ab9b43 | [
"MIT"
] | null | null | null | insert_loc_code.py | dspshin/house-bot | 1e2755abae114c3284d7d95d81c40fadb0ab9b43 | [
"MIT"
] | null | null | null | insert_loc_code.py | dspshin/house-bot | 1e2755abae114c3284d7d95d81c40fadb0ab9b43 | [
"MIT"
] | null | null | null | import re
import sqlite3
conn = sqlite3.connect('loc.db')
c = conn.cursor()
c.execute('CREATE TABLE IF NOT EXISTS location(loc text PRIMARY KEY, code text)')
conn.commit()
f = open('loc_code.txt')
for d in f.readlines():
data = re.sub(r'\s{2}', '|', d.strip()).split('|')
print data[1].strip(), data[0]
c.... | 24.882353 | 84 | 0.63357 | 70 | 423 | 3.814286 | 0.6 | 0.059925 | 0.082397 | 0.104869 | 0.11236 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019337 | 0.144208 | 423 | 17 | 85 | 24.882353 | 0.718232 | 0 | 0 | 0.153846 | 0 | 0 | 0.313679 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.153846 | null | null | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f94108d55467d7dc2d4d0a83034f5df29403a946 | 33,479 | py | Python | python/valkka/nv/valkka_nv.py | xiaoxoxin/valkka-nv | 48b8fd5b1293c6e4f96f4798e6d327e209b83bce | [
"WTFPL"
] | 1 | 2021-03-03T13:25:22.000Z | 2021-03-03T13:25:22.000Z | python/valkka/nv/valkka_nv.py | xiaoxoxin/valkka-nv | 48b8fd5b1293c6e4f96f4798e6d327e209b83bce | [
"WTFPL"
] | null | null | null | python/valkka/nv/valkka_nv.py | xiaoxoxin/valkka-nv | 48b8fd5b1293c6e4f96f4798e6d327e209b83bce | [
"WTFPL"
] | null | null | null | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 3.0.12
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info as _swig_python_version_info
if _swig_python_version_info >= (2, 7, 0):
def swig_im... | 41.179582 | 138 | 0.729532 | 3,529 | 33,479 | 6.156418 | 0.061207 | 0.05597 | 0.036086 | 0.041425 | 0.589432 | 0.553991 | 0.528813 | 0.477216 | 0.457516 | 0.448955 | 0 | 0.002824 | 0.185669 | 33,479 | 812 | 139 | 41.230296 | 0.79408 | 0.008811 | 0 | 0.543018 | 1 | 0 | 0.038886 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086037 | false | 0.015515 | 0.028209 | 0.039492 | 0.48519 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f94195b0e745d91852d2ea4775d406dd9acd653a | 3,336 | py | Python | mcenter_client/tests/mcenter_server_api/controllers/users_controller.py | lisapm/mlpiper | 74ad5ae343d364682cc2f8aaa007f2e8a1d84929 | [
"Apache-2.0"
] | 7 | 2019-04-08T02:31:55.000Z | 2021-11-15T14:40:49.000Z | mcenter_client/tests/mcenter_server_api/controllers/users_controller.py | lisapm/mlpiper | 74ad5ae343d364682cc2f8aaa007f2e8a1d84929 | [
"Apache-2.0"
] | 31 | 2019-02-22T22:23:26.000Z | 2021-08-02T17:17:06.000Z | mcenter_client/tests/mcenter_server_api/controllers/users_controller.py | lisapm/mlpiper | 74ad5ae343d364682cc2f8aaa007f2e8a1d84929 | [
"Apache-2.0"
] | 8 | 2019-03-15T23:46:08.000Z | 2020-02-06T09:16:02.000Z | import connexion
import six
import flask
import copy
import os
import base64
import time
from mcenter_server_api.models.inline_response200 import InlineResponse200 # noqa: E501
from mcenter_server_api.models.inline_response2001 import InlineResponse2001 # noqa: E501
from mcenter_server_api.models.user import User #... | 20.096386 | 90 | 0.627098 | 433 | 3,336 | 4.709007 | 0.240185 | 0.074546 | 0.041197 | 0.041687 | 0.321726 | 0.219225 | 0.109858 | 0.076508 | 0.076508 | 0.076508 | 0 | 0.040146 | 0.260791 | 3,336 | 165 | 91 | 20.218182 | 0.786699 | 0.296163 | 0 | 0.242857 | 0 | 0 | 0.062705 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157143 | false | 0.057143 | 0.171429 | 0 | 0.485714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
f9469121eeab103831a2110844d01c4c5cbbd7f5 | 354 | py | Python | codewof/programming/migrations/0009_auto_20200417_0013.py | uccser-admin/programming-practice-prototype | 3af4c7d85308ac5bb35bb13be3ec18cac4eb8308 | [
"MIT"
] | 3 | 2019-08-29T04:11:22.000Z | 2021-06-22T16:05:51.000Z | codewof/programming/migrations/0009_auto_20200417_0013.py | uccser-admin/programming-practice-prototype | 3af4c7d85308ac5bb35bb13be3ec18cac4eb8308 | [
"MIT"
] | 265 | 2019-05-30T03:51:46.000Z | 2022-03-31T01:05:12.000Z | codewof/programming/migrations/0009_auto_20200417_0013.py | samuelsandri/codewof | c9b8b378c06b15a0c42ae863b8f46581de04fdfc | [
"MIT"
] | 7 | 2019-06-29T12:13:37.000Z | 2021-09-06T06:49:14.000Z | # Generated by Django 2.2.3 on 2020-04-16 12:13
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('programming', '0008_auto_20200415_1406'),
]
operations = [
migrations.AlterModelOptions(
name='badge',
options={'ordering': ... | 19.666667 | 51 | 0.59887 | 36 | 354 | 5.777778 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121094 | 0.276836 | 354 | 17 | 52 | 20.823529 | 0.691406 | 0.127119 | 0 | 0 | 1 | 0 | 0.185668 | 0.074919 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f946e2fce4d695420e4afffc8e580dcd4dade5ec | 273 | py | Python | diy_programs/diy_9_csv_module.py | bhalajin/blueprints | 7ad1d7860aafbb4c333de9efbbb7e546ed43c569 | [
"MIT"
] | null | null | null | diy_programs/diy_9_csv_module.py | bhalajin/blueprints | 7ad1d7860aafbb4c333de9efbbb7e546ed43c569 | [
"MIT"
] | null | null | null | diy_programs/diy_9_csv_module.py | bhalajin/blueprints | 7ad1d7860aafbb4c333de9efbbb7e546ed43c569 | [
"MIT"
] | null | null | null | import csv
a = [[1,2,3], [4,5,6]]
with open('test.csv', 'w', newline='') as testfile:
csvwriter = csv.writer(testfile)
for row in a:
csvwriter.writerow(row)
with open('test.csv', 'r') as testfile:
csvreader = csv.reader(testfile)
for row in csvreader:
print(row) | 21 | 51 | 0.663004 | 45 | 273 | 4.022222 | 0.577778 | 0.088398 | 0.132597 | 0.165746 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026087 | 0.157509 | 273 | 13 | 52 | 21 | 0.76087 | 0 | 0 | 0 | 0 | 0 | 0.065693 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f948dbae262921813e79d529b722c0b66116eaf6 | 543 | py | Python | sourceFiles/ex027_LerNomeMostraUltimo.py | mcleber/Aulas_Python | bd224b593fcf907d54c8a2b92eb3afa88d327171 | [
"MIT"
] | null | null | null | sourceFiles/ex027_LerNomeMostraUltimo.py | mcleber/Aulas_Python | bd224b593fcf907d54c8a2b92eb3afa88d327171 | [
"MIT"
] | null | null | null | sourceFiles/ex027_LerNomeMostraUltimo.py | mcleber/Aulas_Python | bd224b593fcf907d54c8a2b92eb3afa88d327171 | [
"MIT"
] | null | null | null | '''
Faça um programa que leia o nome completo de uma pessoa, mostrando em seguida o primeiro e o último
nome separadamente.
Ex.: Ana Maria de Souza
primeiro = Ana
último = Souza
'''
n = str(input('Digite seu nome completo: ')).strip()
nome = n.split() # split particiona e cria uma lista começando no indice 0
p... | 38.785714 | 100 | 0.696133 | 89 | 543 | 4.247191 | 0.52809 | 0.063492 | 0.087302 | 0.119048 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011161 | 0.174954 | 543 | 13 | 101 | 41.769231 | 0.832589 | 0.47698 | 0 | 0 | 0 | 0 | 0.446565 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.666667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
f949b7feca2216ed779a38104fad871de931f5cd | 1,715 | py | Python | hknweb/forms.py | Boomaa23/hknweb | 2c2ce38b5f1c0c6e04ba46282141557357bd5326 | [
"MIT"
] | null | null | null | hknweb/forms.py | Boomaa23/hknweb | 2c2ce38b5f1c0c6e04ba46282141557357bd5326 | [
"MIT"
] | null | null | null | hknweb/forms.py | Boomaa23/hknweb | 2c2ce38b5f1c0c6e04ba46282141557357bd5326 | [
"MIT"
] | null | null | null | from django import forms
from django.contrib.auth.forms import (
UserCreationForm,
SetPasswordForm,
)
from hknweb.models import User, Profile
class SettingsForm(forms.ModelForm):
class Meta:
model = User
fields = ("username", "email", "first_name", "last_name", "password")
class Profile... | 24.855072 | 77 | 0.593586 | 168 | 1,715 | 5.940476 | 0.470238 | 0.036072 | 0.056112 | 0.054108 | 0.221443 | 0.082164 | 0.082164 | 0.082164 | 0 | 0 | 0 | 0.01086 | 0.302041 | 1,715 | 68 | 78 | 25.220588 | 0.822891 | 0 | 0 | 0.166667 | 0 | 0 | 0.146939 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018519 | false | 0.203704 | 0.055556 | 0 | 0.351852 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
f951cf837ee7d78498aad48b843418086e875c47 | 1,524 | py | Python | test/atw_config_auto.py | lichengwu/python_tools | 3ebf70e6a6f6689ce2b615bed1500b8817f0b82a | [
"Apache-2.0"
] | null | null | null | test/atw_config_auto.py | lichengwu/python_tools | 3ebf70e6a6f6689ce2b615bed1500b8817f0b82a | [
"Apache-2.0"
] | null | null | null | test/atw_config_auto.py | lichengwu/python_tools | 3ebf70e6a6f6689ce2b615bed1500b8817f0b82a | [
"Apache-2.0"
] | null | null | null | __author__ = 'lichengwu'
def get_groups(sharding):
sc = (int(sharding) - 1) * 8
group_list = ""
for s in xrange(sc, sc + 8):
group_list += str(s) + ","
return group_list[:-1]
def get_note(host):
v = host[3]
if v == 'm':
return 'message_' + host[17:]
else:
t = host... | 30.48 | 176 | 0.571522 | 216 | 1,524 | 3.833333 | 0.398148 | 0.057971 | 0.043478 | 0.05314 | 0.35628 | 0.246377 | 0.246377 | 0.246377 | 0.246377 | 0.246377 | 0 | 0.188762 | 0.252625 | 1,524 | 49 | 177 | 31.102041 | 0.538191 | 0 | 0 | 0.051282 | 0 | 0.051282 | 0.430263 | 0.232237 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.051282 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f956a3d5495345885097a51ce9c2704ddca7f850 | 3,396 | py | Python | Sketches/TG/soc2007/shard_final/BranchShard.py | sparkslabs/kamaelia_orig | 24b5f855a63421a1f7c6c7a35a7f4629ed955316 | [
"Apache-2.0"
] | 12 | 2015-10-20T10:22:01.000Z | 2021-07-19T10:09:44.000Z | Sketches/TG/soc2007/shard_final/BranchShard.py | sparkslabs/kamaelia_orig | 24b5f855a63421a1f7c6c7a35a7f4629ed955316 | [
"Apache-2.0"
] | 2 | 2015-10-20T10:22:55.000Z | 2017-02-13T11:05:25.000Z | Sketches/TG/soc2007/shard_final/BranchShard.py | sparkslabs/kamaelia_orig | 24b5f855a63421a1f7c6c7a35a7f4629ed955316 | [
"Apache-2.0"
] | 6 | 2015-03-09T12:51:59.000Z | 2020-03-01T13:06:21.000Z | # -*- coding: utf-8 -*-
# Copyright 2010 British Broadcasting Corporation and Kamaelia Contributors(1)
#
# (1) Kamaelia Contributors are listed in the AUTHORS file and at
# http://www.kamaelia.org/AUTHORS - please extend this file,
# not this notice.
#
# Licensed under the Apache License, Version 2.0 (the "Lic... | 39.488372 | 107 | 0.608952 | 396 | 3,396 | 5.20202 | 0.411616 | 0.029126 | 0.008738 | 0.015534 | 0.052427 | 0.052427 | 0.052427 | 0 | 0 | 0 | 0 | 0.006672 | 0.293875 | 3,396 | 86 | 108 | 39.488372 | 0.852377 | 0.263545 | 0 | 0 | 0 | 0 | 0.13218 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.035714 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.