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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
20c673313ef3d641bcd5c6d32118849f52fc336d | 4,914 | py | Python | circlecover/mapprojection.py | usnistgov/esc-antenna-cover | 1bd391bc8095a2b9b277a453d3b7a19a6300a84c | [
"Unlicense"
] | 1 | 2021-02-19T22:22:22.000Z | 2021-02-19T22:22:22.000Z | circlecover/mapprojection.py | usnistgov/esc-antenna-cover | 1bd391bc8095a2b9b277a453d3b7a19a6300a84c | [
"Unlicense"
] | null | null | null | circlecover/mapprojection.py | usnistgov/esc-antenna-cover | 1bd391bc8095a2b9b277a453d3b7a19a6300a84c | [
"Unlicense"
] | 1 | 2019-11-21T02:38:17.000Z | 2019-11-21T02:38:17.000Z |
# This software was developed by employees of the National Institute
# of Standards and Technology (NIST), an agency of the Federal
# Government. Pursuant to title 17 United States Code Section 105, works
# of NIST employees are not subject to copyright protection in the United
# States and are considered to be i... | 42 | 127 | 0.736467 | 701 | 4,914 | 5.125535 | 0.449358 | 0.012524 | 0.035625 | 0.016699 | 0.171723 | 0.158363 | 0.141664 | 0.141664 | 0.090175 | 0.076816 | 0 | 0.003819 | 0.200651 | 4,914 | 116 | 128 | 42.362069 | 0.910896 | 0.765364 | 0 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.05 | 0 | 0.55 | 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 |
20c7de11e05787311baf37989f15968ac89dfe5e | 3,834 | py | Python | tools/fp_render.py | snickerbockers/freedom_editor | 3ba22280a310eb0c62fe83439110e2b9d23e2886 | [
"BSD-2-Clause"
] | 3 | 2020-10-29T17:54:01.000Z | 2022-03-07T17:29:20.000Z | tools/fp_render.py | snickerbockers/freedom_editor | 3ba22280a310eb0c62fe83439110e2b9d23e2886 | [
"BSD-2-Clause"
] | null | null | null | tools/fp_render.py | snickerbockers/freedom_editor | 3ba22280a310eb0c62fe83439110e2b9d23e2886 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python
# fp_render
# A tool for rendering images from .lvl files
import os
import sys
import json
import cairo
from getopt import getopt, GetoptError
class FpObj:
def __init__(self, obj_dict, proj_path):
self.addr_pos_x = obj_dict["addr_pos_x"]
self.addr_pos_y = obj_dict["addr_pos_... | 30.188976 | 84 | 0.537559 | 558 | 3,834 | 3.458781 | 0.200717 | 0.043523 | 0.025389 | 0.031088 | 0.299482 | 0.196373 | 0.173575 | 0.162694 | 0.111917 | 0.111917 | 0 | 0.005598 | 0.347679 | 3,834 | 126 | 85 | 30.428571 | 0.766094 | 0.019301 | 0 | 0.193878 | 0 | 0.010204 | 0.077988 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.05102 | null | null | 0.030612 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
20cf1b4d891fec6e1b28e9f3fec9e01836bbfc71 | 2,672 | py | Python | configurations/tests/test_main.py | TwigWorld/django-configurations | c5c0feff9fbafb5f1d007f421e8355668a5a8868 | [
"BSD-3-Clause"
] | null | null | null | configurations/tests/test_main.py | TwigWorld/django-configurations | c5c0feff9fbafb5f1d007f421e8355668a5a8868 | [
"BSD-3-Clause"
] | null | null | null | configurations/tests/test_main.py | TwigWorld/django-configurations | c5c0feff9fbafb5f1d007f421e8355668a5a8868 | [
"BSD-3-Clause"
] | null | null | null | import os
from django.conf import global_settings
from django.test import TestCase
from django.core.exceptions import ImproperlyConfigured
from mock import patch
from configurations.importer import SettingsImporter
class MainTests(TestCase):
def test_simple(self):
from configurations.tests.settings im... | 40.484848 | 93 | 0.681512 | 262 | 2,672 | 6.820611 | 0.21374 | 0.107443 | 0.151091 | 0.104085 | 0.473979 | 0.34751 | 0.281477 | 0.263011 | 0.263011 | 0.263011 | 0 | 0.00097 | 0.228293 | 2,672 | 65 | 94 | 41.107692 | 0.865664 | 0 | 0 | 0.134615 | 0 | 0 | 0.168413 | 0.13997 | 0 | 0 | 0 | 0 | 0.288462 | 1 | 0.153846 | false | 0 | 0.384615 | 0 | 0.557692 | 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 |
20d142edb431d69c500beaef7e72a4809ea3eb07 | 7,430 | py | Python | shapex/shapex/ShapEx.py | figlerg/ShapEx | 8d148f93d8345d82dd98509cf9f90fe2ed98c1fd | [
"BSD-3-Clause"
] | 2 | 2021-08-14T17:59:50.000Z | 2021-12-13T15:49:49.000Z | shapex/shapex/ShapEx.py | figlerg/ShapEx | 8d148f93d8345d82dd98509cf9f90fe2ed98c1fd | [
"BSD-3-Clause"
] | null | null | null | shapex/shapex/ShapEx.py | figlerg/ShapEx | 8d148f93d8345d82dd98509cf9f90fe2ed98c1fd | [
"BSD-3-Clause"
] | null | null | null | import time
import numpy as np
import tqdm
from anyHR.hit_and_run.hit_and_run import *
import warnings
from shapex.expression.Expression import WordSamplerMode
from shapex.generation_tool.generate_traces import to_typestring, atomic_gen
from shapex.misc.Error import IllegalParameterError
from shapex.misc.visualize i... | 37.15 | 120 | 0.643069 | 882 | 7,430 | 5.210884 | 0.306122 | 0.028285 | 0.02785 | 0.014795 | 0.093124 | 0.06832 | 0.046562 | 0.046562 | 0.046562 | 0.046562 | 0 | 0.010987 | 0.277254 | 7,430 | 199 | 121 | 37.336683 | 0.844879 | 0.184253 | 0 | 0.017857 | 1 | 0 | 0.065272 | 0.003986 | 0 | 0 | 0 | 0.005025 | 0 | 1 | 0.044643 | false | 0 | 0.116071 | 0 | 0.196429 | 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 |
20d5cf9f87cf7e66ab740695414a09f7742a3110 | 11,022 | py | Python | avalanche/evaluation/metrics/timing.py | ryanlindeborg/avalanche | 32333776e729bad22f369f8923bc32416c9edcf9 | [
"MIT"
] | null | null | null | avalanche/evaluation/metrics/timing.py | ryanlindeborg/avalanche | 32333776e729bad22f369f8923bc32416c9edcf9 | [
"MIT"
] | null | null | null | avalanche/evaluation/metrics/timing.py | ryanlindeborg/avalanche | 32333776e729bad22f369f8923bc32416c9edcf9 | [
"MIT"
] | null | null | null | ################################################################################
# Copyright (c) 2021 ContinualAI. #
# Copyrights licensed under the MIT License. #
# See the accompanying LICENSE file for terms. ... | 30.114754 | 80 | 0.626293 | 1,263 | 11,022 | 5.243864 | 0.150435 | 0.053148 | 0.033973 | 0.074287 | 0.548845 | 0.518496 | 0.487996 | 0.473954 | 0.407368 | 0.378529 | 0 | 0.002006 | 0.276447 | 11,022 | 365 | 81 | 30.19726 | 0.828464 | 0.324351 | 0 | 0.558282 | 0 | 0 | 0.053993 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.251534 | false | 0 | 0.042945 | 0.06135 | 0.472393 | 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 |
20d8ff2ee4246aef3395363e8c1420cefce404c6 | 2,643 | py | Python | lib/symbioticpy/symbiotic/targets/ikos.py | paldebjit/symbiotic | 3dcaca90ccdcb6c0212f4e4bcbfc50710cc15214 | [
"MIT"
] | 235 | 2016-03-16T11:13:59.000Z | 2022-03-09T20:09:14.000Z | lib/symbioticpy/symbiotic/targets/ikos.py | paldebjit/symbiotic | 3dcaca90ccdcb6c0212f4e4bcbfc50710cc15214 | [
"MIT"
] | 184 | 2015-10-09T17:54:35.000Z | 2022-02-16T14:34:37.000Z | lib/symbioticpy/symbiotic/targets/ikos.py | paldebjit/symbiotic | 3dcaca90ccdcb6c0212f4e4bcbfc50710cc15214 | [
"MIT"
] | 38 | 2016-03-03T23:51:19.000Z | 2022-02-25T05:21:06.000Z | # prepare for Python 3
from __future__ import absolute_import, division, print_function, unicode_literals
import logging
import subprocess
import sys
import os
import re
try:
import benchexec.util as util
import benchexec.result as result
from benchexec.tools.template import BaseTool
except ImportError:
... | 31.464286 | 82 | 0.653424 | 312 | 2,643 | 5.426282 | 0.435897 | 0.042528 | 0.063792 | 0.05316 | 0.183698 | 0.051388 | 0 | 0 | 0 | 0 | 0 | 0.002056 | 0.263715 | 2,643 | 83 | 83 | 31.843373 | 0.867934 | 0.137722 | 0 | 0 | 0 | 0 | 0.09095 | 0 | 0 | 0 | 0 | 0.012048 | 0.037037 | 1 | 0.12963 | false | 0 | 0.259259 | 0.037037 | 0.611111 | 0.018519 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
20d9978b01250a4711e61b04fb42486b23b0d39a | 2,128 | py | Python | dbpy_doc_parser.py | louissobel/Drapache | 564aaba08ee6929043ccd68027c6b01920dbb40a | [
"MIT"
] | 9 | 2015-03-20T05:48:37.000Z | 2018-12-17T09:32:31.000Z | dbpy_doc_parser.py | louissobel/Drapache | 564aaba08ee6929043ccd68027c6b01920dbb40a | [
"MIT"
] | null | null | null | dbpy_doc_parser.py | louissobel/Drapache | 564aaba08ee6929043ccd68027c6b01920dbb40a | [
"MIT"
] | 2 | 2018-01-28T11:23:58.000Z | 2018-07-30T23:38:51.000Z | import drapache.dbpy.builtins.dbpy as dbpy
import re
import inspect
import pprint
import json
def get_help_hash(module):
children = []
doc = {'type':'module','name':module.name,'children':children,'doc':module.__doc__}
if hasattr(module,'submodules'):
for child in module.submodules:
if hasattr... | 21.494949 | 84 | 0.641447 | 267 | 2,128 | 4.865169 | 0.235955 | 0.064665 | 0.049269 | 0.055427 | 0.192456 | 0.192456 | 0.192456 | 0.192456 | 0.192456 | 0.192456 | 0 | 0.001198 | 0.215695 | 2,128 | 99 | 85 | 21.494949 | 0.777112 | 0.035244 | 0 | 0.371429 | 0 | 0 | 0.138402 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.071429 | null | null | 0.028571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
20d9a5ec1d2fb979445e923871ae578ec83b616f | 2,471 | py | Python | royale/pages/card_details_page.py | RussellJQA/test-statsroyale | 376d00d2bd998de7c58b07df06f1fe7dc82816d1 | [
"MIT"
] | null | null | null | royale/pages/card_details_page.py | RussellJQA/test-statsroyale | 376d00d2bd998de7c58b07df06f1fe7dc82816d1 | [
"MIT"
] | null | null | null | royale/pages/card_details_page.py | RussellJQA/test-statsroyale | 376d00d2bd998de7c58b07df06f1fe7dc82816d1 | [
"MIT"
] | null | null | null | from __future__ import annotations
# pip installed
from selenium.webdriver.common.by import By
from selenium.webdriver.remote.webelement import WebElement
from royale.models.card import Card
from royale.pages.base.pagebase import PageBase
class CardDetailsPage(PageBase):
def __init__(self, driver):
supe... | 34.319444 | 78 | 0.581951 | 275 | 2,471 | 4.949091 | 0.218182 | 0.073475 | 0.070536 | 0.123439 | 0.484938 | 0.38795 | 0.38795 | 0.38795 | 0.38795 | 0.38795 | 0 | 0.005855 | 0.308782 | 2,471 | 71 | 79 | 34.802817 | 0.790984 | 0.01983 | 0 | 0.363636 | 0 | 0 | 0.059992 | 0.00993 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.090909 | 0.127273 | 0.490909 | 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 |
20dab0f47444f29aa64a869011e57d6fdf0a06c3 | 3,846 | py | Python | Brevet_US_4661747_Edwin_Gray_Power_Tube/Version_2/part_support_laser_cutting.py | Jay4C/Python-Macros-For_FreeCAD | 12ce5441a26731377fa43e86ccd2be675740d3a0 | [
"MIT"
] | null | null | null | Brevet_US_4661747_Edwin_Gray_Power_Tube/Version_2/part_support_laser_cutting.py | Jay4C/Python-Macros-For_FreeCAD | 12ce5441a26731377fa43e86ccd2be675740d3a0 | [
"MIT"
] | null | null | null | Brevet_US_4661747_Edwin_Gray_Power_Tube/Version_2/part_support_laser_cutting.py | Jay4C/Python-Macros-For_FreeCAD | 12ce5441a26731377fa43e86ccd2be675740d3a0 | [
"MIT"
] | null | null | null | import FreeCAD, Part, Drawing, math, Mesh, importDXF
DOC = FreeCAD.activeDocument()
DOC_NAME = "part_support_laser_cutting"
def clear_doc():
# Clear the active document deleting all the objects
for obj in DOC.Objects:
DOC.removeObject(obj.Name)
def setview():
# Rearrange View
FreeCAD.Gui.S... | 28.917293 | 86 | 0.726989 | 507 | 3,846 | 5.357002 | 0.224852 | 0.181517 | 0.288292 | 0.097938 | 0.618557 | 0.584683 | 0.564065 | 0.564065 | 0.547128 | 0.511046 | 0.00026 | 0.044173 | 0.105304 | 3,846 | 132 | 87 | 29.136364 | 0.744842 | 0.070463 | 0 | 0.511905 | 0 | 0 | 0.093715 | 0.039843 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02381 | false | 0 | 0.02381 | 0 | 0.047619 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
20e2539afa33f5c60691a6ce450830ffa8cf28d0 | 427 | py | Python | solutions/0049_GroupAnagrams.py | alexwawl/leetcode-solutions-javascript-python | d9da4c7ed9418070092b6f6eaf513ff54eecbb61 | [
"MIT"
] | 11 | 2019-08-05T21:44:53.000Z | 2021-04-07T17:05:33.000Z | solutions/0049_GroupAnagrams.py | alexwawl/leetcode-solutions-javascript-python | d9da4c7ed9418070092b6f6eaf513ff54eecbb61 | [
"MIT"
] | null | null | null | solutions/0049_GroupAnagrams.py | alexwawl/leetcode-solutions-javascript-python | d9da4c7ed9418070092b6f6eaf513ff54eecbb61 | [
"MIT"
] | 6 | 2019-09-18T22:29:32.000Z | 2021-04-12T19:03:33.000Z | class Solution(object):
def groupAnagrams(self, strs):
"""
:type strs: List[str]
:rtype: List[List[str]]
"""
dict = {}
for word in strs:
sorted_word = ''.join(sorted(word[:]))
if sorted_word in dict:
dict[sorted_word].append(wor... | 28.466667 | 50 | 0.466042 | 43 | 427 | 4.534884 | 0.511628 | 0.25641 | 0.14359 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.395785 | 427 | 15 | 51 | 28.466667 | 0.755814 | 0.105386 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
20e5f315c28b8c820ddeb559c7debc4bb9ddc569 | 2,513 | py | Python | merge_images.py | codehack9991/VOCOWA | 96fb44ae2bd936f3d3f052c2c5e733582cd9117e | [
"MIT"
] | 2 | 2019-01-06T09:59:26.000Z | 2019-06-04T05:38:43.000Z | merge_images.py | codehack9991/VOCOWA | 96fb44ae2bd936f3d3f052c2c5e733582cd9117e | [
"MIT"
] | null | null | null | merge_images.py | codehack9991/VOCOWA | 96fb44ae2bd936f3d3f052c2c5e733582cd9117e | [
"MIT"
] | null | null | null | from operator import add
from numpy import subtract
from PIL import Image, ImageMath
def merge(name_img1, name_img2, position_wrt_img1=(0, 0)):
"""
Merges two images. Currently, works for -ve position too
:param name_img1: Image 1
:param name_img2: Image 2
:param position_wrt_img1: Merging w.r.t.... | 30.277108 | 71 | 0.602865 | 399 | 2,513 | 3.679198 | 0.225564 | 0.016349 | 0.071526 | 0.029973 | 0.343324 | 0.263624 | 0.246594 | 0.246594 | 0.186649 | 0.186649 | 0 | 0.071882 | 0.247115 | 2,513 | 82 | 72 | 30.646341 | 0.704017 | 0.223239 | 0 | 0.186047 | 0 | 0 | 0.011752 | 0 | 0 | 0 | 0 | 0.012195 | 0 | 1 | 0.046512 | false | 0 | 0.069767 | 0 | 0.162791 | 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 |
20ef0b8bd24f74503c325e23328f16c95000b246 | 576 | py | Python | test/fixture_subject.py | dan-win/fairways_py | 771623c6f9ec40e8016b5cebb7951613d01e31f7 | [
"Apache-2.0"
] | null | null | null | test/fixture_subject.py | dan-win/fairways_py | 771623c6f9ec40e8016b5cebb7951613d01e31f7 | [
"Apache-2.0"
] | null | null | null | test/fixture_subject.py | dan-win/fairways_py | 771623c6f9ec40e8016b5cebb7951613d01e31f7 | [
"Apache-2.0"
] | null | null | null | """
Sample with QueriesSet and QA entrypoint.
Used for test_fixture_template.py
"""
from fairways.io.generic import (QueriesSet, SqlQuery)
from fairways import decorators
from fairways.decorators import entities
@decorators.connection.define()
class TestDb(QueriesSet):
QUERY1 = SqlQuery(
"select * from t1... | 22.153846 | 54 | 0.722222 | 74 | 576 | 5.527027 | 0.608108 | 0.08802 | 0.05379 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006263 | 0.168403 | 576 | 25 | 55 | 23.04 | 0.847599 | 0.130208 | 0 | 0 | 0 | 0 | 0.052846 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.1875 | 0.125 | 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 | 1 | 0 | 0 | 0 | 1 |
20f1854826475166ae6d2a529db1b5892beab8ab | 2,240 | py | Python | mysite/manager/views_v1_2.py | LeonardoMorales-coder/oxigeno.cc | d028029928035887c11dc4c1da0f5bd7a64a8483 | [
"MIT"
] | null | null | null | mysite/manager/views_v1_2.py | LeonardoMorales-coder/oxigeno.cc | d028029928035887c11dc4c1da0f5bd7a64a8483 | [
"MIT"
] | null | null | null | mysite/manager/views_v1_2.py | LeonardoMorales-coder/oxigeno.cc | d028029928035887c11dc4c1da0f5bd7a64a8483 | [
"MIT"
] | null | null | null | from django.contrib.auth import authenticate, login, logout
from django.http import JsonResponse
from django.contrib.auth.decorators import login_required
from django.views.decorators.csrf import csrf_exempt
from oxigeno.models import Distribuidor
@csrf_exempt
def manager_login(request):
if request.method == 'POS... | 37.966102 | 108 | 0.691518 | 233 | 2,240 | 6.55794 | 0.407725 | 0.026178 | 0.049084 | 0.027487 | 0.032723 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002798 | 0.202232 | 2,240 | 58 | 109 | 38.62069 | 0.852266 | 0 | 0 | 0.083333 | 0 | 0 | 0.237946 | 0.082589 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0.0625 | 0.104167 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
20f3f970e9eacfdadf5402568a5f1763e368eaf9 | 2,203 | py | Python | beluga/helpers.py | dHannasch/beluga | 519e1ca2a43a86bc47737c45484288b2bacc1338 | [
"MIT"
] | null | null | null | beluga/helpers.py | dHannasch/beluga | 519e1ca2a43a86bc47737c45484288b2bacc1338 | [
"MIT"
] | null | null | null | beluga/helpers.py | dHannasch/beluga | 519e1ca2a43a86bc47737c45484288b2bacc1338 | [
"MIT"
] | null | null | null | import os
import sys
import logging
def root():
"""Returns beluga installation path."""
return os.path.dirname(__file__)
def init_logging(logging_level, display_level, logfile):
"""Initializes the logging system"""
# Define custom formatter class that formats messages based on level
# Ref: http:... | 34.968254 | 118 | 0.658647 | 262 | 2,203 | 5.446565 | 0.40458 | 0.058865 | 0.035739 | 0.037842 | 0.20883 | 0.20883 | 0.175193 | 0.064471 | 0.064471 | 0.064471 | 0 | 0.01021 | 0.244212 | 2,203 | 62 | 119 | 35.532258 | 0.846847 | 0.325919 | 0 | 0.0625 | 0 | 0.0625 | 0.129032 | 0.074811 | 0 | 0 | 0 | 0.016129 | 0 | 1 | 0.09375 | false | 0 | 0.09375 | 0 | 0.3125 | 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 |
454bbe810bb0c4c5bebb9a09c6c417d31ebdeebb | 4,836 | py | Python | rooms/models.py | alstn2468/Django_Airbnb_Clone | eeb61e4a36320a0b269d96f47cc6755dbc4c40f8 | [
"MIT"
] | 5 | 2019-11-26T00:34:24.000Z | 2021-01-04T06:04:48.000Z | rooms/models.py | alstn2468/Django_Airbnb_Clone | eeb61e4a36320a0b269d96f47cc6755dbc4c40f8 | [
"MIT"
] | 3 | 2021-06-09T19:05:40.000Z | 2021-09-08T01:49:01.000Z | rooms/models.py | alstn2468/Django_Airbnb_Clone | eeb61e4a36320a0b269d96f47cc6755dbc4c40f8 | [
"MIT"
] | 6 | 2019-11-24T11:47:09.000Z | 2021-08-16T20:21:35.000Z | from django.db import models
from django.urls import reverse
from django_countries.fields import CountryField
from core.models import AbstractTimeStamp
class AbstractItem(AbstractTimeStamp):
"""Abstract Item Model
Inherit:
AbstractTimeStamp
Fields:
name : CharField
... | 25.319372 | 88 | 0.591605 | 478 | 4,836 | 5.8159 | 0.267782 | 0.030216 | 0.032374 | 0.043165 | 0.294245 | 0.211151 | 0.155036 | 0.103237 | 0.067266 | 0.067266 | 0 | 0.006728 | 0.323821 | 4,836 | 190 | 89 | 25.452632 | 0.843425 | 0.313275 | 0 | 0.133333 | 0 | 0 | 0.049226 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.106667 | false | 0 | 0.053333 | 0.053333 | 0.733333 | 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 |
454bec157dda567b20fa093a912cf2ca2019b964 | 496 | py | Python | source/pkgsrc/chat/gajim/patches/patch-setup.py | Scottx86-64/dotfiles-1 | 51004b1e2b032664cce6b553d2052757c286087d | [
"Unlicense"
] | 1 | 2021-11-20T22:46:39.000Z | 2021-11-20T22:46:39.000Z | source/pkgsrc/chat/gajim/patches/patch-setup.py | Scottx86-64/dotfiles-1 | 51004b1e2b032664cce6b553d2052757c286087d | [
"Unlicense"
] | null | null | null | source/pkgsrc/chat/gajim/patches/patch-setup.py | Scottx86-64/dotfiles-1 | 51004b1e2b032664cce6b553d2052757c286087d | [
"Unlicense"
] | null | null | null | $NetBSD: patch-setup.py,v 1.4 2021/08/10 12:03:37 nia Exp $
Fix man page install location.
--- setup.py.orig 2021-04-24 11:27:40.000000000 +0000
+++ setup.py
@@ -109,7 +109,7 @@ def build_man(build_cmd):
def install_man(install_cmd):
data_files = install_cmd.distribution.data_files
man_dir = build_dir / 'm... | 31 | 59 | 0.657258 | 84 | 496 | 3.72619 | 0.595238 | 0.067093 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130864 | 0.183468 | 496 | 15 | 60 | 33.066667 | 0.641975 | 0 | 0 | 0 | 0 | 0 | 0.066532 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
454eb53969e694b2b588e6498b847b5101970667 | 18,414 | py | Python | openmdao.util/src/openmdao/util/dep.py | swryan/OpenMDAO-Framework | f50d60e1a8cadac7fe03d26ffad5fb660b2a15ec | [
"Apache-2.0"
] | null | null | null | openmdao.util/src/openmdao/util/dep.py | swryan/OpenMDAO-Framework | f50d60e1a8cadac7fe03d26ffad5fb660b2a15ec | [
"Apache-2.0"
] | null | null | null | openmdao.util/src/openmdao/util/dep.py | swryan/OpenMDAO-Framework | f50d60e1a8cadac7fe03d26ffad5fb660b2a15ec | [
"Apache-2.0"
] | null | null | null | """
Routines analyzing dependencies (class and module) in Python source.
"""
import os
import sys
import ast
import time
import __builtin__
import cPickle
import networkx as nx
from openmdao.util.fileutil import find_files, get_module_path, find_module
from openmdao.util.log import logger
# This is a dict containin... | 38.766316 | 96 | 0.556316 | 1,983 | 18,414 | 5.062532 | 0.210792 | 0.008965 | 0.017532 | 0.004981 | 0.107282 | 0.058074 | 0.042036 | 0.026098 | 0.026098 | 0.009961 | 0 | 0.001893 | 0.340176 | 18,414 | 474 | 97 | 38.848101 | 0.824362 | 0.069078 | 0 | 0.166667 | 0 | 0 | 0.090421 | 0.009866 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.040984 | null | null | 0.002732 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
45504cf90e456310aaaf3181ddbc12619f39addc | 1,246 | py | Python | tests/sentry/analytics/test_base.py | AlexWayfer/sentry | ef935cda2b2e960bd602fda590540882d1b0712d | [
"BSD-3-Clause"
] | 4 | 2019-05-27T13:55:07.000Z | 2021-03-30T07:05:09.000Z | tests/sentry/analytics/test_base.py | AlexWayfer/sentry | ef935cda2b2e960bd602fda590540882d1b0712d | [
"BSD-3-Clause"
] | 196 | 2019-06-10T08:34:10.000Z | 2022-02-22T01:26:13.000Z | tests/sentry/analytics/test_base.py | AlexWayfer/sentry | ef935cda2b2e960bd602fda590540882d1b0712d | [
"BSD-3-Clause"
] | 2 | 2021-01-26T09:53:39.000Z | 2022-03-22T09:01:47.000Z | from __future__ import absolute_import
from sentry.analytics import Analytics
from sentry.testutils import TestCase
class DummyAnalytics(Analytics):
def __init__(self):
self.events = []
super(DummyAnalytics, self).__init__()
def record_event(self, event):
self.events.append(event)
... | 32.789474 | 73 | 0.67175 | 134 | 1,246 | 6.074627 | 0.283582 | 0.094595 | 0.055283 | 0.063882 | 0.604423 | 0.604423 | 0.604423 | 0.604423 | 0.604423 | 0.604423 | 0 | 0.006211 | 0.224719 | 1,246 | 37 | 74 | 33.675676 | 0.836439 | 0 | 0 | 0.466667 | 0 | 0 | 0.08427 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.133333 | false | 0 | 0.1 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4555854adf944a13de410ac6276911ac6d1dd55c | 662 | py | Python | Algorithms/2_Implementation/22.py | abphilip-codes/Hackerrank_DSA | bb9e233d9d45c5b14c138830602695ad4113fba4 | [
"MIT"
] | 1 | 2021-11-25T13:39:30.000Z | 2021-11-25T13:39:30.000Z | Algorithms/2_Implementation/22.py | abphilip-codes/Hackerrank_DSA | bb9e233d9d45c5b14c138830602695ad4113fba4 | [
"MIT"
] | null | null | null | Algorithms/2_Implementation/22.py | abphilip-codes/Hackerrank_DSA | bb9e233d9d45c5b14c138830602695ad4113fba4 | [
"MIT"
] | null | null | null | # https://www.hackerrank.com/challenges/designer-pdf-viewer/problem
#!/bin/python3
import math
import os
import random
import re
import sys
#
# Complete the 'designerPdfViewer' function below.
#
# The function is expected to return an INTEGER.
# The function accepts following parameters:
# 1. INTEGER_ARRAY h
# 2. ... | 19.470588 | 67 | 0.681269 | 92 | 662 | 4.793478 | 0.706522 | 0.049887 | 0.099773 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009158 | 0.175227 | 662 | 34 | 68 | 19.470588 | 0.798535 | 0.382175 | 0 | 0 | 0 | 0 | 0.055138 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.357143 | 0.071429 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
455c5403eef8718fb6559044b4970c598da1ae66 | 277 | py | Python | tests/test_delete_subgraph.py | AlirezaRoshanzamir/cypher-subgraph | b97d7faf871ecce55ffa6bc51256ea754357b109 | [
"MIT"
] | 1 | 2022-03-11T19:42:58.000Z | 2022-03-11T19:42:58.000Z | tests/test_delete_subgraph.py | AlirezaRoshanzamir/cypher-subgraph | b97d7faf871ecce55ffa6bc51256ea754357b109 | [
"MIT"
] | null | null | null | tests/test_delete_subgraph.py | AlirezaRoshanzamir/cypher-subgraph | b97d7faf871ecce55ffa6bc51256ea754357b109 | [
"MIT"
] | null | null | null | from cypher_subgraph import delete_subgraph
def test_delete_subgraph() -> None:
# Arrange
subgraph_id = "id"
# Act
query = delete_subgraph(subgraph_id)
# Assert
assert query == \
"MATCH (v) OPTIONAL MATCH (v)-[e]-() REMOVE v.id REMOVE e.id"
| 19.785714 | 69 | 0.638989 | 36 | 277 | 4.722222 | 0.5 | 0.247059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.249097 | 277 | 13 | 70 | 21.307692 | 0.817308 | 0.064982 | 0 | 0 | 0 | 0 | 0.239216 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.333333 | 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 |
455e0a53b4eab1127262e99a1c056536a67f6962 | 852 | py | Python | backend/tournesol/migrations/0013_add_tag_model.py | iamnkc/tournesol | 4a09985f494577917c357783a37dfae02c57fd82 | [
"CC0-1.0"
] | null | null | null | backend/tournesol/migrations/0013_add_tag_model.py | iamnkc/tournesol | 4a09985f494577917c357783a37dfae02c57fd82 | [
"CC0-1.0"
] | null | null | null | backend/tournesol/migrations/0013_add_tag_model.py | iamnkc/tournesol | 4a09985f494577917c357783a37dfae02c57fd82 | [
"CC0-1.0"
] | null | null | null | # Generated by Django 3.2.6 on 2021-11-11 17:30
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('tournesol', '0012_auto_20211021_0922'),
]
operations = [
migrations.CreateModel(
name='Tag',
fields=[
... | 28.4 | 117 | 0.546948 | 85 | 852 | 5.341176 | 0.670588 | 0.072687 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058925 | 0.32277 | 852 | 29 | 118 | 29.37931 | 0.727903 | 0.052817 | 0 | 0.086957 | 1 | 0 | 0.146584 | 0.028571 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.043478 | 0 | 0.173913 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4563bb393cf40fd6db01483531df13ba5fee68e0 | 7,251 | py | Python | CT_correlation.py | tumm1944/CT_correlation | 11c1618a7f1cf1c6d738eefe552947456e00480f | [
"MIT"
] | null | null | null | CT_correlation.py | tumm1944/CT_correlation | 11c1618a7f1cf1c6d738eefe552947456e00480f | [
"MIT"
] | null | null | null | CT_correlation.py | tumm1944/CT_correlation | 11c1618a7f1cf1c6d738eefe552947456e00480f | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# Filename: distribution_plot.py
#
import os, sys
import numpy as np
import glob
import matplotlib.pyplot as plt
import matplotlib.mlab as mlab
from sklearn import linear_model
import scipy.stats as scs
from scipy.stats import kurtosis
import statsmodels.sandbox.distributions.extras as extras
impo... | 34.860577 | 122 | 0.653979 | 1,196 | 7,251 | 3.826087 | 0.237458 | 0.008304 | 0.019231 | 0.028409 | 0.225743 | 0.186626 | 0.112325 | 0.073427 | 0.073427 | 0.045017 | 0 | 0.047061 | 0.164805 | 7,251 | 207 | 123 | 35.028986 | 0.708554 | 0.293339 | 0 | 0.054688 | 0 | 0 | 0.074549 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.117188 | null | null | 0.09375 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
45679ae02e8e42a2b1692ea9bc47d37da6f1faab | 388 | py | Python | awwards/migrations/0003_profile_contact.py | Akumucollins/-Awwards | 5b40c92f6d948e6bfcd5b7e42eacce94ca158eb2 | [
"MIT"
] | null | null | null | awwards/migrations/0003_profile_contact.py | Akumucollins/-Awwards | 5b40c92f6d948e6bfcd5b7e42eacce94ca158eb2 | [
"MIT"
] | null | null | null | awwards/migrations/0003_profile_contact.py | Akumucollins/-Awwards | 5b40c92f6d948e6bfcd5b7e42eacce94ca158eb2 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.2 on 2020-10-25 18:56
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('awwards', '0002_location_project_tags'),
]
operations = [
migrations.AddField(
model_name='profile',
name='contact',... | 20.421053 | 50 | 0.600515 | 41 | 388 | 5.585366 | 0.853659 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072202 | 0.286082 | 388 | 18 | 51 | 21.555556 | 0.754513 | 0.115979 | 0 | 0 | 1 | 0 | 0.13783 | 0.076246 | 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 |
456c125e676c23c3219a06b6ae7c46ff2159393f | 408 | py | Python | tango_app/migrations/0003_alter_user_role_dt_end_role.py | lucaslimafernandes/Tango | 004c4e025d73232e7e83a1a8cb872b95bb91eab7 | [
"MIT"
] | null | null | null | tango_app/migrations/0003_alter_user_role_dt_end_role.py | lucaslimafernandes/Tango | 004c4e025d73232e7e83a1a8cb872b95bb91eab7 | [
"MIT"
] | null | null | null | tango_app/migrations/0003_alter_user_role_dt_end_role.py | lucaslimafernandes/Tango | 004c4e025d73232e7e83a1a8cb872b95bb91eab7 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.8 on 2021-11-25 17:28
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('tango_app', '0002_auto_20211125_1419'),
]
operations = [
migrations.AlterField(
model_name='user_role',
name='dt_end... | 21.473684 | 62 | 0.612745 | 47 | 408 | 5.148936 | 0.829787 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.10473 | 0.27451 | 408 | 18 | 63 | 22.666667 | 0.712838 | 0.110294 | 0 | 0 | 1 | 0 | 0.144044 | 0.063712 | 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 |
456fd0b6508fbf7bfbb291f71d406af80c375666 | 2,247 | py | Python | venv/lib/python2.7/site-packages/tls_parser/heartbeat_protocol.py | sravani-m/Web-Application-Security-Framework | d9f71538f5cba6fe1d8eabcb26c557565472f6a6 | [
"MIT"
] | 3 | 2019-04-09T22:59:33.000Z | 2019-06-14T09:23:24.000Z | venv/lib/python2.7/site-packages/tls_parser/heartbeat_protocol.py | sravani-m/Web-Application-Security-Framework | d9f71538f5cba6fe1d8eabcb26c557565472f6a6 | [
"MIT"
] | null | null | null | venv/lib/python2.7/site-packages/tls_parser/heartbeat_protocol.py | sravani-m/Web-Application-Security-Framework | d9f71538f5cba6fe1d8eabcb26c557565472f6a6 | [
"MIT"
] | null | null | null | from __future__ import absolute_import
from __future__ import print_function
import struct
from enum import IntEnum
from tls_parser.record_protocol import TlsSubprotocolMessage, TlsRecord, TlsRecordHeader, TlsRecordTypeByte
from tls_parser.tls_version import TlsVersionEnum
from typing import Tuple
class Tl... | 34.569231 | 108 | 0.687138 | 215 | 2,247 | 6.953488 | 0.353488 | 0.034783 | 0.03612 | 0.030769 | 0.064214 | 0.064214 | 0.064214 | 0.064214 | 0.064214 | 0.064214 | 0 | 0.008111 | 0.231865 | 2,247 | 65 | 109 | 34.569231 | 0.858053 | 0.265243 | 0 | 0.205882 | 0 | 0 | 0.001943 | 0 | 0 | 0 | 0.005181 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.205882 | 0 | 0.588235 | 0.029412 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
4575919e66ddaee3e5346e5de26cc677a5de0083 | 6,276 | py | Python | fm-doc/fm_doc/parseEventYaml.py | starlingx-staging/stx-fault | 6cd8940170c1799f9aa2fd05a38b84de0e7d87b3 | [
"Apache-2.0"
] | null | null | null | fm-doc/fm_doc/parseEventYaml.py | starlingx-staging/stx-fault | 6cd8940170c1799f9aa2fd05a38b84de0e7d87b3 | [
"Apache-2.0"
] | null | null | null | fm-doc/fm_doc/parseEventYaml.py | starlingx-staging/stx-fault | 6cd8940170c1799f9aa2fd05a38b84de0e7d87b3 | [
"Apache-2.0"
] | 1 | 2019-03-04T22:41:38.000Z | 2019-03-04T22:41:38.000Z | #
# Copyright (c) 2016 Wind River Systems, Inc.
#
# SPDX-License-Identifier: Apache-2.0
#
import sys
import os
import yaml
import constants
# Record Format (for full description see events.yaml)
#
# 100.001:
# Type: Alarm
# Description: "Degrade: <hostname> is experiencing an intermittent 'Management Network'... | 31.857868 | 115 | 0.684194 | 655 | 6,276 | 6.392366 | 0.235115 | 0.01433 | 0.021017 | 0.022928 | 0.302603 | 0.269405 | 0.269405 | 0.257941 | 0.232864 | 0.232864 | 0 | 0.00454 | 0.227852 | 6,276 | 196 | 116 | 32.020408 | 0.859472 | 0.119662 | 0 | 0.28125 | 0 | 0 | 0.143429 | 0.009283 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.03125 | null | null | 0.148438 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
45789ab1b06cf6e52eeeb65747a52e258ae4781f | 4,735 | py | Python | scripts/controller_node.py | Seba-san/pioneer2dx | 2c609d05080f05f0ce1db57d8383e5118ea8b88b | [
"MIT"
] | null | null | null | scripts/controller_node.py | Seba-san/pioneer2dx | 2c609d05080f05f0ce1db57d8383e5118ea8b88b | [
"MIT"
] | null | null | null | scripts/controller_node.py | Seba-san/pioneer2dx | 2c609d05080f05f0ce1db57d8383e5118ea8b88b | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import rospy
from geometry_msgs.msg import Twist
#from std_msgs.msg import String
import threading
import sys, select, termios, tty # Esto es para leer el teclado
import os
from gazebo_msgs.srv import SetModelState, DeleteModel
from gazebo_msgs.msg import ModelState
from controller_manager_msgs.s... | 32.881944 | 125 | 0.640338 | 548 | 4,735 | 5.399635 | 0.359489 | 0.048665 | 0.017574 | 0.025684 | 0.081108 | 0.024333 | 0 | 0 | 0 | 0 | 0 | 0.011742 | 0.244562 | 4,735 | 143 | 126 | 33.111888 | 0.815488 | 0.110032 | 0 | 0.067308 | 0 | 0 | 0.134033 | 0.057373 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.009615 | 0.076923 | null | null | 0.057692 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
457c9b3ffbd8138c8afbe87ef2e3cbfe673a4f1d | 3,088 | py | Python | multithreading.py | rodrickcalvin/Musical-note-identifier-Chromatic-tuner | 3984a766cf5aeb91e08a95f40cd30346077fbdc6 | [
"MIT"
] | 3 | 2021-04-20T12:23:28.000Z | 2021-06-07T04:15:00.000Z | multithreading.py | rodrickcalvin/Musical-note-identifier-Chromatic-tuner | 3984a766cf5aeb91e08a95f40cd30346077fbdc6 | [
"MIT"
] | null | null | null | multithreading.py | rodrickcalvin/Musical-note-identifier-Chromatic-tuner | 3984a766cf5aeb91e08a95f40cd30346077fbdc6 | [
"MIT"
] | 2 | 2021-04-20T12:23:31.000Z | 2021-06-06T17:10:01.000Z | import traceback, sys, time, os
import pyaudio
from PyQt5.QtGui import *
from PyQt5.QtWidgets import *
from PyQt5.QtCore import *
from GUI import *
class Worker(QRunnable):
@pyqtSlot()
def __init__(self):
super().__init__()
from xAudioControl import xAudio
self.xAudio = xAudio()
... | 33.204301 | 152 | 0.659003 | 326 | 3,088 | 6.095092 | 0.352761 | 0.045294 | 0.030196 | 0.042275 | 0.217413 | 0.122798 | 0.116759 | 0 | 0 | 0 | 0 | 0.020219 | 0.231218 | 3,088 | 93 | 153 | 33.204301 | 0.816765 | 0.050842 | 0 | 0.054795 | 0 | 0 | 0.02565 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.205479 | false | 0 | 0.09589 | 0 | 0.342466 | 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 |
4581b84c09ad36311193e710586f1ffc93b639b7 | 10,920 | py | Python | kotti/tests/test_tags.py | mete0r/Kotti | e89103cc57d5d2af8d60eb8208ae9d04c068f6e7 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | kotti/tests/test_tags.py | mete0r/Kotti | e89103cc57d5d2af8d60eb8208ae9d04c068f6e7 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | kotti/tests/test_tags.py | mete0r/Kotti | e89103cc57d5d2af8d60eb8208ae9d04c068f6e7 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | import colander
from mock import Mock
from kotti.testing import DummyRequest
class DummyContext(object):
view_name = u'view_name'
tags = [u'tag 1', u'tag 2', u'tag 3']
class TestTags:
def test_empty(self, root):
assert root.tags == []
def test_tags(self, db_session):
from kotti.res... | 41.363636 | 80 | 0.619414 | 1,539 | 10,920 | 4.238467 | 0.096816 | 0.083397 | 0.062088 | 0.059788 | 0.769891 | 0.720987 | 0.695539 | 0.639736 | 0.589299 | 0.563851 | 0 | 0.020288 | 0.237179 | 10,920 | 263 | 81 | 41.520913 | 0.762785 | 0.046886 | 0 | 0.504951 | 0 | 0 | 0.133346 | 0 | 0 | 0 | 0 | 0 | 0.321782 | 1 | 0.10396 | false | 0 | 0.10396 | 0 | 0.237624 | 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 |
45838ef2eaad7df9a781abd7feb2c8a1e7e70ae8 | 1,351 | py | Python | setup.py | belsonheng/snowypushy | 27ce9ee356b22683372bd37a12504c0cf314b4dd | [
"MIT"
] | null | null | null | setup.py | belsonheng/snowypushy | 27ce9ee356b22683372bd37a12504c0cf314b4dd | [
"MIT"
] | null | null | null | setup.py | belsonheng/snowypushy | 27ce9ee356b22683372bd37a12504c0cf314b4dd | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
def readme():
with open('README.md') as f:
return f.read()
# python setup.py sdist bdist_wheel
setup(
name='snowypushy',
packages=find_packages(),
version='0.4.3',
description='Snowy helps us download and upload data across various data sources (... | 30.704545 | 131 | 0.601036 | 172 | 1,351 | 4.645349 | 0.639535 | 0.030038 | 0.035044 | 0.042553 | 0.092616 | 0.092616 | 0 | 0 | 0 | 0 | 0 | 0.044231 | 0.2302 | 1,351 | 43 | 132 | 31.418605 | 0.724038 | 0.024426 | 0 | 0 | 0 | 0.05 | 0.480243 | 0.037234 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025 | true | 0 | 0.025 | 0 | 0.075 | 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 |
4583acc3fdb47a14519f74721ed9d9f8419d917a | 788 | py | Python | Students/pooja_flask/day4_task/app.py | Throttlerz-devs/flask-tutorial | 09e1ad364c73ffba4e698592219d448865c6b31a | [
"MIT"
] | 7 | 2021-09-03T12:18:52.000Z | 2021-09-07T09:53:14.000Z | Students/pooja_flask/day4_task/app.py | Throttlerz-devs/flask-tutorial | 09e1ad364c73ffba4e698592219d448865c6b31a | [
"MIT"
] | 4 | 2021-09-04T09:00:11.000Z | 2021-09-22T07:26:17.000Z | Students/pooja_flask/day4_task/app.py | Throttlerz-devs/flask-tutorial | 09e1ad364c73ffba4e698592219d448865c6b31a | [
"MIT"
] | 6 | 2021-09-03T14:37:33.000Z | 2021-09-03T21:46:25.000Z | from flask import Flask, render_template, redirect, request
app = Flask(__name__)
@app.route('/')
def home():
return render_template('index.html')
@app.route('/process', methods=['GET', "POST"])
def process():
if request.method == "POST":
get_name = request.form.get("input_name")
age = reque... | 28.142857 | 92 | 0.658629 | 106 | 788 | 4.688679 | 0.339623 | 0.088531 | 0.112676 | 0.152918 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.158629 | 788 | 28 | 93 | 28.142857 | 0.749623 | 0 | 0 | 0 | 0 | 0 | 0.245881 | 0.126743 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0 | 0.052632 | 0.105263 | 0.421053 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
4586dff437f36a158733babdd4dab6ef299cd327 | 1,091 | py | Python | app/blueprint/handlers.py | marcosricardoss/flask-restful-skeleton | 59792c25189d2b3ee7a09d5167ced7835ce1819b | [
"Unlicense",
"MIT"
] | 10 | 2019-06-26T02:14:44.000Z | 2022-03-29T12:55:21.000Z | app/blueprint/handlers.py | marcosricardoss/flask-docker-boilerplate | 5f0fead79e2c38e7231d8570ce64389620940a20 | [
"MIT"
] | 3 | 2019-12-26T17:28:44.000Z | 2020-03-10T19:35:07.000Z | app/blueprint/handlers.py | marcosricardoss/flask-docker-boilerplate | 5f0fead79e2c38e7231d8570ce64389620940a20 | [
"MIT"
] | 4 | 2020-04-23T06:30:18.000Z | 2021-12-07T18:07:39.000Z | """This module registers the error handler on the application."""
from flask import make_response, jsonify
def register_handler(app):
"""Registers the error handler is a function to common error HTTP codes
Parameters:
app (flask.app.Flask): The application instance.
"""
@app.errorhandl... | 24.795455 | 82 | 0.591201 | 111 | 1,091 | 5.756757 | 0.414414 | 0.056338 | 0.089202 | 0.075117 | 0.228482 | 0.228482 | 0.228482 | 0.228482 | 0.228482 | 0.228482 | 0 | 0.015979 | 0.311641 | 1,091 | 44 | 83 | 24.795455 | 0.834887 | 0.47846 | 0 | 0.142857 | 0 | 0 | 0.121413 | 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 |
458805d79b3e77489fcaf5eb5979c04265645375 | 1,823 | py | Python | edge.py | hanhet/simple-request | e3e4ec0c2551e6e68750f124bb7a314a5ccfdcab | [
"Apache-2.0"
] | null | null | null | edge.py | hanhet/simple-request | e3e4ec0c2551e6e68750f124bb7a314a5ccfdcab | [
"Apache-2.0"
] | null | null | null | edge.py | hanhet/simple-request | e3e4ec0c2551e6e68750f124bb7a314a5ccfdcab | [
"Apache-2.0"
] | null | null | null | import sys, os, time, signal
import json
import base64
import paho.mqtt.client as mqtt
reload(sys)
sys.setdefaultencoding('utf-8')
client = None
mqtt_looping = False
topic = 'hanhet/simple-request'
compose_file = 'rcvtest.yml'
client_id = ""
username = ""
password = ""
def on_connect(mq, userdata, rc, _):
#subsc... | 22.231707 | 56 | 0.641799 | 241 | 1,823 | 4.697095 | 0.427386 | 0.063604 | 0.047703 | 0.033569 | 0.04417 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01363 | 0.235326 | 1,823 | 81 | 57 | 22.506173 | 0.798422 | 0.146462 | 0 | 0.142857 | 0 | 0 | 0.098318 | 0.013583 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.035714 | 0.071429 | null | null | 0.089286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
45888d2fc9d24b15b1a30fadc9b6d082f4c49100 | 502 | py | Python | setup.py | ecnumjc/python-sie | ba71de3a393c006d1a86eb43f273cdbc2e04e90d | [
"MIT"
] | 2 | 2020-12-23T02:54:16.000Z | 2021-04-02T02:41:47.000Z | setup.py | ecnumjc/python-sie | ba71de3a393c006d1a86eb43f273cdbc2e04e90d | [
"MIT"
] | null | null | null | setup.py | ecnumjc/python-sie | ba71de3a393c006d1a86eb43f273cdbc2e04e90d | [
"MIT"
] | null | null | null | from distutils.core import setup
from setuptools import find_packages
setup(
name="sie",
version="0.1.0",
author="Ashkon Farhangi",
author_email="ashkon.f@gmail.com",
packages=find_packages(),
include_package_data=True,
url="https://github.com/ashkonf/python-sie",
license="LICENSE",
... | 33.466667 | 182 | 0.743028 | 67 | 502 | 5.492537 | 0.776119 | 0.065217 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007109 | 0.159363 | 502 | 14 | 183 | 35.857143 | 0.864929 | 0 | 0 | 0 | 0 | 0.076923 | 0.496016 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.153846 | 0 | 0.153846 | 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 |
458b12b0112bf297b798c3ffe0fa6598588fa27e | 3,113 | py | Python | deploy.py | Stanford-PERTS/gae_server | d6c8caecc6a97523945255e1271d8ae04913136a | [
"CC0-1.0"
] | null | null | null | deploy.py | Stanford-PERTS/gae_server | d6c8caecc6a97523945255e1271d8ae04913136a | [
"CC0-1.0"
] | null | null | null | deploy.py | Stanford-PERTS/gae_server | d6c8caecc6a97523945255e1271d8ae04913136a | [
"CC0-1.0"
] | null | null | null | #!/usr/bin/env python
"""Deploy this project directly to App Engine from the local filesystem.
## DANGER!!
This will put your files, exactly as they exist on your hard drive, into a
deployed environment. BE SURE you understand how ALL the following will
influence the result:
* git status: clean? working or untracke... | 33.117021 | 83 | 0.702859 | 467 | 3,113 | 4.61242 | 0.473233 | 0.019499 | 0.013928 | 0.017642 | 0.059424 | 0.059424 | 0.025998 | 0.025998 | 0.025998 | 0 | 0 | 0.003189 | 0.194025 | 3,113 | 93 | 84 | 33.473118 | 0.855321 | 0.087376 | 0 | 0.088889 | 0 | 0 | 0.306752 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.133333 | null | null | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
459775c47a8cd4ccdeaa4e89a2b25fef203cfe3d | 625 | py | Python | RunThis_1_2_3_in_one.py | alexeskinasy/BigQueryToTableauExtractor | 5ef89990f63960239a92324c37e08f9d234ebf3b | [
"MIT"
] | 2 | 2020-02-19T09:24:28.000Z | 2020-11-10T21:25:37.000Z | RunThis_1_2_3_in_one.py | alexeskinasy/BigQueryToTableauExtractor | 5ef89990f63960239a92324c37e08f9d234ebf3b | [
"MIT"
] | null | null | null | RunThis_1_2_3_in_one.py | alexeskinasy/BigQueryToTableauExtractor | 5ef89990f63960239a92324c37e08f9d234ebf3b | [
"MIT"
] | null | null | null | import os
from timeit import default_timer as timer
# Export data from Big Query to Bucket
start = timer()
os.system("python 1_export_data.py")
end = timer()
print("Timer: " + str(round((end-start)/60,3)) + " minutes")
# Download data from Google Bucket to local drive
start = timer()
os.system("python 2_download_buck... | 34.722222 | 174 | 0.7424 | 95 | 625 | 4.684211 | 0.536842 | 0.053933 | 0.094382 | 0.080899 | 0.314607 | 0.206742 | 0.206742 | 0.206742 | 0.206742 | 0.206742 | 0 | 0.016334 | 0.1184 | 625 | 17 | 175 | 36.764706 | 0.791289 | 0.1952 | 0 | 0.545455 | 0 | 0.090909 | 0.420842 | 0.246493 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.090909 | 0.181818 | 0 | 0.181818 | 0.181818 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
45998e9ed6317eb5deb39309e0d8861bc8ac9bd9 | 1,571 | py | Python | src/users/models/microsoftgraphoutlook_task_group.py | peombwa/Sample-Graph-Python-Client | 3396f531fbe6bb40a740767c4e31aee95a3b932e | [
"MIT"
] | null | null | null | src/users/models/microsoftgraphoutlook_task_group.py | peombwa/Sample-Graph-Python-Client | 3396f531fbe6bb40a740767c4e31aee95a3b932e | [
"MIT"
] | null | null | null | src/users/models/microsoftgraphoutlook_task_group.py | peombwa/Sample-Graph-Python-Client | 3396f531fbe6bb40a740767c4e31aee95a3b932e | [
"MIT"
] | null | null | null | # coding=utf-8
# --------------------------------------------------------------------------
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from ... | 34.911111 | 118 | 0.586887 | 166 | 1,571 | 5.313253 | 0.343373 | 0.063492 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000792 | 0.19669 | 1,571 | 44 | 119 | 35.704545 | 0.698098 | 0.392107 | 0 | 0 | 1 | 0 | 0.215488 | 0.037037 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.055556 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
459c9f82693adf1ab62deed50f9dd88db30cb411 | 29,046 | py | Python | wx_formbuilder_gui/wx_gui.py | Reubenls/hs-logger | 63d9ea931d3558f9239141ffe7bc335e74984c75 | [
"MIT"
] | null | null | null | wx_formbuilder_gui/wx_gui.py | Reubenls/hs-logger | 63d9ea931d3558f9239141ffe7bc335e74984c75 | [
"MIT"
] | null | null | null | wx_formbuilder_gui/wx_gui.py | Reubenls/hs-logger | 63d9ea931d3558f9239141ffe7bc335e74984c75 | [
"MIT"
] | 3 | 2020-05-13T23:04:09.000Z | 2021-07-06T02:24:43.000Z | # -*- coding: utf-8 -*-
###########################################################################
## Python code generated with wxFormBuilder (version Jan 23 2018)
## http://www.wxformbuilder.org/
##
## PLEASE DO *NOT* EDIT THIS FILE!
###########################################################################
impo... | 35.335766 | 182 | 0.682917 | 4,197 | 29,046 | 4.535621 | 0.076721 | 0.026791 | 0.028315 | 0.110317 | 0.681288 | 0.592141 | 0.479775 | 0.423198 | 0.341563 | 0.270488 | 0 | 0.037042 | 0.153274 | 29,046 | 821 | 183 | 35.378806 | 0.736968 | 0.028748 | 0 | 0.169492 | 1 | 0 | 0.019582 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086864 | false | 0.014831 | 0.006356 | 0 | 0.108051 | 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 |
459ea4caa2dff5450a8e071af81c6583818bf186 | 769 | py | Python | build/lib/racecar/algos/algorithm.py | c-matthews/racecar | e874172ec7cfd2c01ac4ebfad021fac7346286c8 | [
"MIT"
] | 7 | 2020-11-10T12:39:55.000Z | 2022-02-01T12:01:09.000Z | src/racecar/algos/algorithm.py | c-matthews/racecar | e874172ec7cfd2c01ac4ebfad021fac7346286c8 | [
"MIT"
] | null | null | null | src/racecar/algos/algorithm.py | c-matthews/racecar | e874172ec7cfd2c01ac4ebfad021fac7346286c8 | [
"MIT"
] | null | null | null | class Algorithm:
def __init__(self, np, ic, h, force, params):
self.np = np
self.h = h
self.sq2h = np.sqrt(2 * h)
self.sqh2 = np.sqrt(h / 2)
self.h2 = h / 2
self.force = force
self.acc = 0
fres = self.force(ic)
self.v, self.f, self.ff = (
... | 21.971429 | 49 | 0.444733 | 104 | 769 | 3.230769 | 0.336538 | 0.125 | 0.130952 | 0.071429 | 0.434524 | 0.434524 | 0.309524 | 0.309524 | 0.309524 | 0.309524 | 0 | 0.019651 | 0.404421 | 769 | 34 | 50 | 22.617647 | 0.713974 | 0 | 0 | 0.428571 | 0 | 0 | 0.041612 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.107143 | false | 0.071429 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
45a10c807e6d9517cfb4fd28736fc4593481fed3 | 1,971 | py | Python | liberaforms/utils/validators.py | tomberek/liberaforms | 5830acea9d456208ae612c6c548eb35c2d3c4106 | [
"MIT"
] | 3 | 2021-09-02T16:45:42.000Z | 2022-02-21T19:06:25.000Z | liberaforms/utils/validators.py | tomberek/liberaforms | 5830acea9d456208ae612c6c548eb35c2d3c4106 | [
"MIT"
] | 2 | 2021-08-17T04:13:10.000Z | 2021-09-14T22:48:21.000Z | liberaforms/utils/validators.py | tomberek/liberaforms | 5830acea9d456208ae612c6c548eb35c2d3c4106 | [
"MIT"
] | 1 | 2021-08-17T07:13:15.000Z | 2021-08-17T07:13:15.000Z | """
This file is part of LiberaForms.
# SPDX-FileCopyrightText: 2020 LiberaForms.org
# SPDX-License-Identifier: AGPL-3.0-or-later
"""
import os
import re, datetime, time, uuid
from email_validator import validate_email, EmailNotValidError
from passlib.hash import pbkdf2_sha256
from password_strength import PasswordPo... | 27.375 | 84 | 0.662608 | 266 | 1,971 | 4.781955 | 0.417293 | 0.019654 | 0.025157 | 0.021226 | 0.058176 | 0.058176 | 0.053459 | 0.053459 | 0.053459 | 0.053459 | 0 | 0.02729 | 0.219178 | 1,971 | 71 | 85 | 27.760563 | 0.79922 | 0.144089 | 0 | 0.207547 | 0 | 0.018868 | 0.074627 | 0.020299 | 0 | 0 | 0 | 0 | 0 | 1 | 0.150943 | false | 0.132075 | 0.113208 | 0.037736 | 0.490566 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
45a50c26e64d0129f634abcc88dac4ceb93d8b39 | 619 | py | Python | locations/admin.py | jdevera/pythoncanarias_web | 465e8b0a054726e29b1029f1dffe11f913e40bcc | [
"MIT"
] | 5 | 2018-08-14T14:59:38.000Z | 2020-06-14T14:56:21.000Z | locations/admin.py | jdevera/pythoncanarias_web | 465e8b0a054726e29b1029f1dffe11f913e40bcc | [
"MIT"
] | 189 | 2018-07-22T19:42:05.000Z | 2021-05-24T21:37:48.000Z | locations/admin.py | jdevera/pythoncanarias_web | 465e8b0a054726e29b1029f1dffe11f913e40bcc | [
"MIT"
] | 11 | 2018-07-30T16:11:40.000Z | 2020-10-18T20:40:53.000Z | from django.contrib import admin
from .models import Location, Venue
class LocationInline(admin.StackedInline):
model = Location
extra = 0
@admin.register(Venue)
class VenueAdmin(admin.ModelAdmin):
list_display = ('name', 'slug', 'locations')
prepopulated_fields = {'slug': ('name', ), }
inlines... | 23.807692 | 70 | 0.675283 | 67 | 619 | 6.164179 | 0.552239 | 0.048426 | 0.09201 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001957 | 0.174475 | 619 | 25 | 71 | 24.76 | 0.806262 | 0 | 0 | 0 | 0 | 0 | 0.100162 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.117647 | 0.058824 | 0.882353 | 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 |
45acd6e6c68dba6a7427358a1302d0d4b24762c7 | 1,760 | py | Python | synbiopython/lab_automation/tests/test_Well.py | JingWui/Test_mybinder | 8831c0285e3fe47cec6c1b01295f6ee3e667c914 | [
"MIT"
] | null | null | null | synbiopython/lab_automation/tests/test_Well.py | JingWui/Test_mybinder | 8831c0285e3fe47cec6c1b01295f6ee3e667c914 | [
"MIT"
] | null | null | null | synbiopython/lab_automation/tests/test_Well.py | JingWui/Test_mybinder | 8831c0285e3fe47cec6c1b01295f6ee3e667c914 | [
"MIT"
] | null | null | null | import pytest
import synbiopython.lab_automation as lab
from synbiopython.lab_automation.Picklist.Transfer import TransferError
from synbiopython.lab_automation.containers.Well import Well
plate = lab.Plate96()
well = plate.get_well_at_index(1)
def test_volume():
assert well.volume == 0
def test_iterate_sour... | 22.278481 | 71 | 0.682386 | 231 | 1,760 | 4.91342 | 0.285714 | 0.067841 | 0.066079 | 0.042291 | 0.2 | 0.152423 | 0.068722 | 0.068722 | 0.068722 | 0.068722 | 0 | 0.02626 | 0.199432 | 1,760 | 78 | 72 | 22.564103 | 0.779276 | 0.00625 | 0 | 0.176471 | 0 | 0 | 0.072165 | 0 | 0 | 0 | 0 | 0 | 0.215686 | 1 | 0.215686 | false | 0 | 0.078431 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
45affaa6d800f0d5ac3ed9fe59d0b2fd8c2d392a | 8,266 | py | Python | server/djangoapp/restapis.py | Provatiscus/agfzb-CloudAppDevelopment_Capstone | 770fa242d88ac68f7767ab881cc486fa2e620691 | [
"Apache-2.0"
] | null | null | null | server/djangoapp/restapis.py | Provatiscus/agfzb-CloudAppDevelopment_Capstone | 770fa242d88ac68f7767ab881cc486fa2e620691 | [
"Apache-2.0"
] | null | null | null | server/djangoapp/restapis.py | Provatiscus/agfzb-CloudAppDevelopment_Capstone | 770fa242d88ac68f7767ab881cc486fa2e620691 | [
"Apache-2.0"
] | null | null | null | import requests
import json
from .models import CarDealer, DealerReview
from requests.auth import HTTPBasicAuth
import random
# Create a `get_request` to make HTTP GET requests
# e.g., response = requests.get(url, params=params, headers={'Content-Type': 'application/json'},
# auth=... | 43.052083 | 154 | 0.621945 | 1,026 | 8,266 | 4.829435 | 0.14425 | 0.072654 | 0.026236 | 0.029062 | 0.686377 | 0.66115 | 0.640565 | 0.61998 | 0.61998 | 0.611302 | 0 | 0.00748 | 0.272199 | 8,266 | 191 | 155 | 43.277487 | 0.816157 | 0.316719 | 0 | 0.628319 | 0 | 0 | 0.096099 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088496 | false | 0 | 0.044248 | 0 | 0.221239 | 0.079646 | 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 |
45b1f62522385fd23af8a47b84a74e4a2ac12c98 | 1,398 | py | Python | game/items/corpse.py | LaverdeS/Genetic_Algorithm_EGame | 89ff8c7870fa90768f4616cab6803227c8613396 | [
"MIT"
] | 1 | 2019-04-15T20:29:59.000Z | 2019-04-15T20:29:59.000Z | game/items/corpse.py | shivaa511/EGame | 6db10cb5cf7431093d2ab09a9e4049d6633fe792 | [
"MIT"
] | null | null | null | game/items/corpse.py | shivaa511/EGame | 6db10cb5cf7431093d2ab09a9e4049d6633fe792 | [
"MIT"
] | null | null | null | from game.items.game_item import GameItem
from PyQt5.QtGui import QPainter, QColor, QFont, QBrush, QPen, QPolygonF
from PyQt5.QtCore import QPointF
class Corpse(GameItem):
def __init__(self, parent, boundary, poison, position):
GameItem.__init__(self, parent, boundary, position)
self.corpse_config ... | 37.783784 | 79 | 0.650215 | 178 | 1,398 | 4.938202 | 0.241573 | 0.163823 | 0.136519 | 0.163823 | 0.32992 | 0.32992 | 0.32992 | 0.32992 | 0.32992 | 0.32992 | 0 | 0.017399 | 0.218884 | 1,398 | 36 | 80 | 38.833333 | 0.787546 | 0 | 0 | 0 | 0 | 0 | 0.020744 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103448 | false | 0 | 0.103448 | 0 | 0.241379 | 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 |
45b538213b896e50881e1171e0001758c3f41dcd | 702 | py | Python | web/api_rest/python_flask/www/Models/Position.py | CALlanoR/virtual_environments | 90214851d6c3760e1a4afb48017bb7f91593e29e | [
"Apache-2.0"
] | null | null | null | web/api_rest/python_flask/www/Models/Position.py | CALlanoR/virtual_environments | 90214851d6c3760e1a4afb48017bb7f91593e29e | [
"Apache-2.0"
] | 1 | 2022-03-02T14:54:47.000Z | 2022-03-02T14:54:47.000Z | web/api_rest/python_flask/www/Models/Position.py | CALlanoR/virtual_environments | 90214851d6c3760e1a4afb48017bb7f91593e29e | [
"Apache-2.0"
] | 1 | 2017-03-16T14:58:03.000Z | 2017-03-16T14:58:03.000Z | from sqlalchemy import Column, String, Integer, ForeignKey, Numeric, Date
from sqlalchemy.orm import relationship
from Model import Model
class Position(Model):
__tablename__ = 'positions'
id = Column(Integer, primary_key=True, nullable=False, autoincrement=True)
name = Column(String(200))
description ... | 29.25 | 78 | 0.706553 | 77 | 702 | 6.337662 | 0.558442 | 0.133197 | 0.061475 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017637 | 0.192308 | 702 | 23 | 79 | 30.521739 | 0.843034 | 0.074074 | 0 | 0 | 0 | 0 | 0.063764 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.214286 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
45b778ff5a90c74348900155a721ad73f69c7af1 | 7,302 | py | Python | conlangdev/migrations/0001_initial.py | zeeonbees/conlangdev | 3ee2fbd9f893e16634417d13278823bff9bd6127 | [
"BSD-2-Clause"
] | null | null | null | conlangdev/migrations/0001_initial.py | zeeonbees/conlangdev | 3ee2fbd9f893e16634417d13278823bff9bd6127 | [
"BSD-2-Clause"
] | null | null | null | conlangdev/migrations/0001_initial.py | zeeonbees/conlangdev | 3ee2fbd9f893e16634417d13278823bff9bd6127 | [
"BSD-2-Clause"
] | null | null | null | # Generated by Django 3.2.8 on 2021-10-29 14:16
import conlangdev.models.base.mixins
from django.conf import settings
import django.contrib.auth.models
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
import re
class Migration(migrat... | 72.29703 | 371 | 0.651328 | 879 | 7,302 | 5.260523 | 0.230944 | 0.057093 | 0.031142 | 0.036765 | 0.556661 | 0.519896 | 0.482699 | 0.461938 | 0.461938 | 0.43404 | 0 | 0.010159 | 0.218159 | 7,302 | 100 | 372 | 73.02 | 0.79979 | 0.006163 | 0 | 0.397849 | 1 | 0.010753 | 0.291523 | 0.0051 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.010753 | 0.086022 | 0 | 0.129032 | 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 |
45c1ebc229474c2d4b74a6d5c6c838da9ef3496e | 852 | py | Python | hard-gists/1217855/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 21 | 2019-07-08T08:26:45.000Z | 2022-01-24T23:53:25.000Z | hard-gists/1217855/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 5 | 2019-06-15T14:47:47.000Z | 2022-02-26T05:02:56.000Z | hard-gists/1217855/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 17 | 2019-05-16T03:50:34.000Z | 2021-01-14T14:35:12.000Z | import sys
from gevent import server
from gevent.baseserver import _tcp_listener
from gevent import pywsgi
from gevent.monkey import patch_all; patch_all()
from multiprocessing import Process, current_process, cpu_count
def hello_world(env, start_response):
if env['PATH_INFO'] == '/':
start_response('200 O... | 32.769231 | 72 | 0.720657 | 117 | 852 | 5.042735 | 0.504274 | 0.067797 | 0.086441 | 0.064407 | 0.084746 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026099 | 0.14554 | 852 | 26 | 73 | 32.769231 | 0.784341 | 0 | 0 | 0 | 0 | 0 | 0.16061 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.285714 | null | null | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
45ce2076a2420672f5a9b71bee3cbc1d8155fce1 | 3,440 | py | Python | runehistory_api/framework/auth.py | RuneHistory/runehistory-api | 4e857c7fdbdf585d57cf4c7fe6214b565ac37a22 | [
"MIT"
] | null | null | null | runehistory_api/framework/auth.py | RuneHistory/runehistory-api | 4e857c7fdbdf585d57cf4c7fe6214b565ac37a22 | [
"MIT"
] | 6 | 2018-06-14T13:58:43.000Z | 2018-07-16T14:02:24.000Z | runehistory_api/framework/auth.py | RuneHistory/runehistory-api | 4e857c7fdbdf585d57cf4c7fe6214b565ac37a22 | [
"MIT"
] | null | null | null | import typing
from functools import wraps
from flask import request, g
from werkzeug.exceptions import Unauthorized, Forbidden
from cmdbus import cmdbus
from simplejwt.jwt import Jwt
from simplejwt.exception import InvalidTokenError
from ioccontainer import inject
from runehistory_api.domain.models.auth import User
f... | 28.666667 | 79 | 0.65 | 362 | 3,440 | 6.058011 | 0.256906 | 0.051072 | 0.016416 | 0.017784 | 0.115823 | 0.098495 | 0.071135 | 0.071135 | 0.04104 | 0.04104 | 0 | 0.001191 | 0.267733 | 3,440 | 119 | 80 | 28.907563 | 0.869393 | 0.034884 | 0 | 0.25 | 0 | 0 | 0.044947 | 0 | 0 | 0 | 0 | 0.008403 | 0 | 1 | 0.119565 | false | 0.054348 | 0.119565 | 0.01087 | 0.402174 | 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 |
45db8640e6fcdc0554da12512fa09fb7b5d60f5d | 1,046 | py | Python | apps/ad_ldap3/backend.py | thinkAmi-sandbox/Django_AD_Ldap3_Sample | 29666fd002b7883907b6d49bdbf3e15bbcfc7597 | [
"MIT"
] | null | null | null | apps/ad_ldap3/backend.py | thinkAmi-sandbox/Django_AD_Ldap3_Sample | 29666fd002b7883907b6d49bdbf3e15bbcfc7597 | [
"MIT"
] | null | null | null | apps/ad_ldap3/backend.py | thinkAmi-sandbox/Django_AD_Ldap3_Sample | 29666fd002b7883907b6d49bdbf3e15bbcfc7597 | [
"MIT"
] | null | null | null | from django.contrib.auth import get_user_model
from django.conf import settings
from ldap3 import Server, Connection, NTLM
class ADBackend(object):
def authenticate(self, username=None, password=None):
server = Server(settings.AD_DOAMIN_CONTROLLER_HOST_NAME)
try:
# auto_bindありのConnecti... | 30.764706 | 85 | 0.557361 | 103 | 1,046 | 5.475728 | 0.495146 | 0.049645 | 0.06383 | 0.056738 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004552 | 0.369981 | 1,046 | 33 | 86 | 31.69697 | 0.85129 | 0.043021 | 0 | 0.296296 | 0 | 0 | 0.008008 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0.111111 | 0.111111 | 0 | 0.37037 | 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 |
45dda498a50d7516d242f7631d87a54974bc1b2e | 1,672 | py | Python | app/auth/views.py | kimutaiamos/Blogs | 0e4166b23255bbdcf1b461e48ff5f742a1c0f8f0 | [
"MIT"
] | null | null | null | app/auth/views.py | kimutaiamos/Blogs | 0e4166b23255bbdcf1b461e48ff5f742a1c0f8f0 | [
"MIT"
] | null | null | null | app/auth/views.py | kimutaiamos/Blogs | 0e4166b23255bbdcf1b461e48ff5f742a1c0f8f0 | [
"MIT"
] | null | null | null | from flask import render_template, redirect, url_for, request , flash
from flask_login import login_user, login_required, logout_user
from .forms import RegistrationForm, loginForm
from .import auth
from ..import db
from ..models import User
#registration route
@auth.route('templates/auth/reqister', methods=['GET','... | 26.539683 | 106 | 0.690789 | 218 | 1,672 | 5.174312 | 0.366972 | 0.055851 | 0.037234 | 0.030142 | 0.049645 | 0.049645 | 0 | 0 | 0 | 0 | 0 | 0 | 0.193182 | 1,672 | 62 | 107 | 26.967742 | 0.836175 | 0.12201 | 0 | 0 | 0 | 0 | 0.113366 | 0.016095 | 0 | 0 | 0 | 0 | 0 | 1 | 0.09375 | false | 0.09375 | 0.1875 | 0 | 0.4375 | 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 |
45de3247b5dc2bd72b5c586ffda9047b8cecdf26 | 828 | py | Python | app/admin.py | jochasinga/rpg-x | c02029338f43e095576be54b81f093593f86832d | [
"MIT"
] | 1 | 2016-03-07T04:07:19.000Z | 2016-03-07T04:07:19.000Z | app/admin.py | jochasinga/rpg-x | c02029338f43e095576be54b81f093593f86832d | [
"MIT"
] | null | null | null | app/admin.py | jochasinga/rpg-x | c02029338f43e095576be54b81f093593f86832d | [
"MIT"
] | null | null | null | from app import app, db
from flask_admin import Admin
from flask_admin.contrib.sqla import ModelView
from app.models import User, Stage, Question, Choice, Candidate
admin = Admin(app, name="Presidential-X", template_mode="bootstrap3")
class StageAdmin(ModelView):
inline_models = (Question,)
column_list = ('st... | 25.875 | 69 | 0.719807 | 103 | 828 | 5.572816 | 0.417476 | 0.083624 | 0.10453 | 0.132404 | 0.174216 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001427 | 0.153382 | 828 | 31 | 70 | 26.709677 | 0.817404 | 0.024155 | 0 | 0 | 0 | 0 | 0.089552 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
45e6c28a2151435e2a6b24b566aa166f2cfe2b91 | 9,031 | py | Python | unpythonic/lispylet.py | aisha-w/unpythonic | 0f63abf6ac7efb7304b676d0e1ebce0ef4040438 | [
"BSD-2-Clause"
] | null | null | null | unpythonic/lispylet.py | aisha-w/unpythonic | 0f63abf6ac7efb7304b676d0e1ebce0ef4040438 | [
"BSD-2-Clause"
] | null | null | null | unpythonic/lispylet.py | aisha-w/unpythonic | 0f63abf6ac7efb7304b676d0e1ebce0ef4040438 | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""Introduce local bindings. Lispy syntax."""
__all__ = ["let", "letrec", "dlet", "dletrec", "blet", "bletrec"]
from functools import wraps
from .misc import call
from .env import env as _envcls
from .arity import arity_includes, UnknownArity
def let(bindings, body):
"""``let`` expressio... | 33.572491 | 114 | 0.518104 | 1,121 | 9,031 | 4.143622 | 0.256021 | 0.031647 | 0.013778 | 0.01507 | 0.210549 | 0.144672 | 0.122713 | 0.122713 | 0.081808 | 0.06071 | 0 | 0.016632 | 0.360868 | 9,031 | 268 | 115 | 33.697761 | 0.788115 | 0.685306 | 0 | 0.172414 | 0 | 0 | 0.147585 | 0 | 0 | 0 | 0 | 0 | 0.017241 | 1 | 0.206897 | false | 0.034483 | 0.068966 | 0.017241 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
afdb4af0abb426fc9a477bb63400a204ca257590 | 10,710 | py | Python | utilities/for_paraview/lib/common.py | doliinychenko/iSS | 9391b8830e385c0f5f1600a1cfd1ad355ea582c5 | [
"MIT"
] | 4 | 2018-11-29T14:34:55.000Z | 2020-11-25T14:44:32.000Z | utilities/for_paraview/lib/common.py | doliinychenko/iSS | 9391b8830e385c0f5f1600a1cfd1ad355ea582c5 | [
"MIT"
] | 1 | 2020-04-05T01:17:31.000Z | 2020-04-05T01:17:31.000Z | utilities/for_paraview/lib/common.py | doliinychenko/iSS | 9391b8830e385c0f5f1600a1cfd1ad355ea582c5 | [
"MIT"
] | 6 | 2018-04-06T17:08:35.000Z | 2020-10-19T19:10:38.000Z | #!/usr/bin/env python
"""
Common functions/methods.
"""
"""
Copyright 2001 Pearu Peterson all rights reserved,
Pearu Peterson <pearu@ioc.ee>
Permission to use, modify, and distribute this software is given under the
terms of the LGPL. See http://www.fsf.org
NO WARRANTY IS EXPRESSED OR IMPLIED. USE AT YOUR... | 34.326923 | 107 | 0.545285 | 1,461 | 10,710 | 3.881588 | 0.152635 | 0.02839 | 0.019044 | 0.022924 | 0.384059 | 0.342444 | 0.295186 | 0.214953 | 0.185858 | 0.17034 | 0 | 0.027072 | 0.330906 | 10,710 | 311 | 108 | 34.437299 | 0.764304 | 0.026797 | 0 | 0.207317 | 0 | 0 | 0.090224 | 0 | 0 | 0 | 0 | 0 | 0.012195 | 0 | null | null | 0 | 0.02439 | null | null | 0.004065 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
afe097f90d26841dbc02a737b7c97ea13ac0ae11 | 1,639 | py | Python | helpers.py | jiamaozheng/S-PrediXcan_Post-processing_Pipeline | ab834687b8b093d0e572cfc6502bb4be23e51719 | [
"MIT"
] | null | null | null | helpers.py | jiamaozheng/S-PrediXcan_Post-processing_Pipeline | ab834687b8b093d0e572cfc6502bb4be23e51719 | [
"MIT"
] | null | null | null | helpers.py | jiamaozheng/S-PrediXcan_Post-processing_Pipeline | ab834687b8b093d0e572cfc6502bb4be23e51719 | [
"MIT"
] | null | null | null | # helper functions
'''
################################
#### Software prerequistes
################################
'''
# python packages:
# rpy2: pip install rpy2
# R packages:
# annotables: install.packages("devtools")
# devtools::install_github("stephenturner/annotables")
# dplyr: ... | 26.868852 | 89 | 0.634533 | 188 | 1,639 | 5.510638 | 0.521277 | 0.057915 | 0.046332 | 0.042471 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014232 | 0.185479 | 1,639 | 60 | 90 | 27.316667 | 0.761798 | 0.305064 | 0 | 0 | 0 | 0 | 0.09319 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.352941 | 0 | 0.470588 | 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 |
afe50222c07df01a789d7b3c02d016f820d4147d | 1,297 | py | Python | pyramid_tasks/interfaces.py | luhn/pyramid-tasks | 00dbdba45b57b11a372d5000812a4cb90f1506a8 | [
"MIT"
] | 10 | 2021-01-06T18:14:24.000Z | 2022-01-26T03:03:16.000Z | pyramid_tasks/interfaces.py | luhn/pyramid-tasks | 00dbdba45b57b11a372d5000812a4cb90f1506a8 | [
"MIT"
] | 2 | 2021-01-06T21:28:20.000Z | 2021-01-11T01:29:46.000Z | pyramid_tasks/interfaces.py | luhn/pyramid-tasks | 00dbdba45b57b11a372d5000812a4cb90f1506a8 | [
"MIT"
] | null | null | null | from zope.interface import Attribute, Interface
class ITaskDeriver(Interface):
def __call__(task, info):
"""
Derive a new task from the supplied task.
View options, package information and registry are available on
``info``, an instance of
:class:`pyramid_tasks.interfaces.... | 24.942308 | 76 | 0.634541 | 146 | 1,297 | 5.59589 | 0.5 | 0.073439 | 0.046512 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.272167 | 1,297 | 51 | 77 | 25.431373 | 0.865466 | 0.346955 | 0 | 0 | 0 | 0 | 0.317992 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.055556 | 0.055556 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
afe6dbc6ab1664807d5f09a8311161c6d505adbd | 3,444 | py | Python | python/helper.py | bmef01-grupp-7/ptz-stabilizer | 48f1b21efa4ab71918a1217d2a813897a3f2b5c1 | [
"MIT"
] | null | null | null | python/helper.py | bmef01-grupp-7/ptz-stabilizer | 48f1b21efa4ab71918a1217d2a813897a3f2b5c1 | [
"MIT"
] | null | null | null | python/helper.py | bmef01-grupp-7/ptz-stabilizer | 48f1b21efa4ab71918a1217d2a813897a3f2b5c1 | [
"MIT"
] | null | null | null | import time
import os
import platform
from glob import glob
from serial import Serial, SerialException
"""
the super fancy ascii art for the project
"""
ascii_art = "\n".join([
" ____ _____ _____ ____ _ _ _ _ _ ",
" | _ \_ _|__ / / ___|| |_ __ _| |__ (_)| |(_)_______ _ __ "... | 23.27027 | 107 | 0.551394 | 464 | 3,444 | 3.838362 | 0.336207 | 0.008984 | 0.021898 | 0.020213 | 0.093206 | 0.050533 | 0.050533 | 0.050533 | 0.050533 | 0.050533 | 0 | 0.014085 | 0.278455 | 3,444 | 147 | 108 | 23.428571 | 0.702616 | 0.069977 | 0 | 0.140845 | 0 | 0.056338 | 0.183664 | 0.01457 | 0 | 0 | 0 | 0 | 0 | 1 | 0.197183 | false | 0.014085 | 0.070423 | 0.112676 | 0.450704 | 0.014085 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
afe878b466efbc34e82fa3d3e7cf5198e2100044 | 582 | py | Python | webarm/widgets/migrations/0001_initial.py | AlexGolovaschenko/WebArm | 1019b73b1ad5560a626261bbce05137c01edcee5 | [
"MIT"
] | null | null | null | webarm/widgets/migrations/0001_initial.py | AlexGolovaschenko/WebArm | 1019b73b1ad5560a626261bbce05137c01edcee5 | [
"MIT"
] | null | null | null | webarm/widgets/migrations/0001_initial.py | AlexGolovaschenko/WebArm | 1019b73b1ad5560a626261bbce05137c01edcee5 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.1 on 2021-01-15 15:13
from django.db import migrations, models
import widgets.models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='WidgetsTemplate',
fields=[
... | 25.304348 | 124 | 0.62543 | 61 | 582 | 5.868852 | 0.672131 | 0.072626 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034884 | 0.261168 | 582 | 22 | 125 | 26.454545 | 0.797674 | 0.07732 | 0 | 0 | 1 | 0 | 0.078505 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
afec4b0e981dfefb1b7184001c62d13adc4a8366 | 1,350 | py | Python | demos/dates.py | weldermarcosxd/agatereports | ce11096fe4ac5ff83131609c72689585ea2c01e0 | [
"BSD-3-Clause"
] | 1 | 2022-03-03T18:01:27.000Z | 2022-03-03T18:01:27.000Z | demos/dates.py | weldermarcosxd/agatereports | ce11096fe4ac5ff83131609c72689585ea2c01e0 | [
"BSD-3-Clause"
] | null | null | null | demos/dates.py | weldermarcosxd/agatereports | ce11096fe4ac5ff83131609c72689585ea2c01e0 | [
"BSD-3-Clause"
] | 1 | 2022-03-04T03:19:39.000Z | 2022-03-04T03:19:39.000Z | from agatereports.basic_report import BasicReport
import logging
logger = logging.getLogger(__name__)
def dates_sample(jrxml_filename = './jrxml/dates.jrxml', output_filename = './output/dates.pdf'):
"""
Dates sample.
WARNING: This sample uses MySQL database.
Before running this sample, schema 'agate... | 40.909091 | 110 | 0.720741 | 170 | 1,350 | 5.564706 | 0.5 | 0.06871 | 0.057082 | 0.05074 | 0.190275 | 0.082452 | 0.082452 | 0 | 0 | 0 | 0 | 0 | 0.174815 | 1,350 | 32 | 111 | 42.1875 | 0.849192 | 0.526667 | 0 | 0 | 0 | 0 | 0.226351 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0.090909 | 0.181818 | 0 | 0.272727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
afef097a5ffdb43061f448c39181373afb1640d1 | 4,866 | py | Python | pymorpheus/__init__.py | ncelebic/pymorpheus | c2164f756150160ed1d3d6c7992695156d0f3346 | [
"MIT"
] | 1 | 2019-10-08T18:53:18.000Z | 2019-10-08T18:53:18.000Z | pymorpheus/__init__.py | ncelebic/pymorpheus | c2164f756150160ed1d3d6c7992695156d0f3346 | [
"MIT"
] | null | null | null | pymorpheus/__init__.py | ncelebic/pymorpheus | c2164f756150160ed1d3d6c7992695156d0f3346 | [
"MIT"
] | null | null | null | """
Python module for interacting with the Morpheus API
"""
import requests
import urllib3
import logging
import json
logger = logging.getLogger(__name__)
name = "MorpheusClient"
class MorpheusClientException(Exception):
""" Base Exception Class """
class MethodTypeError(MorpheusClientException):
""" Ex... | 29.137725 | 106 | 0.51829 | 465 | 4,866 | 5.326882 | 0.286022 | 0.035527 | 0.025838 | 0.026645 | 0.076706 | 0.057327 | 0.057327 | 0.057327 | 0.057327 | 0.057327 | 0 | 0.001656 | 0.379367 | 4,866 | 166 | 107 | 29.313253 | 0.818543 | 0.145294 | 0 | 0.12766 | 0 | 0 | 0.139689 | 0.01453 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042553 | false | 0.053191 | 0.042553 | 0 | 0.148936 | 0.148936 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
aff4f1951c39ba724d7b495b107511dd4c904456 | 13,231 | py | Python | code/main.py | Ramoncarden/music_theory | f26a928230b85a56990dc1b6c011520741ba8072 | [
"MIT"
] | null | null | null | code/main.py | Ramoncarden/music_theory | f26a928230b85a56990dc1b6c011520741ba8072 | [
"MIT"
] | null | null | null | code/main.py | Ramoncarden/music_theory | f26a928230b85a56990dc1b6c011520741ba8072 | [
"MIT"
] | 1 | 2019-03-07T15:15:00.000Z | 2019-03-07T15:15:00.000Z | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'main.ui'
#
# Created by: PyQt5 UI code generator 5.12
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.s... | 44.103333 | 80 | 0.669639 | 1,493 | 13,231 | 5.829203 | 0.172137 | 0.050672 | 0.053085 | 0.026887 | 0.299092 | 0.246467 | 0.117316 | 0.104332 | 0.104332 | 0.104332 | 0 | 0.041495 | 0.193107 | 13,231 | 299 | 81 | 44.250836 | 0.773698 | 0.013302 | 0 | 0.270175 | 1 | 0 | 0.117967 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.007018 | false | 0 | 0.003509 | 0 | 0.014035 | 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 |
affa268eee895a5894d22ab75f1919470e3f0fb5 | 555 | py | Python | tests/pipeline/ios/test_dummy_io.py | jorgetagle/dagger | dafcfb9df904e512f050aefdacf6581c571bac23 | [
"MIT"
] | 5 | 2020-09-09T11:44:49.000Z | 2021-12-31T14:07:00.000Z | tests/pipeline/ios/test_dummy_io.py | jorgetagle/dagger | dafcfb9df904e512f050aefdacf6581c571bac23 | [
"MIT"
] | null | null | null | tests/pipeline/ios/test_dummy_io.py | jorgetagle/dagger | dafcfb9df904e512f050aefdacf6581c571bac23 | [
"MIT"
] | 3 | 2021-08-31T10:14:42.000Z | 2022-02-28T17:03:39.000Z | import unittest
from dagger.pipeline.io_factory import dummy_io
import yaml
class DummyIOTest(unittest.TestCase):
def setUp(self) -> None:
with open('tests/fixtures/pipeline/ios/dummy_io.yaml', "r") as stream:
config = yaml.safe_load(stream)
self.db_io = dummy_io.DummyIO(config, "/")... | 30.833333 | 78 | 0.695495 | 76 | 555 | 4.881579 | 0.473684 | 0.06469 | 0.086253 | 0.169811 | 0.234501 | 0.172507 | 0.172507 | 0 | 0 | 0 | 0 | 0 | 0.178378 | 555 | 17 | 79 | 32.647059 | 0.813596 | 0 | 0 | 0 | 0 | 0 | 0.156757 | 0.073874 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.166667 | false | 0 | 0.25 | 0 | 0.5 | 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 |
affdbcbe859fd950648da1f66b981c2a78b862da | 422 | py | Python | Data Scientist Career Path/8. Hypothesis Testing/1. Testing a Sample Statistics/2. Binomial Test/7. confidence.py | myarist/Codecademy | 2ba0f104bc67ab6ef0f8fb869aa12aa02f5f1efb | [
"MIT"
] | 23 | 2021-06-06T15:35:55.000Z | 2022-03-21T06:53:42.000Z | Data Scientist Career Path/8. Hypothesis Testing/1. Testing a Sample Statistics/2. Binomial Test/7. confidence.py | shivaniverma1/Data-Scientist | f82939a411484311171465591455880c8e354750 | [
"MIT"
] | null | null | null | Data Scientist Career Path/8. Hypothesis Testing/1. Testing a Sample Statistics/2. Binomial Test/7. confidence.py | shivaniverma1/Data-Scientist | f82939a411484311171465591455880c8e354750 | [
"MIT"
] | 9 | 2021-06-08T01:32:04.000Z | 2022-03-18T15:38:09.000Z | import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import codecademylib3
null_outcomes = []
for i in range(10000):
simulated_monthly_visitors = np.random.choice(['y', 'n'], size=500, p=[0.1, 0.9])
num_purchased = np.sum(simulated_monthly_visitors == 'y')
null_outcomes.append(num_purchased)... | 23.444444 | 83 | 0.746445 | 66 | 422 | 4.606061 | 0.666667 | 0.118421 | 0.157895 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059946 | 0.130332 | 422 | 18 | 84 | 23.444444 | 0.768392 | 0.075829 | 0 | 0 | 0 | 0 | 0.007692 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.363636 | 0 | 0.363636 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
b3082cc172fdd09e91f7126db96c73ee7ae06b82 | 3,581 | py | Python | picostack/logging_util.py | ewiger/picostack | b594b2ebe6f87acc2698e515f62ea52b5d48eaa7 | [
"MIT"
] | 19 | 2015-02-12T01:44:32.000Z | 2021-02-24T05:19:43.000Z | picostack/logging_util.py | ewiger/picostack | b594b2ebe6f87acc2698e515f62ea52b5d48eaa7 | [
"MIT"
] | 1 | 2015-09-21T12:01:34.000Z | 2016-02-26T13:44:30.000Z | picostack/logging_util.py | ewiger/picostack | b594b2ebe6f87acc2698e515f62ea52b5d48eaa7 | [
"MIT"
] | 10 | 2015-02-12T01:44:33.000Z | 2019-03-24T10:53:11.000Z | import os
import logging
import textwrap
from picostack.socket_logger import LogRecordSocketReceiver
WHITE_LIST = ['picostk', 'picostack']
VERBOSITY_LEVELS = {
1: logging.WARN,
2: logging.INFO,
3: logging.DEBUG,
4: logging.NOTSET,
}
LOGGING_LEVELS = {
'WARN': logging.WARN,
'INFO': logging.INFO... | 27.546154 | 80 | 0.636414 | 388 | 3,581 | 5.680412 | 0.363402 | 0.07078 | 0.066697 | 0.032668 | 0.092559 | 0.040835 | 0.040835 | 0.040835 | 0 | 0 | 0 | 0.009782 | 0.257749 | 3,581 | 129 | 81 | 27.75969 | 0.819413 | 0.065624 | 0 | 0.060606 | 0 | 0 | 0.312102 | 0.052169 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.040404 | 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 |
b30ac5b5d9c64234e3b27cf3ff6e2a54702986d6 | 937 | py | Python | installer/core/providers/aws/boto3/es.py | jonico/pacbot | ecb94fb987147098bc5b359772fad264619b3099 | [
"Apache-2.0"
] | 1,165 | 2018-10-05T19:07:34.000Z | 2022-03-28T19:34:27.000Z | installer/core/providers/aws/boto3/es.py | jonico/pacbot | ecb94fb987147098bc5b359772fad264619b3099 | [
"Apache-2.0"
] | 334 | 2018-10-10T14:00:41.000Z | 2022-03-19T16:32:08.000Z | installer/core/providers/aws/boto3/es.py | jtimberlake/pacbot | 5a25dc15882324583860630e773af2e2647dd5fa | [
"Apache-2.0"
] | 268 | 2018-10-05T19:53:25.000Z | 2022-03-31T07:39:47.000Z | from core.providers.aws.boto3 import prepare_aws_client_with_given_cred
import boto3
def get_es_client(aws_auth_cred):
"""
Returns the client object for AWS Elasticsearch
Args:
aws_auth (dict): Dict containing AWS credentials
Returns:
obj: AWS Elasticsearch Object
"""
return ... | 25.324324 | 71 | 0.689434 | 122 | 937 | 5.032787 | 0.385246 | 0.068404 | 0.071661 | 0.065147 | 0.315961 | 0.315961 | 0.149837 | 0.149837 | 0 | 0 | 0 | 0.002849 | 0.2508 | 937 | 36 | 72 | 26.027778 | 0.871795 | 0.39381 | 0 | 0 | 0 | 0 | 0.027944 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.153846 | 0 | 0.538462 | 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 |
b30bf17ec1e8d1e4c659c11a4269720c583f6f67 | 3,908 | py | Python | tests/baseSetUp.py | meshack-mbuvi/ride-my-way-api | 2e091f020e774cad4891427a2de91a7a2c29def1 | [
"MIT"
] | null | null | null | tests/baseSetUp.py | meshack-mbuvi/ride-my-way-api | 2e091f020e774cad4891427a2de91a7a2c29def1 | [
"MIT"
] | 19 | 2018-06-23T17:08:37.000Z | 2018-07-23T17:37:55.000Z | tests/baseSetUp.py | meshack-mbuvi/ride-my-way-api | 2e091f020e774cad4891427a2de91a7a2c29def1 | [
"MIT"
] | null | null | null | import json
import unittest
from application import create_app
class Base(unittest.TestCase):
def setUp(self):
"""Prepare testing environment."""
self.app = create_app('testing')
self.app = self.app.test_client()
from application import db
self.db = db
self.db.dr... | 32.840336 | 71 | 0.495394 | 365 | 3,908 | 5.194521 | 0.29863 | 0.029536 | 0.058017 | 0.071203 | 0.484177 | 0.436709 | 0.413502 | 0.413502 | 0.370253 | 0.370253 | 0 | 0.037414 | 0.370778 | 3,908 | 119 | 72 | 32.840336 | 0.733632 | 0.039406 | 0 | 0.397959 | 0 | 0 | 0.27246 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020408 | false | 0.173469 | 0.040816 | 0 | 0.071429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
b30ff99181c300d510d6fece51a14b95aa7b153e | 2,100 | py | Python | social_rl/diayn/abstract_diayn.py | TorchPAIRED/google-research | 14c8bcd666ab37c6b965a4662de04d205a715093 | [
"Apache-2.0"
] | null | null | null | social_rl/diayn/abstract_diayn.py | TorchPAIRED/google-research | 14c8bcd666ab37c6b965a4662de04d205a715093 | [
"Apache-2.0"
] | null | null | null | social_rl/diayn/abstract_diayn.py | TorchPAIRED/google-research | 14c8bcd666ab37c6b965a4662de04d205a715093 | [
"Apache-2.0"
] | null | null | null | import numpy as np
import tensorflow as tf
class AbstractDiayn:
def __init__(self, n_skills, n_envs, train_on_trajectory=None):
assert train_on_trajectory is not None, "must pass argparse args"
self.train_on_trajectory = train_on_trajectory
self.n_skills = n_skills
self.n_envs = n_... | 33.333333 | 131 | 0.668095 | 267 | 2,100 | 5.003745 | 0.325843 | 0.057635 | 0.127246 | 0.11003 | 0.149701 | 0.124252 | 0.08982 | 0.08982 | 0.08982 | 0.08982 | 0 | 0.000635 | 0.25 | 2,100 | 63 | 132 | 33.333333 | 0.847619 | 0.04619 | 0 | 0.106383 | 0 | 0 | 0.0255 | 0 | 0 | 0 | 0 | 0.015873 | 0.021277 | 1 | 0.191489 | false | 0.042553 | 0.106383 | 0 | 0.382979 | 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 |
b31803361a632a47b75b4b72a0f33b8586f9875f | 1,670 | py | Python | jrl/agents/__init__.py | pedersor/google-research | 6fa751dd261b3f6d918fd2cd35efef5d8bf3eea6 | [
"Apache-2.0"
] | null | null | null | jrl/agents/__init__.py | pedersor/google-research | 6fa751dd261b3f6d918fd2cd35efef5d8bf3eea6 | [
"Apache-2.0"
] | null | null | null | jrl/agents/__init__.py | pedersor/google-research | 6fa751dd261b3f6d918fd2cd35efef5d8bf3eea6 | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# Copyright 2022 The Google Research Authors.
#
# 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 applicab... | 32.745098 | 74 | 0.754491 | 239 | 1,670 | 5.121339 | 0.481172 | 0.040033 | 0.068627 | 0.078431 | 0.19281 | 0.156863 | 0.156863 | 0.133987 | 0.133987 | 0 | 0 | 0.006479 | 0.168263 | 1,670 | 50 | 75 | 33.4 | 0.87473 | 0.411377 | 0 | 0 | 0 | 0 | 0.030052 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0.321429 | 0 | 0.535714 | 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 |
b326679b62bbac02ef8c2e9322a306c25725e962 | 3,584 | py | Python | app/models.py | claudi47/BetDataService | 08837e87c0744314dddd7d3f187a57577759865c | [
"MIT"
] | 1 | 2022-02-01T19:25:45.000Z | 2022-02-01T19:25:45.000Z | app/models.py | claudi47/DSBD_BetDataService | 08837e87c0744314dddd7d3f187a57577759865c | [
"MIT"
] | null | null | null | app/models.py | claudi47/DSBD_BetDataService | 08837e87c0744314dddd7d3f187a57577759865c | [
"MIT"
] | null | null | null | import datetime
from bson import ObjectId
from pydantic import BaseModel, Field
from typing import ClassVar, Optional, List
class PyObjectId(ObjectId):
@classmethod
def __get_validators__(cls):
yield cls.validate
@classmethod
def validate(cls, v):
if not ObjectId.is_valid(v):
... | 27.358779 | 90 | 0.723772 | 409 | 3,584 | 6.08802 | 0.234719 | 0.06747 | 0.083936 | 0.087149 | 0.642169 | 0.585141 | 0.585141 | 0.585141 | 0.441365 | 0.441365 | 0 | 0 | 0.201172 | 3,584 | 130 | 91 | 27.569231 | 0.869717 | 0.01702 | 0 | 0.673469 | 0 | 0 | 0.016757 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.040816 | false | 0 | 0.040816 | 0.010204 | 0.77551 | 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 |
b33265a530bd87db740cc9b37e6653a9c1316bbb | 2,386 | py | Python | arjuna-samples/workspace/arjex/tests/modules/s01unitee_engine/ep13_my_universe/ex04_picking.py | test-mile/arjuna | 21880b41e061e11bac2e600a3614684f8af75b2f | [
"Apache-2.0"
] | 9 | 2018-11-15T10:09:17.000Z | 2021-01-12T05:59:19.000Z | arjuna-samples/workspace/arjex/tests/modules/s01unitee_engine/ep13_my_universe/ex04_picking.py | test-mile/arjuna | 21880b41e061e11bac2e600a3614684f8af75b2f | [
"Apache-2.0"
] | 2 | 2019-07-01T15:33:46.000Z | 2019-07-12T13:04:08.000Z | arjuna-samples/workspace/arjex/tests/modules/s01unitee_engine/ep13_my_universe/ex04_picking.py | test-mile/arjuna | 21880b41e061e11bac2e600a3614684f8af75b2f | [
"Apache-2.0"
] | 4 | 2018-12-02T15:14:04.000Z | 2020-05-28T12:57:24.000Z | '''
This file is a part of Test Mile Arjuna
Copyright 2018 Test Mile Software Testing Pvt Ltd
Website: www.TestMile.com
Email: support [at] testmile.com
Creator: Rahul Verma
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 ... | 36.707692 | 153 | 0.770746 | 374 | 2,386 | 4.743316 | 0.302139 | 0.049605 | 0.090192 | 0.11274 | 0.475761 | 0.338782 | 0.322435 | 0.322435 | 0.322435 | 0.29876 | 0 | 0.026773 | 0.107712 | 2,386 | 65 | 154 | 36.707692 | 0.806482 | 0.290444 | 0 | 0 | 0 | 0 | 0.122183 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.294118 | false | 0 | 0.088235 | 0 | 0.382353 | 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 |
b3328d8e7bb196d388c3a0cb2f4e4485484b85ac | 10,087 | py | Python | wk_11/cogdb_v0.9/legacyImportMaster_v0.9_bak.py | tnakatani/python2_ccac | 14317062548e41d7b4b842367865c54b0d9f5c05 | [
"MIT"
] | null | null | null | wk_11/cogdb_v0.9/legacyImportMaster_v0.9_bak.py | tnakatani/python2_ccac | 14317062548e41d7b4b842367865c54b0d9f5c05 | [
"MIT"
] | null | null | null | wk_11/cogdb_v0.9/legacyImportMaster_v0.9_bak.py | tnakatani/python2_ccac | 14317062548e41d7b4b842367865c54b0d9f5c05 | [
"MIT"
] | 1 | 2020-02-19T23:26:59.000Z | 2020-02-19T23:26:59.000Z | #!/usr/bin/env python2
import itertools
import psycopg2
import csv_utils
import re
import csv
import codecs
# 'code_violation',
# 'owner',
# 'codeofficer',
# 'property',
# 'codeEnfCase',
# 'codeEnfEvent',
# 'inspecChecklist',
TABLES_TO_LOAD = (
'propertyAgent',
)
CSV_FILE_ENCODING = ... | 35.024306 | 129 | 0.614157 | 1,128 | 10,087 | 5.310284 | 0.248227 | 0.03005 | 0.02404 | 0.012855 | 0.304174 | 0.267947 | 0.267947 | 0.262771 | 0.257095 | 0.245409 | 0 | 0.007391 | 0.275701 | 10,087 | 287 | 130 | 35.146341 | 0.812483 | 0.109349 | 0 | 0.242991 | 0 | 0.023364 | 0.319218 | 0.035531 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.004673 | 0.121495 | null | null | 0.056075 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b333ad8a214bd519b291f387352e29d90d7b17e0 | 5,339 | py | Python | c02_scope.py | lostdatum/Python-3-Tutorial | cd0847719c9b6eb7d89a89999b9e9bb5e76c3fef | [
"MIT"
] | null | null | null | c02_scope.py | lostdatum/Python-3-Tutorial | cd0847719c9b6eb7d89a89999b9e9bb5e76c3fef | [
"MIT"
] | null | null | null | c02_scope.py | lostdatum/Python-3-Tutorial | cd0847719c9b6eb7d89a89999b9e9bb5e76c3fef | [
"MIT"
] | null | null | null | # =============================================================================
# SCOPE OF OBJECTS
# =============================================================================
# This tutorial is about the scope of objects in Python.
# Basicly, the scope of an object is the domain in wh... | 32.357576 | 80 | 0.598239 | 673 | 5,339 | 4.661218 | 0.248143 | 0.051004 | 0.017214 | 0.043991 | 0.436723 | 0.362448 | 0.315907 | 0.248008 | 0.198916 | 0.145999 | 0 | 0.009083 | 0.175126 | 5,339 | 165 | 81 | 32.357576 | 0.703224 | 0.586252 | 0 | 0.375 | 0 | 0 | 0.365876 | 0.078568 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078125 | false | 0 | 0.015625 | 0 | 0.09375 | 0.5625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
b334a6e3b63f0f69b30e0af684c431308fcd502c | 793 | py | Python | setup.py | MeGaNeKoS/Anisearch | 58461b0c56b3c1293b9a3621a9d929cb0a749275 | [
"MIT"
] | null | null | null | setup.py | MeGaNeKoS/Anisearch | 58461b0c56b3c1293b9a3621a9d929cb0a749275 | [
"MIT"
] | null | null | null | setup.py | MeGaNeKoS/Anisearch | 58461b0c56b3c1293b9a3621a9d929cb0a749275 | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
setup(
name='Anisearch',
version='1.0.0',
description="Anisearch is the lib for accessing anime or manga from anilist.co on the Python Platform.",
long_description=open("README.md").read() + "\n\n" + open("CHANGELOG.txt").read(),
long_description_content_... | 34.478261 | 108 | 0.662043 | 91 | 793 | 5.681319 | 0.736264 | 0.046422 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010938 | 0.192938 | 793 | 22 | 109 | 36.045455 | 0.796875 | 0 | 0 | 0 | 0 | 0 | 0.480454 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.047619 | 0 | 0.047619 | 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 |
b342e85760d7f1e359eb56d409bf9dd97ac2d7a3 | 351 | py | Python | data/contacts.py | TatyanaNesmeyanna/pytho_training | 75d66dd922b9e41acb05c8aa4f765c6fc4783652 | [
"Apache-2.0"
] | null | null | null | data/contacts.py | TatyanaNesmeyanna/pytho_training | 75d66dd922b9e41acb05c8aa4f765c6fc4783652 | [
"Apache-2.0"
] | null | null | null | data/contacts.py | TatyanaNesmeyanna/pytho_training | 75d66dd922b9e41acb05c8aa4f765c6fc4783652 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from model.contact import Contact
testdata = [
Contact(firstname="firstname1", lastname="lastname1", home_phone="111", mobile_phone="222", work_phone="333", secondary_phone="444"),
Contact(firstname="firstname2", lastname="lastname2", home_phone="101", mobile_phone="202", work_phone="30... | 39 | 137 | 0.7151 | 43 | 351 | 5.651163 | 0.627907 | 0.131687 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.091772 | 0.099715 | 351 | 8 | 138 | 43.875 | 0.677215 | 0.059829 | 0 | 0 | 0 | 0 | 0.189602 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b348bdc2f29696efabbb30796750749291090d6b | 2,833 | py | Python | gen_evaluation_file.py | xck36/GMIS | a0b6a778e33f8652139e8df76f0e2a70f4716116 | [
"BSD-3-Clause"
] | 40 | 2018-12-06T01:48:42.000Z | 2021-09-29T19:38:09.000Z | gen_evaluation_file.py | xck36/GMIS | a0b6a778e33f8652139e8df76f0e2a70f4716116 | [
"BSD-3-Clause"
] | 4 | 2019-02-05T13:10:58.000Z | 2020-05-11T14:45:32.000Z | gen_evaluation_file.py | xck36/GMIS | a0b6a778e33f8652139e8df76f0e2a70f4716116 | [
"BSD-3-Clause"
] | 9 | 2019-01-03T13:43:17.000Z | 2020-06-11T13:33:38.000Z | '''
generate evaluation file for Cityscapes.
'''
import numpy as np
from PIL import Image
import utilities.get_default_palette as get_default_palette
BINS = [-0.5, 0.5, 1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5, 9.5]
def get_mode(arr, num=1):
'''
get mode
'''
assert num <= 8
hist = np.histogram(arr, bins=BINS)... | 30.793478 | 93 | 0.651253 | 401 | 2,833 | 4.279302 | 0.274314 | 0.062937 | 0.073427 | 0.029138 | 0.126457 | 0.036713 | 0 | 0 | 0 | 0 | 0 | 0.025818 | 0.234381 | 2,833 | 91 | 94 | 31.131868 | 0.76533 | 0.031415 | 0 | 0.117647 | 1 | 0 | 0.027266 | 0 | 0 | 0 | 0 | 0 | 0.029412 | 1 | 0.029412 | false | 0 | 0.044118 | 0 | 0.102941 | 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 |
b34ed423e908177bcbfc94c5ee3b64c10937fd30 | 1,622 | py | Python | website/lab/migrations/0028_auto_20160404_1319.py | Bournvita1998/serc | 5cdbe0ea89451c56bdb05b3bb6d178aad45c3a74 | [
"MIT"
] | null | null | null | website/lab/migrations/0028_auto_20160404_1319.py | Bournvita1998/serc | 5cdbe0ea89451c56bdb05b3bb6d178aad45c3a74 | [
"MIT"
] | 4 | 2016-08-15T21:33:05.000Z | 2019-05-16T19:12:58.000Z | website/lab/migrations/0028_auto_20160404_1319.py | Bournvita1998/serc | 5cdbe0ea89451c56bdb05b3bb6d178aad45c3a74 | [
"MIT"
] | 2 | 2016-12-13T10:02:39.000Z | 2019-05-16T05:58:16.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.9.4 on 2016-04-04 07:49
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('lab', '0027_auto_20160404_1027'),
]
operations = [
... | 37.72093 | 114 | 0.578298 | 159 | 1,622 | 5.754717 | 0.515723 | 0.02623 | 0.059016 | 0.078689 | 0.23388 | 0.172678 | 0.172678 | 0.172678 | 0.172678 | 0.172678 | 0 | 0.035806 | 0.276819 | 1,622 | 42 | 115 | 38.619048 | 0.744246 | 0.041307 | 0 | 0.314286 | 1 | 0 | 0.13982 | 0.028995 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.085714 | 0 | 0.171429 | 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 |
b3518ae1d56b1b140edc5863daf605e9b97abdef | 790 | py | Python | src/globals/paths.py | priscilafaliani/Analisis-De-Datos | 247695e3e976f042fc453d02bd9d4d722fb331ff | [
"CC0-1.0"
] | 6 | 2021-05-02T08:28:42.000Z | 2021-05-07T13:18:32.000Z | src/globals/paths.py | priscilafaliani/Analisis-De-Datos | 247695e3e976f042fc453d02bd9d4d722fb331ff | [
"CC0-1.0"
] | null | null | null | src/globals/paths.py | priscilafaliani/Analisis-De-Datos | 247695e3e976f042fc453d02bd9d4d722fb331ff | [
"CC0-1.0"
] | null | null | null | """Contains all the paths used trought the app."""
import os.path
# ------ ICONS ------
ICONS_PATH = os.path.join('resources', 'icons')
POPUP_ICON = os.path.join(ICONS_PATH, 'chart.png')
PH_ICON = os.path.join(ICONS_PATH, 'coding.png')
LTP_ICON = os.path.join(ICONS_PATH, 'lpt.png')
REDDIT_ICON = os.path.join(ICONS_... | 30.384615 | 70 | 0.702532 | 121 | 790 | 4.404959 | 0.247934 | 0.146341 | 0.225141 | 0.157599 | 0.562852 | 0.476548 | 0.120075 | 0 | 0 | 0 | 0 | 0 | 0.1 | 790 | 26 | 71 | 30.384615 | 0.749648 | 0.111392 | 0 | 0 | 0 | 0 | 0.231322 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.076923 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b35b80b248dd935738f12b76646f65e54bb992bd | 18,107 | py | Python | zaqarclient/queues/v2/cli.py | mail2nsrajesh/python-zaqarclient | 405399f72b77eb4757199fe5208d7283260431a7 | [
"Apache-2.0"
] | null | null | null | zaqarclient/queues/v2/cli.py | mail2nsrajesh/python-zaqarclient | 405399f72b77eb4757199fe5208d7283260431a7 | [
"Apache-2.0"
] | null | null | null | zaqarclient/queues/v2/cli.py | mail2nsrajesh/python-zaqarclient | 405399f72b77eb4757199fe5208d7283260431a7 | [
"Apache-2.0"
] | null | null | null | # Copyright 2015 NEC Corporation. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required ... | 31.545296 | 78 | 0.598498 | 1,957 | 18,107 | 5.350537 | 0.146142 | 0.069716 | 0.050329 | 0.021106 | 0.522777 | 0.489161 | 0.443415 | 0.404068 | 0.354407 | 0.340942 | 0 | 0.00125 | 0.293202 | 18,107 | 573 | 79 | 31.600349 | 0.816925 | 0.076435 | 0 | 0.525126 | 0 | 0 | 0.200242 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057789 | false | 0.052764 | 0.017588 | 0 | 0.263819 | 0.007538 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b35bee52e38e9a363e811a98c5ab039d12983842 | 670 | py | Python | tests/test_newton_method.py | JHay0112/jmath | 3bccf7353c07152ff49ec6aa56785918c9f710ed | [
"MIT"
] | 7 | 2021-06-25T12:57:08.000Z | 2021-12-29T21:53:30.000Z | tests/test_newton_method.py | JHay0112/jmath | 3bccf7353c07152ff49ec6aa56785918c9f710ed | [
"MIT"
] | 1 | 2021-08-11T02:16:12.000Z | 2021-08-12T06:05:21.000Z | tests/test_newton_method.py | JHay0112/jmath | 3bccf7353c07152ff49ec6aa56785918c9f710ed | [
"MIT"
] | 1 | 2021-09-20T21:25:55.000Z | 2021-09-20T21:25:55.000Z | """
Tests that Newton's Method behaves as expected.
"""
# - Imports
from ..jmath.approximation.newton_method import *
# - Tests
def test_root_2():
"""Tests that root 2 comes from the Newton Method as expected."""
f = lambda x : x**2 - 2
f_prime = lambda x : 2*x
assert round(newton_method(f, f_pr... | 26.8 | 69 | 0.643284 | 111 | 670 | 3.756757 | 0.324324 | 0.086331 | 0.122302 | 0.081535 | 0.342926 | 0.342926 | 0.342926 | 0.2494 | 0.2494 | 0.2494 | 0 | 0.055449 | 0.219403 | 670 | 25 | 70 | 26.8 | 0.741874 | 0.314925 | 0 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.272727 | 1 | 0.272727 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b35f69677d6a6eb41a0d3ac91565c6fe988d5b76 | 1,073 | py | Python | application/appointment/forms.py | roklem314/PotilasArkisto | b005dcad4442820a265b62156ddfe61abb5b9707 | [
"MIT"
] | 2 | 2018-03-23T08:45:10.000Z | 2021-01-22T11:17:14.000Z | application/appointment/forms.py | roklem314/PotilasArkisto | b005dcad4442820a265b62156ddfe61abb5b9707 | [
"MIT"
] | 1 | 2018-05-07T18:56:00.000Z | 2019-02-11T21:10:44.000Z | application/appointment/forms.py | roklem314/Laakari-palvelu | b005dcad4442820a265b62156ddfe61abb5b9707 | [
"MIT"
] | null | null | null | from flask_wtf import FlaskForm
from wtforms import BooleanField, TextField, validators, StringField,IntegerField
from wtforms.validators import ValidationError, DataRequired
class DoctorAppointmentForm(FlaskForm):
time = StringField("Time")
date = StringField("Date")
state = BooleanField("Book")
docto... | 34.612903 | 97 | 0.718546 | 103 | 1,073 | 7.456311 | 0.330097 | 0.143229 | 0.09375 | 0.109375 | 0.236979 | 0.177083 | 0.177083 | 0.177083 | 0.177083 | 0.177083 | 0 | 0 | 0.164026 | 1,073 | 30 | 98 | 35.766667 | 0.856187 | 0 | 0 | 0.5 | 0 | 0 | 0.158434 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.875 | 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 |
b36154ef7602420fc0a108479f2856a8022b1dbb | 397 | py | Python | idleutils/urlfetcher/utils/utils.py | idleuncle/idleutils | f7457c187bcbe27e249f775e68d268458ca42454 | [
"MIT"
] | null | null | null | idleutils/urlfetcher/utils/utils.py | idleuncle/idleutils | f7457c187bcbe27e249f775e68d268458ca42454 | [
"MIT"
] | null | null | null | idleutils/urlfetcher/utils/utils.py | idleuncle/idleutils | f7457c187bcbe27e249f775e68d268458ca42454 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import six
def pretty_unicode(string):
"""
Make sure string is unicode, try to decode with utf8, or unicode escaped string if failed.
"""
if isinstance(string, six.text_type):
return string
try:
return string.decode("utf8")
except UnicodeDecodeError:
... | 26.466667 | 94 | 0.652393 | 50 | 397 | 5.12 | 0.62 | 0.140625 | 0.140625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016234 | 0.224181 | 397 | 14 | 95 | 28.357143 | 0.814935 | 0.284635 | 0 | 0 | 0 | 0 | 0.108209 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
b36409855170a5bba1fa8e4bfcd74d4fb54b5b4d | 5,887 | py | Python | Tutorial 2 - Data Navigation/PlugIns/experimental/scripts/CompositeSurveyImage.py | paradimdata/Cornell_EM_SummerSchool_2021 | 9f3583e1b85a9cdd86e1b91800027966d501ce96 | [
"MIT"
] | 8 | 2021-06-13T20:02:12.000Z | 2022-03-24T09:19:23.000Z | Tutorial 2 - Data Navigation/PlugIns/experimental/scripts/CompositeSurveyImage.py | paradimdata/Cornell_EM_SummerSchool_2021 | 9f3583e1b85a9cdd86e1b91800027966d501ce96 | [
"MIT"
] | null | null | null | Tutorial 2 - Data Navigation/PlugIns/experimental/scripts/CompositeSurveyImage.py | paradimdata/Cornell_EM_SummerSchool_2021 | 9f3583e1b85a9cdd86e1b91800027966d501ce96 | [
"MIT"
] | 1 | 2021-07-16T20:12:28.000Z | 2021-07-16T20:12:28.000Z | """
Example script to do acquire a composite survey image using stage shift.
The script uses the center 50% of the image, shifts the stage by the appropriate amount
in x, y directions, and stitches the resulting images together into a larger super image.
To use:
Run Nion Swift and get a good image
Set the def... | 51.191304 | 189 | 0.675556 | 884 | 5,887 | 4.25 | 0.265837 | 0.050306 | 0.058824 | 0.014373 | 0.237956 | 0.176204 | 0.138408 | 0.107 | 0.064945 | 0.046846 | 0 | 0.031917 | 0.2283 | 5,887 | 114 | 190 | 51.640351 | 0.795069 | 0.271446 | 0 | 0.029851 | 0 | 0 | 0.077697 | 0.011233 | 0 | 0 | 0 | 0.035088 | 0 | 1 | 0.014925 | false | 0 | 0.059701 | 0 | 0.074627 | 0.19403 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
b3665948b147a66887afb77d9077e2809ce5395c | 280 | py | Python | manic_messenger/log.py | ReinardKuroi/manic_messenger | 02e6d02c2d2f2f37cbff4d284b52c95e09ba8b8f | [
"MIT"
] | null | null | null | manic_messenger/log.py | ReinardKuroi/manic_messenger | 02e6d02c2d2f2f37cbff4d284b52c95e09ba8b8f | [
"MIT"
] | null | null | null | manic_messenger/log.py | ReinardKuroi/manic_messenger | 02e6d02c2d2f2f37cbff4d284b52c95e09ba8b8f | [
"MIT"
] | null | null | null | import logging
logger = logging.getLogger(__name__)
logger.setLevel(logging.DEBUG)
stdout = logging.StreamHandler()
stdout.setLevel(logging.DEBUG)
formatter = logging.Formatter('[%(asctime)s] %(levelname)s: %(message)s')
stdout.setFormatter(formatter)
logger.addHandler(stdout)
| 25.454545 | 73 | 0.789286 | 32 | 280 | 6.78125 | 0.5 | 0.138249 | 0.184332 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067857 | 280 | 10 | 74 | 28 | 0.831418 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b36f44077b5a1660f55e38c1bba23fef5c67ab96 | 672 | py | Python | lm.py | 153/lispmark | 42e58a2208a3ad3a025b6e9dcf9a60d1e37d0a21 | [
"Unlicense"
] | 2 | 2017-05-02T14:41:09.000Z | 2018-11-06T02:01:31.000Z | lm.py | 153/lispmark | 42e58a2208a3ad3a025b6e9dcf9a60d1e37d0a21 | [
"Unlicense"
] | 1 | 2020-09-12T23:52:56.000Z | 2020-09-12T23:52:56.000Z | lm.py | 153/lispmark | 42e58a2208a3ad3a025b6e9dcf9a60d1e37d0a21 | [
"Unlicense"
] | null | null | null | #!/usr/bin/env python3
# simple parse tool to generate .html from .lm file
import sys
import parse
def main():
if len(sys.argv) == 1:
fn = input("file: ")
else:
fn = sys.argv[1]
with open(fn + ".lm", "r") as f:
f = f.read()
f = "".join(["(html", f, "... | 25.846154 | 52 | 0.421131 | 90 | 672 | 3.133333 | 0.455556 | 0.074468 | 0.085106 | 0.085106 | 0.29078 | 0.198582 | 0.198582 | 0.198582 | 0.198582 | 0.198582 | 0 | 0.012626 | 0.410714 | 672 | 25 | 53 | 26.88 | 0.699495 | 0.105655 | 0 | 0.380952 | 1 | 0 | 0.068562 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.095238 | 0 | 0.142857 | 0.047619 | 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 |
b3709edbb36ca6ff167da3291b0e415fa85bcb67 | 435 | py | Python | tests/system_performance/load_test.py | nguyenthanhquang152/dicabe | f2fd62fea321bbb25df429946cd850f53b285d69 | [
"MIT"
] | null | null | null | tests/system_performance/load_test.py | nguyenthanhquang152/dicabe | f2fd62fea321bbb25df429946cd850f53b285d69 | [
"MIT"
] | null | null | null | tests/system_performance/load_test.py | nguyenthanhquang152/dicabe | f2fd62fea321bbb25df429946cd850f53b285d69 | [
"MIT"
] | null | null | null | from locust import HttpUser, between, task
class WebsiteUser(HttpUser):
wait_time = between(0, 0)
# def on_start(self):
# self.client.post("/api/users/login", json=
# {
# "user": {
# "email": "nguyenthanhquang.cse@gmail.com",
# "password": "dica@123... | 22.894737 | 60 | 0.512644 | 45 | 435 | 4.911111 | 0.777778 | 0.072398 | 0.126697 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017241 | 0.333333 | 435 | 18 | 61 | 24.166667 | 0.744828 | 0.452874 | 0 | 0 | 0 | 0 | 0.09607 | 0.09607 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
2fa17909fc107479b4404910363cf6b52b4d3520 | 1,067 | py | Python | accounts/views.py | w4nd0/KMDB | 50defe78a60f52c6a6986b09650a56b6823941e7 | [
"MIT"
] | null | null | null | accounts/views.py | w4nd0/KMDB | 50defe78a60f52c6a6986b09650a56b6823941e7 | [
"MIT"
] | null | null | null | accounts/views.py | w4nd0/KMDB | 50defe78a60f52c6a6986b09650a56b6823941e7 | [
"MIT"
] | null | null | null | from rest_framework import status
from rest_framework.response import Response
from rest_framework.views import APIView
from rest_framework.authtoken.models import Token
from django.contrib.auth import authenticate
from rest_framework import mixins
from rest_framework.viewsets import GenericViewSet
from accounts.model... | 30.485714 | 82 | 0.742268 | 122 | 1,067 | 6.368852 | 0.442623 | 0.061776 | 0.131274 | 0.059202 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008046 | 0.18463 | 1,067 | 34 | 83 | 31.382353 | 0.885057 | 0 | 0 | 0 | 0 | 0 | 0.022493 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.375 | 0 | 0.708333 | 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 |
2fa83972c18461d8f092373db5a941888b552d00 | 913 | py | Python | 242.isAnagram.py | yunzhan2014/leetcodePractice | 40ed63bcd9fe7a2eff1b4c54ce52f029143279d5 | [
"MIT"
] | null | null | null | 242.isAnagram.py | yunzhan2014/leetcodePractice | 40ed63bcd9fe7a2eff1b4c54ce52f029143279d5 | [
"MIT"
] | null | null | null | 242.isAnagram.py | yunzhan2014/leetcodePractice | 40ed63bcd9fe7a2eff1b4c54ce52f029143279d5 | [
"MIT"
] | null | null | null | class Solution:
def isAnagram(self, s: str, t: str) -> bool:
len1, len2 = len(s), len(t)
if len1 != len2:
return False
elif len1 == 1:
if s!= t:
return False
else:
return True
else:
dict1 = {}
... | 25.361111 | 48 | 0.355969 | 92 | 913 | 3.445652 | 0.369565 | 0.104101 | 0.088328 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061364 | 0.518072 | 913 | 35 | 49 | 26.085714 | 0.659091 | 0 | 0 | 0.3125 | 0 | 0 | 0.059211 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0 | 0 | 0 | 0.21875 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2fabceb0d829798e269080f76aa232594512453b | 276 | py | Python | Week 5/Lecture 9 - Efficiency and Orders of Growth/In-Video Problems/Lec9.1Slide10.py | roshanM99/edX--mitX--introduction-to-computer-science-and-programming-with-python | 81a7247e8442feddd624b5dbcd70cde1b58d2965 | [
"MIT"
] | null | null | null | Week 5/Lecture 9 - Efficiency and Orders of Growth/In-Video Problems/Lec9.1Slide10.py | roshanM99/edX--mitX--introduction-to-computer-science-and-programming-with-python | 81a7247e8442feddd624b5dbcd70cde1b58d2965 | [
"MIT"
] | null | null | null | Week 5/Lecture 9 - Efficiency and Orders of Growth/In-Video Problems/Lec9.1Slide10.py | roshanM99/edX--mitX--introduction-to-computer-science-and-programming-with-python | 81a7247e8442feddd624b5dbcd70cde1b58d2965 | [
"MIT"
] | null | null | null | # Lecture 9.1, slide 10
def sqrtBi(x, eps):
low = 0.0
high = max(1, x)
ans = (high + low) / 2.0
while abs(ans ** 2 - x) >= eps:
if ans ** 2 < x:
low = ans
else:
high = ans
ans = (high + low) / 2.0
return ans | 21.230769 | 35 | 0.42029 | 43 | 276 | 2.697674 | 0.465116 | 0.068966 | 0.172414 | 0.189655 | 0.206897 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 0.434783 | 276 | 13 | 36 | 21.230769 | 0.660256 | 0.076087 | 0 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.181818 | 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 |
2fb57c728fd2c56cb6b5bac08d626343098c8649 | 1,269 | py | Python | AsyncIO.py | 404neko/Marisa | 29260845bd65df1a765d9cee847afe89c5a2f94f | [
"MIT"
] | null | null | null | AsyncIO.py | 404neko/Marisa | 29260845bd65df1a765d9cee847afe89c5a2f94f | [
"MIT"
] | null | null | null | AsyncIO.py | 404neko/Marisa | 29260845bd65df1a765d9cee847afe89c5a2f94f | [
"MIT"
] | null | null | null | #-*- coding:utf-8 -*-
import threading
from Queue import Queue
import os
import time
import sys
import re
import requests
import interface.Windows
from module_loader import *
module_obj = []
for plugin in plugins:
module_obj.append(getattr(plugin_jar,plugin))
interface_ = interface.Windows.Interface()
def ... | 20.142857 | 76 | 0.619385 | 146 | 1,269 | 5.260274 | 0.472603 | 0.035156 | 0.028646 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003229 | 0.267928 | 1,269 | 63 | 77 | 20.142857 | 0.823466 | 0.029157 | 0 | 0.093023 | 0 | 0 | 0.028432 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.046512 | 0.209302 | null | null | 0.023256 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
2fbdf2411d3619180d50a6f1afc24dfb23d5d840 | 1,137 | py | Python | hackerearth/Algorithms/Just shortest distance problem/solution.py | ATrain951/01.python-com_Qproject | c164dd093954d006538020bdf2e59e716b24d67c | [
"MIT"
] | 4 | 2020-07-24T01:59:50.000Z | 2021-07-24T15:14:08.000Z | hackerearth/Algorithms/Just shortest distance problem/solution.py | ATrain951/01.python-com_Qproject | c164dd093954d006538020bdf2e59e716b24d67c | [
"MIT"
] | null | null | null | hackerearth/Algorithms/Just shortest distance problem/solution.py | ATrain951/01.python-com_Qproject | c164dd093954d006538020bdf2e59e716b24d67c | [
"MIT"
] | null | null | null | """
# Sample code to perform I/O:
name = input() # Reading input from STDIN
print('Hi, %s.' % name) # Writing output to STDOUT
# Warning: Printing unwanted or ill-formatted data to output will cause the test cases to fail
"""
# Write your code here
from collections import defaultdict, deque
... | 27.731707 | 94 | 0.569921 | 150 | 1,137 | 4.293333 | 0.453333 | 0.149068 | 0.10559 | 0.055901 | 0.232919 | 0.108696 | 0.108696 | 0 | 0 | 0 | 0 | 0.033416 | 0.289358 | 1,137 | 40 | 95 | 28.425 | 0.763614 | 0.233949 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025 | 0 | 1 | 0.038462 | false | 0 | 0.038462 | 0 | 0.076923 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2fc2c959e3b106bdaef1037f6292549819352eaa | 5,247 | py | Python | siptracklib/view.py | sii/siptrack | 40712cf114e4c689bbd251aa9495f9ce6340bc9e | [
"Apache-2.0"
] | 8 | 2016-04-19T09:39:46.000Z | 2021-11-09T10:57:54.000Z | siptracklib/view.py | sii/siptrack | 40712cf114e4c689bbd251aa9495f9ce6340bc9e | [
"Apache-2.0"
] | 3 | 2016-03-21T13:09:16.000Z | 2017-08-23T17:25:59.000Z | siptracklib/view.py | sii/siptrack | 40712cf114e4c689bbd251aa9495f9ce6340bc9e | [
"Apache-2.0"
] | 2 | 2015-06-25T11:22:38.000Z | 2021-06-22T10:39:17.000Z | from siptracklib.objectregistry import object_registry
from siptracklib import treenodes
from siptracklib import container
from siptracklib import attribute
from siptracklib import counter
from siptracklib import device
from siptracklib import network
from siptracklib import password
from siptracklib import user
from s... | 36.4375 | 94 | 0.691824 | 625 | 5,247 | 5.696 | 0.2336 | 0.086517 | 0.064888 | 0.025281 | 0.201404 | 0.146067 | 0.08764 | 0.08764 | 0.048876 | 0.048876 | 0 | 0.005423 | 0.191729 | 5,247 | 143 | 95 | 36.692308 | 0.834001 | 0.069564 | 0 | 0.111111 | 0 | 0 | 0.179545 | 0.009711 | 0 | 0 | 0 | 0 | 0 | 1 | 0.092593 | false | 0.064815 | 0.111111 | 0 | 0.296296 | 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 |
2fc590077b52308a98cb3ca5c6bc02584dc921fe | 563 | py | Python | examples/docs_snippets/docs_snippets/intro_tutorial/advanced/repositories/lazy_repos.py | rpatil524/dagster | 6f918d94cbd543ab752ab484a65e3a40fd441716 | [
"Apache-2.0"
] | 1 | 2021-01-31T19:16:29.000Z | 2021-01-31T19:16:29.000Z | examples/docs_snippets/docs_snippets/intro_tutorial/advanced/repositories/lazy_repos.py | rpatil524/dagster | 6f918d94cbd543ab752ab484a65e3a40fd441716 | [
"Apache-2.0"
] | null | null | null | examples/docs_snippets/docs_snippets/intro_tutorial/advanced/repositories/lazy_repos.py | rpatil524/dagster | 6f918d94cbd543ab752ab484a65e3a40fd441716 | [
"Apache-2.0"
] | 1 | 2019-09-11T03:02:27.000Z | 2019-09-11T03:02:27.000Z | from dagster import repository
from .complex_job import complex_job
from .hello_cereal import hello_cereal_job
# start_lazy_repos_marker_0
@repository
def hello_cereal_repository():
# Note that we can pass a dict of functions, rather than a list of
# job definitions. This allows us to construct jobs lazily,
... | 25.590909 | 70 | 0.705151 | 79 | 563 | 4.759494 | 0.56962 | 0.146277 | 0.111702 | 0.085106 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00463 | 0.232682 | 563 | 21 | 71 | 26.809524 | 0.865741 | 0.404973 | 0 | 0 | 0 | 0 | 0.094225 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | true | 0 | 0.272727 | 0.090909 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2fd6d040715b2d2edd33274585b0692f5748c53d | 4,002 | py | Python | test.py | split-coder/Trader-bot | 28659420a9bc32be79db77dfbdfed39447c53a32 | [
"MIT"
] | null | null | null | test.py | split-coder/Trader-bot | 28659420a9bc32be79db77dfbdfed39447c53a32 | [
"MIT"
] | null | null | null | test.py | split-coder/Trader-bot | 28659420a9bc32be79db77dfbdfed39447c53a32 | [
"MIT"
] | null | null | null | import os
import sys
import urllib
import urllib2
import cookielib
import urlparse
import hashlib
import hmac
import base64
import json
import random
headers = {"Accept": "application/json", "Content-type": "application/json",
"User_Agent": "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US... | 27.986014 | 122 | 0.585207 | 468 | 4,002 | 4.974359 | 0.373932 | 0.051546 | 0.036082 | 0.041237 | 0.085481 | 0.085481 | 0.048969 | 0.048969 | 0.048969 | 0.048969 | 0 | 0.019113 | 0.307096 | 4,002 | 142 | 123 | 28.183099 | 0.820411 | 0.271864 | 0 | 0.229885 | 0 | 0.011494 | 0.15895 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.126437 | null | null | 0.126437 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
2fd73b0e68fe6f9b3b126c6de09949ceb2246e9f | 646 | py | Python | apirest_v2/materias/urls.py | LucasSSales/TestesDjango | 874701b2cdf3c4c1451c2b5dc3ad49c5e0176f88 | [
"MIT"
] | null | null | null | apirest_v2/materias/urls.py | LucasSSales/TestesDjango | 874701b2cdf3c4c1451c2b5dc3ad49c5e0176f88 | [
"MIT"
] | null | null | null | apirest_v2/materias/urls.py | LucasSSales/TestesDjango | 874701b2cdf3c4c1451c2b5dc3ad49c5e0176f88 | [
"MIT"
] | 1 | 2018-07-03T23:05:41.000Z | 2018-07-03T23:05:41.000Z | from django.conf.urls import url
from .views import ListaDeMaterias, detalhesDasMaterias
urlpatterns = [
#Consulta a lista de Materias inteira
#GET - retorna a lista de todas a materias associadas ao usuario
#POST- recebe no Body os dados referentes a materia adicionada
url(r'^$', ListaDeMaterias.as_vi... | 40.375 | 87 | 0.73065 | 90 | 646 | 5.222222 | 0.611111 | 0.059574 | 0.057447 | 0.102128 | 0.080851 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003824 | 0.190402 | 646 | 15 | 88 | 43.066667 | 0.894837 | 0.605263 | 0 | 0 | 0 | 0 | 0.072581 | 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 |
2fe033eb03a80995efb226abeb2b6943fd0f70c6 | 208 | py | Python | Python/CodingBat/xyz_there.py | dvt32/cpp-journey | afd7db7a1ad106c41601fb09e963902187ae36e6 | [
"MIT"
] | 1 | 2018-05-24T11:30:05.000Z | 2018-05-24T11:30:05.000Z | Python/CodingBat/xyz_there.py | dvt32/cpp-journey | afd7db7a1ad106c41601fb09e963902187ae36e6 | [
"MIT"
] | null | null | null | Python/CodingBat/xyz_there.py | dvt32/cpp-journey | afd7db7a1ad106c41601fb09e963902187ae36e6 | [
"MIT"
] | 2 | 2017-08-11T06:53:30.000Z | 2017-08-29T12:07:52.000Z | # http://codingbat.com/prob/p149391
def xyz_there(str):
for i in range(len(str)-2):
if (str[i:i+3] == "xyz"):
if ( i == 0 or (i != 0 and str[i-1] != '.') ):
return True
return False
| 20.8 | 52 | 0.519231 | 36 | 208 | 2.972222 | 0.666667 | 0.074766 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072368 | 0.269231 | 208 | 9 | 53 | 23.111111 | 0.631579 | 0.158654 | 0 | 0 | 0 | 0 | 0.023121 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2fe74c8eb19e53b449dfb0f2ae82447023166576 | 4,423 | py | Python | get_hotels.py | pablocastelo/tripadvisor_scraping | 214364cb698824ce3b633d47b6b65ab8269462e6 | [
"Apache-2.0"
] | null | null | null | get_hotels.py | pablocastelo/tripadvisor_scraping | 214364cb698824ce3b633d47b6b65ab8269462e6 | [
"Apache-2.0"
] | null | null | null | get_hotels.py | pablocastelo/tripadvisor_scraping | 214364cb698824ce3b633d47b6b65ab8269462e6 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
from selenium import webdriver
from lxml.cssselect import CSSSelector
import selenium.webdriver.support.ui as ui
import MySQLdb
import time
class MyDatabase:
host = ''
user = ''
password = ''
db = ''
def __init__(self):
self.connection = MySQLdb.connect(self.host, self.user, self.passwo... | 24.572222 | 110 | 0.73163 | 675 | 4,423 | 4.485926 | 0.256296 | 0.09247 | 0.038639 | 0.036988 | 0.22358 | 0.183289 | 0.166777 | 0.132761 | 0.098745 | 0.098745 | 0 | 0.007727 | 0.151481 | 4,423 | 179 | 111 | 24.709497 | 0.799094 | 0.09428 | 0 | 0.186441 | 0 | 0.008475 | 0.114643 | 0.006258 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.033898 | 0.042373 | null | null | 0.033898 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
2fecbec3ea844d75351bdec7e7544b91ed9a5c0f | 5,377 | py | Python | turbogears/identity/__init__.py | timmartin19/turbogears | b5420cb7e55757d418d8fadb512dbd7803c4279c | [
"MIT"
] | null | null | null | turbogears/identity/__init__.py | timmartin19/turbogears | b5420cb7e55757d418d8fadb512dbd7803c4279c | [
"MIT"
] | 9 | 2015-01-27T19:13:56.000Z | 2019-03-29T14:44:31.000Z | turbogears/identity/__init__.py | timmartin19/turbogears | b5420cb7e55757d418d8fadb512dbd7803c4279c | [
"MIT"
] | 13 | 2015-04-14T14:15:53.000Z | 2020-03-18T01:05:46.000Z | """The TurboGears identity management package.
@TODO: Laundry list of things yet to be done:
* IdentityFilter should support HTTP Digest Auth
* Also want to support Atom authentication (similar to digest)
"""
import md5
import sha
import threading
import cherrypy
import pkg_resources
import logging
log = lo... | 29.872222 | 77 | 0.693323 | 573 | 5,377 | 6.30192 | 0.314136 | 0.034893 | 0.025478 | 0.014954 | 0.114096 | 0.093603 | 0.054279 | 0.054279 | 0.054279 | 0 | 0 | 0.003162 | 0.235447 | 5,377 | 179 | 78 | 30.039106 | 0.875213 | 0.205505 | 0 | 0.218182 | 0 | 0 | 0.104396 | 0.028906 | 0 | 0 | 0 | 0.005587 | 0 | 1 | 0.1 | false | 0.127273 | 0.090909 | 0.009091 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
2ff78d516c823f15f600df49466d0a7555ce91e3 | 1,443 | py | Python | extract_data.py | COOLMSF/steganography_in_execuateble | 8d5e9bb5e0aa3186d030b9665140f7b0e13fa363 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | extract_data.py | COOLMSF/steganography_in_execuateble | 8d5e9bb5e0aa3186d030b9665140f7b0e13fa363 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | extract_data.py | COOLMSF/steganography_in_execuateble | 8d5e9bb5e0aa3186d030b9665140f7b0e13fa363 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | import sys
import r2pipe
def extract_ehframe(infile, outfile):
# store needed (eh_frame) sessions
ehframe_sessions = []
r2 = r2pipe.open(infile)
r2.cmd("aaa")
allsessions = r2.cmd("iS").split('\n')
for allsession in allsessions:
if "eh_frame" in allsession:
ehframe_session... | 32.795455 | 112 | 0.665281 | 196 | 1,443 | 4.607143 | 0.341837 | 0.20155 | 0.126246 | 0.152824 | 0.258029 | 0.124031 | 0.088594 | 0.088594 | 0.088594 | 0 | 0 | 0.025974 | 0.199584 | 1,443 | 43 | 113 | 33.55814 | 0.755844 | 0.148302 | 0 | 0 | 0 | 0 | 0.125307 | 0.039312 | 0 | 0 | 0.004914 | 0 | 0 | 1 | 0.035714 | false | 0 | 0.071429 | 0 | 0.107143 | 0.25 | 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 |
2ffe8b31f022112360acf7ffbc5e954d36940ed8 | 3,299 | py | Python | itsjustcode/language.py | ellerbus/itscode | 07d546e6dc03d1fb978f6ba65a13bd00c14171fb | [
"MIT"
] | 2 | 2019-10-05T14:39:12.000Z | 2020-04-30T10:55:11.000Z | itsjustcode/language.py | ellerbus/itscode | 07d546e6dc03d1fb978f6ba65a13bd00c14171fb | [
"MIT"
] | 4 | 2020-03-24T18:21:17.000Z | 2021-06-02T01:12:52.000Z | itsjustcode/language.py | ellerbus/itscode | 07d546e6dc03d1fb978f6ba65a13bd00c14171fb | [
"MIT"
] | null | null | null | import re
class LanguageRule(object):
__slots__ = ['regex', 'replace']
def __init__(self, rule, replace):
self.regex = re.compile(rule, re.IGNORECASE)
self.replace = replace
PLURAL_RULES = [
# https://github.com/rails/rails/blob/master/activesupport/lib/active_support/inflections.rb
... | 35.858696 | 96 | 0.578357 | 477 | 3,299 | 3.97065 | 0.30608 | 0.398099 | 0.103485 | 0.110876 | 0.348469 | 0.259768 | 0.181626 | 0.181626 | 0.181626 | 0.181626 | 0 | 0.017272 | 0.157624 | 3,299 | 91 | 97 | 36.252747 | 0.664268 | 0.054865 | 0 | 0.050633 | 0 | 0.012658 | 0.287319 | 0.036276 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037975 | false | 0 | 0.012658 | 0 | 0.126582 | 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 |
64039735f69b347901187cc9656e02e8d1a91ee2 | 626 | py | Python | smartagent/tests.py | jamespacileo/django-smartagent | 568a8843744b138199f72c14b68ed2f1ec841571 | [
"MIT"
] | 4 | 2015-06-30T11:24:14.000Z | 2018-06-03T05:32:18.000Z | smartagent/tests.py | jamespacileo/django-smartagent | 568a8843744b138199f72c14b68ed2f1ec841571 | [
"MIT"
] | null | null | null | smartagent/tests.py | jamespacileo/django-smartagent | 568a8843744b138199f72c14b68ed2f1ec841571 | [
"MIT"
] | null | null | null | from django.test import TestCase
from smartagent.utils import detect_user_agent
class BrowserDetectionTest(TestCase):
def test_user_agent_recognition(self):
user_agent_list = {
"Mozilla/5.0 (iPad; U; CPU OS 4_2_1 like Mac OS X; en-us) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mo... | 29.809524 | 157 | 0.65016 | 85 | 626 | 4.564706 | 0.611765 | 0.208763 | 0.07732 | 0.092784 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053191 | 0.249201 | 626 | 20 | 158 | 31.3 | 0.77234 | 0 | 0 | 0 | 0 | 0.083333 | 0.28 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 1 | 0.083333 | false | 0 | 0.166667 | 0 | 0.333333 | 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 |
6406d9eae9ecdeaaae5cf316a5a043b976f1ae6c | 3,327 | py | Python | Py_files_RSA/key_generate.py | Jimmy5467/RSA | a43b3de0d9433fe7d3586342f5878fa5bca0a587 | [
"MIT"
] | 1 | 2021-05-08T09:31:53.000Z | 2021-05-08T09:31:53.000Z | Py_files_RSA/key_generate.py | Jimmy5467/RSA | a43b3de0d9433fe7d3586342f5878fa5bca0a587 | [
"MIT"
] | null | null | null | Py_files_RSA/key_generate.py | Jimmy5467/RSA | a43b3de0d9433fe7d3586342f5878fa5bca0a587 | [
"MIT"
] | null | null | null | import random
def rabinMiller(n, d):
a = random.randint(2, (n - 2) - 2)
x = pow(a, int(d), n)
if x == 1 or x == n - 1:
return True
# square x
while d != n - 1:
x = pow(x, 2, n)
d *= 2
if x == 1:
return False
elif x == n - 1:
return ... | 20.537037 | 117 | 0.475804 | 527 | 3,327 | 2.979127 | 0.457306 | 0.010191 | 0.02293 | 0.011465 | 0.061147 | 0.044586 | 0.044586 | 0.044586 | 0.044586 | 0 | 0 | 0.248203 | 0.372708 | 3,327 | 162 | 118 | 20.537037 | 0.504073 | 0.002405 | 0 | 0.139241 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.101266 | false | 0 | 0.012658 | 0.012658 | 0.303797 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.