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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cca536eb34e22b4168fb18e7e07afbd935b58a30 | 10,356 | py | Python | tests/test_map/test_map_dict_parameter.py | santiagobasulto/parallel | 7e729ca720bbdacdb656f6ab19baa5f2d33341d6 | [
"MIT"
] | 22 | 2019-06-10T21:16:16.000Z | 2022-03-27T04:36:15.000Z | tests/test_map/test_map_dict_parameter.py | santiagobasulto/parallel | 7e729ca720bbdacdb656f6ab19baa5f2d33341d6 | [
"MIT"
] | 5 | 2019-06-15T23:12:53.000Z | 2020-12-02T08:53:51.000Z | tests/test_map/test_map_dict_parameter.py | santiagobasulto/parallel | 7e729ca720bbdacdb656f6ab19baa5f2d33341d6 | [
"MIT"
] | null | null | null | import pytest
import parallel
from parallel.models import ParallelJob
from ..base import *
# Tests:
####################
# Single Parameter #
####################
def test_map_dict_basic_single_param():
results = parallel.map(sleep_return_single_param, {
'r1': .2,
'r2': .3
})
assert resu... | 28.141304 | 118 | 0.443221 | 1,000 | 10,356 | 4.404 | 0.102 | 0.024523 | 0.045413 | 0.099909 | 0.771117 | 0.745232 | 0.675976 | 0.586966 | 0.547003 | 0.509537 | 0 | 0.026126 | 0.24971 | 10,356 | 368 | 119 | 28.141304 | 0.540669 | 0.067401 | 0 | 0.671756 | 0 | 0 | 0.10773 | 0 | 0 | 0 | 0 | 0 | 0.091603 | 1 | 0.076336 | false | 0 | 0.015267 | 0 | 0.091603 | 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 |
cca53c33de7869782daa1f9c17454a29fcf073ca | 1,736 | py | Python | src/drovirt/models/tasks.py | Storware/drovirt | 4726b237e2f8940a652e2b773ace0742bb788192 | [
"MIT"
] | 22 | 2018-10-19T13:40:56.000Z | 2021-05-11T08:39:37.000Z | src/drovirt/models/tasks.py | Storware/drovirt | 4726b237e2f8940a652e2b773ace0742bb788192 | [
"MIT"
] | 12 | 2019-02-11T15:07:53.000Z | 2019-02-11T15:21:33.000Z | src/drovirt/models/tasks.py | Storware/drovirt | 4726b237e2f8940a652e2b773ace0742bb788192 | [
"MIT"
] | 7 | 2018-12-10T14:17:49.000Z | 2022-02-03T23:43:51.000Z |
import enum
import logging
from sqlalchemy.sql import func
from drovirt.models.base import db, SerializerMixin
from drovirt.models.node import Node
logger = logging.getLogger(__name__)
class TaskStatus(enum.Enum):
QUEUED = "QUEUED"
ACTIVE = "ACTIVE"
COMPLETED = "COMPLETED"
FAILED = "FAILED"
class... | 36.93617 | 89 | 0.710829 | 232 | 1,736 | 5.215517 | 0.25431 | 0.105785 | 0.132231 | 0.089256 | 0.456198 | 0.401653 | 0.353719 | 0.287603 | 0.287603 | 0.287603 | 0 | 0.008719 | 0.141129 | 1,736 | 46 | 90 | 37.73913 | 0.802817 | 0.043779 | 0 | 0.242424 | 0 | 0 | 0.050663 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.151515 | 0 | 0.969697 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ccabfbad0d3cd4274e894c193c8418e6b4b488c8 | 6,209 | py | Python | price_analysis/fit.py | kevaundray/research | 16f20848c614b580071fed3d2ff1dc69688fa4f4 | [
"MIT"
] | 1,351 | 2015-09-22T08:17:10.000Z | 2022-03-31T22:48:07.000Z | price_analysis/fit.py | kevaundray/research | 16f20848c614b580071fed3d2ff1dc69688fa4f4 | [
"MIT"
] | 42 | 2016-08-31T14:43:29.000Z | 2021-12-05T23:10:31.000Z | price_analysis/fit.py | LaudateCorpus1/research | 6e8b7b367e7f1b18b4b92151df01dfeaa0774a23 | [
"MIT"
] | 334 | 2015-09-20T10:15:23.000Z | 2022-03-28T17:46:57.000Z | import spread
import math
import random
o = spread.declutter(spread.load('diff_txs_price.csv'))
diffs = [float(q[2]) for q in o]
prices = [float(q[1]) for q in o]
txs = [float(q[3]) for q in o]
txfees = [float(q[4]) for q in o]
def simple_estimator(fac):
o = [1]
for i in range(1, len(diffs)):
o.appe... | 33.026596 | 112 | 0.514092 | 1,017 | 6,209 | 3.122911 | 0.127827 | 0.027078 | 0.051008 | 0.093514 | 0.517317 | 0.479219 | 0.436713 | 0.393577 | 0.362406 | 0.339106 | 0 | 0.063998 | 0.30794 | 6,209 | 187 | 113 | 33.203209 | 0.675122 | 0.013529 | 0 | 0.396226 | 0 | 0 | 0.006535 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.018868 | null | null | 0.012579 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ccaeff9e7164c57b70d133443cfcce909055a52e | 383 | py | Python | mainproject/vote/admin.py | Amithnc/Votechain | 7c0939afc5e2c0d747367d548e1dd50ce6072444 | [
"MIT"
] | 2 | 2021-02-03T04:03:01.000Z | 2021-05-18T21:55:22.000Z | mainproject/vote/admin.py | Amithnc/Votechain | 7c0939afc5e2c0d747367d548e1dd50ce6072444 | [
"MIT"
] | null | null | null | mainproject/vote/admin.py | Amithnc/Votechain | 7c0939afc5e2c0d747367d548e1dd50ce6072444 | [
"MIT"
] | null | null | null | from django.contrib import admin
# Register your models here.
from .models import voter_data,results_publish_status,transactions,parties
class transactionsAdmin(admin.ModelAdmin):
list_display = ('checksum','catagory')
admin.site.register(voter_data)
admin.site.register(results_publish_status)
admin.site.regist... | 29.461538 | 74 | 0.830287 | 47 | 383 | 6.617021 | 0.510638 | 0.115756 | 0.21865 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075718 | 383 | 13 | 75 | 29.461538 | 0.878531 | 0.067885 | 0 | 0 | 0 | 0 | 0.044944 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.5 | 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 |
ccaf9cc075f1d2ed0615761eb58e67321061531d | 912 | py | Python | pdfSplitter/pdf2htmlEX/test/old/test.py | mackymiro/primo-tpccr | a0db409bb7e72911cffc59e771fa0d98c978d3b3 | [
"MIT"
] | null | null | null | pdfSplitter/pdf2htmlEX/test/old/test.py | mackymiro/primo-tpccr | a0db409bb7e72911cffc59e771fa0d98c978d3b3 | [
"MIT"
] | null | null | null | pdfSplitter/pdf2htmlEX/test/old/test.py | mackymiro/primo-tpccr | a0db409bb7e72911cffc59e771fa0d98c978d3b3 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
DIR = 'pdf'
#DIR = '../../pdf.js/test/pdfs'
import os
import sys
with open('out.html','w') as outf:
outf.write('<!DOCTYPE html>\n<html><head><meta charset=\"utf-8\"></head><body><div style="position:absolute;top:0;left:0;width:80%;height:100%;"><iframe width="100%" height="100%" name="pdf">... | 36.48 | 311 | 0.576754 | 142 | 912 | 3.704225 | 0.584507 | 0.051331 | 0.060837 | 0.091255 | 0.106464 | 0.106464 | 0 | 0 | 0 | 0 | 0 | 0.043011 | 0.184211 | 912 | 24 | 312 | 38 | 0.663978 | 0.054825 | 0 | 0 | 0 | 0.125 | 0.566279 | 0.360465 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.125 | null | null | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ccb0511123fcf03155a253cdf7eb270678c4460b | 3,115 | py | Python | code/pyseg/factory/visitor.py | anmartinezs/pyseg_system | 5bb07c7901062452a34b73f376057cabc15a13c3 | [
"Apache-2.0"
] | 12 | 2020-01-08T01:33:02.000Z | 2022-03-16T00:25:34.000Z | code/pyseg/factory/visitor.py | anmartinezs/pyseg_system | 5bb07c7901062452a34b73f376057cabc15a13c3 | [
"Apache-2.0"
] | 8 | 2019-12-19T19:34:56.000Z | 2022-03-10T10:11:28.000Z | code/pyseg/factory/visitor.py | anmartinezs/pyseg_system | 5bb07c7901062452a34b73f376057cabc15a13c3 | [
"Apache-2.0"
] | 2 | 2022-03-30T13:12:22.000Z | 2022-03-30T18:12:10.000Z | """
Classes for implementing the visitors used by graph_tool package
# Author: Antonio Martinez-Sanchez (Max Planck Institute for Biochemistry)
# Date: 27.11.14
"""
__author__ = 'martinez'
__version__ = "$Revision: 002 $"
__author__ = 'martinez'
import graph_tool.all as gt
#########################################... | 34.230769 | 101 | 0.624398 | 394 | 3,115 | 4.642132 | 0.360406 | 0.059049 | 0.042646 | 0.022963 | 0.048114 | 0.029524 | 0.029524 | 0 | 0 | 0 | 0 | 0.008024 | 0.239807 | 3,115 | 91 | 102 | 34.230769 | 0.764358 | 0.414125 | 0 | 0.136364 | 0 | 0 | 0.020075 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.045455 | 0.022727 | 0.022727 | 0.340909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ccb666923c5b564cf64f3482a83757108a75e259 | 739 | py | Python | modules/AIController/taskWorkflow/defaultOptions.py | junxnone/aerial_wildlife_detection | 0eebed2aaf926ceb212b6a2b7a75bb0a82b28a88 | [
"MIT"
] | 1 | 2021-12-28T13:36:20.000Z | 2021-12-28T13:36:20.000Z | modules/AIController/taskWorkflow/defaultOptions.py | junxnone/aerial_wildlife_detection | 0eebed2aaf926ceb212b6a2b7a75bb0a82b28a88 | [
"MIT"
] | null | null | null | modules/AIController/taskWorkflow/defaultOptions.py | junxnone/aerial_wildlife_detection | 0eebed2aaf926ceb212b6a2b7a75bb0a82b28a88 | [
"MIT"
] | null | null | null | '''
Contains keyword arguments and their default values
for workflows. Used to auto-complete arguments that
are missing in submitted workflows.
Workflow items with all the given arguments are then
parsed into actual Celery workflows by the workflow
designer.
2020 Benjamin Kellenberger
'''
... | 27.37037 | 56 | 0.631935 | 85 | 739 | 5.270588 | 0.670588 | 0.053571 | 0.053571 | 0.066964 | 0.160714 | 0.160714 | 0.160714 | 0.160714 | 0.160714 | 0.160714 | 0 | 0.016791 | 0.274696 | 739 | 27 | 57 | 27.37037 | 0.81903 | 0.404601 | 0 | 0.266667 | 0 | 0 | 0.427861 | 0.11194 | 0 | 0 | 0 | 0.037037 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ccb6801b64d2cba7b36c4652beaf562e21a6ee3f | 2,139 | py | Python | src/viewer/app/admin.py | ozacas/asxtrade | a3645ae526bfc7a546fdf2a39520feda99e3390a | [
"Apache-2.0"
] | 8 | 2021-03-20T13:12:25.000Z | 2022-02-07T11:17:40.000Z | src/viewer/app/admin.py | ozacas/asxtrade | a3645ae526bfc7a546fdf2a39520feda99e3390a | [
"Apache-2.0"
] | 8 | 2021-03-07T03:23:46.000Z | 2021-06-01T10:49:56.000Z | src/viewer/app/admin.py | ozacas/asxtrade | a3645ae526bfc7a546fdf2a39520feda99e3390a | [
"Apache-2.0"
] | 3 | 2020-12-08T10:22:23.000Z | 2021-08-04T01:59:24.000Z | from django.contrib import admin
from app.models import (
Quotation,
Security,
CompanyDetails,
VirtualPurchase,
Watchlist,
Sector,
MarketQuoteCache
)
from app.paginator import NoCountPaginator
@admin.register(Quotation)
class QuoteAdmin(admin.ModelAdmin):
#date_hierarchy = 'year_high_da... | 35.065574 | 93 | 0.698457 | 229 | 2,139 | 6.213974 | 0.423581 | 0.063949 | 0.054814 | 0.05903 | 0.116655 | 0.033732 | 0 | 0 | 0 | 0 | 0 | 0.00168 | 0.16503 | 2,139 | 60 | 94 | 35.65 | 0.795073 | 0.152408 | 0 | 0 | 0 | 0 | 0.250554 | 0.023282 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.069767 | 0 | 0.581395 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ccb7fa5638d5c0ef66ca15b56fed0e8aa8e79d6f | 1,250 | py | Python | bookworm/gui/book_viewer/menu_constants.py | xingkong0113/bookworm | 7214067f48e7a951198806a1f9170e3fd8fc0cce | [
"MIT"
] | 36 | 2020-11-15T03:21:39.000Z | 2022-03-05T01:11:26.000Z | bookworm/gui/book_viewer/menu_constants.py | xingkong0113/bookworm | 7214067f48e7a951198806a1f9170e3fd8fc0cce | [
"MIT"
] | 90 | 2020-10-06T14:46:07.000Z | 2022-03-31T03:03:34.000Z | bookworm/gui/book_viewer/menu_constants.py | xingkong0113/bookworm | 7214067f48e7a951198806a1f9170e3fd8fc0cce | [
"MIT"
] | 20 | 2020-09-30T17:40:44.000Z | 2022-03-17T19:59:53.000Z | # coding: utf-8
import wx
import enum
class BookRelatedMenuIds(enum.IntEnum):
"""Declares menu ids for items which are enabled/disabled
based on whether a book is loaded or not.
"""
# File
export = wx.ID_SAVEAS
pin_document = 205
closeCurrentFile = 211
# Tools
goToPage = 221
... | 23.584906 | 62 | 0.6824 | 140 | 1,250 | 6.014286 | 0.6 | 0.028504 | 0.045131 | 0.054632 | 0.068884 | 0.068884 | 0 | 0 | 0 | 0 | 0 | 0.047325 | 0.2224 | 1,250 | 52 | 63 | 24.038462 | 0.81893 | 0.1504 | 0 | 0 | 0 | 0 | 0.069364 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.617647 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ccd070f02fb57ab432a1c5bbe2e93e3be5471d77 | 266 | py | Python | api/users/urls.py | remisharoon/sadaqah | bf0ef387989b9034238b28d1d950303293abb114 | [
"Unlicense"
] | null | null | null | api/users/urls.py | remisharoon/sadaqah | bf0ef387989b9034238b28d1d950303293abb114 | [
"Unlicense"
] | null | null | null | api/users/urls.py | remisharoon/sadaqah | bf0ef387989b9034238b28d1d950303293abb114 | [
"Unlicense"
] | null | null | null | # -*- coding: utf-8 -*-
from rest_framework import routers
from .views import UserViewSet, GroupViewSet
router = routers.SimpleRouter(trailing_slash=False)
router.register(r'users', UserViewSet)
router.register(r'groups', GroupViewSet)
urlpatterns = router.urls
| 22.166667 | 51 | 0.781955 | 32 | 266 | 6.4375 | 0.6875 | 0.135922 | 0.145631 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004202 | 0.105263 | 266 | 11 | 52 | 24.181818 | 0.861345 | 0.078947 | 0 | 0 | 0 | 0 | 0.045267 | 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 |
ccd282df469508dc7b3909fa2d31e84fd3f2f959 | 1,685 | py | Python | scripts/buildDb.py | jmolloy/pedigree | 4f02647d8237cc19cff3c20584c0fdd27b14a7d4 | [
"0BSD"
] | 37 | 2015-01-11T20:08:48.000Z | 2022-01-06T17:25:22.000Z | scripts/buildDb.py | jmolloy/pedigree | 4f02647d8237cc19cff3c20584c0fdd27b14a7d4 | [
"0BSD"
] | 4 | 2016-05-20T01:01:59.000Z | 2016-06-22T00:03:27.000Z | scripts/buildDb.py | jmolloy/pedigree | 4f02647d8237cc19cff3c20584c0fdd27b14a7d4 | [
"0BSD"
] | 6 | 2015-09-14T14:44:20.000Z | 2019-01-11T09:52:21.000Z | #! /usr/bin/env python
# coding=utf8
#
# Copyright (c) 2008 James Molloy, Jörg Pfähler, Matthew Iselin
#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#... | 32.403846 | 127 | 0.703858 | 245 | 1,685 | 4.840816 | 0.57551 | 0.030354 | 0.011804 | 0.023609 | 0.038786 | 0.038786 | 0.038786 | 0 | 0 | 0 | 0 | 0.004326 | 0.176855 | 1,685 | 51 | 128 | 33.039216 | 0.850757 | 0.518101 | 0 | 0 | 0 | 0 | 0.192938 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.173913 | null | null | 0.086957 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ccd5c9b6cc0d02b976269f5bb481093cb35069d2 | 1,684 | py | Python | examples/example1.py | kyadamos/uciAPC | 77dd6716a8a1d5fccca4531b389973464b6e3dc0 | [
"MIT"
] | null | null | null | examples/example1.py | kyadamos/uciAPC | 77dd6716a8a1d5fccca4531b389973464b6e3dc0 | [
"MIT"
] | 2 | 2021-09-28T01:10:14.000Z | 2022-02-26T06:53:10.000Z | examples/example1.py | kyadamos/uciAPC | 77dd6716a8a1d5fccca4531b389973464b6e3dc0 | [
"MIT"
] | null | null | null | '''
A simple example of how to run SimGlucose. See:
https://github.com/rland93/uciAPC/wiki/Simulation-with-simGlucose
'''
from simglucose.patient.t1dpatient import T1DPatient
from simglucose.simulation.sim_engine import SimObj, sim
from simglucose.sensor.cgm import CGMSensor, CGMNoise
from simglucose.actuator.pump impo... | 33.019608 | 101 | 0.764846 | 218 | 1,684 | 5.770642 | 0.440367 | 0.077901 | 0.057234 | 0.028617 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012587 | 0.150831 | 1,684 | 51 | 102 | 33.019608 | 0.867133 | 0 | 0 | 0 | 0 | 0 | 0.017151 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.222222 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ccd5e566aec7ab959552d9c87ea1fc22438d9563 | 2,487 | py | Python | ideas/mike/example.py | mattions/libNeuroML | c623292c7832c84421d55799efdbd7711cca54ae | [
"BSD-3-Clause"
] | 1 | 2016-05-01T13:07:41.000Z | 2016-05-01T13:07:41.000Z | ideas/mike/example.py | mattions/libNeuroML | c623292c7832c84421d55799efdbd7711cca54ae | [
"BSD-3-Clause"
] | null | null | null | ideas/mike/example.py | mattions/libNeuroML | c623292c7832c84421d55799efdbd7711cca54ae | [
"BSD-3-Clause"
] | null | null | null | #
# Hypothetical Example of using libNeuroML and neuroSim APIs for setting up a model and running
# a simulation.
#
from libNeuroML import morphology
from libNeuroML.currents import ionchannels
from libNeuroML.currents import patch
from neuroSim import simulators
soma=morphology.Section(tag='Soma')
dend1=morphology.S... | 29.963855 | 95 | 0.802573 | 365 | 2,487 | 5.430137 | 0.479452 | 0.042886 | 0.050454 | 0.028254 | 0.041372 | 0.041372 | 0.041372 | 0.041372 | 0.041372 | 0.041372 | 0 | 0.020796 | 0.110575 | 2,487 | 82 | 96 | 30.329268 | 0.875226 | 0.441094 | 0 | 0 | 0 | 0 | 0.070744 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.108108 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
aea04da29caa3696739f9c6640c6aa32d8ceda23 | 768 | py | Python | mt/migrations/0003_auto_20190422_2118.py | JahanviNShah/inmt | 730faf6dcd24536bbffd0ec463c61d3b0a7819cd | [
"MIT"
] | 39 | 2020-04-14T09:41:41.000Z | 2022-02-21T14:32:06.000Z | mt/migrations/0003_auto_20190422_2118.py | JahanviNShah/inmt | 730faf6dcd24536bbffd0ec463c61d3b0a7819cd | [
"MIT"
] | 17 | 2020-05-11T23:44:57.000Z | 2021-02-17T10:53:15.000Z | mt/migrations/0003_auto_20190422_2118.py | JahanviNShah/inmt | 730faf6dcd24536bbffd0ec463c61d3b0a7819cd | [
"MIT"
] | 20 | 2020-04-14T11:22:43.000Z | 2021-11-25T03:57:21.000Z | # Generated by Django 2.2 on 2019-04-22 15:48
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('mt', '0002_auto_20190422_2... | 28.444444 | 112 | 0.643229 | 79 | 768 | 6.126582 | 0.620253 | 0.049587 | 0.057851 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053356 | 0.24349 | 768 | 26 | 113 | 29.538462 | 0.77969 | 0.05599 | 0 | 0.1 | 1 | 0 | 0.130014 | 0.031812 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.15 | 0 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
aea78010f8fe05ee822d92d4f300b2182300406d | 2,111 | py | Python | commerson_driver.py | TeddyRobotics/Commerson-Driver | 64caff9e65c4b059e7fd80c1fb39374de65b0fd7 | [
"MIT",
"Unlicense"
] | null | null | null | commerson_driver.py | TeddyRobotics/Commerson-Driver | 64caff9e65c4b059e7fd80c1fb39374de65b0fd7 | [
"MIT",
"Unlicense"
] | null | null | null | commerson_driver.py | TeddyRobotics/Commerson-Driver | 64caff9e65c4b059e7fd80c1fb39374de65b0fd7 | [
"MIT",
"Unlicense"
] | null | null | null | #!/usr/bin/env python
# encoding: utf-8
"""Commerson driver that allows communication with the LX15D motors"""
# Copyright (c) 2019 Teddy Robotics LLC
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in t... | 39.092593 | 79 | 0.688773 | 294 | 2,111 | 4.843537 | 0.493197 | 0.061798 | 0.023174 | 0.023876 | 0.02809 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013092 | 0.240171 | 2,111 | 53 | 80 | 39.830189 | 0.874688 | 0.549503 | 0 | 0 | 0 | 0 | 0.010811 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.090909 | 0 | 0.409091 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
aeaa02457db9b0236be41af08df7940a135fedb1 | 3,602 | py | Python | pisces/ttls/config.py | danieljohnlewis/pisces | 7e7ed9c87692c01b591e14db73a3a7047992e91c | [
"MIT"
] | 1 | 2021-02-03T23:05:19.000Z | 2021-02-03T23:05:19.000Z | pisces/ttls/config.py | danieljohnlewis/pisces | 7e7ed9c87692c01b591e14db73a3a7047992e91c | [
"MIT"
] | null | null | null | pisces/ttls/config.py | danieljohnlewis/pisces | 7e7ed9c87692c01b591e14db73a3a7047992e91c | [
"MIT"
] | 1 | 2017-04-05T16:11:11.000Z | 2017-04-05T16:11:11.000Z | """Some common support routines for client and server"""
import pisces.spkilib.config
from pisces import spkilib
from pisces.spkilib import spki, verify, sexp, database, store, \
sexpsocket
import sys
import getopt
import string
import ConfigParser
class Options(spkilib.config.Options):
# A random assortmen... | 32.45045 | 74 | 0.571904 | 408 | 3,602 | 4.985294 | 0.348039 | 0.034415 | 0.039331 | 0.021632 | 0.061455 | 0.034907 | 0.034907 | 0 | 0 | 0 | 0 | 0.007386 | 0.323431 | 3,602 | 110 | 75 | 32.745455 | 0.827247 | 0.069684 | 0 | 0.046512 | 0 | 0 | 0.033982 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.081395 | 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 |
aeafa425cc11072bfb7a8b1865c1abecf7aa422d | 889 | py | Python | contacts/models.py | laodeaksar/post | 739727c8c175b914c9b580c8a95a60bc1e112a7e | [
"MIT"
] | 1 | 2021-03-29T06:30:27.000Z | 2021-03-29T06:30:27.000Z | contacts/models.py | laodeaksar/post | 739727c8c175b914c9b580c8a95a60bc1e112a7e | [
"MIT"
] | 6 | 2021-04-08T21:45:40.000Z | 2022-03-12T00:48:04.000Z | contacts/models.py | laodeaksar/post | 739727c8c175b914c9b580c8a95a60bc1e112a7e | [
"MIT"
] | null | null | null | from django.db import models
STATUS = (
(1, 'New'),
(2, 'Read'),
)
class Signup(models.Model):
email = models.EmailField()
timestamp = models.DateTimeField(auto_now_add=True)
def __str__(self):
return self.email
class Meta:
verbose_name = "Subscriber"
verbose_name_pl... | 24.027027 | 59 | 0.669291 | 104 | 889 | 5.5 | 0.471154 | 0.076923 | 0.120629 | 0.136364 | 0.192308 | 0.192308 | 0 | 0 | 0 | 0 | 0 | 0.018759 | 0.220472 | 889 | 36 | 60 | 24.694444 | 0.806638 | 0 | 0 | 0.148148 | 0 | 0 | 0.057368 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0.037037 | 0.074074 | 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 |
aec44eca8eb890daf0347ba60f3fc9678354fa4a | 7,843 | py | Python | src/log.py | nirmeshk/mase | c31fb41f39bb7a333f6fd33aa43fa0b23531030a | [
"Unlicense"
] | 9 | 2015-08-23T01:46:56.000Z | 2019-04-25T00:48:21.000Z | src/log.py | sadiaTab/mase | 95339dbb045c0613b40d69de9774368c0a2eb5ae | [
"Unlicense"
] | 20 | 2015-08-08T03:39:25.000Z | 2015-11-03T22:22:56.000Z | src/log.py | sadiaTab/mase | 95339dbb045c0613b40d69de9774368c0a2eb5ae | [
"Unlicense"
] | 43 | 2015-05-08T05:55:41.000Z | 2020-04-27T14:13:26.000Z | """## Log Stuff
Logs are places to store records of past events. There are two types of logs:
+ _Num_ : for numbers
+ _Sym_ : for everything else.
Those logs can be queried to find e.g. the highest
and lowest value of the number seen so far. Alternatively,
they can be queried to return values at the same probabilit... | 30.636719 | 126 | 0.636236 | 1,296 | 7,843 | 3.779321 | 0.311728 | 0.01715 | 0.0147 | 0.007962 | 0.046141 | 0.028175 | 0.028175 | 0.028175 | 0.028175 | 0 | 0 | 0.05476 | 0.243274 | 7,843 | 255 | 127 | 30.756863 | 0.770514 | 0.02244 | 0 | 0.086957 | 0 | 0 | 0.036271 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.017391 | 0.043478 | null | null | 0.034783 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
aed0ad5ee4096a609b8844b2b41d2a73150670dd | 621 | py | Python | covertrace/utils/canvas.py | braysia/covertrace | cb3f91964bd7b524eb10bfce972136eb921ab689 | [
"MIT"
] | null | null | null | covertrace/utils/canvas.py | braysia/covertrace | cb3f91964bd7b524eb10bfce972136eb921ab689 | [
"MIT"
] | null | null | null | covertrace/utils/canvas.py | braysia/covertrace | cb3f91964bd7b524eb10bfce972136eb921ab689 | [
"MIT"
] | 5 | 2016-09-26T00:41:39.000Z | 2018-04-03T23:31:05.000Z |
import numpy as np
import matplotlib.pyplot as plt
class CanvasMatplot(object):
pad = 2.0
w_pad = 0.5
h_pad = 2.0
figsize = (15, 5)
num_row = 1
sharey = True
def __init__(self):
pass
def make_axes(self, len_sites):
nrow, ncol = self.num_row, int(np.ceil(len_sites/sel... | 24.84 | 86 | 0.640902 | 97 | 621 | 3.927835 | 0.474227 | 0.031496 | 0.026247 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021277 | 0.243156 | 621 | 24 | 87 | 25.875 | 0.789362 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.055556 | 0.111111 | 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 |
aed28d8b47c9a21cff837af6ca0acc018ac76f88 | 796 | py | Python | system/models.py | mmesiti/cogs3 | c48cd48629570f418b93aec73de49bc2fb59edc2 | [
"MIT"
] | null | null | null | system/models.py | mmesiti/cogs3 | c48cd48629570f418b93aec73de49bc2fb59edc2 | [
"MIT"
] | 9 | 2019-08-01T09:50:34.000Z | 2019-08-14T16:24:31.000Z | system/models.py | mmesiti/cogs3 | c48cd48629570f418b93aec73de49bc2fb59edc2 | [
"MIT"
] | null | null | null | from django.db import models
from institution.models import Institution
class System(models.Model):
name = models.CharField(max_length=128, unique=True)
description = models.CharField(max_length=512)
number_of_cores = models.PositiveIntegerField()
created_time = models.DateTimeField(auto_now_add=True... | 25.677419 | 62 | 0.703518 | 87 | 796 | 6.229885 | 0.505747 | 0.062731 | 0.066421 | 0.088561 | 0.110701 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009509 | 0.207286 | 796 | 30 | 63 | 26.533333 | 0.849445 | 0 | 0 | 0.090909 | 0 | 0 | 0.059045 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.090909 | 0.045455 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
aeda3252befcfe5d1a1742e7006b1ed7b1436a4a | 846 | py | Python | sitesearch/scorers.py | lanceleonard/redis-sitesearch | 7115d5a5b470bf716d1e7d56c8e8fd311138b601 | [
"MIT"
] | 23 | 2020-10-22T05:03:51.000Z | 2022-01-17T23:25:25.000Z | sitesearch/scorers.py | lanceleonard/redis-sitesearch | 7115d5a5b470bf716d1e7d56c8e8fd311138b601 | [
"MIT"
] | 3 | 2021-07-16T18:28:55.000Z | 2021-10-19T04:56:36.000Z | sitesearch/scorers.py | lanceleonard/redis-sitesearch | 7115d5a5b470bf716d1e7d56c8e8fd311138b601 | [
"MIT"
] | 9 | 2020-12-10T17:26:15.000Z | 2022-02-11T09:03:46.000Z | import math
from sitesearch.models import SearchDocument, TYPE_PAGE
# The minimum score we'll allow a document to have. RediSearch
# multiplies the TF-IDF score by the document score at query
# time, so we want to avoid dropping the document score down
# to 0.0.
SCORE_FLOOR = 0.01
def boost_pages(doc: SearchDocumen... | 31.333333 | 78 | 0.722222 | 129 | 846 | 4.627907 | 0.503876 | 0.100503 | 0.053601 | 0.097152 | 0.147404 | 0.147404 | 0.147404 | 0 | 0 | 0 | 0 | 0.01757 | 0.192671 | 846 | 26 | 79 | 32.538462 | 0.856515 | 0.416076 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
aeed7fe32dd5ecc5c1596709e15b87baf71d5a00 | 44,472 | py | Python | api-tornado.py | aixiwang/iotdmf | 735b5a67a27b992b108042f2ad5f2a81a528c4ab | [
"MIT"
] | 1 | 2016-02-10T16:32:39.000Z | 2016-02-10T16:32:39.000Z | api-tornado.py | aixiwang/iotdmf | 735b5a67a27b992b108042f2ad5f2a81a528c4ab | [
"MIT"
] | null | null | null | api-tornado.py | aixiwang/iotdmf | 735b5a67a27b992b108042f2ad5f2a81a528c4ab | [
"MIT"
] | null | null | null | #-----------------------------------------------------------
# -*- coding: utf-8 -*-
#-----------------------------------------------------------
# Copyright(c) 2015-2016 by Aixi Wang <aixi.wang@hotmail.com>
#-----------------------------------------------------------
from tornado.httpserver import HTTPServer
import... | 29.277156 | 105 | 0.436432 | 4,522 | 44,472 | 4.122733 | 0.095975 | 0.035724 | 0.015555 | 0.023709 | 0.651022 | 0.593306 | 0.567398 | 0.548141 | 0.524111 | 0.468594 | 0 | 0.020577 | 0.350895 | 44,472 | 1,519 | 106 | 29.277156 | 0.625247 | 0.147554 | 0 | 0.605523 | 0 | 0 | 0.142591 | 0.02665 | 0.000986 | 0 | 0 | 0 | 0.001972 | 0 | null | null | 0.006903 | 0.016765 | null | null | 0.068047 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
aef8de8946baa6f39bdb896378ff207465998edc | 2,858 | py | Python | actionplanner.py | kkew3/sat-minesweeper | c9a1fb36d10e0bceda2ac488538307168f153723 | [
"MIT"
] | 2 | 2021-03-06T10:22:13.000Z | 2021-05-05T07:42:31.000Z | actionplanner.py | kkew3/sat-minesweeper | c9a1fb36d10e0bceda2ac488538307168f153723 | [
"MIT"
] | null | null | null | actionplanner.py | kkew3/sat-minesweeper | c9a1fb36d10e0bceda2ac488538307168f153723 | [
"MIT"
] | null | null | null | import typing
import time
import numpy as np
import pyautogui as pg
import vboard as vb
class MouseClicker:
def __init__(self):
scr = vb.make_screenshot(bw=False)
self.screenshot_wh = scr.shape[::-1]
self.screen_wh = tuple(pg.size())
def click(self, ploc: typing.Tuple[int, int], lef... | 33.623529 | 73 | 0.630161 | 354 | 2,858 | 4.850282 | 0.285311 | 0.064065 | 0.057076 | 0.037274 | 0.519511 | 0.519511 | 0.486896 | 0.469423 | 0.469423 | 0.469423 | 0 | 0.007106 | 0.261372 | 2,858 | 84 | 74 | 34.02381 | 0.806253 | 0.03219 | 0 | 0.442623 | 0 | 0 | 0.003277 | 0 | 0 | 0 | 0 | 0.011905 | 0 | 1 | 0.180328 | false | 0 | 0.081967 | 0 | 0.360656 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
aef9f2a9ad106ff1df81dc7fcb10167ba195b6ab | 1,658 | py | Python | gameofthieves/algorithms.py | armandduijn/game-of-thieves | f2fd9ec15557d732ea94ab1f34f1d3bd625adfaa | [
"MIT"
] | null | null | null | gameofthieves/algorithms.py | armandduijn/game-of-thieves | f2fd9ec15557d732ea94ab1f34f1d3bd625adfaa | [
"MIT"
] | null | null | null | gameofthieves/algorithms.py | armandduijn/game-of-thieves | f2fd9ec15557d732ea94ab1f34f1d3bd625adfaa | [
"MIT"
] | null | null | null | from abc import ABC, abstractmethod
import got
import timeit
import movement_serial
import movement_pool
import movement_batch
import networkx as nx
class AbstractAlgorithm(ABC):
def __init__(self, G):
self.G = G
@abstractmethod
def execute(self, **kwargs):
"""
Executes the algor... | 25.90625 | 83 | 0.654403 | 195 | 1,658 | 5.441026 | 0.276923 | 0.0377 | 0.062205 | 0.075401 | 0.435438 | 0.435438 | 0.410933 | 0.410933 | 0.410933 | 0.381715 | 0 | 0.000793 | 0.239445 | 1,658 | 63 | 84 | 26.31746 | 0.840603 | 0.230398 | 0 | 0.3125 | 0 | 0 | 0.05139 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0.03125 | 0.21875 | 0 | 0.65625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
aefa767ff5a354ff0b1cb35d6ff95c56bb4ea256 | 2,396 | py | Python | mem_mapping/run_script/run.py | sdsmt-robotics/gpio | 0f74c1af532bcd05992a799ca496d9b578db071f | [
"MIT"
] | null | null | null | mem_mapping/run_script/run.py | sdsmt-robotics/gpio | 0f74c1af532bcd05992a799ca496d9b578db071f | [
"MIT"
] | null | null | null | mem_mapping/run_script/run.py | sdsmt-robotics/gpio | 0f74c1af532bcd05992a799ca496d9b578db071f | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import subprocess
import sys
import pwd
import time
import os
import datetime
from gpiolib import *
def log(args, proc, now, pin):
if not os.path.exists("logs"):
os.makedirs("logs")
filename = "logs/" + str(datetime.datetime.now()).split('.')[0] + ".log"
with open(filename, '... | 33.746479 | 79 | 0.437813 | 261 | 2,396 | 3.980843 | 0.463602 | 0.057748 | 0.047161 | 0.023099 | 0.037536 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009759 | 0.272955 | 2,396 | 70 | 80 | 34.228571 | 0.586682 | 0.111018 | 0 | 0.176471 | 0 | 0 | 0.318709 | 0.19062 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.019608 | 0.137255 | null | null | 0.137255 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
aefc717ac5b9225f859a9bc53faa6201d9e16651 | 907 | py | Python | {{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/ext/commands.py | spacetimelabs/cookiecutter-flask-backend | 505f666d19dcab63c50dbc3af760702aa839f913 | [
"MIT"
] | 1 | 2020-04-08T12:08:46.000Z | 2020-04-08T12:08:46.000Z | {{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/ext/commands.py | spacetimelabs/cookiecutter-flask-backend | 505f666d19dcab63c50dbc3af760702aa839f913 | [
"MIT"
] | 3 | 2020-04-08T12:15:28.000Z | 2020-04-10T04:35:17.000Z | {{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/ext/commands.py | spacetimelabs/cookiecutter-flask-backend | 505f666d19dcab63c50dbc3af760702aa839f913 | [
"MIT"
] | 2 | 2020-04-08T09:46:29.000Z | 2020-04-08T10:07:22.000Z | import click
from {{cookiecutter.project_slug}}.ext.database import db
from {{cookiecutter.project_slug}}.models.auth import User
def create_db():
"""Creates database"""
db.create_all()
def drop_db():
"""Cleans database"""
db.drop_all()
def populate_db():
"""Populate db with sample data"""
... | 22.675 | 58 | 0.635061 | 121 | 907 | 4.636364 | 0.396694 | 0.064171 | 0.081996 | 0.096257 | 0.089127 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.22602 | 907 | 39 | 59 | 23.25641 | 0.799145 | 0.057332 | 0 | 0.083333 | 0 | 0 | 0.023035 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.125 | 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 |
4e0043a36bab9768781ee570f1d93a7f3dd717e9 | 19,657 | py | Python | src/remoteinstaller/installer/install.py | akraino-edge-stack/ta-remote-installer | d1feeb7c7886ed8293226d2f19597ea4bb483839 | [
"Apache-2.0"
] | null | null | null | src/remoteinstaller/installer/install.py | akraino-edge-stack/ta-remote-installer | d1feeb7c7886ed8293226d2f19597ea4bb483839 | [
"Apache-2.0"
] | null | null | null | src/remoteinstaller/installer/install.py | akraino-edge-stack/ta-remote-installer | d1feeb7c7886ed8293226d2f19597ea4bb483839 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Nokia
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, softwar... | 41.123431 | 128 | 0.58015 | 2,270 | 19,657 | 4.70793 | 0.162115 | 0.046318 | 0.04978 | 0.01965 | 0.298026 | 0.199214 | 0.146627 | 0.083279 | 0.071302 | 0.055582 | 0 | 0.001631 | 0.313883 | 19,657 | 477 | 129 | 41.209644 | 0.790761 | 0.031999 | 0 | 0.135359 | 0 | 0 | 0.132022 | 0.018988 | 0 | 0 | 0 | 0.002096 | 0 | 1 | 0.066298 | false | 0.077348 | 0.046961 | 0 | 0.146409 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4e007d4c0dcc5fde48361f4fb375ba3a3c1eb469 | 2,452 | py | Python | src/base/migrations/0001_initial.py | keiespro/gndapts_react-django-rest | e795c23de298f7649395ce9e7f7616e852ca6f4b | [
"MIT"
] | 1 | 2018-12-02T08:43:11.000Z | 2018-12-02T08:43:11.000Z | src/base/migrations/0001_initial.py | keiespro/gndapts_react-django-rest | e795c23de298f7649395ce9e7f7616e852ca6f4b | [
"MIT"
] | null | null | null | src/base/migrations/0001_initial.py | keiespro/gndapts_react-django-rest | e795c23de298f7649395ce9e7f7616e852ca6f4b | [
"MIT"
] | 1 | 2020-12-14T15:47:04.000Z | 2020-12-14T15:47:04.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2016-08-25 23:22
from __future__ import unicode_literals
from django.conf import settings
import django.contrib.postgres.fields.jsonb
from django.db import migrations, models
import django.db.models.deletion
import uuid
class Migration(migrations.Migration):
... | 45.407407 | 127 | 0.617455 | 243 | 2,452 | 6.090535 | 0.395062 | 0.027027 | 0.037838 | 0.059459 | 0.542568 | 0.520946 | 0.477703 | 0.477703 | 0.419595 | 0.419595 | 0 | 0.017325 | 0.246737 | 2,452 | 53 | 128 | 46.264151 | 0.783974 | 0.026917 | 0 | 0.444444 | 1 | 0 | 0.084767 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 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 |
4e0ca942e9941cf10326108b38c621df5ad96691 | 798 | py | Python | backpropagation.py | Akashcba/VSCode | 5eb4b737e6e775e7415c8baa4ff2d7e94fa8dceb | [
"MIT"
] | null | null | null | backpropagation.py | Akashcba/VSCode | 5eb4b737e6e775e7415c8baa4ff2d7e94fa8dceb | [
"MIT"
] | null | null | null | backpropagation.py | Akashcba/VSCode | 5eb4b737e6e775e7415c8baa4ff2d7e94fa8dceb | [
"MIT"
] | null | null | null | # x->a(x) = y ->b(y) = z
# by chain rule :
# dz/dx = dz/dy * dy/dx
## Pytorch creates a computational graph on their own
## We compute the d(Loss)/dx for updating the weights
'''
Forward Pass
Compute Loss
BackPropagate : Compute dLoss/dWeights using chain rule
'''
import torch
x=torch.tensor(1.0)
y=torch.tensor(2.0)
... | 21.567568 | 59 | 0.692982 | 152 | 798 | 3.565789 | 0.355263 | 0.02952 | 0.088561 | 0.04797 | 0.509225 | 0.509225 | 0.509225 | 0.509225 | 0.509225 | 0.509225 | 0 | 0.038235 | 0.14787 | 798 | 37 | 60 | 21.567568 | 0.758824 | 0.469925 | 0 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.05 | 0 | 0.05 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4e0f6ea2e6b7009041cdbcf297f2116ecc1dffee | 2,079 | py | Python | tests/test_driver.py | city-of-baltimore/website-mailer | 178bb01ccea2a7887fc03c50b97ef1ad4f5ae986 | [
"MIT"
] | null | null | null | tests/test_driver.py | city-of-baltimore/website-mailer | 178bb01ccea2a7887fc03c50b97ef1ad4f5ae986 | [
"MIT"
] | null | null | null | tests/test_driver.py | city-of-baltimore/website-mailer | 178bb01ccea2a7887fc03c50b97ef1ad4f5ae986 | [
"MIT"
] | null | null | null | """Test suite for websitemailer.driver"""
import sys
from distutils.spawn import find_executable
from loguru import logger
from pathlib import Path
from websitemailer.driver import get_version_via_com, get_chrome_driver, get_chrome_driver_version
from websitemailer.screenshots import take_screenshot
__author__ = "Bri... | 35.237288 | 98 | 0.726792 | 290 | 2,079 | 4.868966 | 0.296552 | 0.063739 | 0.106232 | 0.07932 | 0.378895 | 0.333569 | 0.288952 | 0.249292 | 0.1983 | 0.052408 | 0 | 0.01612 | 0.164502 | 2,079 | 58 | 99 | 35.844828 | 0.796776 | 0.107263 | 0 | 0.205128 | 0 | 0 | 0.100708 | 0 | 0 | 0 | 0 | 0 | 0.410256 | 1 | 0.076923 | false | 0 | 0.153846 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4e13509628b275e178a92d127ee2eecdf75f8f61 | 700 | py | Python | METSFlask/models.py | ablwr/METSFlask | 3fbe4ed57f2dba7c4571b8f5f7d31c9d63a3691c | [
"MIT"
] | 17 | 2017-03-31T23:02:28.000Z | 2019-10-29T13:25:05.000Z | METSFlask/models.py | ablwr/METSFlask | 3fbe4ed57f2dba7c4571b8f5f7d31c9d63a3691c | [
"MIT"
] | 19 | 2017-03-31T16:32:46.000Z | 2020-01-07T17:43:25.000Z | METSFlask/models.py | ablwr/METSFlask | 3fbe4ed57f2dba7c4571b8f5f7d31c9d63a3691c | [
"MIT"
] | 3 | 2018-05-26T16:41:36.000Z | 2019-11-08T16:31:16.000Z | from METSFlask import db
class METS(db.Model):
id = db.Column(db.Integer, primary_key=True)
metsfile = db.Column(db.String(120), index=True, unique=True)
nickname = db.Column(db.String(120))
metslist = db.Column(db.PickleType, index=True, unique=True)
dcmetadata = db.Column(db.PickleType)
origi... | 35 | 84 | 0.687143 | 82 | 700 | 5.756098 | 0.365854 | 0.101695 | 0.127119 | 0.072034 | 0.080508 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010733 | 0.201429 | 700 | 19 | 85 | 36.842105 | 0.833631 | 0 | 0 | 0 | 0 | 0 | 0.012857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.0625 | 0.0625 | 0.6875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4e1e74f54280a9346b12cd4562230ee4316ee279 | 3,224 | py | Python | flowlayout_example/ui/base_qt_ui/ui_mainwindow.py | MADTeacher/MADPythonCourse | f3bd38dcd30dc220bd691d301b2845401cc70b2e | [
"MIT"
] | 5 | 2021-05-11T14:27:11.000Z | 2022-02-09T08:55:06.000Z | flowlayout_example/ui/base_qt_ui/ui_mainwindow.py | MADTeacher/MADPythonCourse | f3bd38dcd30dc220bd691d301b2845401cc70b2e | [
"MIT"
] | null | null | null | flowlayout_example/ui/base_qt_ui/ui_mainwindow.py | MADTeacher/MADPythonCourse | f3bd38dcd30dc220bd691d301b2845401cc70b2e | [
"MIT"
] | 8 | 2020-09-21T21:52:30.000Z | 2022-03-05T12:31:10.000Z | # -*- coding: utf-8 -*-
################################################################################
## Form generated from reading UI file 'ui_mainwindow.ui'
##
## Created by: Qt User Interface Compiler version 6.0.3
##
## WARNING! All changes made in this file will be lost when recompiling UI file!
#############... | 42.421053 | 183 | 0.690757 | 310 | 3,224 | 7.132258 | 0.367742 | 0.069652 | 0.04749 | 0.042062 | 0.123021 | 0.047942 | 0 | 0 | 0 | 0 | 0 | 0.055226 | 0.163151 | 3,224 | 75 | 184 | 42.986667 | 0.76427 | 0.07103 | 0 | 0 | 1 | 0.020408 | 0.132624 | 0.076596 | 0 | 0 | 0 | 0 | 0 | 1 | 0.040816 | false | 0 | 0.061224 | 0 | 0.122449 | 0 | 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 |
4e22cae83d24fdc967176d48432767b64c81a565 | 318 | py | Python | Security/Beowulf_Cluster_DDoS/clean.py | bnonni/Python | 9ebd18caa4e2d805028b557e8b77ea65a9ee1a3d | [
"Apache-2.0"
] | 4 | 2019-10-05T03:41:20.000Z | 2020-11-04T00:39:13.000Z | Security/Beowulf_Cluster_DDoS/clean.py | bnonni/Python | 9ebd18caa4e2d805028b557e8b77ea65a9ee1a3d | [
"Apache-2.0"
] | null | null | null | Security/Beowulf_Cluster_DDoS/clean.py | bnonni/Python | 9ebd18caa4e2d805028b557e8b77ea65a9ee1a3d | [
"Apache-2.0"
] | 2 | 2019-10-02T14:08:51.000Z | 2019-10-03T20:49:09.000Z | #!/usr/bin/env python3
from sys import *
f = argv
for i, a in enumerate(f):
if a == './clean.py':
pass
else:
print(f'File {i}: {a}')
with open(a, 'rb+') as f:
content = f.read()
f.seek(0)
f.write(content.replace(b'\r', b''))
f.truncate()
| 22.714286 | 48 | 0.455975 | 47 | 318 | 3.085106 | 0.723404 | 0.027586 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009852 | 0.361635 | 318 | 13 | 49 | 24.461538 | 0.704434 | 0.066038 | 0 | 0 | 0 | 0 | 0.094595 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.083333 | 0.083333 | 0 | 0.083333 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
4e2608ba7ac15d8859a17a1adc69c26dc8ec3808 | 611 | py | Python | Dataset/Leetcode/test/28/605.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/test/28/605.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/test/28/605.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | class Solution(object):
def XXX(self, haystack, needle):
lengthh = len(haystack)
lengthn = len(needle)
if lengthh == 0:
return 0
if lengthn == 0:
return 0
if lengthn>lengthh:
return 0
for i in range(lengthh - lengthn+1):
... | 25.458333 | 78 | 0.490998 | 71 | 611 | 4.112676 | 0.366197 | 0.09589 | 0.092466 | 0.068493 | 0.287671 | 0.171233 | 0 | 0 | 0 | 0 | 0 | 0.021563 | 0.392799 | 611 | 23 | 79 | 26.565217 | 0.765499 | 0 | 0 | 0.2 | 0 | 0 | 0.031148 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4e27063a5b48ec4d4d2ba639db9d3dedb4f7ba5a | 4,841 | py | Python | Logistic Regression with StatsModels/logistic.py | joao-r-santos/DataSciencePython | 524af797a786c12120b47970e2b654ff06efc350 | [
"MIT"
] | 5,070 | 2015-12-15T13:45:11.000Z | 2022-03-31T04:28:35.000Z | Logistic Regression with StatsModels/logistic.py | mtchem/DataSciencePython | e121b04b9434f9d46757dd7589ea4f33f57f8ecc | [
"MIT"
] | 7 | 2016-05-18T13:17:01.000Z | 2017-03-27T16:28:05.000Z | Logistic Regression with StatsModels/logistic.py | mtchem/DataSciencePython | e121b04b9434f9d46757dd7589ea4f33f57f8ecc | [
"MIT"
] | 1,520 | 2015-12-15T09:41:26.000Z | 2022-03-23T08:25:16.000Z | """
Created on Wed Sep 09 12:38:16 2015
@author: ujjwal.karn
"""
import pandas as pd #for handling datasets
import statsmodels.api as sm #for statistical modeling
import pylab as pl #for plotting
import numpy as np #for numerical computation
# read the data in
dfTr... | 31.640523 | 111 | 0.569924 | 678 | 4,841 | 4.001475 | 0.324484 | 0.009583 | 0.007741 | 0.005898 | 0.260229 | 0.184298 | 0.139329 | 0.127534 | 0.098046 | 0.070033 | 0 | 0.15282 | 0.318736 | 4,841 | 152 | 112 | 31.848684 | 0.6698 | 0.573229 | 0 | 0.265306 | 0 | 0 | 0.231568 | 0.077882 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.081633 | null | null | 0.265306 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
4e2b680cce6b4c09e1ffe6ac424e37fcf458911d | 3,214 | py | Python | tools/codegen/OCCI/Header.py | MarouenMechtri/accords-platform-1 | 4f950fffd9fbbf911840cc5ad0fe5b5a331edf42 | [
"Apache-2.0"
] | 1 | 2015-02-28T21:25:54.000Z | 2015-02-28T21:25:54.000Z | tools/codegen/OCCI/Header.py | MarouenMechtri/accords-platform-1 | 4f950fffd9fbbf911840cc5ad0fe5b5a331edf42 | [
"Apache-2.0"
] | null | null | null | tools/codegen/OCCI/Header.py | MarouenMechtri/accords-platform-1 | 4f950fffd9fbbf911840cc5ad0fe5b5a331edf42 | [
"Apache-2.0"
] | null | null | null | '''
Created on 2 Apr 2013
@author: James Green
'''
import OCCI.Category
import OCCI.Output
import OCCI.Cardinality
import OCCI.Scope
class Header(OCCI.Output.Output):
'''
A class to implement "-t Header" to output auto-generated header files.
'''
def __init__(self, models, args):
'''
... | 34.191489 | 90 | 0.448662 | 311 | 3,214 | 4.594855 | 0.395498 | 0.037789 | 0.029391 | 0.025192 | 0.078376 | 0.078376 | 0.041987 | 0.041987 | 0 | 0 | 0 | 0.002815 | 0.447418 | 3,214 | 93 | 91 | 34.55914 | 0.801802 | 0.190417 | 0 | 0.041667 | 0 | 0 | 0.050363 | 0 | 0 | 0 | 0 | 0.010753 | 0.020833 | 1 | 0.0625 | false | 0 | 0.083333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4e322a6c890ab90f31dbe5430ce163c59343ce07 | 421 | py | Python | minato_namikaze/botmain/bot/lib/functions/emoji_random.py | Onii-Chan-Discord/yondaime-hokage | d6e75405a9d30b37bfb4fd588f02c0de813c92b1 | [
"Apache-2.0"
] | null | null | null | minato_namikaze/botmain/bot/lib/functions/emoji_random.py | Onii-Chan-Discord/yondaime-hokage | d6e75405a9d30b37bfb4fd588f02c0de813c92b1 | [
"Apache-2.0"
] | null | null | null | minato_namikaze/botmain/bot/lib/functions/emoji_random.py | Onii-Chan-Discord/yondaime-hokage | d6e75405a9d30b37bfb4fd588f02c0de813c92b1 | [
"Apache-2.0"
] | null | null | null | from random import choice
def emoji_random_func(bot):
guild = bot.get_guild(747480356625711204)
guild_emojis = choice(guild.emojis)
if guild_emojis.animated and guild_emojis.is_usable():
return f'<a:{guild_emojis.name}:{guild_emojis.id}>'
elif not guild_emojis.animated and guild_emojis.is_usab... | 32.384615 | 64 | 0.712589 | 59 | 421 | 4.830508 | 0.423729 | 0.385965 | 0.133333 | 0.154386 | 0.533333 | 0.533333 | 0.336842 | 0.336842 | 0.336842 | 0.336842 | 0 | 0.051724 | 0.173397 | 421 | 12 | 65 | 35.083333 | 0.767241 | 0 | 0 | 0 | 0 | 0 | 0.192399 | 0.192399 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.1 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4e375dbecc295d5a77293cc1b02a55827bbef98f | 731 | py | Python | fltk-tests/filechooser.py | masayuko/svgplotlib | ce992f4d82e818a8b54f3c9ec0d0bd2407a02412 | [
"BSD-3-Clause"
] | 1 | 2015-08-17T12:16:27.000Z | 2015-08-17T12:16:27.000Z | fltk-tests/filechooser.py | masayuko/svgplotlib | ce992f4d82e818a8b54f3c9ec0d0bd2407a02412 | [
"BSD-3-Clause"
] | null | null | null | fltk-tests/filechooser.py | masayuko/svgplotlib | ce992f4d82e818a8b54f3c9ec0d0bd2407a02412 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
import sys
sys.path.append('..')
import svgplotlib.FLTK as Fl
def filecb(widget, data):
native = Fl.Native_File_Chooser()
native.set_title("Pick a file")
native.set_filter('''Text\t*.txt
C Files\t*.{cxx,h,c}
Apps\t*.{app}\n''')
ret... | 23.580645 | 46 | 0.554036 | 104 | 731 | 3.855769 | 0.596154 | 0.049875 | 0.044888 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054409 | 0.270862 | 731 | 30 | 47 | 24.366667 | 0.697936 | 0.028728 | 0 | 0 | 0 | 0 | 0.194915 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.076923 | null | null | 0.115385 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
4e3a5655ffa4aac5ccf2c582dcc4121944886f09 | 565 | py | Python | way/python/pybooks/python4kids/exercises/e19_turtle_again.py | only-romano/junkyard | b60a25b2643f429cdafee438d20f9966178d6f36 | [
"MIT"
] | null | null | null | way/python/pybooks/python4kids/exercises/e19_turtle_again.py | only-romano/junkyard | b60a25b2643f429cdafee438d20f9966178d6f36 | [
"MIT"
] | null | null | null | way/python/pybooks/python4kids/exercises/e19_turtle_again.py | only-romano/junkyard | b60a25b2643f429cdafee438d20f9966178d6f36 | [
"MIT"
] | null | null | null | import turtle
from time import sleep
def turtle_print(t, end, to_for, to_left):
t.reset()
for x in range(1, end):
t.forward(to_for)
t.left(to_left)
t = turtle.Pen()
turtle_print(t, 5, 50, 90) # квадрат
turtle_print(t, 9, 100, 225) # звезда с 8 концами
turtle_print(t, 38, 100,... | 20.178571 | 53 | 0.585841 | 96 | 565 | 3.354167 | 0.447917 | 0.170807 | 0.186335 | 0.062112 | 0.111801 | 0.111801 | 0.111801 | 0 | 0 | 0 | 0 | 0.114428 | 0.288496 | 565 | 27 | 54 | 20.925926 | 0.686567 | 0.146903 | 0 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.1 | 0 | 0.15 | 0.25 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4e3bc10a04e0661b8f6ee8b4f826818da6dfa5a9 | 574 | py | Python | tests/render_image.py | xelA/html_png | f5b7b7ea8ef9d67bab8f2e0c7dbe1ac956193a52 | [
"MIT"
] | 7 | 2021-09-18T09:52:50.000Z | 2021-09-29T04:14:32.000Z | tests/render_image.py | xelA/html_png | f5b7b7ea8ef9d67bab8f2e0c7dbe1ac956193a52 | [
"MIT"
] | 1 | 2021-09-28T22:23:37.000Z | 2021-09-28T22:29:14.000Z | tests/render_image.py | xelA/html_png | f5b7b7ea8ef9d67bab8f2e0c7dbe1ac956193a52 | [
"MIT"
] | 1 | 2021-09-28T22:06:23.000Z | 2021-09-28T22:06:23.000Z | import requests
html = """
<div class="container">
<h1>Hello, world</h1>
</div>
"""
css = """
.container {
align-items: center;
background-color: red;
display: flex;
justify-content: center;
padding: .5em 1em;
}
h1 {
font-size: 3em;
font-family: Arial;
color: #fff;
margin: 0;
... | 15.944444 | 50 | 0.559233 | 73 | 574 | 4.369863 | 0.739726 | 0.050157 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025346 | 0.243902 | 574 | 35 | 51 | 16.4 | 0.709677 | 0.050523 | 0 | 0.068966 | 0 | 0 | 0.626151 | 0.046041 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.034483 | 0 | 0.034483 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9d62d0923fac524ab7583ad9839e11c2758e354c | 2,471 | py | Python | parkinglot/serializers.py | Amankori2307/Park-Here | bf30e721577ff6df3b761f8bbb1bfe085ffac14c | [
"MIT"
] | null | null | null | parkinglot/serializers.py | Amankori2307/Park-Here | bf30e721577ff6df3b761f8bbb1bfe085ffac14c | [
"MIT"
] | null | null | null | parkinglot/serializers.py | Amankori2307/Park-Here | bf30e721577ff6df3b761f8bbb1bfe085ffac14c | [
"MIT"
] | null | null | null | from datetime import datetime
from rest_framework import serializers
from .models import Parking, ParkingLot, Transaction, User, Charges
from utils.utils import get_avalable_slots
class UserListSerializer(serializers.ModelSerializer):
class Meta:
model = User
fields = ("id", "mobile")
class Parki... | 32.946667 | 79 | 0.692837 | 240 | 2,471 | 6.970833 | 0.295833 | 0.108787 | 0.058577 | 0.104603 | 0.185296 | 0.082487 | 0 | 0 | 0 | 0 | 0 | 0.003168 | 0.233509 | 2,471 | 74 | 80 | 33.391892 | 0.880148 | 0 | 0 | 0.306452 | 0 | 0 | 0.036018 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064516 | false | 0 | 0.064516 | 0.016129 | 0.548387 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9d7496e3d565a47dc3f3a3344eda5248032a6f7a | 1,002 | py | Python | utils/request.py | ombe1229/Hiyobot | 0f6fd6b429f61e30a3c07e2fc9982f4beac39c06 | [
"BSD-3-Clause"
] | 12 | 2020-03-21T18:27:50.000Z | 2020-10-17T12:03:53.000Z | utils/request.py | ombe1229/Hiyobot | 0f6fd6b429f61e30a3c07e2fc9982f4beac39c06 | [
"BSD-3-Clause"
] | 12 | 2020-04-03T14:30:54.000Z | 2020-10-27T07:11:38.000Z | utils/request.py | ombe1229/Hiyobot | 0f6fd6b429f61e30a3c07e2fc9982f4beac39c06 | [
"BSD-3-Clause"
] | 2 | 2020-10-02T15:37:23.000Z | 2020-10-16T08:50:59.000Z | from dataclasses import dataclass
from typing import Any, Literal, Optional
from aiohttp import ClientSession
@dataclass
class Response:
status: int
body: Any
class Request:
async def request(
self,
method: Literal["GET", "POST"],
url: str,
return_method: Literal["json",... | 27.833333 | 85 | 0.602794 | 112 | 1,002 | 5.321429 | 0.3125 | 0.120805 | 0.060403 | 0.090604 | 0.318792 | 0.318792 | 0.318792 | 0.318792 | 0.318792 | 0.318792 | 0 | 0 | 0.278443 | 1,002 | 35 | 86 | 28.628571 | 0.824343 | 0 | 0 | 0.178571 | 0 | 0 | 0.0499 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.107143 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9d74dcb0755c746d5f1f1d7baeec42aefc5a6dd6 | 2,506 | py | Python | app/main.py | tirinox/alphavatarbot | 5adac8c9c4534206eaf6c146f6e194ed5951d055 | [
"MIT"
] | 1 | 2021-03-18T15:35:15.000Z | 2021-03-18T15:35:15.000Z | app/main.py | tirinox/alphavatarbot | 5adac8c9c4534206eaf6c146f6e194ed5951d055 | [
"MIT"
] | null | null | null | app/main.py | tirinox/alphavatarbot | 5adac8c9c4534206eaf6c146f6e194ed5951d055 | [
"MIT"
] | 1 | 2021-03-18T15:35:51.000Z | 2021-03-18T15:35:51.000Z | import asyncio
import logging
import aiohttp
from aiogram import Bot, Dispatcher, executor
from aiogram.types import *
from jobs.defipulse_job import DefiPulseFetcher, DefiPulseKeeper
from jobs.price_job import PriceFetcher, PriceHandler
from lib.broadcast import Broadcaster
from localization import LocalizationManag... | 30.192771 | 98 | 0.661612 | 316 | 2,506 | 5.044304 | 0.344937 | 0.065245 | 0.018821 | 0.016311 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003652 | 0.235036 | 2,506 | 82 | 99 | 30.560976 | 0.827856 | 0.010774 | 0 | 0 | 0 | 0.016393 | 0.053694 | 0.009285 | 0 | 0 | 0 | 0.012195 | 0 | 1 | 0.04918 | false | 0 | 0.213115 | 0 | 0.278689 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
9d77cce4d42e02f4e3dd310a2d68d5a42adf3fc3 | 29,228 | py | Python | Lib/site-packages/pythonwin/pywin/scintilla/scintillacon.py | raychorn/svn_Python-2.5.1 | 425005b1b489ba44ec0bb989e077297e8953d9be | [
"PSF-2.0"
] | null | null | null | Lib/site-packages/pythonwin/pywin/scintilla/scintillacon.py | raychorn/svn_Python-2.5.1 | 425005b1b489ba44ec0bb989e077297e8953d9be | [
"PSF-2.0"
] | null | null | null | Lib/site-packages/pythonwin/pywin/scintilla/scintillacon.py | raychorn/svn_Python-2.5.1 | 425005b1b489ba44ec0bb989e077297e8953d9be | [
"PSF-2.0"
] | null | null | null | # Generated by h2py from Include\scintilla.h
# Included from BaseTsd.h
def HandleToUlong(h): return HandleToULong(h)
def UlongToHandle(ul): return ULongToHandle(ul)
def UlongToPtr(ul): return ULongToPtr(ul)
def UintToPtr(ui): return UIntToPtr(ui)
INVALID_POSITION = -1
SCI_START = 2000
SCI_OPTIONAL_STA... | 23.762602 | 48 | 0.789004 | 4,403 | 29,228 | 4.799909 | 0.340677 | 0.007003 | 0.018738 | 0.001798 | 0.003975 | 0 | 0 | 0 | 0 | 0 | 0 | 0.127926 | 0.168229 | 29,228 | 1,229 | 49 | 23.781937 | 0.741393 | 0.003695 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0.007746 | 0 | 0 | 1 | 0.003276 | false | 0.000819 | 0.000819 | 0.003276 | 0.004095 | 0 | 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 |
9d7a28bf6ab6ae214ac3b33c3e251bf9c1c7204f | 10,595 | py | Python | kestrelAMPL.py | NEOS-Server/Kestrel-AMPL-Linux | 80ba94aa23130d4be6d5ce0766d378a17aedb969 | [
"MIT"
] | 2 | 2018-04-17T14:09:27.000Z | 2021-01-26T22:48:26.000Z | kestrelAMPL.py | NEOS-Server/Kestrel-AMPL-Linux | 80ba94aa23130d4be6d5ce0766d378a17aedb969 | [
"MIT"
] | null | null | null | kestrelAMPL.py | NEOS-Server/Kestrel-AMPL-Linux | 80ba94aa23130d4be6d5ce0766d378a17aedb969 | [
"MIT"
] | 2 | 2019-01-29T13:16:57.000Z | 2021-02-27T11:25:29.000Z | import os
import re
import sys
import socket
import gzip
import base64
import tempfile
PYTHON2 = sys.version_info < (3, 0)
if PYTHON2: # for Python 2
import xmlrpclib
import StringIO
base64_encodestring = base64.encodestring
else: # for Python 3
import xmlrpc.client as xmlrpclib
import io
def... | 34.966997 | 134 | 0.536763 | 1,209 | 10,595 | 4.630273 | 0.202647 | 0.024294 | 0.035013 | 0.037513 | 0.286531 | 0.255091 | 0.241693 | 0.214541 | 0.201679 | 0.187746 | 0 | 0.006398 | 0.336102 | 10,595 | 302 | 135 | 35.082781 | 0.789451 | 0.087494 | 0 | 0.235556 | 0 | 0.004444 | 0.163017 | 0.024331 | 0 | 0 | 0 | 0 | 0 | 1 | 0.053333 | false | 0.12 | 0.048889 | 0.008889 | 0.155556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9d7ac7728b35add014e1ed1b8d8bc51f57d12968 | 2,896 | py | Python | src/grid.py | umutseven92/GameOfLife | d6faac2539531f6b55e9315e793ee4e75cbefb0b | [
"MIT"
] | 1 | 2015-12-19T10:51:34.000Z | 2015-12-19T10:51:34.000Z | src/grid.py | umutseven92/GameOfLife | d6faac2539531f6b55e9315e793ee4e75cbefb0b | [
"MIT"
] | null | null | null | src/grid.py | umutseven92/GameOfLife | d6faac2539531f6b55e9315e793ee4e75cbefb0b | [
"MIT"
] | null | null | null | from random import randint
import pdb
class grid:
def load_map(self, data):
with open(data, "r") as file:
loaded = file.readlines()
self.desc = ""
cell = []
max_length = 0
for i in range(0, len(loaded)):
if loaded[i].startswith("#D"):
# Description
self.desc +="\n" + loaded[i]
elif loaded... | 23.168 | 63 | 0.616367 | 466 | 2,896 | 3.688841 | 0.167382 | 0.055846 | 0.073298 | 0.079116 | 0.38918 | 0.317045 | 0.268179 | 0.226294 | 0.226294 | 0.226294 | 0 | 0.021457 | 0.227555 | 2,896 | 124 | 64 | 23.354839 | 0.746536 | 0.036948 | 0 | 0.126437 | 0 | 0 | 0.025955 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.022989 | 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 |
9d7ca54c4ba41c1088ccfa8d0098ed9380c78a9a | 732 | py | Python | Python3/970.powerful-integers.py | 610yilingliu/leetcode | 30d071b3685c2131bd3462ba77c6c05114f3f227 | [
"MIT"
] | null | null | null | Python3/970.powerful-integers.py | 610yilingliu/leetcode | 30d071b3685c2131bd3462ba77c6c05114f3f227 | [
"MIT"
] | null | null | null | Python3/970.powerful-integers.py | 610yilingliu/leetcode | 30d071b3685c2131bd3462ba77c6c05114f3f227 | [
"MIT"
] | null | null | null | #
# @lc app=leetcode id=970 lang=python3
#
# [970] Powerful Integers
#
# @lc code=start
class Solution(object):
def powerfulIntegers(self, x, y, bound):
"""
:type x: int
:type y: int
:type bound: int
:rtype: List[int]
"""
r = []
if bound < 2:
... | 20.914286 | 47 | 0.344262 | 81 | 732 | 3.111111 | 0.469136 | 0.02381 | 0.035714 | 0.063492 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044379 | 0.538251 | 732 | 34 | 48 | 21.529412 | 0.701183 | 0.204918 | 0 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0 | 0 | 0.222222 | 0 | 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 |
9d7d49337c159028fc97c5862900c5b27cf3690c | 41,881 | py | Python | app.py | acheketa/lyricbot | 1780d761dcbc31b8d33aff5daef68ac3c804a92c | [
"MIT"
] | 3 | 2018-10-31T02:14:29.000Z | 2019-08-09T18:26:32.000Z | app.py | acheketa/lyricbot | 1780d761dcbc31b8d33aff5daef68ac3c804a92c | [
"MIT"
] | null | null | null | app.py | acheketa/lyricbot | 1780d761dcbc31b8d33aff5daef68ac3c804a92c | [
"MIT"
] | null | null | null | #!/usr/local/bin/python
# -*- coding: utf-8 -*-
import os
import sys
import json
import urllib.request, urllib.error, urllib.parse
import socket
from flask import Flask, request, g
import random
import requests
import lyricwikia
app = Flask(__name__)
@app.route('/', methods=['GET'])
def verify():
# when the endpo... | 37.798736 | 228 | 0.362169 | 3,150 | 41,881 | 4.724127 | 0.179365 | 0.041933 | 0.062563 | 0.059136 | 0.617835 | 0.574961 | 0.565419 | 0.560446 | 0.555003 | 0.550568 | 0 | 0.050198 | 0.511497 | 41,881 | 1,107 | 229 | 37.832882 | 0.677159 | 0.025334 | 0 | 0.502868 | 0 | 0.021033 | 0.233379 | 0.001839 | 0.000956 | 0 | 0 | 0 | 0 | 1 | 0.018164 | false | 0.001912 | 0.008604 | 0 | 0.037285 | 0.001912 | 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 |
9d7e931566af00f5bbb9c8893bb64c0cc05d3383 | 6,445 | py | Python | test.py | Sh4yy/CherryAuth | 5787f18cc388f32560c7acf729ab7001abc929d4 | [
"MIT"
] | null | null | null | test.py | Sh4yy/CherryAuth | 5787f18cc388f32560c7acf729ab7001abc929d4 | [
"MIT"
] | 1 | 2021-06-01T23:52:53.000Z | 2021-06-01T23:52:53.000Z | test.py | Sh4yy/CherryAuth | 5787f18cc388f32560c7acf729ab7001abc929d4 | [
"MIT"
] | null | null | null | from unittest import TestCase, main
from app import create_db, create_secret
from controllers import *
from uuid import uuid4
from random import choices, randint, choice
from datetime import timedelta
from Utils import JWT
from time import sleep
from string import ascii_letters
class TestRegistration(TestCase):
... | 29.837963 | 101 | 0.655702 | 754 | 6,445 | 5.420424 | 0.165782 | 0.123807 | 0.086127 | 0.069733 | 0.540005 | 0.453389 | 0.407634 | 0.344507 | 0.305848 | 0.27404 | 0 | 0.0182 | 0.232739 | 6,445 | 215 | 102 | 29.976744 | 0.808291 | 0.007292 | 0 | 0.378571 | 0 | 0 | 0.008131 | 0.004691 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.114286 | false | 0.435714 | 0.064286 | 0 | 0.207143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9d80d4f63f7627d6d5d4ede434fb34732037c2a6 | 4,203 | py | Python | simulation/microsaccade/models.py | helloTC/LearnPython | bd5fc977c800f3dc2d239b8cb7ad7e6e1b42fce8 | [
"MIT"
] | null | null | null | simulation/microsaccade/models.py | helloTC/LearnPython | bd5fc977c800f3dc2d239b8cb7ad7e6e1b42fce8 | [
"MIT"
] | null | null | null | simulation/microsaccade/models.py | helloTC/LearnPython | bd5fc977c800f3dc2d239b8cb7ad7e6e1b42fce8 | [
"MIT"
] | null | null | null | import numpy as np
def linear_y(t0, t_step, slope, y0):
"""
A function to generate y values that satisfied to linear relationship with independent value t_list, slope, and start point of y
Parameters:
-----------
t0: t0, with dependent variable as startpoint_y
t_step: step of t
slope: slop... | 35.025 | 242 | 0.606472 | 632 | 4,203 | 3.875 | 0.219937 | 0.05635 | 0.0539 | 0.03185 | 0.314414 | 0.269498 | 0.214373 | 0.197223 | 0.179257 | 0.127807 | 0 | 0.044415 | 0.292886 | 4,203 | 119 | 243 | 35.319328 | 0.77961 | 0.462527 | 0 | 0.259259 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.018519 | 0 | 0.12963 | 0 | 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 |
9d8e9f011e540d713cb087ee402cd7b9ce7d5e1f | 387 | py | Python | Wordpy/RandWord.py | CHARSARG/Wordpy | 419555b07f361e7c79235a859e6df7841c273967 | [
"MIT"
] | null | null | null | Wordpy/RandWord.py | CHARSARG/Wordpy | 419555b07f361e7c79235a859e6df7841c273967 | [
"MIT"
] | null | null | null | Wordpy/RandWord.py | CHARSARG/Wordpy | 419555b07f361e7c79235a859e6df7841c273967 | [
"MIT"
] | null | null | null | # Import the modules required
import json
from difflib import get_close_matches
import random
def randword():
# Loading data from json file
# in python dictionary
data = json.load(open("words_dictionary.json"))
allWords = list(data.items())
#print(type(allWords))
word=random.choice(allWords)... | 16.826087 | 51 | 0.689922 | 50 | 387 | 5.28 | 0.62 | 0.068182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003215 | 0.196382 | 387 | 22 | 52 | 17.590909 | 0.845659 | 0.338501 | 0 | 0 | 0 | 0 | 0.084337 | 0.084337 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
9d93926f114d1f77f005f6d30e1469623978f9c4 | 591 | py | Python | tangier_api/helpers.py | jjorissen52/tangier_api | 3c1cc04daa1921b0b9ab439d65f2c4bbd84452d3 | [
"Apache-2.0"
] | 1 | 2018-03-26T06:06:52.000Z | 2018-03-26T06:06:52.000Z | tangier_api/helpers.py | jjorissen52/tangier_api | 3c1cc04daa1921b0b9ab439d65f2c4bbd84452d3 | [
"Apache-2.0"
] | 2 | 2019-02-14T23:57:45.000Z | 2019-05-07T17:28:48.000Z | tangier_api/helpers.py | jjorissen52/tangier_api | 3c1cc04daa1921b0b9ab439d65f2c4bbd84452d3 | [
"Apache-2.0"
] | null | null | null | import datetime
def date_ranges(start_date, end_date, date_format='%Y-%m-%d'):
start_date = datetime.datetime.strptime(start_date, date_format)
end_date = datetime.datetime.strptime(end_date, date_format)
ranges = []
while start_date + datetime.timedelta(weeks=8) < end_date:
ranges.append((sta... | 49.25 | 123 | 0.742809 | 82 | 591 | 5.085366 | 0.256098 | 0.194245 | 0.16307 | 0.18705 | 0.482014 | 0.417266 | 0.18705 | 0 | 0 | 0 | 0 | 0.007797 | 0.13198 | 591 | 12 | 124 | 49.25 | 0.805068 | 0 | 0 | 0 | 0 | 0 | 0.013514 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.1 | 0 | 0.3 | 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 |
9d9c71a1ec5f354888d8398ba6ff912e42cbceb4 | 633 | py | Python | graph-model/environment.py | shubhomb/clonal_evolution | bbbd0a482293d41cadebe53028e0adeded591e6b | [
"MIT"
] | 1 | 2020-03-19T22:31:05.000Z | 2020-03-19T22:31:05.000Z | graph-model/environment.py | shubhomb/mm_clonal_evolution | bbbd0a482293d41cadebe53028e0adeded591e6b | [
"MIT"
] | null | null | null | graph-model/environment.py | shubhomb/mm_clonal_evolution | bbbd0a482293d41cadebe53028e0adeded591e6b | [
"MIT"
] | null | null | null | class Environment():
"""
This is used as an input to contruct the graph.
"""
def __init__(self, names, matrix, alpha, prop):
self.names = names # Names of Subclone Colony (List)
self.relations = matrix # Adj Matrix representing relations
self.alpha = alpha
self.pro... | 28.772727 | 78 | 0.57188 | 84 | 633 | 4.238095 | 0.488095 | 0.101124 | 0.109551 | 0.039326 | 0.202247 | 0.202247 | 0.202247 | 0.202247 | 0.202247 | 0.202247 | 0 | 0.004566 | 0.308057 | 633 | 21 | 79 | 30.142857 | 0.808219 | 0.180095 | 0 | 0 | 0 | 0 | 0.062374 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0 | 0.071429 | 0.357143 | 0.214286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9d9d21b39b1dacbc21cd08053f3e6bc13baca3f3 | 3,860 | py | Python | masakari_monitors_icmp_plugin/tests/unit/ha/test_api.py | ooneko/masakari-monitors-icmp-plugin | b57309a2590fa5436b197275a77da7f34f691a2e | [
"Apache-2.0"
] | null | null | null | masakari_monitors_icmp_plugin/tests/unit/ha/test_api.py | ooneko/masakari-monitors-icmp-plugin | b57309a2590fa5436b197275a77da7f34f691a2e | [
"Apache-2.0"
] | null | null | null | masakari_monitors_icmp_plugin/tests/unit/ha/test_api.py | ooneko/masakari-monitors-icmp-plugin | b57309a2590fa5436b197275a77da7f34f691a2e | [
"Apache-2.0"
] | null | null | null | # Copyright(c) 2019 Unitedstack Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | 34.464286 | 74 | 0.662176 | 473 | 3,860 | 5.169133 | 0.264271 | 0.042536 | 0.042945 | 0.042536 | 0.4409 | 0.372597 | 0.372597 | 0.344785 | 0.344785 | 0.329243 | 0 | 0.006887 | 0.247668 | 3,860 | 111 | 75 | 34.774775 | 0.835055 | 0.145855 | 0 | 0.439024 | 0 | 0 | 0.033506 | 0 | 0 | 0 | 0 | 0 | 0.134146 | 1 | 0.060976 | false | 0.060976 | 0.097561 | 0 | 0.170732 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9da2d628f93fc7eb9ecaabb7bd718234ae31dca7 | 1,597 | py | Python | tests/utils-tests.py | godatadriven/wallholla | 6641928dab90b19f02de9a8bfecac88d773e35ae | [
"MIT"
] | null | null | null | tests/utils-tests.py | godatadriven/wallholla | 6641928dab90b19f02de9a8bfecac88d773e35ae | [
"MIT"
] | null | null | null | tests/utils-tests.py | godatadriven/wallholla | 6641928dab90b19f02de9a8bfecac88d773e35ae | [
"MIT"
] | null | null | null | import unittest
from utils import make_pretrained_filenames
class MakeFileNameTestCase(unittest.TestCase):
def test_basic_usage1(self):
res = make_pretrained_filenames("catdog", "random", "mobilenet", 200, (100, 100))
outcome = [
'catdog-mobilenet-random-200-100x100-train-data.npy',
... | 38.95122 | 89 | 0.633062 | 194 | 1,597 | 5.097938 | 0.226804 | 0.121335 | 0.169869 | 0.145602 | 0.787664 | 0.757331 | 0.62184 | 0.317492 | 0.214358 | 0.214358 | 0 | 0.10573 | 0.22417 | 1,597 | 41 | 90 | 38.95122 | 0.692494 | 0 | 0 | 0.28125 | 0 | 0 | 0.41239 | 0.369212 | 0 | 0 | 0 | 0 | 0.09375 | 1 | 0.09375 | false | 0 | 0.0625 | 0 | 0.1875 | 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 |
9da9bf61558c291c38985635cc4e376b03604c39 | 1,131 | py | Python | cadnano25/cadnano/nno2stl/matrix3.py | amylittleyang/OtraCAD | 126360719704caf6850d42565fe96be53b66a22d | [
"MIT"
] | 1 | 2021-10-11T21:47:33.000Z | 2021-10-11T21:47:33.000Z | cadnano25/cadnano/nno2stl/matrix3.py | amylittleyang/OtraCAD | 126360719704caf6850d42565fe96be53b66a22d | [
"MIT"
] | null | null | null | cadnano25/cadnano/nno2stl/matrix3.py | amylittleyang/OtraCAD | 126360719704caf6850d42565fe96be53b66a22d | [
"MIT"
] | null | null | null | from __future__ import division
from collections import namedtuple
import math
Matrix3 = namedtuple('Matrix3', ['n11','n12', 'n13',
'n21', 'n22', 'n23',
'n31', 'n32', 'n33'])
def getInverse(m4):
o0 = m4[10] * m4[5] - m4[6] * m4[9]
o1 = - m4[10... | 31.416667 | 79 | 0.444739 | 183 | 1,131 | 2.726776 | 0.300546 | 0.03006 | 0.048096 | 0.024048 | 0.096192 | 0 | 0 | 0 | 0 | 0 | 0 | 0.186395 | 0.350133 | 1,131 | 36 | 80 | 31.416667 | 0.492517 | 0.013263 | 0 | 0 | 0 | 0 | 0.076302 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.107143 | false | 0 | 0.107143 | 0.071429 | 0.321429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9daace8d2c15be4723e67441c95d0d3d4a1d687a | 5,499 | py | Python | caravel_wrapped_hack_soc_test_gl/wrapped_hack_soc_test_2.py | mbalestrini/wrapped_hack_soc | 898e6233b87a745ea86248b3da3d5f4ab9201e2d | [
"Apache-2.0"
] | 2 | 2021-12-18T16:48:18.000Z | 2022-01-06T21:24:57.000Z | caravel_wrapped_hack_soc_test_gl/wrapped_hack_soc_test_2.py | mbalestrini/wrapped_hack_soc | 898e6233b87a745ea86248b3da3d5f4ab9201e2d | [
"Apache-2.0"
] | 3 | 2021-06-10T14:35:34.000Z | 2022-03-25T14:20:59.000Z | caravel_wrapped_hack_soc_test_gl/wrapped_hack_soc_test_2.py | mbalestrini/wrapped_hack_soc | 898e6233b87a745ea86248b3da3d5f4ab9201e2d | [
"Apache-2.0"
] | null | null | null | import cocotb
from cocotb.clock import Clock
from cocotb.triggers import RisingEdge, FallingEdge, ClockCycles, First, with_timeout
import sys
async def test_start(dut):
dut.RSTB <= 0
dut.power1 <= 0;
dut.power2 <= 0;
dut.power3 <= 0;
dut.power4 <= 0;
await ClockCycles(dut.clock, 8)
dut.pow... | 33.530488 | 133 | 0.580833 | 768 | 5,499 | 4.102865 | 0.209635 | 0.057125 | 0.102507 | 0.116788 | 0.619169 | 0.601714 | 0.577594 | 0.490638 | 0.490638 | 0.445573 | 0 | 0.070654 | 0.279324 | 5,499 | 163 | 134 | 33.736196 | 0.724451 | 0.439353 | 0 | 0.257143 | 0 | 0 | 0.154841 | 0 | 0 | 0 | 0.007958 | 0 | 0.085714 | 1 | 0 | false | 0.057143 | 0.057143 | 0 | 0.057143 | 0.214286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9dab452a9460eb517a1c3e8396c58f7e7307be81 | 622 | py | Python | itg-tests/saga-it/SagaHappyPath.py | josiemundi/refarch-kc | 9b723365ff4a16def3ce953c8ed7b42ab40c1e75 | [
"Apache-2.0"
] | null | null | null | itg-tests/saga-it/SagaHappyPath.py | josiemundi/refarch-kc | 9b723365ff4a16def3ce953c8ed7b42ab40c1e75 | [
"Apache-2.0"
] | null | null | null | itg-tests/saga-it/SagaHappyPath.py | josiemundi/refarch-kc | 9b723365ff4a16def3ce953c8ed7b42ab40c1e75 | [
"Apache-2.0"
] | null | null | null | # load the order request from json
import json
f = open('../data/FreshProductOrder.json','r')
order = json.load(f)
print(order)
import requests
response = requests.get('https://httpbin.org/ip')
print('Your IP is {0}'.format(response.json()['origin']))
# call create order service
res = requests.post("http://ordercmd... | 27.043478 | 67 | 0.750804 | 94 | 622 | 4.968085 | 0.510638 | 0.068522 | 0.119914 | 0.162741 | 0.24197 | 0.24197 | 0.184154 | 0.184154 | 0.184154 | 0 | 0 | 0.009346 | 0.139871 | 622 | 23 | 68 | 27.043478 | 0.863551 | 0.5 | 0 | 0 | 0 | 0 | 0.328947 | 0.098684 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.222222 | 0.333333 | 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 |
9db1171865765cf1d0c8b43030fb255de705b65b | 263 | py | Python | Fundamentos/SplitJoinEnumerate.py | DjCod3r/PythonScripts | 95e70ebb81d2bc37b0283daff8ee723c5d2a382c | [
"MIT"
] | null | null | null | Fundamentos/SplitJoinEnumerate.py | DjCod3r/PythonScripts | 95e70ebb81d2bc37b0283daff8ee723c5d2a382c | [
"MIT"
] | null | null | null | Fundamentos/SplitJoinEnumerate.py | DjCod3r/PythonScripts | 95e70ebb81d2bc37b0283daff8ee723c5d2a382c | [
"MIT"
] | null | null | null | #Split
string = "Teste de split dividindo por espaço"
lista = string.split(' ')
print(lista)
for valor in lista:
print(valor)
juntarLista = ' '.join(lista) #juntando lista
print(juntarLista)
for indice , valor in enumerate(lista):
print(indice , valor) | 20.230769 | 46 | 0.711027 | 35 | 263 | 5.342857 | 0.485714 | 0.160428 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.171103 | 263 | 13 | 47 | 20.230769 | 0.857798 | 0.072243 | 0 | 0 | 0 | 0 | 0.152263 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.444444 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9db94ca3a1c4353ff635c7d777845e57e7dc1a42 | 2,308 | py | Python | CIRA/cira.py | allen-padilla/unattended-performance-test | b1f7c5128d95157e66020e9cdc487324999cd1e4 | [
"Apache-2.0"
] | null | null | null | CIRA/cira.py | allen-padilla/unattended-performance-test | b1f7c5128d95157e66020e9cdc487324999cd1e4 | [
"Apache-2.0"
] | null | null | null | CIRA/cira.py | allen-padilla/unattended-performance-test | b1f7c5128d95157e66020e9cdc487324999cd1e4 | [
"Apache-2.0"
] | null | null | null | # Copyright 2022 Allen Padilla
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 33.449275 | 112 | 0.771664 | 323 | 2,308 | 5.424149 | 0.442724 | 0.034247 | 0.037671 | 0.038813 | 0.17637 | 0.164384 | 0.13242 | 0.13242 | 0.13242 | 0.13242 | 0 | 0.00651 | 0.134749 | 2,308 | 69 | 113 | 33.449275 | 0.870806 | 0.341854 | 0 | 0.055556 | 0 | 0 | 0.120747 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.361111 | 0 | 0.361111 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
9dba408838659fe8ddcae4f453c2f786ab5733cb | 327 | py | Python | try.py | raybuhr/AnomalyDetection | d20aaf5d91ee686ffa8d25e8ba8c8b0368213e67 | [
"Apache-2.0"
] | null | null | null | try.py | raybuhr/AnomalyDetection | d20aaf5d91ee686ffa8d25e8ba8c8b0368213e67 | [
"Apache-2.0"
] | null | null | null | try.py | raybuhr/AnomalyDetection | d20aaf5d91ee686ffa8d25e8ba8c8b0368213e67 | [
"Apache-2.0"
] | null | null | null | import numpy as np
import pandas as pd
import anomaly_detection
dat = np.random.random(24*4*30) + 10
dts = pd.date_range(start='2018-08-01', freq='15min', periods=24*4*30)
df = pd.DataFrame(dat, index=dts, columns=['y'])
outliers = np.random.randint(low=0, high=24*4*30, size=20)
df.y.iloc[outliers] = df.y.iloc[outlie... | 27.25 | 70 | 0.70948 | 62 | 327 | 3.709677 | 0.612903 | 0.03913 | 0.065217 | 0.130435 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106529 | 0.110092 | 327 | 11 | 71 | 29.727273 | 0.683849 | 0 | 0 | 0 | 0 | 0 | 0.04908 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
9dbb32b690632c41a90ef59cb8c091935cfc3f2e | 4,823 | py | Python | registration/tests/views.py | VictorRocha/django-registration | e349988724da5d800cee50c83954730d83ca3937 | [
"BSD-3-Clause"
] | 1 | 2020-02-11T17:21:14.000Z | 2020-02-11T17:21:14.000Z | registration/tests/views.py | VictorRocha/django-registration | e349988724da5d800cee50c83954730d83ca3937 | [
"BSD-3-Clause"
] | null | null | null | registration/tests/views.py | VictorRocha/django-registration | e349988724da5d800cee50c83954730d83ca3937 | [
"BSD-3-Clause"
] | null | null | null | import datetime
from django.conf import settings
from django.contrib.auth.models import User
from django.core import mail
from django.core.urlresolvers import reverse
from django.test import TestCase
from registration import forms
from registration.models import RegistrationProfile
class RegistrationViewTests(TestC... | 38.277778 | 119 | 0.566867 | 460 | 4,823 | 5.815217 | 0.280435 | 0.026168 | 0.047103 | 0.043364 | 0.535327 | 0.474766 | 0.461308 | 0.461308 | 0.441495 | 0.371215 | 0 | 0.007185 | 0.336305 | 4,823 | 125 | 120 | 38.584 | 0.828491 | 0.167323 | 0 | 0.348485 | 0 | 0 | 0.140217 | 0.050964 | 0 | 0 | 0 | 0 | 0.151515 | 1 | 0.106061 | false | 0.121212 | 0.121212 | 0 | 0.257576 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9dc7ee956dcc365c29f8eee1a388b9a0af67bdbb | 1,226 | py | Python | volumes/mgmt/web/housekeeper_web/data/list_incidents.py | jojees/housekeeper | f51e64344f8d598f355282726b6bcc9950550a9f | [
"MIT"
] | null | null | null | volumes/mgmt/web/housekeeper_web/data/list_incidents.py | jojees/housekeeper | f51e64344f8d598f355282726b6bcc9950550a9f | [
"MIT"
] | null | null | null | volumes/mgmt/web/housekeeper_web/data/list_incidents.py | jojees/housekeeper | f51e64344f8d598f355282726b6bcc9950550a9f | [
"MIT"
] | 4 | 2017-05-16T07:43:52.000Z | 2017-05-16T11:09:25.000Z | import requests, json
# Update to match your API key
API_KEY = 'iqKb9TBxJWekjzaKJGKM'
# Update to match your chosen parameters
SINCE = '2017-05-07 05:00:00+00:00'
UNTIL = '2017-05-07 07:00:00+00:00'
DATE_RANGE = ''
STATUSES = []
INCIDENT_KEY = ''
SERVICE_IDS = []
#TEAM_IDS = ['PXAD757']
TEAM_IDS = []
USER_IDS = []
UR... | 25.541667 | 68 | 0.615008 | 150 | 1,226 | 4.793333 | 0.406667 | 0.03338 | 0.03338 | 0.047288 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043249 | 0.226754 | 1,226 | 48 | 69 | 25.541667 | 0.71519 | 0.072594 | 0 | 0 | 0 | 0 | 0.287478 | 0.035273 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.025 | null | null | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9dc8a930b710816ee11809a80e40abf4a977cce7 | 1,041 | py | Python | src/contact/migrations/0002_auto_20171117_1442.py | tcraghu/kitchen | 6a9a1ea8144975fd46091bfe786eefc5139c7f4b | [
"MIT"
] | 13 | 2018-03-06T14:29:02.000Z | 2022-02-20T11:16:30.000Z | src/contact/migrations/0002_auto_20171117_1442.py | tcraghu/kitchen | 6a9a1ea8144975fd46091bfe786eefc5139c7f4b | [
"MIT"
] | null | null | null | src/contact/migrations/0002_auto_20171117_1442.py | tcraghu/kitchen | 6a9a1ea8144975fd46091bfe786eefc5139c7f4b | [
"MIT"
] | 12 | 2018-03-08T06:00:12.000Z | 2022-03-28T07:57:33.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-11-17 14:42
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('contact', '0001_initial'),
]
operations = [
migrations.AlterField(
... | 31.545455 | 118 | 0.620557 | 111 | 1,041 | 5.558559 | 0.423423 | 0.106969 | 0.121556 | 0.141005 | 0.633712 | 0.633712 | 0.562399 | 0.562399 | 0.562399 | 0.562399 | 0 | 0.029754 | 0.257445 | 1,041 | 32 | 119 | 32.53125 | 0.768435 | 0.065322 | 0 | 0.52 | 1 | 0 | 0.158763 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.08 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9dcdc5c701770b68078df20eb070c10e4a5a2c61 | 1,935 | py | Python | pommesdispatch/cli.py | pommes-public/pommesdispatch | 34b6d9e700a29c73535355fce19e3b1ff972ddc9 | [
"MIT"
] | null | null | null | pommesdispatch/cli.py | pommes-public/pommesdispatch | 34b6d9e700a29c73535355fce19e3b1ff972ddc9 | [
"MIT"
] | 11 | 2021-11-01T17:03:19.000Z | 2022-03-23T14:55:37.000Z | pommesdispatch/cli.py | pommes-public/pommesdispatch | 34b6d9e700a29c73535355fce19e3b1ff972ddc9 | [
"MIT"
] | null | null | null | from pommesdispatch.model.dispatch_model import run_dispatch_model, add_args
def create_default_config():
content = """# Determine the model configuration
# 1) Set overall workflow control parameters
control_parameters:
rolling_horizon: False
aggregate_input: False
countries: ['AT', 'BE', 'CH', 'CZ',... | 29.318182 | 76 | 0.659432 | 237 | 1,935 | 5.105485 | 0.565401 | 0.042975 | 0.039669 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038306 | 0.231008 | 1,935 | 65 | 77 | 29.769231 | 0.774866 | 0.024289 | 0 | 0 | 0 | 0.018519 | 0.659597 | 0.112937 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.018519 | 0 | 0.074074 | 0.074074 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9dd14bfcbb341d544acb0d0e81551addd722c2b3 | 6,248 | py | Python | gym_continuous_maze/gym_continuous_maze.py | qgallouedec/gym-continuous-maze | b625ed937811c0e9052e1cabd88ba91fddae230c | [
"MIT"
] | 1 | 2022-03-25T12:01:39.000Z | 2022-03-25T12:01:39.000Z | gym_continuous_maze/gym_continuous_maze.py | qgallouedec/gym-continuous-maze | b625ed937811c0e9052e1cabd88ba91fddae230c | [
"MIT"
] | null | null | null | gym_continuous_maze/gym_continuous_maze.py | qgallouedec/gym-continuous-maze | b625ed937811c0e9052e1cabd88ba91fddae230c | [
"MIT"
] | null | null | null | from typing import Dict, Optional, Tuple
import gym
import numpy as np
import pygame
from gym import spaces
from pygame import gfxdraw
BLACK = (0, 0, 0)
WHITE = (255, 255, 255)
RED = (255, 0, 0)
def get_intersect(A: np.ndarray, B: np.ndarray, C: np.ndarray, D: np.ndarray) -> Optional[np.ndarray]:
"""
Get th... | 35.299435 | 102 | 0.386204 | 1,066 | 6,248 | 2.237336 | 0.119137 | 0.046122 | 0.069182 | 0.026834 | 0.408805 | 0.361426 | 0.314046 | 0.250314 | 0.250314 | 0.171069 | 0 | 0.185496 | 0.351152 | 6,248 | 176 | 103 | 35.5 | 0.402812 | 0.053297 | 0 | 0.060811 | 0 | 0 | 0.003235 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.040541 | false | 0 | 0.040541 | 0 | 0.155405 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9dd2ffdefa1eb5d04b7dbe7ac692c86012bd3b8a | 2,668 | py | Python | experiment-a2-binary/experiment-a2-binary.py | anonymised-submission/TestingDistributionalShifts | a78e33302f47d3b49cd5abf92914424abcc6950a | [
"MIT"
] | null | null | null | experiment-a2-binary/experiment-a2-binary.py | anonymised-submission/TestingDistributionalShifts | a78e33302f47d3b49cd5abf92914424abcc6950a | [
"MIT"
] | null | null | null | experiment-a2-binary/experiment-a2-binary.py | anonymised-submission/TestingDistributionalShifts | a78e33302f47d3b49cd5abf92914424abcc6950a | [
"MIT"
] | null | null | null | import numpy as np
from multiprocessing import Pool, cpu_count
import statsmodels.api as sm
from tqdm import tqdm
from itertools import product
import pandas as pd
# Load files from parent folders
import os
import sys
try:sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
except NameError: pr... | 29.977528 | 127 | 0.637181 | 422 | 2,668 | 3.964455 | 0.433649 | 0.004782 | 0.014345 | 0.017932 | 0.040646 | 0.021518 | 0 | 0 | 0 | 0 | 0 | 0.02506 | 0.222264 | 2,668 | 88 | 128 | 30.318182 | 0.781205 | 0.197526 | 0 | 0.034483 | 0 | 0 | 0.069209 | 0.011299 | 0 | 0 | 0 | 0 | 0 | 1 | 0.155172 | false | 0 | 0.155172 | 0.103448 | 0.396552 | 0.034483 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9dd4d064969ac96af5c23b1ea2abd4b8b1c87501 | 1,793 | py | Python | askbotopenmooc/urls.py | OpenMOOC/askbot-openmooc | 8534e435247b6217d5cbc62b9eac15c8f75eba62 | [
"Apache-2.0"
] | 3 | 2015-03-17T09:17:43.000Z | 2017-02-06T21:18:42.000Z | askbotopenmooc/urls.py | OpenMOOC/askbot-openmooc | 8534e435247b6217d5cbc62b9eac15c8f75eba62 | [
"Apache-2.0"
] | null | null | null | askbotopenmooc/urls.py | OpenMOOC/askbot-openmooc | 8534e435247b6217d5cbc62b9eac15c8f75eba62 | [
"Apache-2.0"
] | 2 | 2016-08-02T15:44:30.000Z | 2017-07-17T05:11:35.000Z | # -*- coding: utf-8 -*-
# Copyright 2012-2013 UNED
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | 29.393443 | 84 | 0.662577 | 231 | 1,793 | 5.121212 | 0.528139 | 0.050719 | 0.035503 | 0.02705 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019035 | 0.179587 | 1,793 | 60 | 85 | 29.883333 | 0.78518 | 0.441718 | 0 | 0 | 0 | 0 | 0.290256 | 0.112821 | 0 | 0 | 0 | 0.016667 | 0 | 1 | 0 | false | 0 | 0.130435 | 0 | 0.130435 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
9dd542c1acbd7b9e9f7b62cd4a078c8eeeb08114 | 462 | py | Python | snippets/blender-2.79b-and-older/dev/default-UI-template.py | cstfan/BlenderScripts | 4787453111b9fffa4fa21458016b09da17b278e2 | [
"WTFPL"
] | null | null | null | snippets/blender-2.79b-and-older/dev/default-UI-template.py | cstfan/BlenderScripts | 4787453111b9fffa4fa21458016b09da17b278e2 | [
"WTFPL"
] | null | null | null | snippets/blender-2.79b-and-older/dev/default-UI-template.py | cstfan/BlenderScripts | 4787453111b9fffa4fa21458016b09da17b278e2 | [
"WTFPL"
] | null | null | null | import bpy
class tmpPanel(bpy.types.Panel):
bl_label = "tmpPanel"
bl_space_type = "VIEW_3D"
bl_region_type = "TOOLS"
bl_category = "Addons"
def draw(self, context):
layout = self.layout
scriptBox = layout.box()
scriptBox.label(text = "scriptBox")
def register():
... | 19.25 | 43 | 0.645022 | 54 | 462 | 5.203704 | 0.555556 | 0.13879 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002841 | 0.238095 | 462 | 23 | 44 | 20.086957 | 0.795455 | 0 | 0 | 0 | 0 | 0 | 0.093074 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.0625 | 0 | 0.5625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
9dd9cb31dd71d88ed74181be510cc6452ee664f3 | 2,228 | py | Python | meilisearch/tests/settings/test_settings_searchable_attributes_meilisearch.py | ledo01/meilisearch-python | a09b4a199649cdfcbb4e7ea1dbc83e4f4a0faf4f | [
"MIT"
] | null | null | null | meilisearch/tests/settings/test_settings_searchable_attributes_meilisearch.py | ledo01/meilisearch-python | a09b4a199649cdfcbb4e7ea1dbc83e4f4a0faf4f | [
"MIT"
] | null | null | null | meilisearch/tests/settings/test_settings_searchable_attributes_meilisearch.py | ledo01/meilisearch-python | a09b4a199649cdfcbb4e7ea1dbc83e4f4a0faf4f | [
"MIT"
] | null | null | null | import json
import meilisearch
from meilisearch.tests import BASE_URL, MASTER_KEY
class TestSearchableAttributes:
""" TESTS: searchableAttributes setting """
client = meilisearch.Client(BASE_URL, MASTER_KEY)
index = None
dataset_file = None
dataset_json = None
new_searchable_attributes = ['so... | 40.509091 | 90 | 0.701975 | 247 | 2,228 | 6.089069 | 0.295547 | 0.226064 | 0.090426 | 0.058511 | 0.400931 | 0.325133 | 0.299867 | 0.249335 | 0.219415 | 0.219415 | 0 | 0 | 0.197935 | 2,228 | 54 | 91 | 41.259259 | 0.841634 | 0.083483 | 0 | 0.317073 | 0 | 0 | 0.064356 | 0.013861 | 0 | 0 | 0 | 0 | 0.243902 | 1 | 0.121951 | false | 0 | 0.073171 | 0 | 0.365854 | 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 |
9ddebeb174659f4d11630984749e3fb12ad47a4b | 228 | py | Python | contactform/urls.py | flaab/pz-django-contactform | 27265384f1ac6f7bafe2c1fc7200d17192826ae8 | [
"MIT"
] | 1 | 2020-03-06T19:40:36.000Z | 2020-03-06T19:40:36.000Z | contactform/urls.py | flaab/pz-django-contactform | 27265384f1ac6f7bafe2c1fc7200d17192826ae8 | [
"MIT"
] | null | null | null | contactform/urls.py | flaab/pz-django-contactform | 27265384f1ac6f7bafe2c1fc7200d17192826ae8 | [
"MIT"
] | null | null | null | from django.urls import path, include
from . import views
# App name
app_name = 'contactform'
# Url Patterns
urlpatterns = [
path('', views.form, name = 'contact'),
path('success/', views.success, name = 'success'),
]
| 19 | 54 | 0.666667 | 28 | 228 | 5.392857 | 0.571429 | 0.092715 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.184211 | 228 | 11 | 55 | 20.727273 | 0.811828 | 0.092105 | 0 | 0 | 0 | 0 | 0.161765 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9de5dfcbc103723aaed8c6c12dfed1bb4a60dd7d | 1,738 | py | Python | tests/scripts/functional_tests.py | litongxin1991/incubator-mesatee | 2fa546e524b994bdf8640f08a5e732e87b5a69b5 | [
"Apache-2.0"
] | null | null | null | tests/scripts/functional_tests.py | litongxin1991/incubator-mesatee | 2fa546e524b994bdf8640f08a5e732e87b5a69b5 | [
"Apache-2.0"
] | null | null | null | tests/scripts/functional_tests.py | litongxin1991/incubator-mesatee | 2fa546e524b994bdf8640f08a5e732e87b5a69b5 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
import unittest
import socket
import struct
import ssl
import json
hostname = 'localhost'
authentication_service_address = (hostname, 7776)
context = ssl._create_unverified_context()
def write_message(sock, message):
message = json.dumps(message)
message = message.encode()
sock.wr... | 25.188406 | 78 | 0.64557 | 190 | 1,738 | 5.652632 | 0.321053 | 0.055866 | 0.063315 | 0.031657 | 0.372439 | 0.372439 | 0.372439 | 0.372439 | 0.372439 | 0.372439 | 0 | 0.005295 | 0.239356 | 1,738 | 68 | 79 | 25.558824 | 0.80711 | 0.012083 | 0 | 0.326531 | 0 | 0 | 0.138112 | 0.048368 | 0 | 0 | 0 | 0 | 0.040816 | 1 | 0.122449 | false | 0.081633 | 0.102041 | 0 | 0.265306 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9de615341d425779af018bfa1ad06557e7c81698 | 2,035 | py | Python | _graveyard/oldhotspotter/front/ResultDialog.py | Erotemic/hotspotter | 3cfa4015798e21385455b937f9083405c4b3cf53 | [
"Apache-2.0"
] | 2 | 2015-07-19T02:55:06.000Z | 2021-07-07T02:38:26.000Z | _graveyard/oldhotspotter/front/ResultDialog.py | Erotemic/hotspotter | 3cfa4015798e21385455b937f9083405c4b3cf53 | [
"Apache-2.0"
] | 5 | 2017-03-11T16:30:26.000Z | 2021-04-10T16:42:10.000Z | _graveyard/oldhotspotter/front/ResultDialog.py | Erotemic/hotspotter | 3cfa4015798e21385455b937f9083405c4b3cf53 | [
"Apache-2.0"
] | 10 | 2015-07-19T03:05:42.000Z | 2021-08-24T14:48:59.000Z | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'C:\Users\jon.crall\code\hotspotter\hs_setup\../hotspotter/front\ResultDialog.ui'
#
# Created: Thu May 30 15:48:17 2013
# by: PyQt4 UI code generator 4.10.1
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCo... | 35.701754 | 134 | 0.729238 | 212 | 2,035 | 6.867925 | 0.462264 | 0.082418 | 0.054945 | 0.076923 | 0.112637 | 0.112637 | 0.112637 | 0.112637 | 0.112637 | 0.112637 | 0 | 0.022472 | 0.169042 | 2,035 | 56 | 135 | 36.339286 | 0.838557 | 0.138084 | 0 | 0.153846 | 1 | 0 | 0.048711 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.128205 | false | 0 | 0.051282 | 0.076923 | 0.282051 | 0 | 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 |
9de7ff83c8870b3956a3b726d2560ce164f6a735 | 1,119 | py | Python | modelscript/base/symbols.py | ScribesZone/ModelScribes | a36be1047283f2e470dc2dd4353f2a714377bb7d | [
"MIT"
] | 1 | 2019-02-22T14:27:06.000Z | 2019-02-22T14:27:06.000Z | modelscript/base/symbols.py | ScribesZone/ModelScribes | a36be1047283f2e470dc2dd4353f2a714377bb7d | [
"MIT"
] | 4 | 2019-02-12T07:49:15.000Z | 2019-02-12T07:50:12.000Z | modelscript/base/symbols.py | ScribesZone/ModelScribes | a36be1047283f2e470dc2dd4353f2a714377bb7d | [
"MIT"
] | null | null | null | # coding=utf-8
"""Symbol related helpers.
This include for instance functions that check if a symbol is in CamlCase,
snake_case and soon."""
import re
__all__ = (
'Symbol',
'isVerb'
)
class Symbol(object):
CamlCase = r'^_?[A-Z][A-Za-z0-9]*_?'
camlCase = r'_?[a-z][A-Za-z0-9]*_?'
SNAKE_CASE = r'_?... | 23.808511 | 74 | 0.592493 | 169 | 1,119 | 3.775148 | 0.319527 | 0.098746 | 0.018809 | 0.025078 | 0.62069 | 0.62069 | 0.579937 | 0.579937 | 0.526646 | 0.526646 | 0 | 0.006002 | 0.255585 | 1,119 | 46 | 75 | 24.326087 | 0.759904 | 0.11975 | 0 | 0.25 | 0 | 0 | 0.111452 | 0.043967 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.15625 | false | 0 | 0.03125 | 0 | 0.53125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9ded170da91e95f5e366a5b2cb522ae66b1cbb1d | 299 | py | Python | examples/pure_python/get_secure_without_cert.py | slieberth/pygnmi | 04645899e8b5b77719b6c928dd3031ea68e2a393 | [
"BSD-3-Clause"
] | 58 | 2020-09-28T20:23:25.000Z | 2022-03-23T06:59:21.000Z | examples/pure_python/get_secure_without_cert.py | slieberth/pygnmi | 04645899e8b5b77719b6c928dd3031ea68e2a393 | [
"BSD-3-Clause"
] | 48 | 2021-01-05T08:34:27.000Z | 2022-03-29T01:17:36.000Z | examples/pure_python/get_secure_without_cert.py | slieberth/pygnmi | 04645899e8b5b77719b6c928dd3031ea68e2a393 | [
"BSD-3-Clause"
] | 21 | 2020-10-28T14:38:19.000Z | 2022-01-30T19:49:29.000Z | #!/usr/bin env python
# Modules
from pygnmi.client import gNMIclient
# Variables
host = ('192.168.56.31',50051)
# Body
if __name__ == '__main__':
with gNMIclient(target=host, username='admin', password='admin1', insecure=False) as gc:
response = gc.capabilities()
print(response) | 21.357143 | 92 | 0.692308 | 38 | 299 | 5.236842 | 0.894737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064257 | 0.167224 | 299 | 14 | 93 | 21.357143 | 0.73494 | 0.143813 | 0 | 0 | 0 | 0 | 0.126482 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.166667 | 0.166667 | 0 | 0.166667 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
9dee4b66af3780a27f6b00e52bff84c42afbf031 | 2,687 | py | Python | coordinator/api/models/study.py | kids-first/kf-api-release-coordinator | 52831b2de2e0ce734d567289f3b10d720bce8a9e | [
"Apache-2.0"
] | 2 | 2018-09-12T01:39:05.000Z | 2020-09-23T20:09:05.000Z | coordinator/api/models/study.py | kids-first/kf-api-release-coordinator | 52831b2de2e0ce734d567289f3b10d720bce8a9e | [
"Apache-2.0"
] | 89 | 2018-04-20T12:41:13.000Z | 2022-02-10T07:39:41.000Z | coordinator/api/models/study.py | kids-first/kf-api-release-coordinator | 52831b2de2e0ce734d567289f3b10d720bce8a9e | [
"Apache-2.0"
] | 1 | 2018-08-31T18:52:42.000Z | 2018-08-31T18:52:42.000Z | from django.db import models
class Study(models.Model):
"""
A study from the dataservice.
Only store the kf_id and the name of the study.
:param kf_id: The Kids First identifier, 'SD' prefix
:param name: The name of the study
:param visible: Whether or not the study is visible in the dataserv... | 38.385714 | 76 | 0.61444 | 321 | 2,687 | 4.996885 | 0.327103 | 0.121571 | 0.149626 | 0.119701 | 0.319825 | 0.236908 | 0.209476 | 0.154613 | 0.099751 | 0.099751 | 0 | 0.00274 | 0.320804 | 2,687 | 69 | 77 | 38.942029 | 0.876164 | 0.314849 | 0 | 0.314286 | 0 | 0 | 0.06872 | 0.013626 | 0 | 0 | 0 | 0 | 0 | 1 | 0.114286 | false | 0 | 0.085714 | 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 |
9df8d35b04720b5f88cdcedcc37b1dc91a736fb7 | 392 | py | Python | fantasydraft/draft/migrations/0005_rename_rushing_attempts_player_rush_attempts.py | PhiloTFarnsworth/FantasyDraftPrototype | edcd75f1a61799f76d63d62d140fbc9b514931a3 | [
"MIT"
] | null | null | null | fantasydraft/draft/migrations/0005_rename_rushing_attempts_player_rush_attempts.py | PhiloTFarnsworth/FantasyDraftPrototype | edcd75f1a61799f76d63d62d140fbc9b514931a3 | [
"MIT"
] | null | null | null | fantasydraft/draft/migrations/0005_rename_rushing_attempts_player_rush_attempts.py | PhiloTFarnsworth/FantasyDraftPrototype | edcd75f1a61799f76d63d62d140fbc9b514931a3 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.7 on 2021-09-29 06:39
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('draft', '0004_rename_namecode_player_name_code'),
]
operations = [
migrations.RenameField(
model_name='player',
old_name='ru... | 20.631579 | 59 | 0.614796 | 43 | 392 | 5.372093 | 0.790698 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067376 | 0.280612 | 392 | 18 | 60 | 21.777778 | 0.751773 | 0.114796 | 0 | 0 | 1 | 0 | 0.223188 | 0.107246 | 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 |
9df9821f3521f761117a0f4c6dc48448e35c37a0 | 4,823 | py | Python | bwi_tasks/src/take_human_input_v1.py | maxsvetlik/bwi_experimental | 263ace10825cf12be980b8378d88460da82214be | [
"BSD-3-Clause"
] | null | null | null | bwi_tasks/src/take_human_input_v1.py | maxsvetlik/bwi_experimental | 263ace10825cf12be980b8378d88460da82214be | [
"BSD-3-Clause"
] | null | null | null | bwi_tasks/src/take_human_input_v1.py | maxsvetlik/bwi_experimental | 263ace10825cf12be980b8378d88460da82214be | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/python
import time
import rospy
import roslib; roslib.load_manifest('bwi_tasks')
import actionlib
from bwi_kr_execution.msg import *
import segbot_gui.srv
import bwi_rlg.srv
from multiprocessing import Process, Value
human_waiting = False
next_room = None
def get_human_waiting():
global human_waiti... | 27.878613 | 97 | 0.570599 | 551 | 4,823 | 4.825771 | 0.315789 | 0.081234 | 0.044754 | 0.048891 | 0.494923 | 0.444528 | 0.419707 | 0.419707 | 0.388868 | 0.369688 | 0 | 0.02084 | 0.32345 | 4,823 | 172 | 98 | 28.040698 | 0.794055 | 0.03504 | 0 | 0.445455 | 0 | 0 | 0.171545 | 0.016789 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.072727 | null | null | 0.109091 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
3b019ff80193158eb39508f1e91fa85f626335c6 | 1,634 | py | Python | TSpy/listAcquPar.py | jtrebosc/JTutils | 124941a3e9101a82209b5f9b01a1276182baa9b4 | [
"BSD-3-Clause"
] | 2 | 2018-06-19T19:37:38.000Z | 2022-01-29T15:38:51.000Z | TSpy/listAcquPar.py | jtrebosc/JTutils | 124941a3e9101a82209b5f9b01a1276182baa9b4 | [
"BSD-3-Clause"
] | 2 | 2020-02-16T23:35:25.000Z | 2022-02-21T10:32:11.000Z | TSpy/listAcquPar.py | jtrebosc/JTutils | 124941a3e9101a82209b5f9b01a1276182baa9b4 | [
"BSD-3-Clause"
] | 2 | 2022-01-29T15:38:52.000Z | 2022-03-05T10:25:21.000Z | # -*- coding: utf-8 -*-
help="""
Lists given parameter for all expno in current expname
syntax: listAcquPar param [1|2] [s]
param : parameter as read (case sensitive!) in acqu(s).
If parameter is an array value, the index must be
provided after a dot.
example : D.1 PLW.21
options:
1|2 : 1 read in dim... | 24.029412 | 63 | 0.624847 | 241 | 1,634 | 4.236515 | 0.456432 | 0.032321 | 0.029383 | 0.052889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019716 | 0.22399 | 1,634 | 67 | 64 | 24.38806 | 0.785489 | 0.012852 | 0 | 0.072727 | 0 | 0 | 0.311254 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.072727 | null | null | 0.036364 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
3b03efc752ce67011aada034342bd84de77fb4fe | 2,573 | py | Python | test_project.py | Unique-Divine/SA-Project | 8113faa073a6c5d55704fc225b2c62b0000d4818 | [
"MIT"
] | null | null | null | test_project.py | Unique-Divine/SA-Project | 8113faa073a6c5d55704fc225b2c62b0000d4818 | [
"MIT"
] | null | null | null | test_project.py | Unique-Divine/SA-Project | 8113faa073a6c5d55704fc225b2c62b0000d4818 | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
import pytorch_lightning as pl
import data_modules
import lit_modules
import optimization
import models
import warnings
warnings.filterwarnings('ignore')
class TestMNISTOptimizers:
def get_test_lr(self) -> float:
return 1e-3
def optimizing_fns(self) -> dict:
... | 32.1625 | 74 | 0.624951 | 304 | 2,573 | 5.046053 | 0.286184 | 0.078227 | 0.029335 | 0.046936 | 0.425684 | 0.345502 | 0.345502 | 0.275098 | 0.275098 | 0.275098 | 0 | 0.020552 | 0.281384 | 2,573 | 80 | 75 | 32.1625 | 0.809086 | 0 | 0 | 0.258065 | 0 | 0 | 0.008885 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.112903 | false | 0.080645 | 0.129032 | 0.016129 | 0.322581 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d178a4601887fb1da5bf8c95e27e7ab9cfdbc23f | 3,073 | py | Python | python3/708.insert-into-a-sorted-circular-linked-list.205631382.ac.py | Diego-Zulu/leetcode_answers | ad435df1bd95fb2c6e17d2d9ff349282c98ee0f4 | [
"MIT"
] | null | null | null | python3/708.insert-into-a-sorted-circular-linked-list.205631382.ac.py | Diego-Zulu/leetcode_answers | ad435df1bd95fb2c6e17d2d9ff349282c98ee0f4 | [
"MIT"
] | null | null | null | python3/708.insert-into-a-sorted-circular-linked-list.205631382.ac.py | Diego-Zulu/leetcode_answers | ad435df1bd95fb2c6e17d2d9ff349282c98ee0f4 | [
"MIT"
] | null | null | null | #
# @lc app=leetcode id=708 lang=python3
#
# [708] Insert into a Sorted Circular Linked List
#
# https://leetcode.com/problems/insert-into-a-sorted-circular-linked-list/description/
#
# algorithms
# Medium (31.27%)
# Likes: 269
# Dislikes: 283
# Total Accepted: 32K
# Total Submissions: 102.5K
# Testcase Example: ... | 28.719626 | 108 | 0.63521 | 452 | 3,073 | 4.254425 | 0.30531 | 0.070723 | 0.062403 | 0.039002 | 0.233489 | 0.233489 | 0.224649 | 0.183047 | 0.183047 | 0.183047 | 0 | 0.029152 | 0.263261 | 3,073 | 106 | 109 | 28.990566 | 0.82023 | 0.614709 | 0 | 0.1 | 0 | 0 | 0.009973 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0.2 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
d17dbd5e260f2d7dd557f74c37dd541ed4c640ae | 10,983 | py | Python | cropsr_functions.py | znorgaard/CROPSR | 3c770cf6e5e9d8ac8da700256df8ff178cfc014c | [
"Apache-2.0"
] | 3 | 2022-02-21T07:42:53.000Z | 2022-02-25T08:25:53.000Z | cropsr_functions.py | znorgaard/CROPSR | 3c770cf6e5e9d8ac8da700256df8ff178cfc014c | [
"Apache-2.0"
] | 1 | 2022-03-08T16:49:41.000Z | 2022-03-08T16:49:41.000Z | cropsr_functions.py | znorgaard/CROPSR | 3c770cf6e5e9d8ac8da700256df8ff178cfc014c | [
"Apache-2.0"
] | 2 | 2021-09-13T17:10:37.000Z | 2022-03-08T16:27:37.000Z | #!/usr/bin/env python3
def one_base_matrix(sequence):
"""
Generates a binary matrix for DNA/RNA sequence, where each column is a possible base
and each row is a position along the sequence. Matrix column order is A, T/U, C, G
"""
# Import libraries
from numpy import zeros
# Function
se... | 33.690184 | 110 | 0.544842 | 1,507 | 10,983 | 3.891838 | 0.275382 | 0.021483 | 0.01364 | 0.015345 | 0.21688 | 0.202558 | 0.164535 | 0.123444 | 0.117818 | 0.087127 | 0 | 0.124446 | 0.301284 | 10,983 | 325 | 111 | 33.793846 | 0.639692 | 0.172084 | 0 | 0.092166 | 1 | 0 | 0.04892 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046083 | false | 0 | 0.0553 | 0 | 0.142857 | 0.013825 | 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 |
d17ddb3d6c25f4675eacc43ab377f948f4712cdb | 592 | py | Python | twisted/plugins/lisaserver_plugin.py | Seraf/LISA | 7233a0f024c7dac412cbf79d617be4e4f48b2b7d | [
"MIT"
] | 29 | 2015-01-01T20:28:34.000Z | 2018-09-28T00:54:23.000Z | twisted/plugins/lisaserver_plugin.py | Seraf/LISA | 7233a0f024c7dac412cbf79d617be4e4f48b2b7d | [
"MIT"
] | 6 | 2015-04-06T06:41:21.000Z | 2017-02-19T19:01:20.000Z | twisted/plugins/lisaserver_plugin.py | Seraf/LISA | 7233a0f024c7dac412cbf79d617be4e4f48b2b7d | [
"MIT"
] | 15 | 2015-03-16T02:39:08.000Z | 2021-11-25T16:25:42.000Z | from zope.interface import implements
from twisted.python import usage
from twisted.application.service import IServiceMaker
from twisted.plugin import IPlugin
from lisa.server import service
class Options(usage.Options):
optParameters = [
['configuration', 'c', '/etc/lisa/server/configuration/lisa.json... | 22.769231 | 75 | 0.733108 | 63 | 592 | 6.888889 | 0.492063 | 0.092166 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173986 | 592 | 25 | 76 | 23.68 | 0.887526 | 0 | 0 | 0 | 0 | 0 | 0.130068 | 0.067568 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.294118 | 0.058824 | 0.764706 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d17e5616b25509b24c69d7fc7ab152889a0f438b | 1,295 | py | Python | shipit/Tests/Address_test.py | kevmoeman/shipit | 9f394601e93455d4f9f284ab5342b95e90d4b243 | [
"MIT"
] | 1 | 2017-01-30T07:56:34.000Z | 2017-01-30T07:56:34.000Z | shipit/Tests/Address_test.py | kevmoeman/shipit | 9f394601e93455d4f9f284ab5342b95e90d4b243 | [
"MIT"
] | null | null | null | shipit/Tests/Address_test.py | kevmoeman/shipit | 9f394601e93455d4f9f284ab5342b95e90d4b243 | [
"MIT"
] | null | null | null | import unittest
import Address
import Package
import Station
import Vehicle
class Test_Objects(unittest.TestCase):
def test_address_values(self):
adrid = '213',
person = 'chester vantester',
street = '5555 test street',
zipcode = "55555",
city = "testville",
state ... | 21.229508 | 44 | 0.557529 | 149 | 1,295 | 4.657718 | 0.281879 | 0.216138 | 0.138329 | 0.103746 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021004 | 0.338224 | 1,295 | 61 | 45 | 21.229508 | 0.788798 | 0.023166 | 0 | 0 | 0 | 0 | 0.052174 | 0 | 0 | 0 | 0 | 0 | 0.227273 | 1 | 0.045455 | false | 0 | 0.113636 | 0 | 0.181818 | 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 |
d183c3ab631b7124d559dfd5d15d466b267f6a5d | 687 | py | Python | flaskblog/auth/models.py | davshen/Flog | b9d41115f4d221c0ae47753770771f2f7ab1bb3f | [
"MIT"
] | 202 | 2018-02-11T03:43:40.000Z | 2022-03-31T03:17:51.000Z | flaskblog/auth/models.py | davshen/Flog | b9d41115f4d221c0ae47753770771f2f7ab1bb3f | [
"MIT"
] | 19 | 2018-12-27T08:01:22.000Z | 2021-12-27T01:09:09.000Z | flaskblog/auth/models.py | davshen/Flog | b9d41115f4d221c0ae47753770771f2f7ab1bb3f | [
"MIT"
] | 52 | 2018-10-15T02:45:21.000Z | 2022-03-02T09:15:35.000Z | from ..models import db
class OAuth2Token(db.Model):
id = db.Column(db.Integer(), primary_key=True)
name = db.Column(db.String(40))
token_type = db.Column(db.String(40))
access_token = db.Column(db.String(200))
refresh_token = db.Column(db.String(200))
expires_at = db.Column(db.Integer())
... | 32.714286 | 80 | 0.644833 | 95 | 687 | 4.505263 | 0.368421 | 0.130841 | 0.163551 | 0.149533 | 0.285047 | 0.11215 | 0 | 0 | 0 | 0 | 0 | 0.020333 | 0.212518 | 687 | 20 | 81 | 34.35 | 0.770795 | 0 | 0 | 0 | 0 | 0 | 0.034935 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.058824 | 0.058824 | 0.705882 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d188050ebfa2abcc531bd741a918f59baed8b367 | 14,283 | py | Python | ryu/app/krack_code.py | SyedDanialAliShah/ryu | 0c800a345084d7eb51b59f11b30adbe9c7d6348e | [
"Apache-2.0"
] | null | null | null | ryu/app/krack_code.py | SyedDanialAliShah/ryu | 0c800a345084d7eb51b59f11b30adbe9c7d6348e | [
"Apache-2.0"
] | null | null | null | ryu/app/krack_code.py | SyedDanialAliShah/ryu | 0c800a345084d7eb51b59f11b30adbe9c7d6348e | [
"Apache-2.0"
] | null | null | null | '!/usr/bin/env python2'
# Copyright (c) 2017, Mathy Vanhoef <Mathy.Vanhoef@cs.kuleuven.be>
#
# This code may be distributed under the terms of the BSD license.
# See README for more details.
import logging
import threading
from krack_app import SimpleSwitch13
logging.getLogger("scapy.runtime").setLevel(logging.ERROR... | 40.692308 | 147 | 0.637821 | 2,070 | 14,283 | 4.335749 | 0.284058 | 0.017382 | 0.013259 | 0.017159 | 0.146295 | 0.08 | 0.060724 | 0.049805 | 0.032089 | 0.023398 | 0 | 0.03914 | 0.26122 | 14,283 | 351 | 148 | 40.692308 | 0.81141 | 0.188196 | 0 | 0.086066 | 0 | 0.02459 | 0.420643 | 0.01678 | 0 | 0 | 0.001049 | 0.002849 | 0 | 0 | null | null | 0.008197 | 0.057377 | null | null | 0.012295 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d188ff7aea97614348bec47d83abcd40bc92341f | 1,734 | py | Python | Server/src/quadradiusr_server/rest/mappers.py | kjarosh/QuadradiusR | 2e55188bf9c9cd980ec6d11fce51830d0b4749d7 | [
"MIT"
] | 6 | 2022-02-08T11:16:39.000Z | 2022-03-27T10:41:19.000Z | Server/src/quadradiusr_server/rest/mappers.py | kjarosh/QuadradiusR | 2e55188bf9c9cd980ec6d11fce51830d0b4749d7 | [
"MIT"
] | 60 | 2022-02-08T10:33:36.000Z | 2022-03-27T15:30:57.000Z | Server/src/quadradiusr_server/rest/mappers.py | kjarosh/QuadradiusR | 2e55188bf9c9cd980ec6d11fce51830d0b4749d7 | [
"MIT"
] | 2 | 2022-02-11T12:50:39.000Z | 2022-02-17T00:11:32.000Z | from typing import Optional, List
from quadradiusr_server.db.base import User, GameInvite, Game, LobbyMessage, Lobby
from quadradiusr_server.powers import PowerDefinition
def user_to_json(user: User):
return {
'id': user.id_,
'username': user.username_,
}
def game_invite_to_json(game_invite... | 25.880597 | 82 | 0.617647 | 205 | 1,734 | 4.84878 | 0.253659 | 0.072435 | 0.070423 | 0.056338 | 0.080483 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.262399 | 1,734 | 66 | 83 | 26.272727 | 0.77717 | 0 | 0 | 0.150943 | 0 | 0 | 0.088235 | 0.020185 | 0 | 0 | 0 | 0 | 0 | 1 | 0.113208 | false | 0 | 0.056604 | 0.113208 | 0.283019 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d1948677aa2e3810a701df2a03c0bb52862e082d | 729 | py | Python | core/mixin.py | koatse/ilikethem | 962374ff8179a533dba3b00422d11bb819d8acde | [
"MIT"
] | null | null | null | core/mixin.py | koatse/ilikethem | 962374ff8179a533dba3b00422d11bb819d8acde | [
"MIT"
] | null | null | null | core/mixin.py | koatse/ilikethem | 962374ff8179a533dba3b00422d11bb819d8acde | [
"MIT"
] | null | null | null | from django.shortcuts import render, redirect
from django.contrib.auth.mixins import LoginRequiredMixin
from .models import UserProfile
class RequireUserProfileMixin(LoginRequiredMixin):
def dispatch(self, request, *args, **kwargs):
try:
userprofile = UserProfile.objects.get(user=self.request.u... | 38.368421 | 86 | 0.707819 | 73 | 729 | 7.013699 | 0.424658 | 0.058594 | 0.066406 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1893 | 729 | 18 | 87 | 40.5 | 0.866328 | 0 | 0 | 0 | 0 | 0 | 0.06044 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | 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 |
d1956b92be585c94719cc771a2dfc9560fb869d9 | 291 | py | Python | Semana08Atividade01/Sem08Atv01Q04.py | Marvingms7/IFPI | 0f6d50e4a7e1016e58cd227b477b3ce08e19c61a | [
"MIT"
] | null | null | null | Semana08Atividade01/Sem08Atv01Q04.py | Marvingms7/IFPI | 0f6d50e4a7e1016e58cd227b477b3ce08e19c61a | [
"MIT"
] | null | null | null | Semana08Atividade01/Sem08Atv01Q04.py | Marvingms7/IFPI | 0f6d50e4a7e1016e58cd227b477b3ce08e19c61a | [
"MIT"
] | null | null | null | listTotal = []
listPar = []
listImpar = []
for c in range(1, 21):
n = int(input("Digite um numero: "))
if n % 2 == 0:
listTotal.append(n)
listPar.append(n)
else:
listImpar.append(n)
listTotal.append(n)
print(f'{listTotal}\n{listPar}\n{listImpar}') | 24.25 | 45 | 0.570447 | 39 | 291 | 4.25641 | 0.564103 | 0.168675 | 0.192771 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023148 | 0.257732 | 291 | 12 | 45 | 24.25 | 0.74537 | 0 | 0 | 0.166667 | 0 | 0 | 0.181507 | 0.119863 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.083333 | 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 |
d199e8feeffdf3f671bad98e740385600c80cf87 | 2,514 | py | Python | huaweipythonsdkcore/exception.py | ale3385/huaweicloud-python-sdk-core | 05c2dab71b420459ce85dac3a3c7ccd867b3c6a2 | [
"Apache-2.0"
] | 1 | 2019-01-24T18:35:24.000Z | 2019-01-24T18:35:24.000Z | huaweipythonsdkcore/exception.py | ale3385/huaweicloud-python-sdk-core | 05c2dab71b420459ce85dac3a3c7ccd867b3c6a2 | [
"Apache-2.0"
] | null | null | null | huaweipythonsdkcore/exception.py | ale3385/huaweicloud-python-sdk-core | 05c2dab71b420459ce85dac3a3c7ccd867b3c6a2 | [
"Apache-2.0"
] | 2 | 2018-11-14T15:19:27.000Z | 2018-11-27T08:31:10.000Z | # Copyright (c) 2018 Huawei Technologies Co., Ltd.
# 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
#
# ... | 33.52 | 78 | 0.620923 | 261 | 2,514 | 5.781609 | 0.421456 | 0.092777 | 0.043738 | 0.076209 | 0.241219 | 0.221339 | 0.152419 | 0.059642 | 0 | 0 | 0 | 0.004474 | 0.288783 | 2,514 | 74 | 79 | 33.972973 | 0.839485 | 0.246221 | 0 | 0.25641 | 0 | 0 | 0.144681 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0 | 0.076923 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d19a4b61067c50ad08a8e6a17840485215e1fada | 6,335 | py | Python | tests/test_mock_views.py | maykinmedia/django-digid-eherkenning | 48efc88e64d3b2f9aa793758cd313b6ad8c633c4 | [
"MIT"
] | 1 | 2022-02-25T19:36:08.000Z | 2022-02-25T19:36:08.000Z | tests/test_mock_views.py | maykinmedia/django-digid-eherkenning | 48efc88e64d3b2f9aa793758cd313b6ad8c633c4 | [
"MIT"
] | 2 | 2022-03-15T14:05:58.000Z | 2022-03-17T08:33:44.000Z | tests/test_mock_views.py | maykinmedia/django-digid-eherkenning | 48efc88e64d3b2f9aa793758cd313b6ad8c633c4 | [
"MIT"
] | null | null | null | from urllib.parse import urlencode
from django.contrib.auth import get_user_model
from django.test import TestCase, modify_settings, override_settings
from django.urls import reverse, reverse_lazy
from furl import furl
class DigidMockTestCase(TestCase):
def assertNoDigidURLS(self, response):
# verify no... | 33.518519 | 75 | 0.626046 | 685 | 6,335 | 5.645255 | 0.188321 | 0.055857 | 0.051202 | 0.067494 | 0.628653 | 0.614171 | 0.609516 | 0.605896 | 0.593225 | 0.510732 | 0 | 0.016393 | 0.248934 | 6,335 | 188 | 76 | 33.696809 | 0.796343 | 0.067088 | 0 | 0.566434 | 0 | 0 | 0.172121 | 0.039512 | 0 | 0 | 0 | 0 | 0.195804 | 1 | 0.062937 | false | 0.06993 | 0.034965 | 0 | 0.125874 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d19fad5f961bc8c9ebfb23afe61c2a160ea39787 | 8,582 | py | Python | spark/src/test/resources/scripts/WorkingDays.py | kanaridi/bstl-scala | 2af2e6e0cc80d83da652e0a443288f44a5f57958 | [
"MIT"
] | 1 | 2021-07-06T11:54:48.000Z | 2021-07-06T11:54:48.000Z | spark/src/test/resources/scripts/WorkingDays.py | kanaridi/bstl-scala | 2af2e6e0cc80d83da652e0a443288f44a5f57958 | [
"MIT"
] | null | null | null | spark/src/test/resources/scripts/WorkingDays.py | kanaridi/bstl-scala | 2af2e6e0cc80d83da652e0a443288f44a5f57958 | [
"MIT"
] | 2 | 2021-07-06T12:21:16.000Z | 2021-07-06T12:22:03.000Z | from datetime import timedelta, date
import re
def workday(datevalue, offset):
# -------------------------------------------------------------------------
# Workday Function
# -------------------------------------------------------------------------
datevalue = str(datevalue)
# use regex to to sep... | 37.806167 | 79 | 0.492776 | 935 | 8,582 | 4.522995 | 0.135829 | 0.040435 | 0.036888 | 0.036888 | 0.728777 | 0.681958 | 0.681958 | 0.675337 | 0.664933 | 0.664933 | 0 | 0.024386 | 0.249825 | 8,582 | 226 | 80 | 37.973451 | 0.632495 | 0.37066 | 0 | 0.693878 | 0 | 0 | 0.018762 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.040816 | false | 0 | 0.013605 | 0 | 0.095238 | 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 |
d1a08b9420aba7683fafe7898b483f466f6c0aaa | 4,958 | py | Python | Lab 4 Pygame(part 1)/pic 14-1.py | gnorayr/infa_2020_Gevorgyan | a1eac56d31f0c873cd8a0fd67344f47ab973d452 | [
"MIT"
] | null | null | null | Lab 4 Pygame(part 1)/pic 14-1.py | gnorayr/infa_2020_Gevorgyan | a1eac56d31f0c873cd8a0fd67344f47ab973d452 | [
"MIT"
] | 2 | 2020-10-10T17:30:07.000Z | 2020-11-04T09:21:48.000Z | Lab 4 Pygame(part 1)/pic 14-1.py | gnorayr/infa_2020_Gevorgyan | a1eac56d31f0c873cd8a0fd67344f47ab973d452 | [
"MIT"
] | 1 | 2020-10-02T07:31:24.000Z | 2020-10-02T07:31:24.000Z | import pygame
from pygame.draw import *
from math import pi
pygame.init()
FPS = 30
screen = pygame.display.set_mode((400, 600))
def grass():
rect(screen, (55, 200, 113), (0, 350, 600, 250))
def fence():
x1 = 0
y1 = 100
x2 = 500
y2 = 350
line(screen, (0, 0, 0), (0, y2), (x2, y2))
N = 19... | 33.727891 | 106 | 0.424566 | 806 | 4,958 | 2.563275 | 0.165012 | 0.036786 | 0.02759 | 0.078412 | 0.488383 | 0.380445 | 0.35092 | 0.295741 | 0.25847 | 0.207648 | 0 | 0.18467 | 0.376361 | 4,958 | 146 | 107 | 33.958904 | 0.483506 | 0.006253 | 0 | 0.053097 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088496 | false | 0 | 0.026549 | 0 | 0.115044 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d1a3db19991bbeb4b17f4720a3bf924ddd66307b | 538 | py | Python | accounts/migrations/0022_profile_allow_donation_data.py | Revibe-Music/core-services | 6b11cf16ad2c35d948f3a5c0e7a161e5b7cfc1b2 | [
"MIT"
] | 2 | 2022-01-24T23:30:18.000Z | 2022-01-26T00:21:22.000Z | accounts/migrations/0022_profile_allow_donation_data.py | Revibe-Music/core-services | 6b11cf16ad2c35d948f3a5c0e7a161e5b7cfc1b2 | [
"MIT"
] | null | null | null | accounts/migrations/0022_profile_allow_donation_data.py | Revibe-Music/core-services | 6b11cf16ad2c35d948f3a5c0e7a161e5b7cfc1b2 | [
"MIT"
] | null | null | null | # Generated by Django 3.0 on 2020-03-30 19:10
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0021_auto_20200330_1152'),
]
operations = [
migrations.AddField(
model_name='profile',
name='allow_donatio... | 28.315789 | 191 | 0.663569 | 64 | 538 | 5.453125 | 0.8125 | 0.051576 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072993 | 0.236059 | 538 | 18 | 192 | 29.888889 | 0.776156 | 0.079926 | 0 | 0 | 1 | 0 | 0.310345 | 0.046653 | 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 |
d1a9b1caccfac75e91059a704f894c3e24f08fd3 | 16,011 | py | Python | emma/interface/models.py | djangowebstudio/emma | afbdaa5c02b4164687356755fddba307eb682ef4 | [
"BSD-3-Clause"
] | null | null | null | emma/interface/models.py | djangowebstudio/emma | afbdaa5c02b4164687356755fddba307eb682ef4 | [
"BSD-3-Clause"
] | null | null | null | emma/interface/models.py | djangowebstudio/emma | afbdaa5c02b4164687356755fddba307eb682ef4 | [
"BSD-3-Clause"
] | null | null | null | import os, sys, inspect
from django.db import models
import emma.core.metadata as metadata
from django.core.management import setup_environ
import settings
setup_environ(settings)
from django.core.files.storage import FileSystemStorage
fs = FileSystemStorage()
import logging
from django.contrib.contenttypes.models impo... | 39.242647 | 161 | 0.647305 | 1,858 | 16,011 | 5.444564 | 0.178687 | 0.05694 | 0.11032 | 0.147094 | 0.477956 | 0.430605 | 0.383353 | 0.266212 | 0.218466 | 0.203934 | 0 | 0.018809 | 0.246206 | 16,011 | 408 | 162 | 39.242647 | 0.819372 | 0.071388 | 0 | 0.287097 | 0 | 0 | 0.073763 | 0.004271 | 0 | 0 | 0 | 0 | 0 | 1 | 0.077419 | false | 0 | 0.032258 | 0.058065 | 0.716129 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d1adfe8a2e390a358ac9c8e1998951ac7d10367e | 2,005 | py | Python | citeproc-js/attic/FIXCORESTYLES.py | itserik0/citationbuilder | 0995115b5b55c34b3dfa554eaca61be630bb006c | [
"MIT"
] | 9 | 2015-03-18T09:42:27.000Z | 2021-11-30T02:13:33.000Z | lib/citeproc-js/attic/FIXCORESTYLES.py | datacite/mastiff | 2b377810496fc241834992c7df5b3b73d135f5ca | [
"Apache-2.0"
] | 23 | 2015-01-14T07:54:21.000Z | 2021-12-10T08:22:05.000Z | lib/citeproc-js/attic/FIXCORESTYLES.py | datacite/mastiff | 2b377810496fc241834992c7df5b3b73d135f5ca | [
"Apache-2.0"
] | 7 | 2015-03-18T11:04:18.000Z | 2021-12-02T21:46:00.000Z | #!/usr/bin/env python
#-*- encoding: utf-8 -*-
""" Convert options to attributes in full test styles.
"""
import sys,os,re
from xml.etree import ElementTree
namespace = 'xmlns="http://purl.org/net/xbiblio/csl"'
def indent(elem, level=0):
i = "\n" + level*" "
if len(elem):
if not elem.text or not ele... | 31.328125 | 69 | 0.532668 | 263 | 2,005 | 4.015209 | 0.34981 | 0.068182 | 0.0625 | 0.036932 | 0.151515 | 0.111742 | 0.111742 | 0.111742 | 0.111742 | 0.111742 | 0 | 0.005618 | 0.289776 | 2,005 | 63 | 70 | 31.825397 | 0.735955 | 0.021446 | 0 | 0.142857 | 0 | 0 | 0.121725 | 0.018013 | 0.020408 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.040816 | null | null | 0.020408 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d1b43094ad6c5bedd4ade56f1311ba7e64a22bb8 | 309 | py | Python | projects/vdk-plugins/vdk-control-api-auth/src/vdk/plugin/control_api_auth/login_types.py | alod83/versatile-data-kit | 9ca672d3929eb3dc6fe5c677e8c8a75e2a0d2be8 | [
"Apache-2.0"
] | 100 | 2021-10-04T09:32:04.000Z | 2022-03-30T11:23:53.000Z | projects/vdk-plugins/vdk-control-api-auth/src/vdk/plugin/control_api_auth/login_types.py | alod83/versatile-data-kit | 9ca672d3929eb3dc6fe5c677e8c8a75e2a0d2be8 | [
"Apache-2.0"
] | 208 | 2021-10-04T16:56:40.000Z | 2022-03-31T10:41:44.000Z | projects/vdk-plugins/vdk-control-api-auth/src/vdk/plugin/control_api_auth/login_types.py | alod83/versatile-data-kit | 9ca672d3929eb3dc6fe5c677e8c8a75e2a0d2be8 | [
"Apache-2.0"
] | 14 | 2021-10-11T14:15:13.000Z | 2022-03-11T13:39:17.000Z | # Copyright 2021 VMware, Inc.
# SPDX-License-Identifier: Apache-2.0
from enum import Enum
class LoginTypes(Enum):
"""
An enum used to store the types of authentication which the
versatile data kit sdk (vdk) provides.
"""
CREDENTIALS = "credentials"
API_TOKEN = "api-token" # nosec
| 22.071429 | 63 | 0.682848 | 41 | 309 | 5.121951 | 0.829268 | 0.07619 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025 | 0.223301 | 309 | 13 | 64 | 23.769231 | 0.85 | 0.546926 | 0 | 0 | 0 | 0 | 0.169492 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 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 |
d1b6c7b5058cc5b6dce35df13bcbb1087ac5e119 | 2,440 | py | Python | 2019/exercise3_R/imitation_learning/test.py | f2010126/DL_Labs | ee81d8aa6027846fc32c98feb9079211c59aa0e9 | [
"BSD-3-Clause"
] | null | null | null | 2019/exercise3_R/imitation_learning/test.py | f2010126/DL_Labs | ee81d8aa6027846fc32c98feb9079211c59aa0e9 | [
"BSD-3-Clause"
] | null | null | null | 2019/exercise3_R/imitation_learning/test.py | f2010126/DL_Labs | ee81d8aa6027846fc32c98feb9079211c59aa0e9 | [
"BSD-3-Clause"
] | null | null | null | from __future__ import print_function
import sys
sys.path.append("../")
from datetime import datetime
import numpy as np
import gym
import os
import json
from agent.bc_agent import BCAgent
from utils import *
def run_episode(env, agent, rendering=True, max_timesteps=1000):
episode_reward = 0
step = 0... | 29.047619 | 145 | 0.625 | 325 | 2,440 | 4.566154 | 0.483077 | 0.056604 | 0.008086 | 0.008086 | 0.040431 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009174 | 0.285246 | 2,440 | 83 | 146 | 29.39759 | 0.841743 | 0.361066 | 0 | 0 | 0 | 0 | 0.066796 | 0.020752 | 0 | 0 | 0 | 0.012048 | 0 | 1 | 0.02381 | false | 0 | 0.214286 | 0 | 0.261905 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d1c2918b9315bb7db0fdf78379315aa88f68c862 | 754 | py | Python | 09_programowanie_obiektowe/06_dziedziczenie.py | krakowiakpawel9/python_kurs | 7e532a6acb135c352834e03d34512270538ec209 | [
"MIT"
] | 17 | 2020-04-08T11:20:57.000Z | 2022-03-15T16:49:37.000Z | 09_programowanie_obiektowe/06_dziedziczenie.py | brownmilleryt/python_kurs | 7e532a6acb135c352834e03d34512270538ec209 | [
"MIT"
] | null | null | null | 09_programowanie_obiektowe/06_dziedziczenie.py | brownmilleryt/python_kurs | 7e532a6acb135c352834e03d34512270538ec209 | [
"MIT"
] | 19 | 2019-12-08T18:59:44.000Z | 2022-03-02T19:09:48.000Z | # -*- coding: utf-8 -*-
"""
@author: krakowiakpawel9@gmail.com
@site: e-smartdata.org
"""
class Czlowiek:
def __init__(self, imie, nazwisko):
self.imie = imie
self.nazwisko = nazwisko
def info(self):
print(f'{self.imie} {self.nazwisko}')
class Pilkarz(Czlo... | 17.952381 | 55 | 0.522546 | 78 | 754 | 4.846154 | 0.423077 | 0.084656 | 0.079365 | 0.100529 | 0.164021 | 0.164021 | 0 | 0 | 0 | 0 | 0 | 0.011834 | 0.327586 | 754 | 42 | 56 | 17.952381 | 0.733728 | 0.114058 | 0 | 0.117647 | 0 | 0 | 0.136571 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0 | 0 | 0.352941 | 0.117647 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d1c2d2688d6f1ea8d90287afeaf0eed050644fed | 257 | py | Python | codev/qr-svg/qr-encoder.py | creative-sensor/echo-home | 14ed0da26e455ff19425ea9fc2a5e81bba8ca2c2 | [
"MIT"
] | null | null | null | codev/qr-svg/qr-encoder.py | creative-sensor/echo-home | 14ed0da26e455ff19425ea9fc2a5e81bba8ca2c2 | [
"MIT"
] | 2 | 2021-05-11T10:33:39.000Z | 2022-01-22T11:35:20.000Z | codev/qr-svg/qr-encoder.py | creative-sensor/echo-home | 14ed0da26e455ff19425ea9fc2a5e81bba8ca2c2 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import INPUT_SET
import qrcode
import qrcode.image.svg
datum = "./data/" + INPUT_SET.QR_NAME + ".svg"
factory = qrcode.image.svg.SvgPathFillImage
img = qrcode.make(INPUT_SET.DATA, image_factory=factory)
img.save(datum)
print(datum)
| 19.769231 | 56 | 0.758755 | 39 | 257 | 4.871795 | 0.512821 | 0.126316 | 0.147368 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105058 | 257 | 12 | 57 | 21.416667 | 0.826087 | 0.077821 | 0 | 0 | 0 | 0 | 0.04661 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.