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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
745ec4a1a4107300db6c0b26707d8947baa091a5 | 496 | py | Python | reproschema/models/utils.py | sanuann/reproschema-py | ece78068b185018ec3d7f56ef9498e6e366d1e70 | [
"Apache-2.0"
] | 3 | 2020-06-22T06:58:46.000Z | 2021-04-19T03:59:47.000Z | reproschema/models/utils.py | sanuann/reproschema-py | ece78068b185018ec3d7f56ef9498e6e366d1e70 | [
"Apache-2.0"
] | 10 | 2020-07-02T08:56:21.000Z | 2021-08-03T15:38:25.000Z | reproschema/models/utils.py | Remi-Gau/reproschema-py | 9597b24d0a63210508911d152f1e94175138c32e | [
"Apache-2.0"
] | 3 | 2020-06-21T19:28:40.000Z | 2020-07-03T06:53:08.000Z | import json
from . import Protocol, Activity, Item
def load_schema(filepath):
with open(filepath) as fp:
data = json.load(fp)
if "@type" not in data:
raise ValueError("Missing @type key")
schema_type = data["@type"]
if schema_type == "reproschema:Protocol":
return Protocol.from... | 29.176471 | 45 | 0.66129 | 64 | 496 | 5 | 0.390625 | 0.125 | 0.1125 | 0.215625 | 0.21875 | 0.21875 | 0.21875 | 0 | 0 | 0 | 0 | 0 | 0.227823 | 496 | 16 | 46 | 31 | 0.835509 | 0 | 0 | 0 | 0 | 0 | 0.167339 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.142857 | 0 | 0.428571 | 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 |
746d29172dee4f61bf3ed0d46737bb7c9c82633b | 5,358 | py | Python | main.py | abhinav8797/Mobile_App | b0ba324c5cde7ef29ac515d9fad8a5b52eeb2ffb | [
"MIT"
] | null | null | null | main.py | abhinav8797/Mobile_App | b0ba324c5cde7ef29ac515d9fad8a5b52eeb2ffb | [
"MIT"
] | null | null | null | main.py | abhinav8797/Mobile_App | b0ba324c5cde7ef29ac515d9fad8a5b52eeb2ffb | [
"MIT"
] | null | null | null | from kivy.app import App
from kivy.lang import Builder
from kivy.uix.screenmanager import ScreenManager, Screen
import json, glob
from datetime import datetime
from pathlib import Path
import random
from hoverable import HoverBehavior
from kivy.uix.image import Image
from kivy.uix.behaviors import ButtonBehavi... | 33.911392 | 120 | 0.557484 | 582 | 5,358 | 5.058419 | 0.216495 | 0.090353 | 0.05231 | 0.028872 | 0.466033 | 0.380774 | 0.320313 | 0.293139 | 0.241848 | 0.169837 | 0 | 0.000277 | 0.326055 | 5,358 | 157 | 121 | 34.127389 | 0.81501 | 0.034528 | 0 | 0.470588 | 0 | 0 | 0.109469 | 0.004195 | 0 | 0 | 0 | 0 | 0 | 1 | 0.10084 | false | 0.226891 | 0.084034 | 0.008403 | 0.268908 | 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 |
7474b68b83f436dbeac054b6ef77bbb2f04f040e | 4,001 | py | Python | detecting_poverty/utils.py | ryanmwebb/detecting_poverty | 74974e6a35891e7a063bf6b611b23d4ba75ad013 | [
"MIT"
] | 1 | 2021-05-29T13:59:02.000Z | 2021-05-29T13:59:02.000Z | detecting_poverty/utils.py | ryanmwebb/detecting_poverty | 74974e6a35891e7a063bf6b611b23d4ba75ad013 | [
"MIT"
] | null | null | null | detecting_poverty/utils.py | ryanmwebb/detecting_poverty | 74974e6a35891e7a063bf6b611b23d4ba75ad013 | [
"MIT"
] | 2 | 2021-03-21T18:38:47.000Z | 2021-09-04T20:28:01.000Z | import torch
import numpy as np
from PIL import Image
import random
import math
import seaborn as sns
from sklearn import metrics
import matplotlib.pyplot as plt
def adjusted_classes(y_scores, threshold):
"""
This function adjusts class predictions based on the prediction threshold (t).
Will only work for ... | 29.858209 | 85 | 0.613347 | 529 | 4,001 | 4.506616 | 0.336484 | 0.040268 | 0.040268 | 0.025168 | 0.369128 | 0.348154 | 0.30453 | 0.30453 | 0.272651 | 0.240772 | 0 | 0.014246 | 0.28068 | 4,001 | 134 | 86 | 29.858209 | 0.814107 | 0.388403 | 0 | 0.240741 | 0 | 0 | 0.020653 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.203704 | false | 0 | 0.148148 | 0 | 0.481481 | 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 |
74812779d8c48fa896cdffccf52a934b0eca18b3 | 3,433 | py | Python | api/models.py | jjkivai/SolutionsWeb | c80d63784b90776d7506c98d5c96ad100ee08d67 | [
"MIT"
] | null | null | null | api/models.py | jjkivai/SolutionsWeb | c80d63784b90776d7506c98d5c96ad100ee08d67 | [
"MIT"
] | null | null | null | api/models.py | jjkivai/SolutionsWeb | c80d63784b90776d7506c98d5c96ad100ee08d67 | [
"MIT"
] | null | null | null | from django.db import models
# Helper functions
def project_cover(instance, filename):
return "Project_{0}/cover_{1}".format(instance.id, filename)
def project_image(instance, filename):
return "Project_{0}/image_{1}".format(instance.project.id, filename)
def client_logo(instance, filename):
return "Cl... | 26.820313 | 87 | 0.633557 | 403 | 3,433 | 5.205955 | 0.210918 | 0.051478 | 0.049571 | 0.063394 | 0.259295 | 0.212107 | 0.15062 | 0.122021 | 0.054337 | 0.054337 | 0 | 0.011284 | 0.251384 | 3,433 | 128 | 88 | 26.820313 | 0.805058 | 0.011943 | 0 | 0.356436 | 0 | 0 | 0.164602 | 0.012389 | 0 | 0 | 0 | 0 | 0 | 1 | 0.118812 | false | 0 | 0.009901 | 0.118812 | 0.465347 | 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 |
748a825397bd0e9314a447970d621e66d1ce7f06 | 2,386 | py | Python | html_extract/jieba_call.py | xinyi-Z/HtmlExtract-Python | d4cc12231739f3ac521d12a8e83fdf12b829fa70 | [
"MIT"
] | 6 | 2017-03-08T09:30:39.000Z | 2019-10-23T09:47:53.000Z | html_extract/jieba_call.py | xinyi-spark/HtmlExtract-Python | d4cc12231739f3ac521d12a8e83fdf12b829fa70 | [
"MIT"
] | null | null | null | html_extract/jieba_call.py | xinyi-spark/HtmlExtract-Python | d4cc12231739f3ac521d12a8e83fdf12b829fa70 | [
"MIT"
] | 1 | 2020-04-26T09:44:30.000Z | 2020-04-26T09:44:30.000Z | # -*- coding: utf-8 -*-
'''
Name: jieba库调用
Author:XinYi 609610350@qq.com
Time:2016.3
'''
import jieba.analyse
import jieba
def cut_all(data):
'''
采用全模式分词,即把句子中所有的可以成词的词语都扫描出来
来到北京大学-->来到/北京/北京大学/大学
'''
temp_result = jieba.cut(data, cut_all=True)
temp_result = '/'.join(temp_... | 24.346939 | 99 | 0.615675 | 283 | 2,386 | 4.992933 | 0.321555 | 0.14862 | 0.04954 | 0.063694 | 0.34041 | 0.269639 | 0.269639 | 0.216561 | 0.188252 | 0.127389 | 0 | 0.015453 | 0.24057 | 2,386 | 98 | 100 | 24.346939 | 0.764349 | 0.079631 | 0 | 0.236842 | 0 | 0 | 0.037549 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.052632 | null | null | 0.026316 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
748ade9671cc9b1a53d8a53adc42d40e0c798ebd | 2,930 | py | Python | oops_fhir/r4/code_system/v3_hl7_context_conduction_style.py | Mikuana/oops_fhir | 77963315d123756b7d21ae881f433778096a1d25 | [
"MIT"
] | null | null | null | oops_fhir/r4/code_system/v3_hl7_context_conduction_style.py | Mikuana/oops_fhir | 77963315d123756b7d21ae881f433778096a1d25 | [
"MIT"
] | null | null | null | oops_fhir/r4/code_system/v3_hl7_context_conduction_style.py | Mikuana/oops_fhir | 77963315d123756b7d21ae881f433778096a1d25 | [
"MIT"
] | null | null | null | from pathlib import Path
from fhir.resources.codesystem import CodeSystem
from oops_fhir.utils import CodeSystemConcept
__all__ = ["v3HL7ContextConductionStyle"]
_resource = CodeSystem.parse_file(Path(__file__).with_suffix(".json"))
class v3HL7ContextConductionStyle:
"""
v3 Code System HL7ContextConducti... | 39.594595 | 373 | 0.675768 | 287 | 2,930 | 6.853659 | 0.376307 | 0.060498 | 0.082359 | 0.08846 | 0.664972 | 0.655821 | 0.655821 | 0.655821 | 0.640569 | 0.592781 | 0 | 0.012037 | 0.262799 | 2,930 | 73 | 374 | 40.136986 | 0.898611 | 0.105461 | 0 | 0 | 0 | 0.103448 | 0.605215 | 0.09339 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.103448 | 0 | 0.275862 | 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 |
7490be062bf8f49932d88edf6304cbe160d7101a | 1,484 | py | Python | matplotlib_widget.py | kkgg0521/-Oscilloscope-host-computer | 2035ef5a2ccb26b563425dab560ee8002aade413 | [
"MIT"
] | null | null | null | matplotlib_widget.py | kkgg0521/-Oscilloscope-host-computer | 2035ef5a2ccb26b563425dab560ee8002aade413 | [
"MIT"
] | null | null | null | matplotlib_widget.py | kkgg0521/-Oscilloscope-host-computer | 2035ef5a2ccb26b563425dab560ee8002aade413 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
@Time : 2022/1/11 14:30
@Auth : 吕伟康
@File :matplotlib_widget.py
"""
# -*- coding: utf-8 -*-
"""
@Time : 2021/12/15 10:52
@Auth : 吕伟康
@File :matplotlib_widget.py
"""
import numpy as np
from PyQt5.QtCore import QTimer
from PyQt5.QtWidgets import QWidget, QVBoxLayout
from matplot... | 28 | 86 | 0.643531 | 189 | 1,484 | 4.873016 | 0.412698 | 0.068404 | 0.042345 | 0.030402 | 0.178067 | 0.121607 | 0 | 0 | 0 | 0 | 0 | 0.035273 | 0.235849 | 1,484 | 53 | 87 | 28 | 0.776896 | 0.093666 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.241379 | false | 0 | 0.172414 | 0 | 0.448276 | 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 |
74919c44ebaafcbfd0dc0243217b7977319b1e97 | 247 | py | Python | tests/django_app/settings.py | Menda/factory-boy-loader | f45504195df5b805a5a5ebde210dfd7ee1bd6939 | [
"MIT"
] | null | null | null | tests/django_app/settings.py | Menda/factory-boy-loader | f45504195df5b805a5a5ebde210dfd7ee1bd6939 | [
"MIT"
] | null | null | null | tests/django_app/settings.py | Menda/factory-boy-loader | f45504195df5b805a5a5ebde210dfd7ee1bd6939 | [
"MIT"
] | null | null | null | """
Settings for tests.
"""
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': 'example.sqlite',
},
}
INSTALLED_APPS = [
'tests.django_app'
]
MIDDLEWARE_CLASSES = ()
SECRET_KEY = 'testing.'
| 12.35 | 47 | 0.574899 | 23 | 247 | 6 | 0.913043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005348 | 0.242915 | 247 | 19 | 48 | 13 | 0.73262 | 0.076923 | 0 | 0 | 0 | 0 | 0.368182 | 0.118182 | 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 |
749c7e0a26e0a1a459f6996d37a957ad5e2ebb4e | 906 | py | Python | bgg4py/valueobject/hot_item.py | hiroaqii/bgg4py | ba3d8ef31f23b8ec6464c1142672b5e7b6f3c87d | [
"MIT"
] | 1 | 2020-06-07T07:10:21.000Z | 2020-06-07T07:10:21.000Z | bgg4py/valueobject/hot_item.py | hiroaqii/bgg4py | ba3d8ef31f23b8ec6464c1142672b5e7b6f3c87d | [
"MIT"
] | null | null | null | bgg4py/valueobject/hot_item.py | hiroaqii/bgg4py | ba3d8ef31f23b8ec6464c1142672b5e7b6f3c87d | [
"MIT"
] | null | null | null | from collections import OrderedDict
from typing import List, Optional, Union
from .bgg import Bgg
class Item(Bgg):
id: int
rank: int
name: str
yearpublished: Optional[int]
thumbnail: str
@classmethod
def create(cls, item: OrderedDict):
_item = Item(
id=Bgg.parse_int(it... | 23.842105 | 75 | 0.610375 | 108 | 906 | 5.018519 | 0.324074 | 0.064576 | 0.055351 | 0.084871 | 0.066421 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.263797 | 906 | 37 | 76 | 24.486486 | 0.812594 | 0 | 0 | 0.074074 | 0 | 0 | 0.04415 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0.111111 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
749dc9159b829abb30d26a06f143fffa8c779d95 | 663 | py | Python | tests/update_golds.py | leonardt/magma | d3e8c9500ec3b167df8ed067e0c0305781c94ab6 | [
"MIT"
] | 167 | 2017-10-08T00:59:22.000Z | 2022-02-08T00:14:39.000Z | tests/update_golds.py | leonardt/magma | d3e8c9500ec3b167df8ed067e0c0305781c94ab6 | [
"MIT"
] | 719 | 2017-08-29T17:58:28.000Z | 2022-03-31T23:39:18.000Z | tests/update_golds.py | leonardt/magma | d3e8c9500ec3b167df8ed067e0c0305781c94ab6 | [
"MIT"
] | 14 | 2017-09-01T03:25:16.000Z | 2021-11-05T13:30:24.000Z | """
Expected to be run from repo root
"""
import shutil
import os
def copy_golds(dir_path):
for f in os.listdir(os.path.join(dir_path, "gold")):
try:
shutil.copy(
os.path.join(dir_path, "build", f),
os.path.join(dir_path, "gold", f)
)
except ... | 23.678571 | 66 | 0.582202 | 94 | 663 | 4.031915 | 0.425532 | 0.110818 | 0.158311 | 0.102902 | 0.364116 | 0.195251 | 0 | 0 | 0 | 0 | 0 | 0 | 0.286576 | 663 | 27 | 67 | 24.555556 | 0.801269 | 0.131222 | 0 | 0 | 0 | 0 | 0.073944 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0.058824 | 0.117647 | 0 | 0.176471 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
74a16456b6f97b4da59fe2f3e3279a4ce95a7134 | 5,647 | py | Python | test_machine.py | technosvitman/statemachine | e1e80ac364c9c9916785ba6c4bad3e434cc964db | [
"MIT"
] | null | null | null | test_machine.py | technosvitman/statemachine | e1e80ac364c9c9916785ba6c4bad3e434cc964db | [
"MIT"
] | 2 | 2021-08-10T09:38:59.000Z | 2021-08-22T15:52:37.000Z | test_machine.py | technosvitman/statemachine | e1e80ac364c9c9916785ba6c4bad3e434cc964db | [
"MIT"
] | null | null | null |
import sys
import io
import time
import argparse
import re
from pyctest import *
def getState(test):
return test.c_test_machine.current_state
'''
@see PycTestCase
'''
class TestStartAndTransition(PycTestCase):
def __init__(self):
super(PycTestCase, self).__init__()
def runTest(se... | 27.817734 | 79 | 0.552506 | 566 | 5,647 | 5.136042 | 0.164311 | 0.077399 | 0.132095 | 0.170623 | 0.589955 | 0.523564 | 0.493292 | 0.493292 | 0.48366 | 0.461644 | 0 | 0.019555 | 0.347972 | 5,647 | 203 | 80 | 27.817734 | 0.769962 | 0 | 0 | 0.515625 | 0 | 0 | 0.141436 | 0.014365 | 0 | 0 | 0 | 0 | 0.09375 | 1 | 0.09375 | false | 0 | 0.046875 | 0.007813 | 0.203125 | 0.015625 | 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 |
74a5439f43793637956270c9f0e328654581f7c0 | 382 | py | Python | app.py | arthuralvim/deploy-aws-image | 401b2e6ad63e256dce1028b83b1a9d02cccfd919 | [
"MIT"
] | null | null | null | app.py | arthuralvim/deploy-aws-image | 401b2e6ad63e256dce1028b83b1a9d02cccfd919 | [
"MIT"
] | null | null | null | app.py | arthuralvim/deploy-aws-image | 401b2e6ad63e256dce1028b83b1a9d02cccfd919 | [
"MIT"
] | null | null | null | import os
from flask import Flask
from flask_restful import Resource, Api
app = Flask(__name__)
api = Api(app)
class EnvironmentVariablesEndpoint(Resource):
def get(self):
return [(key, os.environ[key]) for key in os.environ.keys()]
api.add_resource(EnvironmentVariablesEndpoint, '/')
if __name__ == '... | 20.105263 | 68 | 0.712042 | 53 | 382 | 4.867925 | 0.566038 | 0.023256 | 0.023256 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024845 | 0.157068 | 382 | 18 | 69 | 21.222222 | 0.776398 | 0 | 0 | 0 | 0 | 0 | 0.041885 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.272727 | 0.090909 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
74a99769f198cde2e4a1b1b98de0e0682ce6f9f0 | 1,597 | py | Python | piicatcher/detectors.py | argos-education/piicatcher | 7370cad8a4938762311926e8ab3bc286232e7106 | [
"Apache-2.0"
] | 4 | 2019-07-10T08:52:56.000Z | 2019-10-23T13:58:18.000Z | piicatcher/detectors.py | argos-education/piicatcher | 7370cad8a4938762311926e8ab3bc286232e7106 | [
"Apache-2.0"
] | 11 | 2019-03-21T11:28:07.000Z | 2019-08-30T12:13:28.000Z | piicatcher/detectors.py | argos-education/piicatcher | 7370cad8a4938762311926e8ab3bc286232e7106 | [
"Apache-2.0"
] | 2 | 2019-03-21T11:06:49.000Z | 2019-03-27T06:05:52.000Z | import inspect
from abc import ABC, abstractmethod
from typing import Optional, Type
import catalogue
from dbcat.catalog.models import CatColumn
from dbcat.catalog.pii_types import PiiType
class Detector(ABC):
"""Scanner abstract class that defines required methods"""
name: str
pass
class MetadataDet... | 29.036364 | 98 | 0.713212 | 183 | 1,597 | 6.185792 | 0.437158 | 0.067138 | 0.028269 | 0.05477 | 0.201413 | 0.201413 | 0.201413 | 0.113074 | 0.113074 | 0.113074 | 0 | 0 | 0.191609 | 1,597 | 54 | 99 | 29.574074 | 0.87684 | 0.418284 | 0 | 0.095238 | 0 | 0 | 0.091541 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.047619 | 0.285714 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
7766354d83244c354a73d41b8ca559a889302218 | 17,570 | py | Python | factory/manageFactoryDowntimes.py | bbockelm/glideinWMS | a2b39e3d4ff6c4527efad54b1eefe728a4ec9d18 | [
"BSD-3-Clause"
] | null | null | null | factory/manageFactoryDowntimes.py | bbockelm/glideinWMS | a2b39e3d4ff6c4527efad54b1eefe728a4ec9d18 | [
"BSD-3-Clause"
] | 3 | 2015-12-02T19:37:45.000Z | 2016-01-20T03:21:48.000Z | factory/manageFactoryDowntimes.py | bbockelm/glideinWMS | a2b39e3d4ff6c4527efad54b1eefe728a4ec9d18 | [
"BSD-3-Clause"
] | 1 | 2015-12-01T23:02:41.000Z | 2015-12-01T23:02:41.000Z | #!/usr/bin/env python
#
# Project:
# glideinWMS
#
# File Version:
#
# Description:
# This program allows to add announced downtimes
# as well as handle unexpected downtimes
#
import os.path
import os
import time,string
import sys
import re
STARTUP_DIR=sys.path[0]
sys.path.append(os.path.join(STARTUP_DIR,"../../... | 35 | 158 | 0.63893 | 2,342 | 17,570 | 4.614005 | 0.143894 | 0.04988 | 0.020359 | 0.023691 | 0.374607 | 0.28586 | 0.240422 | 0.202388 | 0.185545 | 0.179715 | 0 | 0.006981 | 0.241833 | 17,570 | 501 | 159 | 35.06986 | 0.804219 | 0.129311 | 0 | 0.291339 | 0 | 0.010499 | 0.160431 | 0.015886 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.028871 | null | null | 0.11811 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7769bed40fe9b0d6234a1c8f4db9eaf32d2dd23b | 616 | py | Python | band/config/reader.py | rockstat/rockband | e6c3bbd5cec9b692185cbd620ed107eba8d312af | [
"Apache-2.0"
] | 14 | 2018-08-27T05:36:53.000Z | 2021-01-15T10:08:56.000Z | band/config/reader.py | rockstat/rockband | e6c3bbd5cec9b692185cbd620ed107eba8d312af | [
"Apache-2.0"
] | null | null | null | band/config/reader.py | rockstat/rockband | e6c3bbd5cec9b692185cbd620ed107eba8d312af | [
"Apache-2.0"
] | 1 | 2018-05-20T17:04:48.000Z | 2018-05-20T17:04:48.000Z | from jinja2 import Environment, FileSystemLoader, Template, TemplateNotFound
import collections
import os
import yaml
from os.path import dirname, basename
from .env import environ
from ..log import logger
def reader(fn):
logger.debug('loading', f=fn)
try:
tmplenv = Environment(loader=FileSystemLoader(... | 28 | 76 | 0.696429 | 73 | 616 | 5.863014 | 0.561644 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002049 | 0.207792 | 616 | 21 | 77 | 29.333333 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0.050407 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.368421 | 0 | 0.473684 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
776a43d738bc9faab56761683d2b178a96cf6d30 | 655 | py | Python | pastebin/migrations/0006_auto_20170129_1502.py | johannessarpola/django-pastebin | fccc396ad4532906ac7cb0e1343c341fceb65b14 | [
"MIT"
] | null | null | null | pastebin/migrations/0006_auto_20170129_1502.py | johannessarpola/django-pastebin | fccc396ad4532906ac7cb0e1343c341fceb65b14 | [
"MIT"
] | null | null | null | pastebin/migrations/0006_auto_20170129_1502.py | johannessarpola/django-pastebin | fccc396ad4532906ac7cb0e1343c341fceb65b14 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11a1 on 2017-01-29 15:02
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pastebin', '0005_auto_20170129_1333'),
]
operations = [
migrations.AlterFie... | 25.192308 | 71 | 0.61374 | 66 | 655 | 5.878788 | 0.636364 | 0.103093 | 0.128866 | 0.149485 | 0.396907 | 0.396907 | 0 | 0 | 0 | 0 | 0 | 0.069328 | 0.273282 | 655 | 25 | 72 | 26.2 | 0.745798 | 0.103817 | 0 | 0.333333 | 1 | 0 | 0.159247 | 0.039384 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.277778 | 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 |
776ab60110d0cc5f95a05461c25be9b7a11b0d17 | 23,202 | py | Python | vb2py/vbfunctions.py | mvz/vb2py | 6ea046f6fc202527a1b3fcd3ef5a67b969dea715 | [
"BSD-3-Clause"
] | 2 | 2015-12-01T10:52:36.000Z | 2021-04-20T05:15:01.000Z | vb2py/vbfunctions.py | mvz/vb2py | 6ea046f6fc202527a1b3fcd3ef5a67b969dea715 | [
"BSD-3-Clause"
] | 4 | 2016-07-18T18:28:24.000Z | 2016-07-19T08:30:14.000Z | vb2py/vbfunctions.py | mvz/vb2py | 6ea046f6fc202527a1b3fcd3ef5a67b969dea715 | [
"BSD-3-Clause"
] | 3 | 2015-07-15T21:08:19.000Z | 2021-02-25T09:39:12.000Z | """
Functions to mimic VB intrinsic functions or things
"""
from __future__ import generators
from vb2py.vbclasses import *
from vb2py.vbconstants import *
from vb2py import utils
from vb2py import config
import math
import sys
import fnmatch # For Like
import glob # For Dir
import os
import shutil # For FileCopy... | 31.269542 | 123 | 0.64572 | 3,209 | 23,202 | 4.639763 | 0.217513 | 0.015313 | 0.023977 | 0.008463 | 0.15723 | 0.121298 | 0.096111 | 0.075828 | 0.052186 | 0.034052 | 0 | 0.021596 | 0.247608 | 23,202 | 741 | 124 | 31.311741 | 0.8313 | 0.099517 | 0 | 0.210784 | 0 | 0 | 0.050841 | 0 | 0 | 0 | 0 | 0.00135 | 0.002451 | 0 | null | null | 0.004902 | 0.041667 | 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 |
776e19a406580ffe1c88612e6f292579a2edbc26 | 3,227 | py | Python | qrogue/management/save_data.py | 7Magic7Mike7/Qrogue | 70bd5671a77981c1d4b633246321ba44f13c21ff | [
"MIT"
] | 4 | 2021-12-14T19:13:43.000Z | 2022-02-16T13:25:38.000Z | qrogue/management/save_data.py | 7Magic7Mike7/Qrogue | 70bd5671a77981c1d4b633246321ba44f13c21ff | [
"MIT"
] | null | null | null | qrogue/management/save_data.py | 7Magic7Mike7/Qrogue | 70bd5671a77981c1d4b633246321ba44f13c21ff | [
"MIT"
] | 1 | 2022-01-04T18:35:51.000Z | 2022-01-04T18:35:51.000Z |
from qrogue.game.logic.actors import Player, Robot
from qrogue.game.logic.actors.controllables import TestBot, LukeBot
from qrogue.game.world.map import CallbackPack
from qrogue.util import Logger, PathConfig, AchievementManager, RandomManager, CommonPopups, CheatConfig
from qrogue.util.achievements import Achievement... | 38.416667 | 120 | 0.618531 | 319 | 3,227 | 5.996865 | 0.37931 | 0.026137 | 0.039728 | 0.020387 | 0.085729 | 0.037637 | 0 | 0 | 0 | 0 | 0 | 0.001316 | 0.293771 | 3,227 | 83 | 121 | 38.879518 | 0.838087 | 0.006198 | 0 | 0.085714 | 0 | 0 | 0.124532 | 0.05181 | 0 | 0 | 0 | 0.012048 | 0 | 1 | 0.128571 | false | 0.014286 | 0.071429 | 0.057143 | 0.414286 | 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 |
77787a24c06c5cadf9b989de8250da820c76d334 | 3,317 | py | Python | ulutil/blat.py | churchlab/ulutil | 7f9a427274acd99ae4d2dfe35123feb7c2dc9625 | [
"Apache-2.0"
] | 1 | 2021-10-04T13:50:01.000Z | 2021-10-04T13:50:01.000Z | ulutil/blat.py | churchlab/ulutil | 7f9a427274acd99ae4d2dfe35123feb7c2dc9625 | [
"Apache-2.0"
] | null | null | null | ulutil/blat.py | churchlab/ulutil | 7f9a427274acd99ae4d2dfe35123feb7c2dc9625 | [
"Apache-2.0"
] | null | null | null | # Copyright 2014 Uri Laserson
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,... | 34.552083 | 117 | 0.669279 | 469 | 3,317 | 4.705757 | 0.385928 | 0.027186 | 0.028999 | 0.033983 | 0.247848 | 0.215677 | 0.192116 | 0.164024 | 0.164024 | 0.164024 | 0 | 0.024212 | 0.215556 | 3,317 | 95 | 118 | 34.915789 | 0.823982 | 0.279168 | 0 | 0.20339 | 0 | 0.033898 | 0.153781 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.101695 | 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 |
777afd3d3324ad331c8330a1ce08d5445f8f7120 | 1,064 | py | Python | source/win.py | TwinIsland/WPN | b0f42ff5c3fdad80830ebca1e39254b14ddd5929 | [
"MIT"
] | null | null | null | source/win.py | TwinIsland/WPN | b0f42ff5c3fdad80830ebca1e39254b14ddd5929 | [
"MIT"
] | null | null | null | source/win.py | TwinIsland/WPN | b0f42ff5c3fdad80830ebca1e39254b14ddd5929 | [
"MIT"
] | null | null | null | import requests
import lxml.etree
def getSS(crawler):
api = 'https://www.youneed.win/free-ss'
c = lxml.etree.HTML(requests.get(api,headers=crawler.get_crawel_header(),proxies=crawler.get_an_ip()).content)
r = []
count = 0
while True:
count += 1
# //*[@id="post-box"]/div/section/ta... | 38 | 133 | 0.568609 | 150 | 1,064 | 4 | 0.393333 | 0.06 | 0.09 | 0.12 | 0.393333 | 0.393333 | 0.393333 | 0.393333 | 0.341667 | 0.341667 | 0 | 0.014943 | 0.182331 | 1,064 | 27 | 134 | 39.407407 | 0.674713 | 0.133459 | 0 | 0 | 0 | 0 | 0.332971 | 0.20457 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0.111111 | 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 |
778576c10bbe70454c010137342f7b1e385656b7 | 1,478 | py | Python | config.py | Agasper/gaben | 7418a79d0809c34b5ab63a2b201305f89445eb19 | [
"MIT"
] | null | null | null | config.py | Agasper/gaben | 7418a79d0809c34b5ab63a2b201305f89445eb19 | [
"MIT"
] | null | null | null | config.py | Agasper/gaben | 7418a79d0809c34b5ab63a2b201305f89445eb19 | [
"MIT"
] | null | null | null | API_KEY = ""
DONT_PRINT_USAGE_FOR = []
REP_DIRECTORY = "C:\\GabenStorage"
MAX_UPLOAD_SIZE_MB = 300
UNITY = {
"2017.2.0f3": "C:\\Program Files\\Unity\\Editor\\Unity.exe",
"2017.4.3f1": "C:\\Program Files\\Unity2017.4.3\\Editor\\Unity.exe"
}
QUOTES = ["I'm a handsome man with a charming personality.", \
"If Nvid... | 52.785714 | 109 | 0.696211 | 237 | 1,478 | 4.299578 | 0.662447 | 0.015702 | 0.025515 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02292 | 0.202977 | 1,478 | 28 | 110 | 52.785714 | 0.842105 | 0 | 0 | 0 | 0 | 0.037037 | 0.759973 | 0.047329 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.037037 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7786c106803d9e2cbd937d3ffdaefd0630b720b5 | 1,219 | py | Python | unittest/scripts/auto/py_shell/scripts/util_help_norecord.py | mueller/mysql-shell | 29bafc5692bd536a12c4e41c54cb587375fe52cf | [
"Apache-2.0"
] | 119 | 2016-04-14T14:16:22.000Z | 2022-03-08T20:24:38.000Z | unittest/scripts/auto/py_shell/scripts/util_help_norecord.py | mueller/mysql-shell | 29bafc5692bd536a12c4e41c54cb587375fe52cf | [
"Apache-2.0"
] | 9 | 2017-04-26T20:48:42.000Z | 2021-09-07T01:52:44.000Z | unittest/scripts/auto/py_shell/scripts/util_help_norecord.py | mueller/mysql-shell | 29bafc5692bd536a12c4e41c54cb587375fe52cf | [
"Apache-2.0"
] | 51 | 2016-07-20T05:06:48.000Z | 2022-03-09T01:20:53.000Z | #@ util help
util.help()
#@ util help, \? [USE:util help]
\? util
#@ util check_for_server_upgrade help
util.help('check_for_server_upgrade')
#@ util check_for_server_upgrade help, \? [USE:util check_for_server_upgrade help]
\? check_for_server_upgrade
# WL13807-TSFR_1_1
#@ util dump_instance help
util.help('dump_i... | 21.017241 | 82 | 0.73749 | 188 | 1,219 | 4.473404 | 0.12234 | 0.11415 | 0.142687 | 0.124851 | 0.21522 | 0.103448 | 0 | 0 | 0 | 0 | 0 | 0.026365 | 0.128794 | 1,219 | 57 | 83 | 21.385965 | 0.765537 | 0.641509 | 0 | 0 | 0 | 0 | 0.250602 | 0.057831 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.222222 | 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 |
778e7c20b282230893c8d830986a05ad41c75dfa | 479 | py | Python | globus/afisha/admin.py | Ecmek/kino-globus | 31d61da551ece237cbfed6b96f7fdf49b8c06c9f | [
"BSD-3-Clause"
] | 3 | 2021-08-02T04:35:53.000Z | 2021-08-17T07:29:53.000Z | globus/afisha/admin.py | Ecmek/kino-globus | 31d61da551ece237cbfed6b96f7fdf49b8c06c9f | [
"BSD-3-Clause"
] | null | null | null | globus/afisha/admin.py | Ecmek/kino-globus | 31d61da551ece237cbfed6b96f7fdf49b8c06c9f | [
"BSD-3-Clause"
] | null | null | null | from django.contrib import admin
from .models import Cinema, ShowTime
class CinemaAdmin(admin.ModelAdmin):
list_display = ('title', 'genre', 'trailer', 'description', 'mpaa',)
search_fields = ('title',)
empty_value_display = '-пусто-'
class ShowTimeAdmin(admin.ModelAdmin):
list_display = ('cinema',... | 25.210526 | 72 | 0.713987 | 51 | 479 | 6.588235 | 0.588235 | 0.095238 | 0.113095 | 0.154762 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137787 | 479 | 18 | 73 | 26.611111 | 0.813559 | 0 | 0 | 0 | 0 | 0 | 0.156576 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 0.818182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
778ea5a8d867748ca6cad50ed3e26fab5276625c | 402 | py | Python | printer/colors.py | lsmucassi/pretty_printer | 3db6a656dc3d299f2f939b24bcd0fbce86045b52 | [
"MIT"
] | null | null | null | printer/colors.py | lsmucassi/pretty_printer | 3db6a656dc3d299f2f939b24bcd0fbce86045b52 | [
"MIT"
] | null | null | null | printer/colors.py | lsmucassi/pretty_printer | 3db6a656dc3d299f2f939b24bcd0fbce86045b52 | [
"MIT"
] | null | null | null | class Colors:
def __init__(self):
self.color_dict = {
"ERROR": ';'.join([str(7), str(31), str(47)]),
"WARN": ';'.join([str(7), str(33), str(40)]),
"INFO": ';'.join([str(7), str(32), str(40)]),
"GENERAL": ';'.join([str(7), str(34), str(47)])
}
... | 33.5 | 59 | 0.482587 | 52 | 402 | 3.557692 | 0.480769 | 0.151351 | 0.172973 | 0.237838 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.069444 | 0.283582 | 402 | 12 | 60 | 33.5 | 0.572917 | 0 | 0 | 0 | 0 | 0 | 0.059553 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0.1 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7791064a4d310761029e6775a24459c383307554 | 255 | py | Python | doozerlib/constants.py | tnozicka/doozer | c5d4031293153679eacaf6c4d0bcb1fe5e0e2fac | [
"Apache-2.0"
] | null | null | null | doozerlib/constants.py | tnozicka/doozer | c5d4031293153679eacaf6c4d0bcb1fe5e0e2fac | [
"Apache-2.0"
] | null | null | null | doozerlib/constants.py | tnozicka/doozer | c5d4031293153679eacaf6c4d0bcb1fe5e0e2fac | [
"Apache-2.0"
] | null | null | null | from __future__ import absolute_import, print_function, unicode_literals
# Environment variables to disable Git stdin prompts for username, password, etc
GIT_NO_PROMPTS = {
"GIT_SSH_COMMAND": "ssh -oBatchMode=yes",
"GIT_TERMINAL_PROMPT": "0",
}
| 28.333333 | 80 | 0.768627 | 33 | 255 | 5.545455 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004587 | 0.145098 | 255 | 8 | 81 | 31.875 | 0.834862 | 0.305882 | 0 | 0 | 0 | 0 | 0.308571 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
77984a9436d4a3b5de5e37b9e6fe5e44d68889cf | 2,175 | py | Python | tests/utils.py | paul-serafimescu/growth-tracker | 972dd1de534225a9be2e763045db560f420a844c | [
"MIT"
] | 1 | 2021-07-28T04:21:12.000Z | 2021-07-28T04:21:12.000Z | tests/utils.py | paul-serafimescu/growth-tracker | 972dd1de534225a9be2e763045db560f420a844c | [
"MIT"
] | null | null | null | tests/utils.py | paul-serafimescu/growth-tracker | 972dd1de534225a9be2e763045db560f420a844c | [
"MIT"
] | null | null | null | from django.test import TestCase, RequestFactory
from django.contrib.auth.models import AbstractBaseUser, AnonymousUser
from django.test.client import CONTENT_TYPE_RE
from django.views import View
from django.urls import resolve
from abc import abstractclassmethod, ABCMeta
from typing import Any, Callable, Union, Type
... | 40.277778 | 139 | 0.694253 | 270 | 2,175 | 5.455556 | 0.351852 | 0.059742 | 0.057026 | 0.07332 | 0.13442 | 0.13442 | 0 | 0 | 0 | 0 | 0 | 0 | 0.18069 | 2,175 | 53 | 140 | 41.037736 | 0.826599 | 0.06023 | 0 | 0 | 0 | 0 | 0.102564 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.139535 | false | 0 | 0.186047 | 0.023256 | 0.511628 | 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 |
779db1909e89a924773ce4c275b00bc51e3b47f1 | 572 | py | Python | manage_room/migrations/0005_auto_20170129_0024.py | gaybro8777/coding-night-live | b10aeefbcb35fa388a18cb983638ed5983c1874b | [
"MIT"
] | 73 | 2017-01-26T16:45:12.000Z | 2021-07-05T20:27:38.000Z | manage_room/migrations/0005_auto_20170129_0024.py | gaybro8777/coding-night-live | b10aeefbcb35fa388a18cb983638ed5983c1874b | [
"MIT"
] | 93 | 2017-01-25T18:28:02.000Z | 2019-06-10T22:11:38.000Z | manage_room/migrations/0005_auto_20170129_0024.py | dduk-ddak/coding-night-live | be7b0b9a89a9a5332c0980dbc3698602266a1e8c | [
"MIT"
] | 22 | 2017-02-12T12:51:17.000Z | 2020-09-08T02:38:20.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2017-01-28 15:24
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('manage_room', '0004_auto_20170127_1505'),
]
operations = [
migrations.Remov... | 22.88 | 64 | 0.59965 | 59 | 572 | 5.59322 | 0.762712 | 0.054545 | 0.084848 | 0.109091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.080882 | 0.286713 | 572 | 24 | 65 | 23.833333 | 0.727941 | 0.118881 | 0 | 0.235294 | 1 | 0 | 0.115768 | 0.045908 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.117647 | 0 | 0.294118 | 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 |
779e9f40e92537973be64d2dc298cc911fe154df | 11,165 | py | Python | storyboard/tests/api/test_user_tokens.py | Sitcode-Zoograf/storyboard | 5833f87e20722c524a1e4a0b8e1fb82206fb4e5c | [
"Apache-2.0"
] | null | null | null | storyboard/tests/api/test_user_tokens.py | Sitcode-Zoograf/storyboard | 5833f87e20722c524a1e4a0b8e1fb82206fb4e5c | [
"Apache-2.0"
] | null | null | null | storyboard/tests/api/test_user_tokens.py | Sitcode-Zoograf/storyboard | 5833f87e20722c524a1e4a0b8e1fb82206fb4e5c | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2014 Hewlett-Packard Development Company, L.P.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | 37.847458 | 79 | 0.628482 | 1,343 | 11,165 | 5.064036 | 0.131794 | 0.094839 | 0.05411 | 0.067637 | 0.779297 | 0.772386 | 0.697839 | 0.631378 | 0.613586 | 0.56477 | 0 | 0.025306 | 0.260278 | 11,165 | 294 | 80 | 37.97619 | 0.79816 | 0.19382 | 0 | 0.655914 | 0 | 0 | 0.116011 | 0.002393 | 0 | 0 | 0 | 0 | 0.284946 | 1 | 0.145161 | false | 0 | 0.010753 | 0 | 0.172043 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
77a8d6e727c876130667c55f98c00492271efba6 | 17,554 | py | Python | pjrd/formulaSetupDialog.py | NAustinO/Nutrition-Assistant | 520383cdb2c9c2d087ce6e425786b71235febd4b | [
"MIT"
] | 1 | 2022-03-25T23:31:20.000Z | 2022-03-25T23:31:20.000Z | pjrd/formulaSetupDialog.py | NAustinO/Nutrition-Assistant | 520383cdb2c9c2d087ce6e425786b71235febd4b | [
"MIT"
] | null | null | null | pjrd/formulaSetupDialog.py | NAustinO/Nutrition-Assistant | 520383cdb2c9c2d087ce6e425786b71235febd4b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
################################################################################
## Form generated from reading UI file 'formulaSetupDialog.ui'
##
## Created by: Qt User Interface Compiler version 5.15.1
##
## WARNING! All changes made in this file will be lost when recompiling UI file!
#######... | 45.713542 | 331 | 0.69346 | 1,433 | 17,554 | 8.438939 | 0.200977 | 0.034731 | 0.042669 | 0.043662 | 0.198958 | 0.079219 | 0.079219 | 0.072439 | 0.033408 | 0 | 0 | 0.007005 | 0.211177 | 17,554 | 384 | 332 | 45.713542 | 0.866325 | 0.076507 | 0 | 0.10084 | 1 | 0.004202 | 0.107539 | 0.026452 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029412 | false | 0 | 0.029412 | 0 | 0.088235 | 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 |
77b129b5d479815397258c26813a6279a03a1dcc | 453 | py | Python | dienstplan/dienste/admin.py | MikeTsenatek/DienstplanV2 | 618e398c91fe7e4038d42eb34008e4df5063fb42 | [
"MIT"
] | null | null | null | dienstplan/dienste/admin.py | MikeTsenatek/DienstplanV2 | 618e398c91fe7e4038d42eb34008e4df5063fb42 | [
"MIT"
] | null | null | null | dienstplan/dienste/admin.py | MikeTsenatek/DienstplanV2 | 618e398c91fe7e4038d42eb34008e4df5063fb42 | [
"MIT"
] | null | null | null | from django.contrib import admin
# Register your models here.
from .models import DpDienste,DpBesatzung
class BesatzungInline(admin.TabularInline):
model = DpBesatzung
extra = 0
class DiensteAdmin(admin.ModelAdmin):
list_display = ('tag', 'schicht', 'ordner', 'ordner_name')
list_filter = ('ordner_... | 22.65 | 80 | 0.737307 | 49 | 453 | 6.632653 | 0.632653 | 0.123077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002597 | 0.15011 | 453 | 19 | 81 | 23.842105 | 0.841558 | 0.057395 | 0 | 0 | 0 | 0 | 0.171765 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.9 | 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 |
77b75ef5b70b72a8fcecd1918e8072f524ec97fa | 892 | py | Python | query.py | IntimateMerger/dockerfile-aql | f1d4f36038a718857613516e9562b25910d070f0 | [
"Apache-2.0"
] | null | null | null | query.py | IntimateMerger/dockerfile-aql | f1d4f36038a718857613516e9562b25910d070f0 | [
"Apache-2.0"
] | null | null | null | query.py | IntimateMerger/dockerfile-aql | f1d4f36038a718857613516e9562b25910d070f0 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
import time
import aerospike
from aerospike import predicates as p
if __name__ == "__main__":
if len(sys.argv) == 6:
as_host = str(sys.argv[1])
ns_name = str(sys.argv[2])
st_name = str(sys.argv[3])
key_name = str(sys.argv[4])... | 27.030303 | 84 | 0.565022 | 130 | 892 | 3.715385 | 0.538462 | 0.086957 | 0.082816 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064516 | 0.270179 | 892 | 32 | 85 | 27.875 | 0.677419 | 0.069507 | 0 | 0 | 0 | 0.043478 | 0.107618 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.173913 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
77b97cfe8cb7188fc56132de4e76018734d576ae | 1,317 | py | Python | parallel.py | ambimanus/demand-response-cohda | 29b03f9fb264cd1e169ed2ed9a895df9558cb214 | [
"MIT"
] | 1 | 2017-05-04T16:18:23.000Z | 2017-05-04T16:18:23.000Z | parallel.py | ambimanus/demand-response-cohda | 29b03f9fb264cd1e169ed2ed9a895df9558cb214 | [
"MIT"
] | null | null | null | parallel.py | ambimanus/demand-response-cohda | 29b03f9fb264cd1e169ed2ed9a895df9558cb214 | [
"MIT"
] | 1 | 2020-07-26T18:07:31.000Z | 2020-07-26T18:07:31.000Z | # coding=utf-8
from __future__ import division
import sys
import os
import pickle
from configuration import Configuration
import main
def run(cfg_dict):
cfg = main.main(Configuration(**cfg_dict))
fn = str(os.path.join(cfg.basepath, '.'.join(
('cfg', cfg.title, str(cfg.seed), 'pickle'))))
wit... | 24.388889 | 60 | 0.516325 | 172 | 1,317 | 3.825581 | 0.406977 | 0.042553 | 0.027356 | 0.042553 | 0.115502 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02781 | 0.344723 | 1,317 | 53 | 61 | 24.849057 | 0.734647 | 0.040243 | 0 | 0.05 | 0 | 0 | 0.069102 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.15 | null | null | 0.025 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
77cb970ba8e0144097ddb18a91129b58ff4a61e3 | 196 | py | Python | app/config/secure.py | xiaojieluo/flask_restapi_template | 70b93c90d3cf9dd53a4dcbeb05bf2f67b81bfc01 | [
"Apache-2.0"
] | null | null | null | app/config/secure.py | xiaojieluo/flask_restapi_template | 70b93c90d3cf9dd53a4dcbeb05bf2f67b81bfc01 | [
"Apache-2.0"
] | null | null | null | app/config/secure.py | xiaojieluo/flask_restapi_template | 70b93c90d3cf9dd53a4dcbeb05bf2f67b81bfc01 | [
"Apache-2.0"
] | null | null | null | SQLALCHEMY_DATABASE_URI = \
'mysql+cymysql://root:00000000@localhost/ucar'
SECRET_KEY = '***'
SQLALCHEMY_TRACK_MODIFICATIONS = True
MINA_APP = {
'AppID': '***',
'AppSecret': '***'
}
| 17.818182 | 50 | 0.642857 | 19 | 196 | 6.315789 | 0.947368 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04878 | 0.163265 | 196 | 10 | 51 | 19.6 | 0.682927 | 0 | 0 | 0 | 0 | 0 | 0.341837 | 0.22449 | 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 |
77ce08d2e97b02ad8f56c59858aeebde6eada6c4 | 941 | py | Python | onepanman_api/views/api/code.py | Capstone-onepanman/api-server | 1a5174fbc441d2718f3963863590f634ba2014e1 | [
"MIT"
] | null | null | null | onepanman_api/views/api/code.py | Capstone-onepanman/api-server | 1a5174fbc441d2718f3963863590f634ba2014e1 | [
"MIT"
] | 12 | 2020-03-24T18:09:30.000Z | 2022-03-12T00:15:07.000Z | onepanman_api/views/api/code.py | Capstone-onepanman/api-server | 1a5174fbc441d2718f3963863590f634ba2014e1 | [
"MIT"
] | null | null | null | import django_filters
from rest_framework import viewsets
from onepanman_api.models import Code
from onepanman_api.serializers.code import CodeSerializer
from rest_framework.mixins import ListModelMixin
from rest_framework.response import Response
from rest_framework.views import APIView
class CodeViewSet(viewsets.M... | 29.40625 | 74 | 0.744952 | 108 | 941 | 6.37037 | 0.490741 | 0.094477 | 0.098837 | 0.063953 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.165781 | 941 | 31 | 75 | 30.354839 | 0.876433 | 0.018066 | 0 | 0 | 0 | 0 | 0.029284 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.35 | 0 | 0.85 | 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 |
77d586d8a485283ddae1a7482067b25ac7df8cd7 | 8,337 | py | Python | dex/dexinfo.py | callmejacob/dexfactory | 2de996927ee9f036b2c7fc6cb04f43ac790f35af | [
"BSD-2-Clause"
] | 7 | 2018-06-14T10:40:47.000Z | 2021-05-18T08:55:34.000Z | dex/dexinfo.py | callmejacob/dexfactory | 2de996927ee9f036b2c7fc6cb04f43ac790f35af | [
"BSD-2-Clause"
] | 1 | 2020-05-28T08:59:50.000Z | 2020-05-28T08:59:50.000Z | dex/dexinfo.py | callmejacob/dexfactory | 2de996927ee9f036b2c7fc6cb04f43ac790f35af | [
"BSD-2-Clause"
] | 3 | 2018-02-28T02:08:06.000Z | 2018-09-12T03:09:18.000Z | # -- coding: utf-8 --
import numpy as np
import hashlib
import zlib
from section import *
class DexInfo(object):
"""
dex信息
"""
def __init__(self, dex_path, dex_bytes = None):
"""
初始化
dex_path: dex的文件路径
self.dex_bytes: dex的字节数组
self.header: 头部信息的字节数组
"""
# 记录文件路径
self.dex_path = dex_path
... | 26.382911 | 164 | 0.732997 | 1,050 | 8,337 | 5.517143 | 0.18381 | 0.051787 | 0.058692 | 0.04937 | 0.40687 | 0.324702 | 0.263767 | 0.207492 | 0.200587 | 0.186432 | 0 | 0.007816 | 0.155931 | 8,337 | 315 | 165 | 26.466667 | 0.815404 | 0.208828 | 0 | 0.248276 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002624 | 0 | 0 | 0 | null | null | 0 | 0.027586 | null | null | 0.027586 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
77d66e14d713bc6998d6a77e5587d84eb4585cb9 | 255 | py | Python | launch.py | rugleb/cad | 0fd3732b57398e4eacfbc4872286254068d1754a | [
"MIT"
] | 3 | 2019-01-28T14:20:23.000Z | 2020-09-09T20:19:23.000Z | launch.py | rugleb/cad | 0fd3732b57398e4eacfbc4872286254068d1754a | [
"MIT"
] | 7 | 2019-01-15T08:30:59.000Z | 2019-01-25T17:11:43.000Z | launch.py | rugleb/CAD | 0fd3732b57398e4eacfbc4872286254068d1754a | [
"MIT"
] | 1 | 2021-07-19T07:28:25.000Z | 2021-07-19T07:28:25.000Z | #!/usr/bin/env python
import sys
from PyQt5.QtWidgets import QApplication
from cad.application import Application
if __name__ == '__main__':
app = QApplication(sys.argv)
workspace = Application()
workspace.show()
sys.exit(app.exec_())
| 18.214286 | 40 | 0.717647 | 31 | 255 | 5.612903 | 0.677419 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004739 | 0.172549 | 255 | 13 | 41 | 19.615385 | 0.819905 | 0.078431 | 0 | 0 | 0 | 0 | 0.034188 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
77daf6cdbbae093a434d465fa597fa57326476d1 | 21,478 | py | Python | clone_scanner.py | m42e/weechat_scripts | a57af7181c8231d36f9a32d467d134ab4f7d10fd | [
"MIT"
] | null | null | null | clone_scanner.py | m42e/weechat_scripts | a57af7181c8231d36f9a32d467d134ab4f7d10fd | [
"MIT"
] | null | null | null | clone_scanner.py | m42e/weechat_scripts | a57af7181c8231d36f9a32d467d134ab4f7d10fd | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#
# Clone Scanner, version 1.3 for WeeChat version 0.3
# Latest development version: https://github.com/FiXato/weechat_scripts
#
# A Clone Scanner that can manually scan channels and
# automatically scans joins for users on the channel
# with multiple nicknames from the same host.
#
# ... | 47.941964 | 213 | 0.70365 | 3,034 | 21,478 | 4.802241 | 0.182597 | 0.027934 | 0.031846 | 0.019629 | 0.343102 | 0.26081 | 0.21407 | 0.173095 | 0.096156 | 0.084351 | 0 | 0.010484 | 0.187308 | 21,478 | 447 | 214 | 48.049217 | 0.824062 | 0.304684 | 0 | 0.091286 | 0 | 0.041494 | 0.398817 | 0.13167 | 0 | 0 | 0.00068 | 0.002237 | 0 | 0 | null | null | 0 | 0.024896 | null | null | 0.008299 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
77deb2cb383c89730b57c57b1815e7a78a3a5a29 | 2,034 | py | Python | blog/views.py | KoukiNAGATA/kouchan-blog | 51808388135eca32077ad05241a0587df0e08c25 | [
"MIT"
] | null | null | null | blog/views.py | KoukiNAGATA/kouchan-blog | 51808388135eca32077ad05241a0587df0e08c25 | [
"MIT"
] | 20 | 2021-08-02T13:18:22.000Z | 2021-09-25T04:32:55.000Z | blog/views.py | KoukiNAGATA/kouchan-blog | 51808388135eca32077ad05241a0587df0e08c25 | [
"MIT"
] | null | null | null | from django.views.generic import DetailView, ListView
from blog.models import Post
class CommonListView(ListView):
"""ListViewのテンプレート"""
model = Post
template_name = "post_list.html"
paginate_by = 10
def get_context_data(self, **kw):
# 下書き以外で最新の10件を表示
context = super().get_context... | 29.057143 | 58 | 0.642085 | 225 | 2,034 | 5.551111 | 0.253333 | 0.096077 | 0.134508 | 0.081665 | 0.609287 | 0.609287 | 0.554043 | 0.485989 | 0.485989 | 0.485989 | 0 | 0.005122 | 0.232055 | 2,034 | 69 | 59 | 29.478261 | 0.794494 | 0.03884 | 0 | 0.591837 | 0 | 0 | 0.101747 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.122449 | false | 0 | 0.040816 | 0 | 0.591837 | 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 |
77e210d5c22c033bb15b659ea78d152f86e934fa | 10,692 | py | Python | tests/integration/test_integration_firewall_policy.py | joshuaguite/cloudpassage-halo-python-sdk | ab8775377c9e99ed89d335ee44a92553fce49eb7 | [
"BSD-3-Clause"
] | 8 | 2016-10-24T12:37:32.000Z | 2019-06-01T10:00:18.000Z | tests/integration/test_integration_firewall_policy.py | joshuaguite/cloudpassage-halo-python-sdk | ab8775377c9e99ed89d335ee44a92553fce49eb7 | [
"BSD-3-Clause"
] | 109 | 2016-08-09T04:51:48.000Z | 2020-02-11T02:33:35.000Z | tests/integration/test_integration_firewall_policy.py | joshuaguite/cloudpassage-halo-python-sdk | ab8775377c9e99ed89d335ee44a92553fce49eb7 | [
"BSD-3-Clause"
] | 14 | 2016-01-23T00:10:30.000Z | 2021-07-07T21:13:56.000Z | import cloudpassage
import json
import os
policy_file_name = "firewall.json"
config_file_name = "portal.yaml.local"
tests_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), "../"))
config_file = os.path.join(tests_dir, "configs/", config_file_name)
policy_file = os.path.join(tests_dir, 'policies/', policy_f... | 42.939759 | 75 | 0.664516 | 1,209 | 10,692 | 5.459884 | 0.108354 | 0.112407 | 0.018331 | 0.02333 | 0.568247 | 0.499167 | 0.422663 | 0.349795 | 0.344645 | 0.319497 | 0 | 0.003544 | 0.261036 | 10,692 | 248 | 76 | 43.112903 | 0.83192 | 0.027965 | 0 | 0.346939 | 0 | 0 | 0.050523 | 0 | 0 | 0 | 0 | 0 | 0.112245 | 1 | 0.137755 | false | 0.112245 | 0.035714 | 0 | 0.234694 | 0.005102 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
77e901a7f8d4bc7381e7f0c1e50229660542c319 | 441 | py | Python | Pell_Sequence/pell.py | RayhanHagel/Sequence | 6781b0b1e82dbc3777ccb245a54b4afc50203582 | [
"MIT"
] | null | null | null | Pell_Sequence/pell.py | RayhanHagel/Sequence | 6781b0b1e82dbc3777ccb245a54b4afc50203582 | [
"MIT"
] | null | null | null | Pell_Sequence/pell.py | RayhanHagel/Sequence | 6781b0b1e82dbc3777ccb245a54b4afc50203582 | [
"MIT"
] | null | null | null | # Pell Numbers
class Pell:
def __init__(self):
self.limiter = 1000
self.numbers = [0, 1]
self.path = r'./Pell_Sequence/results.txt'
def void(self):
with open(self.path, "w+") as file:
for i in range(self.limiter):
self.numbers.append(2 * sel... | 23.210526 | 76 | 0.54195 | 58 | 441 | 4.034483 | 0.534483 | 0.235043 | 0.102564 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02649 | 0.315193 | 441 | 19 | 77 | 23.210526 | 0.748344 | 0.027211 | 0 | 0 | 0 | 0 | 0.10514 | 0.063084 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.25 | 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 |
77ea7aa4a3179db41bee8ed7f328c3a86b2411b8 | 2,179 | py | Python | modules/monte_carlo/bin/onramp_run.py | elise-baumgartner/onramp | beb3c807264fcb70d8069ff2e3990b0ce3f59912 | [
"BSD-3-Clause"
] | 2 | 2016-09-09T04:19:01.000Z | 2019-02-15T20:28:13.000Z | modules/monte_carlo/bin/onramp_run.py | elise-baumgartner/onramp | beb3c807264fcb70d8069ff2e3990b0ce3f59912 | [
"BSD-3-Clause"
] | 67 | 2016-06-02T19:37:56.000Z | 2018-02-22T05:23:45.000Z | modules/monte_carlo/bin/onramp_run.py | elise-baumgartner/onramp | beb3c807264fcb70d8069ff2e3990b0ce3f59912 | [
"BSD-3-Clause"
] | 9 | 2015-06-22T22:10:22.000Z | 2016-04-26T15:35:45.000Z | #!/usr/bin/env python
#
# Curriculum Module Run Script
# - Run once per run of the module by a user
# - Run inside job submission. So in an allocation.
# - onramp_run_params.cfg file is available in current working directory
#
import os
import sys
from subprocess import call
from configobj import ConfigObj
#
# Read t... | 29.445946 | 155 | 0.607159 | 312 | 2,179 | 4.038462 | 0.342949 | 0.047619 | 0.07619 | 0.08254 | 0.262698 | 0.181746 | 0.04127 | 0 | 0 | 0 | 0 | 0.014077 | 0.184947 | 2,179 | 73 | 156 | 29.849315 | 0.695383 | 0.202386 | 0 | 0.075 | 0 | 0 | 0.407902 | 0.055782 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1 | null | null | 0.275 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
77f0db72d836ba6b97019e6f581d5a3c55af879a | 1,347 | py | Python | contrib/tools/templates/extensions/extension/extension.py | Khan/reviewboard | 51ec4261e67b8bf4e2cfa9a0894a97b16509ad33 | [
"MIT"
] | 1 | 2015-09-11T15:50:17.000Z | 2015-09-11T15:50:17.000Z | contrib/tools/templates/extensions/extension/extension.py | Khan/reviewboard | 51ec4261e67b8bf4e2cfa9a0894a97b16509ad33 | [
"MIT"
] | null | null | null | contrib/tools/templates/extensions/extension/extension.py | Khan/reviewboard | 51ec4261e67b8bf4e2cfa9a0894a97b16509ad33 | [
"MIT"
] | null | null | null | # {{extension_name}} Extension for Review Board.
from django.conf import settings
from django.conf.urls.defaults import patterns, include
from reviewboard.extensions.base import Extension
{%- if dashboard_link is not none %}
from reviewboard.extensions.hooks import DashboardHook, URLHook
{% endif %}
{%- if dashboard_l... | 34.538462 | 71 | 0.643653 | 148 | 1,347 | 5.554054 | 0.304054 | 0.087591 | 0.054745 | 0.062044 | 0.160584 | 0.160584 | 0 | 0 | 0 | 0 | 0 | 0 | 0.199703 | 1,347 | 38 | 72 | 35.447368 | 0.762523 | 0.03415 | 0 | 0.258065 | 0 | 0 | 0.063174 | 0.016179 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.129032 | 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 |
77f72a150ddbff6751f16b9d1519dfdf8b8451e6 | 1,095 | py | Python | src/algo/api_nfdomains.py | jumperavocado/staketaxcsv | 5e1b0420b7897f35e70d10f385c9e9e972f70560 | [
"MIT"
] | 140 | 2021-12-11T23:37:46.000Z | 2022-03-29T23:04:36.000Z | src/algo/api_nfdomains.py | jumperavocado/staketaxcsv | 5e1b0420b7897f35e70d10f385c9e9e972f70560 | [
"MIT"
] | 80 | 2021-12-17T15:13:47.000Z | 2022-03-31T13:33:53.000Z | src/algo/api_nfdomains.py | hodgerpodger/staketaxcsv | d341fc8e54225aafd5401e89daaf9b71cdb1e1a4 | [
"MIT"
] | 52 | 2021-12-12T00:37:17.000Z | 2022-03-29T23:25:09.000Z | import logging
import requests
from settings_csv import ALGO_NFDOMAINS
# API documentation: https://editor.swagger.io/?url=https://api.testnet.nf.domains/info/openapi3.yaml
class NFDomainsAPI:
session = requests.Session()
def get_address(self, name):
endpoint = f"nfd/{name}"
para... | 34.21875 | 102 | 0.612785 | 132 | 1,095 | 5 | 0.515152 | 0.045455 | 0.045455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006274 | 0.272146 | 1,095 | 31 | 103 | 35.322581 | 0.821832 | 0.234703 | 0 | 0.095238 | 0 | 0 | 0.112219 | 0.026185 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.142857 | 0 | 0.52381 | 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 |
77f88ac50cfbfdde1e9224491dcbf265368f1fab | 5,720 | py | Python | gant/main.py | kshlm/gant | eabaa17ebfd31b1654ee1f27e7026f6d7b370609 | [
"BSD-2-Clause"
] | null | null | null | gant/main.py | kshlm/gant | eabaa17ebfd31b1654ee1f27e7026f6d7b370609 | [
"BSD-2-Clause"
] | null | null | null | gant/main.py | kshlm/gant | eabaa17ebfd31b1654ee1f27e7026f6d7b370609 | [
"BSD-2-Clause"
] | null | null | null | #! /usr/bin/env python
from __future__ import unicode_literals, print_function
from .utils.gant_ctx import GantCtx
import os
import click
helpStr = """
Gant : The Gluster helper ant
Creates GlusterFS development and testing environments using Docker
Usage:
gant [options] build-base [force]
gant [options] b... | 37.631579 | 78 | 0.658217 | 733 | 5,720 | 5.077763 | 0.190996 | 0.017732 | 0.019344 | 0.040838 | 0.423428 | 0.34202 | 0.3036 | 0.290704 | 0.242343 | 0.136486 | 0 | 0.00068 | 0.229196 | 5,720 | 151 | 79 | 37.880795 | 0.843502 | 0.020979 | 0 | 0.161017 | 0 | 0 | 0.535401 | 0.003943 | 0 | 0 | 0 | 0 | 0 | 1 | 0.084746 | false | 0.067797 | 0.033898 | 0 | 0.118644 | 0.008475 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
77fa574079bff2cba7f0267eea287e361d42b7f6 | 6,945 | py | Python | csse290-server/mainserver.py | RHIT-CSSE/SecurityClub | ee7fa1846f83a41e3503b81eaf0b32e63642abd2 | [
"MIT"
] | null | null | null | csse290-server/mainserver.py | RHIT-CSSE/SecurityClub | ee7fa1846f83a41e3503b81eaf0b32e63642abd2 | [
"MIT"
] | 1 | 2017-05-28T03:04:12.000Z | 2017-05-28T03:04:12.000Z | csse290-server/mainserver.py | RHIT-CSSE/SecurityClub | ee7fa1846f83a41e3503b81eaf0b32e63642abd2 | [
"MIT"
] | null | null | null | # Author: Ishank Tandon
# Date: January 29, 2017
import tornado.ioloop
import tornado.web
import tornado.httpserver
import hashlib
import base64
import json
import mysql.connector as sql
dbuser = 'csse'
# Register a new user
class UserHandler(tornado.web.RequestHandler):
def set_default_headers(self):
self.set... | 34.552239 | 531 | 0.629662 | 852 | 6,945 | 5.089202 | 0.288732 | 0.029059 | 0.048432 | 0.039437 | 0.492389 | 0.429889 | 0.414207 | 0.375461 | 0.336716 | 0.315037 | 0 | 0.012055 | 0.211663 | 6,945 | 200 | 532 | 34.725 | 0.779909 | 0.026206 | 0 | 0.486486 | 0 | 0.02027 | 0.316452 | 0.067081 | 0.006757 | 0 | 0 | 0 | 0 | 1 | 0.081081 | false | 0.054054 | 0.047297 | 0.006757 | 0.175676 | 0.040541 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
77fba3bfdbce870f9968213b129911ed635849bf | 368 | py | Python | 01_Language/01_Functions/python/preg_replace_callback.py | cliff363825/TwentyFour | 09df59bd5d275e66463e343647f46027397d1233 | [
"MIT"
] | 3 | 2020-06-28T07:42:51.000Z | 2021-01-15T10:32:11.000Z | 01_Language/01_Functions/python/preg_replace_callback.py | cliff363825/TwentyFour | 09df59bd5d275e66463e343647f46027397d1233 | [
"MIT"
] | 9 | 2021-03-10T22:45:40.000Z | 2022-02-27T06:53:20.000Z | 01_Language/01_Functions/python/preg_replace_callback.py | cliff363825/TwentyFour | 09df59bd5d275e66463e343647f46027397d1233 | [
"MIT"
] | 1 | 2021-01-15T10:51:24.000Z | 2021-01-15T10:51:24.000Z | # coding: utf-8
import re
def preg_replace_callback(pattern, callback, subject):
return re.sub(pattern, callback, subject)
if __name__ == '__main__':
text = 'April fools day is 04/01/2002\n' + \
'Last christmas was 12/24/2001\n'
print(preg_replace_callback(r'(\d{2}/\d{2}/)(\d{4})', lambda m... | 24.533333 | 113 | 0.633152 | 60 | 368 | 3.683333 | 0.7 | 0.099548 | 0.171946 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076667 | 0.184783 | 368 | 14 | 114 | 26.285714 | 0.66 | 0.035326 | 0 | 0 | 0 | 0 | 0.25779 | 0.05949 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0.142857 | 0.428571 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
77fbaffe827fd494fe1d8b83ddeadea0590d53bf | 2,096 | py | Python | XMAS2018/Krampus/solve.py | flawwan/CTF-Writeups | ee1741f91b869ece5e5a8335935213ac45c015a4 | [
"MIT"
] | 27 | 2018-10-08T13:12:54.000Z | 2021-11-05T13:28:03.000Z | XMAS2018/Krampus/solve.py | flawwan/CTF-Writeups | ee1741f91b869ece5e5a8335935213ac45c015a4 | [
"MIT"
] | 3 | 2018-12-22T21:34:53.000Z | 2019-02-09T10:25:41.000Z | XMAS2018/Krampus/solve.py | flawwan/CTF-Writeups | ee1741f91b869ece5e5a8335935213ac45c015a4 | [
"MIT"
] | 7 | 2018-10-09T03:46:12.000Z | 2021-05-23T17:40:19.000Z | python
from pwn import *
import base64
import sys
def convertstr(convert, debug=False):
if debug:
print convert
output = ""
for i in convert:
output+= "chr(%d)+" % ord(i)
return output[:-1]
if len(sys.argv) == 2 and sys.argv[1] == "local":
r = remote("0.0.0.0",2000)
else:
r = remote("199.247.6.180",14000)
... | 27.946667 | 121 | 0.632634 | 322 | 2,096 | 4.034161 | 0.369565 | 0.055427 | 0.018476 | 0.055427 | 0.08776 | 0.055427 | 0.055427 | 0.055427 | 0.055427 | 0 | 0 | 0.033294 | 0.183206 | 2,096 | 75 | 122 | 27.946667 | 0.725467 | 0.037214 | 0 | 0.119403 | 0 | 0.014925 | 0.261645 | 0.042121 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.089552 | null | null | 0.149254 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
77fc085d04b7709e22eb732bec617f5d06b34521 | 1,304 | py | Python | oxasl_ve/veaslc_cli_wrapper.py | ibme-qubic/oxasl_ve | 51f0701573876042a7fc5f1b91c5085600c6e3c3 | [
"Apache-2.0"
] | 1 | 2021-01-20T12:06:31.000Z | 2021-01-20T12:06:31.000Z | oxasl_ve/veaslc_cli_wrapper.py | physimals/oxasl_ve | f56ea316fddf8b59216a5df7a557bf0c3ea6972b | [
"Apache-2.0"
] | null | null | null | oxasl_ve/veaslc_cli_wrapper.py | physimals/oxasl_ve | f56ea316fddf8b59216a5df7a557bf0c3ea6972b | [
"Apache-2.0"
] | null | null | null | from fsl.wrappers import LOAD
from oxasl_ve.wrappers import veaslc
def veaslc_wrapper(wsp, data, roi):
"""
"""
# Run the C code
ret = veaslc(data, roi, out=LOAD,
diff=wsp.iaf == "vediff",
method=wsp.ifnone("veasl_method", "map"),
veslocs=wsp.veslocs,
... | 34.315789 | 60 | 0.480828 | 152 | 1,304 | 4.039474 | 0.513158 | 0.14658 | 0.032573 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025485 | 0.368098 | 1,304 | 37 | 61 | 35.243243 | 0.71966 | 0.015337 | 0 | 0 | 0 | 0 | 0.127559 | 0 | 0 | 0 | 0 | 0.027027 | 0 | 1 | 0.03125 | false | 0 | 0.0625 | 0 | 0.125 | 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 |
7ac85f7048458c2addf6b3de189fc26545d191a3 | 1,173 | py | Python | codeTest.py | horknfbr/random | 5f34b0dd2846fdeaf4940a5bc804f39c4022c90b | [
"MIT"
] | null | null | null | codeTest.py | horknfbr/random | 5f34b0dd2846fdeaf4940a5bc804f39c4022c90b | [
"MIT"
] | null | null | null | codeTest.py | horknfbr/random | 5f34b0dd2846fdeaf4940a5bc804f39c4022c90b | [
"MIT"
] | null | null | null | #!/bin/env python3
pathString = ["PDX-SFO", "SEA-JFK", "SFO-SEA", "LAX-PDX"]
def breakPairs(pairList):
toFrom = {}
fromTo = {}
srca = ''
dsta = ''
src = ''
dst = ''
for i in pairList:
airports = i.split('-')
toFrom[airports[0]] = airports[1]
fromTo[airports[1]] = a... | 23.938776 | 77 | 0.498721 | 139 | 1,173 | 4.151079 | 0.294964 | 0.034662 | 0.062392 | 0.048527 | 0.10052 | 0.10052 | 0 | 0 | 0 | 0 | 0 | 0.006369 | 0.330776 | 1,173 | 48 | 78 | 24.4375 | 0.728662 | 0.232737 | 0 | 0 | 0 | 0 | 0.176207 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.074074 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7ac8b758a4914d28a0b5c6ed5e7469c1911dac47 | 2,526 | py | Python | ASAConfigUsingREST/asa/ASA.py | g-ser/pythonNetworking | 56081fbcfc8a45eb0645cd4cd19322acd2f42acd | [
"MIT"
] | null | null | null | ASAConfigUsingREST/asa/ASA.py | g-ser/pythonNetworking | 56081fbcfc8a45eb0645cd4cd19322acd2f42acd | [
"MIT"
] | null | null | null | ASAConfigUsingREST/asa/ASA.py | g-ser/pythonNetworking | 56081fbcfc8a45eb0645cd4cd19322acd2f42acd | [
"MIT"
] | null | null | null | import requests
from requests.auth import HTTPBasicAuth
from enum import Enum, auto
import json.tool
# suppress the message which comes from the self-signed certificate of ASA
requests.packages.urllib3.disable_warnings()
def sendrequest(verb, headers, url, auth, data=''):
"""
Helper method used by the metho... | 31.575 | 103 | 0.61441 | 283 | 2,526 | 5.448763 | 0.434629 | 0.027237 | 0.01751 | 0.023346 | 0.137484 | 0.105058 | 0.049287 | 0.049287 | 0 | 0 | 0 | 0.008621 | 0.265241 | 2,526 | 79 | 104 | 31.974684 | 0.822198 | 0.176564 | 0 | 0.088889 | 0 | 0 | 0.184921 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.088889 | 0.088889 | 0 | 0.266667 | 0.088889 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7acab154c2fe79d2a9e8272d3e4b0a39eb8dbfdd | 1,399 | py | Python | user/authentication.py | cavidanhasanli/TaskManager | 6610370046ed3af228746c9590f23a69a77a9b23 | [
"MIT"
] | null | null | null | user/authentication.py | cavidanhasanli/TaskManager | 6610370046ed3af228746c9590f23a69a77a9b23 | [
"MIT"
] | null | null | null | user/authentication.py | cavidanhasanli/TaskManager | 6610370046ed3af228746c9590f23a69a77a9b23 | [
"MIT"
] | null | null | null | import bcrypt
from fastapi_jwt_auth import AuthJWT
from passlib.context import CryptContext
from .schemas import UserInDB, UserPassword
pwd_context = CryptContext(schemes=["bcrypt"], deprecated="auto")
class Authenticate:
def create_salt_and_hashed_password(
self, *, plaintext_password: str
) -> Use... | 34.121951 | 84 | 0.706219 | 165 | 1,399 | 5.781818 | 0.30303 | 0.078616 | 0.037736 | 0.048218 | 0.33543 | 0.230608 | 0.230608 | 0.230608 | 0.230608 | 0.230608 | 0 | 0 | 0.203717 | 1,399 | 40 | 85 | 34.975 | 0.856373 | 0 | 0 | 0.290323 | 0 | 0 | 0.007148 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.193548 | false | 0.354839 | 0.129032 | 0.096774 | 0.612903 | 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 |
7acba5203922316cadaa6ed16f71cc4bbd1b8a30 | 18,175 | py | Python | tools/preprocess-rcnn-leaf.py | bernardcwj/FYP_2017 | a9c9f6c6f83de018f63f83d283a75f50742108f0 | [
"MIT"
] | null | null | null | tools/preprocess-rcnn-leaf.py | bernardcwj/FYP_2017 | a9c9f6c6f83de018f63f83d283a75f50742108f0 | [
"MIT"
] | null | null | null | tools/preprocess-rcnn-leaf.py | bernardcwj/FYP_2017 | a9c9f6c6f83de018f63f83d283a75f50742108f0 | [
"MIT"
] | null | null | null | import argparse
import os
import glob
import shutil
import json
import re
import hashlib
import numpy as np
import sys
import imgaug as ia
from imgaug import augmenters as iaa
from multiprocessing import Pool, Value, Manager
from lxml import etree
from PIL import Image, ImageFile, ImageDraw, ImageFont
ImageFile.LOAD_T... | 32.806859 | 435 | 0.643301 | 2,679 | 18,175 | 4.266144 | 0.155282 | 0.041998 | 0.07166 | 0.075072 | 0.420072 | 0.371511 | 0.349987 | 0.284889 | 0.250853 | 0.214629 | 0 | 0.030718 | 0.17249 | 18,175 | 554 | 436 | 32.806859 | 0.729189 | 0.120165 | 0 | 0.338798 | 0 | 0 | 0.141492 | 0.014844 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.008197 | 0.038251 | null | null | 0.038251 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7acbb0a39bd2e8157fd784661046a2e583513ba0 | 1,256 | py | Python | examples/test01.py | pyrate-build/pyrate-build | 8ce9c2dd2b94b50aebfd058e1dd8731cbb192e6d | [
"Apache-2.0"
] | 41 | 2016-01-14T15:28:53.000Z | 2022-03-17T12:43:01.000Z | examples/test01.py | pyrate-build/pyrate-build | 8ce9c2dd2b94b50aebfd058e1dd8731cbb192e6d | [
"Apache-2.0"
] | 5 | 2016-01-20T09:42:30.000Z | 2016-12-22T22:54:27.000Z | examples/test01.py | pyrate-build/pyrate-build | 8ce9c2dd2b94b50aebfd058e1dd8731cbb192e6d | [
"Apache-2.0"
] | 3 | 2016-01-20T09:40:28.000Z | 2020-10-29T09:33:48.000Z | import logging
assert(pyrate_version > (0, 1, 9))
assert(pyrate_version >= '0.1.10')
assert(pyrate_version != '0.0.1')
assert(pyrate_version == pyrate_version)
match('*.cpp', recurse = True)
exe = executable('test.bin', ['test.cpp'])
exe = executable('test.bin', ['test.cpp'])
try:
executable('test.bin', ['test.cpp', ... | 24.153846 | 52 | 0.713376 | 184 | 1,256 | 4.788043 | 0.315217 | 0.136209 | 0.124858 | 0.170261 | 0.397276 | 0.349603 | 0.227015 | 0.227015 | 0.227015 | 0.227015 | 0 | 0.010536 | 0.093153 | 1,256 | 51 | 53 | 24.627451 | 0.76295 | 0 | 0 | 0.367347 | 0 | 0 | 0.192675 | 0 | 0 | 0 | 0 | 0 | 0.102041 | 1 | 0 | false | 0 | 0.020408 | 0 | 0.020408 | 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 |
7acc9ee1bc31164a1469a0d9996ab350cd9b5055 | 1,424 | py | Python | pshychocloud/WAPPMessageAnalyzer.py | partu18/pshychocloud | 208d8d3dd646637719f70a86f9d9e43dd2eed929 | [
"MIT"
] | null | null | null | pshychocloud/WAPPMessageAnalyzer.py | partu18/pshychocloud | 208d8d3dd646637719f70a86f9d9e43dd2eed929 | [
"MIT"
] | 2 | 2021-06-08T19:28:41.000Z | 2021-09-07T23:47:14.000Z | pshychocloud/WAPPMessageAnalyzer.py | partu18/pshychocloud | 208d8d3dd646637719f70a86f9d9e43dd2eed929 | [
"MIT"
] | null | null | null | from MessageAnalyzer import MessageAnalyzer
class WAPPMessageAnalyzer(MessageAnalyzer):
WAPP_DATE_REGEX = "[0-9]{1,2}/[0-9]{1,2}/[0-9]{1,2}"
WAPP_TIME_REGEX = "[0-9]{1,2}:[0-9]{1,2}"
WAPP_EXTRACT_PARTICIPANT_REGEX = r"{date}\s*,\s*{time}\s*-\s*(.+?)\s*:\s*"\
.format(... | 45.935484 | 89 | 0.514045 | 143 | 1,424 | 4.79021 | 0.300699 | 0.020438 | 0.021898 | 0.029197 | 0.359124 | 0.230657 | 0.230657 | 0.230657 | 0.178102 | 0.122628 | 0 | 0.022472 | 0.375 | 1,424 | 31 | 90 | 45.935484 | 0.747191 | 0.044944 | 0 | 0.173913 | 0 | 0.043478 | 0.125281 | 0.107277 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.043478 | 0 | 0.521739 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
7ad2878054453ac85ec36e78b1add4ee655d5d36 | 549 | py | Python | test_normalize_sentences.py | Alienmaster/german-asr-lm-tools | acd014181addf01569732bfc437ac130de6dd311 | [
"Apache-2.0"
] | 11 | 2020-06-28T16:08:05.000Z | 2022-01-20T08:50:22.000Z | test_normalize_sentences.py | Alienmaster/german-asr-lm-tools | acd014181addf01569732bfc437ac130de6dd311 | [
"Apache-2.0"
] | 3 | 2020-06-24T11:09:18.000Z | 2021-08-13T15:26:33.000Z | test_normalize_sentences.py | Alienmaster/german-asr-lm-tools | acd014181addf01569732bfc437ac130de6dd311 | [
"Apache-2.0"
] | 3 | 2020-06-13T11:41:49.000Z | 2020-09-14T15:47:46.000Z | import normalize_sentences
import spacy
nlp = spacy.load('de_core_news_sm')
test_sentence = 'Der schlaue Fuchs sagte "Treffen um 16:20 Uhr!" aber war schon 20 Minuten früher da. Im Jahre 1995 schuf er das Gedicht.'
def test_sent(test_sentence):
result = normalize_sentences.normalize(nlp, test_sentence)
prin... | 36.6 | 138 | 0.765027 | 88 | 549 | 4.636364 | 0.5 | 0.117647 | 0.073529 | 0.098039 | 0.455882 | 0.455882 | 0.455882 | 0.455882 | 0.455882 | 0.455882 | 0 | 0.060086 | 0.151184 | 549 | 14 | 139 | 39.214286 | 0.815451 | 0 | 0 | 0 | 0 | 0.222222 | 0.557377 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.333333 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7ad867b12b57deb0d8a3770340fa6ea4f03970c1 | 2,184 | py | Python | webapp/test/app_test2.py | PratikMahajan/Recipe-Management-Webapp-And-Infrastructure | 234b0685ee0367a3e37401af3bd77d6fc6cde6ce | [
"Apache-2.0"
] | null | null | null | webapp/test/app_test2.py | PratikMahajan/Recipe-Management-Webapp-And-Infrastructure | 234b0685ee0367a3e37401af3bd77d6fc6cde6ce | [
"Apache-2.0"
] | null | null | null | webapp/test/app_test2.py | PratikMahajan/Recipe-Management-Webapp-And-Infrastructure | 234b0685ee0367a3e37401af3bd77d6fc6cde6ce | [
"Apache-2.0"
] | null | null | null | from app import app
import unittest
import base64
import json
class TestLogin(unittest.TestCase):
def setUp(self):
app.config['TESTING'] = True
self.app = app.test_client()
self.user_name = "test2n1@mytest.com"
self.password = "thi@isMyPass123"
self.valid_credentials = base... | 34.666667 | 125 | 0.579212 | 233 | 2,184 | 5.270386 | 0.515021 | 0.028502 | 0.039088 | 0.070847 | 0.179967 | 0.065147 | 0.065147 | 0 | 0 | 0 | 0 | 0.069281 | 0.299451 | 2,184 | 62 | 126 | 35.225806 | 0.733333 | 0.111722 | 0 | 0.041667 | 0 | 0 | 0.304979 | 0.087656 | 0 | 0 | 0 | 0 | 0.041667 | 1 | 0.0625 | false | 0.083333 | 0.083333 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
7ad8b48b9381ffbf31887fa648e99f17d08a746a | 282 | py | Python | Python/Sets/symmertic_diffrence.py | abivilion/Hackerank-Solutions- | e195fb1fce1588171cf12d99d38da32ca5c8276a | [
"MIT"
] | null | null | null | Python/Sets/symmertic_diffrence.py | abivilion/Hackerank-Solutions- | e195fb1fce1588171cf12d99d38da32ca5c8276a | [
"MIT"
] | null | null | null | Python/Sets/symmertic_diffrence.py | abivilion/Hackerank-Solutions- | e195fb1fce1588171cf12d99d38da32ca5c8276a | [
"MIT"
] | null | null | null | # a,b = [set(input().split()) for i in range(4)][1::2]
# print ('\n'.join(sorted(a^b, key=int)))
a,b=(int(input()),input().split())
c,d=(int(input()),input().split())
x=set(b)
y=set(d)
p=y.difference(x)
q=x.difference(y)
r=p.union(q)
print ('\n'.join(sorted(r, key=int)))
| 25.636364 | 55 | 0.567376 | 57 | 282 | 2.807018 | 0.473684 | 0.0375 | 0.125 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012 | 0.113475 | 282 | 10 | 56 | 28.2 | 0.628 | 0.326241 | 0 | 0 | 0 | 0 | 0.011299 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.125 | 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 |
7adb54044291cf0ab7965afb9c970e868933f5bd | 15,841 | py | Python | mpilot/libraries/eems/basic.py | consbio/MPilot | e0c48b6640982c8234404b2f2ca34859b0c96dc0 | [
"MIT"
] | null | null | null | mpilot/libraries/eems/basic.py | consbio/MPilot | e0c48b6640982c8234404b2f2ca34859b0c96dc0 | [
"MIT"
] | null | null | null | mpilot/libraries/eems/basic.py | consbio/MPilot | e0c48b6640982c8234404b2f2ca34859b0c96dc0 | [
"MIT"
] | null | null | null | from __future__ import division
import copy
from functools import reduce
import numpy
import six
from mpilot import params
from mpilot.commands import Command
from mpilot.libraries.eems.exceptions import (
MismatchedWeights,
MixedArrayLengths,
DuplicateRawValues,
)
from mpilot.libraries.eems.mixins impor... | 31.9375 | 109 | 0.629506 | 1,753 | 15,841 | 5.575585 | 0.127781 | 0.066094 | 0.049724 | 0.073665 | 0.706568 | 0.680786 | 0.655003 | 0.631574 | 0.614897 | 0.601289 | 0 | 0.005502 | 0.254277 | 15,841 | 495 | 110 | 32.00202 | 0.821891 | 0.089262 | 0 | 0.548387 | 0 | 0 | 0.072271 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.049853 | false | 0 | 0.029326 | 0.002933 | 0.328446 | 0.002933 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7adcd3919f89846eb5519f1327db7bcb0128e793 | 953 | py | Python | backend/api/migrations/0022_auto_20200610_0618.py | luizfilipezs/lousher | 267afbca6874d946801bd55db2c8f64da7dd594e | [
"Apache-2.0"
] | null | null | null | backend/api/migrations/0022_auto_20200610_0618.py | luizfilipezs/lousher | 267afbca6874d946801bd55db2c8f64da7dd594e | [
"Apache-2.0"
] | 14 | 2020-05-13T22:15:29.000Z | 2022-03-12T00:29:32.000Z | backend/api/migrations/0022_auto_20200610_0618.py | luizfilipezs/lousher | 267afbca6874d946801bd55db2c8f64da7dd594e | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.0.5 on 2020-06-10 06:18
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('api', '0021_auto_20200606_0449'),
]
operations = [
migrations.AlterField(
model_name='endereco',
name='bairro',
... | 32.862069 | 258 | 0.593914 | 95 | 953 | 5.842105 | 0.557895 | 0.108108 | 0.135135 | 0.156757 | 0.376577 | 0.376577 | 0.281081 | 0.281081 | 0.281081 | 0.281081 | 0 | 0.055007 | 0.256034 | 953 | 28 | 259 | 34.035714 | 0.727786 | 0.047219 | 0 | 0.454545 | 1 | 0 | 0.217439 | 0.025386 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.181818 | 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 |
7ae81ffd916d508ea02a5f801963bc2929653520 | 340 | py | Python | src/utils.py | Benjvdg/altered-configurator | fa0ef454156eefdd6396f1c4809d5cf93ed76154 | [
"MIT"
] | null | null | null | src/utils.py | Benjvdg/altered-configurator | fa0ef454156eefdd6396f1c4809d5cf93ed76154 | [
"MIT"
] | null | null | null | src/utils.py | Benjvdg/altered-configurator | fa0ef454156eefdd6396f1c4809d5cf93ed76154 | [
"MIT"
] | null | null | null | from .configuration import Configuration
def create_config_list(lst_config):
lst_obj_config = []
for config in lst_config:
split_path = config.split("\\")
name = split_path[-1].replace(".txt", "")
new_config = Configuration(name, config)
lst_obj_config.append(new_config)
re... | 28.333333 | 49 | 0.679412 | 43 | 340 | 5.046512 | 0.465116 | 0.082949 | 0.165899 | 0.165899 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003745 | 0.214706 | 340 | 11 | 50 | 30.909091 | 0.808989 | 0 | 0 | 0 | 0 | 0 | 0.017647 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7aef14f9e97678b485424aba46ede0a6a6976f70 | 1,442 | py | Python | chat/forms.py | Firexd2/social-network | 8f7799aa54871843f55aed578e2c89a964c97ecc | [
"MIT"
] | 2 | 2018-12-28T19:21:55.000Z | 2019-05-15T14:37:12.000Z | chat/forms.py | Firexd2/social-network | 8f7799aa54871843f55aed578e2c89a964c97ecc | [
"MIT"
] | null | null | null | chat/forms.py | Firexd2/social-network | 8f7799aa54871843f55aed578e2c89a964c97ecc | [
"MIT"
] | 2 | 2019-10-16T08:01:04.000Z | 2021-07-13T06:02:15.000Z | from django import forms
from chat.models import Message, Room
class NewRoomForm(forms.ModelForm):
ids_users = forms.CharField(label='', required=False, widget=forms.TextInput(attrs={'hidden': 'true'}))
first_message = forms.CharField(label='Приветственное сообщение', required=False,
... | 27.207547 | 118 | 0.620666 | 150 | 1,442 | 5.94 | 0.353333 | 0.078563 | 0.078563 | 0.094276 | 0.291807 | 0.23569 | 0.199776 | 0.114478 | 0.114478 | 0 | 0 | 0.002667 | 0.219834 | 1,442 | 52 | 119 | 27.730769 | 0.789333 | 0 | 0 | 0.34375 | 0 | 0 | 0.149792 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 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 |
7af0056e7bb93cced5cf1fc4661b1b37c8a184f1 | 2,491 | py | Python | Books/GodOfPython/P17_Database/chapter17.py | Tim232/Python-Things | 05f0f373a4cf298e70d9668c88a6e3a9d1cd8146 | [
"MIT"
] | 2 | 2020-12-05T07:42:55.000Z | 2021-01-06T23:23:18.000Z | Books/GodOfPython/P17_Database/chapter17.py | Tim232/Python-Things | 05f0f373a4cf298e70d9668c88a6e3a9d1cd8146 | [
"MIT"
] | null | null | null | Books/GodOfPython/P17_Database/chapter17.py | Tim232/Python-Things | 05f0f373a4cf298e70d9668c88a6e3a9d1cd8146 | [
"MIT"
] | null | null | null | from sqlite3 import *
# mydb = connect('D:/02.Python/ch17/fruit.db')
# csr = mydb.cursor()
# csr.execute('create table test(fruit varchar(20), num int, price int)')
# csr.execute("insert into test(fruit, num, price) values('Apple', 10, 1000)")
# csr.execute('select * from test')
# row = csr.fetchone()
# print(row)
# my... | 31.935897 | 118 | 0.660779 | 348 | 2,491 | 4.678161 | 0.301724 | 0.049754 | 0.030713 | 0.04914 | 0.425061 | 0.335381 | 0.320025 | 0.320025 | 0.320025 | 0.238329 | 0 | 0.026939 | 0.135688 | 2,491 | 78 | 119 | 31.935897 | 0.729215 | 0.809314 | 0 | 0 | 0 | 0 | 0.551069 | 0.099762 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7afc81f420c7a7b1650e0243a1f216e195ab99db | 642 | py | Python | api/app/database.py | Le96/todays-mazai | 1af8f57d7827d883a6c91661dc375b79274c94f5 | [
"MIT"
] | null | null | null | api/app/database.py | Le96/todays-mazai | 1af8f57d7827d883a6c91661dc375b79274c94f5 | [
"MIT"
] | 10 | 2022-02-27T11:01:23.000Z | 2022-03-29T12:53:33.000Z | api/app/database.py | Le96/todays-mazai | 1af8f57d7827d883a6c91661dc375b79274c94f5 | [
"MIT"
] | null | null | null | import os
from sqlalchemy import create_engine
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker
USER = os.getenv("DB_USER")
PASS = os.getenv("DB_PASSWORD")
HOST = os.getenv("DB_HOST")
PORT = os.getenv("DB_PORT")
SCHEMA = os.getenv("DB_SCHEMA")
SQLALCHEMY_DATABASE_URL = ... | 23.777778 | 87 | 0.739875 | 83 | 642 | 5.554217 | 0.421687 | 0.086768 | 0.10846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001805 | 0.137072 | 642 | 26 | 88 | 24.692308 | 0.830325 | 0 | 0 | 0 | 0 | 0 | 0.154206 | 0.090343 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0.105263 | 0.210526 | 0 | 0.263158 | 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 |
7afeb71053feedae92609691ef2291871af9e5e1 | 7,346 | py | Python | src/visualization/visualize_all.py | mwegrzyn/volume-wise-language | ed24b11667e6b26d3ed09ce0aae383c26852821c | [
"MIT"
] | 1 | 2019-11-19T13:48:33.000Z | 2019-11-19T13:48:33.000Z | src/visualization/visualize_all.py | mwegrzyn/volume-wise-language | ed24b11667e6b26d3ed09ce0aae383c26852821c | [
"MIT"
] | null | null | null | src/visualization/visualize_all.py | mwegrzyn/volume-wise-language | ed24b11667e6b26d3ed09ce0aae383c26852821c | [
"MIT"
] | null | null | null |
# coding: utf-8
# # Collect axes and make big plot
#
# This notebook is used to collect the output of all analyses which were ran for a single patient and to wrap all generated figures in a big plot which consists of multiple subplots. As with other notebooks which are needed to analyses single-subject data, this on... | 29.502008 | 788 | 0.668255 | 1,201 | 7,346 | 4.003331 | 0.263114 | 0.027454 | 0.045757 | 0.054908 | 0.404742 | 0.375 | 0.320923 | 0.300125 | 0.208611 | 0.208611 | 0 | 0.066468 | 0.133678 | 7,346 | 248 | 789 | 29.620968 | 0.689032 | 0.702151 | 0 | 0 | 1 | 0 | 0.056585 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046512 | false | 0 | 0.139535 | 0 | 0.232558 | 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 |
bb0075e257517d7ea8e7b80a522763cdff7b8198 | 1,178 | py | Python | dragonbot/game/output.py | Chainso/DragonBot | c431cd42be8672259164c9ee4ab338cbc624bec9 | [
"MIT"
] | null | null | null | dragonbot/game/output.py | Chainso/DragonBot | c431cd42be8672259164c9ee4ab338cbc624bec9 | [
"MIT"
] | null | null | null | dragonbot/game/output.py | Chainso/DragonBot | c431cd42be8672259164c9ee4ab338cbc624bec9 | [
"MIT"
] | null | null | null | import torch
import numpy as np
from rlbot.agents.base_agent import SimpleControllerState, BaseAgent
class OutputFormatter():
"""
A class to format model output
"""
def transform_action(self, action):
"""
Transforms the action into a controller state.
"""
action = acti... | 26.772727 | 75 | 0.634975 | 133 | 1,178 | 5.518797 | 0.421053 | 0.081744 | 0.077657 | 0.10218 | 0.076294 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010539 | 0.275042 | 1,178 | 44 | 76 | 26.772727 | 0.848946 | 0.211375 | 0 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.15 | 0.05 | 0.65 | 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 |
bb124a8e52d8aee500e19c656533c54c1cedaf7a | 1,252 | py | Python | openbook_notifications/models/post_reaction_notification.py | TamaraAbells/okuna-api | f87d8e80d2f182c01dbce68155ded0078ee707e4 | [
"MIT"
] | 164 | 2019-07-29T17:59:06.000Z | 2022-03-19T21:36:01.000Z | openbook_notifications/models/post_reaction_notification.py | TamaraAbells/okuna-api | f87d8e80d2f182c01dbce68155ded0078ee707e4 | [
"MIT"
] | 188 | 2019-03-16T09:53:25.000Z | 2019-07-25T14:57:24.000Z | openbook_notifications/models/post_reaction_notification.py | TamaraAbells/okuna-api | f87d8e80d2f182c01dbce68155ded0078ee707e4 | [
"MIT"
] | 80 | 2019-08-03T17:49:08.000Z | 2022-02-28T16:56:33.000Z | from django.contrib.contenttypes.fields import GenericRelation
from django.db import models
from openbook_notifications.models.notification import Notification
from openbook_posts.models import PostReaction
class PostReactionNotification(models.Model):
notification = GenericRelation(Notification, related_name='po... | 46.37037 | 92 | 0.750799 | 137 | 1,252 | 6.489051 | 0.270073 | 0.24297 | 0.141732 | 0.091114 | 0.371204 | 0.267717 | 0.267717 | 0.209224 | 0.209224 | 0.103487 | 0 | 0 | 0.189297 | 1,252 | 26 | 93 | 48.153846 | 0.875862 | 0 | 0 | 0.142857 | 0 | 0 | 0.021566 | 0.021566 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.190476 | 0 | 0.52381 | 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 |
bb1b93056048ded04fe462901d7cdde0ccfcd081 | 4,991 | py | Python | astetik/tables/table.py | meirm/astetik | ea05ce57a0bf1e8bd7ef18c4d5ca8d7ad3fb4be7 | [
"MIT"
] | 8 | 2017-07-27T11:25:41.000Z | 2019-03-11T12:02:48.000Z | astetik/tables/table.py | meirm/astetik | ea05ce57a0bf1e8bd7ef18c4d5ca8d7ad3fb4be7 | [
"MIT"
] | 33 | 2018-04-04T20:45:59.000Z | 2019-03-07T12:54:37.000Z | astetik/tables/table.py | meirm/astetik | ea05ce57a0bf1e8bd7ef18c4d5ca8d7ad3fb4be7 | [
"MIT"
] | 3 | 2018-10-19T15:50:55.000Z | 2018-10-23T04:32:39.000Z | import pandas as pd
from IPython.core.display import display, HTML
def table(data,
title="Descriptive Stats",
sub_title="",
table_width=630,
indexcol_width=150,
return_html=False):
'''Displays a publication quality data table
with any number of columns and a... | 31 | 84 | 0.445001 | 474 | 4,991 | 4.556962 | 0.278481 | 0.037037 | 0.030093 | 0.035185 | 0.362037 | 0.275463 | 0.204167 | 0.204167 | 0.204167 | 0.181019 | 0 | 0.017825 | 0.449209 | 4,991 | 161 | 85 | 31 | 0.767916 | 0.099579 | 0 | 0.293103 | 0 | 0 | 0.79901 | 0.039838 | 0.008621 | 0 | 0 | 0 | 0 | 1 | 0.008621 | false | 0 | 0.060345 | 0 | 0.077586 | 0.008621 | 0 | 0 | 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 |
bb216b1449c4bdf268511506ad9bcc2b2c3b4fcc | 7,032 | py | Python | pysnmp/TIMETRA-CLEAR-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 11 | 2021-02-02T16:27:16.000Z | 2021-08-31T06:22:49.000Z | pysnmp/TIMETRA-CLEAR-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 75 | 2021-02-24T17:30:31.000Z | 2021-12-08T00:01:18.000Z | pysnmp/TIMETRA-CLEAR-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module TIMETRA-CLEAR-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/TIMETRA-CLEAR-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 21:09:48 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Ma... | 121.241379 | 843 | 0.755119 | 794 | 7,032 | 6.685139 | 0.201511 | 0.00942 | 0.011304 | 0.015072 | 0.350791 | 0.261869 | 0.242276 | 0.240392 | 0.240392 | 0.240392 | 0 | 0.082115 | 0.085609 | 7,032 | 57 | 844 | 123.368421 | 0.74339 | 0.046644 | 0 | 0.061224 | 0 | 0 | 0.219268 | 0.017625 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.183673 | 0 | 0.183673 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bb25d88b34aa87a95d720f23bdf7ee4cf0720387 | 1,846 | py | Python | apps/shows/migrations/0006_comment.py | jorgesaw/oclock | 2a78bd4d1ab40eaa65ea346cf8c37556fcbbeca5 | [
"MIT"
] | null | null | null | apps/shows/migrations/0006_comment.py | jorgesaw/oclock | 2a78bd4d1ab40eaa65ea346cf8c37556fcbbeca5 | [
"MIT"
] | null | null | null | apps/shows/migrations/0006_comment.py | jorgesaw/oclock | 2a78bd4d1ab40eaa65ea346cf8c37556fcbbeca5 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.13 on 2020-09-27 03:14
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('shows', '0005_auto_2020... | 51.277778 | 162 | 0.627844 | 211 | 1,846 | 5.350711 | 0.417062 | 0.087688 | 0.053144 | 0.058459 | 0.254207 | 0.254207 | 0.166519 | 0.166519 | 0.166519 | 0.166519 | 0 | 0.029309 | 0.223727 | 1,846 | 35 | 163 | 52.742857 | 0.758549 | 0.024919 | 0 | 0 | 1 | 0 | 0.156841 | 0.012792 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.103448 | 0 | 0.206897 | 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 |
bb2d52c233b9c027a9bbeb27cc8db44cbb6c5aeb | 440 | py | Python | projects/migrations/0010_auto_20200217_0313.py | wilbrone/Awards | c4c87ca5d700a12dc8d23e2d6092ac59adada4af | [
"MIT"
] | null | null | null | projects/migrations/0010_auto_20200217_0313.py | wilbrone/Awards | c4c87ca5d700a12dc8d23e2d6092ac59adada4af | [
"MIT"
] | 11 | 2020-06-05T20:57:31.000Z | 2021-09-22T18:35:03.000Z | projects/migrations/0010_auto_20200217_0313.py | wilbrone/Awards | c4c87ca5d700a12dc8d23e2d6092ac59adada4af | [
"MIT"
] | null | null | null | # Generated by Django 3.0.2 on 2020-02-17 03:13
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('projects', '0009_auto_20200217_0306'),
]
operations = [
migrations.AlterField(
model_name='profile',
name='profile_p... | 23.157895 | 97 | 0.622727 | 49 | 440 | 5.44898 | 0.816327 | 0.082397 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.094801 | 0.256818 | 440 | 18 | 98 | 24.444444 | 0.721713 | 0.102273 | 0 | 0 | 1 | 0 | 0.183206 | 0.058524 | 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 |
bb309be7b79bab53765d51fbd9cd8102d4fe70fe | 691 | py | Python | src/news/migrations/0007_auto_20200211_0715.py | HammudElHammud/newspage | feac69bf0fa3dd6c876e88ef0daae4166b367c09 | [
"bzip2-1.0.6"
] | null | null | null | src/news/migrations/0007_auto_20200211_0715.py | HammudElHammud/newspage | feac69bf0fa3dd6c876e88ef0daae4166b367c09 | [
"bzip2-1.0.6"
] | null | null | null | src/news/migrations/0007_auto_20200211_0715.py | HammudElHammud/newspage | feac69bf0fa3dd6c876e88ef0daae4166b367c09 | [
"bzip2-1.0.6"
] | null | null | null | # Generated by Django 3.0.3 on 2020-02-11 15:15
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('news', '0006_auto_20200210_1343'),
]
operations = [
migrations.RemoveField(
model_name='news',
name='pic',
)... | 23.827586 | 65 | 0.551375 | 68 | 691 | 5.470588 | 0.588235 | 0.072581 | 0.104839 | 0.137097 | 0.188172 | 0.188172 | 0 | 0 | 0 | 0 | 0 | 0.086207 | 0.328509 | 691 | 28 | 66 | 24.678571 | 0.715517 | 0.065123 | 0 | 0.363636 | 1 | 0 | 0.086957 | 0.035714 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.181818 | 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 |
bb3ef60db6f9ff267ee2587cc672fa115e129028 | 867 | py | Python | note/views.py | DisMosGit/Dodja | 0bcafede607df921b53f6ed501842d4cd03f65d6 | [
"Apache-2.0"
] | null | null | null | note/views.py | DisMosGit/Dodja | 0bcafede607df921b53f6ed501842d4cd03f65d6 | [
"Apache-2.0"
] | null | null | null | note/views.py | DisMosGit/Dodja | 0bcafede607df921b53f6ed501842d4cd03f65d6 | [
"Apache-2.0"
] | null | null | null | from rest_framework import request
from rest_framework.viewsets import ModelViewSet
from django.db.models import Q
from docker_host.permissions import IsHostOperationAllowed, HostOperationMixin
from .models import Note
from .serializer import NoteSerializer
class NoteView(ModelViewSet, HostOperationMixin):
quer... | 32.111111 | 79 | 0.723183 | 102 | 867 | 5.931373 | 0.480392 | 0.049587 | 0.056198 | 0.056198 | 0.06281 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.185698 | 867 | 26 | 80 | 33.346154 | 0.856941 | 0 | 0 | 0 | 0 | 0 | 0.038062 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.3 | 0.05 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
bb4497e1dbd4469ddda01ec170a2a76d6300d046 | 456 | py | Python | Python Programs/perfect-number.py | muhammad-masood-ur-rehman/Skillrack | 71a25417c89d0efab40ee6229ccd758b26ae4312 | [
"CC0-1.0"
] | 2 | 2021-06-26T21:50:59.000Z | 2021-09-18T04:55:51.000Z | Python Programs/perfect-number.py | muhammad-masood-ur-rehman/Skillrack | 71a25417c89d0efab40ee6229ccd758b26ae4312 | [
"CC0-1.0"
] | null | null | null | Python Programs/perfect-number.py | muhammad-masood-ur-rehman/Skillrack | 71a25417c89d0efab40ee6229ccd758b26ae4312 | [
"CC0-1.0"
] | null | null | null | Perfect Number
Given a positive integer N as the input, the program must print yes if N is a perfect number. Else no must be printed.
Input Format: The first line contains N.
Output Format: The first line contains yes or no
Boundary Conditions: 1 <= N <= 999999
Example Input/Output 1:
Input: 6
Output:
yes
Example Inpu... | 22.8 | 118 | 0.710526 | 88 | 456 | 3.693182 | 0.488636 | 0.027692 | 0.086154 | 0.110769 | 0.16 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034946 | 0.184211 | 456 | 19 | 119 | 24 | 0.836022 | 0 | 0 | 0.105263 | 0 | 0 | 0.010989 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.157895 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
bb4740d461fb0ee93b6018cfd9a391d770aa07ed | 3,152 | py | Python | gs_nosql.py | accidentalrebel/GameSparks-NoSQL-Python-Library | c278adf8cc3638c2c435157cc6514fdd12b22402 | [
"MIT"
] | null | null | null | gs_nosql.py | accidentalrebel/GameSparks-NoSQL-Python-Library | c278adf8cc3638c2c435157cc6514fdd12b22402 | [
"MIT"
] | null | null | null | gs_nosql.py | accidentalrebel/GameSparks-NoSQL-Python-Library | c278adf8cc3638c2c435157cc6514fdd12b22402 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import os
import requests
import json
AUTH_URL = 'https://auth.gamesparks.net/restv2/auth'
GAME_URL = 'https://config2.gamesparks.net/restv2/game/'
access_token = None
stage_base_url = None
jwt_token = None
api_key = None
def authenticate(is_live = False):
global access_token
global st... | 31.838384 | 100 | 0.660216 | 428 | 3,152 | 4.67757 | 0.21729 | 0.064935 | 0.05994 | 0.037463 | 0.468032 | 0.431069 | 0.41958 | 0.404595 | 0.37962 | 0.37962 | 0 | 0.0092 | 0.206853 | 3,152 | 98 | 101 | 32.163265 | 0.7916 | 0.006662 | 0 | 0.316456 | 0 | 0 | 0.256869 | 0.019169 | 0 | 0 | 0 | 0 | 0.050633 | 1 | 0.075949 | false | 0.050633 | 0.037975 | 0 | 0.189873 | 0.139241 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
bb48724011f3e8bc30eb54127e0afe722aa24a7f | 2,819 | py | Python | chroma_core/migrations/0025_createsnapshotjob_destroysnapshotjob.py | intel-hpdd/-intel-manager-for-lustre | f8a6f61205b42cc62f4bbcb8d81214ad4f215cd6 | [
"MIT"
] | 52 | 2018-09-13T03:26:23.000Z | 2022-03-25T16:51:37.000Z | chroma_core/migrations/0025_createsnapshotjob_destroysnapshotjob.py | intel-hpdd/-intel-manager-for-lustre | f8a6f61205b42cc62f4bbcb8d81214ad4f215cd6 | [
"MIT"
] | 1,264 | 2018-06-15T19:50:57.000Z | 2022-03-28T08:19:04.000Z | chroma_core/migrations/0025_createsnapshotjob_destroysnapshotjob.py | whamcloud/intel-manager-for-lustre | f8a6f61205b42cc62f4bbcb8d81214ad4f215cd6 | [
"MIT"
] | 27 | 2018-06-18T08:51:59.000Z | 2022-03-16T15:35:34.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.23 on 2020-09-10 14:23
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
("chroma_core", "0024_mountsnapshotjob_unmountsnapshotjob"),... | 37.586667 | 113 | 0.476765 | 247 | 2,819 | 5.283401 | 0.368421 | 0.055172 | 0.062069 | 0.123372 | 0.591571 | 0.57318 | 0.57318 | 0.45977 | 0.45977 | 0.45977 | 0 | 0.023227 | 0.419652 | 2,819 | 74 | 114 | 38.094595 | 0.77445 | 0.024477 | 0 | 0.58209 | 1 | 0 | 0.187477 | 0.014561 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.044776 | 0 | 0.089552 | 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 |
bb49ee088fa33d9f59b710ec0865860ddf2f7c81 | 564 | py | Python | easy/maximum number of words you can type/solurion.py | ilya-sokolov/leetcode | ad421111d0d7c5ec5245f33552e94a373b6fd426 | [
"MIT"
] | 4 | 2021-06-03T22:19:13.000Z | 2021-10-05T18:14:12.000Z | easy/maximum number of words you can type/solurion.py | ilya-sokolov/leetcode | ad421111d0d7c5ec5245f33552e94a373b6fd426 | [
"MIT"
] | null | null | null | easy/maximum number of words you can type/solurion.py | ilya-sokolov/leetcode | ad421111d0d7c5ec5245f33552e94a373b6fd426 | [
"MIT"
] | null | null | null | class Solution:
def canBeTypedWords(self, text: str, brokenLetters: str) -> int:
result = 0
words = text.split(" ")
set_chars = set(brokenLetters)
for i in words:
set_word = set(i)
sub = set_word - set_chars
if len(set_word) == len(sub):
... | 29.684211 | 68 | 0.585106 | 70 | 564 | 4.642857 | 0.542857 | 0.073846 | 0.258462 | 0.153846 | 0.178462 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004902 | 0.276596 | 564 | 18 | 69 | 31.333333 | 0.791667 | 0 | 0 | 0 | 0 | 0 | 0.099291 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0 | 0 | 0.1875 | 0.25 | 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 |
bb4db26251eb639d46ce3715d1158347bc8822e9 | 864 | py | Python | examples/main.py | vnpnh/Pyvalo | ca9594ab4eb5620c0c5ef4d0fe0e139353986520 | [
"MIT"
] | null | null | null | examples/main.py | vnpnh/Pyvalo | ca9594ab4eb5620c0c5ef4d0fe0e139353986520 | [
"MIT"
] | null | null | null | examples/main.py | vnpnh/Pyvalo | ca9594ab4eb5620c0c5ef4d0fe0e139353986520 | [
"MIT"
] | null | null | null | import valorant
from valorant.utils.gameplay import check_buy_phase
from valorant.utils.gameplay import enemy_score_info, own_score_info
import time
from valorant.utils.helper import apply_config
# default config
# valo = valorant.config()
# custom config
valo = valorant.config(tesseract=r'D:\Program Files\Tesseract... | 27 | 81 | 0.753472 | 133 | 864 | 4.646617 | 0.37594 | 0.087379 | 0.082524 | 0.080906 | 0.220065 | 0.119741 | 0.119741 | 0 | 0 | 0 | 0 | 0.08724 | 0.111111 | 864 | 32 | 82 | 27 | 0.717448 | 0.194444 | 0 | 0 | 0 | 0 | 0.124069 | 0.081886 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.454545 | 0 | 0.454545 | 0.363636 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
bb4e5523639c4a91fc5222ca7f3564f00d36171e | 436 | py | Python | login/migrations/0005_employee_username.py | mankek/Time-Tracker | 4e8c3eaf669ca75d290eeb5a8bb7d9e23fc959bb | [
"MIT"
] | 6 | 2019-01-30T06:05:37.000Z | 2022-01-28T10:52:06.000Z | login/migrations/0005_employee_username.py | mankek/Time-Tracker | 4e8c3eaf669ca75d290eeb5a8bb7d9e23fc959bb | [
"MIT"
] | 1 | 2021-03-03T14:25:21.000Z | 2022-03-23T13:36:42.000Z | login/migrations/0005_employee_username.py | mankek/Time-Tracker | 4e8c3eaf669ca75d290eeb5a8bb7d9e23fc959bb | [
"MIT"
] | 5 | 2019-01-30T06:05:37.000Z | 2022-03-01T13:12:06.000Z | # Generated by Django 2.1 on 2018-10-10 22:21
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('login', '0004_auto_20181010_1640'),
]
operations = [
migrations.AddField(
model_name='employee',
name='Username',
... | 21.8 | 66 | 0.600917 | 46 | 436 | 5.565217 | 0.826087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102894 | 0.286697 | 436 | 19 | 67 | 22.947368 | 0.720257 | 0.098624 | 0 | 0 | 1 | 0 | 0.122762 | 0.058824 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bb4f6cecef3858e27583257bcccf7772bacf1898 | 3,345 | py | Python | datapack/data/scripts/custom/6667_ClanManager/__init__.py | DigitalCoin1/L2SPERO | f9ec069804d7bf13f9c4bfb508db2eb6ce37ab94 | [
"Unlicense"
] | null | null | null | datapack/data/scripts/custom/6667_ClanManager/__init__.py | DigitalCoin1/L2SPERO | f9ec069804d7bf13f9c4bfb508db2eb6ce37ab94 | [
"Unlicense"
] | null | null | null | datapack/data/scripts/custom/6667_ClanManager/__init__.py | DigitalCoin1/L2SPERO | f9ec069804d7bf13f9c4bfb508db2eb6ce37ab94 | [
"Unlicense"
] | null | null | null | import sys
from com.l2jfrozen.gameserver.model.actor.instance import L2PcInstance
from com.l2jfrozen.gameserver.model.actor.instance import L2NpcInstance
from java.util import Iterator
from com.l2jfrozen.util.database import L2DatabaseFactory
from com.l2jfrozen.gameserver.model.quest import State
from com.l2jfrozen.gam... | 40.301205 | 164 | 0.577578 | 352 | 3,345 | 5.403409 | 0.326705 | 0.05205 | 0.050473 | 0.068349 | 0.500526 | 0.459516 | 0.440589 | 0.396425 | 0.343849 | 0.281809 | 0 | 0.041138 | 0.316891 | 3,345 | 82 | 165 | 40.792683 | 0.791247 | 0 | 0 | 0.333333 | 0 | 0 | 0.13722 | 0.026906 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.111111 | null | null | 0.013889 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
bb5006edc83591fcb6fd014b194938e915e15b68 | 9,487 | py | Python | python/oskar/vis_header.py | happyseayou/OSKAR | 3fb995ed39deb6b11da12524e8e30f0ca8f9c39b | [
"BSD-3-Clause"
] | 46 | 2015-12-15T14:24:16.000Z | 2022-01-24T16:54:49.000Z | python/oskar/vis_header.py | happyseayou/OSKAR | 3fb995ed39deb6b11da12524e8e30f0ca8f9c39b | [
"BSD-3-Clause"
] | 37 | 2016-08-04T17:53:03.000Z | 2022-03-10T10:22:01.000Z | python/oskar/vis_header.py | happyseayou/OSKAR | 3fb995ed39deb6b11da12524e8e30f0ca8f9c39b | [
"BSD-3-Clause"
] | 32 | 2016-05-09T10:30:11.000Z | 2022-01-26T07:55:27.000Z | # -*- coding: utf-8 -*-
#
# Copyright (c) 2016-2020, The University of Oxford
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# 1. Redistributions of source code must retain the above copyright... | 40.370213 | 79 | 0.702013 | 1,296 | 9,487 | 4.87963 | 0.23071 | 0.067837 | 0.045541 | 0.061828 | 0.354839 | 0.243359 | 0.221695 | 0.172676 | 0.120177 | 0.120177 | 0 | 0.007459 | 0.222726 | 9,487 | 234 | 80 | 40.542735 | 0.850149 | 0.464847 | 0 | 0.203884 | 0 | 0 | 0.034329 | 0.005722 | 0 | 0 | 0 | 0 | 0 | 1 | 0.213592 | false | 0 | 0.038835 | 0 | 0.631068 | 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 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bb513c7cb4cfaba75c9bb580d5d1718b16468f02 | 463 | py | Python | etc/setup.py | c4s4/mysql_commando | def44e111e4e6438d7bc4e0f407c38af86e98880 | [
"Apache-2.0"
] | 2 | 2016-07-27T12:59:47.000Z | 2019-11-30T14:24:56.000Z | etc/setup.py | c4s4/mysql_commando | def44e111e4e6438d7bc4e0f407c38af86e98880 | [
"Apache-2.0"
] | null | null | null | etc/setup.py | c4s4/mysql_commando | def44e111e4e6438d7bc4e0f407c38af86e98880 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# encoding: UTF-8
from distutils.core import setup
setup(
name = 'mysql_commando',
version = 'VERSION',
author = 'Michel Casabianca',
author_email = 'casa@sweetohm.net',
packages = ['mysql_commando'],
url = 'http://pypi.python.org/pypi/mysql_commando/',
license = 'Apa... | 27.235294 | 69 | 0.680346 | 56 | 463 | 5.517857 | 0.75 | 0.168285 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002632 | 0.179266 | 463 | 16 | 70 | 28.9375 | 0.810526 | 0.077754 | 0 | 0 | 0 | 0 | 0.454118 | 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 |
bb58ba0f491c210148b7b90b9abe97b2078c4465 | 1,031 | py | Python | utils/yaml_helper.py | jiaqi-w/machine_learning | faf21f355d1d6d9de720ae77cbff3442db5cebc7 | [
"MIT"
] | 1 | 2018-10-29T16:55:07.000Z | 2018-10-29T16:55:07.000Z | utils/yaml_helper.py | jiaqi-w/machine_learning | faf21f355d1d6d9de720ae77cbff3442db5cebc7 | [
"MIT"
] | null | null | null | utils/yaml_helper.py | jiaqi-w/machine_learning | faf21f355d1d6d9de720ae77cbff3442db5cebc7 | [
"MIT"
] | null | null | null | import yaml
class Yaml_Helper():
def __init__(self, config_fname):
self.config = self.load_config(config_fname) or {}
@staticmethod
def load_config(config_fname):
"""
Loads the configuration file config_file given by command line or
config.DEFAULT_CONFIG when none is specif... | 34.366667 | 82 | 0.643065 | 132 | 1,031 | 4.848485 | 0.424242 | 0.120313 | 0.075 | 0.098438 | 0.078125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.29001 | 1,031 | 29 | 83 | 35.551724 | 0.874317 | 0.342386 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.071429 | 0 | 0.428571 | 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 |
bb5a4a304b4822606cb8420489013996cae942be | 1,163 | py | Python | setup.py | simon-ball/nqo-mfs | 54bc84deb6ac0ab1dec724fee69c0d7b7c0ce3e9 | [
"MIT"
] | null | null | null | setup.py | simon-ball/nqo-mfs | 54bc84deb6ac0ab1dec724fee69c0d7b7c0ce3e9 | [
"MIT"
] | 1 | 2020-10-23T11:10:23.000Z | 2020-10-23T11:10:23.000Z | setup.py | simon-ball/nqo-mfs | 54bc84deb6ac0ab1dec724fee69c0d7b7c0ce3e9 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""The setup script."""
from setuptools import setup, find_packages
from os import path
here = path.abspath(path.dirname(__file__))
with open('README.md') as readme_file:
readme = readme_file.read()
with open(path.join(here, 'requirements.txt')) as f:
requirements = f.read().split()
... | 27.690476 | 79 | 0.647463 | 141 | 1,163 | 5.241135 | 0.595745 | 0.128552 | 0.169148 | 0.175913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014085 | 0.206363 | 1,163 | 42 | 80 | 27.690476 | 0.786566 | 0.032674 | 0 | 0 | 0 | 0 | 0.415179 | 0.019643 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.064516 | 0 | 0.064516 | 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 |
bb5a673684a9f6feb55f8f7a0216913522c44b45 | 8,832 | py | Python | deeppavlov/models/go_bot/dto/dataset_features.py | xbodx/DeepPavlov | 4b60bf162df4294b8b0db3b72786cdd699c674fa | [
"Apache-2.0"
] | 5,893 | 2018-02-01T18:13:20.000Z | 2022-03-31T19:22:21.000Z | deeppavlov/models/go_bot/dto/dataset_features.py | xbodx/DeepPavlov | 4b60bf162df4294b8b0db3b72786cdd699c674fa | [
"Apache-2.0"
] | 749 | 2018-01-31T11:36:02.000Z | 2022-03-30T07:24:22.000Z | deeppavlov/models/go_bot/dto/dataset_features.py | xbodx/DeepPavlov | 4b60bf162df4294b8b0db3b72786cdd699c674fa | [
"Apache-2.0"
] | 1,155 | 2018-02-01T10:52:15.000Z | 2022-03-29T02:12:15.000Z | from typing import List
import numpy as np
# todo remove boilerplate duplications
# todo comments
# todo logging
# todo naming
from deeppavlov.models.go_bot.nlu.dto.nlu_response import NLUResponse
from deeppavlov.models.go_bot.policy.dto.digitized_policy_features import DigitizedPolicyFeatures
from deeppavlov.models... | 34.100386 | 119 | 0.718637 | 1,048 | 8,832 | 5.757634 | 0.101145 | 0.058336 | 0.039443 | 0.029831 | 0.482764 | 0.361949 | 0.334935 | 0.275936 | 0.260027 | 0.260027 | 0 | 0.000997 | 0.205389 | 8,832 | 258 | 120 | 34.232558 | 0.858792 | 0.177423 | 0 | 0.169014 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007752 | 0 | 1 | 0.183099 | false | 0 | 0.042254 | 0.056338 | 0.556338 | 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 |
bb5c048667a0292288c7bd98af21da085db5a478 | 8,880 | py | Python | app/ws.py | javi-cortes/music_ws | 7ca60e481f16d71ee6d3ff61e112ba12e9c7db8f | [
"MIT"
] | null | null | null | app/ws.py | javi-cortes/music_ws | 7ca60e481f16d71ee6d3ff61e112ba12e9c7db8f | [
"MIT"
] | null | null | null | app/ws.py | javi-cortes/music_ws | 7ca60e481f16d71ee6d3ff61e112ba12e9c7db8f | [
"MIT"
] | null | null | null | import json
from datetime import timedelta
import dateutil.parser
from flask import Blueprint, request
from app.models.main import Channel, Performer, Song, Play
# Response codes
CODE_KO = 1
CODE_OK = 0
music_ws = Blueprint('music_ws', __name__)
@music_ws.route('/', methods=['GET'])
def index():
return 'Hello... | 31.714286 | 117 | 0.601689 | 1,091 | 8,880 | 4.726856 | 0.156737 | 0.047896 | 0.058949 | 0.034904 | 0.470235 | 0.420981 | 0.390149 | 0.380454 | 0.380454 | 0.347489 | 0 | 0.004981 | 0.253941 | 8,880 | 280 | 118 | 31.714286 | 0.773434 | 0.072635 | 0 | 0.38191 | 0 | 0 | 0.170747 | 0 | 0 | 0 | 0 | 0.010714 | 0 | 1 | 0.070352 | false | 0 | 0.025126 | 0.005025 | 0.180905 | 0.01005 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
246f42b9ab1dca2ee51900cb7e5757551282b861 | 635 | py | Python | src/senders/telegram_sender.py | maticardenas/football_api_notif | 81f9e265d4effb7545e3d9ad80ee1109cd9b8edf | [
"MIT"
] | null | null | null | src/senders/telegram_sender.py | maticardenas/football_api_notif | 81f9e265d4effb7545e3d9ad80ee1109cd9b8edf | [
"MIT"
] | null | null | null | src/senders/telegram_sender.py | maticardenas/football_api_notif | 81f9e265d4effb7545e3d9ad80ee1109cd9b8edf | [
"MIT"
] | null | null | null | from config.notif_config import NotifConfig
from src.api.telegram_client import TelegramClient
def send_telegram_message(
chat_id: str, message: str = "", photo: str = "", video: str = ""
) -> None:
telegram_client = TelegramClient(NotifConfig.TELEGRAM_TOKEN)
if photo:
response = telegram_client.s... | 37.352941 | 85 | 0.733858 | 82 | 635 | 5.45122 | 0.390244 | 0.1566 | 0.147651 | 0.174497 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.165354 | 635 | 16 | 86 | 39.6875 | 0.843396 | 0 | 0 | 0 | 0 | 0 | 0.111811 | 0.061417 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.153846 | 0 | 0.230769 | 0.076923 | 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 |
24747539fd8ac22a7c135fadd0de950c9f614794 | 1,060 | py | Python | examples/asg-only/stack.tf.py | steve-stonehouse/terraform-aws-asg-pipeline | 281a857a232cabb58cfaf6a302a96b1a27781cd6 | [
"MIT"
] | 1 | 2021-02-20T10:36:40.000Z | 2021-02-20T10:36:40.000Z | examples/asg-only/stack.tf.py | steve-stonehouse/terraform-aws-asg-pipeline | 281a857a232cabb58cfaf6a302a96b1a27781cd6 | [
"MIT"
] | 1 | 2021-05-13T13:58:13.000Z | 2021-05-13T13:58:13.000Z | examples/asg-only/stack.tf.py | steve-stonehouse/terraform-aws-asg-pipeline | 281a857a232cabb58cfaf6a302a96b1a27781cd6 | [
"MIT"
] | 4 | 2021-01-07T10:10:44.000Z | 2021-10-15T21:16:35.000Z | """
This file is used by Pretf to generate stack.tf.json.
The reason for using Pretf is that our AWS profiles have MFA prompts,
which is not supported by Terraform. We're using multiple AWS profiles
in these examples to manage resources in multiple AWS accounts, so we
can't use simple environment variables for AWS cre... | 35.333333 | 73 | 0.726415 | 148 | 1,060 | 5.114865 | 0.547297 | 0.05284 | 0.071334 | 0.055482 | 0.089828 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013544 | 0.164151 | 1,060 | 29 | 74 | 36.551724 | 0.840858 | 0.364151 | 0 | 0 | 1 | 0 | 0.374436 | 0.156391 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.142857 | 0 | 0.214286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
24777626ecc3432512182ddd00d3df2a0858c543 | 5,070 | py | Python | code/attacks/syn_flood.py | LTKills/TCC-Course-Conclusion-Thesis | 9f0f9f7796020e7d49d0b2e0ab76e20692e5f3a4 | [
"MIT"
] | null | null | null | code/attacks/syn_flood.py | LTKills/TCC-Course-Conclusion-Thesis | 9f0f9f7796020e7d49d0b2e0ab76e20692e5f3a4 | [
"MIT"
] | null | null | null | code/attacks/syn_flood.py | LTKills/TCC-Course-Conclusion-Thesis | 9f0f9f7796020e7d49d0b2e0ab76e20692e5f3a4 | [
"MIT"
] | null | null | null | # Developed by GABRIEL PEREIRA PINHEIRO and VICTOR ARAUJO VIEIRA
# In the University of Brasilia on 2017
# Atack SYN flood
#All copyrights to Gabriel Pereira Pinheiro and Victor Araujo Vieira
import socket, sys, random
from struct import *
from threading import Thread
import time
flag_encerra_threads = False
# ch... | 28.644068 | 124 | 0.619132 | 745 | 5,070 | 4.107383 | 0.358389 | 0.017647 | 0.009804 | 0.017974 | 0.188235 | 0.156863 | 0.137909 | 0.096078 | 0.096078 | 0.069281 | 0 | 0.036672 | 0.27929 | 5,070 | 176 | 125 | 28.806818 | 0.800766 | 0.293294 | 0 | 0.107843 | 0 | 0 | 0.085311 | 0 | 0 | 0 | 0.00339 | 0.005682 | 0 | 0 | null | null | 0.009804 | 0.058824 | null | null | 0.04902 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
2478ca648fedf246d69a5e00ab4529cc5ae395e3 | 282 | py | Python | shop/urls.py | ArRosid/ECommerceAPI | f683eed52e3591f6f45b955fb14f34154fa434ca | [
"MIT"
] | null | null | null | shop/urls.py | ArRosid/ECommerceAPI | f683eed52e3591f6f45b955fb14f34154fa434ca | [
"MIT"
] | null | null | null | shop/urls.py | ArRosid/ECommerceAPI | f683eed52e3591f6f45b955fb14f34154fa434ca | [
"MIT"
] | 1 | 2022-02-16T08:21:39.000Z | 2022-02-16T08:21:39.000Z | from django.urls import path, include
from rest_framework import routers
from . import views
router = routers.DefaultRouter()
router.register("category", views.CategoryViewSet)
router.register("product", views.ProductViewSet)
urlpatterns = [
path("", include(router.urls))
]
| 21.692308 | 50 | 0.769504 | 32 | 282 | 6.75 | 0.5625 | 0.101852 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117021 | 282 | 12 | 51 | 23.5 | 0.86747 | 0 | 0 | 0 | 0 | 0 | 0.053381 | 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 |
247bb0fcb6c8c1435c8ad5d645cceffb1235621f | 9,965 | py | Python | mininet/p4_mininet.py | ghostli123/p4factory | 87ca095036d2023b52e42a8f1e2602f23f7adebe | [
"Apache-2.0"
] | 205 | 2015-04-08T13:35:19.000Z | 2022-03-28T09:22:47.000Z | mininet/p4_mininet.py | ghostli123/p4factory | 87ca095036d2023b52e42a8f1e2602f23f7adebe | [
"Apache-2.0"
] | 97 | 2015-04-16T00:41:05.000Z | 2022-01-26T22:08:34.000Z | mininet/p4_mininet.py | ghostli123/p4factory | 87ca095036d2023b52e42a8f1e2602f23f7adebe | [
"Apache-2.0"
] | 150 | 2015-04-02T18:49:15.000Z | 2022-02-10T23:16:26.000Z | # Copyright 2013-present Barefoot Networks, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | 35.845324 | 81 | 0.535575 | 1,175 | 9,965 | 4.462128 | 0.278298 | 0.032043 | 0.016021 | 0.009918 | 0.250048 | 0.219722 | 0.171657 | 0.144383 | 0.109861 | 0.109861 | 0 | 0.018814 | 0.327948 | 9,965 | 277 | 82 | 35.974729 | 0.764073 | 0.096839 | 0 | 0.24186 | 0 | 0 | 0.135551 | 0.028212 | 0 | 0 | 0 | 0.00361 | 0.004651 | 0 | null | null | 0.018605 | 0.023256 | null | null | 0.060465 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
2484641686c9e401e0c6f1d4e5155e7bdadc8ed6 | 406 | py | Python | stats-backend/collector/migrations/0024_node_benchmarked_at.py | cryptobench/golem-stats-backend | 567e98873bff6282415ecbdc075c27dab75d805a | [
"MIT"
] | null | null | null | stats-backend/collector/migrations/0024_node_benchmarked_at.py | cryptobench/golem-stats-backend | 567e98873bff6282415ecbdc075c27dab75d805a | [
"MIT"
] | 4 | 2021-03-28T16:42:41.000Z | 2022-01-01T14:48:46.000Z | stats-backend/collector/migrations/0024_node_benchmarked_at.py | golemfactory/golem-stats-backend | 95467749a13e4496032150cf08a9a3686ef213d3 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.8 on 2021-10-13 11:30
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('collector', '0023_node_benchmark_score'),
]
operations = [
migrations.AddField(
model_name='node',
name='benchmarked... | 21.368421 | 62 | 0.610837 | 44 | 406 | 5.522727 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064626 | 0.275862 | 406 | 18 | 63 | 22.555556 | 0.761905 | 0.110837 | 0 | 0 | 1 | 0 | 0.144847 | 0.069638 | 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 |
248630c333547d480ed84c90947e296fc0fc3449 | 8,662 | py | Python | joulescope/usb/api.py | tadodotcom/pyjoulescope | ab9645a2774cf5d5355dee4c1e60a566419b0e00 | [
"Apache-2.0"
] | 29 | 2018-12-19T22:42:09.000Z | 2022-01-31T12:26:52.000Z | joulescope/usb/api.py | tadodotcom/pyjoulescope | ab9645a2774cf5d5355dee4c1e60a566419b0e00 | [
"Apache-2.0"
] | 23 | 2019-07-21T23:44:46.000Z | 2022-03-11T13:29:11.000Z | joulescope/usb/api.py | tadodotcom/pyjoulescope | ab9645a2774cf5d5355dee4c1e60a566419b0e00 | [
"Apache-2.0"
] | 9 | 2019-07-22T00:07:53.000Z | 2021-11-26T11:46:19.000Z | # Copyright 2018 Jetperch LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,... | 38.497778 | 118 | 0.659317 | 1,122 | 8,662 | 5.019608 | 0.290553 | 0.055398 | 0.04794 | 0.008523 | 0.244318 | 0.216974 | 0.208452 | 0.171875 | 0.158026 | 0.145597 | 0 | 0.002387 | 0.274648 | 8,662 | 224 | 119 | 38.669643 | 0.894 | 0.726622 | 0 | 0.416667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.388889 | false | 0.027778 | 0 | 0 | 0.583333 | 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 |
248b58cb4625736f2cb0396f27150679a31d86b4 | 3,155 | py | Python | tomomibot/commands/status.py | adzialocha/tomomibot | ed3964223bd63340f28d36daa014865f61aaf571 | [
"MIT"
] | 28 | 2018-07-26T09:47:32.000Z | 2022-01-24T10:38:13.000Z | tomomibot/commands/status.py | adzialocha/tomomibot | ed3964223bd63340f28d36daa014865f61aaf571 | [
"MIT"
] | null | null | null | tomomibot/commands/status.py | adzialocha/tomomibot | ed3964223bd63340f28d36daa014865f61aaf571 | [
"MIT"
] | 5 | 2018-08-11T08:07:23.000Z | 2021-12-23T14:47:40.000Z | import os
import click
from tomomibot.audio import all_inputs, all_outputs
from tomomibot.cli import pass_context
from tomomibot.const import GENERATED_FOLDER, MODELS_FOLDER
from tomomibot.utils import line, check_valid_voice, check_valid_model
def list_audio_channels(ctx, channels):
ctx.log(line())
ctx.log... | 31.237624 | 77 | 0.559429 | 404 | 3,155 | 4.264851 | 0.232673 | 0.069646 | 0.034823 | 0.027858 | 0.428903 | 0.400464 | 0.311085 | 0.218224 | 0.171793 | 0.116657 | 0 | 0.026774 | 0.289699 | 3,155 | 100 | 78 | 31.55 | 0.740295 | 0.027892 | 0 | 0.37037 | 1 | 0 | 0.115648 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.049383 | false | 0.024691 | 0.08642 | 0 | 0.135802 | 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 |
2494ce7acc85768e320105780c75c15f78dc92ae | 1,702 | py | Python | pbs/implementation/forms.py | jawaidm/pbs | 87f5c535c976d6a5eccbfbbf2073589b6e366d04 | [
"Apache-2.0"
] | null | null | null | pbs/implementation/forms.py | jawaidm/pbs | 87f5c535c976d6a5eccbfbbf2073589b6e366d04 | [
"Apache-2.0"
] | 12 | 2019-10-22T23:16:38.000Z | 2022-03-11T23:17:45.000Z | pbs/implementation/forms.py | jawaidm/pbs | 87f5c535c976d6a5eccbfbbf2073589b6e366d04 | [
"Apache-2.0"
] | 5 | 2019-12-19T06:18:42.000Z | 2022-01-07T01:16:18.000Z | from django import forms
from pbs.implementation.models import BurningPrescription, EdgingPlan, LightingSequence
from pbs.forms import HelperModelForm, WideTextarea
class BurningPrescriptionForm(forms.ModelForm):
class Meta:
model = BurningPrescription
fields = ('prescription', 'fuel_type', 'scor... | 37 | 104 | 0.683901 | 175 | 1,702 | 6.451429 | 0.285714 | 0.150576 | 0.135518 | 0.183348 | 0.44287 | 0.189548 | 0.072631 | 0 | 0 | 0 | 0 | 0.000725 | 0.189189 | 1,702 | 45 | 105 | 37.822222 | 0.817391 | 0 | 0 | 0.205882 | 0 | 0 | 0.145711 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.088235 | 0 | 0.323529 | 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 |
24956ea92fc62e0f8fb21dbe9885cc8032b1251e | 571 | py | Python | many_to_many/server.py | Abhinav1004/Network_Programming | d647021fd7b6c2b445a30d941dcc4c3472792a11 | [
"MIT"
] | null | null | null | many_to_many/server.py | Abhinav1004/Network_Programming | d647021fd7b6c2b445a30d941dcc4c3472792a11 | [
"MIT"
] | null | null | null | many_to_many/server.py | Abhinav1004/Network_Programming | d647021fd7b6c2b445a30d941dcc4c3472792a11 | [
"MIT"
] | null | null | null | import socket
import time
host = '127.0.0.1'
port = 5000
clients = []
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
s.bind((host,port))
s.setblocking(0)
quitting = False
print "Server Started."
while not quitting:
try:
data, addr = s.recvfrom(1024)
if "Quit" in str(data):
quit... | 18.419355 | 69 | 0.58669 | 78 | 571 | 4.269231 | 0.538462 | 0.048048 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036765 | 0.285464 | 571 | 30 | 70 | 19.033333 | 0.779412 | 0 | 0 | 0 | 0 | 0 | 0.054482 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.043478 | 0.086957 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2495d28bed0397782cf935e677a1c24cddbc7aa5 | 2,245 | py | Python | dex/tools/list_debuggers/Tool.py | jmorse/dexter | 79cefa890d041dfc927aea2a84737aa704ddd35c | [
"MIT"
] | null | null | null | dex/tools/list_debuggers/Tool.py | jmorse/dexter | 79cefa890d041dfc927aea2a84737aa704ddd35c | [
"MIT"
] | null | null | null | dex/tools/list_debuggers/Tool.py | jmorse/dexter | 79cefa890d041dfc927aea2a84737aa704ddd35c | [
"MIT"
] | null | null | null | # DExTer : Debugging Experience Tester
# ~~~~~~ ~ ~~ ~ ~~
#
# Copyright (c) 2018 by SN Systems Ltd., Sony Interactive Entertainment Inc.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# ... | 40.089286 | 79 | 0.732294 | 304 | 2,245 | 5.345395 | 0.496711 | 0.054154 | 0.027692 | 0.044308 | 0.055385 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005034 | 0.203563 | 2,245 | 55 | 80 | 40.818182 | 0.903803 | 0.588419 | 0 | 0 | 0 | 0 | 0.039638 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.272727 | 0.045455 | 0.590909 | 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 |
24a9d193850ef9de315e00eae6af3dbda90f9774 | 2,025 | py | Python | tests/test_create_color.py | Nazime/coloring | 4e519a5b440bb4af628048ec9cef2b8698128db6 | [
"MIT"
] | 22 | 2020-07-28T19:45:32.000Z | 2022-03-09T04:48:51.000Z | tests/test_create_color.py | Nazime/coloring | 4e519a5b440bb4af628048ec9cef2b8698128db6 | [
"MIT"
] | null | null | null | tests/test_create_color.py | Nazime/coloring | 4e519a5b440bb4af628048ec9cef2b8698128db6 | [
"MIT"
] | 1 | 2021-11-12T19:23:59.000Z | 2021-11-12T19:23:59.000Z | import pytest
from coloring import create_color
from coloring.consts import *
def test_create_color():
text = "Hello"
mycolor = create_color(120, 160, 200)
colored_text = mycolor(text)
assert colored_text == f"{CSI}38;2;120;160;200m{text}{RESET_COLOR}"
mycolor = create_color(128, 128, 128)
c... | 25 | 88 | 0.665185 | 286 | 2,025 | 4.482517 | 0.164336 | 0.163027 | 0.112324 | 0.137285 | 0.776911 | 0.776911 | 0.606084 | 0.514041 | 0.430577 | 0.344774 | 0 | 0.096794 | 0.199012 | 2,025 | 80 | 89 | 25.3125 | 0.693588 | 0.014321 | 0 | 0.407407 | 0 | 0.055556 | 0.220773 | 0.202208 | 0 | 0 | 0 | 0 | 0.148148 | 1 | 0.12963 | false | 0 | 0.055556 | 0 | 0.185185 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
24aaa027a369814fc245e15cc638702d426aa217 | 429 | py | Python | setup.py | 3lLobo/embed | d77c2af78e88908afc5f81a1f681a9b3e4c5d6d6 | [
"MIT"
] | 1 | 2020-10-12T12:12:28.000Z | 2020-10-12T12:12:28.000Z | setup.py | 3lLobo/embed | d77c2af78e88908afc5f81a1f681a9b3e4c5d6d6 | [
"MIT"
] | null | null | null | setup.py | 3lLobo/embed | d77c2af78e88908afc5f81a1f681a9b3e4c5d6d6 | [
"MIT"
] | 1 | 2020-12-21T18:24:26.000Z | 2020-12-21T18:24:26.000Z | from setuptools import setup
setup(name='embed',
version='0.1',
description='Basic immplementation of knowledge graph embedding. ',
url='https://github.com/pbloem/embed',
author='Peter Bloem',
author_email='embed@peterbloem.nl',
license='MIT',
packages=['embed'],
install... | 26.8125 | 73 | 0.58042 | 43 | 429 | 5.72093 | 0.883721 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006494 | 0.282051 | 429 | 16 | 74 | 26.8125 | 0.792208 | 0 | 0 | 0 | 0 | 0 | 0.346512 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.066667 | 0 | 0.066667 | 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 |
24b074035a2ee27584cb43aeb963e311d3388a92 | 2,115 | py | Python | dryxPython/htmlframework/code.py | thespacedoctor/dryxPython | 8f34f997192eebef9403bd40e4b7c1b1d216f53c | [
"BSD-3-Clause"
] | 2 | 2015-08-01T16:00:44.000Z | 2017-02-24T21:06:50.000Z | dryxPython/htmlframework/code.py | thespacedoctor/dryxPython | 8f34f997192eebef9403bd40e4b7c1b1d216f53c | [
"BSD-3-Clause"
] | null | null | null | dryxPython/htmlframework/code.py | thespacedoctor/dryxPython | 8f34f997192eebef9403bd40e4b7c1b1d216f53c | [
"BSD-3-Clause"
] | null | null | null | #!/usr/local/bin/python
# encoding: utf-8
"""
*Code elements for TBS htmlframework*
:Author:
David Young
:Date Created:
April 16, 2013
:dryx syntax:
- ``xxx`` = come back here and do some more work
- ``_someObject`` = a 'private' object that should only be changed for debugging
:Notes:
- If you ... | 29.375 | 97 | 0.35461 | 153 | 2,115 | 4.895425 | 0.627451 | 0.028037 | 0.044059 | 0.048064 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012298 | 0.269504 | 2,115 | 71 | 98 | 29.788732 | 0.472492 | 0.468558 | 0 | 0.142857 | 0 | 0 | 0.257985 | 0.179361 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
24b62e0fc473c84a416b454f895c5c95bb5b4121 | 713 | py | Python | bin/cat_main.py | minersoft/miner | 247ae1ffb27a4ce3203ac236afd2ed145b31a465 | [
"BSD-3-Clause"
] | 1 | 2015-04-18T16:48:48.000Z | 2015-04-18T16:48:48.000Z | bin/cat_main.py | minersoft/miner | 247ae1ffb27a4ce3203ac236afd2ed145b31a465 | [
"BSD-3-Clause"
] | null | null | null | bin/cat_main.py | minersoft/miner | 247ae1ffb27a4ce3203ac236afd2ed145b31a465 | [
"BSD-3-Clause"
] | null | null | null | #
# Copyright Michael Groys, 2014
#
import sys
from bin_utils import *
usage = "Usage: cat <file>..."
if len(sys.argv) <= 1:
files = ["-"]
elif sys.argv[1] in ["-h", "--help"]:
print usage
sys.exit()
else:
files = sys.argv[1:]
reopenFileInBinMode(sys.stdout)
openMode = "rb"
... | 19.805556 | 47 | 0.54979 | 81 | 713 | 4.82716 | 0.530864 | 0.053708 | 0.061381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016427 | 0.316971 | 713 | 35 | 48 | 20.371429 | 0.786448 | 0.040673 | 0 | 0.08 | 0 | 0 | 0.051163 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.08 | null | null | 0.08 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 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.