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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
10204734fd1c1eef0317965dd5d5dbfb049ba8d9 | 953 | py | Python | authors/apps/articles/signals.py | andela/ah-backend-summer | f842a3e02f8418f123dc5de36809ad67557b1c1d | [
"BSD-3-Clause"
] | 1 | 2019-03-11T12:45:24.000Z | 2019-03-11T12:45:24.000Z | authors/apps/articles/signals.py | andela/ah-backend-summer | f842a3e02f8418f123dc5de36809ad67557b1c1d | [
"BSD-3-Clause"
] | 53 | 2019-01-29T08:02:23.000Z | 2022-03-11T23:39:37.000Z | authors/apps/articles/signals.py | andela/ah-backend-summer | f842a3e02f8418f123dc5de36809ad67557b1c1d | [
"BSD-3-Clause"
] | 5 | 2019-10-04T07:02:38.000Z | 2020-06-11T12:39:22.000Z | """Signal dispatchers and handlers for the articles module"""
from django.db.models.signals import post_save
from django.dispatch import receiver, Signal
from authors.apps.articles.models import Article
# our custom signal that will be sent when a new article is published
# we could have stuck to using the post_save ... | 36.653846 | 75 | 0.736621 | 131 | 953 | 5.274809 | 0.610687 | 0.04631 | 0.063676 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.198321 | 953 | 25 | 76 | 38.12 | 0.90445 | 0.451207 | 0 | 0 | 0 | 0 | 0.043393 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0.090909 | 0.272727 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
102e04336b537dbf112a2ddd7fae2de699b6b707 | 7,093 | py | Python | bindgen.py | fitzgen/wasmtime-py | 02a2af5e012a44af77690d59fd97df4d3caba962 | [
"Apache-2.0"
] | null | null | null | bindgen.py | fitzgen/wasmtime-py | 02a2af5e012a44af77690d59fd97df4d3caba962 | [
"Apache-2.0"
] | null | null | null | bindgen.py | fitzgen/wasmtime-py | 02a2af5e012a44af77690d59fd97df4d3caba962 | [
"Apache-2.0"
] | null | null | null | # type: ignore
# This is a small script to parse the header files from wasmtime and generate
# appropriate function definitions in Python for each exported function. This
# also reflects types into Python with `ctypes`. While there's at least one
# other generate that does this already it seemed to not quite fit our p... | 34.100962 | 93 | 0.549556 | 914 | 7,093 | 4.113786 | 0.266958 | 0.042819 | 0.029787 | 0.034043 | 0.197872 | 0.081915 | 0.040426 | 0.028191 | 0.028191 | 0.028191 | 0 | 0.005796 | 0.318906 | 7,093 | 207 | 94 | 34.2657 | 0.772511 | 0.119554 | 0 | 0.142857 | 1 | 0 | 0.18192 | 0.022158 | 0 | 0 | 0 | 0.004831 | 0.017857 | 1 | 0.035714 | false | 0.011905 | 0.029762 | 0 | 0.255952 | 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 |
1030df14c1adf08ce6691dd030b83b86e5a978e4 | 133 | py | Python | services/explorer/config/gunicorn/config.py | cheperuiz/elasticskill | 41d9e72a59468ee2676538a584448d16d59a7c51 | [
"MIT"
] | null | null | null | services/explorer/config/gunicorn/config.py | cheperuiz/elasticskill | 41d9e72a59468ee2676538a584448d16d59a7c51 | [
"MIT"
] | 2 | 2020-09-11T15:10:35.000Z | 2022-01-22T10:29:45.000Z | services/explorer/config/gunicorn/config.py | cheperuiz/elasticskill | 41d9e72a59468ee2676538a584448d16d59a7c51 | [
"MIT"
] | null | null | null | bind = "0.0.0.0:5000"
backlog = 2048
workers = 1
worker_class = "sync"
threads = 16
spew = False
reload = True
loglevel = "debug"
| 11.083333 | 21 | 0.661654 | 21 | 133 | 4.142857 | 0.857143 | 0.068966 | 0.068966 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141509 | 0.203008 | 133 | 11 | 22 | 12.090909 | 0.679245 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
103175058f2fa208dcde4dafb16a9cb6d6a48a58 | 723 | py | Python | Boot2Root/hackthebox/Tenten/files/exploit.py | Kan1shka9/CTFs | 33ab33e094ea8b52714d5dad020c25730e91c0b0 | [
"MIT"
] | 21 | 2016-02-06T14:30:01.000Z | 2020-09-11T05:39:17.000Z | Boot2Root/hackthebox/Tenten/files/exploit.py | Kan1shka9/CTFs | 33ab33e094ea8b52714d5dad020c25730e91c0b0 | [
"MIT"
] | null | null | null | Boot2Root/hackthebox/Tenten/files/exploit.py | Kan1shka9/CTFs | 33ab33e094ea8b52714d5dad020c25730e91c0b0 | [
"MIT"
] | 7 | 2017-02-02T16:27:02.000Z | 2021-04-30T17:14:53.000Z | import requests
print """
CVE-2015-6668
Title: CV filename disclosure on Job-Manager WP Plugin
Author: Evangelos Mourikis
Blog: https://vagmour.eu
Plugin URL: http://www.wp-jobmanager.com
Versions: <=0.7.25
"""
website = raw_input('Enter a vulnerable website: ')
filename = raw_input('Enter a file nam... | 30.125 | 124 | 0.593361 | 95 | 723 | 4.484211 | 0.705263 | 0.037559 | 0.061033 | 0.065728 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054845 | 0.24343 | 723 | 23 | 125 | 31.434783 | 0.723949 | 0 | 0 | 0 | 0 | 0 | 0.421053 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.052632 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
103601948f6165db5db865f0b5d72730ec02f8bd | 5,979 | py | Python | Ui_share.py | Mochongli/lanzou-gui | 0da48c627c70d7be4662e3312d135b28acdc1b57 | [
"MIT"
] | 2 | 2020-09-17T14:27:07.000Z | 2021-06-28T08:44:35.000Z | Ui_share.py | Mochongli/lanzou-gui | 0da48c627c70d7be4662e3312d135b28acdc1b57 | [
"MIT"
] | null | null | null | Ui_share.py | Mochongli/lanzou-gui | 0da48c627c70d7be4662e3312d135b28acdc1b57 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file '/home/rach/Documents/lanzou-gui/share.ui'
#
# Created by: PyQt5 UI code generator 5.13.2
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_Dialog(object):
def setupUi(self, D... | 46.710938 | 95 | 0.68657 | 712 | 5,979 | 5.571629 | 0.160112 | 0.058987 | 0.05823 | 0.069322 | 0.390976 | 0.199647 | 0.136879 | 0.136879 | 0.136879 | 0.136879 | 0 | 0.011074 | 0.199532 | 5,979 | 127 | 96 | 47.07874 | 0.817802 | 0.03529 | 0 | 0.061404 | 1 | 0 | 0.053289 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017544 | false | 0 | 0.008772 | 0 | 0.035088 | 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 |
103b74338ebd3a256125530370b8d63b824deb3c | 339 | py | Python | First_course/ex2_2.py | laetrid/learning | b28312c34db2118fb7d5691834b8f7e628117642 | [
"Apache-2.0"
] | null | null | null | First_course/ex2_2.py | laetrid/learning | b28312c34db2118fb7d5691834b8f7e628117642 | [
"Apache-2.0"
] | null | null | null | First_course/ex2_2.py | laetrid/learning | b28312c34db2118fb7d5691834b8f7e628117642 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
column1 = "NETWORK_NUMBER"
column2 = "FIRST_OCTET_BINARY"
column3 = "FIRST_OCTET_HEX"
ip_addr = '88.19.107.0'
formatter = '%-20s%-20s%-20s'
octets = ip_addr.split('.')
a = bin(int(octets[0]))
b = hex(int(octets[0]))
print ""
print formatter % (column1, column2, column3)
print formatter % (ip_ad... | 19.941176 | 45 | 0.678466 | 52 | 339 | 4.269231 | 0.519231 | 0.081081 | 0.09009 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.07483 | 0.132743 | 339 | 16 | 46 | 21.1875 | 0.680272 | 0.058997 | 0 | 0.166667 | 0 | 0 | 0.232704 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
103ddecd77ffe2029b07f7ee212a250ddb0a808d | 1,546 | py | Python | settings.py | gaomugong/flask-demo | 83bfb04634355565456cc16a5e98421338e3f562 | [
"MIT"
] | 12 | 2017-12-24T13:58:17.000Z | 2021-04-06T16:21:00.000Z | settings.py | gaomugong/flask-demo | 83bfb04634355565456cc16a5e98421338e3f562 | [
"MIT"
] | null | null | null | settings.py | gaomugong/flask-demo | 83bfb04634355565456cc16a5e98421338e3f562 | [
"MIT"
] | 1 | 2021-10-17T14:45:44.000Z | 2021-10-17T14:45:44.000Z | # -*- coding: utf-8 -*-
"""
settings = conf.default.py + settings_{env}.py
"""
# import os
# import importlib
from conf.default import *
# ========================================================================================
# IMPORT ENV SETTINGS
# =================================... | 39.641026 | 107 | 0.493532 | 144 | 1,546 | 5.097222 | 0.4375 | 0.040872 | 0.085831 | 0.070845 | 0.103542 | 0.103542 | 0.103542 | 0 | 0 | 0 | 0 | 0.000756 | 0.144243 | 1,546 | 38 | 108 | 40.684211 | 0.554044 | 0.50194 | 0 | 0 | 0 | 0 | 0.213423 | 0.103356 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.0625 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
104022f80f0cfe30ed3aab519ac4eeadac303cfa | 867 | py | Python | INBa/2015/ZORIN_D_I/task_4_7.py | YukkaSarasti/pythonintask | eadf4245abb65f4400a3bae30a4256b4658e009c | [
"Apache-2.0"
] | null | null | null | INBa/2015/ZORIN_D_I/task_4_7.py | YukkaSarasti/pythonintask | eadf4245abb65f4400a3bae30a4256b4658e009c | [
"Apache-2.0"
] | null | null | null | INBa/2015/ZORIN_D_I/task_4_7.py | YukkaSarasti/pythonintask | eadf4245abb65f4400a3bae30a4256b4658e009c | [
"Apache-2.0"
] | null | null | null | # Задача 4. Вариант 7.
# Напишите программу, которая выводит имя, под которым скрывается Мария Луиза Чеччарелли. Дополнительно необходимо вывести область интересов указанной личности, место рождения, годы рождения и смерти (если человек умер), вычислить возраст на данный момент (или момент смерти). Для хранения всех не... | 43.35 | 443 | 0.7797 | 111 | 867 | 6.09009 | 0.747748 | 0.029586 | 0.059172 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030667 | 0.134948 | 867 | 19 | 444 | 45.631579 | 0.870667 | 0.558247 | 0 | 0 | 0 | 0 | 0.497355 | 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 |
10402fdf566c301bcd9dcb713ba61afdb6b551f7 | 676 | py | Python | backend/api/models/request.py | haroldadmin/transportation-analytics-platform | 366891dc422d3a72287b3224fbf5b0daf3d14751 | [
"Apache-2.0"
] | null | null | null | backend/api/models/request.py | haroldadmin/transportation-analytics-platform | 366891dc422d3a72287b3224fbf5b0daf3d14751 | [
"Apache-2.0"
] | null | null | null | backend/api/models/request.py | haroldadmin/transportation-analytics-platform | 366891dc422d3a72287b3224fbf5b0daf3d14751 | [
"Apache-2.0"
] | null | null | null | from flask_restplus import fields, Model
def add_models_to_namespace(namespace):
namespace.models[route_request_model.name] = route_request_model
route_request_model = Model("Represents a Route Request", {
"id": fields.Integer(description="Unique identifier for the ride"),
"start_point_lat": fields.Floa... | 45.066667 | 99 | 0.778107 | 90 | 676 | 5.644444 | 0.388889 | 0.094488 | 0.173228 | 0.251969 | 0.448819 | 0.448819 | 0.448819 | 0.448819 | 0.448819 | 0.448819 | 0 | 0 | 0.12426 | 676 | 14 | 100 | 48.285714 | 0.858108 | 0 | 0 | 0 | 0 | 0 | 0.434911 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.1 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1047517a8fc519c2245e3ae4ac28ca41f0c16f09 | 7,928 | py | Python | todo/commands/complete.py | Kuro-Rui/JojoCogs | 57b86694e29462c5f5b561bc4a060ed04cfb8deb | [
"MIT"
] | null | null | null | todo/commands/complete.py | Kuro-Rui/JojoCogs | 57b86694e29462c5f5b561bc4a060ed04cfb8deb | [
"MIT"
] | null | null | null | todo/commands/complete.py | Kuro-Rui/JojoCogs | 57b86694e29462c5f5b561bc4a060ed04cfb8deb | [
"MIT"
] | null | null | null | # Copyright (c) 2021 - Jojo#7791
# Licensed under MIT
import asyncio
from contextlib import suppress
from typing import List
import discord
from redbot.core import commands
from redbot.core.utils.chat_formatting import pagify
from redbot.core.utils.predicates import MessagePredicate
from ..abc import TodoMixin
from ... | 41.507853 | 129 | 0.621342 | 997 | 7,928 | 4.855567 | 0.228686 | 0.024582 | 0.039661 | 0.040901 | 0.346829 | 0.313778 | 0.241066 | 0.241066 | 0.230737 | 0.221855 | 0 | 0.003671 | 0.278507 | 7,928 | 190 | 130 | 41.726316 | 0.842657 | 0.019551 | 0 | 0.323529 | 0 | 0.022059 | 0.167271 | 0 | 0.007353 | 0 | 0 | 0.068421 | 0 | 1 | 0 | false | 0.029412 | 0.073529 | 0 | 0.169118 | 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 |
105586dba443dd6bd6a2f0bfc1884ab1e9b6d1f5 | 504 | py | Python | magicmethod__str__.py | maahi07m/OOPS | 1faa5168dc66c3597adfc0703af5e4c84c52117a | [
"MIT"
] | 1 | 2022-02-28T17:00:03.000Z | 2022-02-28T17:00:03.000Z | magicmethod__str__.py | maahi07m/OOPS | 1faa5168dc66c3597adfc0703af5e4c84c52117a | [
"MIT"
] | null | null | null | magicmethod__str__.py | maahi07m/OOPS | 1faa5168dc66c3597adfc0703af5e4c84c52117a | [
"MIT"
] | 4 | 2020-04-22T10:26:35.000Z | 2020-05-15T16:27:36.000Z | class ComplexNumber:
# TODO: write your code here
def __init__(self,real=0, imag=0):
self.real_part = real
self.imaginary_part = imag
def __str__(self):
return f"{self.real_part}{self.imaginary_part:+}i"
if __name__ == "__main__":
import json
input_args = list(json.loads(inp... | 22.909091 | 58 | 0.642857 | 66 | 504 | 4.454545 | 0.530303 | 0.176871 | 0.081633 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015666 | 0.240079 | 504 | 21 | 59 | 24 | 0.751958 | 0.051587 | 0 | 0 | 0 | 0 | 0.108844 | 0.090703 | 0 | 0 | 0 | 0.047619 | 0 | 1 | 0.166667 | false | 0 | 0.083333 | 0.083333 | 0.416667 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1065d659f9d77981c8c0c3a93121ee6395bb47c1 | 1,603 | py | Python | get_color_wordcloud.py | Joe606/scrape_sportshoes | dde27cfd97bae3212a2fc35c6fef822667799761 | [
"MIT"
] | null | null | null | get_color_wordcloud.py | Joe606/scrape_sportshoes | dde27cfd97bae3212a2fc35c6fef822667799761 | [
"MIT"
] | null | null | null | get_color_wordcloud.py | Joe606/scrape_sportshoes | dde27cfd97bae3212a2fc35c6fef822667799761 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import pymysql
import time
import os
import matplotlib.pyplot as plt
print(os.getcwd())
db = pymysql.connect(
host='localhost',
user='root',
passwd='xxxx',
database='男运动鞋'
)
cur = db.cursor()
cur.execute('select productSize from all_comments;')
all_size... | 17.423913 | 58 | 0.617592 | 231 | 1,603 | 4.233766 | 0.467532 | 0.01227 | 0.018405 | 0.03681 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021243 | 0.207112 | 1,603 | 91 | 59 | 17.615385 | 0.747443 | 0.04242 | 0 | 0.045455 | 0 | 0 | 0.143799 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.015152 | 0.090909 | null | null | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
106bc619d04ec9ede221c61b7b392e024005d45b | 2,290 | py | Python | hack/generateChartOptions.py | deissnerk/external-dns-management | f1e003f04ad9d19af576d8b0d037e892b687c121 | [
"Apache-2.0"
] | null | null | null | hack/generateChartOptions.py | deissnerk/external-dns-management | f1e003f04ad9d19af576d8b0d037e892b687c121 | [
"Apache-2.0"
] | null | null | null | hack/generateChartOptions.py | deissnerk/external-dns-management | f1e003f04ad9d19af576d8b0d037e892b687c121 | [
"Apache-2.0"
] | null | null | null | #!/bin/python
# should be started from project base directory
# helper script to regenerate helm chart file: partial of charts/external-dns-management/templates/deployment.yaml
import re
import os
helpFilename = "/tmp/dns-controller-manager-help.txt"
rc = os.system("make build-local && ./dns-controller-manager --he... | 30.533333 | 114 | 0.621397 | 267 | 2,290 | 5.329588 | 0.423221 | 0.037948 | 0.073085 | 0.033732 | 0.209417 | 0.209417 | 0.209417 | 0.209417 | 0.133521 | 0.133521 | 0 | 0.008104 | 0.191703 | 2,290 | 74 | 115 | 30.945946 | 0.76067 | 0.074672 | 0 | 0.3 | 1 | 0 | 0.315839 | 0.101182 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0 | 0.033333 | 0 | 0.133333 | 0.05 | 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 |
106c3eefe5f3cdcf470da1774e9ab84ee3897c21 | 1,353 | py | Python | test.py | ttran1904/MDP | 1c44f79dba1ff33de3f9f791612a91f4b2fad4b9 | [
"MIT"
] | null | null | null | test.py | ttran1904/MDP | 1c44f79dba1ff33de3f9f791612a91f4b2fad4b9 | [
"MIT"
] | null | null | null | test.py | ttran1904/MDP | 1c44f79dba1ff33de3f9f791612a91f4b2fad4b9 | [
"MIT"
] | null | null | null | from MDP import MDP
import unittest
class MDPTestCase(unittest.TestCase):
def test_small1(self):
lst = [['a', 'a', 'b', 'b', 'c', 'c', 'd', 'd']]
self.__printInput(lst)
mdp = MDP(lst)
mdp.run()
# Get the result Transition Probabilities (dictionary)
tp = mdp.getTrans... | 31.465116 | 74 | 0.474501 | 166 | 1,353 | 3.73494 | 0.289157 | 0.016129 | 0.014516 | 0.012903 | 0.529032 | 0.529032 | 0.435484 | 0.435484 | 0.409677 | 0.409677 | 0 | 0.023913 | 0.32003 | 1,353 | 43 | 75 | 31.465116 | 0.65 | 0.160384 | 0 | 0.466667 | 0 | 0 | 0.046018 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 1 | 0.133333 | false | 0.066667 | 0.066667 | 0 | 0.233333 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
106da9215eb8067c762142bbcb0cab6695c0b979 | 379 | py | Python | apps/purchases/migrations/0009_auto_20200502_0253.py | jorgesaw/kstore | 4ec6612eeeb96edb7b7bd374fd0520733c58451c | [
"MIT"
] | null | null | null | apps/purchases/migrations/0009_auto_20200502_0253.py | jorgesaw/kstore | 4ec6612eeeb96edb7b7bd374fd0520733c58451c | [
"MIT"
] | 5 | 2021-03-19T10:16:00.000Z | 2022-02-10T09:16:32.000Z | apps/purchases/migrations/0009_auto_20200502_0253.py | jorgesaw/kstore | 4ec6612eeeb96edb7b7bd374fd0520733c58451c | [
"MIT"
] | null | null | null | # Generated by Django 2.2.10 on 2020-05-02 05:53
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('purchases', '0008_auto_20200430_1617'),
]
operations = [
migrations.RenameField(
model_name='itempurchase',
old_name='suppl... | 19.947368 | 49 | 0.601583 | 40 | 379 | 5.525 | 0.775 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.118959 | 0.290237 | 379 | 18 | 50 | 21.055556 | 0.702602 | 0.121372 | 0 | 0 | 1 | 0 | 0.190332 | 0.069486 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
106ea10390a127ae67a672fa8cfbea48593dd793 | 2,750 | py | Python | pylayers/antprop/examples/ex_meta.py | usmanwardag/pylayers | 2e8a9bdc993b2aacc92610a9c7edf875c6c7b24a | [
"MIT"
] | 143 | 2015-01-09T07:50:20.000Z | 2022-03-02T11:26:53.000Z | pylayers/antprop/examples/ex_meta.py | usmanwardag/pylayers | 2e8a9bdc993b2aacc92610a9c7edf875c6c7b24a | [
"MIT"
] | 148 | 2015-01-13T04:19:34.000Z | 2022-03-11T23:48:25.000Z | pylayers/antprop/examples/ex_meta.py | usmanwardag/pylayers | 2e8a9bdc993b2aacc92610a9c7edf875c6c7b24a | [
"MIT"
] | 95 | 2015-05-01T13:22:42.000Z | 2022-03-15T11:22:28.000Z | from pylayers.gis.layout import *
from pylayers.antprop.signature import *
from pylayers.antprop.channel import *
import pylayers.signal.waveform as wvf
import networkx as nx
import numpy as np
import time
import logging
L = Layout('WHERE1_clean.ini')
#L = Layout('defstr2.ini')
try:
L.dumpr()
except:
L.build()... | 19.097222 | 61 | 0.607273 | 476 | 2,750 | 3.485294 | 0.321429 | 0.006028 | 0.016878 | 0.033755 | 0.195901 | 0.144665 | 0.144665 | 0.107294 | 0.107294 | 0.073538 | 0 | 0.044435 | 0.140727 | 2,750 | 143 | 62 | 19.230769 | 0.657639 | 0.553818 | 0 | 0 | 0 | 0 | 0.070046 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.170213 | null | null | 0.148936 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1070daf15ff202a5e3bcc5749503b19039cf94af | 2,260 | py | Python | pydemic/data/__init__.py | uiuc-covid19-modeling/pydemic | 3c0af60c2ac7e0dbf722584f61c45f9a2f993521 | [
"MIT"
] | 6 | 2020-05-29T22:52:30.000Z | 2020-11-08T23:27:07.000Z | pydemic/data/__init__.py | uiuc-covid19-modeling/pydemic | 3c0af60c2ac7e0dbf722584f61c45f9a2f993521 | [
"MIT"
] | null | null | null | pydemic/data/__init__.py | uiuc-covid19-modeling/pydemic | 3c0af60c2ac7e0dbf722584f61c45f9a2f993521 | [
"MIT"
] | 5 | 2020-06-12T01:47:18.000Z | 2022-03-29T13:26:09.000Z | __copyright__ = """
Copyright (C) 2020 George N Wong
Copyright (C) 2020 Zachary J Weiner
"""
__license__ = """
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 withou... | 32.753623 | 78 | 0.715487 | 330 | 2,260 | 4.763636 | 0.49697 | 0.05598 | 0.022901 | 0.005089 | 0.01145 | 0.01145 | 0 | 0 | 0 | 0 | 0 | 0.007671 | 0.192478 | 2,260 | 68 | 79 | 33.235294 | 0.853699 | 0 | 0 | 0.057692 | 0 | 0 | 0.613274 | 0.026106 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057692 | false | 0 | 0.038462 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1073ef5093a5b8b166fa58df1b32f9b4c68bda68 | 9,812 | py | Python | accounts/forms.py | GDGSNF/My-Business | 792bb13a5b296260e5de7e03fba6445a13922851 | [
"MIT"
] | 21 | 2020-08-29T14:32:13.000Z | 2021-08-28T21:40:32.000Z | accounts/forms.py | GDGSNF/My-Business | 792bb13a5b296260e5de7e03fba6445a13922851 | [
"MIT"
] | 1 | 2020-10-11T21:56:15.000Z | 2020-10-11T21:56:15.000Z | accounts/forms.py | yezz123/My-Business | 792bb13a5b296260e5de7e03fba6445a13922851 | [
"MIT"
] | 5 | 2021-09-11T23:31:10.000Z | 2022-03-06T20:29:59.000Z | import datetime
import re
from configparser import ConfigParser
from smtplib import SMTPException
from django import forms
from django.conf import settings
from django.contrib.auth import authenticate, login
from django.contrib.auth.tokens import default_token_generator
from django.core.mail import send_mail
from djan... | 34.918149 | 100 | 0.610171 | 1,089 | 9,812 | 5.341598 | 0.197429 | 0.066185 | 0.090253 | 0.046931 | 0.589479 | 0.530342 | 0.525185 | 0.465704 | 0.444903 | 0.436651 | 0 | 0.008047 | 0.278129 | 9,812 | 280 | 101 | 35.042857 | 0.813215 | 0 | 0 | 0.493671 | 0 | 0 | 0.169181 | 0.009784 | 0 | 0 | 0 | 0 | 0 | 1 | 0.080169 | false | 0.168776 | 0.063291 | 0.012658 | 0.324895 | 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 |
107ee9ab6b9b9047573689de88a1c06760a9cb86 | 3,960 | py | Python | src/stopwords/create_stopword_list.py | prrao87/topic-modelling | b7bceef8711edb097c3afec95c30474ae0789e1f | [
"MIT"
] | 3 | 2020-11-22T14:55:58.000Z | 2021-03-13T17:59:26.000Z | src/stopwords/create_stopword_list.py | prrao87/topic-modelling | b7bceef8711edb097c3afec95c30474ae0789e1f | [
"MIT"
] | null | null | null | src/stopwords/create_stopword_list.py | prrao87/topic-modelling | b7bceef8711edb097c3afec95c30474ae0789e1f | [
"MIT"
] | null | null | null | """
Script to generate a custom list of stopwords that extend upon existing lists.
"""
import json
import spacy
from urllib.request import urlopen
from itertools import chain
def combine(*lists):
"Combine an arbitrary number of lists into a single list"
return list(chain(*lists))
def get_spacy_lemmas():
... | 44.494382 | 138 | 0.600253 | 490 | 3,960 | 4.695918 | 0.528571 | 0.033464 | 0.014342 | 0.014776 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004921 | 0.230303 | 3,960 | 88 | 139 | 45 | 0.75 | 0.134343 | 0 | 0 | 1 | 0.015625 | 0.294956 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.0625 | 0 | 0.1875 | 0.015625 | 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 |
10846775ed810108f0674e3280e3bdb519f11227 | 586 | py | Python | setup.py | Lzejie/DynamicPool | 9a0d42738f55e97962e2a93a0db0b30a38fa1126 | [
"MIT"
] | 1 | 2019-01-16T03:00:18.000Z | 2019-01-16T03:00:18.000Z | setup.py | Lzejie/DynamicPool | 9a0d42738f55e97962e2a93a0db0b30a38fa1126 | [
"MIT"
] | null | null | null | setup.py | Lzejie/DynamicPool | 9a0d42738f55e97962e2a93a0db0b30a38fa1126 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# @Time : 18/12/10 上午10:27
# @Author : L_zejie
# @Site :
# @File : setup.py.py
# @Software: PyCharm Community Edition
from setuptools import setup, find_packages
setup(
name="DynamicPool",
packages=find_packages(),
version='0.14',
description="动态任务阻塞线程/进程池",
autho... | 25.478261 | 92 | 0.648464 | 71 | 586 | 5.253521 | 0.746479 | 0.088472 | 0.064343 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035714 | 0.187713 | 586 | 22 | 93 | 26.636364 | 0.747899 | 0.237201 | 0 | 0 | 0 | 0 | 0.365909 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.071429 | 0 | 0.071429 | 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 |
109422f948a8a29c875dcfdb424e7f71d2bd02c6 | 394 | py | Python | apps/track/migrations/0022_auto_20210319_1551.py | martinlehoux/django_bike | 05373d2649647fe8ebadb0aad54b9a7ec1900fe7 | [
"MIT"
] | 1 | 2020-08-12T17:53:37.000Z | 2020-08-12T17:53:37.000Z | apps/track/migrations/0022_auto_20210319_1551.py | martinlehoux/django_bike | 05373d2649647fe8ebadb0aad54b9a7ec1900fe7 | [
"MIT"
] | 12 | 2020-07-03T03:52:00.000Z | 2021-09-22T18:00:44.000Z | apps/track/migrations/0022_auto_20210319_1551.py | martinlehoux/django_bike | 05373d2649647fe8ebadb0aad54b9a7ec1900fe7 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.7 on 2021-03-19 15:51
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("track", "0021_auto_20200915_1528"),
]
operations = [
migrations.RemoveField(
model_name="track",
name="parser",
),
... | 18.761905 | 47 | 0.560914 | 39 | 394 | 5.564103 | 0.794872 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116541 | 0.324873 | 394 | 20 | 48 | 19.7 | 0.699248 | 0.114213 | 0 | 0.142857 | 1 | 0 | 0.126801 | 0.066282 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
109a679e147b4f56e0888419c137399febf66634 | 5,432 | py | Python | papers_clf/tfidf_2_sentence.py | KellyShao/Writing-robots-vs.-Human | 86d0a2a0f4ca773417f231a2d6796b429f182e38 | [
"CECILL-B"
] | 4 | 2018-10-18T23:02:41.000Z | 2019-10-21T14:44:54.000Z | papers_clf/tfidf_2_sentence.py | KellyShao/Writing-robots-vs.-Human | 86d0a2a0f4ca773417f231a2d6796b429f182e38 | [
"CECILL-B"
] | null | null | null | papers_clf/tfidf_2_sentence.py | KellyShao/Writing-robots-vs.-Human | 86d0a2a0f4ca773417f231a2d6796b429f182e38 | [
"CECILL-B"
] | null | null | null | import csv
import math
import pandas as pd
import numpy as np
from sklearn import svm
from sklearn.cross_validation import train_test_split
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.feature_extraction import text
from sklearn import metrics
from sklearn.metrics import roc_curve,... | 40.537313 | 168 | 0.660714 | 746 | 5,432 | 4.516086 | 0.237265 | 0.01959 | 0.020184 | 0.035619 | 0.287919 | 0.190264 | 0.122291 | 0.122291 | 0.104482 | 0.104482 | 0 | 0.024485 | 0.240611 | 5,432 | 133 | 169 | 40.842105 | 0.792242 | 0.058542 | 0 | 0.037383 | 0 | 0 | 0.059593 | 0.027582 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.186916 | null | null | 0.046729 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
10a59a24a85be6682daa683fce4544a51ae31094 | 312 | py | Python | auction/admin.py | AnthonyNicklin/newage-auctions | f829c9761e4fef0c084cf0244a4617a4bda8e0c2 | [
"FSFAP"
] | 1 | 2021-07-29T07:47:10.000Z | 2021-07-29T07:47:10.000Z | auction/admin.py | AnthonyNicklin/newage-auctions | f829c9761e4fef0c084cf0244a4617a4bda8e0c2 | [
"FSFAP"
] | 9 | 2019-12-19T21:27:23.000Z | 2022-01-13T01:59:10.000Z | auction/admin.py | AnthonyNicklin/newage-auctions | f829c9761e4fef0c084cf0244a4617a4bda8e0c2 | [
"FSFAP"
] | 1 | 2020-02-11T19:50:45.000Z | 2020-02-11T19:50:45.000Z | from django.contrib import admin
from .models import Auction, Lot, Bid
class BidAdmin(admin.ModelAdmin):
readonly_fields = (
'user',
'auction',
'bid_amount',
'bid_time',
)
admin.site.register(Auction)
admin.site.register(Lot)
admin.site.register(Bid, BidAdmin)
| 16.421053 | 37 | 0.644231 | 36 | 312 | 5.5 | 0.527778 | 0.136364 | 0.257576 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.240385 | 312 | 18 | 38 | 17.333333 | 0.835443 | 0 | 0 | 0 | 0 | 0 | 0.092949 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.333333 | 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 |
10a637ed134f858c509d1512e086fa81036f6f19 | 922 | py | Python | scale/source/apps.py | kaydoh/scale | 1b6a3b879ffe83e10d3b9d9074835a4c3bf476ee | [
"Apache-2.0"
] | 121 | 2015-11-18T18:15:33.000Z | 2022-03-10T01:55:00.000Z | scale/source/apps.py | kaydoh/scale | 1b6a3b879ffe83e10d3b9d9074835a4c3bf476ee | [
"Apache-2.0"
] | 1,415 | 2015-12-23T23:36:04.000Z | 2022-01-07T14:10:09.000Z | scale/source/apps.py | kaydoh/scale | 1b6a3b879ffe83e10d3b9d9074835a4c3bf476ee | [
"Apache-2.0"
] | 66 | 2015-12-03T20:38:56.000Z | 2020-07-27T15:28:11.000Z | """Defines the application configuration for the source application"""
from __future__ import unicode_literals
from django.apps import AppConfig
class SourceConfig(AppConfig):
"""Configuration for the source app
"""
name = 'source'
label = 'source'
verbose_name = 'Source'
def ready(self):
... | 30.733333 | 83 | 0.724512 | 104 | 922 | 6.192308 | 0.471154 | 0.062112 | 0.086957 | 0.083851 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.215835 | 922 | 29 | 84 | 31.793103 | 0.890733 | 0.252712 | 0 | 0 | 0 | 0 | 0.059633 | 0.03211 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.461538 | 0 | 0.846154 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
10abfb12f6e2336b0704fd165a04ee71fb341a6a | 10,391 | py | Python | indicator17.py | nkzhengwt/Spyder_cta | 1cb5e8fd9d70da381ef198aec6431aca4feb24da | [
"MIT"
] | 13 | 2018-05-18T09:19:24.000Z | 2019-03-18T02:06:49.000Z | indicator17.py | nkuzhengwt/spyder_cta | 1cb5e8fd9d70da381ef198aec6431aca4feb24da | [
"MIT"
] | null | null | null | indicator17.py | nkuzhengwt/spyder_cta | 1cb5e8fd9d70da381ef198aec6431aca4feb24da | [
"MIT"
] | 2 | 2019-03-17T14:29:10.000Z | 2019-04-09T01:50:38.000Z | # -*- coding: utf-8 -*-
import pandas as pd
import numpy as np
import math
import datetime
import time
import matplotlib.pyplot as plt
import warnings
warnings.filterwarnings("ignore")
class Indicators():
def __init__(self, dataframe, params = []):
self.dataframe = dataframe
self.params = params
... | 53.287179 | 420 | 0.630161 | 1,550 | 10,391 | 4.090968 | 0.132258 | 0.090837 | 0.147611 | 0.182306 | 0.607633 | 0.540293 | 0.434789 | 0.415707 | 0.368869 | 0.325974 | 0 | 0.016833 | 0.188144 | 10,391 | 194 | 421 | 53.561856 | 0.734827 | 0.0537 | 0 | 0.198676 | 0 | 0 | 0.122662 | 0.009404 | 0 | 0 | 0 | 0 | 0 | 1 | 0.099338 | false | 0 | 0.046358 | 0 | 0.231788 | 0.066225 | 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 |
10ad5bf59feb60ba24a561f3cbe2b398632d6514 | 1,785 | py | Python | colour/examples/io/examples_ies_tm2714.py | BPearlstine/colour | 40f0281295496774d2a19eee017d50fd0c265bd8 | [
"Cube",
"BSD-3-Clause"
] | 2 | 2020-05-03T20:15:42.000Z | 2021-04-09T18:19:06.000Z | colour/examples/io/examples_ies_tm2714.py | BPearlstine/colour | 40f0281295496774d2a19eee017d50fd0c265bd8 | [
"Cube",
"BSD-3-Clause"
] | null | null | null | colour/examples/io/examples_ies_tm2714.py | BPearlstine/colour | 40f0281295496774d2a19eee017d50fd0c265bd8 | [
"Cube",
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Showcases input / output *IES TM-27-14* spectral data XML files related
examples.
"""
import os
import colour
from colour.utilities import message_box
RESOURCES_DIRECTORY = os.path.join(os.path.dirname(__file__), 'resources')
message_box('"IES TM-27-14" Spectral Data "XML" File IO')
mes... | 35.7 | 77 | 0.746779 | 253 | 1,785 | 5.166008 | 0.26087 | 0.085692 | 0.110176 | 0.126243 | 0.254782 | 0.160673 | 0.160673 | 0.142311 | 0.142311 | 0.142311 | 0 | 0.028624 | 0.080112 | 1,785 | 49 | 78 | 36.428571 | 0.767357 | 0.058263 | 0 | 0.151515 | 0 | 0 | 0.375374 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0.636364 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
10b3898c39cc445a1d7a9fa450e58ed1fdf4ed6d | 13,823 | py | Python | python/constants.py | cbilstra/FATE | 40f3962db471764e1cfcd39e295a13308b7d85fd | [
"MIT"
] | null | null | null | python/constants.py | cbilstra/FATE | 40f3962db471764e1cfcd39e295a13308b7d85fd | [
"MIT"
] | null | null | null | python/constants.py | cbilstra/FATE | 40f3962db471764e1cfcd39e295a13308b7d85fd | [
"MIT"
] | null | null | null | import os
from os.path import join
INVESTIGATE = False # Records coverages and saves them. Generates a plot in the end. Do not use with automate.
TEST_OUTSIDE_FUZZER = False # Runs FATE as standalone (1+1) EA
BLACKBOX = True and TEST_OUTSIDE_FUZZER # Disables white-box information such as thresholds and feat imp.
F... | 56.651639 | 119 | 0.747667 | 2,130 | 13,823 | 4.628639 | 0.241784 | 0.03124 | 0.00852 | 0.01988 | 0.219799 | 0.148189 | 0.129323 | 0.092301 | 0.06522 | 0.06522 | 0 | 0.027197 | 0.159444 | 13,823 | 243 | 120 | 56.884774 | 0.821327 | 0.424582 | 0 | 0 | 1 | 0 | 0.190149 | 0.044764 | 0 | 0 | 0 | 0 | 0 | 1 | 0.005917 | false | 0 | 0.023669 | 0.005917 | 0.029586 | 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 |
52a1c2d78cfb1a125c997f8dc53947a5b9217444 | 5,988 | py | Python | code_analyzer/core.py | draihal/code_analyzer | 05f56a3f44bbf9e1ccd9bd25b2fbafb631486ad7 | [
"MIT"
] | null | null | null | code_analyzer/core.py | draihal/code_analyzer | 05f56a3f44bbf9e1ccd9bd25b2fbafb631486ad7 | [
"MIT"
] | null | null | null | code_analyzer/core.py | draihal/code_analyzer | 05f56a3f44bbf9e1ccd9bd25b2fbafb631486ad7 | [
"MIT"
] | null | null | null | import logging
import os
import shutil
import tempfile
from git import Repo
from .ast_analysis import _get_all_names, _get_all_func_names, _generate_trees
from .ntlk_analysis import _get_verbs_from_function_name, _get_nouns_from_function_name
from .utils import _get_count_most_common, _get_converted_names, _convert_t... | 36.512195 | 87 | 0.609552 | 736 | 5,988 | 4.654891 | 0.195652 | 0.021016 | 0.035026 | 0.046702 | 0.424985 | 0.34822 | 0.32662 | 0.296848 | 0.296848 | 0.285464 | 0 | 0.001934 | 0.309285 | 5,988 | 163 | 88 | 36.736196 | 0.826402 | 0.183701 | 0 | 0.125 | 1 | 0 | 0.053345 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086538 | false | 0 | 0.076923 | 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 |
52a274d162d9e0ff675d928c3cfccd89b9f1212e | 8,449 | py | Python | assemblyline_ui/security/ldap_auth.py | CybercentreCanada/assemblyline-ui | 4b44b26852ef587d1c627fa63c778a135209e25e | [
"MIT"
] | 11 | 2020-06-29T14:31:38.000Z | 2022-01-14T17:15:06.000Z | assemblyline_ui/security/ldap_auth.py | CybercentreCanada/assemblyline-ui | 4b44b26852ef587d1c627fa63c778a135209e25e | [
"MIT"
] | 20 | 2020-06-22T12:35:30.000Z | 2022-03-10T12:41:46.000Z | assemblyline_ui/security/ldap_auth.py | CybercentreCanada/assemblyline-ui | 4b44b26852ef587d1c627fa63c778a135209e25e | [
"MIT"
] | 13 | 2020-08-15T16:10:58.000Z | 2022-01-14T17:15:09.000Z | import base64
import hashlib
import ldap
import logging
import time
from assemblyline.common.str_utils import safe_str
from assemblyline_ui.config import config, CLASSIFICATION
from assemblyline_ui.helper.user import get_dynamic_classification
from assemblyline_ui.http_exceptions import AuthenticationException
log = ... | 39.297674 | 113 | 0.605871 | 1,012 | 8,449 | 4.815217 | 0.199605 | 0.051303 | 0.022984 | 0.012313 | 0.155756 | 0.101991 | 0.088447 | 0.03386 | 0.027909 | 0 | 0 | 0.004197 | 0.295065 | 8,449 | 214 | 114 | 39.481308 | 0.813969 | 0.075394 | 0 | 0.111111 | 0 | 0 | 0.085662 | 0.015217 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065359 | false | 0.091503 | 0.071895 | 0 | 0.281046 | 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 |
52aac1e125cfaa8a910431ade1ba06863dbcee6c | 2,722 | py | Python | garecovery/mnemonic.py | LeoComandini/garecovery | 66f7fe4c15b3866e751162fd990bd5bc8c58ec7a | [
"MIT"
] | 61 | 2017-08-30T13:16:42.000Z | 2022-03-24T16:28:18.000Z | garecovery/mnemonic.py | baby636/garecovery | 9ced74920b804adc3a7be443f09a950a884c8c0c | [
"MIT"
] | 34 | 2017-08-11T16:58:16.000Z | 2022-02-18T09:00:23.000Z | garecovery/mnemonic.py | baby636/garecovery | 9ced74920b804adc3a7be443f09a950a884c8c0c | [
"MIT"
] | 46 | 2017-08-09T18:11:55.000Z | 2022-03-04T05:30:54.000Z | import wallycore as wally
from . import exceptions
from gaservices.utils import h2b
wordlist_ = wally.bip39_get_wordlist('en')
wordlist = [wally.bip39_get_word(wordlist_, i) for i in range(2048)]
def seed_from_mnemonic(mnemonic_or_hex_seed):
"""Return seed, mnemonic given an input string
mnemonic_or_hex_se... | 37.805556 | 86 | 0.709405 | 369 | 2,722 | 5.03523 | 0.311653 | 0.052745 | 0.062971 | 0.082347 | 0.092573 | 0.057589 | 0.041981 | 0.041981 | 0 | 0 | 0 | 0.032599 | 0.199853 | 2,722 | 71 | 87 | 38.338028 | 0.820478 | 0.161646 | 0 | 0.043478 | 0 | 0 | 0.061607 | 0 | 0 | 0 | 0 | 0 | 0.065217 | 1 | 0.086957 | false | 0.130435 | 0.065217 | 0 | 0.23913 | 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 |
52b2cef2321b28d9b382b11b584f50285ddca3b9 | 482 | py | Python | api/features/exceptions.py | SolidStateGroup/Bullet-Train-API | ea47ccbdadf665a806ae4e0eff6ad1a2f1b0ba19 | [
"BSD-3-Clause"
] | 126 | 2019-12-13T18:41:43.000Z | 2020-11-10T13:33:55.000Z | api/features/exceptions.py | SolidStateGroup/Bullet-Train-API | ea47ccbdadf665a806ae4e0eff6ad1a2f1b0ba19 | [
"BSD-3-Clause"
] | 30 | 2019-12-12T16:52:01.000Z | 2020-11-09T18:55:29.000Z | api/features/exceptions.py | SolidStateGroup/Bullet-Train-API | ea47ccbdadf665a806ae4e0eff6ad1a2f1b0ba19 | [
"BSD-3-Clause"
] | 20 | 2020-02-14T21:55:36.000Z | 2020-11-03T22:29:03.000Z | from rest_framework import status
from rest_framework.exceptions import APIException
class FeatureStateVersionError(APIException):
status_code = status.HTTP_400_BAD_REQUEST
class FeatureStateVersionAlreadyExistsError(FeatureStateVersionError):
status_code = status.HTTP_400_BAD_REQUEST
def __init__(self... | 30.125 | 70 | 0.786307 | 47 | 482 | 7.680851 | 0.553191 | 0.044321 | 0.094183 | 0.110803 | 0.182825 | 0.182825 | 0.182825 | 0 | 0 | 0 | 0 | 0.014778 | 0.157676 | 482 | 15 | 71 | 32.133333 | 0.874384 | 0 | 0 | 0.2 | 0 | 0 | 0.103734 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.2 | 0 | 0.7 | 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 |
52b53fc840acc1bf09eb244812212a0134629fbd | 11,030 | py | Python | tests/test_transforms/test_encoders/test_categorical_transform.py | Pacman1984/etna | 9b3ccb980e576d56858f14aca2e06ce2957b0fa9 | [
"Apache-2.0"
] | 96 | 2021-09-05T06:29:34.000Z | 2021-11-07T15:22:54.000Z | tests/test_transforms/test_encoders/test_categorical_transform.py | Pacman1984/etna | 9b3ccb980e576d56858f14aca2e06ce2957b0fa9 | [
"Apache-2.0"
] | 188 | 2021-09-06T15:59:58.000Z | 2021-11-17T09:34:16.000Z | tests/test_transforms/test_encoders/test_categorical_transform.py | Pacman1984/etna | 9b3ccb980e576d56858f14aca2e06ce2957b0fa9 | [
"Apache-2.0"
] | 8 | 2021-09-06T09:18:35.000Z | 2021-11-11T21:18:39.000Z | import numpy as np
import pandas as pd
import pytest
from etna.datasets import TSDataset
from etna.datasets import generate_ar_df
from etna.datasets import generate_const_df
from etna.datasets import generate_periodic_df
from etna.metrics import R2
from etna.models import LinearPerSegmentModel
from etna.transforms imp... | 44.837398 | 114 | 0.685766 | 1,691 | 11,030 | 4.176818 | 0.096393 | 0.013592 | 0.105904 | 0.014725 | 0.734249 | 0.696446 | 0.630469 | 0.594082 | 0.556987 | 0.530653 | 0 | 0.061487 | 0.161015 | 11,030 | 245 | 115 | 45.020408 | 0.701751 | 0.050771 | 0 | 0.406091 | 1 | 0 | 0.13018 | 0 | 0 | 0 | 0 | 0 | 0.040609 | 1 | 0.076142 | false | 0 | 0.060914 | 0.005076 | 0.167513 | 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 |
52b58fbb3b5abd32caee769dd685ed00d95121c9 | 1,467 | py | Python | platform/core/polyaxon/db/migrations/0017_auto_20190104_2032.py | hackerwins/polyaxon | ff56a098283ca872abfbaae6ba8abba479ffa394 | [
"Apache-2.0"
] | null | null | null | platform/core/polyaxon/db/migrations/0017_auto_20190104_2032.py | hackerwins/polyaxon | ff56a098283ca872abfbaae6ba8abba479ffa394 | [
"Apache-2.0"
] | null | null | null | platform/core/polyaxon/db/migrations/0017_auto_20190104_2032.py | hackerwins/polyaxon | ff56a098283ca872abfbaae6ba8abba479ffa394 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.1.3 on 2019-01-04 20:32
import django.contrib.postgres.fields.jsonb
from django.db import migrations, models
import libs.spec_validation
class Migration(migrations.Migration):
dependencies = [
('db', '0016_experimentjob_sequence_and_deleted_flag_tpu_resources'),
]
operat... | 35.780488 | 192 | 0.641445 | 153 | 1,467 | 6 | 0.424837 | 0.04902 | 0.068627 | 0.088235 | 0.647059 | 0.6122 | 0.579521 | 0.579521 | 0.48366 | 0.48366 | 0 | 0.023466 | 0.244717 | 1,467 | 40 | 193 | 36.675 | 0.805054 | 0.030675 | 0 | 0.558824 | 1 | 0 | 0.132394 | 0.040845 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.088235 | 0 | 0.176471 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
52b68564244ef7d53bf8d8e23a3a806ccdf7449e | 544 | py | Python | webserver/testserver/main/urls.py | frankovacevich/aleph | 9b01dcabf3c074e8617e50fffd35c9ee1960eab6 | [
"MIT"
] | null | null | null | webserver/testserver/main/urls.py | frankovacevich/aleph | 9b01dcabf3c074e8617e50fffd35c9ee1960eab6 | [
"MIT"
] | null | null | null | webserver/testserver/main/urls.py | frankovacevich/aleph | 9b01dcabf3c074e8617e50fffd35c9ee1960eab6 | [
"MIT"
] | null | null | null | from django.urls import path
from . import views
urlpatterns = [
path('', views.index, name='index'),
path('home', views.home, name='home'),
path('login', views.ulogin, name='login'),
path('logout', views.ulogout, name='logout'),
path('password_change', views.password_change, name='password_change... | 30.222222 | 75 | 0.650735 | 67 | 544 | 5.223881 | 0.343284 | 0.12 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.150735 | 544 | 18 | 76 | 30.222222 | 0.757576 | 0.261029 | 0 | 0 | 0 | 0 | 0.203008 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.1 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
52b72cd9290f8164c698fae5869224cfa6d4ff36 | 8,603 | py | Python | exporter.py | mrDoctorWho/VK-Exporter | ecdcc818b2b375b2a42f0b106706c62cf833e1c4 | [
"MIT"
] | 9 | 2015-01-16T09:24:47.000Z | 2021-04-29T15:41:56.000Z | exporter.py | mrDoctorWho/VK-Exporter | ecdcc818b2b375b2a42f0b106706c62cf833e1c4 | [
"MIT"
] | 5 | 2018-04-02T05:50:20.000Z | 2018-06-05T23:40:35.000Z | exporter.py | mrDoctorWho/VK-Exporter | ecdcc818b2b375b2a42f0b106706c62cf833e1c4 | [
"MIT"
] | 1 | 2019-10-23T05:29:20.000Z | 2019-10-23T05:29:20.000Z | #!/usr/bin/env python2
# coding: utf-8
# based on the vk4xmpp gateway, v2.25
# © simpleApps, 2013 — 2014.
# Program published under MIT license.
import gc
import json
import logging
import os
import re
import signal
import sys
import threading
import time
import urllib
core = getattr(sys.modules["__main__"], "__file... | 26.884375 | 150 | 0.683018 | 1,222 | 8,603 | 4.762684 | 0.320786 | 0.015464 | 0.013402 | 0.007216 | 0.025773 | 0.009622 | 0 | 0 | 0 | 0 | 0 | 0.012274 | 0.176101 | 8,603 | 320 | 151 | 26.884375 | 0.80855 | 0.039405 | 0 | 0.159624 | 0 | 0 | 0.162253 | 0.004974 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.075117 | null | null | 0.018779 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
52ba39cbc7fb572147ab2b78903b1a54e6357b9c | 11,085 | py | Python | rump/rule.py | bninja/rump | 3b6c4ff29974b3c04a260d8275567beebb296e5d | [
"0BSD"
] | 6 | 2015-07-27T09:02:36.000Z | 2018-07-18T11:11:33.000Z | rump/rule.py | bninja/rump | 3b6c4ff29974b3c04a260d8275567beebb296e5d | [
"0BSD"
] | null | null | null | rump/rule.py | bninja/rump | 3b6c4ff29974b3c04a260d8275567beebb296e5d | [
"0BSD"
] | null | null | null | import collections
import logging
import StringIO
from . import exc, Request, Expression
logger = logging.getLogger(__name__)
class CompiledRule(object):
"""
Compiled version of a routing rule.
`symbols`
A `rump.fields.Symbols` table used to store symbolic information used
in the compi... | 29.959459 | 80 | 0.564727 | 1,245 | 11,085 | 4.909237 | 0.163052 | 0.014725 | 0.014889 | 0.017997 | 0.464005 | 0.4393 | 0.424902 | 0.387598 | 0.358639 | 0.353076 | 0 | 0.002462 | 0.34055 | 11,085 | 369 | 81 | 30.04065 | 0.833653 | 0.003157 | 0 | 0.434978 | 0 | 0 | 0.044916 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.022422 | 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 |
52bde9994c231b7dab0757f34ebf002f12e33370 | 951 | py | Python | tests/__init__.py | adelosa/cardutil | fa31223aaac1f0749d50368bb639a311d98e279a | [
"MIT"
] | null | null | null | tests/__init__.py | adelosa/cardutil | fa31223aaac1f0749d50368bb639a311d98e279a | [
"MIT"
] | 1 | 2022-03-25T20:15:24.000Z | 2022-03-30T09:20:34.000Z | tests/__init__.py | adelosa/cardutil | fa31223aaac1f0749d50368bb639a311d98e279a | [
"MIT"
] | null | null | null | import binascii
def print_stream(stream, description):
stream.seek(0)
data = stream.read()
print('***' + description + '***')
print(data)
stream.seek(0)
def test_message(encoding='ascii', hex_bitmap=False):
binary_bitmap = b'\xF0\x10\x05\x42\x84\x61\x80\x02\x02\x00\x00\x04\x00\x00\x00\x00'
... | 32.793103 | 95 | 0.729758 | 105 | 951 | 6.390476 | 0.457143 | 0.081967 | 0.032787 | 0.050671 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.274314 | 0.156677 | 951 | 28 | 96 | 33.964286 | 0.562344 | 0 | 0 | 0.090909 | 0 | 0.045455 | 0.324921 | 0.254469 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.045455 | 0 | 0.181818 | 0.136364 | 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 |
52bf9e552405d6d0c21e5f6ccdaebea54d983579 | 2,089 | py | Python | management/commands/start_taskforce.py | mallipeddi/django-taskforce | dd7aa1eae508b15428dd0fe9c2be969a75038890 | [
"BSD-3-Clause"
] | 3 | 2015-11-05T06:07:22.000Z | 2021-11-08T11:21:51.000Z | management/commands/start_taskforce.py | mallipeddi/django-taskforce | dd7aa1eae508b15428dd0fe9c2be969a75038890 | [
"BSD-3-Clause"
] | null | null | null | management/commands/start_taskforce.py | mallipeddi/django-taskforce | dd7aa1eae508b15428dd0fe9c2be969a75038890 | [
"BSD-3-Clause"
] | null | null | null | import sys
from optparse import make_option
from django.core.management.base import BaseCommand
from django.conf import settings
import taskforce
class Command(BaseCommand):
option_list = BaseCommand.option_list + (
make_option('--verbose', action='store_true', dest='verbose',
help = 'Verbose... | 36.017241 | 107 | 0.581618 | 232 | 2,089 | 5.073276 | 0.418103 | 0.033985 | 0.035684 | 0.032285 | 0.056075 | 0.056075 | 0 | 0 | 0 | 0 | 0 | 0.004141 | 0.306367 | 2,089 | 57 | 108 | 36.649123 | 0.808144 | 0.012925 | 0 | 0.043478 | 0 | 0 | 0.166019 | 0.021359 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.173913 | null | null | 0.021739 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
52c00979320f1e4a0f34214d8d935b0833088713 | 521 | py | Python | profiles/migrations/0004_profile_smapply_user_data.py | umarmughal824/bootcamp-ecommerce | 681bcc788a66867b8f240790c0ed33680b73932b | [
"BSD-3-Clause"
] | 2 | 2018-06-20T19:37:03.000Z | 2021-01-06T09:51:40.000Z | profiles/migrations/0004_profile_smapply_user_data.py | mitodl/bootcamp-ecommerce | ba7d6aefe56c6481ae2a5afc84cdd644538b6d50 | [
"BSD-3-Clause"
] | 1,226 | 2017-02-23T14:52:28.000Z | 2022-03-29T13:19:54.000Z | profiles/migrations/0004_profile_smapply_user_data.py | umarmughal824/bootcamp-ecommerce | 681bcc788a66867b8f240790c0ed33680b73932b | [
"BSD-3-Clause"
] | 3 | 2017-03-20T03:51:27.000Z | 2021-03-19T15:54:31.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.20 on 2019-09-13 18:42
from __future__ import unicode_literals
import django.contrib.postgres.fields.jsonb
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [("profiles", "0003_profile_smapply_id")]
operations = [
... | 26.05 | 88 | 0.677543 | 62 | 521 | 5.516129 | 0.725806 | 0.076023 | 0.122807 | 0.157895 | 0.187135 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053269 | 0.207294 | 521 | 19 | 89 | 27.421053 | 0.774818 | 0.132438 | 0 | 0 | 1 | 0 | 0.122494 | 0.051225 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
52c0834ff93f1ed8d51ad80ac5952cb23df17269 | 250 | py | Python | Lists/list_of_beggars.py | petel3/Softuni_education | 4fd80f8c6ce6c3d6a838edecdb091dda2ed1084c | [
"MIT"
] | 2 | 2022-03-05T13:17:12.000Z | 2022-03-05T13:17:16.000Z | Lists/list_of_beggars.py | petel3/Softuni_education | 4fd80f8c6ce6c3d6a838edecdb091dda2ed1084c | [
"MIT"
] | null | null | null | Lists/list_of_beggars.py | petel3/Softuni_education | 4fd80f8c6ce6c3d6a838edecdb091dda2ed1084c | [
"MIT"
] | null | null | null | string = input().split(", ")
beggars = int(input())
beggars_list = []
for x in range(0, beggars):
temp = string[x::beggars]
for j in range(0, len(temp)):
temp[j] = int(temp[j])
beggars_list.append(sum(temp))
print(beggars_list) | 20.833333 | 34 | 0.616 | 38 | 250 | 3.973684 | 0.447368 | 0.218543 | 0.10596 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01 | 0.2 | 250 | 12 | 35 | 20.833333 | 0.745 | 0 | 0 | 0 | 0 | 0 | 0.007968 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.111111 | 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 |
52c2f493c965a91dab85655d544b65075ea9b225 | 1,978 | py | Python | python/locate_2D_array1.py | leewalter/coding | 2afd9dbfc1ecb94def35b953f4195a310d6953c9 | [
"Apache-2.0"
] | null | null | null | python/locate_2D_array1.py | leewalter/coding | 2afd9dbfc1ecb94def35b953f4195a310d6953c9 | [
"Apache-2.0"
] | null | null | null | python/locate_2D_array1.py | leewalter/coding | 2afd9dbfc1ecb94def35b953f4195a310d6953c9 | [
"Apache-2.0"
] | 1 | 2020-08-29T17:12:52.000Z | 2020-08-29T17:12:52.000Z | # python to locate 1 in a 2D array
#below save it into a dictionary
# python to locate 1 in a 2D array
def check_zero(array1):
d = {}
print("array index zeros at:")
for i in range(len(array1)):
index = [k for k, v in enumerate(array1[i]) if v == 0]
d[i] = index
#print(i, index)
... | 14.87218 | 101 | 0.532356 | 378 | 1,978 | 2.767196 | 0.193122 | 0.055449 | 0.054493 | 0.034417 | 0.513384 | 0.508604 | 0.507648 | 0.507648 | 0.459847 | 0.440727 | 0 | 0.12731 | 0.261375 | 1,978 | 132 | 102 | 14.984848 | 0.588638 | 0.120829 | 0 | 0.711111 | 0 | 0 | 0.043121 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044444 | false | 0 | 0 | 0 | 0.044444 | 0.133333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
52c49ba6e0f3c37a7b4d0399f526ea22dc7636df | 7,711 | py | Python | fib_optimizer/fib_optimizer.py | dbarrosop/sir_tools | 0c325eb8ea9667ecdc9da4f524ef2224b098fc81 | [
"Apache-2.0"
] | 9 | 2015-09-13T20:00:52.000Z | 2018-04-04T09:07:55.000Z | fib_optimizer/fib_optimizer.py | dbarrosop/sir_tools | 0c325eb8ea9667ecdc9da4f524ef2224b098fc81 | [
"Apache-2.0"
] | 2 | 2015-09-28T14:12:41.000Z | 2017-03-02T16:29:48.000Z | fib_optimizer/fib_optimizer.py | dbarrosop/sir_tools | 0c325eb8ea9667ecdc9da4f524ef2224b098fc81 | [
"Apache-2.0"
] | 5 | 2015-09-28T13:54:02.000Z | 2016-04-19T23:50:34.000Z | #!/usr/bin/env python
from pySIR.pySIR import pySIR
import argparse
import datetime
import json
import os
import shlex
import subprocess
import sys
import time
import logging
logger = logging.getLogger('fib_optimizer')
log_format = '%(asctime)s - %(name)s - %(levelname)s - %(message)s'
logging.basicConfig(level=log... | 30.844 | 117 | 0.606925 | 1,082 | 7,711 | 4.11183 | 0.213494 | 0.032142 | 0.008092 | 0.016183 | 0.244999 | 0.235783 | 0.20499 | 0.142953 | 0.111486 | 0.090357 | 0 | 0.011478 | 0.265595 | 7,711 | 249 | 118 | 30.967871 | 0.774148 | 0.068863 | 0 | 0.132353 | 0 | 0.014706 | 0.199665 | 0.01474 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.073529 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
52c9891e030597761f62c3109bb03c2ff213dd4d | 281 | py | Python | intro/hello.py | ANU-WALD/acawsi | f6f340b59de8814173ab7dc8195c0fced53e652e | [
"MIT"
] | 1 | 2020-02-03T03:05:44.000Z | 2020-02-03T03:05:44.000Z | intro/hello.py | ANU-WALD/acawsi | f6f340b59de8814173ab7dc8195c0fced53e652e | [
"MIT"
] | null | null | null | intro/hello.py | ANU-WALD/acawsi | f6f340b59de8814173ab7dc8195c0fced53e652e | [
"MIT"
] | null | null | null |
name = "Sharalanda"
age = 10
hobbies = ["draw", "swim", "dance"]
address = {"city": "Sebastopol", "Post Code": 1234, "country": "Enchantia"}
print("My name is", name)
print("I am", age, "years old")
print("My favourite hobbie is", hobbies[0])
print("I live in", address["city"])
| 25.545455 | 75 | 0.637011 | 40 | 281 | 4.475 | 0.7 | 0.122905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029046 | 0.142349 | 281 | 10 | 76 | 28.1 | 0.713693 | 0 | 0 | 0 | 0 | 0 | 0.428571 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
52ca2cad175cb01038bfad01648331f9f620e47e | 537 | py | Python | python/array/1550_three_consecutive_odds.py | linshaoyong/leetcode | ea052fad68a2fe0cbfa5469398508ec2b776654f | [
"MIT"
] | 6 | 2019-07-15T13:23:57.000Z | 2020-01-22T03:12:01.000Z | python/array/1550_three_consecutive_odds.py | linshaoyong/leetcode | ea052fad68a2fe0cbfa5469398508ec2b776654f | [
"MIT"
] | null | null | null | python/array/1550_three_consecutive_odds.py | linshaoyong/leetcode | ea052fad68a2fe0cbfa5469398508ec2b776654f | [
"MIT"
] | 1 | 2019-07-24T02:15:31.000Z | 2019-07-24T02:15:31.000Z | class Solution(object):
def threeConsecutiveOdds(self, arr):
"""
:type arr: List[int]
:rtype: bool
"""
odds = 0
for a in arr:
if a % 2 == 1:
odds += 1
if odds >= 3:
return True
else:
... | 23.347826 | 65 | 0.463687 | 63 | 537 | 3.904762 | 0.603175 | 0.04065 | 0.219512 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 0.426443 | 537 | 22 | 66 | 24.409091 | 0.727273 | 0.061453 | 0 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 1 | 0.133333 | false | 0 | 0 | 0 | 0.333333 | 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 |
52cf7e995d7f53da62cf8abc38f6b4412b3b46df | 717 | py | Python | test/manager_drmaa_test.py | jmchilton/pulsar | 783b90cf0bce893a11c347fcaf6778b98e0bb062 | [
"Apache-2.0"
] | null | null | null | test/manager_drmaa_test.py | jmchilton/pulsar | 783b90cf0bce893a11c347fcaf6778b98e0bb062 | [
"Apache-2.0"
] | null | null | null | test/manager_drmaa_test.py | jmchilton/pulsar | 783b90cf0bce893a11c347fcaf6778b98e0bb062 | [
"Apache-2.0"
] | null | null | null | from .test_utils import (
BaseManagerTestCase,
skip_unless_module
)
from pulsar.managers.queued_drmaa import DrmaaQueueManager
class DrmaaManagerTest(BaseManagerTestCase):
def setUp(self):
super(DrmaaManagerTest, self).setUp()
self._set_manager()
def tearDown(self):
super(Dr... | 24.724138 | 71 | 0.701534 | 78 | 717 | 6.166667 | 0.384615 | 0.091476 | 0.099792 | 0.120582 | 0.274428 | 0.274428 | 0 | 0 | 0 | 0 | 0 | 0 | 0.193863 | 717 | 28 | 72 | 25.607143 | 0.83218 | 0 | 0 | 0.2 | 0 | 0 | 0.026499 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.1 | 0 | 0.4 | 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 |
52dbfba445e18389a6ca13cbc5580b99d308ec2f | 208 | py | Python | html/semantics/scripting-1/the-script-element/module/resources/delayed-modulescript.py | meyerweb/wpt | f04261533819893c71289614c03434c06856c13e | [
"BSD-3-Clause"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | html/semantics/scripting-1/the-script-element/module/resources/delayed-modulescript.py | meyerweb/wpt | f04261533819893c71289614c03434c06856c13e | [
"BSD-3-Clause"
] | 7,642 | 2018-05-28T09:38:03.000Z | 2022-03-31T20:55:48.000Z | html/semantics/scripting-1/the-script-element/module/resources/delayed-modulescript.py | meyerweb/wpt | f04261533819893c71289614c03434c06856c13e | [
"BSD-3-Clause"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | import time
def main(request, response):
delay = float(request.GET.first(b"ms", 500))
time.sleep(delay / 1E3)
return [(b"Content-type", b"text/javascript")], u"export let delayedLoaded = true;"
| 26 | 87 | 0.673077 | 30 | 208 | 4.666667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028736 | 0.163462 | 208 | 7 | 88 | 29.714286 | 0.775862 | 0 | 0 | 0 | 0 | 0 | 0.293269 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
52e56046055c96a92245aac6c622f673ad51945f | 1,962 | py | Python | tests/test_dork_erd.py | msudenvercs/Dork | 601cbb21398ac8edf5e688db2089ed8805bbdf00 | [
"MIT"
] | 1 | 2021-04-04T20:40:18.000Z | 2021-04-04T20:40:18.000Z | tests/test_dork_erd.py | msudenvercs/Dork | 601cbb21398ac8edf5e688db2089ed8805bbdf00 | [
"MIT"
] | 4 | 2019-06-04T00:59:46.000Z | 2019-06-08T17:22:19.000Z | tests/test_dork_erd.py | zenostrash/dork | 601cbb21398ac8edf5e688db2089ed8805bbdf00 | [
"MIT"
] | 4 | 2019-05-29T04:56:28.000Z | 2019-05-30T18:17:55.000Z | # -*- coding: utf-8 -*-
"""Basic tests for state and entity relationships in dork
"""
import dork.types
from tests.utils import has_many, is_a
def test_items_exist():
"""the dork module should define an Item
"""
assert "Item" in vars(dork.types)
is_a(dork.types.Item, type)
def test_holders_exist():
... | 23.082353 | 71 | 0.664628 | 301 | 1,962 | 4.162791 | 0.166113 | 0.179569 | 0.062251 | 0.090982 | 0.466879 | 0.400638 | 0.284118 | 0.12929 | 0 | 0 | 0 | 0.000639 | 0.201835 | 1,962 | 84 | 72 | 23.357143 | 0.799489 | 0.292559 | 0 | 0 | 0 | 0 | 0.062831 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 1 | 0.363636 | false | 0 | 0.060606 | 0 | 0.424242 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
52e589ec26ec934cedbbb77cf5a8fda7e7d9cd96 | 1,115 | py | Python | woffle/data/parse.py | Finnkauski/woffle | 746ceb22ef03232f7963db6f7fb2f95fe0164a07 | [
"MIT"
] | null | null | null | woffle/data/parse.py | Finnkauski/woffle | 746ceb22ef03232f7963db6f7fb2f95fe0164a07 | [
"MIT"
] | null | null | null | woffle/data/parse.py | Finnkauski/woffle | 746ceb22ef03232f7963db6f7fb2f95fe0164a07 | [
"MIT"
] | null | null | null | """
text cleaning
"""
#-- Imports ---------------------------------------------------------------------
# base
import functools
import re
# third party
import toml
# project
from woffle.functions.compose import compose
#-- Definitions -----------------------------------------------------------------
#-- cleaning
#... | 24.23913 | 81 | 0.528251 | 121 | 1,115 | 4.867769 | 0.578512 | 0.081494 | 0.037351 | 0.044143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1,115 | 45 | 82 | 24.777778 | 0.660314 | 0.423318 | 0 | 0 | 0 | 0 | 0.036741 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.210526 | 0.105263 | 0.421053 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
52edcb7aea820f4031994c44df4c877102b60d05 | 385 | py | Python | Chapter 4 - Lists & Tuples/01_list.py | alex-dsouza777/Python-Basics | 8f1c406f2319cd65b5d54dfea990d09fa69d9adf | [
"MIT"
] | null | null | null | Chapter 4 - Lists & Tuples/01_list.py | alex-dsouza777/Python-Basics | 8f1c406f2319cd65b5d54dfea990d09fa69d9adf | [
"MIT"
] | null | null | null | Chapter 4 - Lists & Tuples/01_list.py | alex-dsouza777/Python-Basics | 8f1c406f2319cd65b5d54dfea990d09fa69d9adf | [
"MIT"
] | 1 | 2021-04-21T10:23:08.000Z | 2021-04-21T10:23:08.000Z | #Create a list using []
a = [1,2,3,7,66]
#print the list using print() function
print(a)
#Access using index using a[0], a[1], ....
print(a[2])
#Changing the value of the list
a[0] = 777
print(a)
#We can create a list with items of different type
b = [77,"Root",False,6.9]
print(b)
#List Slicing
friends = ["Root","... | 16.73913 | 50 | 0.649351 | 73 | 385 | 3.424658 | 0.520548 | 0.072 | 0.088 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067692 | 0.155844 | 385 | 22 | 51 | 17.5 | 0.701538 | 0.496104 | 0 | 0.2 | 0 | 0 | 0.106952 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.6 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
52fa77fc729c94ac81a3d83288fe663868091162 | 5,421 | py | Python | 2parser/word_lists.py | formalabstracts/CNL-CIC | c857ee0d52b4ba91dd06a51c8f9f3ec2749ca0eb | [
"MIT"
] | 14 | 2019-06-27T16:34:39.000Z | 2021-01-07T18:13:04.000Z | 2parser/word_lists.py | formalabstracts/CNL-CIC | c857ee0d52b4ba91dd06a51c8f9f3ec2749ca0eb | [
"MIT"
] | 8 | 2019-10-17T06:09:51.000Z | 2020-03-25T15:51:32.000Z | 2parser/word_lists.py | formalabstracts/CNL-CIC | c857ee0d52b4ba91dd06a51c8f9f3ec2749ca0eb | [
"MIT"
] | 17 | 2019-06-27T16:34:53.000Z | 2020-08-15T01:30:32.000Z | singular = [
'this','as','is','thesis','hypothesis','less','obvious','us','yes','cos',
'always','perhaps','alias','plus','apropos',
'was','its','bus','his','is','us',
'this','thus','axis','bias','minus','basis',
'praxis','status','modulus','analysis',
'aparatus'
]
invariable = [ #frozen_li... | 47.13913 | 92 | 0.635307 | 658 | 5,421 | 5.121581 | 0.575988 | 0.007122 | 0.014243 | 0.009496 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12636 | 5,421 | 114 | 93 | 47.552632 | 0.711571 | 0.057738 | 0 | 0 | 0 | 0 | 0.650196 | 0.06451 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.029126 | 0 | 0.029126 | 0.009709 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
52fc73cfa1b8ed4c7016c7ea3dfc2e30bd7fa214 | 548 | py | Python | answers/leetcode/Summary Ranges/Summary Ranges.py | FeiZhan/Algo-Collection | 708c4a38112e0b381864809788b9e44ac5ae4d05 | [
"MIT"
] | 3 | 2015-09-04T21:32:31.000Z | 2020-12-06T00:37:32.000Z | answers/leetcode/Summary Ranges/Summary Ranges.py | FeiZhan/Algo-Collection | 708c4a38112e0b381864809788b9e44ac5ae4d05 | [
"MIT"
] | null | null | null | answers/leetcode/Summary Ranges/Summary Ranges.py | FeiZhan/Algo-Collection | 708c4a38112e0b381864809788b9e44ac5ae4d05 | [
"MIT"
] | null | null | null | class Solution(object):
def summaryRanges(self, nums):
"""
:type nums: List[int]
:rtype: List[str]
"""
range_list = []
for i in range(len(nums)):
if i > 0 and nums[i - 1] + 1 == nums[i]:
range_list[-1][1] = nums[i]
else:
... | 34.25 | 155 | 0.492701 | 78 | 548 | 3.333333 | 0.307692 | 0.276923 | 0.153846 | 0.123077 | 0.107692 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024523 | 0.330292 | 548 | 15 | 156 | 36.533333 | 0.683924 | 0.071168 | 0 | 0 | 0 | 0 | 0.004193 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
52fddc869556dcf56427929cc447dd8453bf656c | 789 | py | Python | amplpy/tests/TestBase.py | dish59742/amplpy | 9309a947b74dcc524a07809a68bf32d93e9f0a48 | [
"BSD-3-Clause"
] | null | null | null | amplpy/tests/TestBase.py | dish59742/amplpy | 9309a947b74dcc524a07809a68bf32d93e9f0a48 | [
"BSD-3-Clause"
] | 4 | 2021-06-08T22:16:26.000Z | 2022-03-12T00:48:56.000Z | amplpy/tests/TestBase.py | dish59742/amplpy | 9309a947b74dcc524a07809a68bf32d93e9f0a48 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function, absolute_import, division
from builtins import map, range, object, zip, sorted
from .context import amplpy
import unittest
import tempfile
import shutil
import os
class TestBase(unittest.TestCase):
def setUp(self):
self.... | 23.205882 | 64 | 0.665399 | 97 | 789 | 5.268041 | 0.56701 | 0.064579 | 0.046967 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003273 | 0.225602 | 789 | 33 | 65 | 23.909091 | 0.833061 | 0.053232 | 0 | 0 | 0 | 0 | 0.012081 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173913 | false | 0 | 0.304348 | 0.043478 | 0.608696 | 0.086957 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
52fea36dd1d5595eb45032e212c7c224730f7fd2 | 2,179 | py | Python | week2/decrypt.py | vtnil/Cryptography-I-Homework | 1f2bcce5ecfdf8472ddaaaa45eb25266f0279224 | [
"MIT"
] | null | null | null | week2/decrypt.py | vtnil/Cryptography-I-Homework | 1f2bcce5ecfdf8472ddaaaa45eb25266f0279224 | [
"MIT"
] | 1 | 2020-07-31T05:21:07.000Z | 2020-10-23T17:28:12.000Z | week2/decrypt.py | vtnil/Cryptography-I-Homework | 1f2bcce5ecfdf8472ddaaaa45eb25266f0279224 | [
"MIT"
] | null | null | null | # vtnil write for Cryptography1 week2 homework
# ppt https://crypto.stanford.edu/~dabo/cs255/lectures/PRP-PRF.pdf
from Crypto.Cipher import AES
from binascii import a2b_hex
from math import ceil
questions = [
{"key": "140b41b22a29beb4061bda66b6747e14",
"ct": "4ca00ff4c898d61e1edbf1800618fb2828a226d160dad0... | 33.523077 | 167 | 0.679211 | 226 | 2,179 | 6.362832 | 0.345133 | 0.075104 | 0.030598 | 0.022949 | 0.098748 | 0.03338 | 0.03338 | 0.03338 | 0.03338 | 0 | 0 | 0.236135 | 0.197338 | 2,179 | 64 | 168 | 34.046875 | 0.586049 | 0.071592 | 0 | 0.136364 | 0 | 0 | 0.329534 | 0.311199 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022727 | false | 0 | 0.068182 | 0 | 0.113636 | 0.090909 | 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 |
5e043abcf5a29bdcffd9f45c532c8fa1ae641968 | 311 | py | Python | alpyro_msgs/actionlib/testrequestresult.py | rho2/alpyro_msgs | b5a680976c40c83df70d61bb2db1de32a1cde8d3 | [
"MIT"
] | 1 | 2020-12-13T13:07:10.000Z | 2020-12-13T13:07:10.000Z | alpyro_msgs/actionlib/testrequestresult.py | rho2/alpyro_msgs | b5a680976c40c83df70d61bb2db1de32a1cde8d3 | [
"MIT"
] | null | null | null | alpyro_msgs/actionlib/testrequestresult.py | rho2/alpyro_msgs | b5a680976c40c83df70d61bb2db1de32a1cde8d3 | [
"MIT"
] | null | null | null | from alpyro_msgs import RosMessage, boolean, int32
class TestRequestResult(RosMessage):
__msg_typ__ = "actionlib/TestRequestResult"
__msg_def__ = "aW50MzIgdGhlX3Jlc3VsdApib29sIGlzX3NpbXBsZV9zZXJ2ZXIKCg=="
__md5_sum__ = "61c2364524499c7c5017e2f3fce7ba06"
the_result: int32
is_simple_server: boolean
| 28.272727 | 74 | 0.829582 | 27 | 311 | 8.851852 | 0.814815 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.129964 | 0.109325 | 311 | 10 | 75 | 31.1 | 0.732852 | 0 | 0 | 0 | 0 | 0 | 0.369775 | 0.369775 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5e0b345e85244d00d3751d3404f05d4e2bfd639f | 269 | py | Python | bo/files/applicant/registulang/fileupload/pdf2txt/main.py | isoneday/KMS | 7d27e16af7626afd27a0980735985f5f2590f500 | [
"MIT"
] | null | null | null | bo/files/applicant/registulang/fileupload/pdf2txt/main.py | isoneday/KMS | 7d27e16af7626afd27a0980735985f5f2590f500 | [
"MIT"
] | null | null | null | bo/files/applicant/registulang/fileupload/pdf2txt/main.py | isoneday/KMS | 7d27e16af7626afd27a0980735985f5f2590f500 | [
"MIT"
] | null | null | null | from src import mining
from tkinter import filedialog
from PyQt4 import QtGui
dir=filedialog.askdirectory()
direcciones, nomArchivo = mining.path(dir)
cont=mining.coincidencias(direcciones,nomArchivo)
for i in range(len(nomArchivo)):
print(nomArchivo[i],cont[i]) | 24.454545 | 49 | 0.795539 | 36 | 269 | 5.944444 | 0.583333 | 0.196262 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004167 | 0.107807 | 269 | 11 | 50 | 24.454545 | 0.8875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
5e0cdea905b5b41aac70d7b34ce67692a178cd47 | 455 | py | Python | ip_system/models.py | 9dev/django-ip-system | 8d53fea89c0fcef3bdea27a893ce6a484b8b900a | [
"MIT"
] | null | null | null | ip_system/models.py | 9dev/django-ip-system | 8d53fea89c0fcef3bdea27a893ce6a484b8b900a | [
"MIT"
] | null | null | null | ip_system/models.py | 9dev/django-ip-system | 8d53fea89c0fcef3bdea27a893ce6a484b8b900a | [
"MIT"
] | null | null | null | from django.db import models
from .utils import get_ip_from_request
class Ip(models.Model):
address = models.GenericIPAddressField(unique=True, db_index=True)
@classmethod
def get_or_create(cls, request):
raw_ip = get_ip_from_request(request)
if not raw_ip:
return None
... | 22.75 | 70 | 0.679121 | 62 | 455 | 4.612903 | 0.483871 | 0.052448 | 0.062937 | 0.111888 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.241758 | 455 | 19 | 71 | 23.947368 | 0.828986 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.153846 | 0.076923 | 0.692308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
5e0ee7490d2f9d87de60db0d3047b19a4411a85c | 1,267 | py | Python | binary_tree/tests/m_create_from_pre_in_test.py | dhrubach/python-code-recipes | 14356c6adb1946417482eaaf6f42dde4b8351d2f | [
"MIT"
] | null | null | null | binary_tree/tests/m_create_from_pre_in_test.py | dhrubach/python-code-recipes | 14356c6adb1946417482eaaf6f42dde4b8351d2f | [
"MIT"
] | null | null | null | binary_tree/tests/m_create_from_pre_in_test.py | dhrubach/python-code-recipes | 14356c6adb1946417482eaaf6f42dde4b8351d2f | [
"MIT"
] | null | null | null | from binary_tree.m_create_from_pre_in import BinaryTree
class TestBinaryTree:
def test_lc_data_1(self):
bt = BinaryTree()
preorder = [3, 9, 20, 15, 7]
inorder = [9, 3, 15, 20, 7]
ans = bt.buildFromPreInOrder(preorder=preorder, inorder=inorder)
assert ans.val == 3
a... | 29.465116 | 81 | 0.573796 | 177 | 1,267 | 4.028249 | 0.19774 | 0.151473 | 0.098177 | 0.168303 | 0.650771 | 0.621318 | 0.562412 | 0.562412 | 0.562412 | 0.562412 | 0 | 0.08371 | 0.302289 | 1,267 | 42 | 82 | 30.166667 | 0.722851 | 0 | 0 | 0.53125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.375 | 1 | 0.09375 | false | 0 | 0.03125 | 0 | 0.15625 | 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 |
5e15026007a09207c6424778c0b96d54f0620c12 | 1,725 | py | Python | tests/events/events_client_test.py | riaz-bordie-cko/checkout-sdk-python | d9bc073306c1a98544c326be693ed722576ea895 | [
"MIT"
] | null | null | null | tests/events/events_client_test.py | riaz-bordie-cko/checkout-sdk-python | d9bc073306c1a98544c326be693ed722576ea895 | [
"MIT"
] | null | null | null | tests/events/events_client_test.py | riaz-bordie-cko/checkout-sdk-python | d9bc073306c1a98544c326be693ed722576ea895 | [
"MIT"
] | null | null | null | import pytest
from checkout_sdk.events.events import RetrieveEventsRequest
from checkout_sdk.events.events_client import EventsClient
@pytest.fixture(scope='class')
def client(mock_sdk_configuration, mock_api_client):
return EventsClient(api_client=mock_api_client, configuration=mock_sdk_configuration)
class T... | 46.621622 | 94 | 0.762899 | 207 | 1,725 | 6.057971 | 0.178744 | 0.064593 | 0.076555 | 0.133971 | 0.653908 | 0.5311 | 0.5311 | 0.5311 | 0.5311 | 0.5311 | 0 | 0 | 0.128696 | 1,725 | 36 | 95 | 47.916667 | 0.834331 | 0 | 0 | 0.24 | 0 | 0 | 0.221449 | 0.129855 | 0 | 0 | 0 | 0 | 0.24 | 1 | 0.28 | false | 0 | 0.12 | 0.04 | 0.48 | 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 |
5e18e6288b6b07a784cee38e7f2cbe8ce2280ae9 | 548 | py | Python | crawler_main.py | yangwenke2010/template_crawler | b95e626184cda21d2abe01fd1f2b399e4946e782 | [
"Apache-2.0"
] | 4 | 2018-12-16T15:06:20.000Z | 2022-03-09T11:18:11.000Z | crawler_main.py | yangwenke2010/template_crawler | b95e626184cda21d2abe01fd1f2b399e4946e782 | [
"Apache-2.0"
] | 1 | 2018-10-12T07:32:13.000Z | 2018-10-12T07:32:13.000Z | crawler_main.py | yangwenke2010/template_crawler | b95e626184cda21d2abe01fd1f2b399e4946e782 | [
"Apache-2.0"
] | 2 | 2018-10-12T06:58:08.000Z | 2020-03-19T10:44:34.000Z | #!/bin/bash
# -*- coding: utf-8 -*-
# Crawler Main
#
# Author : Tau Woo
# Date : 2018-07-19
from do.crawler import Do
from sys import argv
if __name__ == "__main__":
'''Crawler Main
Start crawl websites with appointed config.
'''
# You will get appointed crawler name from command.
crawl... | 22.833333 | 71 | 0.645985 | 79 | 548 | 4.303797 | 0.594937 | 0.161765 | 0.105882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02619 | 0.233577 | 548 | 23 | 72 | 23.826087 | 0.783333 | 0.458029 | 0 | 0 | 0 | 0 | 0.066038 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5e1c13b5fde8efced653749af34695c0b5d9ba5a | 498 | py | Python | philia-service/wit-service/wit_service.py | BuildForSDGCohort2/masta-backend | 08c20fe910f8ab953714ac72f34cdead7a307bd3 | [
"MIT"
] | 1 | 2020-11-25T12:01:31.000Z | 2020-11-25T12:01:31.000Z | philia-service/wit-service/wit_service.py | BuildForSDGCohort2/masta-backend | 08c20fe910f8ab953714ac72f34cdead7a307bd3 | [
"MIT"
] | 6 | 2020-08-31T12:12:53.000Z | 2020-10-01T13:00:44.000Z | philia-service/wit-service/wit_service.py | BuildForSDGCohort2/masta-backend | 08c20fe910f8ab953714ac72f34cdead7a307bd3 | [
"MIT"
] | 1 | 2020-08-31T15:31:37.000Z | 2020-08-31T15:31:37.000Z | import json
from wit import Wit
access_token = "2PLFUWBVVTYQCSEL6VDJ3AFQLUCTV7ZH"
client = Wit(access_token=access_token)
def wit_handler(event, context):
utterance = 'good morning john'
response = client.message(msg=utterance)
intent = None
entity = None
try:
intent = list(response['inte... | 19.153846 | 49 | 0.63253 | 53 | 498 | 5.867925 | 0.641509 | 0.106109 | 0.090032 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021798 | 0.263052 | 498 | 25 | 50 | 19.92 | 0.825613 | 0 | 0 | 0 | 0 | 0 | 0.156942 | 0.064386 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0.055556 | 0.111111 | 0 | 0.222222 | 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 |
5e25ad68634e5c0fbd0c26e49c6c7143c51f61a8 | 5,292 | py | Python | analytics/settings.py | Kratos-Freyja/analytics | 9de41b990e78e7a7ae912ebecd93fab50cb47320 | [
"MIT"
] | null | null | null | analytics/settings.py | Kratos-Freyja/analytics | 9de41b990e78e7a7ae912ebecd93fab50cb47320 | [
"MIT"
] | null | null | null | analytics/settings.py | Kratos-Freyja/analytics | 9de41b990e78e7a7ae912ebecd93fab50cb47320 | [
"MIT"
] | null | null | null | """
Django settings for analytics project.
Generated by 'django-admin startproject' using Django 1.11.10.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import... | 24.164384 | 92 | 0.655518 | 584 | 5,292 | 5.835616 | 0.392123 | 0.061033 | 0.045188 | 0.05135 | 0.164613 | 0.140258 | 0.080399 | 0.080399 | 0.036092 | 0 | 0 | 0.017824 | 0.183673 | 5,292 | 219 | 93 | 24.164384 | 0.771065 | 0.213152 | 0 | 0.097403 | 1 | 0.006494 | 0.479807 | 0.293833 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.045455 | 0.019481 | 0 | 0.019481 | 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 |
5e261f4a29f9c6da5e5d39b2f670faea1fe9471d | 4,396 | py | Python | production/tests/O365_SE_Email.py | GoVanguard/SeleniumBase | 29241d58ccba23bb94ebf4c4a51fad578c4aceb8 | [
"MIT"
] | null | null | null | production/tests/O365_SE_Email.py | GoVanguard/SeleniumBase | 29241d58ccba23bb94ebf4c4a51fad578c4aceb8 | [
"MIT"
] | null | null | null | production/tests/O365_SE_Email.py | GoVanguard/SeleniumBase | 29241d58ccba23bb94ebf4c4a51fad578c4aceb8 | [
"MIT"
] | null | null | null | """
The Office 365 Social Engineering Email draft producer uses a customized
library of methods in this master class to maintain continuous delivery.
This repository is controlled by a single boolean that is set to false by
default. Please ensure that the emailDraft.py file is correct.
"""
# Built-in Imports
import os... | 39.25 | 78 | 0.64354 | 472 | 4,396 | 5.919492 | 0.434322 | 0.070866 | 0.02577 | 0.030064 | 0.044381 | 0.044381 | 0.028633 | 0.028633 | 0 | 0 | 0 | 0.024442 | 0.246133 | 4,396 | 111 | 79 | 39.603604 | 0.818648 | 0.251592 | 0 | 0.106667 | 0 | 0 | 0.19252 | 0.080319 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0.066667 | 0.093333 | 0 | 0.173333 | 0.053333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5e354afb63b174f5f617ab1a12d24daceb3e23d7 | 1,879 | py | Python | anchore_engine/db/db_users.py | bjwschaap/anchore-engine | 0aba1d12d79f63c5919ad301cecc5bd5cc09325a | [
"Apache-2.0"
] | null | null | null | anchore_engine/db/db_users.py | bjwschaap/anchore-engine | 0aba1d12d79f63c5919ad301cecc5bd5cc09325a | [
"Apache-2.0"
] | null | null | null | anchore_engine/db/db_users.py | bjwschaap/anchore-engine | 0aba1d12d79f63c5919ad301cecc5bd5cc09325a | [
"Apache-2.0"
] | null | null | null | import time
from anchore_engine import db
from anchore_engine.db import User
def add(userId, password, inobj, session=None):
if not session:
session = db.Session()
#our_result = session.query(User).filter_by(userId=userId, password=password).first()
our_result = session.query(User).filter_by... | 23.4875 | 103 | 0.610963 | 236 | 1,879 | 4.775424 | 0.228814 | 0.031056 | 0.070985 | 0.097604 | 0.542147 | 0.44898 | 0.44898 | 0.44898 | 0.414374 | 0.334516 | 0 | 0 | 0.267696 | 1,879 | 79 | 104 | 23.78481 | 0.819041 | 0.130389 | 0 | 0.361702 | 0 | 0 | 0.018462 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.106383 | false | 0.106383 | 0.06383 | 0.021277 | 0.170213 | 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 |
eaa6e1abc664210c2d20b6da218369d841465733 | 3,306 | py | Python | backend/lost/api/user/login_manager.py | JonasGoebel/lost | 802be42fb6cd7d046db61a34d77c0b5d233eca46 | [
"MIT"
] | 490 | 2019-01-16T12:57:22.000Z | 2022-03-26T14:13:26.000Z | backend/lost/api/user/login_manager.py | JonasGoebel/lost | 802be42fb6cd7d046db61a34d77c0b5d233eca46 | [
"MIT"
] | 147 | 2019-01-23T13:22:42.000Z | 2022-03-30T11:14:08.000Z | backend/lost/api/user/login_manager.py | JonasGoebel/lost | 802be42fb6cd7d046db61a34d77c0b5d233eca46 | [
"MIT"
] | 91 | 2019-03-11T10:37:50.000Z | 2022-03-28T16:41:32.000Z | import datetime
from flask_ldap3_login import LDAP3LoginManager, AuthenticationResponseStatus
from lost.settings import LOST_CONFIG, FLASK_DEBUG
from flask_jwt_extended import create_access_token, create_refresh_token
from lost.db.model import User as DBUser, Group
from lost.db import roles
class LoginManager():
de... | 42.384615 | 98 | 0.667272 | 416 | 3,306 | 4.966346 | 0.247596 | 0.050339 | 0.029042 | 0.04453 | 0.239109 | 0.196515 | 0.113262 | 0.03969 | 0.03969 | 0.03969 | 0 | 0.006457 | 0.250454 | 3,306 | 78 | 99 | 42.384615 | 0.82728 | 0.04265 | 0 | 0.153846 | 0 | 0 | 0.027848 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.107692 | false | 0.061538 | 0.092308 | 0 | 0.353846 | 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 |
eaac2ee80b3fe871703042e08987e0174fc49d74 | 919 | py | Python | hackerearth/Algorithms/Matt's Graph Book/solution.py | ATrain951/01.python-com_Qproject | c164dd093954d006538020bdf2e59e716b24d67c | [
"MIT"
] | 4 | 2020-07-24T01:59:50.000Z | 2021-07-24T15:14:08.000Z | hackerearth/Algorithms/Matt's Graph Book/solution.py | ATrain951/01.python-com_Qproject | c164dd093954d006538020bdf2e59e716b24d67c | [
"MIT"
] | null | null | null | hackerearth/Algorithms/Matt's Graph Book/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
import sys
from collections import defaultd... | 22.975 | 94 | 0.634385 | 133 | 919 | 4.37594 | 0.526316 | 0.054983 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012802 | 0.235038 | 919 | 39 | 95 | 23.564103 | 0.815078 | 0.289445 | 0 | 0 | 0 | 0 | 0.034109 | 0 | 0 | 0 | 0 | 0.025641 | 0 | 1 | 0.041667 | false | 0 | 0.083333 | 0 | 0.125 | 0.041667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
eaaca7839f6bb2b2e2924a78a429e6572176117e | 361 | py | Python | python/863.all-nodes-distance-k-in-binary-tree.py | stavanmehta/leetcode | 1224e43ce29430c840e65daae3b343182e24709c | [
"Apache-2.0"
] | null | null | null | python/863.all-nodes-distance-k-in-binary-tree.py | stavanmehta/leetcode | 1224e43ce29430c840e65daae3b343182e24709c | [
"Apache-2.0"
] | null | null | null | python/863.all-nodes-distance-k-in-binary-tree.py | stavanmehta/leetcode | 1224e43ce29430c840e65daae3b343182e24709c | [
"Apache-2.0"
] | null | null | null | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
def distanceK(self, root, target, K):
"""
:type root: TreeNode
:type target: TreeNode
:type K: int
... | 21.235294 | 41 | 0.509695 | 41 | 361 | 4.390244 | 0.609756 | 0.055556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.376731 | 361 | 16 | 42 | 22.5625 | 0.8 | 0.623269 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
eaae13d630098d1fed2c11aa237be653fb511af0 | 8,316 | py | Python | ForestTool(Python2)/Main.py | paltis5212/ForestTool | d49026c257c88e994c8b568906ae57500d71778b | [
"MIT"
] | 9 | 2019-05-11T04:42:22.000Z | 2022-03-05T03:54:19.000Z | ForestTool(Python2)/Main.py | paltis5212/ForestTool | d49026c257c88e994c8b568906ae57500d71778b | [
"MIT"
] | 4 | 2019-06-03T12:15:47.000Z | 2022-02-27T15:11:16.000Z | ForestTool(Python2)/Main.py | SmileZXLee/ForestTool | 9becb37298b86409b8ef7196969391078e39b902 | [
"MIT"
] | 8 | 2019-11-26T09:52:13.000Z | 2022-02-27T14:38:54.000Z | #coding=utf-8
__author__ = 'zxlee'
__github__ = 'https://github.com/SmileZXLee/forestTool'
import json
import time
import HttpReq
from User import User
from datetime import datetime,timedelta
import sched
import sys
import os
import platform
from dateutil.parser import parse
#是否是Windows
os_is_windows = platform.system... | 34.65 | 298 | 0.69252 | 1,372 | 8,316 | 3.948251 | 0.199708 | 0.037475 | 0.028429 | 0.043936 | 0.486062 | 0.373269 | 0.310689 | 0.277829 | 0.268968 | 0.268968 | 0 | 0.039363 | 0.138528 | 8,316 | 239 | 299 | 34.794979 | 0.716778 | 0.018398 | 0 | 0.221675 | 0 | 0.014778 | 0.245274 | 0.019887 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.014778 | 0.049261 | null | null | 0.078818 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
eaaf85302a7e40e5b38b9e1a9f53748e0813d733 | 1,300 | py | Python | trojsten/people/migrations/0011_auto_20170218_1724.py | MvonK/web | b701a6ea8fb6f0bdfb720e66d0a430db13db8bff | [
"MIT"
] | 5 | 2018-04-22T22:44:02.000Z | 2021-04-26T20:44:44.000Z | trojsten/people/migrations/0011_auto_20170218_1724.py | MvonK/web | b701a6ea8fb6f0bdfb720e66d0a430db13db8bff | [
"MIT"
] | 250 | 2018-04-24T12:04:11.000Z | 2022-03-09T06:56:47.000Z | trojsten/people/migrations/0011_auto_20170218_1724.py | MvonK/web | b701a6ea8fb6f0bdfb720e66d0a430db13db8bff | [
"MIT"
] | 8 | 2019-04-28T11:33:03.000Z | 2022-02-26T13:30:36.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.9.12 on 2017-02-18 16:24
from django.db import migrations
countries = {
"Ma\u010farsko": "HU",
"Czech Republic": "CZ",
"\u010cesk\xe1 republika": "CZ",
"United Kingdom": "GB",
"Austria": "AT",
"Madarsko": "HU",
"Australia": "AU",
"Srbsko":... | 28.888889 | 73 | 0.614615 | 157 | 1,300 | 5.044586 | 0.687898 | 0.060606 | 0.070707 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057226 | 0.206923 | 1,300 | 44 | 74 | 29.545455 | 0.71096 | 0.153077 | 0 | 0 | 1 | 0 | 0.381387 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029412 | false | 0 | 0.029412 | 0 | 0.147059 | 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 |
eab618833368798afc11263d3fd91477fc371614 | 679 | py | Python | archiv/migrations/0015_auto_20210505_1145.py | acdh-oeaw/mmp | 7ef8f33eafd3a7985328d374130f1cbe31f77df0 | [
"MIT"
] | 2 | 2021-06-02T11:27:54.000Z | 2021-08-25T10:29:04.000Z | archiv/migrations/0015_auto_20210505_1145.py | acdh-oeaw/mmp | 7ef8f33eafd3a7985328d374130f1cbe31f77df0 | [
"MIT"
] | 86 | 2021-01-29T12:31:34.000Z | 2022-03-28T11:41:04.000Z | archiv/migrations/0015_auto_20210505_1145.py | acdh-oeaw/mmp | 7ef8f33eafd3a7985328d374130f1cbe31f77df0 | [
"MIT"
] | null | null | null | # Generated by Django 3.2 on 2021-05-05 11:45
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('archiv', '0014_stelle_ort'),
]
operations = [
migrations.AddField(
model_name='stelle',
name='end_date',
f... | 28.291667 | 125 | 0.606775 | 75 | 679 | 5.36 | 0.546667 | 0.089552 | 0.114428 | 0.134328 | 0.477612 | 0.477612 | 0.293532 | 0.293532 | 0.293532 | 0.293532 | 0 | 0.0499 | 0.26215 | 679 | 23 | 126 | 29.521739 | 0.752495 | 0.063328 | 0 | 0.352941 | 1 | 0 | 0.141956 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
eabbba5703420267113fe4624cc55ee6b004fe83 | 2,338 | py | Python | IoTCognito/get_auth_creds.py | devendersatija/IoTCognito | efa4365a45a13dc6dab6307108d7ccfec0838090 | [
"MIT-0"
] | null | null | null | IoTCognito/get_auth_creds.py | devendersatija/IoTCognito | efa4365a45a13dc6dab6307108d7ccfec0838090 | [
"MIT-0"
] | null | null | null | IoTCognito/get_auth_creds.py | devendersatija/IoTCognito | efa4365a45a13dc6dab6307108d7ccfec0838090 | [
"MIT-0"
] | null | null | null | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
# the License. A copy of the License is located at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# or in the "license" file acco... | 46.76 | 118 | 0.731394 | 244 | 2,338 | 6.877049 | 0.45082 | 0.077473 | 0.045292 | 0.027414 | 0.034565 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003581 | 0.163815 | 2,338 | 49 | 119 | 47.714286 | 0.854731 | 0.271172 | 0 | 0.060606 | 0 | 0 | 0.223077 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030303 | false | 0.060606 | 0.060606 | 0 | 0.121212 | 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 |
eabc2d16f749bf7011211b6d1f5405973cd4be21 | 243 | py | Python | oldplugins/lurk.py | sonicrules1234/sonicbot | 07a22d08bf86ed33dc715a800957aee3b45f3dde | [
"BSD-3-Clause"
] | 1 | 2019-06-27T08:45:23.000Z | 2019-06-27T08:45:23.000Z | oldplugins/lurk.py | sonicrules1234/sonicbot | 07a22d08bf86ed33dc715a800957aee3b45f3dde | [
"BSD-3-Clause"
] | null | null | null | oldplugins/lurk.py | sonicrules1234/sonicbot | 07a22d08bf86ed33dc715a800957aee3b45f3dde | [
"BSD-3-Clause"
] | null | null | null | arguments = ["self", "info", "args"]
helpstring = "lurk"
minlevel = 3
def main(connection, info, args) :
"""Deops and voices the sender"""
connection.rawsend("MODE %s -o+v %s %s\n" % (info["channel"], info["sender"], info["sender"]))
| 30.375 | 98 | 0.617284 | 33 | 243 | 4.545455 | 0.69697 | 0.106667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004902 | 0.160494 | 243 | 7 | 99 | 34.714286 | 0.730392 | 0.111111 | 0 | 0 | 0 | 0 | 0.261905 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
eabe1302de2ccdf32bfec8af5697d4396c658e09 | 6,982 | py | Python | volume_editor_layout.py | singleswitch/ticker | 1e793316f2a3252d80339a69672ad81df550875d | [
"MIT"
] | null | null | null | volume_editor_layout.py | singleswitch/ticker | 1e793316f2a3252d80339a69672ad81df550875d | [
"MIT"
] | 1 | 2018-11-06T09:30:23.000Z | 2018-11-06T09:30:23.000Z | volume_editor_layout.py | singleswitch/ticker | 1e793316f2a3252d80339a69672ad81df550875d | [
"MIT"
] | 1 | 2019-01-23T14:46:11.000Z | 2019-01-23T14:46:11.000Z | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'volume_layout.ui'
#
# Created: Tue Mar 26 12:40:36 2013
# by: PyQt4 UI code generator 4.7.2
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
class Ui_Dialog(object):
def setupUi(self, Dialog... | 62.339286 | 154 | 0.728445 | 915 | 6,982 | 5.331148 | 0.112568 | 0.129151 | 0.158672 | 0.111521 | 0.742722 | 0.643501 | 0.317343 | 0.202747 | 0.202747 | 0.202747 | 0 | 0.042886 | 0.158407 | 6,982 | 111 | 155 | 62.900901 | 0.78727 | 0.03108 | 0 | 0 | 1 | 0 | 0.091474 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020408 | false | 0 | 0.010204 | 0 | 0.040816 | 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 |
eabea33f4d0ec179914a2f9d513c08deb93370e0 | 2,780 | py | Python | pipeline/models/nmap_model.py | ponderng/recon-pipeline | 11d09902c54969af47731b8e235e447806246004 | [
"MIT"
] | 352 | 2020-01-22T13:36:11.000Z | 2022-03-22T19:37:24.000Z | pipeline/models/nmap_model.py | ponderng/recon-pipeline | 11d09902c54969af47731b8e235e447806246004 | [
"MIT"
] | 72 | 2020-01-24T04:53:52.000Z | 2021-07-14T19:23:29.000Z | pipeline/models/nmap_model.py | ponderng/recon-pipeline | 11d09902c54969af47731b8e235e447806246004 | [
"MIT"
] | 86 | 2020-01-23T09:20:51.000Z | 2022-03-03T08:04:37.000Z | import textwrap
from sqlalchemy.orm import relationship
from sqlalchemy import Column, Integer, ForeignKey, String, Boolean
from .base_model import Base
from .port_model import Port
from .ip_address_model import IPAddress
from .nse_model import nse_result_association_table
class NmapResult(Base):
""" Database m... | 35.641026 | 124 | 0.632014 | 344 | 2,780 | 4.918605 | 0.267442 | 0.058511 | 0.054374 | 0.031915 | 0.159574 | 0.14539 | 0.113475 | 0.113475 | 0.113475 | 0.113475 | 0 | 0.002396 | 0.249281 | 2,780 | 77 | 125 | 36.103896 | 0.808337 | 0.170863 | 0 | 0.125 | 0 | 0.020833 | 0.199198 | 0.057932 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.145833 | 0.020833 | 0.5625 | 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 |
eac399423be5d4d4f542d0d58d41f6e21f9aff4b | 607 | py | Python | pycorrector/utils/io_utils.py | zouning68/pycorrector | 4daaf13e566f2cecc724fb5a77db5d89f1f25203 | [
"Apache-2.0"
] | 45 | 2020-01-18T03:46:07.000Z | 2022-03-26T13:06:36.000Z | pycorrector/utils/io_utils.py | zouning68/pycorrector | 4daaf13e566f2cecc724fb5a77db5d89f1f25203 | [
"Apache-2.0"
] | 1 | 2020-08-16T12:42:05.000Z | 2020-08-16T12:42:05.000Z | pycorrector/utils/io_utils.py | zouning68/pycorrector | 4daaf13e566f2cecc724fb5a77db5d89f1f25203 | [
"Apache-2.0"
] | 9 | 2020-01-04T09:09:01.000Z | 2022-01-17T08:56:23.000Z | # -*- coding: utf-8 -*-
# Author: XuMing <xuming624@qq.com>
# Brief:
import os
import pickle
def load_pkl(pkl_path):
"""
加载词典文件
:param pkl_path:
:return:
"""
with open(pkl_path, 'rb') as f:
result = pickle.load(f)
return result
def dump_pkl(vocab, pkl_path, overwrite=True):
... | 19.580645 | 65 | 0.599671 | 82 | 607 | 4.317073 | 0.463415 | 0.138418 | 0.067797 | 0.096045 | 0.254237 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011186 | 0.263591 | 607 | 30 | 66 | 20.233333 | 0.780761 | 0.332784 | 0 | 0 | 0 | 0 | 0.011396 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.181818 | 0 | 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 |
eac859440d6090d9d16a4764c580ec95eb663ba2 | 310 | py | Python | help.py | Wizard684/YouTube-DL-Mega | be11833353d116dbcd0a6af902a14cb5bca998a4 | [
"MIT"
] | null | null | null | help.py | Wizard684/YouTube-DL-Mega | be11833353d116dbcd0a6af902a14cb5bca998a4 | [
"MIT"
] | null | null | null | help.py | Wizard684/YouTube-DL-Mega | be11833353d116dbcd0a6af902a14cb5bca998a4 | [
"MIT"
] | null | null | null |
from pyrogram import Client, Filters
@Client.on_message(Filters.command(["help"]))
async def start(client, message):
helptxt = f"Currently Only supports Youtube Single (No playlist) Just Send Youtube Url But You must join my Updation channel👉👉 @Mega_Bots_Updates"
await message.reply_text(helptxt)
| 34.444444 | 151 | 0.767742 | 45 | 310 | 5.244444 | 0.844444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145161 | 310 | 8 | 152 | 38.75 | 0.883019 | 0 | 0 | 0 | 0 | 0.2 | 0.446602 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
eacc2257b27de8eb2645ec30a826a06701432acc | 972 | py | Python | addons/meme.py | 916253/Kurisu-Reswitched | 143c27e42049de8ccc8c5c76f503ea96e89c179c | [
"Apache-2.0"
] | 13 | 2017-08-18T00:25:26.000Z | 2020-12-06T00:59:47.000Z | addons/meme.py | 916253/Kurisu-Reswitched | 143c27e42049de8ccc8c5c76f503ea96e89c179c | [
"Apache-2.0"
] | 11 | 2018-04-13T16:57:13.000Z | 2018-12-23T11:52:19.000Z | addons/meme.py | 916253/Kurisu-Reswitched | 143c27e42049de8ccc8c5c76f503ea96e89c179c | [
"Apache-2.0"
] | 21 | 2017-08-04T16:33:15.000Z | 2019-03-11T17:01:48.000Z | import discord
import random
from discord.ext import commands
class Meme:
"""
Meme commands.
"""
def __init__(self, bot):
self.bot = bot
print('Addon "{}" loaded'.format(self.__class__.__name__))
@commands.command(pass_context=True, hidden=True, name="bam")
async def bam_memb... | 29.454545 | 108 | 0.622428 | 139 | 972 | 4.280576 | 0.489209 | 0.070588 | 0.060504 | 0.07563 | 0.268908 | 0.268908 | 0.268908 | 0.147899 | 0 | 0 | 0 | 0.006427 | 0.199588 | 972 | 32 | 109 | 30.375 | 0.748072 | 0.014403 | 0 | 0 | 0 | 0 | 0.130337 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.111111 | 0.166667 | 0 | 0.333333 | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
ead2a27fde0318e6470fc8deff78230ddd7bed04 | 803 | py | Python | fitter.py | quantummind/quantum-rcs-boundaries | 5c1da3378b72db061960f113dfed77b506f9acae | [
"MIT"
] | null | null | null | fitter.py | quantummind/quantum-rcs-boundaries | 5c1da3378b72db061960f113dfed77b506f9acae | [
"MIT"
] | null | null | null | fitter.py | quantummind/quantum-rcs-boundaries | 5c1da3378b72db061960f113dfed77b506f9acae | [
"MIT"
] | null | null | null | import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from scipy.optimize import curve_fit
from sklearn.metrics import r2_score
import datetime
def func(x, a, b):
return a + b*x
def exp_regression(x, y):
p, _ = curve_fit(func, x, np.log(y))
p[0] = np.exp(p[0])
return p
def r2(coe... | 30.884615 | 102 | 0.697385 | 147 | 803 | 3.741497 | 0.455782 | 0.014545 | 0.050909 | 0.054545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027982 | 0.154421 | 803 | 26 | 103 | 30.884615 | 0.782032 | 0.164384 | 0 | 0 | 0 | 0 | 0.061286 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0 | 0.3 | 0.1 | 0.6 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
ead9a8850641b407ccfaaf3b32efd4d1d2d9ec12 | 2,869 | py | Python | notes/reference/moocs/udacity/cs50-introduction-to-computer-science/assignments/pset1/pennies/pennies.py | aav789/study-notes | 34eca00cd48869ba7a79c0ea7d8948ee9bde72b9 | [
"MIT"
] | 43 | 2015-06-10T14:48:00.000Z | 2020-11-29T16:22:28.000Z | notes/reference/moocs/udacity/cs50-introduction-to-computer-science/assignments/pset1/pennies/pennies.py | aav789/study-notes | 34eca00cd48869ba7a79c0ea7d8948ee9bde72b9 | [
"MIT"
] | 1 | 2021-11-01T12:01:44.000Z | 2021-11-01T12:01:44.000Z | notes/reference/moocs/udacity/cs50-introduction-to-computer-science/assignments/pset1/pennies/pennies.py | lextoumbourou/notes | 5f94c59a467eb3eb387542bdce398abc0365e6a7 | [
"MIT"
] | 40 | 2015-03-02T10:33:59.000Z | 2020-05-24T12:17:05.000Z | """
pennies.py
Computer Science 50 in Python (Hacker Edition)
Problem Set 1
Get num of days in month then works out how many $$ you'd have by end of the month
if you received a penny on the first day, two on second, four on third and so on
"""
def get_input(question):
"""Get the days input from the user """
... | 27.586538 | 83 | 0.580342 | 394 | 2,869 | 4.114213 | 0.347716 | 0.024676 | 0.022209 | 0.016039 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026028 | 0.330429 | 2,869 | 103 | 84 | 27.854369 | 0.817803 | 0.127222 | 0 | 0.118644 | 0 | 0 | 0.077325 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.067797 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
eaddd0f58ee1e0957f0264ad5e92e223afa6c673 | 2,753 | py | Python | minotaur/_mask.py | trel/minotaur | 608f13582e88677fc946c6cb84ec03459f29b4f9 | [
"Apache-2.0"
] | null | null | null | minotaur/_mask.py | trel/minotaur | 608f13582e88677fc946c6cb84ec03459f29b4f9 | [
"Apache-2.0"
] | null | null | null | minotaur/_mask.py | trel/minotaur | 608f13582e88677fc946c6cb84ec03459f29b4f9 | [
"Apache-2.0"
] | null | null | null | from enum import IntFlag as _IntFlag
from . import _inotify
__all__ = ('Mask',)
class Mask(_IntFlag):
show_help: bool
def __new__(cls, value, doc=None, show_help=True):
# int.__new__ needs a stub in the typeshed
# https://github.com/python/typeshed/issues/2686
#
# but that ... | 39.328571 | 76 | 0.68834 | 386 | 2,753 | 4.626943 | 0.365285 | 0.120941 | 0.023516 | 0.022396 | 0.097424 | 0.097424 | 0 | 0 | 0 | 0 | 0 | 0.003788 | 0.232837 | 2,753 | 69 | 77 | 39.898551 | 0.841856 | 0.100618 | 0 | 0 | 0 | 0 | 0.349233 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022222 | false | 0 | 0.044444 | 0 | 0.688889 | 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 |
eadee64286add827e7acf16d36f21a8972ee0cfb | 4,991 | py | Python | 24_immune_system_simulator.py | KanegaeGabriel/advent-of-code-2018 | b57f21901b731b4ffe6a2bf134d0bda28d326997 | [
"MIT"
] | null | null | null | 24_immune_system_simulator.py | KanegaeGabriel/advent-of-code-2018 | b57f21901b731b4ffe6a2bf134d0bda28d326997 | [
"MIT"
] | null | null | null | 24_immune_system_simulator.py | KanegaeGabriel/advent-of-code-2018 | b57f21901b731b4ffe6a2bf134d0bda28d326997 | [
"MIT"
] | null | null | null | ################################################
# --- Day 24: Immune System Simulator 20XX --- #
################################################
import AOCUtils
def getTargets(atkArmy, defArmy):
targeted = set()
for atkGroup in atkArmy:
if len(targeted) < len(defArmy):
dmgGiven = []
... | 34.659722 | 116 | 0.60569 | 528 | 4,991 | 5.710227 | 0.278409 | 0.009287 | 0.01393 | 0.021227 | 0.182421 | 0.121393 | 0.078275 | 0.057048 | 0.057048 | 0.057048 | 0 | 0.012768 | 0.262472 | 4,991 | 144 | 117 | 34.659722 | 0.806303 | 0.113404 | 0 | 0.126316 | 0 | 0 | 0.011483 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.010526 | null | null | 0.031579 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
eae24d8c828bb6bb378412becf7ee1a02837535c | 1,279 | py | Python | Imap_append.py | satheesheppalapelli/imap | 064ce69f9fdd63e3f7fbf402ef383c38b31fea14 | [
"MIT"
] | null | null | null | Imap_append.py | satheesheppalapelli/imap | 064ce69f9fdd63e3f7fbf402ef383c38b31fea14 | [
"MIT"
] | null | null | null | Imap_append.py | satheesheppalapelli/imap | 064ce69f9fdd63e3f7fbf402ef383c38b31fea14 | [
"MIT"
] | null | null | null | import imaplib
import email
from email import message
import time
username = 'gmail_id'
password = 'gmail_password'
new_message = email.message.Message()
new_message.set_unixfrom('satheesh')
new_message['Subject'] = 'Sample Message'
# from gmail id
new_message['From'] = 'eppalapellisatheesh1@gmail.com'
# to gmail id... | 32.794872 | 115 | 0.723221 | 175 | 1,279 | 5.211429 | 0.44 | 0.087719 | 0.028509 | 0.037281 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006458 | 0.152463 | 1,279 | 38 | 116 | 33.657895 | 0.834871 | 0.305708 | 0 | 0 | 0 | 0 | 0.260274 | 0.068493 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.083333 | 0.166667 | 0 | 0.166667 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
eae5610490f4bff538d28053548c7a7377626c1f | 4,362 | py | Python | wradlib/georef/misc.py | ElmerJeanpierreLopez/wradlib | ae6aa24c68f431b735a742510cea3475fb55059d | [
"MIT"
] | null | null | null | wradlib/georef/misc.py | ElmerJeanpierreLopez/wradlib | ae6aa24c68f431b735a742510cea3475fb55059d | [
"MIT"
] | null | null | null | wradlib/georef/misc.py | ElmerJeanpierreLopez/wradlib | ae6aa24c68f431b735a742510cea3475fb55059d | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
# Copyright (c) 2011-2019, wradlib developers.
# Distributed under the MIT License. See LICENSE.txt for more info.
"""
Miscellaneous
^^^^^^^^^^^^^
.. autosummary::
:nosignatures:
:toctree: generated/
bin_altitude
bin_distance
site_distance
"""
import numpy... | 31.381295 | 77 | 0.631133 | 622 | 4,362 | 4.395498 | 0.23955 | 0.036576 | 0.054865 | 0.080468 | 0.686174 | 0.673738 | 0.656547 | 0.643745 | 0.590344 | 0.590344 | 0 | 0.013669 | 0.262036 | 4,362 | 138 | 78 | 31.608696 | 0.833799 | 0.781293 | 0 | 0.357143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.071429 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
eae8b1571de983e30e5b62cbb49111d3bbe371a5 | 3,773 | py | Python | tests/test_redis.py | arrrlo/python-transfer | 653c74e8db8da0ff6ee37dff4534b52b4fc7a29c | [
"MIT"
] | null | null | null | tests/test_redis.py | arrrlo/python-transfer | 653c74e8db8da0ff6ee37dff4534b52b4fc7a29c | [
"MIT"
] | null | null | null | tests/test_redis.py | arrrlo/python-transfer | 653c74e8db8da0ff6ee37dff4534b52b4fc7a29c | [
"MIT"
] | 1 | 2021-07-30T06:01:20.000Z | 2021-07-30T06:01:20.000Z | import os
import pytest
import fakeredis
from db_transfer.adapter_redis import Redis
from db_transfer.transfer import Transfer, sent_env
@pytest.fixture()
def fake_redis(monkeypatch):
fake_redis = lambda *args, **kwargs: fakeredis.FakeStrictRedis(decode_responses=True)
monkeypatch.setattr(Redis, 'connect', f... | 34.935185 | 95 | 0.642725 | 533 | 3,773 | 4.172608 | 0.144465 | 0.26304 | 0.136691 | 0.071942 | 0.631295 | 0.539568 | 0.43705 | 0.34982 | 0.306205 | 0.306205 | 0 | 0.03437 | 0.1903 | 3,773 | 107 | 96 | 35.261682 | 0.693617 | 0.006096 | 0 | 0.191781 | 0 | 0 | 0.240331 | 0 | 0 | 0 | 0 | 0 | 0.260274 | 1 | 0.123288 | false | 0.013699 | 0.068493 | 0 | 0.232877 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
eaf3f83969eefc20c915399632dfbe8f86dda3dd | 8,087 | py | Python | atlas/aws_utils/src/test/test_aws_bucket.py | DeepLearnI/atlas | 8aca652d7e647b4e88530b93e265b536de7055ed | [
"Apache-2.0"
] | 296 | 2020-03-16T19:55:00.000Z | 2022-01-10T19:46:05.000Z | atlas/aws_utils/src/test/test_aws_bucket.py | DeepLearnI/atlas | 8aca652d7e647b4e88530b93e265b536de7055ed | [
"Apache-2.0"
] | 57 | 2020-03-17T11:15:57.000Z | 2021-07-10T14:42:27.000Z | atlas/aws_utils/src/test/test_aws_bucket.py | DeepLearnI/atlas | 8aca652d7e647b4e88530b93e265b536de7055ed | [
"Apache-2.0"
] | 38 | 2020-03-17T21:06:05.000Z | 2022-02-08T03:19:34.000Z |
import unittest
from mock import Mock
from foundations_spec import *
from foundations_aws.aws_bucket import AWSBucket
class TestAWSBucket(Spec):
class MockListing(object):
def __init__(self, bucket, files):
self._bucket = bucket
self._files = files
def __call__(self, B... | 37.267281 | 145 | 0.66712 | 1,002 | 8,087 | 5.028942 | 0.134731 | 0.069458 | 0.046438 | 0.031752 | 0.608454 | 0.538797 | 0.524509 | 0.463187 | 0.422306 | 0.395515 | 0 | 0.002251 | 0.230988 | 8,087 | 216 | 146 | 37.439815 | 0.808008 | 0.003833 | 0 | 0.282353 | 0 | 0 | 0.067304 | 0.017757 | 0 | 0 | 0 | 0 | 0.094118 | 1 | 0.211765 | false | 0 | 0.023529 | 0.064706 | 0.352941 | 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 |
eaf751a9a0bcab3d9157ea5ae5ba0acfa2a5324c | 1,413 | py | Python | molecular_computation/procedures/gel_electrophoresis.py | shakedmanes/molecular-computation | 80d759c74288f99dfb7c3dab2a5d1e88b17e3171 | [
"MIT"
] | null | null | null | molecular_computation/procedures/gel_electrophoresis.py | shakedmanes/molecular-computation | 80d759c74288f99dfb7c3dab2a5d1e88b17e3171 | [
"MIT"
] | null | null | null | molecular_computation/procedures/gel_electrophoresis.py | shakedmanes/molecular-computation | 80d759c74288f99dfb7c3dab2a5d1e88b17e3171 | [
"MIT"
] | null | null | null | from molecules.dna_molecule import DNAMolecule
from molecules.dna_sequence import DNASequence
class GelElectrophoresis:
"""
Produce the Gel Electrophoresis procedure to sort DNA molecules by their size.
"""
@staticmethod
def run_gel(dna_molecules):
"""
Runs the Gel Electrophoresis... | 28.836735 | 83 | 0.690729 | 167 | 1,413 | 5.60479 | 0.353293 | 0.192308 | 0.122863 | 0.165598 | 0.424145 | 0.183761 | 0.126068 | 0.126068 | 0.126068 | 0.126068 | 0 | 0.008204 | 0.223638 | 1,413 | 48 | 84 | 29.4375 | 0.845032 | 0.170559 | 0 | 0.071429 | 0 | 0 | 0.099552 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0.071429 | 0 | 0.178571 | 0.178571 | 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 |
d80aded943ac31da1cf1d442bfacdc0c574d184b | 583 | py | Python | jobs/tests.py | dukedbgroup/BayesianTuner | e74dc61c846c3beab95ca2140c1aab1d5179e208 | [
"Apache-2.0"
] | 13 | 2018-03-10T23:32:16.000Z | 2019-09-10T14:20:46.000Z | jobs/tests.py | dukedbgroup/BayesianTuner | e74dc61c846c3beab95ca2140c1aab1d5179e208 | [
"Apache-2.0"
] | null | null | null | jobs/tests.py | dukedbgroup/BayesianTuner | e74dc61c846c3beab95ca2140c1aab1d5179e208 | [
"Apache-2.0"
] | 1 | 2018-12-12T22:17:51.000Z | 2018-12-12T22:17:51.000Z | from unittest import TestCase
from logger import get_logger
from config import get_config
from .runner import JobsRunner
logger = get_logger(__name__, log_level=("TEST", "LOGLEVEL"))
config = get_config()
def test_run(self, config, job_config, date):
print("Running test job")
class JobRunnerTests(TestCase):
... | 25.347826 | 88 | 0.703259 | 79 | 583 | 4.974684 | 0.443038 | 0.101781 | 0.10687 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008333 | 0.176672 | 583 | 22 | 89 | 26.5 | 0.810417 | 0 | 0 | 0 | 0 | 0 | 0.121784 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.5625 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d80ea4320731a7f5c8a15b5c673de800b94a36ed | 463 | py | Python | underscore/declaration.py | doboy/Underscore | d98273db3144cda79191d2c90f45d81b6d700b1f | [
"MIT"
] | 7 | 2016-09-23T00:44:05.000Z | 2021-10-04T21:19:12.000Z | underscore/declaration.py | jameswu1991/Underscore | d98273db3144cda79191d2c90f45d81b6d700b1f | [
"MIT"
] | 1 | 2016-09-23T00:45:05.000Z | 2019-02-16T19:05:37.000Z | underscore/declaration.py | jameswu1991/Underscore | d98273db3144cda79191d2c90f45d81b6d700b1f | [
"MIT"
] | 3 | 2016-09-23T01:13:15.000Z | 2018-07-20T21:22:17.000Z | # Copyright (c) 2013 Huan Do, http://huan.do
class Declaration(object):
def __init__(self, name):
self.name = name
self.delete = False
self._conditional = None
@property
def conditional(self):
assert self._conditional is not None
return self.delete or self._conditio... | 23.15 | 47 | 0.593952 | 50 | 463 | 5.22 | 0.58 | 0.172414 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01227 | 0.295896 | 463 | 19 | 48 | 24.368421 | 0.788344 | 0.170626 | 0 | 0 | 0 | 0 | 0.005249 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 1 | 0.214286 | false | 0 | 0 | 0 | 0.357143 | 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 |
d810e9e8b14b2edde01e890b4f74510b0b268466 | 312 | py | Python | camara_con_kivy.py | Rocha117/Laboratorio_07 | 1d1b646f9665523962a7d8addf16b056f437bc27 | [
"MIT"
] | null | null | null | camara_con_kivy.py | Rocha117/Laboratorio_07 | 1d1b646f9665523962a7d8addf16b056f437bc27 | [
"MIT"
] | null | null | null | camara_con_kivy.py | Rocha117/Laboratorio_07 | 1d1b646f9665523962a7d8addf16b056f437bc27 | [
"MIT"
] | null | null | null | from kivy.app import App
from kivy.uix.boxlayout import BoxLayout
class CamaraWindow(BoxLayout):
def __init__(self, **kwargs):
super().__init__(**kwargs)
class CamaraApp(App):
def build(self):
return CamaraWindow()
if __name__ == '__main__':
CamaraApp().run() | 22.285714 | 41 | 0.634615 | 34 | 312 | 5.352941 | 0.588235 | 0.087912 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.246795 | 312 | 14 | 42 | 22.285714 | 0.774468 | 0 | 0 | 0 | 0 | 0 | 0.026667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0.1 | 0.7 | 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 |
d813fe7e8c53a4b341a427a7aa1d706dae039f16 | 310 | py | Python | dockernd/python/ND/NostalgiaDrive/setup.py | mchellmer/DockerMongoFceuxPython | f7db8fc976d76046ca03f707f9845d348f9be651 | [
"MIT"
] | null | null | null | dockernd/python/ND/NostalgiaDrive/setup.py | mchellmer/DockerMongoFceuxPython | f7db8fc976d76046ca03f707f9845d348f9be651 | [
"MIT"
] | null | null | null | dockernd/python/ND/NostalgiaDrive/setup.py | mchellmer/DockerMongoFceuxPython | f7db8fc976d76046ca03f707f9845d348f9be651 | [
"MIT"
] | null | null | null | from setuptools import setup
setup(
name='nd',
py_modules=['nd'],
version='1.0.0',
description='user friendly emulation game selection',
license="MIT",
author='Mark Hellmer',
author_email='mchellmer@gmail.com',
install_requires=['tkinter', 'nltk', 'pymongo'],
scripts=[]
)
| 22.142857 | 57 | 0.645161 | 36 | 310 | 5.472222 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011952 | 0.190323 | 310 | 13 | 58 | 23.846154 | 0.772908 | 0 | 0 | 0 | 0 | 0 | 0.319355 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.083333 | 0 | 0.083333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d81683ba8142b60ee8046ff652ca3747377a9744 | 4,729 | py | Python | generate_data.py | StanfordASL/Adaptive-Control-Oriented-Meta-Learning | 093d2764314bbfccc3a804fb9e737a10d08a1eb5 | [
"MIT"
] | 24 | 2021-03-14T19:00:49.000Z | 2022-03-23T14:31:33.000Z | generate_data.py | wuyou33/Adaptive-Control-Oriented-Meta-Learning | 093d2764314bbfccc3a804fb9e737a10d08a1eb5 | [
"MIT"
] | 1 | 2021-06-07T09:57:26.000Z | 2021-06-12T19:57:00.000Z | generate_data.py | wuyou33/Adaptive-Control-Oriented-Meta-Learning | 093d2764314bbfccc3a804fb9e737a10d08a1eb5 | [
"MIT"
] | 3 | 2021-06-14T09:05:27.000Z | 2021-12-22T19:31:15.000Z | """
TODO description.
Author: Spencer M. Richards
Autonomous Systems Lab (ASL), Stanford
(GitHub: spenrich)
"""
if __name__ == "__main__":
import pickle
import jax
import jax.numpy as jnp
from jax.experimental.ode import odeint
from utils import spline, random_ragged_spline
fro... | 33.06993 | 76 | 0.534574 | 695 | 4,729 | 3.513669 | 0.267626 | 0.018428 | 0.029484 | 0.03276 | 0.135135 | 0.127764 | 0.072891 | 0.04095 | 0.02457 | 0.02457 | 0 | 0.022518 | 0.333263 | 4,729 | 142 | 77 | 33.302817 | 0.751982 | 0.173398 | 0 | 0 | 0 | 0 | 0.021408 | 0 | 0 | 0 | 0 | 0.014085 | 0 | 1 | 0.058824 | false | 0 | 0.058824 | 0 | 0.176471 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d81bf2a69ea31df5d99253836392c80819c38099 | 5,633 | py | Python | pkg/msgapi/mqtt/models/mqmsg.py | ToraNova/rapidflask | f42354b296659dac5be904d7bb68076b9458f79a | [
"MIT"
] | null | null | null | pkg/msgapi/mqtt/models/mqmsg.py | ToraNova/rapidflask | f42354b296659dac5be904d7bb68076b9458f79a | [
"MIT"
] | null | null | null | pkg/msgapi/mqtt/models/mqmsg.py | ToraNova/rapidflask | f42354b296659dac5be904d7bb68076b9458f79a | [
"MIT"
] | null | null | null | #--------------------------------------------------
# mqtt_control.py
# MQTT_Control is a database model to control subscriptions
# and publications
# introduced in u8
# ToraNova
#--------------------------------------------------
from pkg.resrc import res_import as r
from pkg.system.database import dbms
Base = dbms.m... | 46.172131 | 110 | 0.607314 | 763 | 5,633 | 4.373526 | 0.306684 | 0.018879 | 0.021576 | 0.013485 | 0.258016 | 0.228648 | 0.228648 | 0.222655 | 0.186095 | 0.167516 | 0 | 0.004598 | 0.227765 | 5,633 | 121 | 111 | 46.553719 | 0.762529 | 0.442393 | 0 | 0.114754 | 0 | 0 | 0.110788 | 0.014166 | 0 | 0 | 0 | 0.016529 | 0 | 1 | 0.098361 | false | 0.04918 | 0.114754 | 0.016393 | 0.47541 | 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 |
d82a5e6a7cb6b7c55c3841490f1226e6b98ca874 | 2,108 | py | Python | base/vulcan_management/vulcan_agent.py | PeterStuck/teacher-app | e71c5b69019450a9ac8694fb461d343ce33e1b35 | [
"CC0-1.0"
] | null | null | null | base/vulcan_management/vulcan_agent.py | PeterStuck/teacher-app | e71c5b69019450a9ac8694fb461d343ce33e1b35 | [
"CC0-1.0"
] | null | null | null | base/vulcan_management/vulcan_agent.py | PeterStuck/teacher-app | e71c5b69019450a9ac8694fb461d343ce33e1b35 | [
"CC0-1.0"
] | null | null | null | from time import sleep
from selenium.common.exceptions import NoSuchElementException
from .vulcan_webdriver import VulcanWebdriver
class VulcanAgent:
""" Class to perform actions on Vulcan Uonet page """
def __init__(self, credentials: dict, vulcan_data = None):
self.driver = VulcanWebdriver()
... | 36.982456 | 111 | 0.6537 | 239 | 2,108 | 5.518828 | 0.401674 | 0.075815 | 0.053071 | 0.079606 | 0.37301 | 0.330553 | 0.283548 | 0.257771 | 0.198635 | 0.198635 | 0 | 0.003129 | 0.241935 | 2,108 | 56 | 112 | 37.642857 | 0.822278 | 0.086338 | 0 | 0.230769 | 0 | 0 | 0.174302 | 0.033175 | 0 | 0 | 0 | 0 | 0 | 1 | 0.128205 | false | 0.076923 | 0.076923 | 0 | 0.230769 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
d82fafa5745811141dbc5de3b45d1ba61dddabe7 | 378 | py | Python | Dataset/Leetcode/valid/6/243.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/valid/6/243.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/valid/6/243.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | class Solution(object):
def XXX(self, s, numRows):
if numRows==1:
return s
res = ['' for _ in range(numRows)]
# 周期
T = numRows + numRows -2
for i in range(len(s)):
t_num = i%T
temp = t_num if t_num<numRows else numRows-(t_num)%numRows-2
... | 27 | 72 | 0.486772 | 53 | 378 | 3.377358 | 0.45283 | 0.089385 | 0.122905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012987 | 0.388889 | 378 | 13 | 73 | 29.076923 | 0.761905 | 0.005291 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | 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 |
d8334d756e7256b282d32ab1967e513fc5ca0140 | 390 | py | Python | src/chains/migrations/0027_chain_description.py | tharsis/safe-config-service | 5335fd006d05fba5b13b477daca9f6ef6d64b818 | [
"MIT"
] | 8 | 2021-07-27T13:21:27.000Z | 2022-02-12T22:46:26.000Z | src/chains/migrations/0027_chain_description.py | protofire/safe-config-service | 6a9a48f5e33950cd5f4f7a66c5e36f4d3b0f2bfa | [
"MIT"
] | 203 | 2021-04-28T08:23:29.000Z | 2022-03-29T15:50:27.000Z | src/chains/migrations/0027_chain_description.py | protofire/safe-config-service | 6a9a48f5e33950cd5f4f7a66c5e36f4d3b0f2bfa | [
"MIT"
] | 23 | 2021-06-25T07:22:31.000Z | 2022-03-29T02:24:46.000Z | # Generated by Django 3.2.7 on 2021-09-16 12:38
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("chains", "0026_chain_l2"),
]
operations = [
migrations.AddField(
model_name="chain",
name="description",
... | 20.526316 | 63 | 0.594872 | 43 | 390 | 5.302326 | 0.837209 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.082734 | 0.287179 | 390 | 18 | 64 | 21.666667 | 0.73741 | 0.115385 | 0 | 0 | 1 | 0 | 0.102041 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d8346003220ff71079a13d30e7158a1ac6606e62 | 1,288 | py | Python | leases/services/invoice/berth.py | City-of-Helsinki/berth-reservations | a3b1a8c2176f132505527acdf6da3a62199401db | [
"MIT"
] | 3 | 2020-10-13T07:58:48.000Z | 2020-12-22T09:41:50.000Z | leases/services/invoice/berth.py | City-of-Helsinki/berth-reservations | a3b1a8c2176f132505527acdf6da3a62199401db | [
"MIT"
] | 422 | 2018-10-25T10:57:05.000Z | 2022-03-30T05:47:14.000Z | leases/services/invoice/berth.py | City-of-Helsinki/berth-reservations | a3b1a8c2176f132505527acdf6da3a62199401db | [
"MIT"
] | 1 | 2020-04-03T07:38:03.000Z | 2020-04-03T07:38:03.000Z | from datetime import date
from django.db.models import QuerySet
from payments.enums import OrderStatus
from payments.models import BerthProduct, Order
from ...models import BerthLease
from ...utils import calculate_season_end_date, calculate_season_start_date
from .base import BaseInvoicingService
class BerthInvoi... | 34.810811 | 84 | 0.743789 | 154 | 1,288 | 5.922078 | 0.376623 | 0.096491 | 0.065789 | 0.048246 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180901 | 1,288 | 36 | 85 | 35.777778 | 0.864455 | 0.054348 | 0 | 0.115385 | 0 | 0 | 0.001645 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.269231 | 0.076923 | 0.576923 | 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 |
d83b93f39c486d9317c825bf51df461bf2aebcdf | 440 | py | Python | django_request_context/middleware.py | schecterdamien/django-request-context | db1100b611012835fd8528c2ba4848ed87e10f80 | [
"MIT"
] | 13 | 2018-11-01T08:10:54.000Z | 2021-07-09T07:42:18.000Z | django_request_context/middleware.py | schecterdamien/django-request-context | db1100b611012835fd8528c2ba4848ed87e10f80 | [
"MIT"
] | 1 | 2019-07-28T16:49:05.000Z | 2021-10-02T04:37:20.000Z | django_request_context/middleware.py | schecterdamien/django-request-context | db1100b611012835fd8528c2ba4848ed87e10f80 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from .globals import request_context
try:
from django.utils.deprecation import MiddlewareMixin
except ImportError: # Django < 1.10
MiddlewareMixin = object
class RequestContextMiddleware(MiddlewareMixin):
def process_request(self, request):
request_context.init_by_reques... | 23.157895 | 56 | 0.729545 | 47 | 440 | 6.680851 | 0.595745 | 0.133758 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011204 | 0.188636 | 440 | 18 | 57 | 24.444444 | 0.868347 | 0.079545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.272727 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
dc1c34dd0e875151a5cb78c824921a11dc907308 | 279 | py | Python | samle_python.py | sarum90/langmapper | 010b7f8b075c45f3c43dcd7d478f6bfe192ccc01 | [
"MIT"
] | null | null | null | samle_python.py | sarum90/langmapper | 010b7f8b075c45f3c43dcd7d478f6bfe192ccc01 | [
"MIT"
] | null | null | null | samle_python.py | sarum90/langmapper | 010b7f8b075c45f3c43dcd7d478f6bfe192ccc01 | [
"MIT"
] | null | null | null | def process(record):
ids = (record.get('idsurface', '') or '').split(' ')
if len(ids) > 4:
return {'language': record['language'],
'longitude': float(record['longitude'] or 0),
'latitude': float(record['latitude'] or 0),
'idsurface': ids}
| 34.875 | 56 | 0.555556 | 31 | 279 | 5 | 0.548387 | 0.141935 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014085 | 0.236559 | 279 | 7 | 57 | 39.857143 | 0.713615 | 0 | 0 | 0 | 0 | 0 | 0.247312 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dc1c868b655eedce37f969499e3f8d088756e9cb | 297 | py | Python | aulas/sqldb.py | thiagonantunes/Estudos | 4f3238cf036cf8ae5dc4dbdb106a2a85ed134f55 | [
"MIT"
] | 1 | 2020-04-07T09:48:15.000Z | 2020-04-07T09:48:15.000Z | aulas/sqldb.py | thiagonantunes/Estudos | 4f3238cf036cf8ae5dc4dbdb106a2a85ed134f55 | [
"MIT"
] | null | null | null | aulas/sqldb.py | thiagonantunes/Estudos | 4f3238cf036cf8ae5dc4dbdb106a2a85ed134f55 | [
"MIT"
] | null | null | null | import mysql.connector
mydb = mysql.connector.connect(
host ='127.0.0.1',
port = 3306,
user ='root',
password = '',
database="cadastro"
)
cursor = mydb.cursor()
cursor.execute("SELECT * FROM gafanhotos LIMIT 3")
resultado = cursor.fetchall()
for x in resultado:
print(x) | 18.5625 | 50 | 0.653199 | 38 | 297 | 5.105263 | 0.763158 | 0.14433 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046414 | 0.20202 | 297 | 16 | 51 | 18.5625 | 0.772152 | 0 | 0 | 0 | 0 | 0 | 0.177852 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.076923 | 0.076923 | 0 | 0.076923 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
dc1ed9368be673800a00c49ccac8a2d18c339a55 | 622 | py | Python | requests__examples/yahoo_api__rate_currency.py | DazEB2/SimplePyScripts | 1dde0a42ba93fe89609855d6db8af1c63b1ab7cc | [
"CC-BY-4.0"
] | 117 | 2015-12-18T07:18:27.000Z | 2022-03-28T00:25:54.000Z | requests__examples/yahoo_api__rate_currency.py | DazEB2/SimplePyScripts | 1dde0a42ba93fe89609855d6db8af1c63b1ab7cc | [
"CC-BY-4.0"
] | 8 | 2018-10-03T09:38:46.000Z | 2021-12-13T19:51:09.000Z | requests__examples/yahoo_api__rate_currency.py | DazEB2/SimplePyScripts | 1dde0a42ba93fe89609855d6db8af1c63b1ab7cc | [
"CC-BY-4.0"
] | 28 | 2016-08-02T17:43:47.000Z | 2022-03-21T08:31:12.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = 'ipetrash'
# TODO: использовать http://www.cbr.ru/scripts/Root.asp?PrtId=SXML или разобраться с данными от query.yahooapis.com
# непонятны некоторые параметры
# TODO: сделать консоль
# TODO: сделать гуй
# TODO: сделать сервер
import requests
rs = requests.... | 32.736842 | 208 | 0.729904 | 89 | 622 | 5.05618 | 0.775281 | 0.073333 | 0.075556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019469 | 0.09164 | 622 | 18 | 209 | 34.555556 | 0.776991 | 0.398714 | 0 | 0 | 0 | 0.166667 | 0.59673 | 0 | 0 | 0 | 0 | 0.055556 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
dc274952ffbbbc7758469183c1112ecd840c0d35 | 18,853 | py | Python | plugins/misc.py | gorpo/manicomio_bot_heroku | aa8dc217468d076f26604a209b5798642217c789 | [
"MIT"
] | null | null | null | plugins/misc.py | gorpo/manicomio_bot_heroku | aa8dc217468d076f26604a209b5798642217c789 | [
"MIT"
] | null | null | null | plugins/misc.py | gorpo/manicomio_bot_heroku | aa8dc217468d076f26604a209b5798642217c789 | [
"MIT"
] | null | null | null |
import html
import re
import random
import amanobot
import aiohttp
from amanobot.exception import TelegramError
import time
from config import bot, sudoers, logs, bot_username
from utils import send_to_dogbin, send_to_hastebin
async def misc(msg):
if msg.get('text'):
#aqui ele repete as coisas co... | 57.831288 | 302 | 0.481038 | 2,074 | 18,853 | 4.24783 | 0.12054 | 0.050057 | 0.092168 | 0.059932 | 0.74756 | 0.707037 | 0.68025 | 0.635528 | 0.572077 | 0.528604 | 0 | 0.001357 | 0.335596 | 18,853 | 326 | 303 | 57.831288 | 0.701182 | 0.016655 | 0 | 0.559441 | 0 | 0.017483 | 0.298202 | 0.008797 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.031469 | 0 | 0.094406 | 0.048951 | 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.