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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a54c32d9df76ea887a0b0bac9c4f21cd01fe50ff | 3,991 | py | Python | verify-local-sendnsca-client/update_nagios_cfg.py | raychorn/svn_jenkins_projects | 93d22c28735c9fe6cb4ac632b6e79d89530e3bfb | [
"CC0-1.0"
] | null | null | null | verify-local-sendnsca-client/update_nagios_cfg.py | raychorn/svn_jenkins_projects | 93d22c28735c9fe6cb4ac632b6e79d89530e3bfb | [
"CC0-1.0"
] | null | null | null | verify-local-sendnsca-client/update_nagios_cfg.py | raychorn/svn_jenkins_projects | 93d22c28735c9fe6cb4ac632b6e79d89530e3bfb | [
"CC0-1.0"
] | null | null | null | import re, os, sys
isBeingDebugged = False if (not os.environ.has_key('WINGDB_ACTIVE')) else int(os.environ['WINGDB_ACTIVE']) == 1
__re__ = re.compile("(?P<commented>(#|))cfg_file=(?P<cfg_file>.*)", re.DOTALL | re.MULTILINE)
def find_nagios_cfg(top,target):
print 'DEBUG: top=%s, target=%s' % (top,target)
... | 35.954955 | 155 | 0.491606 | 473 | 3,991 | 3.816068 | 0.260042 | 0.050416 | 0.028809 | 0.017729 | 0.097507 | 0.064266 | 0.044321 | 0.044321 | 0 | 0 | 0 | 0.01237 | 0.372087 | 3,991 | 110 | 156 | 36.281818 | 0.707901 | 0.018291 | 0 | 0.106383 | 0 | 0.010638 | 0.116689 | 0.011564 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.010638 | null | null | 0.117021 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a550d35d092e7a7f432cb53720ad0aa77be59cf6 | 1,247 | py | Python | app/core/core_scripts/choices.py | Valentin-Golyonko/FlaskTestRPi | b9796a9acb2bb1c122301a3ef192f43c857eb27b | [
"Apache-2.0"
] | null | null | null | app/core/core_scripts/choices.py | Valentin-Golyonko/FlaskTestRPi | b9796a9acb2bb1c122301a3ef192f43c857eb27b | [
"Apache-2.0"
] | null | null | null | app/core/core_scripts/choices.py | Valentin-Golyonko/FlaskTestRPi | b9796a9acb2bb1c122301a3ef192f43c857eb27b | [
"Apache-2.0"
] | null | null | null | class Choices:
DEVICE_TYPE_BAROMETER = 1
DEVICE_TYPE_LED_STRIP = 2
DEVICE_TYPE_CHOICES = [
(DEVICE_TYPE_BAROMETER, 'Barometer'),
(DEVICE_TYPE_LED_STRIP, 'LED Strip'),
]
DEVICE_SUB_TYPE_BME280 = 1
DEVICE_SUB_TYPE_RGB_STRIP_WITH_ALARM = 2
DEVICE_SUB_TYPE_CHOICES = [
(D... | 31.175 | 91 | 0.694467 | 157 | 1,247 | 4.993631 | 0.267516 | 0.116071 | 0.151786 | 0.065051 | 0.221939 | 0.160714 | 0.160714 | 0 | 0 | 0 | 0 | 0.038422 | 0.227747 | 1,247 | 39 | 92 | 31.974359 | 0.775701 | 0.043304 | 0 | 0 | 0 | 0 | 0.076599 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0.575758 | 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 |
a55166529d4d734a528fe78b010050a25360e8b0 | 1,647 | py | Python | StyleTransferTensorFlow/style.py | LordHarsh/Neural_Style_Transfer | a3e95cfe13ba89f0f4a529e5c45a7b365b1e27d4 | [
"MIT"
] | 1 | 2021-01-31T06:41:29.000Z | 2021-01-31T06:41:29.000Z | build/lib/StyleTransferTensorFlow/style.py | LordHarsh/Neural_Style_Transfer | a3e95cfe13ba89f0f4a529e5c45a7b365b1e27d4 | [
"MIT"
] | null | null | null | build/lib/StyleTransferTensorFlow/style.py | LordHarsh/Neural_Style_Transfer | a3e95cfe13ba89f0f4a529e5c45a7b365b1e27d4 | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
import tensorflow as tf
import tensorflow_hub as hub
import numpy as np
from pytube import YouTube
import os
import cv2
from PIL import Image
import shutil
import glob
import ffmpy
def transfer(content_img_path, style_img_path, tfhub_module='https://tfhub.dev/google/magenta/arbitrary-im... | 37.431818 | 148 | 0.757134 | 256 | 1,647 | 4.601563 | 0.253906 | 0.152801 | 0.071307 | 0.064516 | 0.685908 | 0.658744 | 0.651952 | 0.602716 | 0.602716 | 0.564516 | 0 | 0.034364 | 0.116576 | 1,647 | 44 | 149 | 37.431818 | 0.775258 | 0 | 0 | 0.235294 | 0 | 0.058824 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.352941 | 0 | 0.470588 | 0.029412 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
a555df3734f412141194b24eeb0c8ebadcbf1a97 | 1,010 | py | Python | doc/conf.py | rerobots/cli | e97a20d8aa4b1f118272ded9675b6c0747db321f | [
"Apache-2.0"
] | 1 | 2021-04-17T22:51:42.000Z | 2021-04-17T22:51:42.000Z | doc/conf.py | rerobots/cli | e97a20d8aa4b1f118272ded9675b6c0747db321f | [
"Apache-2.0"
] | null | null | null | doc/conf.py | rerobots/cli | e97a20d8aa4b1f118272ded9675b6c0747db321f | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# parts of this were originally generated by sphinx-quickstart on Thu Aug 31 17:31:36 2017.
import os.path
import sys
sys.path.append(os.path.abspath('..'))
project = 'CLI'
copyright = '2021 rerobots, Inc | <a href="https://github.com/rerobots/cli">source code</a>'
au... | 21.489362 | 92 | 0.705941 | 138 | 1,010 | 5.050725 | 0.710145 | 0.017217 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020761 | 0.141584 | 1,010 | 46 | 93 | 21.956522 | 0.78316 | 0.292079 | 0 | 0 | 1 | 0.037037 | 0.313559 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.148148 | 0 | 0.148148 | 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 |
a55746c92e9741f67f15dac2983e811ae99e916b | 1,092 | py | Python | Python Scripts/lesson_49_tuples.py | jessequinn/udemy_python_complete | b97e657dea2a8680557949f01ac80d3230c82c41 | [
"MIT"
] | null | null | null | Python Scripts/lesson_49_tuples.py | jessequinn/udemy_python_complete | b97e657dea2a8680557949f01ac80d3230c82c41 | [
"MIT"
] | null | null | null | Python Scripts/lesson_49_tuples.py | jessequinn/udemy_python_complete | b97e657dea2a8680557949f01ac80d3230c82c41 | [
"MIT"
] | null | null | null | # Given the tuple below that represents the Imelda May album "More Mayhem", write
# code to print the album details, followed by a listing of all the tracks in the album.
#
# Indent the tracks by a single tab stop when printing them (remember that you can pass
# more than one item to the print function, separating them... | 31.2 | 88 | 0.659341 | 160 | 1,092 | 4.5 | 0.4125 | 0.055556 | 0.044444 | 0.061111 | 0.580556 | 0.505556 | 0.505556 | 0.505556 | 0.505556 | 0.505556 | 0 | 0.021277 | 0.182234 | 1,092 | 35 | 89 | 31.2 | 0.784994 | 0.597985 | 0 | 0 | 0 | 0 | 0.268409 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.416667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a55f46928d283fccaf2605f89dce3d22df548a5c | 5,844 | py | Python | Eager/elk-experiment/appserver/service_time_analyzer.py | UCSB-CS-RACELab/eager-appscale | d58fe64bb867ef58af19c1d84a5e1ec68ecddd3d | [
"Apache-2.0"
] | 3 | 2016-06-12T01:18:49.000Z | 2018-07-16T18:20:23.000Z | Eager/elk-experiment/appserver/service_time_analyzer.py | UCSB-CS-RACELab/eager-appscale | d58fe64bb867ef58af19c1d84a5e1ec68ecddd3d | [
"Apache-2.0"
] | null | null | null | Eager/elk-experiment/appserver/service_time_analyzer.py | UCSB-CS-RACELab/eager-appscale | d58fe64bb867ef58af19c1d84a5e1ec68ecddd3d | [
"Apache-2.0"
] | 1 | 2020-05-25T02:59:15.000Z | 2020-05-25T02:59:15.000Z | import argparse
import httplib
import json
import numpy
import re
import time
class RequestInfo:
def __init__(self, req, filtered=[]):
self.key = req['key']
self.timestamp = req['request_timestamp']['value_as_string']
self.api_calls = req['doc_count']
self.service_times = {}
... | 41.15493 | 117 | 0.5936 | 693 | 5,844 | 4.849928 | 0.262626 | 0.024993 | 0.035406 | 0.024993 | 0.142517 | 0.124963 | 0.116929 | 0.075275 | 0.075275 | 0.075275 | 0 | 0.025799 | 0.250513 | 5,844 | 141 | 118 | 41.446809 | 0.741553 | 0 | 0 | 0.067669 | 0 | 0.030075 | 0.209617 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.045113 | null | null | 0.090226 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a55fff704388ce5d543d33e5e01d893ff1080816 | 523 | py | Python | favorites/models.py | plegulluche/OPC-P11 | 9705d56bb77bb548495954c80af02d421dcbf3a2 | [
"Unlicense"
] | null | null | null | favorites/models.py | plegulluche/OPC-P11 | 9705d56bb77bb548495954c80af02d421dcbf3a2 | [
"Unlicense"
] | null | null | null | favorites/models.py | plegulluche/OPC-P11 | 9705d56bb77bb548495954c80af02d421dcbf3a2 | [
"Unlicense"
] | null | null | null | from django.db import models
from products.models import Product
from account.models import Account
class FavouriteProduct(models.Model):
user = models.ForeignKey(Account, on_delete=models.CASCADE, related_name="user")
product = models.ForeignKey(
Product, on_delete=models.CASCADE, related_name="prod... | 29.055556 | 87 | 0.707457 | 62 | 523 | 5.822581 | 0.5 | 0.066482 | 0.077562 | 0.116343 | 0.177285 | 0.177285 | 0 | 0 | 0 | 0 | 0 | 0 | 0.191205 | 523 | 17 | 88 | 30.764706 | 0.853428 | 0 | 0 | 0 | 0 | 0 | 0.1587 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.230769 | 0.076923 | 0.692308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
a56450c0dab785583a1aaf64015a7d73ea36fb2a | 2,443 | py | Python | pydis_site/apps/api/migrations/0044_migrate_nominations_from_infraction_to_nomination_model.py | Numerlor/site | e4cec0aeb2a791e622be8edd94fb4e82d150deab | [
"MIT"
] | 700 | 2018-11-17T15:56:51.000Z | 2022-03-30T22:53:17.000Z | pydis_site/apps/api/migrations/0044_migrate_nominations_from_infraction_to_nomination_model.py | Numerlor/site | e4cec0aeb2a791e622be8edd94fb4e82d150deab | [
"MIT"
] | 542 | 2018-11-17T13:39:42.000Z | 2022-03-31T11:24:00.000Z | pydis_site/apps/api/migrations/0044_migrate_nominations_from_infraction_to_nomination_model.py | Numerlor/site | e4cec0aeb2a791e622be8edd94fb4e82d150deab | [
"MIT"
] | 178 | 2018-11-21T09:06:56.000Z | 2022-03-31T07:43:28.000Z | # Generated by Django 2.2.5 on 2019-09-30 12:15
import logging
from django.db import migrations
from django.db.models import Q
log = logging.getLogger('nomination_migration')
def migrate_nominations_to_new_model(apps, schema_editor):
"""
Migrations nominations from the infraction model to the nomination mod... | 37.584615 | 101 | 0.632419 | 260 | 2,443 | 5.826923 | 0.396154 | 0.055446 | 0.071287 | 0.047525 | 0.215182 | 0.113531 | 0.113531 | 0.113531 | 0.113531 | 0.113531 | 0 | 0.012878 | 0.268932 | 2,443 | 64 | 102 | 38.171875 | 0.835386 | 0.132624 | 0 | 0.170213 | 1 | 0 | 0.17678 | 0.040134 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021277 | false | 0 | 0.06383 | 0 | 0.148936 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a565f1cec83237287d55c5339e0a84e9756b4648 | 276 | py | Python | python_Ashwin-A-K/day_22.py | 01coders/50-Days-Of-Code | 98928cf0e186ee295bc90a4da0aa9554e2918659 | [
"MIT"
] | null | null | null | python_Ashwin-A-K/day_22.py | 01coders/50-Days-Of-Code | 98928cf0e186ee295bc90a4da0aa9554e2918659 | [
"MIT"
] | null | null | null | python_Ashwin-A-K/day_22.py | 01coders/50-Days-Of-Code | 98928cf0e186ee295bc90a4da0aa9554e2918659 | [
"MIT"
] | null | null | null | #!/usr/bin/python
import datetime
x = datetime.datetime.now()
print(x) # current date and time
print(x.year) # current year
print(x.strftime("%A")) # current day
y = datetime.datetime(2020, 5, 17) # set date
print(y)
print(y.strftime("%B")) # Month name, full version
| 21.230769 | 51 | 0.681159 | 44 | 276 | 4.272727 | 0.590909 | 0.095745 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030043 | 0.155797 | 276 | 12 | 52 | 23 | 0.776824 | 0.351449 | 0 | 0 | 0 | 0 | 0.023121 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0.625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a567756da5a12285509d78272354ba05926525ee | 587 | py | Python | DesignPatterns/Node.py | QuantumFractal/Python-Scripts | 9959af9fe835abd550365e98e4fc63e6b8357d1f | [
"MIT"
] | 2 | 2015-01-30T04:51:27.000Z | 2015-12-31T08:47:22.000Z | DesignPatterns/Node.py | QuantumFractal/Python-Scripts | 9959af9fe835abd550365e98e4fc63e6b8357d1f | [
"MIT"
] | null | null | null | DesignPatterns/Node.py | QuantumFractal/Python-Scripts | 9959af9fe835abd550365e98e4fc63e6b8357d1f | [
"MIT"
] | null | null | null | class Node:
def __init__(self, parent):
if parent is None:
self.isRoot = True
else:
self.isRoot = False
self.parent = parent
self.parent.add_child(self)
self.children = []
def __str__(self):
return 'Node'
def add_child(self, child):
self.children.append(child)
def print_tree_below(self, ta... | 16.771429 | 38 | 0.654174 | 90 | 587 | 4.088889 | 0.377778 | 0.081522 | 0.11413 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025862 | 0.20954 | 587 | 34 | 39 | 17.264706 | 0.767241 | 0 | 0 | 0.074074 | 0 | 0 | 0.010221 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.185185 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a56ef28284a9ee515302682dd5904409e87c4d93 | 4,965 | py | Python | irekua_rest_api/views/__init__.py | IslasGECI/irekua-rest-api | 35cf5153ed7f54d12ebad2ac07d472585f04e3e7 | [
"BSD-4-Clause"
] | null | null | null | irekua_rest_api/views/__init__.py | IslasGECI/irekua-rest-api | 35cf5153ed7f54d12ebad2ac07d472585f04e3e7 | [
"BSD-4-Clause"
] | 11 | 2020-03-28T18:51:50.000Z | 2022-01-13T01:47:40.000Z | irekua_rest_api/views/__init__.py | IslasGECI/irekua-rest-api | 35cf5153ed7f54d12ebad2ac07d472585f04e3e7 | [
"BSD-4-Clause"
] | 1 | 2021-05-06T19:38:14.000Z | 2021-05-06T19:38:14.000Z | # pylint: disable=C0301
from .annotations.annotation_tools import AnnotationToolViewSet
from .annotations.annotation_votes import AnnotationVoteViewSet
from .annotations.annotations import AnnotationViewSet
from .data_collections.collection_devices import CollectionDeviceViewSet
from .data_collections.collection_sites ... | 45.136364 | 113 | 0.848338 | 423 | 4,965 | 9.72104 | 0.236407 | 0.053502 | 0.080253 | 0.046206 | 0.129864 | 0.129864 | 0.032588 | 0.022374 | 0 | 0 | 0 | 0.000891 | 0.096073 | 4,965 | 109 | 114 | 45.550459 | 0.91533 | 0.00423 | 0 | 0 | 0 | 0 | 0.219142 | 0.143262 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.490566 | 0 | 0.490566 | 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 |
a5722597309534c03d51a4f6182a1dcb0d277f2d | 2,765 | py | Python | acurite/AcuriteManager.py | jamespauly/udi-acurite-poly | 8c4866c3b18cf1c27f37ead392e732aa49e1bc07 | [
"MIT"
] | null | null | null | acurite/AcuriteManager.py | jamespauly/udi-acurite-poly | 8c4866c3b18cf1c27f37ead392e732aa49e1bc07 | [
"MIT"
] | null | null | null | acurite/AcuriteManager.py | jamespauly/udi-acurite-poly | 8c4866c3b18cf1c27f37ead392e732aa49e1bc07 | [
"MIT"
] | null | null | null | from datetime import datetime, timezone
import udi_interface
import requests
import json
from enums import BatteryLevel, DeviceStatus
from nodes import AcuriteDeviceNode
LOGGER = udi_interface.LOGGER
Custom = udi_interface.Custom
class AcuriteManager():
def __init__(self, user, password):
self.user = ... | 37.876712 | 120 | 0.58264 | 273 | 2,765 | 5.846154 | 0.369963 | 0.031328 | 0.041353 | 0.048872 | 0.22807 | 0.22807 | 0.191729 | 0.14787 | 0.14787 | 0.091479 | 0 | 0.013677 | 0.312477 | 2,765 | 72 | 121 | 38.402778 | 0.825881 | 0.00868 | 0 | 0.186441 | 0 | 0 | 0.157722 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.067797 | false | 0.050847 | 0.101695 | 0 | 0.322034 | 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 |
a5728dfb70546b1b777313ae3ec58c3a19425e50 | 5,650 | py | Python | DTL/db/models/graphicsmodels.py | rocktavious/DevToolsLib | 117200c91a3361e04f7c8e07d2ed4999bbcfc469 | [
"MIT"
] | 1 | 2015-03-23T18:52:12.000Z | 2015-03-23T18:52:12.000Z | DTL/db/models/graphicsmodels.py | rocktavious/DevToolsLib | 117200c91a3361e04f7c8e07d2ed4999bbcfc469 | [
"MIT"
] | null | null | null | DTL/db/models/graphicsmodels.py | rocktavious/DevToolsLib | 117200c91a3361e04f7c8e07d2ed4999bbcfc469 | [
"MIT"
] | 2 | 2017-05-21T12:50:41.000Z | 2021-10-17T03:32:45.000Z | from DTL.qt import QtCore, QtGui
from DTL.qt.QtCore import Qt
#------------------------------------------------------------
#------------------------------------------------------------
class GraphicsItemModel(QtGui.QGraphicsItem):
unselected_color = QtGui.QColor(100,100,100)
selected_color = QtGui.QColor(100,... | 37.417219 | 94 | 0.420354 | 433 | 5,650 | 5.427252 | 0.244804 | 0.042128 | 0.017872 | 0.01617 | 0.114894 | 0.099574 | 0.08 | 0.08 | 0.08 | 0.08 | 0 | 0.008559 | 0.234867 | 5,650 | 151 | 95 | 37.417219 | 0.535045 | 0.265487 | 0 | 0.212121 | 0 | 0 | 0.008725 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.212121 | false | 0.040404 | 0.020202 | 0.040404 | 0.424242 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a57794912fc7fe375ace5545bb257b022affaf27 | 1,381 | py | Python | workon/contrib/security/models.py | dalou/django-workon | ef63c0a81c00ef560ed693e435cf3825f5170126 | [
"BSD-3-Clause"
] | null | null | null | workon/contrib/security/models.py | dalou/django-workon | ef63c0a81c00ef560ed693e435cf3825f5170126 | [
"BSD-3-Clause"
] | null | null | null | workon/contrib/security/models.py | dalou/django-workon | ef63c0a81c00ef560ed693e435cf3825f5170126 | [
"BSD-3-Clause"
] | null | null | null | # encoding: utf-8
from django.db import models
from django.conf import settings
class DisallowedHost(models.Model):
created_at = models.DateTimeField("Créé le", auto_now_add=True)
updated_at = models.DateTimeField("Modifié le", auto_now=True, db_index=True)
http_host = models.CharField(u"HTTP_HOST", max... | 44.548387 | 107 | 0.735699 | 200 | 1,381 | 4.82 | 0.335 | 0.074689 | 0.121369 | 0.158714 | 0.263485 | 0.263485 | 0.263485 | 0.143154 | 0 | 0 | 0 | 0.021222 | 0.146995 | 1,381 | 31 | 108 | 44.548387 | 0.797114 | 0.010862 | 0 | 0 | 0 | 0 | 0.147985 | 0.021978 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.095238 | 0.047619 | 0.809524 | 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 |
a583ce21b151702ce7c45ced989d01eb53545764 | 1,833 | py | Python | plotapp/controllers/window_controller.py | maldata/matplotlib_qtquick_playground | f7da94093315d8f540124d5037406d004574dede | [
"MIT"
] | null | null | null | plotapp/controllers/window_controller.py | maldata/matplotlib_qtquick_playground | f7da94093315d8f540124d5037406d004574dede | [
"MIT"
] | null | null | null | plotapp/controllers/window_controller.py | maldata/matplotlib_qtquick_playground | f7da94093315d8f540124d5037406d004574dede | [
"MIT"
] | null | null | null | import random
from PyQt5.QtCore import pyqtSignal, pyqtProperty, pyqtSlot, QObject
class WindowController(QObject):
label_changed = pyqtSignal()
def __init__(self, app):
super().__init__()
self._app = app
self._qml_engine = None
self._label = 'whatever'
self._figure =... | 25.816901 | 99 | 0.569013 | 235 | 1,833 | 4.212766 | 0.378723 | 0.036364 | 0.052525 | 0.044444 | 0.208081 | 0.194949 | 0.194949 | 0.194949 | 0.115152 | 0.115152 | 0 | 0.013471 | 0.311511 | 1,833 | 70 | 100 | 26.185714 | 0.770998 | 0.084015 | 0 | 0.22449 | 0 | 0 | 0.03043 | 0 | 0 | 0 | 0 | 0.014286 | 0 | 1 | 0.122449 | false | 0 | 0.040816 | 0.020408 | 0.22449 | 0.040816 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a5852febf93eb6f982e8fd189b72f16bda399d56 | 337 | py | Python | training/train.py | gert-janwille/Eleonora | a979dcd9b41231ea3abc9a57d842c680314ac9ca | [
"MIT"
] | 1 | 2017-11-19T10:57:38.000Z | 2017-11-19T10:57:38.000Z | training/train.py | gert-janwille/Eleonora | a979dcd9b41231ea3abc9a57d842c680314ac9ca | [
"MIT"
] | 6 | 2017-11-15T16:04:09.000Z | 2018-01-18T17:12:18.000Z | training/train.py | gert-janwille/Eleonora | a979dcd9b41231ea3abc9a57d842c680314ac9ca | [
"MIT"
] | null | null | null | from training.emotional_training import emotional_training
from training.facial_training import facial_training
def train():
print('\n0: Emotional Training')
print('1: Facial Training\n')
choose = int(input("Type Number > "))
if choose == 0:
emotional_training()
if choose == 1:
f... | 22.466667 | 58 | 0.682493 | 40 | 337 | 5.6 | 0.45 | 0.303571 | 0.133929 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015094 | 0.21365 | 337 | 14 | 59 | 24.071429 | 0.830189 | 0 | 0 | 0 | 0 | 0 | 0.169139 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.2 | 0 | 0.3 | 0.2 | 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 |
a58e0065829efa585d05c036b442a368f95ae6a9 | 1,626 | py | Python | src/entities/git_repo.py | wnjustdoit/devops-py | 54dd722a577c4b3ecda45aa85c067130fd292ab9 | [
"Apache-2.0"
] | null | null | null | src/entities/git_repo.py | wnjustdoit/devops-py | 54dd722a577c4b3ecda45aa85c067130fd292ab9 | [
"Apache-2.0"
] | 6 | 2021-04-08T20:46:56.000Z | 2022-01-13T01:52:06.000Z | src/entities/git_repo.py | wnjustdoit/devops-py | 54dd722a577c4b3ecda45aa85c067130fd292ab9 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
from .entity import Entity, EntitySchema, Base
from sqlalchemy import Column, Integer, String, Sequence
from marshmallow import Schema, fields, post_load
class GitRepo(Entity, Base):
__tablename__ = 'git_repo'
id = Column(Integer, Sequence('git_repo_id_seq'), primary_key=True)
des... | 37.813953 | 134 | 0.710947 | 223 | 1,626 | 4.834081 | 0.255605 | 0.046382 | 0.083488 | 0.055659 | 0.402597 | 0.351577 | 0.319109 | 0.22449 | 0.155844 | 0.155844 | 0 | 0.016031 | 0.194342 | 1,626 | 42 | 135 | 38.714286 | 0.80687 | 0.012915 | 0 | 0 | 0 | 0 | 0.014339 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060606 | false | 0 | 0.090909 | 0.030303 | 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 |
a5965f266f95ad0e2605b8928b40d8635af8fdc1 | 2,990 | py | Python | scripts/binarize-phrase-table.py | grgau/GroundHog | 35fac1b80bdcc6b7516cb82fe2ecd19dbcfa248a | [
"BSD-3-Clause"
] | null | null | null | scripts/binarize-phrase-table.py | grgau/GroundHog | 35fac1b80bdcc6b7516cb82fe2ecd19dbcfa248a | [
"BSD-3-Clause"
] | null | null | null | scripts/binarize-phrase-table.py | grgau/GroundHog | 35fac1b80bdcc6b7516cb82fe2ecd19dbcfa248a | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# Converts moses phrase table file to HDF5 files
# Written by Bart van Merrienboer (University of Montreal)
import argparse
import cPickle
import gzip
import sys
import tables
import numpy
parser = argparse.ArgumentParser()
parser.add_argument("input",
type=argparse.FileTy... | 30.510204 | 97 | 0.614716 | 371 | 2,990 | 4.854447 | 0.320755 | 0.038867 | 0.056635 | 0.034981 | 0.205997 | 0.162132 | 0.162132 | 0.124375 | 0.124375 | 0.124375 | 0 | 0.016872 | 0.266555 | 2,990 | 97 | 98 | 30.824742 | 0.804378 | 0.041472 | 0 | 0.144737 | 0 | 0 | 0.142159 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.078947 | null | null | 0.039474 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a59a527b87a6e3d50b3ac6e6acea7185a59af36b | 1,423 | py | Python | handlers/product_handlers.py | group-project-carbon-accounting/server | 93155868a0988c04fe79d30ef565c652d2c8f5de | [
"MIT"
] | null | null | null | handlers/product_handlers.py | group-project-carbon-accounting/server | 93155868a0988c04fe79d30ef565c652d2c8f5de | [
"MIT"
] | null | null | null | handlers/product_handlers.py | group-project-carbon-accounting/server | 93155868a0988c04fe79d30ef565c652d2c8f5de | [
"MIT"
] | null | null | null | import tornado.web
import json
from handlers.async_fetch import async_fetch, GET, POST
class ProductAddHandler(tornado.web.RequestHandler):
async def post(self):
request_data = json.loads(self.request.body)
data = {
'prod_id': request_data['product_id'],
'comp_id': request_d... | 43.121212 | 102 | 0.645819 | 166 | 1,423 | 5.307229 | 0.246988 | 0.099886 | 0.059024 | 0.098751 | 0.642452 | 0.606129 | 0.606129 | 0.606129 | 0.606129 | 0.606129 | 0 | 0 | 0.214336 | 1,423 | 32 | 103 | 44.46875 | 0.788014 | 0 | 0 | 0.5 | 0 | 0 | 0.175685 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.107143 | 0 | 0.214286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a5a01c24d79e75ecbeea7e8b127b09c3ad1d05e0 | 376 | py | Python | accounts/migrations/0005_auto_20200227_0418.py | inclusive-design/coop-map-directory-index | b215ea95677dc90fafe60eaa494a4fd6af0431fb | [
"BSD-3-Clause"
] | 1 | 2020-01-28T16:16:49.000Z | 2020-01-28T16:16:49.000Z | accounts/migrations/0005_auto_20200227_0418.py | inclusive-design/coop-map-directory-index | b215ea95677dc90fafe60eaa494a4fd6af0431fb | [
"BSD-3-Clause"
] | 114 | 2020-02-12T20:22:07.000Z | 2021-09-22T18:29:50.000Z | accounts/migrations/0005_auto_20200227_0418.py | inclusive-design/coop-map-directory-index | b215ea95677dc90fafe60eaa494a4fd6af0431fb | [
"BSD-3-Clause"
] | 4 | 2020-04-21T21:09:25.000Z | 2021-01-08T14:18:58.000Z | # Generated by Django 3.0.3 on 2020-02-27 04:18
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('accounts', '0004_auto_20200226_2329'),
]
operations = [
migrations.AlterModelOptions(
name='usersocialnetwork',
options={'ve... | 20.888889 | 62 | 0.619681 | 39 | 376 | 5.871795 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.112319 | 0.265957 | 376 | 17 | 63 | 22.117647 | 0.717391 | 0.119681 | 0 | 0 | 1 | 0 | 0.246201 | 0.069909 | 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 |
a5a7f71a8d3d53892df66d8802c0d53865e70be7 | 497 | py | Python | app/store/migrations/0003_auto_20201127_1957.py | Yuehan-Wang/Marvas | d868a152865b9e8308db8d98642016a67b78f31d | [
"MIT"
] | null | null | null | app/store/migrations/0003_auto_20201127_1957.py | Yuehan-Wang/Marvas | d868a152865b9e8308db8d98642016a67b78f31d | [
"MIT"
] | null | null | null | app/store/migrations/0003_auto_20201127_1957.py | Yuehan-Wang/Marvas | d868a152865b9e8308db8d98642016a67b78f31d | [
"MIT"
] | 3 | 2022-01-22T16:14:13.000Z | 2022-01-23T18:25:06.000Z | # Generated by Django 2.2 on 2020-11-27 13:57
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('store', '0002_auto_20201127_1945'),
]
operations = [
migrations.AlterModelOptions(
name='category',
options={'verbose_name_plu... | 21.608696 | 58 | 0.573441 | 47 | 497 | 5.893617 | 0.765957 | 0.086643 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.087719 | 0.311871 | 497 | 22 | 59 | 22.590909 | 0.722222 | 0.086519 | 0 | 0.125 | 1 | 0 | 0.185841 | 0.050885 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a5a96f07f26b02ec492974bd34c7406e72ba2e22 | 3,333 | py | Python | main.py | DaKidReturns/WikipediaScrapper | 288b0bc3e882ff4ccb45dbdc021eabbc25cc19d0 | [
"MIT"
] | null | null | null | main.py | DaKidReturns/WikipediaScrapper | 288b0bc3e882ff4ccb45dbdc021eabbc25cc19d0 | [
"MIT"
] | null | null | null | main.py | DaKidReturns/WikipediaScrapper | 288b0bc3e882ff4ccb45dbdc021eabbc25cc19d0 | [
"MIT"
] | null | null | null | import requests
from bs4 import BeautifulSoup as bs4
from docx import Document as doc
from docx.shared import Cm
import sys
if len(sys.argv) != 3:
print("The format should be \n./main.py <url> <output_file_name>")
else:
url = sys.argv[1]
doc_name = sys.argv[2]
document = doc()
page = requests... | 42.189873 | 96 | 0.370237 | 297 | 3,333 | 4.10101 | 0.360269 | 0.028736 | 0.021346 | 0.031199 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005825 | 0.536454 | 3,333 | 78 | 97 | 42.730769 | 0.782524 | 0.138014 | 0 | 0.047619 | 0 | 0 | 0.057834 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.119048 | 0 | 0.119048 | 0.02381 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a5a9f77ca2671875a0d1fe9de7b77aefb68618a3 | 583 | py | Python | math/count_digits.py | ethyl2/code_challenges | 3c9ccca1782f92728e60a515a7ca797f6d470e81 | [
"MIT"
] | null | null | null | math/count_digits.py | ethyl2/code_challenges | 3c9ccca1782f92728e60a515a7ca797f6d470e81 | [
"MIT"
] | null | null | null | math/count_digits.py | ethyl2/code_challenges | 3c9ccca1782f92728e60a515a7ca797f6d470e81 | [
"MIT"
] | null | null | null | """
https://www.codewars.com/kata/566fc12495810954b1000030/train/python
Given an pos int n,
and a digit that is < 10, d.
Square all ints from 0 - n, and return the number times d is used in the squared results.
"""
def nb_dig(n, d):
'''
results = ''
for i in range(n+1):
results += str(i * i)
... | 23.32 | 89 | 0.61578 | 103 | 583 | 3.427184 | 0.533981 | 0.084986 | 0.141643 | 0.062323 | 0.073654 | 0.073654 | 0 | 0 | 0 | 0 | 0 | 0.153509 | 0.217839 | 583 | 24 | 90 | 24.291667 | 0.620614 | 0.5506 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.285714 | 0.714286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a5aea13c60563cdbc4bc77d66b48baaf6efb6ec5 | 1,587 | py | Python | SimpleEmailer.py | dschoonwinkel/InverterMQTT | 75f13900f584d9905a02488eff7bd1dd3e53e73a | [
"Apache-2.0"
] | null | null | null | SimpleEmailer.py | dschoonwinkel/InverterMQTT | 75f13900f584d9905a02488eff7bd1dd3e53e73a | [
"Apache-2.0"
] | null | null | null | SimpleEmailer.py | dschoonwinkel/InverterMQTT | 75f13900f584d9905a02488eff7bd1dd3e53e73a | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
import smtplib
import time
import configparser
config = configparser.ConfigParser()
config.read('/home/pi/Development/Python/InverterMQTT/emailcredentials.conf')
email = config['credentials']['email']
password = config['credentials']['password']
to_email = config['credentials']['to_email']
# ... | 29.943396 | 99 | 0.674228 | 192 | 1,587 | 5.463542 | 0.46875 | 0.049571 | 0.041945 | 0.032412 | 0.049571 | 0.049571 | 0 | 0 | 0 | 0 | 0 | 0.004754 | 0.204789 | 1,587 | 52 | 100 | 30.519231 | 0.826466 | 0.21235 | 0 | 0.064516 | 0 | 0 | 0.213765 | 0.050202 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064516 | false | 0.096774 | 0.096774 | 0 | 0.193548 | 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 |
a5b2bd395585d35f2949dc453f6442697664d6bf | 202 | py | Python | types/msg.py | UltiRequiem/professional-phython-platzi | 0bf8f97b172d0799d6906193090ef69beb1c8b4b | [
"MIT"
] | 4 | 2021-08-02T21:34:46.000Z | 2021-09-24T03:26:35.000Z | types/msg.py | UltiRequiem/professional-phython-platzi | 0bf8f97b172d0799d6906193090ef69beb1c8b4b | [
"MIT"
] | null | null | null | types/msg.py | UltiRequiem/professional-phython-platzi | 0bf8f97b172d0799d6906193090ef69beb1c8b4b | [
"MIT"
] | 4 | 2021-08-02T21:34:47.000Z | 2021-08-11T03:21:37.000Z | def run(msg: str) -> None:
"""
Print the message received parameters.
"""
print(msg)
if __name__ == "__main__":
message: str = "Zero commands Python to be typed!"
run(message)
| 18.363636 | 54 | 0.60396 | 25 | 202 | 4.56 | 0.76 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.262376 | 202 | 10 | 55 | 20.2 | 0.765101 | 0.188119 | 0 | 0 | 0 | 0 | 0.277027 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.2 | 0.2 | 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 |
a5b83e7cc19ace3ba764ad74920296c856b01e5f | 375 | py | Python | spikes/function_signatures.py | insequor/webapp | 73990bd74afd6d0f794c447e1bcc5d557ee2ed31 | [
"MIT"
] | 1 | 2020-08-07T12:16:49.000Z | 2020-08-07T12:16:49.000Z | spikes/function_signatures.py | insequor/webapp | 73990bd74afd6d0f794c447e1bcc5d557ee2ed31 | [
"MIT"
] | 1 | 2021-10-30T10:21:34.000Z | 2021-10-30T10:21:34.000Z | spikes/function_signatures.py | insequor/webapp | 73990bd74afd6d0f794c447e1bcc5d557ee2ed31 | [
"MIT"
] | null | null | null |
from inspect import signature
def testFunction(a, b=None):
pass
class TestClass:
def testMethod(me):
pass
if __name__ == '__main__':
#sig = signature(testFunction)
sig = signature(TestClass.testMethod)
for key in sig.parameters:
param = sig.parameters[key]
print(key, p... | 20.833333 | 41 | 0.624 | 43 | 375 | 5.255814 | 0.604651 | 0.106195 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.269333 | 375 | 18 | 42 | 20.833333 | 0.824818 | 0.077333 | 0 | 0.166667 | 0 | 0 | 0.031884 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.166667 | 0.083333 | 0 | 0.333333 | 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 |
a5b88dea17e5a8c345a0188b0209c92393ef06ec | 551 | py | Python | main.py | SciFiTy10/talkLikeSnoop | 1a3408dfa244669a0d723737c62da93feb7d9ba8 | [
"MIT"
] | 1 | 2022-01-07T10:27:14.000Z | 2022-01-07T10:27:14.000Z | main.py | SciFiTy10/talkLikeSnoop | 1a3408dfa244669a0d723737c62da93feb7d9ba8 | [
"MIT"
] | null | null | null | main.py | SciFiTy10/talkLikeSnoop | 1a3408dfa244669a0d723737c62da93feb7d9ba8 | [
"MIT"
] | null | null | null | #imports
from routing_methods import on_launch, intent_router
##############################
# Program Entry
##############################
#lambda_handler (this is like main())
def lambda_handler(event, context):
#event is a python dictionary
#LaunchRequest is an object that means the user made a request to ... | 34.4375 | 108 | 0.638838 | 67 | 551 | 5.149254 | 0.641791 | 0.104348 | 0.092754 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.165154 | 551 | 15 | 109 | 36.733333 | 0.75 | 0.341198 | 0 | 0 | 0 | 0 | 0.161074 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
3c02f34d8d7c7f266cdc6308a85575de226c48f6 | 2,703 | py | Python | src/tests/test_pyning/test_combinationdict.py | essennell/pyning | c28d8fae99ab6cb4394960b72565a4915aee7adc | [
"MIT"
] | null | null | null | src/tests/test_pyning/test_combinationdict.py | essennell/pyning | c28d8fae99ab6cb4394960b72565a4915aee7adc | [
"MIT"
] | 3 | 2020-03-24T16:25:58.000Z | 2021-06-01T22:57:53.000Z | src/tests/test_pyning/test_combinationdict.py | essennell/pyning | c28d8fae99ab6cb4394960b72565a4915aee7adc | [
"MIT"
] | null | null | null | from pyning.combinationdict import CombinationDict
import pytest
def test_key_at_root_is_located():
items = CombinationDict( '/', { 'a': 10 } )
assert items[ 'a' ] == 10
def test_key_nested_1_level_is_located():
items = CombinationDict( '/', { 'a': { 'b': 10 } } )
assert items[ 'a/b' ] == 10
def ... | 27.865979 | 70 | 0.574547 | 357 | 2,703 | 4.056022 | 0.218487 | 0.03453 | 0.132597 | 0.151934 | 0.55732 | 0.435083 | 0.368094 | 0.172652 | 0.172652 | 0.132597 | 0 | 0.034318 | 0.223825 | 2,703 | 96 | 71 | 28.15625 | 0.655863 | 0 | 0 | 0.04918 | 0 | 0 | 0.058845 | 0 | 0 | 0 | 0 | 0 | 0.327869 | 1 | 0.262295 | false | 0 | 0.032787 | 0 | 0.295082 | 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 |
3c062192bd225720274ca7e3b61333f806b3a7b1 | 6,781 | py | Python | tests/constants.py | phihos/Python-OpenVPN-LDAP-Auth | 87dd986f49555d0fb50ad8d991cf02092a9d55dc | [
"MIT"
] | 1 | 2021-12-17T14:54:36.000Z | 2021-12-17T14:54:36.000Z | tests/constants.py | phihos/python-openvpn-ldap-auth | 87dd986f49555d0fb50ad8d991cf02092a9d55dc | [
"MIT"
] | null | null | null | tests/constants.py | phihos/python-openvpn-ldap-auth | 87dd986f49555d0fb50ad8d991cf02092a9d55dc | [
"MIT"
] | null | null | null | import os
import shutil
from datetime import datetime
# INPUT PARAMS
LDAP_URL = os.environ['TEST_LDAP_URL']
LDAP_BASE_DN = os.environ['TEST_LDAP_BASE_DN']
LDAP_ADMIN_DN = os.environ['TEST_LDAP_ADMIN_DN']
LDAP_ADMIN_PASSWORD = os.environ['TEST_LDAP_ADMIN_PASSWORD']
LDAP_BIND_TIMEOUT = os.environ.get('TEST_LDAP_BIND_TIM... | 46.765517 | 118 | 0.668191 | 810 | 6,781 | 5.198765 | 0.228395 | 0.092615 | 0.059843 | 0.022797 | 0.429114 | 0.251722 | 0.205652 | 0.150558 | 0.150558 | 0.150558 | 0 | 0.010519 | 0.200855 | 6,781 | 144 | 119 | 47.090278 | 0.766562 | 0.02743 | 0 | 0.148438 | 0 | 0.007813 | 0.323869 | 0.081537 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.078125 | 0.023438 | 0 | 0.023438 | 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 |
3c06dc2f7a1273c76e68bacba57d4a3e26a88d66 | 1,377 | py | Python | http_utils/recs/top_popular_recommendation_handler.py | drayvs/grouple-recsys-production | 5141bacd5dc64e023059292faff5bfdefefd9f23 | [
"MIT"
] | null | null | null | http_utils/recs/top_popular_recommendation_handler.py | drayvs/grouple-recsys-production | 5141bacd5dc64e023059292faff5bfdefefd9f23 | [
"MIT"
] | null | null | null | http_utils/recs/top_popular_recommendation_handler.py | drayvs/grouple-recsys-production | 5141bacd5dc64e023059292faff5bfdefefd9f23 | [
"MIT"
] | null | null | null | from concurrent.futures import ThreadPoolExecutor
from tornado.concurrent import run_on_executor
from webargs import fields
from webargs.tornadoparser import use_args
from loguru import logger
from http_utils.base import BaseHandler, MAX_THREADS
class TopPopularRecommendationHandler(BaseHandler):
executor = Threa... | 37.216216 | 102 | 0.658678 | 176 | 1,377 | 4.977273 | 0.4375 | 0.034247 | 0.02968 | 0.03653 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00565 | 0.228758 | 1,377 | 36 | 103 | 38.25 | 0.819209 | 0.029775 | 0 | 0 | 0 | 0 | 0.104948 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0.037037 | 0.518519 | 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 |
3c09d1eafa4175a7dae038754ad5b4a09e871bc9 | 6,492 | py | Python | overhang/dnastorage_utils/system/header.py | dna-storage/DINOS | 65f4142e80d646d7eefa3fc16d747d21ec43fbbe | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | overhang/dnastorage_utils/system/header.py | dna-storage/DINOS | 65f4142e80d646d7eefa3fc16d747d21ec43fbbe | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | overhang/dnastorage_utils/system/header.py | dna-storage/DINOS | 65f4142e80d646d7eefa3fc16d747d21ec43fbbe | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | from dnastorage.codec.base_conversion import convertIntToBytes,convertBytesToInt
from dnastorage.arch.builder import *
import editdistance as ed
#from dnastorage.primer.primer_util import edit_distance
from io import BytesIO
from dnastorage.util.packetizedfile import *
import math
import struct
from dnastorage.system.f... | 31.211538 | 109 | 0.608595 | 883 | 6,492 | 4.332956 | 0.215176 | 0.028228 | 0.020387 | 0.015682 | 0.218766 | 0.180084 | 0.121014 | 0.079456 | 0.026137 | 0.013068 | 0 | 0.028799 | 0.245841 | 6,492 | 207 | 110 | 31.362319 | 0.752655 | 0.150801 | 0 | 0.151079 | 0 | 0 | 0.048973 | 0 | 0 | 0 | 0.002751 | 0 | 0.028777 | 0 | null | null | 0.007194 | 0.057554 | null | null | 0.014388 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
3c0cdb9dded53f14973b9af474148c0b7d6c7d6f | 1,353 | py | Python | pythondata_cpu_minerva/__init__.py | litex-hub/litex-data-cpu-minerva | 3896ce15f5d6420f7797b1f95249f948533bf542 | [
"BSD-2-Clause"
] | null | null | null | pythondata_cpu_minerva/__init__.py | litex-hub/litex-data-cpu-minerva | 3896ce15f5d6420f7797b1f95249f948533bf542 | [
"BSD-2-Clause"
] | null | null | null | pythondata_cpu_minerva/__init__.py | litex-hub/litex-data-cpu-minerva | 3896ce15f5d6420f7797b1f95249f948533bf542 | [
"BSD-2-Clause"
] | null | null | null | import os.path
__dir__ = os.path.split(os.path.abspath(os.path.realpath(__file__)))[0]
data_location = os.path.join(__dir__, "sources")
src = "https://github.com/lambdaconcept/minerva"
# Module version
version_str = "0.0.post260"
version_tuple = (0, 0, 260)
try:
from packaging.version import Version as V
pvers... | 26.529412 | 83 | 0.719882 | 202 | 1,353 | 4.638614 | 0.440594 | 0.01921 | 0.035219 | 0.03842 | 0.124867 | 0.124867 | 0.124867 | 0.124867 | 0 | 0 | 0 | 0.117181 | 0.161123 | 1,353 | 50 | 84 | 27.06 | 0.70837 | 0.080562 | 0 | 0.307692 | 0 | 0 | 0.309061 | 0.082524 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025641 | false | 0.076923 | 0.179487 | 0 | 0.230769 | 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 |
3c0dac01937088c28952c4c1e01fa4a3c19fcaa9 | 3,266 | py | Python | Gan/gan.py | caiyueliang/CarClassification | a8d8051085c4e66ed3ed67e56360a515c9762cd5 | [
"Apache-2.0"
] | null | null | null | Gan/gan.py | caiyueliang/CarClassification | a8d8051085c4e66ed3ed67e56360a515c9762cd5 | [
"Apache-2.0"
] | null | null | null | Gan/gan.py | caiyueliang/CarClassification | a8d8051085c4e66ed3ed67e56360a515c9762cd5 | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
from argparse import ArgumentParser
import os
import model_train
from torchvision import models
def parse_argvs():
parser = ArgumentParser(description='GAN')
parser.add_argument('--data_path', type=str, help='data_path', default='./data')
parser.add_argument('--num_workers', type=int, help... | 48.029412 | 111 | 0.709124 | 460 | 3,266 | 4.797826 | 0.256522 | 0.11826 | 0.22338 | 0.040779 | 0.301314 | 0.141368 | 0.090621 | 0.090621 | 0.090621 | 0.090621 | 0 | 0.019868 | 0.121555 | 3,266 | 67 | 112 | 48.746269 | 0.74939 | 0.105328 | 0 | 0 | 0 | 0 | 0.260481 | 0.033677 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02381 | false | 0 | 0.095238 | 0 | 0.142857 | 0.02381 | 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 |
3c1079153ceb5f7b4146c5df6cbab9e874e7d7f4 | 854 | py | Python | Modulo 2/ex068.py | Werberty/Curso-em-Video-Python3 | 24c0299edd635fb9c2db2ecbaf8532d292f92d49 | [
"MIT"
] | 1 | 2022-03-06T11:37:47.000Z | 2022-03-06T11:37:47.000Z | Modulo 2/ex068.py | Werberty/Curso-em-Video-Python3 | 24c0299edd635fb9c2db2ecbaf8532d292f92d49 | [
"MIT"
] | null | null | null | Modulo 2/ex068.py | Werberty/Curso-em-Video-Python3 | 24c0299edd635fb9c2db2ecbaf8532d292f92d49 | [
"MIT"
] | null | null | null | from random import randint
print('-=-'*10)
print('JOGO DO PAR OU IMPAR')
cont = 0
while True:
print('-=-' * 10)
n = int(input('Digite um valor: '))
op = str(input('Par ou impar? [P/I] ')).upper().strip()[0]
ia = randint(0, 10)
res = n + ia
print('-'*30)
print(f'Você jogou {n} e o computador ... | 25.878788 | 73 | 0.480094 | 114 | 854 | 3.596491 | 0.473684 | 0.05122 | 0.058537 | 0.04878 | 0.302439 | 0.239024 | 0.239024 | 0.239024 | 0.239024 | 0.239024 | 0 | 0.040422 | 0.333724 | 854 | 32 | 74 | 26.6875 | 0.680141 | 0 | 0 | 0.451613 | 0 | 0 | 0.304807 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.032258 | 0 | 0.032258 | 0.451613 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
3c11fb38e2dcb32d635011cf74ded4f173fac7e7 | 539 | py | Python | chpt6/Pentagonal_numbers.py | GDG-Buea/learn-python | 9dfe8caa4b57489cf4249bf7e64856062a0b93c2 | [
"Apache-2.0"
] | null | null | null | chpt6/Pentagonal_numbers.py | GDG-Buea/learn-python | 9dfe8caa4b57489cf4249bf7e64856062a0b93c2 | [
"Apache-2.0"
] | 2 | 2018-05-21T09:39:00.000Z | 2018-05-27T15:59:15.000Z | chpt6/Pentagonal_numbers.py | GDG-Buea/learn-python | 9dfe8caa4b57489cf4249bf7e64856062a0b93c2 | [
"Apache-2.0"
] | 2 | 2018-05-19T14:59:56.000Z | 2018-05-19T15:25:48.000Z | #
# This program is a function that displays the first 100 pentagonal numbers with 10 numbers on each line.
# A pentagonal number is defined as n(3n - 1)/2 for n = 1, 2, c , and so on.
# So, the first few numbers are 1, 5, 12, 22, ....
def get_pentagonal_number(n):
pentagonal_number = round(n * (3 * n - 1) / 2)... | 23.434783 | 105 | 0.595547 | 87 | 539 | 3.62069 | 0.563218 | 0.253968 | 0.019048 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.074935 | 0.282004 | 539 | 22 | 106 | 24.5 | 0.739018 | 0.423006 | 0 | 0 | 0 | 0 | 0.013072 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0 | 0 | 0.181818 | 0.181818 | 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 |
3c17265b394405d74fda0b7ba580609c53a824f6 | 846 | py | Python | log.py | bsha3l173/NetDiagBot | c76d00a34ae4587942010b2370dd0ac35a83bcdd | [
"Unlicense"
] | null | null | null | log.py | bsha3l173/NetDiagBot | c76d00a34ae4587942010b2370dd0ac35a83bcdd | [
"Unlicense"
] | null | null | null | log.py | bsha3l173/NetDiagBot | c76d00a34ae4587942010b2370dd0ac35a83bcdd | [
"Unlicense"
] | null | null | null | __author__ = 'bsha3l173'
import logging
import datetime
from conf import LOG_FILENAME
class Log():
logging.basicConfig(filename=LOG_FILENAME, level=logging.DEBUG)
def log_d(self, message, text):
last_name = ''
first_name = ''
user_name = ''
if not message.from_u... | 33.84 | 108 | 0.611111 | 107 | 846 | 4.588785 | 0.317757 | 0.13442 | 0.183299 | 0.09776 | 0.395112 | 0.240326 | 0.138493 | 0.138493 | 0.138493 | 0 | 0 | 0.011236 | 0.263593 | 846 | 24 | 109 | 35.25 | 0.776886 | 0 | 0 | 0 | 0 | 0 | 0.038977 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.166667 | 0 | 0.277778 | 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 |
3c1f8c82eeba6453a646f8492c4afe649539ab25 | 2,324 | py | Python | arraycircles.py | BastiHz/arraycircles | cf2e8ac48b099570d6b351ae84dc060263ee4e3d | [
"MIT"
] | null | null | null | arraycircles.py | BastiHz/arraycircles | cf2e8ac48b099570d6b351ae84dc060263ee4e3d | [
"MIT"
] | null | null | null | arraycircles.py | BastiHz/arraycircles | cf2e8ac48b099570d6b351ae84dc060263ee4e3d | [
"MIT"
] | null | null | null | import math
import random
import os
os.environ["PYGAME_HIDE_SUPPORT_PROMPT"] = "1"
import numpy as np
import pygame as pg
WINDOW_SIZE = (800, 600)
FPS = 60
pg.init()
window = pg.display.set_mode(WINDOW_SIZE)
clock = pg.time.Clock()
font = pg.font.SysFont("monospace", 20)
def make_circle_array(diameter, hue):
... | 27.023256 | 84 | 0.623924 | 344 | 2,324 | 4.072674 | 0.409884 | 0.028551 | 0.012848 | 0.015703 | 0.052819 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033526 | 0.255594 | 2,324 | 85 | 85 | 27.341176 | 0.776301 | 0.129948 | 0 | 0.063492 | 0 | 0 | 0.035714 | 0.023313 | 0 | 0 | 0 | 0.011765 | 0 | 1 | 0.015873 | false | 0 | 0.079365 | 0 | 0.111111 | 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 |
3c1fbd1f77839d16929ae16aa95f7765710bb079 | 1,268 | py | Python | choosy/star.py | creiht/choosy | 08c18f1480e542ee122b86a0b47a30c8e5b4017e | [
"BSD-3-Clause"
] | null | null | null | choosy/star.py | creiht/choosy | 08c18f1480e542ee122b86a0b47a30c8e5b4017e | [
"BSD-3-Clause"
] | null | null | null | choosy/star.py | creiht/choosy | 08c18f1480e542ee122b86a0b47a30c8e5b4017e | [
"BSD-3-Clause"
] | null | null | null | from flask import (
abort, Blueprint, current_app, flash, g, redirect, render_template, request,
url_for
)
import giphy_client
from werkzeug.exceptions import abort
from choosy.auth import login_required
from choosy import db
bp = Blueprint("star", __name__)
@bp.route("/stars")
@login_required
def index():
... | 26.978723 | 80 | 0.605678 | 170 | 1,268 | 4.347059 | 0.517647 | 0.040595 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011198 | 0.295741 | 1,268 | 46 | 81 | 27.565217 | 0.816349 | 0.059937 | 0 | 0.054054 | 0 | 0 | 0.074916 | 0 | 0 | 0 | 0 | 0.021739 | 0 | 1 | 0.027027 | false | 0 | 0.135135 | 0 | 0.216216 | 0.054054 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
3c21c614e14a12fda17173ca64af48d998a556ab | 2,451 | py | Python | recipes/Python/577691_Validate_ACNs_AustraliCompany/recipe-577691.py | tdiprima/code | 61a74f5f93da087d27c70b2efe779ac6bd2a3b4f | [
"MIT"
] | 2,023 | 2017-07-29T09:34:46.000Z | 2022-03-24T08:00:45.000Z | recipes/Python/577691_Validate_ACNs_AustraliCompany/recipe-577691.py | unhacker/code | 73b09edc1b9850c557a79296655f140ce5e853db | [
"MIT"
] | 32 | 2017-09-02T17:20:08.000Z | 2022-02-11T17:49:37.000Z | recipes/Python/577691_Validate_ACNs_AustraliCompany/recipe-577691.py | unhacker/code | 73b09edc1b9850c557a79296655f140ce5e853db | [
"MIT"
] | 780 | 2017-07-28T19:23:28.000Z | 2022-03-25T20:39:41.000Z | def isacn(obj):
"""isacn(string or int) -> True|False
Validate an ACN (Australian Company Number).
http://www.asic.gov.au/asic/asic.nsf/byheadline/Australian+Company+Number+(ACN)+Check+Digit
Accepts an int, or a string of digits including any leading zeroes.
Digits may be optionally separated with... | 38.904762 | 95 | 0.565075 | 389 | 2,451 | 3.539846 | 0.383033 | 0.014524 | 0.033406 | 0.014524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.267879 | 0.326805 | 2,451 | 62 | 96 | 39.532258 | 0.566667 | 0.20971 | 0 | 0 | 0 | 0 | 0.493899 | 0 | 0 | 0 | 0 | 0 | 0.047619 | 1 | 0.02381 | false | 0 | 0 | 0 | 0.047619 | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
3c2804fa00492d199e8c3aefe6c666e804514568 | 768 | py | Python | patan/utils.py | tttlh/patan | d3e5cfec085e21f963204b5c07a85cf1f029560c | [
"MIT"
] | null | null | null | patan/utils.py | tttlh/patan | d3e5cfec085e21f963204b5c07a85cf1f029560c | [
"MIT"
] | null | null | null | patan/utils.py | tttlh/patan | d3e5cfec085e21f963204b5c07a85cf1f029560c | [
"MIT"
] | 1 | 2021-03-01T08:35:34.000Z | 2021-03-01T08:35:34.000Z | # _*_ coding: utf-8 _*_
from importlib import import_module
def is_iterable(var):
return hasattr(var, '__iter__')
def to_iterable(var):
if var is None:
return []
elif is_iterable(var):
return var
else:
return [var]
def load_class_by_name(qualified_name):
last_dot = qua... | 22.588235 | 75 | 0.653646 | 102 | 768 | 4.647059 | 0.392157 | 0.109705 | 0.107595 | 0.126582 | 0.156118 | 0.156118 | 0.156118 | 0 | 0 | 0 | 0 | 0.003396 | 0.233073 | 768 | 33 | 76 | 23.272727 | 0.801358 | 0.027344 | 0 | 0.086957 | 0 | 0 | 0.053691 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173913 | false | 0 | 0.086957 | 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 |
3c2af43cd6a571a35fff3b7b22af4c58d6015098 | 3,098 | py | Python | cs673backend/api/authentication.py | MicobyteMichael/CS673ProjectBackend | 87b28c62f29630059e1906c8bf7383d814880bd0 | [
"Apache-2.0"
] | null | null | null | cs673backend/api/authentication.py | MicobyteMichael/CS673ProjectBackend | 87b28c62f29630059e1906c8bf7383d814880bd0 | [
"Apache-2.0"
] | null | null | null | cs673backend/api/authentication.py | MicobyteMichael/CS673ProjectBackend | 87b28c62f29630059e1906c8bf7383d814880bd0 | [
"Apache-2.0"
] | null | null | null | from flask import session
from flask_restful import Resource
from flask_restful.reqparse import RequestParser
from bcrypt import gensalt, hashpw
from hashlib import sha256
from hmac import new as hash_mac
from os import environ
PEPPER = environ["PEPPER"].encode("utf-8")
def hash(password, salt):
return ... | 34.422222 | 117 | 0.65042 | 405 | 3,098 | 4.866667 | 0.204938 | 0.081177 | 0.065956 | 0.106545 | 0.566717 | 0.498224 | 0.47793 | 0.47793 | 0.456621 | 0.456621 | 0 | 0.005295 | 0.207553 | 3,098 | 90 | 118 | 34.422222 | 0.797556 | 0 | 0 | 0.457143 | 0 | 0 | 0.089369 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.114286 | false | 0.185714 | 0.1 | 0.014286 | 0.328571 | 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 |
3c2db6513413d924898e189ce93d55aaff3a377a | 1,031 | py | Python | components/collector/src/source_collectors/file_source_collectors/pyupio_safety.py | Gamer1120/quality-time | f3a0d6f75cd6055d78995d37feae72bc3e837e4b | [
"Apache-2.0"
] | 1 | 2021-02-22T07:53:36.000Z | 2021-02-22T07:53:36.000Z | components/collector/src/source_collectors/file_source_collectors/pyupio_safety.py | Gamer1120/quality-time | f3a0d6f75cd6055d78995d37feae72bc3e837e4b | [
"Apache-2.0"
] | 338 | 2020-10-29T04:28:09.000Z | 2022-02-22T04:09:33.000Z | components/collector/src/source_collectors/file_source_collectors/pyupio_safety.py | dicksnel/quality-time | 4c04f8852aa97175f2bca2b5c5391b3e09b657af | [
"Apache-2.0"
] | 1 | 2022-01-06T04:07:03.000Z | 2022-01-06T04:07:03.000Z | """Pyup.io Safety metrics collector."""
from typing import Final
from base_collectors import JSONFileSourceCollector
from source_model import Entity, SourceMeasurement, SourceResponses
class PyupioSafetySecurityWarnings(JSONFileSourceCollector):
"""Pyup.io Safety collector for security warnings."""
PACKAGE... | 36.821429 | 108 | 0.682832 | 106 | 1,031 | 6.584906 | 0.490566 | 0.057307 | 0.034384 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006242 | 0.223084 | 1,031 | 27 | 109 | 38.185185 | 0.865169 | 0.078565 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
3c34f86c770e6ffff7025e5fd4715854fbee0f6d | 1,233 | py | Python | test/test_model.py | karlsimsBBC/feed-me | e2bc87aef4740c2899b332f1b4036c169b108b79 | [
"MIT"
] | null | null | null | test/test_model.py | karlsimsBBC/feed-me | e2bc87aef4740c2899b332f1b4036c169b108b79 | [
"MIT"
] | 2 | 2020-02-28T16:52:05.000Z | 2020-02-28T16:52:11.000Z | test/test_model.py | karlsimsBBC/feed-me | e2bc87aef4740c2899b332f1b4036c169b108b79 | [
"MIT"
] | null | null | null | import unittest
from unittest.mock import Mock
from unittest.mock import mock_open
from contextlib import contextmanager
class TestDocumentDB(unittest.TestCase):
def test_reads_articles(self):
db = DocumentDB()
expected = [
{'article_idx': 0},
{'article_idx': 1}
]
... | 27.4 | 56 | 0.596918 | 142 | 1,233 | 4.971831 | 0.302817 | 0.127479 | 0.109065 | 0.155807 | 0.515581 | 0.441926 | 0.388102 | 0.388102 | 0.260623 | 0.181303 | 0 | 0.009967 | 0.26764 | 1,233 | 45 | 57 | 27.4 | 0.771872 | 0 | 0 | 0.432432 | 0 | 0 | 0.132091 | 0 | 0 | 0 | 0 | 0 | 0.135135 | 0 | null | null | 0 | 0.108108 | 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 |
3c39dc3a117517ba44438eb56f648a0feefd8459 | 2,051 | py | Python | kanban.py | vtashlikovich/jira-task-analysis | 34690406243fe0b4c5f1400c5bca872923856571 | [
"MIT"
] | null | null | null | kanban.py | vtashlikovich/jira-task-analysis | 34690406243fe0b4c5f1400c5bca872923856571 | [
"MIT"
] | null | null | null | kanban.py | vtashlikovich/jira-task-analysis | 34690406243fe0b4c5f1400c5bca872923856571 | [
"MIT"
] | null | null | null | import configparser
import sys
from jiraparser import JiraJSONParser, TokenAuth
import requests
from requests.auth import AuthBase
""" Getting a list of issues connected to a board id (defined by configuration) and printing analysis information """
# read config
config = configparser.ConfigParser()
config.read("confi... | 31.075758 | 117 | 0.694783 | 219 | 2,051 | 6.502283 | 0.561644 | 0.045646 | 0.02809 | 0.033708 | 0.039326 | 0.039326 | 0 | 0 | 0 | 0 | 0 | 0.005354 | 0.1804 | 2,051 | 65 | 118 | 31.553846 | 0.841761 | 0.10824 | 0 | 0 | 0 | 0 | 0.187904 | 0.013506 | 0 | 0 | 0 | 0.015385 | 0 | 1 | 0 | false | 0 | 0.113636 | 0 | 0.113636 | 0.136364 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
3c4462f1e63b1c59a4923c8fbfbe9795c85ccd1c | 3,234 | py | Python | electionleaflets/apps/leaflets/views.py | electionleaflets/electionleaflets | 4110e96a3035c32d0b6ff3c9f832c5e003728170 | [
"MIT"
] | null | null | null | electionleaflets/apps/leaflets/views.py | electionleaflets/electionleaflets | 4110e96a3035c32d0b6ff3c9f832c5e003728170 | [
"MIT"
] | 23 | 2015-02-19T14:02:23.000Z | 2015-04-30T11:14:01.000Z | electionleaflets/apps/leaflets/views.py | electionleaflets/electionleaflets | 4110e96a3035c32d0b6ff3c9f832c5e003728170 | [
"MIT"
] | 2 | 2015-02-02T19:39:54.000Z | 2017-02-08T09:19:53.000Z | import os
from django.template import RequestContext
from django.shortcuts import render_to_response, get_object_or_404, redirect
from django.contrib.formtools.wizard.views import NamedUrlSessionWizardView
from django.core.urlresolvers import reverse
from django.conf import settings
from django.views.generic import D... | 33.6875 | 79 | 0.629252 | 346 | 3,234 | 5.708092 | 0.364162 | 0.035443 | 0.040506 | 0.021266 | 0.137722 | 0.094177 | 0 | 0 | 0 | 0 | 0 | 0.006774 | 0.269635 | 3,234 | 95 | 80 | 34.042105 | 0.829382 | 0.303649 | 0 | 0 | 0 | 0 | 0.130063 | 0.073357 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.208333 | 0.020833 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
3c44954b74ac962e577c29775c64025c256cc805 | 3,409 | py | Python | Heap/heap.py | jeremy2918/data-structures | 17685212aac38979929ca923eb2f9b989c74d07a | [
"MIT"
] | 1 | 2021-12-14T19:57:28.000Z | 2021-12-14T19:57:28.000Z | Heap/heap.py | jeremy2918/data-structures | 17685212aac38979929ca923eb2f9b989c74d07a | [
"MIT"
] | null | null | null | Heap/heap.py | jeremy2918/data-structures | 17685212aac38979929ca923eb2f9b989c74d07a | [
"MIT"
] | null | null | null | # Min Heap Implementation
class Heap():
def __init__(self, initial_data=[]):
self.data = []
if isinstance(initial_data, int):
self.data = [initial_data]
elif isinstance(initial_data, list):
self.data = list(initial_data)
# Returns the number of element in the he... | 29.387931 | 78 | 0.566442 | 466 | 3,409 | 4.087983 | 0.259657 | 0.096588 | 0.020997 | 0.016798 | 0.151181 | 0.094488 | 0.094488 | 0.043045 | 0.043045 | 0.043045 | 0 | 0.012472 | 0.341449 | 3,409 | 115 | 79 | 29.643478 | 0.83608 | 0.271634 | 0 | 0.114286 | 0 | 0 | 0.040244 | 0.00935 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0 | 0.1 | 0.385714 | 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 |
3c556dec90e23792b76acc982f2031b9cf0acc91 | 27,754 | py | Python | generate_hosp_plot.py | ChunaraLab/medshifts | cd8a4ac415e7ef15b6e40a8699b08cd468ea9e4b | [
"MIT"
] | 1 | 2021-11-25T12:26:16.000Z | 2021-11-25T12:26:16.000Z | generate_hosp_plot.py | ChunaraLab/medshifts | cd8a4ac415e7ef15b6e40a8699b08cd468ea9e4b | [
"MIT"
] | null | null | null | generate_hosp_plot.py | ChunaraLab/medshifts | cd8a4ac415e7ef15b6e40a8699b08cd468ea9e4b | [
"MIT"
] | null | null | null | '''
Modifed from code by Stephan Rabanser https://github.com/steverab/failing-loudly
Plot test results across hospitals
Usage:
# region
python generate_hosp_plot.py --datset eicu --path orig --test_type multiv --num_hosp 4 --random_runs 100 --min_samples 5000 --sens_attr race --group --group_type regions --limit_sam... | 59.430407 | 269 | 0.646285 | 3,594 | 27,754 | 4.629382 | 0.121592 | 0.033658 | 0.054093 | 0.006732 | 0.624354 | 0.581801 | 0.525905 | 0.481368 | 0.390011 | 0.355031 | 0 | 0.017824 | 0.231822 | 27,754 | 467 | 270 | 59.430407 | 0.76257 | 0.219572 | 0 | 0.232877 | 1 | 0 | 0.094942 | 0.050302 | 0.003425 | 0 | 0 | 0.002141 | 0 | 1 | 0 | false | 0 | 0.058219 | 0 | 0.058219 | 0.027397 | 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 |
3c583e3a31b0df8d7782674e1b493230037e47ae | 780 | py | Python | setup.py | greschd/aiida-pytest-mock-codes | 0d104fbad481c6dd2e5a0725e65dc2208fb8058b | [
"MIT"
] | 2 | 2020-02-27T16:52:54.000Z | 2021-07-17T09:07:28.000Z | setup.py | greschd/aiida-pytest-mock-codes | 0d104fbad481c6dd2e5a0725e65dc2208fb8058b | [
"MIT"
] | 31 | 2020-02-27T10:51:27.000Z | 2022-03-04T11:24:26.000Z | setup.py | greschd/aiida-pytest-mock-codes | 0d104fbad481c6dd2e5a0725e65dc2208fb8058b | [
"MIT"
] | 5 | 2020-02-27T13:31:42.000Z | 2022-01-31T18:49:06.000Z | #!/usr/bin/env python
"""Set up aiida-testing package."""
import os
import warnings
import setuptools
from setuptools.config import read_configuration
try:
import fastentrypoints # NOQA # pylint: disable=unused-import
except ImportError:
warnings.warn(
"The 'fastentrypoints' module could not be loa... | 30 | 89 | 0.744872 | 97 | 780 | 5.690722 | 0.56701 | 0.188406 | 0.054348 | 0.094203 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138462 | 780 | 25 | 90 | 31.2 | 0.821429 | 0.111538 | 0 | 0 | 0 | 0 | 0.221898 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.315789 | 0 | 0.315789 | 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 |
3c59b7068b704fe1f1c47ee7e6a0b30a676e031e | 6,891 | py | Python | sdk/python/pulumi_aws/dms/replication_task.py | pulumi-bot/pulumi-aws | 756c60135851e015232043c8206567101b8ebd85 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_aws/dms/replication_task.py | pulumi-bot/pulumi-aws | 756c60135851e015232043c8206567101b8ebd85 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_aws/dms/replication_task.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 ReplicationTask(pulumi.CustomResource):
"""
Provides a DMS (Data Migration Service) ... | 49.57554 | 288 | 0.689015 | 771 | 6,891 | 5.819715 | 0.193256 | 0.073546 | 0.053934 | 0.064185 | 0.307778 | 0.217294 | 0.169824 | 0.057499 | 0.057499 | 0.057499 | 0 | 0.00019 | 0.237992 | 6,891 | 138 | 289 | 49.934783 | 0.854313 | 0.057611 | 0 | 0 | 1 | 0 | 0.26542 | 0.04761 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023256 | false | 0 | 0.023256 | 0 | 0.05814 | 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 |
3c5b0b5866a106b628ab68aee24923fb36a181b9 | 8,674 | py | Python | pymap/interfaces/message.py | BoniLindsley/pymap | b3190d20799a6d342888e51bfc55cdfcbfe3ed26 | [
"MIT"
] | 18 | 2015-06-04T21:09:37.000Z | 2022-03-04T08:14:31.000Z | pymap/interfaces/message.py | BoniLindsley/pymap | b3190d20799a6d342888e51bfc55cdfcbfe3ed26 | [
"MIT"
] | 114 | 2018-10-17T23:11:00.000Z | 2022-03-19T16:59:16.000Z | pymap/interfaces/message.py | BoniLindsley/pymap | b3190d20799a6d342888e51bfc55cdfcbfe3ed26 | [
"MIT"
] | 8 | 2015-02-03T19:30:52.000Z | 2021-11-20T12:47:03.000Z |
from __future__ import annotations
from abc import abstractmethod
from collections.abc import Collection, Sequence
from datetime import datetime
from typing import TypeVar, Protocol
from ..bytes import Writeable
from ..flags import SessionFlags
from ..parsing.response.fetch import EnvelopeStructure, BodyStructure
fr... | 28.071197 | 79 | 0.613212 | 1,012 | 8,674 | 5.197628 | 0.228261 | 0.060837 | 0.031939 | 0.020532 | 0.491255 | 0.444297 | 0.436502 | 0.413308 | 0.39962 | 0.376806 | 0 | 0.011476 | 0.286719 | 8,674 | 308 | 80 | 28.162338 | 0.838694 | 0.475329 | 0 | 0.695652 | 0 | 0 | 0.035073 | 0.005982 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217391 | false | 0 | 0.078261 | 0 | 0.347826 | 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 |
3c5e4a066c2e5a426373071cec77c0e0b8244f50 | 10,040 | py | Python | dvrip/message.py | alexshpilkin/xmeye | e76df1d091d85aa6cffb5c332ba6ae419ac9ac89 | [
"CC0-1.0"
] | 34 | 2019-05-04T06:06:17.000Z | 2021-12-06T03:28:40.000Z | dvrip/message.py | alexshpilkin/xmeye | e76df1d091d85aa6cffb5c332ba6ae419ac9ac89 | [
"CC0-1.0"
] | 9 | 2019-06-17T09:37:50.000Z | 2020-10-24T22:36:29.000Z | dvrip/message.py | alexshpilkin/xmeye | e76df1d091d85aa6cffb5c332ba6ae419ac9ac89 | [
"CC0-1.0"
] | 21 | 2019-06-17T09:34:27.000Z | 2022-03-22T18:14:22.000Z | from abc import abstractmethod
from datetime import datetime, timedelta
from enum import Enum, unique
from io import RawIOBase
from json import dumps, load
from string import hexdigits
from typing import ClassVar, Generator, Generic, Iterable, List, Optional, \
Sequence, Type, TypeVar, Union, cast
f... | 30.892308 | 112 | 0.684363 | 1,343 | 10,040 | 4.99032 | 0.265823 | 0.014623 | 0.005372 | 0.014921 | 0.153238 | 0.101164 | 0.063265 | 0.031632 | 0.031632 | 0.020591 | 0 | 0.03093 | 0.182072 | 10,040 | 324 | 113 | 30.987654 | 0.785192 | 0.054283 | 0 | 0.150376 | 0 | 0 | 0.150539 | 0 | 0 | 0 | 0 | 0.003086 | 0.018797 | 1 | 0.120301 | false | 0.015038 | 0.048872 | 0.056391 | 0.556391 | 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 |
3c6c95883a2948952fd4f838b95cb8573feed183 | 381 | py | Python | Python/DS/tuple.py | salikansari6/interview-prep | 17e98fbb15f87c9f2ecd293896e613f5fe01d3a3 | [
"MIT"
] | 1 | 2021-08-23T18:18:41.000Z | 2021-08-23T18:18:41.000Z | Python/DS/tuple.py | salikansari6/interview-prep | 17e98fbb15f87c9f2ecd293896e613f5fe01d3a3 | [
"MIT"
] | null | null | null | Python/DS/tuple.py | salikansari6/interview-prep | 17e98fbb15f87c9f2ecd293896e613f5fe01d3a3 | [
"MIT"
] | 1 | 2021-08-24T15:40:15.000Z | 2021-08-24T15:40:15.000Z | # Tuples are immutable
print("============ tuples ============")
print()
tuples = (12345, 54321, 'hello!')
print(tuples)
u = tuples, (1, 2, 3, 4, 5)
print(u)
# The statement t = 12345, 54321, 'hello!' is an example of tuple packing:
# the values 12345, 54321 and 'hello!'
# are packed together in a tuple. The revers... | 22.411765 | 74 | 0.627297 | 59 | 381 | 4.050847 | 0.59322 | 0.138075 | 0.125523 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.112179 | 0.181102 | 381 | 16 | 75 | 23.8125 | 0.653846 | 0.527559 | 0 | 0 | 0 | 0 | 0.217143 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
3c6cfcc4cc77979d142a645197f0b512545357ec | 4,304 | py | Python | modules/labelfusion/imagecapture.py | hz-ants/LabelFusion-docker2- | 8dc116064a1bdcfa2c2dd814580b5f43d46c6f40 | [
"BSD-3-Clause"
] | 313 | 2017-07-16T02:00:16.000Z | 2022-03-31T11:00:10.000Z | modules/labelfusion/imagecapture.py | hz-ants/LabelFusion-docker2- | 8dc116064a1bdcfa2c2dd814580b5f43d46c6f40 | [
"BSD-3-Clause"
] | 94 | 2017-07-16T19:59:06.000Z | 2022-03-30T08:14:22.000Z | modules/labelfusion/imagecapture.py | hz-ants/LabelFusion-docker2- | 8dc116064a1bdcfa2c2dd814580b5f43d46c6f40 | [
"BSD-3-Clause"
] | 87 | 2017-07-14T16:01:54.000Z | 2022-03-23T17:33:47.000Z | """
This class consumes and lcmlog, extracts the images and saves them
to png
"""
import os
# director imports
import director.vtkAll as vtk
from director import filterUtils
from director import lcmUtils
from director import cameraview
import bot_core as lcmbotcore
from . import utils
class ImageCapture(object):
... | 32.360902 | 137 | 0.657528 | 417 | 4,304 | 6.719424 | 0.359712 | 0.02748 | 0.029979 | 0.026767 | 0.105639 | 0.105639 | 0.105639 | 0.105639 | 0.055675 | 0 | 0 | 0.00063 | 0.262546 | 4,304 | 132 | 138 | 32.606061 | 0.882168 | 0.053671 | 0 | 0.12 | 0 | 0 | 0.062482 | 0.008062 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.093333 | null | null | 0.04 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
3c71ada98a6d21e9df0e6b1ca11604cd29f59b82 | 2,949 | py | Python | vnpy/app/influx_recorder/ui/widget.py | hadrianl/vnpy | f197df974eb6d3a0fddb81b591dd98d3d102a4a2 | [
"MIT"
] | 5 | 2019-05-24T05:19:55.000Z | 2020-07-29T13:21:49.000Z | vnpy/app/influx_recorder/ui/widget.py | hadrianl/vnpy | f197df974eb6d3a0fddb81b591dd98d3d102a4a2 | [
"MIT"
] | null | null | null | vnpy/app/influx_recorder/ui/widget.py | hadrianl/vnpy | f197df974eb6d3a0fddb81b591dd98d3d102a4a2 | [
"MIT"
] | 2 | 2019-07-01T02:14:04.000Z | 2020-07-29T13:21:53.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2020/10/28 0028 11:34
# @Author : Hadrianl
# @File : widget
from vnpy.event import EventEngine, Event
from vnpy.trader.engine import MainEngine
from vnpy.trader.ui import QtWidgets, QtCore
from ..engine import APP_NAME
class InfluxRecorder(QtWidgets.QW... | 31.709677 | 84 | 0.665649 | 340 | 2,949 | 5.564706 | 0.279412 | 0.033827 | 0.059197 | 0.081395 | 0.136364 | 0.105708 | 0.069767 | 0 | 0 | 0 | 0 | 0.016115 | 0.221431 | 2,949 | 92 | 85 | 32.054348 | 0.807927 | 0.049847 | 0 | 0.034483 | 0 | 0 | 0.02133 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0.103448 | 0.068966 | 0 | 0.155172 | 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 |
3c761056de60be7b447d3aeb8075e25a0bb554cd | 1,278 | py | Python | nodaysoff/__init__.py | attila5287/no_days_off | 2482b90b841032976002a3888aa546bb7070a46c | [
"MIT"
] | 1 | 2019-12-28T05:25:01.000Z | 2019-12-28T05:25:01.000Z | nodaysoff/__init__.py | attila5287/no_days_off | 2482b90b841032976002a3888aa546bb7070a46c | [
"MIT"
] | 6 | 2019-12-28T01:12:25.000Z | 2022-03-12T00:10:08.000Z | nodaysoff/__init__.py | attila5287/no_days_off | 2482b90b841032976002a3888aa546bb7070a46c | [
"MIT"
] | null | null | null | from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_bcrypt import Bcrypt
from flask_login import LoginManager
from flask_mail import Mail
from nodaysoff.config import Config
# from flask_session import Session
db = SQLAlchemy()
bcrypt = Bcrypt()
login_manager = LoginManager()
login_ma... | 30.428571 | 59 | 0.739437 | 165 | 1,278 | 5.527273 | 0.266667 | 0.099781 | 0.131579 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.186228 | 1,278 | 41 | 60 | 31.170732 | 0.876923 | 0.08216 | 0 | 0 | 0 | 0 | 0.015972 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030303 | false | 0.030303 | 0.363636 | 0 | 0.424242 | 0.181818 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
3c768b97cd3aef1e83be11569f9ef43e98211953 | 695 | py | Python | examples/lobpcg_test.py | Forgotten/modelscf | 2cf0fe5210fadcee7da70d6bf035336c38d150db | [
"BSD-3-Clause-LBNL"
] | 1 | 2021-09-22T21:48:02.000Z | 2021-09-22T21:48:02.000Z | examples/lobpcg_test.py | Forgotten/modelscf | 2cf0fe5210fadcee7da70d6bf035336c38d150db | [
"BSD-3-Clause-LBNL"
] | 2 | 2018-01-19T18:46:35.000Z | 2019-04-09T22:59:46.000Z | examples/lobpcg_test.py | Forgotten/modelscf | 2cf0fe5210fadcee7da70d6bf035336c38d150db | [
"BSD-3-Clause-LBNL"
] | 6 | 2018-01-19T18:34:12.000Z | 2018-04-06T04:13:03.000Z | # scrip to test the lobpcg_sep eigenvalue solver
include("../src/lobpcg_sep.jl")
using LinearAlgebra
Ns = 100
k = 5 # number of eigenvectors
A = sqrt(Ns)*Diagonal(ones(Ns)) + rand(Ns, Ns)
A = 0.5*(A + A')
(e, X) = eigen(A)
# orthonormal starting guess of the eigenvectors
X0 = qr(rand(Ns, k + 6)).Q[:, 1:k+6]
#comp... | 24.821429 | 81 | 0.667626 | 122 | 695 | 3.770492 | 0.5 | 0.078261 | 0.043478 | 0.052174 | 0.282609 | 0.226087 | 0.226087 | 0.226087 | 0.226087 | 0 | 0 | 0.03125 | 0.171223 | 695 | 27 | 82 | 25.740741 | 0.767361 | 0.31223 | 0 | 0 | 0 | 0 | 0.216561 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.153846 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3c797bad94039032f3ec8a0956509b976eb165dd | 1,372 | py | Python | app/core/migrations/0007_order.py | ifiokeyo/RecipeAPI | 8ec8f8e4ca868a9c9cd97d534dc6f42a4fa14974 | [
"MIT"
] | null | null | null | app/core/migrations/0007_order.py | ifiokeyo/RecipeAPI | 8ec8f8e4ca868a9c9cd97d534dc6f42a4fa14974 | [
"MIT"
] | null | null | null | app/core/migrations/0007_order.py | ifiokeyo/RecipeAPI | 8ec8f8e4ca868a9c9cd97d534dc6f42a4fa14974 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.6 on 2019-11-02 09:32
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import uuid
class Migration(migrations.Migration):
dependencies = [
('core', '0006_auto_20191102_0706'),
]
operations = [
migrations... | 45.733333 | 159 | 0.618076 | 157 | 1,372 | 5.280255 | 0.579618 | 0.038601 | 0.050663 | 0.079614 | 0.241255 | 0.173703 | 0.173703 | 0.173703 | 0.173703 | 0.173703 | 0 | 0.032377 | 0.212099 | 1,372 | 29 | 160 | 47.310345 | 0.734505 | 0.032799 | 0 | 0 | 1 | 0 | 0.146415 | 0.017358 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.173913 | 0 | 0.304348 | 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 |
3c7b6e7f1356932087387fb61f2acb5391ed0b70 | 943 | py | Python | src/data/make_atac.py | mguo123/pan_omics | e1cacd543635b398fb08c0b31d08fa6b7c389658 | [
"MIT"
] | null | null | null | src/data/make_atac.py | mguo123/pan_omics | e1cacd543635b398fb08c0b31d08fa6b7c389658 | [
"MIT"
] | null | null | null | src/data/make_atac.py | mguo123/pan_omics | e1cacd543635b398fb08c0b31d08fa6b7c389658 | [
"MIT"
] | null | null | null | """
process_atac.py
Margaret Guo
04/15/2020
footprinting (.bed) --> csv)
notebooks
- make_hichip_df-withsnps-cancer-only
"""
#### FIX FOR HOCO
def footprinting_to_df(footprinting_file):
footprinting_df = pd.read_table(footprinting_file,header=None)
footprinting_df.columns = ['chr', 'start', 'end', 'motif... | 29.46875 | 104 | 0.69035 | 138 | 943 | 4.492754 | 0.478261 | 0.077419 | 0.025806 | 0.041935 | 0.119355 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015971 | 0.136797 | 943 | 31 | 105 | 30.419355 | 0.7457 | 0.165429 | 0 | 0 | 0 | 0 | 0.086452 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.285714 | 0.428571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
3c7b9bebae1fcd81af0109ae86287f833fb440e9 | 834 | py | Python | waimai/libs/login.py | xucheng11/test | 2987d34823825798bffac3cfb30cadab42dae998 | [
"MulanPSL-1.0"
] | null | null | null | waimai/libs/login.py | xucheng11/test | 2987d34823825798bffac3cfb30cadab42dae998 | [
"MulanPSL-1.0"
] | null | null | null | waimai/libs/login.py | xucheng11/test | 2987d34823825798bffac3cfb30cadab42dae998 | [
"MulanPSL-1.0"
] | null | null | null | """
-------------------------------------------------
# @Project :外卖系统
# @File :login
# @Date :2021/8/1 18:16
# @Author :小成
# @Email :1224069978
# @Software :PyCharm
-------------------------------------------------
"""
import hashlib,copy,requests
from conf.host import *
def get_md5(password):
md5 = ... | 25.272727 | 55 | 0.52518 | 90 | 834 | 4.755556 | 0.588889 | 0.028037 | 0.060748 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041348 | 0.217026 | 834 | 33 | 56 | 25.272727 | 0.614089 | 0.269784 | 0 | 0 | 0 | 0 | 0.098007 | 0.034884 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0.157895 | 0.105263 | 0 | 0.421053 | 0.105263 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
3c8d3ed266d844941e1c8f372146b0d80fbb53f5 | 1,491 | py | Python | fixation/configuration.py | deepy/fix-template | 3f9ce0a74712e9e195c392e0104e7dc8a6a575f5 | [
"MIT"
] | null | null | null | fixation/configuration.py | deepy/fix-template | 3f9ce0a74712e9e195c392e0104e7dc8a6a575f5 | [
"MIT"
] | 9 | 2018-05-10T19:04:03.000Z | 2018-06-09T18:10:06.000Z | fixation/configuration.py | deepy/fixation | 3f9ce0a74712e9e195c392e0104e7dc8a6a575f5 | [
"MIT"
] | null | null | null | from fixation.models import get_id, Message, MsgContent, Component, Field, Enum
import os
class Configuration:
@staticmethod
def fiximate(base_dir):
return Configuration(base_dir)
def __init__(self, base_dir, messages='messages', fields='fields', components='components'):
self.base_dir =... | 35.5 | 112 | 0.627096 | 175 | 1,491 | 5.137143 | 0.245714 | 0.062291 | 0.061179 | 0.046719 | 0.265851 | 0.179088 | 0.179088 | 0.103448 | 0 | 0 | 0 | 0 | 0.244802 | 1,491 | 41 | 113 | 36.365854 | 0.798401 | 0 | 0 | 0.121212 | 0 | 0 | 0.052349 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.151515 | false | 0 | 0.060606 | 0.060606 | 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 |
3c8f07d1d3e0d5bb32a801e512cab31d3aca91cc | 134 | py | Python | LISTAS/Valores-unicos-em-uma-Lista-1/main.py | lucasf5/Python | c5649121e2af42922e2d9c19cec98322e132bdab | [
"MIT"
] | 1 | 2021-09-28T13:11:56.000Z | 2021-09-28T13:11:56.000Z | LISTAS/Valores-unicos-em-uma-Lista-1/main.py | lucasf5/Python | c5649121e2af42922e2d9c19cec98322e132bdab | [
"MIT"
] | null | null | null | LISTAS/Valores-unicos-em-uma-Lista-1/main.py | lucasf5/Python | c5649121e2af42922e2d9c19cec98322e132bdab | [
"MIT"
] | null | null | null | lista = []
x = 0
while x != 999:
x = int(input('Numero: '))
if x not in lista:
lista.append(x)
lista.sort()
print(lista)
| 11.166667 | 28 | 0.559701 | 22 | 134 | 3.409091 | 0.636364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040404 | 0.261194 | 134 | 12 | 29 | 11.166667 | 0.717172 | 0 | 0 | 0 | 0 | 0 | 0.059259 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.125 | 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 |
3c9b6cb2f965c39ce2408034c9338f67c659fa02 | 403 | py | Python | Python/Basic Data Types/finding-the-percentage.py | mateusnr/hackerrank-solutions | 2fa60bae480d8afb46e3d99929707a7d9d92858f | [
"CC0-1.0"
] | 1 | 2015-08-01T04:03:47.000Z | 2015-08-01T04:03:47.000Z | Python/Basic Data Types/finding-the-percentage.py | mateusnr/hackerrank-solutions | 2fa60bae480d8afb46e3d99929707a7d9d92858f | [
"CC0-1.0"
] | null | null | null | Python/Basic Data Types/finding-the-percentage.py | mateusnr/hackerrank-solutions | 2fa60bae480d8afb46e3d99929707a7d9d92858f | [
"CC0-1.0"
] | 4 | 2020-05-04T15:12:21.000Z | 2021-02-18T11:58:30.000Z | n = int(input()) # takes the number of arguments
mdict = {}
for i in range(0,n):
grades = input().split(" ") # self explanatory
scores = list(map(float, grades[1:])) # since the first element from the list grades is the name of the student
mdict[grades[0]] = sum(scores)/float(len(scores)) # the key is t... | 50.375 | 120 | 0.665012 | 66 | 403 | 4.060606 | 0.575758 | 0.05597 | 0.067164 | 0.08209 | 0.156716 | 0.156716 | 0 | 0 | 0 | 0 | 0 | 0.012346 | 0.19603 | 403 | 8 | 121 | 50.375 | 0.814815 | 0.451613 | 0 | 0 | 0 | 0 | 0.023041 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3c9c7350a4efa3be4f373180a4fc5ceaa1d748e4 | 2,764 | py | Python | src/6_ZigZagConversion.py | chenbin11200/AlgorithmInPython | 222780f14afdafc4c7d0047b6f1477bd0b0ecf0f | [
"MIT"
] | null | null | null | src/6_ZigZagConversion.py | chenbin11200/AlgorithmInPython | 222780f14afdafc4c7d0047b6f1477bd0b0ecf0f | [
"MIT"
] | null | null | null | src/6_ZigZagConversion.py | chenbin11200/AlgorithmInPython | 222780f14afdafc4c7d0047b6f1477bd0b0ecf0f | [
"MIT"
] | null | null | null | class Solution(object):
def convert(self, s, numRows):
"""
:type s: str
:type numRows: int
:rtype: str
"""
evenColumnIndex = True
result = []
stringLength = len(s)
if numRows >= stringLength or numRows == 1:
return s
fullL... | 27.098039 | 79 | 0.45152 | 265 | 2,764 | 4.709434 | 0.222642 | 0.011218 | 0.038462 | 0.048077 | 0.528846 | 0.503205 | 0.423077 | 0.423077 | 0.423077 | 0.423077 | 0 | 0.026104 | 0.459479 | 2,764 | 102 | 80 | 27.098039 | 0.809237 | 0.026773 | 0 | 0.617647 | 0 | 0 | 0.001231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.014706 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b1bbf9e9296a7bbda869b9c7e588aab147399325 | 1,507 | py | Python | groundstation/proto/object_list_pb2.py | richo/groundstation | 7ed48dd355051ee6b71164fc801e3893c09d11db | [
"MIT"
] | 26 | 2015-06-18T20:17:07.000Z | 2019-09-26T09:55:35.000Z | groundstation/proto/object_list_pb2.py | richo/groundstation | 7ed48dd355051ee6b71164fc801e3893c09d11db | [
"MIT"
] | null | null | null | groundstation/proto/object_list_pb2.py | richo/groundstation | 7ed48dd355051ee6b71164fc801e3893c09d11db | [
"MIT"
] | 5 | 2015-07-20T01:52:47.000Z | 2017-01-08T09:54:07.000Z | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: groundstation/proto/object_list.proto
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import descriptor_pb2
# @@protoc_in... | 25.982759 | 114 | 0.760451 | 177 | 1,507 | 6.19774 | 0.451977 | 0.036463 | 0.065634 | 0.087511 | 0.152233 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015279 | 0.131387 | 1,507 | 57 | 115 | 26.438596 | 0.822765 | 0.14864 | 0 | 0.078947 | 1 | 0.026316 | 0.151135 | 0.112764 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.105263 | 0 | 0.184211 | 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 |
b1c3d6bce2bd16b269bea21fd537024f6377ca87 | 779 | py | Python | utils/management/commands/report_utils/msg_counts.py | tperrier/mwachx | 94616659dc29843e661b2ecc9a2e7f1d4e81b5a4 | [
"Apache-2.0"
] | 3 | 2015-05-27T14:35:49.000Z | 2016-02-26T21:04:32.000Z | utils/management/commands/report_utils/msg_counts.py | tperrier/mwachx | 94616659dc29843e661b2ecc9a2e7f1d4e81b5a4 | [
"Apache-2.0"
] | 375 | 2015-01-31T10:08:34.000Z | 2021-06-10T19:44:21.000Z | utils/management/commands/report_utils/msg_counts.py | tperrier/mwachx | 94616659dc29843e661b2ecc9a2e7f1d4e81b5a4 | [
"Apache-2.0"
] | 6 | 2016-01-10T19:52:41.000Z | 2020-06-15T22:07:24.000Z | import collections
from django.db import models
import contacts.models as cont
def print_report(parser):
parser.print_header('Message Counts By Auto Tag')
system_msgs = cont.Message.objects.filter(is_system=True).exclude(auto='')
groups = system_msgs.order_by().values('auto').annotate(count=models.Cou... | 29.961538 | 93 | 0.653402 | 113 | 779 | 4.362832 | 0.433628 | 0.073022 | 0.024341 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014173 | 0.184852 | 779 | 25 | 94 | 31.16 | 0.762205 | 0 | 0 | 0 | 0 | 0 | 0.116816 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1875 | 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 |
b1c3f31c631276e9ba4df0e85896052a590bb06f | 942 | py | Python | leetcode/medium/137-Single_number_II.py | shubhamoli/practice | 5a24fdeb6e5f43b821ef0510fe3b343ddda18f22 | [
"MIT"
] | 1 | 2020-02-25T10:32:27.000Z | 2020-02-25T10:32:27.000Z | leetcode/medium/137-Single_number_II.py | shubhamoli/practice | 5a24fdeb6e5f43b821ef0510fe3b343ddda18f22 | [
"MIT"
] | null | null | null | leetcode/medium/137-Single_number_II.py | shubhamoli/practice | 5a24fdeb6e5f43b821ef0510fe3b343ddda18f22 | [
"MIT"
] | null | null | null | """
Leetcode #137
"""
from typing import List
from collections import Counter
class Solution:
# linear but extra memory
def singleNumber(self, nums: List[int]) -> int:
if not nums:
return None
# O(n) operation
store = Counter(nums)
for i in nums:
... | 19.625 | 65 | 0.541401 | 125 | 942 | 3.968 | 0.336 | 0.024194 | 0.209677 | 0.032258 | 0.395161 | 0.314516 | 0.314516 | 0.314516 | 0.149194 | 0.149194 | 0 | 0.057508 | 0.335456 | 942 | 47 | 66 | 20.042553 | 0.734824 | 0.056263 | 0 | 0.269231 | 0 | 0 | 0.009132 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 1 | 0.076923 | false | 0 | 0.076923 | 0 | 0.384615 | 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 |
b1c59e2da37dca10b24d9fc1fc1c500ca912a5d8 | 339 | py | Python | setup.py | elcolumbio/cctable | 798c46a833cb861d9e80cc52ab81cfc859c19d5e | [
"Apache-2.0"
] | null | null | null | setup.py | elcolumbio/cctable | 798c46a833cb861d9e80cc52ab81cfc859c19d5e | [
"Apache-2.0"
] | null | null | null | setup.py | elcolumbio/cctable | 798c46a833cb861d9e80cc52ab81cfc859c19d5e | [
"Apache-2.0"
] | null | null | null | from setuptools import setup
setup(name='cctable',
version='0.3',
description='Frontend visualizing accouting data.',
url='github.com/elcolumbio/cctable',
author='Florian Benkö',
author_email='f.benkoe@innotrade24.de',
license='Apache License, Version 2.0 (the "License")',
pac... | 30.818182 | 60 | 0.666667 | 39 | 339 | 5.769231 | 0.794872 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021818 | 0.188791 | 339 | 10 | 61 | 33.9 | 0.796364 | 0 | 0 | 0 | 0 | 0 | 0.474926 | 0.153392 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.111111 | 0 | 0.111111 | 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 |
b1c8b03e6d7fe1d0aa211ed21f9c71de064b475d | 2,685 | py | Python | scoff/misc/textx.py | brunosmmm/scoff | e1a0b5f98dd9e60f41f3f7cfcda9038ffd80e138 | [
"MIT"
] | null | null | null | scoff/misc/textx.py | brunosmmm/scoff | e1a0b5f98dd9e60f41f3f7cfcda9038ffd80e138 | [
"MIT"
] | 1 | 2020-03-20T13:57:52.000Z | 2021-03-11T17:25:25.000Z | scoff/misc/textx.py | brunosmmm/scoff | e1a0b5f98dd9e60f41f3f7cfcda9038ffd80e138 | [
"MIT"
] | null | null | null | """Auto-generate custom TextX AST classes."""
import re
try:
import black
except ImportError:
black = None
GRAMMAR_RULE_REGEX = re.compile(
r"([a-zA-Z_]\w*)\s*:(((['\"];['\"])|[^;])+);", re.S
)
RULE_MEMBER_REGEX = re.compile(
r"([a-zA-Z_]\w*)\s*([?\+\*]?)=\s*([^\s]+)", re.S
)
if black is not None:
... | 27.680412 | 77 | 0.587337 | 308 | 2,685 | 4.863636 | 0.272727 | 0.036048 | 0.036716 | 0.048064 | 0.084112 | 0.064085 | 0.064085 | 0.028037 | 0.028037 | 0 | 0 | 0.004559 | 0.264804 | 2,685 | 96 | 78 | 27.96875 | 0.754306 | 0.057728 | 0 | 0.108108 | 1 | 0 | 0.143541 | 0.055821 | 0 | 0 | 0 | 0 | 0 | 1 | 0.040541 | false | 0 | 0.040541 | 0 | 0.135135 | 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 |
b1c9b912939d5da977a0f0ba07c635174c5f0f28 | 683 | py | Python | scripts/runTests.py | RDFLib/pymicrodata | a4e2d82d092316f0742902227664bf691be6c17f | [
"W3C-20150513"
] | 25 | 2015-01-30T13:35:32.000Z | 2021-12-29T18:42:35.000Z | scripts/runTests.py | RDFLib/pymicrodata | a4e2d82d092316f0742902227664bf691be6c17f | [
"W3C-20150513"
] | 7 | 2016-01-23T18:01:01.000Z | 2020-12-22T16:27:38.000Z | scripts/runTests.py | RDFLib/pymicrodata | a4e2d82d092316f0742902227664bf691be6c17f | [
"W3C-20150513"
] | 4 | 2016-04-30T23:37:56.000Z | 2019-03-24T20:56:32.000Z | #!/usr/bin/env python
"""
Run the microdata testing locally
"""
# You may want to adapt this to your environment...
import sys
sys.path.append("..")
import glob
from pyMicrodata import pyMicrodata
from rdflib import Graph
###########################################
# marshall all test HTML files
test_path = "../test... | 24.392857 | 74 | 0.657394 | 93 | 683 | 4.741935 | 0.580645 | 0.054422 | 0.088435 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006838 | 0.143485 | 683 | 27 | 75 | 25.296296 | 0.747009 | 0.265007 | 0 | 0 | 0 | 0 | 0.100671 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 1 | 0 | false | 0 | 0.307692 | 0 | 0.307692 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
b1d1d0561cf49238a4a8252a8f7aae4e72eed16d | 1,613 | py | Python | pyInet/__main__.py | LcfherShell/pynet | 80284d7147d7b8d69c631fd6fe1236bb73e50b1b | [
"MIT"
] | null | null | null | pyInet/__main__.py | LcfherShell/pynet | 80284d7147d7b8d69c631fd6fe1236bb73e50b1b | [
"MIT"
] | null | null | null | pyInet/__main__.py | LcfherShell/pynet | 80284d7147d7b8d69c631fd6fe1236bb73e50b1b | [
"MIT"
] | null | null | null | try:
from main import ClassA, ClassB
except:
try:
from pyInet import ClassA, ClassB
except:
from pyInet.main import ClassA, ClassB
if __name__ == "__main__":
child = ClassA #Public Class
network = ClassB #Private Class
print("Call function using public... | 33.604167 | 62 | 0.543707 | 190 | 1,613 | 4.542105 | 0.310526 | 0.032445 | 0.062572 | 0.050985 | 0.201622 | 0.201622 | 0.201622 | 0.122827 | 0.060255 | 0 | 0 | 0.06789 | 0.324241 | 1,613 | 47 | 63 | 34.319149 | 0.723853 | 0.015499 | 0 | 0.292683 | 0 | 0 | 0.199089 | 0.024723 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.073171 | 0 | 0.073171 | 0.414634 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b1d42f3d03c0a3e27b14e56be2c1099412ba4e94 | 3,854 | py | Python | dope/filespec/__init__.py | gwappa/pydope | c8beb315177a850e9d275902a6303e68a319c123 | [
"MIT"
] | null | null | null | dope/filespec/__init__.py | gwappa/pydope | c8beb315177a850e9d275902a6303e68a319c123 | [
"MIT"
] | 5 | 2020-05-13T13:09:45.000Z | 2020-05-14T14:18:43.000Z | dope/filespec/__init__.py | gwappa/pydope | c8beb315177a850e9d275902a6303e68a319c123 | [
"MIT"
] | null | null | null | #
# MIT License
#
# Copyright (c) 2020 Keisuke Sehara
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, me... | 37.417476 | 102 | 0.639855 | 478 | 3,854 | 5.069038 | 0.334728 | 0.022286 | 0.023112 | 0.015683 | 0.030541 | 0.030541 | 0.030541 | 0.030541 | 0 | 0 | 0 | 0.001774 | 0.268552 | 3,854 | 102 | 103 | 37.784314 | 0.857751 | 0.288012 | 0 | 0.109375 | 0 | 0.015625 | 0.072325 | 0.038376 | 0 | 0 | 0 | 0.009804 | 0 | 1 | 0.171875 | false | 0 | 0.03125 | 0.078125 | 0.515625 | 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 |
b1d4408048c2582c035650ab9faddb5edccff6fd | 2,498 | py | Python | city_scrapers_core/extensions/status.py | jtotoole/city-scrapers-core | 0c091d91bf8883c6f361a19fbb055abc3b306835 | [
"MIT"
] | null | null | null | city_scrapers_core/extensions/status.py | jtotoole/city-scrapers-core | 0c091d91bf8883c6f361a19fbb055abc3b306835 | [
"MIT"
] | null | null | null | city_scrapers_core/extensions/status.py | jtotoole/city-scrapers-core | 0c091d91bf8883c6f361a19fbb055abc3b306835 | [
"MIT"
] | null | null | null | from datetime import datetime
import pytz
from scrapy import signals
RUNNING = "running"
FAILING = "failing"
STATUS_COLOR_MAP = {RUNNING: "#44cc11", FAILING: "#cb2431"}
STATUS_ICON = """
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="144" height="20">
<linearGradient id=... | 34.694444 | 108 | 0.6249 | 332 | 2,498 | 4.605422 | 0.38253 | 0.036625 | 0.051014 | 0.052322 | 0.262263 | 0.189012 | 0.189012 | 0.159581 | 0.108568 | 0.05363 | 0 | 0.05736 | 0.211369 | 2,498 | 71 | 109 | 35.183099 | 0.718782 | 0.052442 | 0 | 0.071429 | 0 | 0.071429 | 0.452493 | 0.074563 | 0 | 0 | 0 | 0.014085 | 0 | 1 | 0.107143 | false | 0 | 0.053571 | 0 | 0.232143 | 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 |
b1d8a19c3055e7f0d5aa484065ba5f44c533be7b | 420 | py | Python | poc/classes/AuxSTRuleOfInference.py | bookofproofs/fpl | 527b43b0f8bb3d459ee906e5ed8524a676ce3a2c | [
"MIT"
] | 4 | 2021-11-08T10:09:46.000Z | 2021-11-13T22:25:46.000Z | poc/classes/AuxSTRuleOfInference.py | bookofproofs/fpl | 527b43b0f8bb3d459ee906e5ed8524a676ce3a2c | [
"MIT"
] | 1 | 2020-09-04T13:02:09.000Z | 2021-06-16T07:07:44.000Z | poc/classes/AuxSTRuleOfInference.py | bookofproofs/fpl | 527b43b0f8bb3d459ee906e5ed8524a676ce3a2c | [
"MIT"
] | 1 | 2021-11-08T10:10:12.000Z | 2021-11-08T10:10:12.000Z | from poc.classes.AuxSTBlockWithSignature import AuxSTBlockWithSignature
from poc.classes.AuxSymbolTable import AuxSymbolTable
class AuxSTRuleOfInference(AuxSTBlockWithSignature):
def __init__(self, i):
super().__init__(AuxSymbolTable.block_ir, i)
self.zfrom = i.last_positions_by_rule['PredicateId... | 38.181818 | 81 | 0.785714 | 47 | 420 | 6.617021 | 0.553191 | 0.045016 | 0.090032 | 0.102894 | 0.128617 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12381 | 420 | 10 | 82 | 42 | 0.845109 | 0 | 0 | 0 | 0 | 0 | 0.080952 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 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 | 0 | 0 | 1 | 0 | 0 | 1 |
b1da25a95c5118697812a66adf7849f4cbae7363 | 441 | py | Python | usage.py | nicogetaz/cfile | 305a8e5fd133e4fd36d8958ede4627b008d4664a | [
"MIT"
] | 45 | 2017-11-17T04:44:29.000Z | 2022-03-30T12:30:17.000Z | usage.py | nicogetaz/cfile | 305a8e5fd133e4fd36d8958ede4627b008d4664a | [
"MIT"
] | 4 | 2019-03-25T15:43:26.000Z | 2021-02-09T12:26:03.000Z | usage.py | nicogetaz/cfile | 305a8e5fd133e4fd36d8958ede4627b008d4664a | [
"MIT"
] | 18 | 2017-10-12T13:24:00.000Z | 2021-12-09T05:29:54.000Z | import cfile as C
hello = C.cfile('hello.c')
hello.code.append(C.sysinclude('stdio.h'))
hello.code.append(C.blank())
hello.code.append(C.function('main', 'int',).add_param(C.variable('argc', 'int')).add_param(C.variable('argv', 'char', pointer=2)))
body = C.block(innerIndent=3)
body.append(C.statement(C.fcall('pr... | 40.090909 | 132 | 0.693878 | 73 | 441 | 4.150685 | 0.506849 | 0.115512 | 0.19802 | 0.158416 | 0.132013 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007353 | 0.07483 | 441 | 10 | 133 | 44.1 | 0.735294 | 0 | 0 | 0 | 0 | 0 | 0.153132 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0.2 | 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 |
b1dab95c84aa79d34c26b83dc05fe89c1233edca | 14,141 | py | Python | scripts/BaxterArmClient.py | mkrizmancic/qlearn_baxter | 0498315212cacb40334cbb97a858c6ba317f52a3 | [
"MIT"
] | 4 | 2017-11-11T18:16:22.000Z | 2018-11-08T13:31:09.000Z | scripts/BaxterArmClient.py | mkrizmancic/qlearn_baxter | 0498315212cacb40334cbb97a858c6ba317f52a3 | [
"MIT"
] | null | null | null | scripts/BaxterArmClient.py | mkrizmancic/qlearn_baxter | 0498315212cacb40334cbb97a858c6ba317f52a3 | [
"MIT"
] | 2 | 2019-09-04T12:28:58.000Z | 2021-09-27T13:02:48.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
CREDIT:
Main layout of this file was done by Lucija Kopic (graduation thesis)
at Faculty of Electrical Engineering and Computing, University of Zagreb.
"""
import math
from threading import Thread
import actionlib
import tf
from tf.transformations import ... | 42.851515 | 119 | 0.592391 | 1,773 | 14,141 | 4.559504 | 0.159052 | 0.007422 | 0.029688 | 0.037605 | 0.489857 | 0.428748 | 0.403266 | 0.390153 | 0.372712 | 0.299852 | 0 | 0.023854 | 0.312213 | 14,141 | 329 | 120 | 42.981763 | 0.807321 | 0.092356 | 0 | 0.383886 | 0 | 0 | 0.045958 | 0.007626 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.047393 | null | null | 0.061611 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b1dea7e1058a7eee3b72428c420020b2fdd458a2 | 6,346 | py | Python | ansys/dpf/core/operators/math/make_one_on_comp.py | jfthuong/pydpf-core | bf2895ebc546e0004f759289bfc9a23196559ac3 | [
"MIT"
] | 18 | 2021-10-16T10:38:29.000Z | 2022-03-29T11:26:42.000Z | ansys/dpf/core/operators/math/make_one_on_comp.py | jfthuong/pydpf-core | bf2895ebc546e0004f759289bfc9a23196559ac3 | [
"MIT"
] | 79 | 2021-10-11T23:18:54.000Z | 2022-03-29T14:53:14.000Z | ansys/dpf/core/operators/math/make_one_on_comp.py | jfthuong/pydpf-core | bf2895ebc546e0004f759289bfc9a23196559ac3 | [
"MIT"
] | 5 | 2021-11-29T18:35:37.000Z | 2022-03-16T16:49:21.000Z | """
make_one_on_comp
===============
Autogenerated DPF operator classes.
"""
from warnings import warn
from ansys.dpf.core.dpf_operator import Operator
from ansys.dpf.core.inputs import Input, _Inputs
from ansys.dpf.core.outputs import Output, _Outputs
from ansys.dpf.core.operators.specification import PinSpecification... | 29.654206 | 89 | 0.578159 | 729 | 6,346 | 4.812071 | 0.165981 | 0.061574 | 0.04618 | 0.066705 | 0.456956 | 0.398233 | 0.342075 | 0.342075 | 0.289339 | 0.289339 | 0 | 0.004955 | 0.300347 | 6,346 | 213 | 90 | 29.793427 | 0.785135 | 0.44138 | 0 | 0.297297 | 1 | 0 | 0.067646 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.135135 | false | 0 | 0.067568 | 0 | 0.337838 | 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 |
b1e15b56feda70e36690890e29f9ba4efcc55495 | 8,716 | py | Python | cheshire3/web/www_utils.py | cheshire3/cheshire3 | 306348831ec110229c78a7c5f0f2026a0f394d2c | [
"Python-2.0",
"Unlicense"
] | 3 | 2015-08-02T09:03:28.000Z | 2017-12-06T09:26:14.000Z | cheshire3/web/www_utils.py | cheshire3/cheshire3 | 306348831ec110229c78a7c5f0f2026a0f394d2c | [
"Python-2.0",
"Unlicense"
] | 5 | 2015-08-17T01:16:35.000Z | 2015-09-16T21:51:27.000Z | cheshire3/web/www_utils.py | cheshire3/cheshire3 | 306348831ec110229c78a7c5f0f2026a0f394d2c | [
"Python-2.0",
"Unlicense"
] | 6 | 2015-05-17T15:32:20.000Z | 2020-04-22T08:43:16.000Z | #
# Program: www_utils.py
# Version: 0.10
# Description:
# Generic search functions for Cheshire 3
#
# Language: Python
# Author: John Harrison <john.harrison@liv.ac.uk>
# Date: 19 December 2007
#
# Copyright: © University of Liverpool 2005-2007
#
# Version History:
# 0.01 - 13/04/2005 - JH... | 27.495268 | 128 | 0.519504 | 1,007 | 8,716 | 4.473684 | 0.360477 | 0.013319 | 0.023085 | 0.013984 | 0.118535 | 0.106548 | 0.096781 | 0.096781 | 0.096781 | 0.070588 | 0 | 0.037143 | 0.320445 | 8,716 | 316 | 129 | 27.582278 | 0.723451 | 0.279371 | 0 | 0.174359 | 0 | 0 | 0.099966 | 0.015432 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.015385 | 0.020513 | null | null | 0.005128 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b1e81c6b8160d531e4161ae5339f729307b428e9 | 1,891 | py | Python | madlib4.py | Leorodr501/Mad-Libs | 0d619908ad4b1f73365e86345dd4023f9aa7f72d | [
"MIT"
] | null | null | null | madlib4.py | Leorodr501/Mad-Libs | 0d619908ad4b1f73365e86345dd4023f9aa7f72d | [
"MIT"
] | null | null | null | madlib4.py | Leorodr501/Mad-Libs | 0d619908ad4b1f73365e86345dd4023f9aa7f72d | [
"MIT"
] | null | null | null | adjective = input("Enter an adjective: ")
adjective = input("Enter another adjective: ")
noun = input("Enter a noun: ")
noun = input("Enter another noun: ")
plural_noun = input("Enter a plural noun: ")
game = input("Enter a game: ")
plural_noun = input("Enter another plural noun: ")
verb = input("Enter a verb ending in... | 51.108108 | 225 | 0.668429 | 287 | 1,891 | 4.369338 | 0.327526 | 0.151515 | 0.135566 | 0.083732 | 0.281499 | 0.185805 | 0.185805 | 0.1563 | 0.08134 | 0.08134 | 0 | 0.001963 | 0.191962 | 1,891 | 36 | 226 | 52.527778 | 0.818717 | 0 | 0 | 0.3125 | 0 | 0 | 0.587394 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.40625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b1ea115bb0ded34de6025f440ccc8b24a383a6be | 5,854 | py | Python | proto_5/connect/__main__.py | jadnohra/connect | 8eb21e6f122898094447bc3d5edb3053d5a2adf2 | [
"Unlicense"
] | null | null | null | proto_5/connect/__main__.py | jadnohra/connect | 8eb21e6f122898094447bc3d5edb3053d5a2adf2 | [
"Unlicense"
] | 6 | 2021-03-19T12:06:56.000Z | 2022-03-12T00:23:09.000Z | proto_5/connect/__main__.py | jadnohra/connect | 8eb21e6f122898094447bc3d5edb3053d5a2adf2 | [
"Unlicense"
] | null | null | null | import argparse
import os
import logging
import sys
from types import SimpleNamespace
from .util.print_tree import print_tree
def data_to_card_path(card_dir, fpath):
return os.path.splitext("/" + os.path.relpath(fpath, start=card_dir))[0]
class Card:
def __init__(self, card_dir, fpath):
self._fpath = ... | 34.233918 | 83 | 0.654766 | 795 | 5,854 | 4.464151 | 0.171069 | 0.059172 | 0.03663 | 0.020287 | 0.231051 | 0.155819 | 0.055227 | 0.040575 | 0.024232 | 0 | 0 | 0.001597 | 0.251281 | 5,854 | 171 | 84 | 34.233918 | 0.808122 | 0.007345 | 0 | 0.090278 | 0 | 0 | 0.034423 | 0 | 0 | 0 | 0 | 0.005848 | 0 | 1 | 0.208333 | false | 0 | 0.041667 | 0.076389 | 0.430556 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b1ea3252892ba4485f0734ae364981f2c8a20c18 | 35,322 | py | Python | arcadia.py | ntw1103/arcadia | bfefc433a97c13739c9c1b329e0b9af63dba9d1b | [
"BSD-2-Clause"
] | 1 | 2018-12-11T04:36:53.000Z | 2018-12-11T04:36:53.000Z | arcadia.py | ntw1103/arcadia | bfefc433a97c13739c9c1b329e0b9af63dba9d1b | [
"BSD-2-Clause"
] | null | null | null | arcadia.py | ntw1103/arcadia | bfefc433a97c13739c9c1b329e0b9af63dba9d1b | [
"BSD-2-Clause"
] | 1 | 2018-12-11T04:37:35.000Z | 2018-12-11T04:37:35.000Z | # -*- coding: utf-8 -*-
#!/usr/bin/env python2
import fileinput
import json
import random
import socket
import thread #
import urllib2 #
import collections
import time
import traceback
import re
from decimal import Decimal as D
from datetime import datetime
import MySQLdb #
import math
username = 'Arcadia2'
oper_key ... | 43.233782 | 188 | 0.46832 | 3,660 | 35,322 | 4.45 | 0.184426 | 0.003438 | 0.010806 | 0.016332 | 0.188432 | 0.155277 | 0.140664 | 0.110149 | 0.082765 | 0.073617 | 0 | 0.020226 | 0.4177 | 35,322 | 816 | 189 | 43.286765 | 0.771538 | 0 | 0 | 0.177504 | 0 | 0.005272 | 0.093622 | 0.003244 | 0 | 0 | 0 | 0.002451 | 0 | 0 | null | null | 0.003515 | 0.024605 | null | null | 0.087873 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b1ee21b42e49b37ad9977b9259b77f5d847cdf1c | 491 | py | Python | tsim/serialization/__init__.py | eduardomezencio/tsim | 60ac63152a98fd7dabb59c66367bca216e6a7370 | [
"MIT"
] | 2 | 2021-04-24T06:48:13.000Z | 2022-01-25T02:38:44.000Z | tsim/serialization/__init__.py | eduardomezencio/tsim | 60ac63152a98fd7dabb59c66367bca216e6a7370 | [
"MIT"
] | null | null | null | tsim/serialization/__init__.py | eduardomezencio/tsim | 60ac63152a98fd7dabb59c66367bca216e6a7370 | [
"MIT"
] | null | null | null | """Global serialization configuration."""
from importlib import import_module
import os
def configure_serialization():
"""Configure serialization for all classes in folder."""
for name in filter(
lambda s: not s.startswith('_') and s.endswith('.py'),
os.listdir(os.path.dirname(os.path... | 30.6875 | 71 | 0.668024 | 59 | 491 | 5.389831 | 0.559322 | 0.056604 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002538 | 0.197556 | 491 | 15 | 72 | 32.733333 | 0.804569 | 0.175153 | 0 | 0 | 0 | 0 | 0.091371 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 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 |
5904c0dfbd55d07ecdda6b598e8aefd81056a978 | 2,764 | py | Python | server/core/tests/test_models.py | jleg13/Django-REST-API | 7e2c397ca3d49a320a79356c96b35beb86cc97ff | [
"MIT"
] | null | null | null | server/core/tests/test_models.py | jleg13/Django-REST-API | 7e2c397ca3d49a320a79356c96b35beb86cc97ff | [
"MIT"
] | null | null | null | server/core/tests/test_models.py | jleg13/Django-REST-API | 7e2c397ca3d49a320a79356c96b35beb86cc97ff | [
"MIT"
] | null | null | null | from unittest.mock import patch
from django.test import TestCase
from django.contrib.auth import get_user_model
from core import models
def sample_user(email='test@email.com', password='testpass'):
"""Create a sample user"""
return get_user_model().objects.create_user(email, password)
class ModelTests(Tes... | 32.904762 | 76 | 0.646527 | 338 | 2,764 | 5.091716 | 0.242604 | 0.06043 | 0.069146 | 0.0552 | 0.23068 | 0.133643 | 0.063916 | 0.04416 | 0 | 0 | 0 | 0.006247 | 0.247106 | 2,764 | 83 | 77 | 33.301205 | 0.820759 | 0.130608 | 0 | 0.053571 | 0 | 0 | 0.100552 | 0.013577 | 0 | 0 | 0 | 0 | 0.178571 | 1 | 0.160714 | false | 0.142857 | 0.071429 | 0 | 0.267857 | 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 |
59083cdbd1613168bb0ded29e8cc254a35bff318 | 5,170 | py | Python | my_diary_data_structures.py | koechkevin/myDiary | c5f48fa04a5f8c2bce9f1580c0f92f3f0d5f9bcb | [
"Apache-2.0"
] | null | null | null | my_diary_data_structures.py | koechkevin/myDiary | c5f48fa04a5f8c2bce9f1580c0f92f3f0d5f9bcb | [
"Apache-2.0"
] | null | null | null | my_diary_data_structures.py | koechkevin/myDiary | c5f48fa04a5f8c2bce9f1580c0f92f3f0d5f9bcb | [
"Apache-2.0"
] | 1 | 2018-11-04T09:48:46.000Z | 2018-11-04T09:48:46.000Z | from functools import wraps
import datetime
from flask import jsonify, Flask, request, session
from my_class import ExternalFunctions
app = Flask(__name__)
app.config["SECRET_KEY"] = 'kkkoech'
user_details = dict()
diary_entries = dict()
@app.route("/api/v1", methods=['GET'])
def home():
return jsonify({"messa... | 38.014706 | 100 | 0.624178 | 619 | 5,170 | 5.101777 | 0.221325 | 0.09468 | 0.069664 | 0.041165 | 0.306206 | 0.203293 | 0.182711 | 0.142495 | 0.127296 | 0.10323 | 0 | 0.023349 | 0.229594 | 5,170 | 135 | 101 | 38.296296 | 0.76952 | 0 | 0 | 0.275 | 0 | 0 | 0.205996 | 0.019923 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.091667 | 0.033333 | 0.008333 | 0.341667 | 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 |
59166d910964300c77243a402c6b75bc3f352d74 | 1,517 | py | Python | homeassistant_cli/plugins/event.py | dotlambda/home-assistant-cli | e8c5a493ca902a739a357d3053a2f09d589e9be1 | [
"Apache-2.0"
] | null | null | null | homeassistant_cli/plugins/event.py | dotlambda/home-assistant-cli | e8c5a493ca902a739a357d3053a2f09d589e9be1 | [
"Apache-2.0"
] | null | null | null | homeassistant_cli/plugins/event.py | dotlambda/home-assistant-cli | e8c5a493ca902a739a357d3053a2f09d589e9be1 | [
"Apache-2.0"
] | null | null | null | """Edit plugin for Home Assistant CLI (hass-cli)."""
import json as json_
import logging
import click
import homeassistant_cli.autocompletion as autocompletion
from homeassistant_cli.cli import pass_context
from homeassistant_cli.config import Configuration
from homeassistant_cli.helper import raw_format_output, req_r... | 29.173077 | 75 | 0.661173 | 188 | 1,517 | 5.191489 | 0.37766 | 0.065574 | 0.061475 | 0.038934 | 0.229508 | 0.077869 | 0.077869 | 0.077869 | 0 | 0 | 0 | 0 | 0.208306 | 1,517 | 51 | 76 | 29.745098 | 0.812656 | 0.07383 | 0 | 0.2 | 0 | 0 | 0.110871 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0.075 | 0.2 | 0 | 0.275 | 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 |
591c39e1d0a64ea2423fa974b75251f4ec29ed0a | 3,386 | py | Python | dbcontext/Module/construct.py | jimmg35/Sensor_Crawling_v2 | 5154885cad5173127539487a2fcf2140a4409b8b | [
"MIT"
] | null | null | null | dbcontext/Module/construct.py | jimmg35/Sensor_Crawling_v2 | 5154885cad5173127539487a2fcf2140a4409b8b | [
"MIT"
] | null | null | null | dbcontext/Module/construct.py | jimmg35/Sensor_Crawling_v2 | 5154885cad5173127539487a2fcf2140a4409b8b | [
"MIT"
] | null | null | null | import time
import hmac
import base64
import datetime
import schedule
import psycopg2
from time import mktime
from hashlib import sha1
from pprint import pprint
from requests import request
from datetime import datetime
from wsgiref.handlers import format_date_time
from psycopg2.extensions import ISOLATION_LEVEL_AUTOCO... | 33.86 | 137 | 0.60632 | 367 | 3,386 | 5.485014 | 0.280654 | 0.023845 | 0.023845 | 0.020864 | 0.245405 | 0.232489 | 0.203676 | 0.203676 | 0.167909 | 0.167909 | 0 | 0.003783 | 0.297401 | 3,386 | 100 | 138 | 33.86 | 0.842371 | 0.092144 | 0 | 0.169492 | 0 | 0 | 0.135393 | 0.015445 | 0 | 0 | 0 | 0 | 0 | 1 | 0.101695 | false | 0.118644 | 0.220339 | 0 | 0.389831 | 0.118644 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
59203bba648641256e52153b47303c1f888cf09a | 1,347 | py | Python | src/core/migrations/0096_auto_20191023_1441.py | metabolism-of-cities/ARCHIVED-metabolism-of-cities-platform-v3 | c754d3b1b401906a21640b8eacb6b724a448b31c | [
"MIT"
] | null | null | null | src/core/migrations/0096_auto_20191023_1441.py | metabolism-of-cities/ARCHIVED-metabolism-of-cities-platform-v3 | c754d3b1b401906a21640b8eacb6b724a448b31c | [
"MIT"
] | null | null | null | src/core/migrations/0096_auto_20191023_1441.py | metabolism-of-cities/ARCHIVED-metabolism-of-cities-platform-v3 | c754d3b1b401906a21640b8eacb6b724a448b31c | [
"MIT"
] | null | null | null | # Generated by Django 2.2.2 on 2019-10-23 14:41
from django.db import migrations, models
import tinymce.models
class Migration(migrations.Migration):
dependencies = [
('core', '0095_auto_20191022_1602'),
]
operations = [
migrations.AlterModelOptions(
name='casestudy',
... | 35.447368 | 323 | 0.590943 | 143 | 1,347 | 5.468531 | 0.636364 | 0.046036 | 0.061381 | 0.081841 | 0.138107 | 0.138107 | 0 | 0 | 0 | 0 | 0 | 0.042553 | 0.267261 | 1,347 | 37 | 324 | 36.405405 | 0.749747 | 0.033408 | 0 | 0.387097 | 1 | 0 | 0.242308 | 0.017692 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.064516 | 0 | 0.16129 | 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 |
592751375bcd4d68f888638835a70c28a75cc554 | 427 | py | Python | template.py | imsofi/advent-of-code | 8ac1406cfee689d9da0302363eaee7c8fea5c722 | [
"0BSD"
] | null | null | null | template.py | imsofi/advent-of-code | 8ac1406cfee689d9da0302363eaee7c8fea5c722 | [
"0BSD"
] | null | null | null | template.py | imsofi/advent-of-code | 8ac1406cfee689d9da0302363eaee7c8fea5c722 | [
"0BSD"
] | null | null | null | """
Day $:
https://adventofcode.com/2021/day/$
"""
Data = list
def parse_file(path: str) -> Data:
with open(path) as f:
raw = f.read().splitlines()
data = raw
return data
def part_1(data: Data):
...
def part_2(data: Data):
...
def main():
data = parse_file("example.txt")
... | 12.558824 | 36 | 0.559719 | 60 | 427 | 3.75 | 0.483333 | 0.093333 | 0.097778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031546 | 0.257611 | 427 | 33 | 37 | 12.939394 | 0.678233 | 0.100703 | 0 | 0.125 | 0 | 0 | 0.082447 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.3125 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
592904d4f5f76e99f9c27babc8743707b85f9a4e | 1,662 | py | Python | shopdrawing.py | Maxim-Kovalenko/turtle-graphics-programms | 768866f9b6658dc0933b0391387a6bdec64ad6ec | [
"Apache-2.0"
] | 1 | 2020-04-14T08:31:24.000Z | 2020-04-14T08:31:24.000Z | shopdrawing.py | Maxim-Kovalenko/turtle-graphics-programms | 768866f9b6658dc0933b0391387a6bdec64ad6ec | [
"Apache-2.0"
] | null | null | null | shopdrawing.py | Maxim-Kovalenko/turtle-graphics-programms | 768866f9b6658dc0933b0391387a6bdec64ad6ec | [
"Apache-2.0"
] | 1 | 2021-01-05T15:47:59.000Z | 2021-01-05T15:47:59.000Z | from turtle import *
coeficient = 0.5
speed(5)
def base():
fillcolor("#fae0bd")
begin_fill()
pencolor("#c8835c")
pensize(10 * coeficient)
penup()
backward(100 * coeficient)
pendown()
for i in range(0,2):
forward(300 * coeficient)
right(90)
fo... | 17.494737 | 34 | 0.527677 | 179 | 1,662 | 4.843575 | 0.307263 | 0.155709 | 0.176471 | 0.16609 | 0.374856 | 0.327566 | 0.198385 | 0.117647 | 0.117647 | 0.117647 | 0 | 0.10411 | 0.341155 | 1,662 | 94 | 35 | 17.680851 | 0.687671 | 0 | 0 | 0.474359 | 0 | 0 | 0.044728 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.012821 | 0 | 0.089744 | 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 |
593382e994272402d7ed09a0a47388a40b5bfde8 | 3,692 | py | Python | thm.py | brenolf/k-flow | f2ab6e2e6aa09aad437acb2ef071257adc0464c1 | [
"Apache-2.0"
] | null | null | null | thm.py | brenolf/k-flow | f2ab6e2e6aa09aad437acb2ef071257adc0464c1 | [
"Apache-2.0"
] | null | null | null | thm.py | brenolf/k-flow | f2ab6e2e6aa09aad437acb2ef071257adc0464c1 | [
"Apache-2.0"
] | null | null | null | import sys
N = -1
G = None
H = None
vis = None
vis_aux = None
valence = None
flows = {}
answer = []
allowed_flows = {
3 : [-1, 1],
4 : [-1, 1, 2],
5 : [-1, 1, 2, -2]
}
def has_k_flow (graph):
global N, G, H, vis, valence, flows
G = graph
N = len(G)
H = [[0] * N for i in xrange(0, N)]
vis = [False] * N
... | 16.93578 | 83 | 0.597237 | 619 | 3,692 | 3.520194 | 0.169628 | 0.032125 | 0.037173 | 0.027536 | 0.095457 | 0.057366 | 0.015145 | 0 | 0 | 0 | 0 | 0.029095 | 0.245937 | 3,692 | 218 | 84 | 16.93578 | 0.753592 | 0.035211 | 0 | 0.2 | 0 | 0 | 0.015744 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.006897 | null | null | 0.006897 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5933bc9be206bb31b3b20546a2f728540ffb2f7a | 45,642 | py | Python | ms/MS/index.py | jcnelson/syndicate | 4837265be3e0aa18cdf4ee50316dbfc2d1f06e5b | [
"Apache-2.0"
] | 16 | 2015-01-02T15:39:04.000Z | 2016-03-17T06:38:46.000Z | ms/MS/index.py | jcnelson/syndicate | 4837265be3e0aa18cdf4ee50316dbfc2d1f06e5b | [
"Apache-2.0"
] | 37 | 2015-01-28T20:58:05.000Z | 2016-03-22T04:01:32.000Z | ms/MS/index.py | jcnelson/syndicate | 4837265be3e0aa18cdf4ee50316dbfc2d1f06e5b | [
"Apache-2.0"
] | 8 | 2015-04-08T02:26:03.000Z | 2016-03-04T05:56:24.000Z | #!/usr/bin/pyhon
"""
Copyright 2014 The Trustees of Princeton University
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 re... | 40.534636 | 267 | 0.619101 | 5,782 | 45,642 | 4.621065 | 0.088205 | 0.049702 | 0.041169 | 0.061679 | 0.541974 | 0.437741 | 0.377821 | 0.330439 | 0.304016 | 0.271792 | 0 | 0.003134 | 0.307984 | 45,642 | 1,125 | 268 | 40.570667 | 0.842805 | 0.076618 | 0 | 0.421053 | 0 | 0.013158 | 0.06195 | 0.011445 | 0 | 0 | 0 | 0.000889 | 0 | 0 | null | null | 0 | 0.026316 | 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 |
593527dd9bb90c5f584c18500adffe54b948dd13 | 1,066 | py | Python | example.py | train255/deep-speaker | d63b111b904faab34fe58637b3d0e7fd188e1b36 | [
"MIT"
] | 3 | 2021-08-20T16:40:09.000Z | 2022-02-08T23:17:52.000Z | example.py | train255/deep-speaker | d63b111b904faab34fe58637b3d0e7fd188e1b36 | [
"MIT"
] | 1 | 2022-03-22T04:16:15.000Z | 2022-03-22T04:26:03.000Z | example.py | train255/deep-speaker | d63b111b904faab34fe58637b3d0e7fd188e1b36 | [
"MIT"
] | 1 | 2020-11-06T08:07:27.000Z | 2020-11-06T08:07:27.000Z | import numpy as np
import random
from audio import read_mfcc
from batcher import sample_from_mfcc
from constants import SAMPLE_RATE, NUM_FRAMES
from conv_models import DeepSpeakerModel
from test import batch_cosine_similarity
np.random.seed(123)
random.seed(123)
model = DeepSpeakerModel()
model.m.load_weights('/Users... | 41 | 117 | 0.827392 | 166 | 1,066 | 5.006024 | 0.361446 | 0.038508 | 0.067389 | 0.091456 | 0.468111 | 0.375451 | 0.340554 | 0.127557 | 0 | 0 | 0 | 0.071645 | 0.070356 | 1,066 | 25 | 118 | 42.64 | 0.766902 | 0 | 0 | 0 | 0 | 0 | 0.199812 | 0.177298 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.368421 | 0 | 0.368421 | 0.105263 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
593e946792eaa8675d0ba0dfd7b0ef6bf054d411 | 1,869 | py | Python | src/app.py | jqueguiner/text-to-speech-as-a-service | b66b1593a6c669c77edadb38939de30e82e46425 | [
"MIT"
] | 3 | 2020-03-19T09:49:49.000Z | 2020-03-30T14:18:00.000Z | src/app.py | jqueguiner/text-to-speech-as-a-service | b66b1593a6c669c77edadb38939de30e82e46425 | [
"MIT"
] | 2 | 2021-09-28T01:12:37.000Z | 2022-02-26T06:54:04.000Z | src/app.py | jqueguiner/text-to-speech-as-a-service | b66b1593a6c669c77edadb38939de30e82e46425 | [
"MIT"
] | null | null | null | import os
import sys
import subprocess
import requests
import ssl
import random
import string
import json
from flask import jsonify
from flask import Flask
from flask import request
from flask import send_file
import traceback
from uuid import uuid4
from notebook_utils.synthesize import *
try: # Python 3.5+
f... | 21.238636 | 82 | 0.687533 | 238 | 1,869 | 5.189076 | 0.420168 | 0.02915 | 0.048583 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019204 | 0.219904 | 1,869 | 87 | 83 | 21.482759 | 0.827846 | 0.015516 | 0 | 0.084746 | 0 | 0 | 0.095368 | 0.047411 | 0 | 0 | 0 | 0 | 0 | 1 | 0.067797 | false | 0 | 0.338983 | 0 | 0.457627 | 0.016949 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
59424eac730e7540dbabc57af91b0ddacf577089 | 458 | py | Python | hackerearth/Algorithms/Fredo and Sums/solution.py | ATrain951/01.python-com_Qproject | c164dd093954d006538020bdf2e59e716b24d67c | [
"MIT"
] | 4 | 2020-07-24T01:59:50.000Z | 2021-07-24T15:14:08.000Z | hackerearth/Algorithms/Fredo and Sums/solution.py | ATrain951/01.python-com_Qproject | c164dd093954d006538020bdf2e59e716b24d67c | [
"MIT"
] | null | null | null | hackerearth/Algorithms/Fredo and Sums/solution.py | ATrain951/01.python-com_Qproject | c164dd093954d006538020bdf2e59e716b24d67c | [
"MIT"
] | null | null | null | """
# Sample code to perform I/O:
name = input() # Reading input from STDIN
print('Hi, %s.' % name) # Writing output to STDOUT
# Warning: Printing unwanted or ill-formatted data to output will cause the test cases to fail
"""
# Write your code here
t = int(input())
for _ in range(t):
n =... | 28.625 | 94 | 0.576419 | 74 | 458 | 3.554054 | 0.648649 | 0.060837 | 0.057034 | 0.045627 | 0.04943 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017241 | 0.240175 | 458 | 15 | 95 | 30.533333 | 0.738506 | 0.580786 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5949927fb2326eb76fbf268aa983df1f7b22c9a8 | 6,223 | py | Python | SB_Admin_2/templates/dashboard.py | Softyy/sb-admin-2-dash | c57d46fd7f1703696fdd96a7b834beb32ab8a4aa | [
"MIT"
] | null | null | null | SB_Admin_2/templates/dashboard.py | Softyy/sb-admin-2-dash | c57d46fd7f1703696fdd96a7b834beb32ab8a4aa | [
"MIT"
] | null | null | null | SB_Admin_2/templates/dashboard.py | Softyy/sb-admin-2-dash | c57d46fd7f1703696fdd96a7b834beb32ab8a4aa | [
"MIT"
] | null | null | null | import dash_core_components as dcc
import dash_html_components as html
from .layouts.info_card import render as info_card
from .layouts.graph_wrapper import render as graph_wrapper
from .layouts.project_bar import render as project_bar
from .layouts.color_card import render as color_card
from ..data_retrievers.dummy ... | 44.134752 | 248 | 0.415877 | 520 | 6,223 | 4.903846 | 0.373077 | 0.049412 | 0.106667 | 0.070588 | 0.280784 | 0.238431 | 0.238431 | 0.238431 | 0.238431 | 0.177255 | 0 | 0.017466 | 0.493974 | 6,223 | 140 | 249 | 44.45 | 0.792315 | 0.015427 | 0 | 0.422414 | 0 | 0.008621 | 0.238765 | 0.01765 | 0 | 0 | 0 | 0 | 0 | 1 | 0.008621 | true | 0 | 0.068966 | 0.008621 | 0.086207 | 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 |
594c04608e796ac9b1ce2395563d5fd38205ff2d | 1,320 | py | Python | blog/urls.py | MaryamKia/blog | 5274fda9fa67d20f48b0554bd9659f54221ae423 | [
"MIT"
] | null | null | null | blog/urls.py | MaryamKia/blog | 5274fda9fa67d20f48b0554bd9659f54221ae423 | [
"MIT"
] | 10 | 2020-02-12T00:42:03.000Z | 2022-01-13T01:20:37.000Z | blog/urls.py | PilaPont/blog | 61eb5cf30fe9937b4d0c85eb319854946df69a27 | [
"MIT"
] | null | null | null | """blog URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-based... | 42.580645 | 96 | 0.696212 | 191 | 1,320 | 4.759162 | 0.335079 | 0.038504 | 0.016502 | 0.026403 | 0.181518 | 0.128713 | 0.082508 | 0.082508 | 0 | 0 | 0 | 0.007923 | 0.139394 | 1,320 | 30 | 97 | 44 | 0.792254 | 0.477273 | 0 | 0 | 0 | 0 | 0.325513 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.307692 | 0 | 0.307692 | 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 |
594cc653ec79a656a999da000662af797c265edc | 669 | py | Python | source/try_init_models.py | tuanle618/deepArt-generation | bfa11d9f2a825ed53420f85adf3ffe23966b42be | [
"MIT"
] | 8 | 2019-03-25T14:53:55.000Z | 2022-01-09T11:08:30.000Z | source/try_init_models.py | ptl93/deepArt-generation | bfa11d9f2a825ed53420f85adf3ffe23966b42be | [
"MIT"
] | 10 | 2020-01-28T21:56:49.000Z | 2022-02-10T00:10:30.000Z | source/try_init_models.py | ptl93/deepArt-generation | bfa11d9f2a825ed53420f85adf3ffe23966b42be | [
"MIT"
] | 5 | 2019-03-18T13:46:26.000Z | 2022-02-20T15:05:56.000Z | # -*- coding: utf-8 -*-
"""
@title: try_init_models.py
@author: Tuan Le
@email: tuanle@hotmail.de
"""
from dcgan import DCGAN
from vae import VAE
if __name__ == "__main__":
print("Init DCGAN_1 model...")
dcgan_1 = DCGAN(name='DCGAN_1')
print("Init DCGAN_2 model...")
dcgan_2 = DCGAN(name='DCGAN_2... | 20.90625 | 35 | 0.588939 | 103 | 669 | 3.524272 | 0.271845 | 0.173554 | 0.132231 | 0.071625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042802 | 0.231689 | 669 | 32 | 36 | 20.90625 | 0.663424 | 0.137519 | 0 | 0 | 0 | 0 | 0.329825 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.117647 | 0 | 0.117647 | 0.411765 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
3ca799dcd7f204dd2b5700a464c22a2701817676 | 925 | py | Python | Section 2 - Data (variables, assignments and expressions)/Breakouts/Breakout 2.2 - ATM/convert pseudo-code solution.py | gitjot/python-for-lccs | a8a4ae8847abbc33361f80183c06d57b20523382 | [
"CC0-1.0"
] | 10 | 2020-02-14T14:28:15.000Z | 2022-02-02T18:44:11.000Z | Section 2 - Data (variables, assignments and expressions)/Breakouts/Breakout 2.2 - ATM/convert pseudo-code solution.py | gitjot/python-for-lccs | a8a4ae8847abbc33361f80183c06d57b20523382 | [
"CC0-1.0"
] | null | null | null | Section 2 - Data (variables, assignments and expressions)/Breakouts/Breakout 2.2 - ATM/convert pseudo-code solution.py | gitjot/python-for-lccs | a8a4ae8847abbc33361f80183c06d57b20523382 | [
"CC0-1.0"
] | 8 | 2020-03-25T09:27:42.000Z | 2021-11-03T15:24:38.000Z | # Event: LCCS Python Fundamental Skills Workshop
# Date: May 2018
# Author: Joe English, PDST
# eMail: computerscience@pdst.ie
# Purpose: Solution to Breakout 2.2 (ATM)
# Display a welcome message
print("Welcome to LCCS Bank Ltd.")
print("=========================")
# Initialise a variable called balance to... | 27.205882 | 52 | 0.692973 | 130 | 925 | 4.930769 | 0.407692 | 0.056162 | 0.070203 | 0.079563 | 0.555382 | 0.555382 | 0.464899 | 0.464899 | 0.464899 | 0.464899 | 0 | 0.022849 | 0.195676 | 925 | 33 | 53 | 28.030303 | 0.83871 | 0.537297 | 0 | 0.2 | 0 | 0 | 0.386842 | 0.065789 | 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 |
3caa5d8aa46dcaada0dadcfe04d781f5ae6b979d | 496 | py | Python | my-ml-api/api/schemas.py | ballcarsen/MyMlTool | eb476e21799ec773fa816f63693e6de4c52d0094 | [
"MIT"
] | null | null | null | my-ml-api/api/schemas.py | ballcarsen/MyMlTool | eb476e21799ec773fa816f63693e6de4c52d0094 | [
"MIT"
] | null | null | null | my-ml-api/api/schemas.py | ballcarsen/MyMlTool | eb476e21799ec773fa816f63693e6de4c52d0094 | [
"MIT"
] | null | null | null | from typing import List, Optional
from pydantic import BaseModel
class UploadBase(BaseModel):
file_name: str
user_id: int
class UploadCreate(UploadBase):
pass
class Upload(UploadBase):
upload_id: int
class Config:
orm_mode = True
class UserBase(BaseModel):
first_name: str
l... | 13.777778 | 33 | 0.677419 | 61 | 496 | 5.377049 | 0.459016 | 0.064024 | 0.054878 | 0.109756 | 0.134146 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 496 | 36 | 34 | 13.777778 | 0.88172 | 0 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.095238 | 0.095238 | 0 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
3cad775a80e54adc9a4854ed12070f7e895a7dd6 | 2,819 | py | Python | backend/plugins/nav_bar/migrations/0008_migrate_to_link_all_base.py | marksweb/django-cms-60min-demo-2021 | d9ca83538d6c5c7a0b0e1a18ae1a15bda4c296e4 | [
"MIT"
] | null | null | null | backend/plugins/nav_bar/migrations/0008_migrate_to_link_all_base.py | marksweb/django-cms-60min-demo-2021 | d9ca83538d6c5c7a0b0e1a18ae1a15bda4c296e4 | [
"MIT"
] | 1 | 2022-01-15T11:29:16.000Z | 2022-01-15T22:11:45.000Z | backend/plugins/nav_bar/migrations/0008_migrate_to_link_all_base.py | marksweb/django-cms-60min-demo-2021 | d9ca83538d6c5c7a0b0e1a18ae1a15bda4c296e4 | [
"MIT"
] | 3 | 2022-01-14T15:55:00.000Z | 2022-01-23T23:46:56.000Z | # Generated by Django 2.2.16 on 2020-09-17 16:00
from django.db import migrations, models
import django.db.models.deletion
import enumfields.fields
import link_all.models
class Migration(migrations.Migration):
dependencies = [
('contenttypes', '0002_remove_content_type_name'),
('nav_bar', '0007_... | 38.616438 | 171 | 0.630011 | 299 | 2,819 | 5.70903 | 0.324415 | 0.057996 | 0.134739 | 0.158172 | 0.526069 | 0.505565 | 0.49092 | 0.188635 | 0.159344 | 0 | 0 | 0.018234 | 0.260731 | 2,819 | 72 | 172 | 39.152778 | 0.800864 | 0.016318 | 0 | 0.5 | 1 | 0 | 0.224829 | 0.073981 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.060606 | 0 | 0.106061 | 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 |
3cadd23dc28e0931be3476bf361e1ba65acc6956 | 4,187 | py | Python | test/unit/utils/test_expiration_queue.py | dolphinridercrypto/bxcommon | 8f70557c1dbff785a5dd3fcdf91176066e085c3a | [
"MIT"
] | 12 | 2019-11-06T17:39:10.000Z | 2022-03-01T11:26:19.000Z | test/unit/utils/test_expiration_queue.py | dolphinridercrypto/bxcommon | 8f70557c1dbff785a5dd3fcdf91176066e085c3a | [
"MIT"
] | 8 | 2019-11-06T21:31:11.000Z | 2021-06-02T00:46:50.000Z | test/unit/utils/test_expiration_queue.py | dolphinridercrypto/bxcommon | 8f70557c1dbff785a5dd3fcdf91176066e085c3a | [
"MIT"
] | 5 | 2019-11-14T18:08:11.000Z | 2022-02-08T09:36:22.000Z | import time
import unittest
from mock import MagicMock
from bxcommon.utils.expiration_queue import ExpirationQueue
class ExpirationQueueTests(unittest.TestCase):
def setUp(self):
self.time_to_live = 60
self.queue = ExpirationQueue(self.time_to_live)
self.removed_items = []
def test_... | 34.319672 | 106 | 0.662288 | 569 | 4,187 | 4.669596 | 0.123023 | 0.128717 | 0.054196 | 0.067746 | 0.720738 | 0.701167 | 0.658638 | 0.561536 | 0.538954 | 0.471961 | 0 | 0.02576 | 0.230475 | 4,187 | 121 | 107 | 34.603306 | 0.798883 | 0.069501 | 0 | 0.395062 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.37037 | 1 | 0.074074 | false | 0 | 0.049383 | 0 | 0.135802 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.