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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1ff2ae24660b64d2fc65701248036c6abd378ea6 | 290 | py | Python | unipy/dataset/__init__.py | pydemia/unipy | 804dd0d8e717aba2544092c5532235a5a3a38e9d | [
"MIT"
] | 1 | 2017-01-10T14:55:49.000Z | 2017-01-10T14:55:49.000Z | unipy/dataset/__init__.py | LogSigma/unipy | 57eba620795eefba6b97ad4e3cd3e56c35912f2a | [
"MIT"
] | null | null | null | unipy/dataset/__init__.py | LogSigma/unipy | 57eba620795eefba6b97ad4e3cd3e56c35912f2a | [
"MIT"
] | 2 | 2019-09-20T15:25:01.000Z | 2021-02-27T02:47:08.000Z | """Datasets.
This module offers you well-known datasets.
api
---
- `init` -- Unzip datasets.
- `reset` -- Re-unzip datasets.
- `ls` -- List-up datasets.
- `load` -- Load a dataset.
"""
from unipy.dataset import api
from unipy.dataset.api import *
__all__ = []
__all__ += api.__all__
| 13.809524 | 43 | 0.655172 | 38 | 290 | 4.684211 | 0.578947 | 0.146067 | 0.179775 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.17931 | 290 | 20 | 44 | 14.5 | 0.747899 | 0.617241 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 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 |
1ffa575f5a7ba42855bbea717522dbcc9e241d4d | 5,407 | py | Python | hss_app/app/models.py | heimiricmr/bromelia-hss | 68fea654434e8853365caaf4a9c780d57e5fe2e7 | [
"MIT"
] | 2 | 2021-11-28T15:33:36.000Z | 2022-01-11T05:11:58.000Z | hss_app/app/models.py | heimiricmr/bromelia-hss | 68fea654434e8853365caaf4a9c780d57e5fe2e7 | [
"MIT"
] | null | null | null | hss_app/app/models.py | heimiricmr/bromelia-hss | 68fea654434e8853365caaf4a9c780d57e5fe2e7 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
hss_app.models
~~~~~~~~~~~~~~
This module contains HSS's database models.
:copyright: (c) 2021-present Henrique Marques Ribeiro.
:license: MIT, see LICENSE for more details.
"""
from config import *
from sqlalchemy import create_engine, ForeignKey
from sqlalchemy ... | 34.006289 | 103 | 0.606251 | 537 | 5,407 | 5.880819 | 0.253259 | 0.081064 | 0.051298 | 0.039582 | 0.437935 | 0.387904 | 0.377771 | 0.330272 | 0.266308 | 0.266308 | 0 | 0.007602 | 0.294433 | 5,407 | 159 | 104 | 34.006289 | 0.820183 | 0.036619 | 0 | 0.414414 | 0 | 0 | 0.098494 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.036036 | false | 0 | 0.045045 | 0 | 0.576577 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1ffc7fc643afeff4139f231275f9209395f9c7e0 | 560 | py | Python | base/migrations/0004_auto_20170503_2021.py | imagreenplant/beacon-food-forest | 664bb1acb3f6a876df64a940a9440bd9c0f8894f | [
"MIT"
] | 1 | 2016-10-19T16:33:38.000Z | 2016-10-19T16:33:38.000Z | base/migrations/0004_auto_20170503_2021.py | imagreenplant/beacon-food-forest | 664bb1acb3f6a876df64a940a9440bd9c0f8894f | [
"MIT"
] | 9 | 2018-06-04T19:05:18.000Z | 2022-01-13T00:41:25.000Z | base/migrations/0004_auto_20170503_2021.py | imagreenplant/beacon-food-forest | 664bb1acb3f6a876df64a940a9440bd9c0f8894f | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2017-05-04 03:21
from __future__ import unicode_literals
from django.db import migrations
def migrate_markdown_to_richtext(apps, schema_editor):
Announcement = apps.get_model("base", "Announcement")
for ann in Announcement.objects.all():
ann.ccon... | 22.4 | 58 | 0.691071 | 66 | 560 | 5.636364 | 0.712121 | 0.080645 | 0.091398 | 0.134409 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044743 | 0.201786 | 560 | 24 | 59 | 23.333333 | 0.787472 | 0.117857 | 0 | 0 | 1 | 0 | 0.093686 | 0.052953 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.142857 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
95084e4df00e92d8b32cae079b5185dca3f22484 | 703 | py | Python | tool.py | croberson94/simple-dbdb | ca39400c9615f286c71abeba2bc8c87ca81e3a8a | [
"MIT"
] | null | null | null | tool.py | croberson94/simple-dbdb | ca39400c9615f286c71abeba2bc8c87ca81e3a8a | [
"MIT"
] | null | null | null | tool.py | croberson94/simple-dbdb | ca39400c9615f286c71abeba2bc8c87ca81e3a8a | [
"MIT"
] | null | null | null | # Filename: tool.py
# Description: defines a command-line tool for exploring a database
# from the terminal window
#
########
# MAIN #
########
def main(argv):
if not (4 <= len(argv) <= 5):
usage()
return BAD_ARGS
dbname, verb, key, value = (argv[1:] + [None])[:4]
if verb not in {'get', 'set', 'del... | 21.30303 | 67 | 0.600284 | 103 | 703 | 4.067961 | 0.533981 | 0.047733 | 0.066826 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00738 | 0.229018 | 703 | 33 | 68 | 21.30303 | 0.765683 | 0.230441 | 0 | 0.36 | 0 | 0 | 0.060194 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.04 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9508594be9fb383d8407867f2f7ae28fd623ed22 | 1,184 | py | Python | timer.py | QiFly233/SSPU_Curriculum_reminder_system | c0950d0e3c45281b103ff4b4ab5b76d850500986 | [
"MIT"
] | 1 | 2021-10-16T10:24:02.000Z | 2021-10-16T10:24:02.000Z | timer.py | QiFly233/SSPU_Curriculum_reminder_system | c0950d0e3c45281b103ff4b4ab5b76d850500986 | [
"MIT"
] | null | null | null | timer.py | QiFly233/SSPU_Curriculum_reminder_system | c0950d0e3c45281b103ff4b4ab5b76d850500986 | [
"MIT"
] | null | null | null | import time
class Timer:
def get_week(self):
now_time = time.localtime()
now_week = now_time.tm_wday
return now_week
def get_now_hour(self):
now_time = time.localtime()
now_hour = now_time.tm_hour
return now_hour
def get_next_hour(self):
now_time =... | 22.769231 | 41 | 0.576858 | 165 | 1,184 | 3.824242 | 0.187879 | 0.18859 | 0.122029 | 0.166403 | 0.350238 | 0.22187 | 0 | 0 | 0 | 0 | 0 | 0.008838 | 0.331081 | 1,184 | 51 | 42 | 23.215686 | 0.787879 | 0 | 0 | 0.2 | 0 | 0 | 0.007608 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.175 | false | 0 | 0.025 | 0 | 0.375 | 0.05 | 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 |
95091216eee60b700e49c8d4766482d271a5056e | 678 | py | Python | examples/gibson_assembly.py | Imperial-iGEM/synbio | 6f27ed514d9f904ca14f9055820d3922adbfe307 | [
"MIT"
] | 12 | 2019-09-20T15:47:27.000Z | 2021-12-29T19:40:02.000Z | examples/gibson_assembly.py | Imperial-iGEM/synbio | 6f27ed514d9f904ca14f9055820d3922adbfe307 | [
"MIT"
] | 11 | 2019-08-08T20:57:27.000Z | 2020-07-29T14:27:08.000Z | examples/gibson_assembly.py | Imperial-iGEM/synbio | 6f27ed514d9f904ca14f9055820d3922adbfe307 | [
"MIT"
] | 3 | 2019-09-16T14:30:01.000Z | 2021-12-29T03:47:36.000Z | """Example of Gibson cloning fragments together via PCR."""
import os
from Bio.SeqIO import parse
from synbio.assembly import gibson
insert = next(parse(os.path.join("..", "data", "gibson", "pdsred2.fa"), "fasta"))
backbone = next(parse(os.path.join("..", "data", "gibson", "pDusk.fa"), "fasta"))
# assembled the Seq... | 35.684211 | 81 | 0.725664 | 96 | 678 | 5.104167 | 0.614583 | 0.036735 | 0.044898 | 0.061224 | 0.118367 | 0.118367 | 0.118367 | 0 | 0 | 0 | 0 | 0.001706 | 0.135693 | 678 | 18 | 82 | 37.666667 | 0.834471 | 0.320059 | 0 | 0 | 0 | 0 | 0.154525 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
950b6a9beb8a10eb235b8cc8044f8cfb483abd04 | 694 | py | Python | summer_coding/64_minimum_path_sum.py | Taewan-P/LeetCode_Repository | 0e6a91c892fd406a2629b416f37dc6a989875fde | [
"MIT"
] | null | null | null | summer_coding/64_minimum_path_sum.py | Taewan-P/LeetCode_Repository | 0e6a91c892fd406a2629b416f37dc6a989875fde | [
"MIT"
] | null | null | null | summer_coding/64_minimum_path_sum.py | Taewan-P/LeetCode_Repository | 0e6a91c892fd406a2629b416f37dc6a989875fde | [
"MIT"
] | null | null | null | class Solution:
def minPathSum(self, grid: List[List[int]]) -> int:
m = len(grid[0])
n = len(grid)
if m == 0 or n == 0:
return 0
for i in range(m):
if i != 0:
grid[0][i] += grid[0][i-1]
for j in range(... | 24.785714 | 61 | 0.332853 | 97 | 694 | 2.381443 | 0.226804 | 0.08658 | 0.142857 | 0.060606 | 0.103896 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065282 | 0.514409 | 694 | 28 | 62 | 24.785714 | 0.620178 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0 | 0 | 0.3 | 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 |
9516ef5095472a9c60af69d96c3a789e85ca8fed | 975 | py | Python | CONFidence CTF 2014/Main event/Memory/solution/disasm.py | IMULMUL/ctf-tasks | 9c1549c71aa5fc876f3a46751de226320dc879af | [
"Apache-2.0"
] | 581 | 2019-02-20T08:53:36.000Z | 2022-03-20T13:29:29.000Z | CONFidence CTF 2014/Main event/Memory/solution/disasm.py | Ma3k4H3d/ctf-tasks | 67b3564307a20a9175bcf695ce9643fb80d4652f | [
"Apache-2.0"
] | null | null | null | CONFidence CTF 2014/Main event/Memory/solution/disasm.py | Ma3k4H3d/ctf-tasks | 67b3564307a20a9175bcf695ce9643fb80d4652f | [
"Apache-2.0"
] | 61 | 2019-02-20T10:57:42.000Z | 2021-07-02T06:53:09.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Filename: disasm.py
# Author: Mateusz Jurczyk
# Task: Memory
# Competition: CONFidence CTF 2014
# Category: Reverse engineering
# Scoring: 50 pts (easy)
# Number of solves: 2 out of 11 participants
import s... | 26.351351 | 61 | 0.533333 | 123 | 975 | 4.146341 | 0.658537 | 0.076471 | 0.062745 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039187 | 0.293333 | 975 | 36 | 62 | 27.083333 | 0.701016 | 0.287179 | 0 | 0 | 0 | 0 | 0.151002 | 0 | 0 | 0 | 0.009245 | 0 | 0 | 0 | null | null | 0 | 0.05 | null | null | 0.15 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
951a7b3ff82dba3c953f89f711f8ace164a106a6 | 806 | py | Python | run.py | spascou/ps2.liquidwarp.net | ef74d8793e63a8d52770cd2e5cd9ae60f4c4ae10 | [
"MIT"
] | 4 | 2020-06-25T17:19:07.000Z | 2020-11-13T05:53:52.000Z | run.py | spascou/ps2.liquidwarp.net | ef74d8793e63a8d52770cd2e5cd9ae60f4c4ae10 | [
"MIT"
] | 2 | 2020-11-22T02:43:47.000Z | 2020-12-19T09:45:21.000Z | run.py | spascou/ps2.liquidwarp.net | ef74d8793e63a8d52770cd2e5cd9ae60f4c4ae10 | [
"MIT"
] | null | null | null | import webbrowser
from threading import Timer
from flask import Flask, send_from_directory
from generate.constants import SITE_DIRECTORY
app = Flask(__name__)
app.config["SEND_FILE_MAX_AGE_DEFAULT"] = 0
@app.route("/<path:path>")
def local(path):
return send_from_directory(SITE_DIRECTORY, path)
def open_brow... | 21.210526 | 57 | 0.702233 | 117 | 806 | 4.581197 | 0.487179 | 0.029851 | 0.063433 | 0.022388 | 0.037313 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026667 | 0.162531 | 806 | 37 | 58 | 21.783784 | 0.767407 | 0 | 0 | 0 | 1 | 0 | 0.136476 | 0.031017 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.227273 | 0.045455 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
951dd4ed4c5cc3563b23061a1b3056ffaacc0bb5 | 564 | py | Python | coding-challenges/hacker-rank/algorithms/GradingStudents.py | masharp/algorithms-n-structures | b043a792986519298679d001c82733fdbfd3e7b9 | [
"MIT"
] | 1 | 2016-05-28T17:26:27.000Z | 2016-05-28T17:26:27.000Z | coding-challenges/hacker-rank/algorithms/GradingStudents.py | masharp/useful-algorithms | b043a792986519298679d001c82733fdbfd3e7b9 | [
"MIT"
] | null | null | null | coding-challenges/hacker-rank/algorithms/GradingStudents.py | masharp/useful-algorithms | b043a792986519298679d001c82733fdbfd3e7b9 | [
"MIT"
] | null | null | null | """
* Grading Students (Python)
* HackerRank Algorithm Challenge
* https://www.hackerrank.com/challenges/grading
*
* michael@softwareontheshore.com
*
* For each grade of the n grades, print the rounded grade on a new line.
"""
testA = [73, 67, 38, 33] ## 75, 67, 40, 33
def roundGrades(arr):
results = []
... | 20.888889 | 73 | 0.595745 | 77 | 564 | 4.324675 | 0.636364 | 0.063063 | 0.084084 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058111 | 0.267731 | 564 | 26 | 74 | 21.692308 | 0.748184 | 0.024823 | 0 | 0 | 0 | 0 | 0.00639 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9525749115b85e25a809ff2900242adb03f00a0a | 7,213 | py | Python | hypermap/tests/test_csw.py | camp-zju/HHypermap | f65133f2a45188ccc91dca48ea5a7f6d5afa1c18 | [
"MIT"
] | 6 | 2018-04-17T03:07:06.000Z | 2022-01-11T00:14:42.000Z | hypermap/tests/test_csw.py | camp-zju/HHypermap | f65133f2a45188ccc91dca48ea5a7f6d5afa1c18 | [
"MIT"
] | 23 | 2018-05-14T21:13:58.000Z | 2022-03-21T22:16:40.000Z | hypermap/tests/test_csw.py | camp-zju/HHypermap | f65133f2a45188ccc91dca48ea5a7f6d5afa1c18 | [
"MIT"
] | 2 | 2019-09-18T05:48:03.000Z | 2020-03-19T07:06:29.000Z | # -*- coding: utf-8 -*-
import json
import os
from django.conf import settings
from django.contrib.auth.models import User
from django.db import connections
from django.db.utils import OperationalError
from django.test import Client, LiveServerTestCase
from lxml.etree import XMLSyntaxError
from owslib.csw import Catal... | 39.631868 | 117 | 0.629558 | 850 | 7,213 | 5.262353 | 0.272941 | 0.039124 | 0.025039 | 0.034429 | 0.303823 | 0.278337 | 0.23586 | 0.22647 | 0.22647 | 0.213056 | 0 | 0.027818 | 0.237488 | 7,213 | 181 | 118 | 39.850829 | 0.785455 | 0.111743 | 0 | 0.169355 | 0 | 0 | 0.18468 | 0.034774 | 0 | 0 | 0 | 0.005525 | 0.193548 | 0 | null | null | 0.040323 | 0.08871 | null | null | 0.064516 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
952b24c3e947a334d37d42ecd3e73bf09730ef14 | 317 | py | Python | modules/commands/phpactor_rpc/move_class.py | tkotosz/sublime-phpactor-plugin | 8d152dd7b3950ea510b6b8f88783868f962967aa | [
"MIT"
] | 5 | 2020-05-04T16:19:07.000Z | 2021-09-13T17:01:47.000Z | modules/commands/phpactor_rpc/move_class.py | tkotosz/sublime-phpactor-plugin | 8d152dd7b3950ea510b6b8f88783868f962967aa | [
"MIT"
] | null | null | null | modules/commands/phpactor_rpc/move_class.py | tkotosz/sublime-phpactor-plugin | 8d152dd7b3950ea510b6b8f88783868f962967aa | [
"MIT"
] | 1 | 2020-05-14T17:53:08.000Z | 2020-05-14T17:53:08.000Z | import sublime_plugin
class PhpactorMoveClassCommand(sublime_plugin.TextCommand):
def run(self, edit):
request = {
'action': 'move_class',
'parameters': {
'source_path': '@current_path'
}
}
self.view.run_command('phpactor_rpc', request) | 28.818182 | 59 | 0.574132 | 28 | 317 | 6.25 | 0.75 | 0.148571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.315457 | 317 | 11 | 60 | 28.818182 | 0.806452 | 0 | 0 | 0 | 0 | 0 | 0.194969 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.1 | 0 | 0.3 | 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 |
953134f2e5da89bc1cd25b5a39bfe8ce180a1c14 | 1,554 | py | Python | db.py | mrkiril/HSA-8_index_vs_noindex | 356902529bcbe8d2e774ac2315e2abf2d2796386 | [
"MIT"
] | null | null | null | db.py | mrkiril/HSA-8_index_vs_noindex | 356902529bcbe8d2e774ac2315e2abf2d2796386 | [
"MIT"
] | null | null | null | db.py | mrkiril/HSA-8_index_vs_noindex | 356902529bcbe8d2e774ac2315e2abf2d2796386 | [
"MIT"
] | null | null | null | import logging
from datetime import datetime
import peewee_async
from peewee import (
Proxy, ProgrammingError, DoesNotExist, BigAutoField, SmallIntegerField,
TextField, DateTimeField, Model
)
logger = logging.getLogger(__name__)
db_proxy = Proxy()
class ExtendedDBManager(peewee_async.Manager):
async ... | 26.338983 | 79 | 0.661519 | 173 | 1,554 | 5.780347 | 0.485549 | 0.036 | 0.032 | 0.05 | 0.068 | 0.068 | 0 | 0 | 0 | 0 | 0 | 0 | 0.252252 | 1,554 | 58 | 80 | 26.793103 | 0.860585 | 0.041828 | 0 | 0.04878 | 0 | 0 | 0.066127 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04878 | false | 0 | 0.097561 | 0.02439 | 0.536585 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9533e42705e38a99fd0f1627146e786e7bb56b6f | 2,064 | py | Python | mikaponics/ecommerce/views/resources/stripe_event_views.py | mikaponics/mikaponics-back | 98e1ff8bab7dda3492e5ff637bf5aafd111c840c | [
"BSD-3-Clause"
] | 2 | 2019-04-30T23:51:41.000Z | 2019-05-04T00:35:52.000Z | mikaponics/ecommerce/views/resources/stripe_event_views.py | mikaponics/mikaponics-back | 98e1ff8bab7dda3492e5ff637bf5aafd111c840c | [
"BSD-3-Clause"
] | 27 | 2019-04-30T20:22:28.000Z | 2022-02-10T08:10:32.000Z | mikaponics/ecommerce/views/resources/stripe_event_views.py | mikaponics/mikaponics-back | 98e1ff8bab7dda3492e5ff637bf5aafd111c840c | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
import logging
from datetime import datetime
from ipware import get_client_ip
from django.conf.urls import url, include
from django.conf import settings
from django.contrib.auth.models import Group
from django.contrib.auth import authenticate, login, logout
from django.db import connection # Use... | 39.692308 | 160 | 0.750484 | 254 | 2,064 | 5.968504 | 0.488189 | 0.077177 | 0.067282 | 0.045515 | 0.110818 | 0.110818 | 0.110818 | 0.05277 | 0.05277 | 0 | 0 | 0.007643 | 0.175872 | 2,064 | 51 | 161 | 40.470588 | 0.883598 | 0.187985 | 0 | 0 | 0 | 0 | 0.023608 | 0.012712 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029412 | false | 0 | 0.588235 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 1 |
20f649a3ec5b55aff6a70f7c7bdd2d827b6ed09c | 1,103 | py | Python | migrations/crystal_storage.py | PaulAnthonyReitz/topaz | ffa3a785f86ffdb2f6a5baf9895b649e3e3de006 | [
"FTL"
] | 6 | 2021-06-01T04:17:10.000Z | 2021-06-01T04:32:21.000Z | migrations/crystal_storage.py | PaulAnthonyReitz/topaz | ffa3a785f86ffdb2f6a5baf9895b649e3e3de006 | [
"FTL"
] | 5 | 2020-04-10T19:33:53.000Z | 2021-06-27T17:50:05.000Z | migrations/crystal_storage.py | PaulAnthonyReitz/topaz | ffa3a785f86ffdb2f6a5baf9895b649e3e3de006 | [
"FTL"
] | 2 | 2020-04-11T16:56:14.000Z | 2021-06-26T12:21:12.000Z | import array
import mysql.connector
def migration_name():
return "Adding crystal storage columns to char_points table"
def check_preconditions(cur):
return;
def needs_to_run(cur):
# Ensure crystal columns exist in char_points
cur.execute("SHOW COLUMNS FROM char_points LIKE 'fire_crystals'")
if not cur.fetchone(... | 36.766667 | 76 | 0.75612 | 165 | 1,103 | 4.951515 | 0.387879 | 0.088127 | 0.166463 | 0.244798 | 0.468788 | 0.468788 | 0.468788 | 0.468788 | 0.419829 | 0.419829 | 0 | 0.017149 | 0.154125 | 1,103 | 30 | 77 | 36.766667 | 0.858521 | 0.038985 | 0 | 0 | 0 | 0 | 0.118036 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16 | false | 0 | 0.08 | 0.08 | 0.36 | 0.04 | 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 |
1f00940ee27bf6657ac58dbab8060a1dee640e12 | 618 | py | Python | longest_substring_without_repeating_char.py | pranavdave893/Leetcode | 1f30ea37af7b60585d168b15d9397143f53c92a1 | [
"MIT"
] | null | null | null | longest_substring_without_repeating_char.py | pranavdave893/Leetcode | 1f30ea37af7b60585d168b15d9397143f53c92a1 | [
"MIT"
] | null | null | null | longest_substring_without_repeating_char.py | pranavdave893/Leetcode | 1f30ea37af7b60585d168b15d9397143f53c92a1 | [
"MIT"
] | null | null | null | class Solution(object):
def lengthOfLongestSubstring(self, s):
if not s:
return 0
start, end = 0, 0
seen = set()
ans = 0
while end < len(s):
if s[end] not in seen:
seen.add(s[end])
... | 22.888889 | 45 | 0.385113 | 61 | 618 | 3.901639 | 0.42623 | 0.05042 | 0.084034 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023649 | 0.521036 | 618 | 27 | 46 | 22.888889 | 0.780405 | 0 | 0 | 0 | 0 | 0 | 0.001616 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0 | 0 | 0.210526 | 0.052632 | 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 |
1f068bdf6988443aa710105a9d5abc3a92556bde | 714 | py | Python | test/conftest.py | grburgess/cmdstanpy | 5ed096e99927eef92ad89629d2d6d0c2c6d86446 | [
"BSD-3-Clause"
] | null | null | null | test/conftest.py | grburgess/cmdstanpy | 5ed096e99927eef92ad89629d2d6d0c2c6d86446 | [
"BSD-3-Clause"
] | null | null | null | test/conftest.py | grburgess/cmdstanpy | 5ed096e99927eef92ad89629d2d6d0c2c6d86446 | [
"BSD-3-Clause"
] | 1 | 2022-03-01T05:52:48.000Z | 2022-03-01T05:52:48.000Z | """The global configuration for the test suite"""
import atexit
import os
import shutil
import subprocess
import pytest
HERE = os.path.dirname(os.path.abspath(__file__))
DATAFILES_PATH = os.path.join(HERE, 'data')
# after we have run all tests, use git to delete the built files in data/
@pytest.fixture(scope='ses... | 21.636364 | 73 | 0.714286 | 94 | 714 | 5.297872 | 0.638298 | 0.036145 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00678 | 0.173669 | 714 | 32 | 74 | 22.3125 | 0.837288 | 0.236695 | 0 | 0 | 0 | 0 | 0.040892 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.333333 | 0 | 0.388889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1f097642aa500ed398ef13026b68212da02b7939 | 4,625 | py | Python | platform.py | takuyara/Scheduling-Qt | 3b46d2a83e272ebdadfb1ad12b1c2ece2c10b554 | [
"MIT"
] | 1 | 2021-06-17T07:45:34.000Z | 2021-06-17T07:45:34.000Z | platform.py | takuyara/Scheduling-Qt | 3b46d2a83e272ebdadfb1ad12b1c2ece2c10b554 | [
"MIT"
] | null | null | null | platform.py | takuyara/Scheduling-Qt | 3b46d2a83e272ebdadfb1ad12b1c2ece2c10b554 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'platform.ui'
#
# Created by: PyQt5 UI code generator 5.15.0
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 import QtCore, QtG... | 34.259259 | 75 | 0.660108 | 490 | 4,625 | 6.165306 | 0.310204 | 0.056273 | 0.063555 | 0.052963 | 0.041708 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036541 | 0.224865 | 4,625 | 135 | 76 | 34.259259 | 0.806137 | 0.084324 | 0 | 0.038835 | 1 | 0 | 0.047867 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.067961 | false | 0 | 0.087379 | 0 | 0.165049 | 0 | 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 |
1f097b8ff7a707cf824f78665a7cdc280bb29970 | 702 | py | Python | wooey/migrations/0030_populate-sv-m2m.py | fridmundklaus/wooey | 4a2e31c282bfe86edf77b0ff8f58f4177eeab9dd | [
"BSD-3-Clause"
] | 1,572 | 2015-06-19T21:31:41.000Z | 2022-03-30T23:37:13.000Z | wooey/migrations/0030_populate-sv-m2m.py | fridmundklaus/wooey | 4a2e31c282bfe86edf77b0ff8f58f4177eeab9dd | [
"BSD-3-Clause"
] | 309 | 2015-07-08T02:33:08.000Z | 2022-02-08T00:37:11.000Z | wooey/migrations/0030_populate-sv-m2m.py | fridmundklaus/wooey | 4a2e31c282bfe86edf77b0ff8f58f4177eeab9dd | [
"BSD-3-Clause"
] | 220 | 2015-07-01T10:30:27.000Z | 2022-02-05T04:10:54.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.9.13 on 2018-01-15 15:43
from __future__ import unicode_literals
from django.db import migrations
def populate_m2m(apps, schema_editor):
ScriptParser = apps.get_model('wooey', 'ScriptParser')
ScriptParameterGroup = apps.get_model('wooey', 'ScriptParameterGroup'... | 27 | 74 | 0.705128 | 86 | 702 | 5.55814 | 0.55814 | 0.108787 | 0.050209 | 0.07113 | 0.200837 | 0.200837 | 0.200837 | 0.200837 | 0.200837 | 0.200837 | 0 | 0.041667 | 0.179487 | 702 | 25 | 75 | 28.08 | 0.788194 | 0.096866 | 0 | 0.125 | 1 | 0 | 0.098257 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.125 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1f0abfbee1d97d917368cd17859c7a4d24f606c8 | 1,621 | py | Python | discord_webhook.py | vmc99/glearn-scraper | c7fe3d867fed7b48ed266c4d7510e1f57c1dd5dc | [
"MIT"
] | null | null | null | discord_webhook.py | vmc99/glearn-scraper | c7fe3d867fed7b48ed266c4d7510e1f57c1dd5dc | [
"MIT"
] | null | null | null | discord_webhook.py | vmc99/glearn-scraper | c7fe3d867fed7b48ed266c4d7510e1f57c1dd5dc | [
"MIT"
] | null | null | null | from discord_webhooks import DiscordWebhooks
import os
from dotenv import load_dotenv
from pathlib import Path
dotenv_path = Path('keys.env')
load_dotenv(dotenv_path=dotenv_path)
webhook_url = os.getenv('DISCORD_WEBHOOK_URL')
def send_msg(class_name,link,status,date,start_time,end_time):
WEBHOOK_URL = webhook... | 25.730159 | 93 | 0.666872 | 214 | 1,621 | 4.883178 | 0.308411 | 0.095694 | 0.143541 | 0.181818 | 0.460287 | 0.460287 | 0.460287 | 0.349282 | 0.349282 | 0.349282 | 0 | 0 | 0.217767 | 1,621 | 62 | 94 | 26.145161 | 0.824132 | 0.040099 | 0 | 0.3125 | 0 | 0 | 0.198582 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0 | 0.125 | 0 | 0.15625 | 0.03125 | 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 |
1f14bfd94976db67a5682189b375c818c8c0f6ec | 1,002 | py | Python | benchmarks/perf-tool/okpt/io/utils/writer.py | martin-gaievski/k-NN | 77353512c1f15e0dc996428a982941a7ee3036fb | [
"Apache-2.0"
] | 44 | 2021-04-20T18:06:56.000Z | 2022-03-31T00:59:07.000Z | benchmarks/perf-tool/okpt/io/utils/writer.py | martin-gaievski/k-NN | 77353512c1f15e0dc996428a982941a7ee3036fb | [
"Apache-2.0"
] | 227 | 2021-04-21T12:21:46.000Z | 2022-03-31T22:43:04.000Z | benchmarks/perf-tool/okpt/io/utils/writer.py | martin-gaievski/k-NN | 77353512c1f15e0dc996428a982941a7ee3036fb | [
"Apache-2.0"
] | 31 | 2021-04-21T02:18:09.000Z | 2022-03-25T23:47:17.000Z | # SPDX-License-Identifier: Apache-2.0
#
# The OpenSearch Contributors require contributions made to
# this file be licensed under the Apache-2.0 license or a
# compatible open source license.
"""Provides functions for writing to file.
Functions:
get_file_obj(): Get a writeable file object.
write_json(): Writes... | 24.439024 | 59 | 0.663673 | 142 | 1,002 | 4.640845 | 0.450704 | 0.059181 | 0.086495 | 0.051593 | 0.133536 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009284 | 0.247505 | 1,002 | 40 | 60 | 25.05 | 0.864721 | 0.553892 | 0 | 0 | 0 | 0 | 0.015464 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.3 | 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 |
1f153ab67696bd7b5aaec47e536149b1f45a6310 | 7,197 | py | Python | src/Atlas/test/test_aerostructural.py | swryan/Atlas | c5e8800d326d6442ceb4d0ab7910bbbda2ce4838 | [
"Apache-2.0"
] | null | null | null | src/Atlas/test/test_aerostructural.py | swryan/Atlas | c5e8800d326d6442ceb4d0ab7910bbbda2ce4838 | [
"Apache-2.0"
] | null | null | null | src/Atlas/test/test_aerostructural.py | swryan/Atlas | c5e8800d326d6442ceb4d0ab7910bbbda2ce4838 | [
"Apache-2.0"
] | null | null | null | import os
import numpy as np
import unittest
from scipy.io import loadmat
from Atlas import AeroStructural, Flags, PrescribedLoad
from openmdao.main.api import set_as_top
def relative_err(x, y):
return (np.abs(x-y)/np.linalg.norm(x)).max()
class Test_AeroStructural(unittest.TestCase):
"""
Test the Ae... | 39.11413 | 91 | 0.511185 | 964 | 7,197 | 3.78112 | 0.186722 | 0.041701 | 0.068038 | 0.060631 | 0.324554 | 0.321262 | 0.214266 | 0.181619 | 0.160219 | 0.106447 | 0 | 0.043305 | 0.303738 | 7,197 | 183 | 92 | 39.327869 | 0.684095 | 0.178269 | 0 | 0.088496 | 0 | 0 | 0.16408 | 0.007672 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.053097 | null | null | 0.070796 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1f174eebcce283918827c3f5dfa776e685cbbfa5 | 206 | py | Python | 0097.Interleaving String/test.py | zhlinh/leetcode | 6dfa0a4df9ec07b2c746a13c8257780880ea04af | [
"Apache-2.0"
] | null | null | null | 0097.Interleaving String/test.py | zhlinh/leetcode | 6dfa0a4df9ec07b2c746a13c8257780880ea04af | [
"Apache-2.0"
] | null | null | null | 0097.Interleaving String/test.py | zhlinh/leetcode | 6dfa0a4df9ec07b2c746a13c8257780880ea04af | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from solution import Solution
s1 = "aabcc"
s2 = "dbbca"
s3 = "aadbbcbcac"
# s3 = "aadbbbaccc"
sol = Solution()
res = sol.isInterleave(s1, s2, s3)
print(res)
| 15.846154 | 34 | 0.640777 | 29 | 206 | 4.551724 | 0.724138 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047059 | 0.174757 | 206 | 12 | 35 | 17.166667 | 0.729412 | 0.296117 | 0 | 0 | 0 | 0 | 0.140845 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.142857 | 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 |
1f29c1d4807846063a6ae5bef8aa50718ed4cf80 | 475 | py | Python | nonebot_plugin_setu/config.py | RainChain-Zero/Jasmine_Nonebot2_Plugins_Center | 40e78f01bf020faa66dcffe76070fe8a24687e1b | [
"MIT"
] | 1 | 2022-03-29T16:12:43.000Z | 2022-03-29T16:12:43.000Z | nonebot_plugin_setu/config.py | RainChain-Zero/Jasmine_Nonebot2_Plugins_Center | 40e78f01bf020faa66dcffe76070fe8a24687e1b | [
"MIT"
] | 1 | 2022-03-30T02:36:12.000Z | 2022-03-30T08:50:04.000Z | nonebot_plugin_setu/config.py | RainChain-Zero/Jasmine_Nonebot2_Plugins_Center | 40e78f01bf020faa66dcffe76070fe8a24687e1b | [
"MIT"
] | null | null | null | from pydantic import BaseSettings
class Config(BaseSettings):
# 一次最大发送涩图量
maxnum = 6
# 用户数据文件夹
conf_path = r"F:\Bot\mirai_console_diceplugin\Dice2632573315\user\UserConf"
group_permission_path = r"/home/nonebot2/src/plugins/nonebot_plugin_setu/group_permission.json"
# 管理员
admin_list = [303... | 25 | 99 | 0.711579 | 55 | 475 | 5.909091 | 0.818182 | 0.067692 | 0.086154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106383 | 0.208421 | 475 | 18 | 100 | 26.388889 | 0.757979 | 0.086316 | 0 | 0 | 0 | 0 | 0.313084 | 0.299065 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.9 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
1f2a100b07fd4cc5f452f93a45596ed8e904ec56 | 397 | py | Python | modules/init_parse.py | barbabjetolov/g-code_conversion | e01d3c88a3ffca71d626eb67a0f80a0965af11dd | [
"MIT"
] | 1 | 2022-02-04T14:40:41.000Z | 2022-02-04T14:40:41.000Z | modules/init_parse.py | barbabjetolov/g-code_conversion | e01d3c88a3ffca71d626eb67a0f80a0965af11dd | [
"MIT"
] | null | null | null | modules/init_parse.py | barbabjetolov/g-code_conversion | e01d3c88a3ffca71d626eb67a0f80a0965af11dd | [
"MIT"
] | 1 | 2020-06-25T07:12:09.000Z | 2020-06-25T07:12:09.000Z | def init_parse(init):
dicinit = {}
init = open('%s'%init,'r')
lines = init.readlines()
lines = [x.strip( ) for x in lines]
for line in lines:
if line.startswith('#'):
pass
else:
try:
dicinit[line.split(' ')[0]] = line.split(' ')[2]
... | 24.8125 | 64 | 0.476071 | 44 | 397 | 4.272727 | 0.613636 | 0.074468 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00813 | 0.380353 | 397 | 15 | 65 | 26.466667 | 0.756098 | 0 | 0 | 0 | 0 | 0 | 0.015113 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0.066667 | 0 | 0 | 0.133333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1f2b1eca84a3992555f2426cea6fdfb3e16f56d4 | 1,013 | py | Python | iotbx/data_manager/common.py | mphancock/cctbx_project | ec8a239c5bcee9c9b2d1c6c95dc3fff2580bbb85 | [
"BSD-3-Clause-LBNL"
] | null | null | null | iotbx/data_manager/common.py | mphancock/cctbx_project | ec8a239c5bcee9c9b2d1c6c95dc3fff2580bbb85 | [
"BSD-3-Clause-LBNL"
] | null | null | null | iotbx/data_manager/common.py | mphancock/cctbx_project | ec8a239c5bcee9c9b2d1c6c95dc3fff2580bbb85 | [
"BSD-3-Clause-LBNL"
] | null | null | null | '''
Extra functions for DataManager
'''
from __future__ import absolute_import, division, print_function
from iotbx.data_manager.map_coefficients import MapCoefficientsDataManager
from iotbx.data_manager.real_map import RealMapDataManager
# =============================================================================
... | 40.52 | 86 | 0.728529 | 124 | 1,013 | 5.58871 | 0.435484 | 0.12987 | 0.049062 | 0.05772 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001131 | 0.127345 | 1,013 | 24 | 87 | 42.208333 | 0.782805 | 0.299112 | 0 | 0 | 0 | 0 | 0.041605 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.272727 | 0 | 0.545455 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
1f4dcee01f02228359dda23ea0994293e8c85c11 | 4,275 | py | Python | twext/who/checker.py | troglodyne/ccs-twistedextensions | 1b43cb081ba68ae310140a9e853e041cd6362625 | [
"Apache-2.0"
] | 23 | 2016-08-14T07:20:27.000Z | 2021-11-08T09:47:45.000Z | twext/who/checker.py | DalavanCloud/ccs-twistedextensions | 2c4046df88873dcf33fba7840ed90e4238dcbec7 | [
"Apache-2.0"
] | 2 | 2016-12-15T17:51:49.000Z | 2019-05-12T15:59:03.000Z | twext/who/checker.py | DalavanCloud/ccs-twistedextensions | 2c4046df88873dcf33fba7840ed90e4238dcbec7 | [
"Apache-2.0"
] | 20 | 2016-08-17T06:51:00.000Z | 2022-03-26T11:55:56.000Z | # -*- test-case-name: twext.who.test.test_checker -*-
##
# Copyright (c) 2013-2017 Apple Inc. 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/li... | 32.142857 | 78 | 0.675789 | 403 | 4,275 | 7.156328 | 0.404467 | 0.047157 | 0.055479 | 0.019764 | 0.239945 | 0.239945 | 0.143551 | 0.106796 | 0.106796 | 0.106796 | 0 | 0.006101 | 0.233216 | 4,275 | 132 | 79 | 32.386364 | 0.873703 | 0.218947 | 0 | 0.263158 | 0 | 0 | 0.09116 | 0.008287 | 0 | 0 | 0 | 0 | 0 | 1 | 0.039474 | false | 0.144737 | 0.078947 | 0 | 0.236842 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1f55111c2cdcdc5a50482698e7928121879a3f68 | 3,180 | py | Python | serverlessworkflow/sdk/event_based_switch_state.py | antmendoza/sdk-python | 44a294d0a517007d48265b1f20e6ef9260b9cc2c | [
"Apache-2.0"
] | 9 | 2022-01-12T15:17:16.000Z | 2022-01-26T21:42:23.000Z | serverlessworkflow/sdk/event_based_switch_state.py | antmendoza/sdk-python | 44a294d0a517007d48265b1f20e6ef9260b9cc2c | [
"Apache-2.0"
] | 8 | 2022-01-15T21:43:10.000Z | 2022-03-22T17:20:02.000Z | serverlessworkflow/sdk/event_based_switch_state.py | antmendoza/sdk-python | 44a294d0a517007d48265b1f20e6ef9260b9cc2c | [
"Apache-2.0"
] | 3 | 2022-01-12T15:17:27.000Z | 2022-01-18T09:27:09.000Z | from __future__ import annotations
import copy
from serverlessworkflow.sdk.default_condition_def import DefaultConditionDef
from serverlessworkflow.sdk.end_event_condition import EndEventCondition
from serverlessworkflow.sdk.error import Error
from serverlessworkflow.sdk.event_based_switch_state_timeout import EventB... | 42.4 | 110 | 0.694654 | 283 | 3,180 | 7.64311 | 0.265018 | 0.09154 | 0.104022 | 0.057328 | 0.391586 | 0.38049 | 0.359686 | 0.279242 | 0.279242 | 0.279242 | 0 | 0 | 0.230189 | 3,180 | 74 | 111 | 42.972973 | 0.883578 | 0.00912 | 0 | 0.032787 | 0 | 0 | 0.047967 | 0.006671 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04918 | false | 0 | 0.180328 | 0 | 0.557377 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1f5ffc12783abd7f425e5505731fe51f6cff9435 | 1,025 | py | Python | plot/event1/repost_concat&cleaning.py | cxxixi/Online-opinions-on-weibo | ae4586b8b42d166c9a2386319891a04d390585fb | [
"MIT"
] | null | null | null | plot/event1/repost_concat&cleaning.py | cxxixi/Online-opinions-on-weibo | ae4586b8b42d166c9a2386319891a04d390585fb | [
"MIT"
] | null | null | null | plot/event1/repost_concat&cleaning.py | cxxixi/Online-opinions-on-weibo | ae4586b8b42d166c9a2386319891a04d390585fb | [
"MIT"
] | null | null | null | import pandas as pd
csv1 = pd.read_csv('D:\my_documents\competition\government\Report\event1\\repost.csv',header=None)
csv2 = pd.read_csv('D:\my_documents\competition\government\Report\event1\\repost1000.csv',header=None)
repost_data = pd.concat([csv1,csv2],axis=0)
repost_data.shape
repost_data.head()
repost_data.c... | 36.607143 | 106 | 0.76 | 141 | 1,025 | 5.276596 | 0.432624 | 0.201613 | 0.094086 | 0.107527 | 0.416667 | 0.344086 | 0.344086 | 0.344086 | 0.225806 | 0.145161 | 0 | 0.046414 | 0.075122 | 1,025 | 27 | 107 | 37.962963 | 0.738397 | 0.010732 | 0 | 0 | 0 | 0 | 0.337302 | 0.199405 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.066667 | 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 |
1f63f9a974312493a491720e99d40ace7f6b38cd | 6,356 | py | Python | roles/ios-agent-role/library/xcversion.py | MrCloud/ansible-playbook | b93696892b8b76735311d1c6380d24491fdff9bc | [
"MIT"
] | 6 | 2018-03-02T10:48:17.000Z | 2018-03-10T09:13:22.000Z | roles/ios-developer-role/library/xcversion.py | MrCloud/mobile-roles-ansible-playbook | b93696892b8b76735311d1c6380d24491fdff9bc | [
"MIT"
] | 5 | 2018-03-12T12:35:52.000Z | 2018-03-12T12:40:46.000Z | roles/ios-developer-role/library/xcversion.py | MrCloud/ansible-playbook | b93696892b8b76735311d1c6380d24491fdff9bc | [
"MIT"
] | 1 | 2018-08-07T08:34:13.000Z | 2018-08-07T08:34:13.000Z | #!/usr/bin/python
#coding: utf-8 -*-
# (c) 2015, Marcel Jackwerth <marceljackwerth@gmail.com>
#
# This module is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your opt... | 32.263959 | 91 | 0.618628 | 757 | 6,356 | 5.116248 | 0.31572 | 0.02582 | 0.021689 | 0.019623 | 0.189517 | 0.114123 | 0.066615 | 0.066615 | 0.066615 | 0.023754 | 0 | 0.004529 | 0.270453 | 6,356 | 197 | 92 | 32.263959 | 0.83071 | 0.204531 | 0 | 0.17037 | 0 | 0 | 0.334069 | 0 | 0 | 0 | 0 | 0.005076 | 0 | 1 | 0.066667 | false | 0.059259 | 0.044444 | 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 |
1f6c1ab48a0b123c00b48e0bcc1ccd336d01cef5 | 2,070 | py | Python | app.py | jaimergp/bscbot | e678c0ae2ed6b80029dfa2a206fcd7b9c345aff0 | [
"0BSD"
] | null | null | null | app.py | jaimergp/bscbot | e678c0ae2ed6b80029dfa2a206fcd7b9c345aff0 | [
"0BSD"
] | null | null | null | app.py | jaimergp/bscbot | e678c0ae2ed6b80029dfa2a206fcd7b9c345aff0 | [
"0BSD"
] | null | null | null | from discord.ext import commands
from discord import ActivityType
from cogs.roles import Roles
from cogs.youtube import Youtube
from cogs.weather import Weather
from cogs.role_distribution import RoleDistribution
from cogs.monitor import Monitor
from cogs.change_banner import ChangeBanner
from cogs.boost_role import Bo... | 33.934426 | 109 | 0.666184 | 268 | 2,070 | 5.059701 | 0.328358 | 0.041298 | 0.033186 | 0.051622 | 0.283186 | 0.283186 | 0.283186 | 0.283186 | 0.283186 | 0.283186 | 0 | 0.006583 | 0.192754 | 2,070 | 60 | 110 | 34.5 | 0.804907 | 0.10628 | 0 | 0.117647 | 0 | 0 | 0.120903 | 0.025492 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029412 | false | 0 | 0.352941 | 0 | 0.382353 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
1f84675e69e64a37584a57a0a90cd175926c8398 | 5,291 | py | Python | mongodb_consistent_backup/State.py | cprato79/mongodb_consistent_backup | d780ad545b603d3a2f807e1813f1de407e81f1ba | [
"Apache-2.0"
] | 1 | 2020-10-20T06:01:21.000Z | 2020-10-20T06:01:21.000Z | mongodb_consistent_backup/State.py | cprato79/mongodb_consistent_backup | d780ad545b603d3a2f807e1813f1de407e81f1ba | [
"Apache-2.0"
] | null | null | null | mongodb_consistent_backup/State.py | cprato79/mongodb_consistent_backup | d780ad545b603d3a2f807e1813f1de407e81f1ba | [
"Apache-2.0"
] | 1 | 2020-10-20T06:01:25.000Z | 2020-10-20T06:01:25.000Z | import logging
import os
import platform
from bson import BSON, decode_all
from time import time
from mongodb_consistent_backup.Common import Lock
class StateBase(object):
def __init__(self, base_dir, config, filename="meta.bson", state_version=1, meta_name="mongodb-consistent-backup_META"):
self.meta_n... | 34.581699 | 124 | 0.573427 | 627 | 5,291 | 4.594896 | 0.189793 | 0.103089 | 0.076362 | 0.067685 | 0.357168 | 0.270045 | 0.211385 | 0.211385 | 0.182228 | 0.164179 | 0 | 0.000826 | 0.313551 | 5,291 | 152 | 125 | 34.809211 | 0.792401 | 0 | 0 | 0.214286 | 0 | 0 | 0.076181 | 0.005671 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.047619 | 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 |
1f901721216a2142c71893c790766bc9c6349dd3 | 715 | py | Python | annotations/migrations/0034_auto_20200406_1003.py | UUDigitalHumanitieslab/timealign | f1d10674c5c3a58c4029d5dc31286863b4e452c3 | [
"MIT"
] | 7 | 2016-08-10T08:05:06.000Z | 2021-06-02T17:19:16.000Z | annotations/migrations/0034_auto_20200406_1003.py | UUDigitalHumanitieslab/timealign | f1d10674c5c3a58c4029d5dc31286863b4e452c3 | [
"MIT"
] | 65 | 2018-02-06T10:37:35.000Z | 2022-02-11T08:10:05.000Z | annotations/migrations/0034_auto_20200406_1003.py | UUDigitalHumanitieslab/timealign | f1d10674c5c3a58c4029d5dc31286863b4e452c3 | [
"MIT"
] | 1 | 2021-01-05T08:37:44.000Z | 2021-01-05T08:37:44.000Z | # Generated by Django 2.2.6 on 2020-04-06 10:03
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('annotations', '0033_auto_20200114_2353'),
]
operations = [
migrations.AddField(
model_name='lab... | 28.6 | 131 | 0.637762 | 77 | 715 | 5.818182 | 0.61039 | 0.053571 | 0.0625 | 0.098214 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057621 | 0.247552 | 715 | 24 | 132 | 29.791667 | 0.775093 | 0.062937 | 0 | 0.222222 | 1 | 0 | 0.179641 | 0.034431 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2f095ad4bd6697d0710d9e8511eb0790e9b07c1b | 5,390 | py | Python | Server/Server.py | Dyscalculia/Jalc | 8432d0a0cecbe991a0fe3b5d552af5e5bda5590c | [
"MIT"
] | null | null | null | Server/Server.py | Dyscalculia/Jalc | 8432d0a0cecbe991a0fe3b5d552af5e5bda5590c | [
"MIT"
] | null | null | null | Server/Server.py | Dyscalculia/Jalc | 8432d0a0cecbe991a0fe3b5d552af5e5bda5590c | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import SocketServer
import json
import time
import re
"""
Variables and functions that must be used by all the ClientHandler objects
must be written here (e.g. a dictionary for connected clients)
"""
client_handlers = []
broadcast_msgs = ""
def register_clientHandler(clienthandler):
clien... | 33.271605 | 127 | 0.678479 | 629 | 5,390 | 5.675676 | 0.27504 | 0.032773 | 0.029412 | 0.029412 | 0.160784 | 0.12437 | 0.114846 | 0.105042 | 0.080112 | 0.080112 | 0 | 0.004708 | 0.211874 | 5,390 | 161 | 128 | 33.478261 | 0.835687 | 0.033024 | 0 | 0.174757 | 0 | 0 | 0.122807 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.009709 | 0.038835 | null | null | 0.029126 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
2f0eecefcebae15c785df3b35c783f1b167502ae | 3,504 | py | Python | o2a/o2a_libs/el_basic_functions.py | mik-laj/oozie-to-airflow | c04952ddc8354bcafa340703b30f7ff33f844f4e | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | o2a/o2a_libs/el_basic_functions.py | mik-laj/oozie-to-airflow | c04952ddc8354bcafa340703b30f7ff33f844f4e | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2019-07-01T21:57:45.000Z | 2019-07-01T21:57:45.000Z | o2a/o2a_libs/el_basic_functions.py | mik-laj/oozie-to-airflow | c04952ddc8354bcafa340703b30f7ff33f844f4e | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agr... | 29.445378 | 85 | 0.680936 | 539 | 3,504 | 4.352505 | 0.350649 | 0.023018 | 0.033248 | 0.048593 | 0.163683 | 0.148338 | 0.146206 | 0.13214 | 0.13214 | 0.13214 | 0 | 0.010865 | 0.238299 | 3,504 | 118 | 86 | 29.694915 | 0.868115 | 0.588756 | 0 | 0.093023 | 0 | 0 | 0.003997 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.186047 | false | 0 | 0.116279 | 0 | 0.604651 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2f0fc7f63a89b48c9d46995c916c6d1983382ca9 | 641 | py | Python | onlinecoach/qa/migrations/0004_auto_20190526_0224.py | sq2021/online-coach | d5d8acacdf21e8ce3dcd01d67f9fb8c9ffca371d | [
"MIT"
] | null | null | null | onlinecoach/qa/migrations/0004_auto_20190526_0224.py | sq2021/online-coach | d5d8acacdf21e8ce3dcd01d67f9fb8c9ffca371d | [
"MIT"
] | 8 | 2019-12-04T23:02:42.000Z | 2022-02-10T11:45:46.000Z | onlinecoach/qa/migrations/0004_auto_20190526_0224.py | sq2021/online-coach | d5d8acacdf21e8ce3dcd01d67f9fb8c9ffca371d | [
"MIT"
] | null | null | null | # Generated by Django 2.2.1 on 2019-05-26 06:24
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('qa', '0003_auto_20190526_0042'),
]
operations = [
migrations.AlterField(
model_name='question',
name='category',
... | 33.736842 | 306 | 0.561622 | 70 | 641 | 5.071429 | 0.885714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.063618 | 0.215289 | 641 | 18 | 307 | 35.611111 | 0.642147 | 0.070203 | 0 | 0 | 1 | 0 | 0.282828 | 0.038721 | 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 |
2f111c7dfdce411d8cbc4b9618d654beeaefebd5 | 11,150 | py | Python | txircd/modules/rfc/mech_oper.py | guyguy2001/txircd | d548975a775a3582ebb2f480474cfa3e79a26b8c | [
"BSD-3-Clause"
] | 19 | 2015-07-06T21:24:15.000Z | 2021-04-01T13:05:46.000Z | txircd/modules/rfc/mech_oper.py | guyguy2001/txircd | d548975a775a3582ebb2f480474cfa3e79a26b8c | [
"BSD-3-Clause"
] | 37 | 2015-01-16T10:01:28.000Z | 2021-06-01T14:17:49.000Z | txircd/modules/rfc/mech_oper.py | guyguy2001/txircd | d548975a775a3582ebb2f480474cfa3e79a26b8c | [
"BSD-3-Clause"
] | 4 | 2016-09-15T02:48:43.000Z | 2020-01-14T17:23:50.000Z | from twisted.plugin import IPlugin
from twisted.words.protocols import irc
from txircd.config import ConfigValidationError
from txircd.module_interface import Command, ICommand, IMode, IModuleData, Mode, ModuleData
from txircd.utils import ircLower, isValidHost, ModeType
from zope.interface import implements
from fnmat... | 43.385214 | 150 | 0.709596 | 1,357 | 11,150 | 5.798821 | 0.171702 | 0.026433 | 0.032406 | 0.036599 | 0.362562 | 0.286313 | 0.218833 | 0.189986 | 0.127589 | 0.099377 | 0 | 0.00151 | 0.16852 | 11,150 | 257 | 151 | 43.385214 | 0.847266 | 0.028879 | 0 | 0.262931 | 0 | 0 | 0.206855 | 0.00388 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064655 | false | 0.068966 | 0.030172 | 0.017241 | 0.232759 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2f120db8e5fb5f2b94376c605ae8121920b61514 | 3,388 | py | Python | apicomponents/ldap.py | tonnyhideyori/dependencytrack-pywrap | 58d4a8ac8862bbdb7007ab483f38f5871ab55c48 | [
"MIT"
] | null | null | null | apicomponents/ldap.py | tonnyhideyori/dependencytrack-pywrap | 58d4a8ac8862bbdb7007ab483f38f5871ab55c48 | [
"MIT"
] | 5 | 2021-11-18T20:35:12.000Z | 2021-11-25T19:03:16.000Z | apicomponents/ldap.py | tonnyhideyori/dependencytrack-pywrap | 58d4a8ac8862bbdb7007ab483f38f5871ab55c48 | [
"MIT"
] | 2 | 2021-11-15T19:58:15.000Z | 2021-11-23T12:55:04.000Z | import json
class DependencyTrackLDAP(object):
def list_ldapgroups(self, pageSize=100):
"""
This API performs a pass-thru query to the configured LDAP server. Search criteria results are cached using default Alpine CacheManager policy.
Returns the DNs of all accessible groups within the... | 42.886076 | 151 | 0.592975 | 405 | 3,388 | 4.893827 | 0.254321 | 0.162462 | 0.20888 | 0.077699 | 0.681635 | 0.629667 | 0.585267 | 0.53885 | 0.53885 | 0.53885 | 0 | 0.021074 | 0.285714 | 3,388 | 78 | 152 | 43.435897 | 0.797934 | 0.148465 | 0 | 0.566038 | 0 | 0 | 0.288784 | 0.158412 | 0 | 0 | 0 | 0 | 0 | 1 | 0.075472 | false | 0 | 0.018868 | 0 | 0.396226 | 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 |
2f14bca8940c384cc5fe487b821e3a40670d2254 | 455 | py | Python | solutions/solution303.py | Satily/leetcode_python_solution | 3f05fff7758d650469862bc28df9e4aa7b1d3203 | [
"MIT"
] | 3 | 2018-11-22T10:31:09.000Z | 2019-05-05T15:53:48.000Z | solutions/solution303.py | Satily/leetcode_python_solution | 3f05fff7758d650469862bc28df9e4aa7b1d3203 | [
"MIT"
] | null | null | null | solutions/solution303.py | Satily/leetcode_python_solution | 3f05fff7758d650469862bc28df9e4aa7b1d3203 | [
"MIT"
] | null | null | null | class NumArray:
def __init__(self, nums: 'List[int]'):
self.sums = [0]
for num in nums:
self.sums.append(self.sums[-1] + num)
def sumRange(self, i: int, j: int) -> int:
return self.sums[j + 1] - self.sums[i]
if __name__ == '__main__':
num_array = NumArray([-... | 26.764706 | 50 | 0.549451 | 68 | 455 | 3.441176 | 0.397059 | 0.17094 | 0.166667 | 0.269231 | 0.188034 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045872 | 0.281319 | 455 | 16 | 51 | 28.4375 | 0.669725 | 0 | 0 | 0 | 0 | 0 | 0.038813 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0.083333 | 0.333333 | 0.25 | 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 |
2f18ee79cb21269eb234ca500def10b7e802d42d | 882 | py | Python | zamiaai/skills/food/food.py | 0zAND1z/zamia-ai | d9e9c6123fdadca3fae55e87ea2b2b32d82bc210 | [
"Apache-2.0"
] | 129 | 2017-03-23T14:20:33.000Z | 2022-01-03T01:52:22.000Z | zamiaai/skills/food/food.py | 0zAND1z/zamia-ai | d9e9c6123fdadca3fae55e87ea2b2b32d82bc210 | [
"Apache-2.0"
] | 6 | 2017-03-09T22:32:55.000Z | 2021-05-13T19:07:48.000Z | zamiaai/skills/food/food.py | gooofy/voxforge | da21be38e976aae67214537a27a30541afd3b5aa | [
"Apache-2.0"
] | 22 | 2017-04-07T15:44:05.000Z | 2022-03-13T02:41:08.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2016, 2017, 2018 Guenter Bartsch
#
# 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.... | 32.666667 | 96 | 0.723356 | 140 | 882 | 4.542857 | 0.721429 | 0.09434 | 0.040881 | 0.050314 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023288 | 0.172336 | 882 | 26 | 97 | 33.923077 | 0.847945 | 0.688209 | 0 | 0 | 0 | 0 | 0.525292 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2f2574b9047d0598355df4dc64f7181658413a3b | 12,705 | py | Python | intersight/models/hcl_exempted_catalog_all_of.py | sdnit-se/intersight-python | 551f7685c0f76bb8af60ec83ffb6f9672d49a4ae | [
"Apache-2.0"
] | 21 | 2018-03-29T14:20:35.000Z | 2021-10-13T05:11:41.000Z | intersight/models/hcl_exempted_catalog_all_of.py | sdnit-se/intersight-python | 551f7685c0f76bb8af60ec83ffb6f9672d49a4ae | [
"Apache-2.0"
] | 14 | 2018-01-30T15:45:46.000Z | 2022-02-23T14:23:21.000Z | intersight/models/hcl_exempted_catalog_all_of.py | sdnit-se/intersight-python | 551f7685c0f76bb8af60ec83ffb6f9672d49a4ae | [
"Apache-2.0"
] | 18 | 2018-01-03T15:09:56.000Z | 2021-07-16T02:21:54.000Z | # coding: utf-8
"""
Cisco Intersight
Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environmen... | 33.346457 | 1,052 | 0.626682 | 1,476 | 12,705 | 5.239837 | 0.156504 | 0.052754 | 0.149987 | 0.128006 | 0.524696 | 0.429015 | 0.392682 | 0.329454 | 0.244117 | 0.13098 | 0 | 0.018845 | 0.298308 | 12,705 | 380 | 1,053 | 33.434211 | 0.848682 | 0.457458 | 0 | 0.072289 | 0 | 0 | 0.062188 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.156627 | false | 0 | 0.024096 | 0 | 0.301205 | 0.012048 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2f2b528ff756c024c7f3411a1f68251f05fcb420 | 2,423 | py | Python | AutomatoFinitoDeterministico/src/afd/AFDPython.py | AndersonFCanel/JavaPassoAPasso | cd53e566985f7a7f997a94ecbaa838fc443e4041 | [
"Apache-2.0"
] | null | null | null | AutomatoFinitoDeterministico/src/afd/AFDPython.py | AndersonFCanel/JavaPassoAPasso | cd53e566985f7a7f997a94ecbaa838fc443e4041 | [
"Apache-2.0"
] | null | null | null | AutomatoFinitoDeterministico/src/afd/AFDPython.py | AndersonFCanel/JavaPassoAPasso | cd53e566985f7a7f997a94ecbaa838fc443e4041 | [
"Apache-2.0"
] | null | null | null | #https://repl.it/languages/python
#https://wiki.python.org.br/AprendaProgramar#Aprenda_a_programar
print '--------------------------------------'
print '****AUTOMATO FINITO DETERMINISTICO****'
print '--------------------------------------\n\n'
alfabeto = raw_input('Digite um alfabeto: ')
'''
Pegando o modulo desse a... | 19.699187 | 89 | 0.635988 | 403 | 2,423 | 3.799007 | 0.332506 | 0.041803 | 0.031352 | 0.028739 | 0.057479 | 0.033965 | 0.016982 | 0 | 0 | 0 | 0 | 0.02739 | 0.201403 | 2,423 | 122 | 90 | 19.860656 | 0.763824 | 0.146513 | 0 | 0.072727 | 0 | 0 | 0.296615 | 0.049231 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.163636 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
2f3208851514d1180279d9e67312187043ba02fe | 7,240 | py | Python | doc/future_bottumup.py | neurospin/pylearn-epac | 45e63f254e62e564bad929103d1fff666ab88fef | [
"BSD-3-Clause"
] | 6 | 2015-02-27T13:21:48.000Z | 2020-06-06T17:51:24.000Z | doc/future_bottumup.py | neurospin/pylearn-epac | 45e63f254e62e564bad929103d1fff666ab88fef | [
"BSD-3-Clause"
] | null | null | null | doc/future_bottumup.py | neurospin/pylearn-epac | 45e63f254e62e564bad929103d1fff666ab88fef | [
"BSD-3-Clause"
] | 2 | 2016-12-16T10:40:17.000Z | 2018-08-11T15:43:11.000Z | # -*- coding: utf-8 -*-
"""
Created on Thu May 23 15:21:35 2013
@author: ed203246
"""
from sklearn import datasets
from sklearn.svm import SVC
from sklearn.lda import LDA
from sklearn.feature_selection import SelectKBest
X, y = datasets.make_classification(n_samples=12, n_features=10,
... | 42.093023 | 131 | 0.581077 | 1,222 | 7,240 | 3.322422 | 0.135843 | 0.041872 | 0.026601 | 0.035468 | 0.646552 | 0.616995 | 0.588424 | 0.54335 | 0.502217 | 0.502217 | 0 | 0.153309 | 0.227901 | 7,240 | 172 | 132 | 42.093023 | 0.572987 | 0.064779 | 0 | 0.176471 | 0 | 0 | 0.063264 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.088235 | null | null | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
2f32c0d8db43c838189aa819e31e625fa16bf3b1 | 476 | py | Python | code/day2/day2_datetime.py | ttafsir/100-days-of-code | 6006d3559f8b762e5eb0f0363569f2ca8dacf30b | [
"MIT"
] | 1 | 2021-04-15T06:15:42.000Z | 2021-04-15T06:15:42.000Z | code/day2/day2_datetime.py | ttafsir/100-days-of-code | 6006d3559f8b762e5eb0f0363569f2ca8dacf30b | [
"MIT"
] | null | null | null | code/day2/day2_datetime.py | ttafsir/100-days-of-code | 6006d3559f8b762e5eb0f0363569f2ca8dacf30b | [
"MIT"
] | null | null | null | from datetime import timedelta, datetime
t = timedelta(days=4, hours=10)
print(t.days)
print(t.seconds)
# timedelta objects have no 'hours' attribute and the seconds
# only go up to the equivalent of 24 hours.
# t.hours # fails
print(t.seconds / 60 / 60) # <- 10 hours
total_seconds = t.total_seconds()
print(tota... | 21.636364 | 61 | 0.691176 | 75 | 476 | 4.333333 | 0.426667 | 0.147692 | 0.08 | 0.08 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073791 | 0.17437 | 476 | 21 | 62 | 22.666667 | 0.753181 | 0.310924 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0.545455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2f38554dd683c20a1df312ad40a7935b92bda4ee | 1,642 | py | Python | observations/r/nsw74psid_a.py | hajime9652/observations | 2c8b1ac31025938cb17762e540f2f592e302d5de | [
"Apache-2.0"
] | 199 | 2017-07-24T01:34:27.000Z | 2022-01-29T00:50:55.000Z | observations/r/nsw74psid_a.py | hajime9652/observations | 2c8b1ac31025938cb17762e540f2f592e302d5de | [
"Apache-2.0"
] | 46 | 2017-09-05T19:27:20.000Z | 2019-01-07T09:47:26.000Z | observations/r/nsw74psid_a.py | hajime9652/observations | 2c8b1ac31025938cb17762e540f2f592e302d5de | [
"Apache-2.0"
] | 45 | 2017-07-26T00:10:44.000Z | 2022-03-16T20:44:59.000Z | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import csv
import numpy as np
import os
import sys
from observations.util import maybe_download_and_extract
def nsw74psid_a(path):
"""A Subset of the nsw74psid1 Data Set
The `nsw... | 21.051282 | 71 | 0.671133 | 226 | 1,642 | 4.734513 | 0.5 | 0.074766 | 0.130841 | 0.042991 | 0.076636 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029777 | 0.263703 | 1,642 | 77 | 72 | 21.324675 | 0.855252 | 0.471376 | 0 | 0 | 0 | 0 | 0.10665 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.409091 | 0 | 0.5 | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2f393139447598409231143287786184974ea2ed | 3,231 | py | Python | classes/pstrace.py | spgreen/psTrace | 9bb97a746416f87547be84599fbd53b67fa4dc7b | [
"MIT"
] | 3 | 2017-11-20T23:42:39.000Z | 2018-07-03T03:22:25.000Z | classes/pstrace.py | spgreen/psTrace | 9bb97a746416f87547be84599fbd53b67fa4dc7b | [
"MIT"
] | null | null | null | classes/pstrace.py | spgreen/psTrace | 9bb97a746416f87547be84599fbd53b67fa4dc7b | [
"MIT"
] | null | null | null | #!/usr/bin/python3
"""
TODO: Add Description
"""
import os.path
from urllib.error import HTTPError
from classes.traceroute.analysis import TracerouteAnalysis
from classes.traceroute.comparison import RouteComparison
from classes.graph import ForceGraph
__author__ = "Simon Peter Green"
__copyright__ = "Copyright (c) 2... | 43.662162 | 119 | 0.664191 | 352 | 3,231 | 5.747159 | 0.375 | 0.093426 | 0.023727 | 0.028176 | 0.108749 | 0.041522 | 0 | 0 | 0 | 0 | 0 | 0.006115 | 0.240792 | 3,231 | 73 | 120 | 44.260274 | 0.818589 | 0.160631 | 0 | 0 | 0 | 0 | 0.134357 | 0.020729 | 0 | 0 | 0 | 0.027397 | 0 | 1 | 0.046512 | false | 0 | 0.116279 | 0 | 0.232558 | 0.046512 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
2f3eebd6a3d1cc6e4e109b3349de7819d9e3ff3d | 647 | py | Python | files/analise_descritiva/descriptiveanalysis.py | Nina-pinheiro/Data-Science-Python | b6b2bc28f2f8f925e1b43408330641bd72388232 | [
"MIT"
] | 9 | 2021-01-29T14:01:57.000Z | 2022-03-26T00:46:00.000Z | files/analise_descritiva/descriptiveanalysis.py | Nina-pinheiro/machine_learning_statistic_python | b6b2bc28f2f8f925e1b43408330641bd72388232 | [
"MIT"
] | null | null | null | files/analise_descritiva/descriptiveanalysis.py | Nina-pinheiro/machine_learning_statistic_python | b6b2bc28f2f8f925e1b43408330641bd72388232 | [
"MIT"
] | 2 | 2020-07-28T11:25:55.000Z | 2020-08-03T20:04:11.000Z | """ Project DataScience in Python
Developed: Nina Machado
Python 3.7
"""
# Required Libraries
import matplotlib.pyplot as plt
import pandas as pd
import statsmodels.api as sm
import pylab as pl
import numpy as np
from patsy import dmatrix
# Read the data in dataset
df = pd.read_csv('dataset/consulta.csv')
... | 16.589744 | 72 | 0.738794 | 99 | 647 | 4.818182 | 0.646465 | 0.031447 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005693 | 0.185471 | 647 | 38 | 73 | 17.026316 | 0.899431 | 0.489954 | 0 | 0 | 0 | 0 | 0.101587 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.461538 | 0 | 0.461538 | 0.307692 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2f4cf3b0d56a581c5ee9d3038363f45179d4f9e0 | 10,035 | py | Python | CarParkArcGisApi/CarParkArcGisApi/env/Lib/site-packages/arcgis/apps/workforce/project.py | moazzamwaheed2017/carparkapi | e52ae1b2aed47321ce9d22ba6cd0b85fa60a417a | [
"MIT"
] | null | null | null | CarParkArcGisApi/CarParkArcGisApi/env/Lib/site-packages/arcgis/apps/workforce/project.py | moazzamwaheed2017/carparkapi | e52ae1b2aed47321ce9d22ba6cd0b85fa60a417a | [
"MIT"
] | 9 | 2020-02-03T15:50:10.000Z | 2022-03-02T07:11:34.000Z | CarParkArcGisApi/CarParkArcGisApi/env/Lib/site-packages/arcgis/apps/workforce/project.py | moazzamwaheed2017/carparkapi | e52ae1b2aed47321ce9d22ba6cd0b85fa60a417a | [
"MIT"
] | null | null | null | """ Defines the Project object.
"""
import arcgis
from arcgis.features import FeatureLayer
from arcgis.gis import Group
from arcgis._impl.common._utils import _lazy_property
import json
from ._schemas import *
from .managers import *
class Project:
"""
A Workforce Project
================== ========... | 34.132653 | 127 | 0.602591 | 1,085 | 10,035 | 5.379724 | 0.143779 | 0.060305 | 0.039061 | 0.030838 | 0.32431 | 0.252184 | 0.20627 | 0.076409 | 0.064759 | 0.064759 | 0 | 0 | 0.23438 | 10,035 | 293 | 128 | 34.249147 | 0.759729 | 0.306328 | 0 | 0.201183 | 0 | 0 | 0.056771 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.254438 | false | 0 | 0.04142 | 0.023669 | 0.502959 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2f4cff62bddad773e60dece13e79ce77b894a298 | 3,904 | py | Python | shacl/generate_shacl.py | xyzisinus/Brick | 7f8ca4888dbf493861f8a660227bd1a6430e1b70 | [
"BSD-3-Clause"
] | null | null | null | shacl/generate_shacl.py | xyzisinus/Brick | 7f8ca4888dbf493861f8a660227bd1a6430e1b70 | [
"BSD-3-Clause"
] | null | null | null | shacl/generate_shacl.py | xyzisinus/Brick | 7f8ca4888dbf493861f8a660227bd1a6430e1b70 | [
"BSD-3-Clause"
] | null | null | null | from rdflib import Graph, Literal, BNode, URIRef, Namespace
from rdflib.collection import Collection
from rdflib.plugins.sparql import prepareQuery
import sys
sys.path.append('..')
from bricksrc.namespaces import RDF, RDFS, BRICK, BSH, SH, SKOS
from bricksrc.namespaces import bind_prefixes
# add SHACL shapes from prop... | 39.836735 | 86 | 0.689293 | 462 | 3,904 | 5.78355 | 0.311688 | 0.023952 | 0.026198 | 0.05988 | 0.273952 | 0.251123 | 0.251123 | 0.213698 | 0.133982 | 0.123503 | 0 | 0.000637 | 0.195441 | 3,904 | 97 | 87 | 40.247423 | 0.850048 | 0.23002 | 0 | 0.208955 | 0 | 0 | 0.150937 | 0.039491 | 0 | 0 | 0 | 0.010309 | 0 | 1 | 0.029851 | false | 0 | 0.104478 | 0 | 0.134328 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
2f4e7d8dcd4f274deea78d3e923e62568f0eaf85 | 844 | py | Python | exercicios/novo.py | EduardoPessanha/Git-Python | 87aa10af09510469032732ed2c55d0d65eb4c1d6 | [
"MIT"
] | null | null | null | exercicios/novo.py | EduardoPessanha/Git-Python | 87aa10af09510469032732ed2c55d0d65eb4c1d6 | [
"MIT"
] | null | null | null | exercicios/novo.py | EduardoPessanha/Git-Python | 87aa10af09510469032732ed2c55d0d65eb4c1d6 | [
"MIT"
] | null | null | null | # from tkinter import *
# janela = Tk()
# texto = "Olá Mundo!, cheguei!"
# label_1 = Label(janela, text = texto, font='Arial:20')
# label_1.place(x=200, y=200)
# janela.geometry('800x600+0+0')
# janela.mainloop()
# ***************************************************************** #
def lin():
print('+=' * 24... | 17.957447 | 69 | 0.457346 | 104 | 844 | 3.692308 | 0.480769 | 0.041667 | 0.078125 | 0.109375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.077037 | 0.200237 | 844 | 46 | 70 | 18.347826 | 0.491852 | 0.57346 | 0 | 0.333333 | 0 | 0 | 0.283186 | 0.079646 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.2 | 0.4 | 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 |
2f566cf8fa7caac520003f66c9e5fe4067d9c4ab | 408 | py | Python | spec/construct/test_repeat_n_strz_double.py | DarkShadow44/kaitai_struct_tests | 4bb13cef82965cca66dda2eb2b77cd64e9f70a12 | [
"MIT"
] | 11 | 2018-04-01T03:58:15.000Z | 2021-08-14T09:04:55.000Z | spec/construct/test_repeat_n_strz_double.py | DarkShadow44/kaitai_struct_tests | 4bb13cef82965cca66dda2eb2b77cd64e9f70a12 | [
"MIT"
] | 73 | 2016-07-20T10:27:15.000Z | 2020-12-17T18:56:46.000Z | spec/construct/test_repeat_n_strz_double.py | DarkShadow44/kaitai_struct_tests | 4bb13cef82965cca66dda2eb2b77cd64e9f70a12 | [
"MIT"
] | 37 | 2016-08-15T08:25:56.000Z | 2021-08-28T14:48:46.000Z | # Autogenerated from KST: please remove this line if doing any edits by hand!
import unittest
from repeat_n_strz_double import _schema
class TestRepeatNStrzDouble(unittest.TestCase):
def test_repeat_n_strz_double(self):
r = _schema.parse_file('src/repeat_n_strz.bin')
self.assertEqual(r.qty, 2)
... | 31.384615 | 77 | 0.723039 | 59 | 408 | 4.79661 | 0.661017 | 0.074205 | 0.116608 | 0.120141 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008929 | 0.176471 | 408 | 12 | 78 | 34 | 0.833333 | 0.183824 | 0 | 0 | 1 | 0 | 0.081571 | 0.063444 | 0 | 0 | 0 | 0 | 0.375 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2f5f6ef2e875afeb61020f47d8949e4813e6727d | 1,883 | py | Python | bjlggr.py | Euxaes/bjlggr | a8cf5f1e8f93235cc4d8a4767d359ded1077f3cc | [
"MIT"
] | null | null | null | bjlggr.py | Euxaes/bjlggr | a8cf5f1e8f93235cc4d8a4767d359ded1077f3cc | [
"MIT"
] | null | null | null | bjlggr.py | Euxaes/bjlggr | a8cf5f1e8f93235cc4d8a4767d359ded1077f3cc | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""
Author: Eva Rachel Retuya (https://github.com/Euxaes)
Bullet Journal Logger
This script allows for continuous enumeration of "items" taken from my actual
bullet journal for digital filing without having to worry about markdown syntax.
"""
import webbrowser
# https://stackoverflow.com/quest... | 26.9 | 80 | 0.672862 | 248 | 1,883 | 5.080645 | 0.471774 | 0.044444 | 0.066667 | 0.063492 | 0.088889 | 0.088889 | 0.050794 | 0 | 0 | 0 | 0 | 0.005298 | 0.198088 | 1,883 | 69 | 81 | 27.289855 | 0.829139 | 0.108338 | 0 | 0.04878 | 0 | 0 | 0.24086 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.02439 | null | null | 0.073171 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
2f607c847b7bc13eeafa800f9e2151fa59e4e826 | 953 | py | Python | numba/tests/doc_examples/test_llvm_pass_timings.py | auderson/numba | 3d67c9850ab56457f418cf40af6245fd9c337705 | [
"BSD-2-Clause"
] | 6,620 | 2015-01-04T08:51:04.000Z | 2022-03-31T12:52:18.000Z | numba/tests/doc_examples/test_llvm_pass_timings.py | auderson/numba | 3d67c9850ab56457f418cf40af6245fd9c337705 | [
"BSD-2-Clause"
] | 6,457 | 2015-01-04T03:18:41.000Z | 2022-03-31T17:38:42.000Z | numba/tests/doc_examples/test_llvm_pass_timings.py | auderson/numba | 3d67c9850ab56457f418cf40af6245fd9c337705 | [
"BSD-2-Clause"
] | 930 | 2015-01-25T02:33:03.000Z | 2022-03-30T14:10:32.000Z | # "magictoken" is used for markers as beginning and ending of example text.
import unittest
from numba.tests.support import captured_stdout, override_config
class DocsLLVMPassTimings(unittest.TestCase):
def test_pass_timings(self):
with override_config('LLVM_PASS_TIMINGS', True):
with captur... | 29.78125 | 75 | 0.546695 | 104 | 953 | 4.769231 | 0.567308 | 0.110887 | 0.120968 | 0.080645 | 0.108871 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006711 | 0.374607 | 953 | 31 | 76 | 30.741935 | 0.825503 | 0.15425 | 0 | 0 | 0 | 0 | 0.071072 | 0 | 0 | 0 | 0 | 0 | 0.05 | 1 | 0.1 | false | 0.2 | 0.15 | 0 | 0.35 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
2f63429153b1a0ef236929aa9b309db1573e9c69 | 1,542 | py | Python | tests/unit/alertapi30/test_enums.py | ahertz/pyowm | e7ccb5ec3f86bee0cbb9981070a62988a83a5b3c | [
"MIT"
] | 799 | 2015-01-03T12:07:57.000Z | 2022-03-31T03:59:53.000Z | tests/unit/alertapi30/test_enums.py | ahertz/pyowm | e7ccb5ec3f86bee0cbb9981070a62988a83a5b3c | [
"MIT"
] | 279 | 2015-02-12T16:11:43.000Z | 2022-02-14T21:49:03.000Z | tests/unit/alertapi30/test_enums.py | ahertz/pyowm | e7ccb5ec3f86bee0cbb9981070a62988a83a5b3c | [
"MIT"
] | 215 | 2015-01-06T19:07:11.000Z | 2022-02-14T21:39:33.000Z | import unittest
from pyowm.alertapi30.enums import AlertChannelsEnum, OperatorsEnum, WeatherParametersEnum
class TestAlertChannelsEnum(unittest.TestCase):
def test_items(self):
alert_channels_enum = AlertChannelsEnum()
self.assertEqual(alert_channels_enum.items(),
[AlertC... | 49.741935 | 107 | 0.581712 | 121 | 1,542 | 7.066116 | 0.347107 | 0.121637 | 0.196491 | 0.080702 | 0.074854 | 0.074854 | 0 | 0 | 0 | 0 | 0 | 0.002022 | 0.358625 | 1,542 | 30 | 108 | 51.4 | 0.862487 | 0 | 0 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130435 | 1 | 0.130435 | false | 0 | 0.086957 | 0 | 0.347826 | 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 |
2f642213bfd9116c04282bf6ee6e9f5b29ed822b | 1,309 | py | Python | test/test_unittest_or_fail.py | mgorny/unittest-or-fail | ecb9c0d1578489f3b51003be30e12f6c600c7010 | [
"BSD-2-Clause"
] | null | null | null | test/test_unittest_or_fail.py | mgorny/unittest-or-fail | ecb9c0d1578489f3b51003be30e12f6c600c7010 | [
"BSD-2-Clause"
] | null | null | null | test/test_unittest_or_fail.py | mgorny/unittest-or-fail | ecb9c0d1578489f3b51003be30e12f6c600c7010 | [
"BSD-2-Clause"
] | null | null | null | import os.path
import subprocess
import sys
from unittest import TestCase, expectedFailure
TEST_DIR = os.path.dirname(__file__)
class UnittestOrFailTest(TestCase):
def assertResult(self, subdir, expected):
p = subprocess.Popen(
[sys.executable, '-m', 'unittest_or_fail', 'discover',
... | 29.75 | 74 | 0.597403 | 154 | 1,309 | 4.948052 | 0.396104 | 0.055118 | 0.15748 | 0.018373 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006257 | 0.26738 | 1,309 | 43 | 75 | 30.44186 | 0.788321 | 0 | 0 | 0 | 0 | 0 | 0.142093 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.21875 | false | 0 | 0.125 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2f6eabe8c7c75439b7becab6d80e5168527dc549 | 267 | py | Python | Ejercicios/03.Factorial/src/exercise.py | DavidCantuDelgado/comosea | 89b6ad65bde89ddb93e7c363e03955f03f90a5be | [
"MIT"
] | null | null | null | Ejercicios/03.Factorial/src/exercise.py | DavidCantuDelgado/comosea | 89b6ad65bde89ddb93e7c363e03955f03f90a5be | [
"MIT"
] | null | null | null | Ejercicios/03.Factorial/src/exercise.py | DavidCantuDelgado/comosea | 89b6ad65bde89ddb93e7c363e03955f03f90a5be | [
"MIT"
] | null | null | null | def factorial(num):
if(num == 0): return 1
return num*factorial(num-1)
def main():
#escribe tu código abajo de esta línea
numero = int(input("Dame un número: "))
print(f"El factorial es: {factorial(numero)}")
if __name__=='__main__':
main()
| 22.25 | 50 | 0.636704 | 39 | 267 | 4.153846 | 0.666667 | 0.148148 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014286 | 0.213483 | 267 | 11 | 51 | 24.272727 | 0.757143 | 0.138577 | 0 | 0 | 0 | 0 | 0.262009 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2f707f9a402e29eedec4f0d9d1755626678c065d | 975 | py | Python | api/question/migrations/0001_initial.py | Egor4ik325/rankrise | c4377237c9afbdda365c01453f73151189129aa9 | [
"MIT"
] | null | null | null | api/question/migrations/0001_initial.py | Egor4ik325/rankrise | c4377237c9afbdda365c01453f73151189129aa9 | [
"MIT"
] | null | null | null | api/question/migrations/0001_initial.py | Egor4ik325/rankrise | c4377237c9afbdda365c01453f73151189129aa9 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.8 on 2021-10-17 22:20
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = []
operations = [
migrations.CreateModel(
name="Question",
fields=[
(
"id",
... | 26.351351 | 85 | 0.429744 | 74 | 975 | 5.5 | 0.662162 | 0.135135 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034951 | 0.471795 | 975 | 36 | 86 | 27.083333 | 0.75534 | 0.046154 | 0 | 0.137931 | 1 | 0 | 0.092672 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.034483 | 0 | 0.172414 | 0 | 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 |
2f766b68109ff87906b430f512b2bf3efc9961fe | 2,660 | py | Python | neko/neko_utils.py | NeKoSaNnn/Neko-ML | 3a880c3dd0287487b05d2534c281e5b8727bda03 | [
"MIT"
] | null | null | null | neko/neko_utils.py | NeKoSaNnn/Neko-ML | 3a880c3dd0287487b05d2534c281e5b8727bda03 | [
"MIT"
] | null | null | null | neko/neko_utils.py | NeKoSaNnn/Neko-ML | 3a880c3dd0287487b05d2534c281e5b8727bda03 | [
"MIT"
] | null | null | null | import multiprocessing
import os
import os.path as osp
import shutil
import time
import cv2 as cv
import numpy as np
from PIL import Image
class neko_utils(object):
def __init__(self, log_path="./log"):
self.mkdir_nf(log_path)
self.log_file = open(osp.join(log_path, "{}.log".format(self.get_now_da... | 35 | 112 | 0.629699 | 368 | 2,660 | 4.326087 | 0.298913 | 0.026382 | 0.040829 | 0.035804 | 0.268844 | 0.226131 | 0.177136 | 0.100503 | 0 | 0 | 0 | 0.006955 | 0.243233 | 2,660 | 75 | 113 | 35.466667 | 0.783905 | 0.006015 | 0 | 0.101695 | 0 | 0 | 0.028777 | 0 | 0 | 0 | 0 | 0 | 0.016949 | 1 | 0.220339 | false | 0.016949 | 0.135593 | 0.050847 | 0.491525 | 0.084746 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2f7852fd0bde4f5f6a322c0f99b6324d3f50a507 | 1,210 | py | Python | test/core/emr_algorithm_test_base.py | aktechthoughts/m3d-api | 43cb5b58481c9b2d1efdb36f3ac800626705299a | [
"Apache-2.0"
] | 24 | 2019-09-26T13:15:14.000Z | 2021-11-10T11:10:04.000Z | test/core/emr_algorithm_test_base.py | aktechthoughts/m3d-api | 43cb5b58481c9b2d1efdb36f3ac800626705299a | [
"Apache-2.0"
] | null | null | null | test/core/emr_algorithm_test_base.py | aktechthoughts/m3d-api | 43cb5b58481c9b2d1efdb36f3ac800626705299a | [
"Apache-2.0"
] | 11 | 2019-09-26T13:27:10.000Z | 2020-11-04T03:13:20.000Z | import json
from test.core.acon_helper import AconHelper
from test.core.emr_system_unit_test_base import EMRSystemUnitTestBase
class EMRAlgorithmTestBase(EMRSystemUnitTestBase):
def env_setup(
self,
tmpdir,
destination_system,
destination_database,
des... | 28.809524 | 117 | 0.64876 | 127 | 1,210 | 5.771654 | 0.409449 | 0.049113 | 0.122783 | 0.167804 | 0.174625 | 0.174625 | 0.174625 | 0 | 0 | 0 | 0 | 0.009368 | 0.294215 | 1,210 | 41 | 118 | 29.512195 | 0.848946 | 0 | 0 | 0.272727 | 0 | 0 | 0.008264 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.090909 | 0 | 0.242424 | 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 |
2f7a23ac7f50224e0c6d479130628970f4e97d01 | 677 | py | Python | cardgame/engine/migrations/0004_auto_20181113_0823.py | Tjorriemorrie/cardgame | 892c0a16675f372afff13995035306128c505888 | [
"Apache-2.0"
] | null | null | null | cardgame/engine/migrations/0004_auto_20181113_0823.py | Tjorriemorrie/cardgame | 892c0a16675f372afff13995035306128c505888 | [
"Apache-2.0"
] | null | null | null | cardgame/engine/migrations/0004_auto_20181113_0823.py | Tjorriemorrie/cardgame | 892c0a16675f372afff13995035306128c505888 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.1.3 on 2018-11-13 08:23
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('engine', '0003_auto_20181113_0510'),
]
operations = [
migrations.AddField(
model_name='game',
name='phase',
... | 28.208333 | 200 | 0.556869 | 71 | 677 | 5.225352 | 0.661972 | 0.097035 | 0.123989 | 0.145553 | 0.188679 | 0.188679 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 0.27031 | 677 | 23 | 201 | 29.434783 | 0.674089 | 0.06647 | 0 | 0.352941 | 1 | 0 | 0.18254 | 0.036508 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2f7f15771339854f726f9b1b011ed7429ba6fa9f | 279 | py | Python | labs/search/urls.py | judaicalink/judaicalink-labs | 037621ba14fb020e80cecfea2a6699dbd915c956 | [
"MIT"
] | 3 | 2020-04-03T11:34:38.000Z | 2020-05-14T19:28:54.000Z | labs/search/urls.py | judaicalink/judaicalink-labs | 037621ba14fb020e80cecfea2a6699dbd915c956 | [
"MIT"
] | 131 | 2021-08-31T11:38:05.000Z | 2022-03-30T11:55:06.000Z | labs/search/urls.py | judaicalink/judaicalink-labs | 037621ba14fb020e80cecfea2a6699dbd915c956 | [
"MIT"
] | 2 | 2020-01-14T12:45:27.000Z | 2020-01-14T13:24:34.000Z | from django.contrib import admin
from django.urls import path, include
from . import views
app_name = 'search'
urlpatterns = [
path('', views.search_index, name='search_index'),
path('load', views.load, name='load'),
path('search', views.search, name='search'),
]
| 21.461538 | 54 | 0.688172 | 37 | 279 | 5.108108 | 0.405405 | 0.15873 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157706 | 279 | 12 | 55 | 23.25 | 0.804255 | 0 | 0 | 0 | 0 | 0 | 0.136201 | 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 |
2f9062ae1b80b7d8a62b053845148a7f1005e31e | 10,973 | py | Python | pyvbcc/net/commands.py | peitur/pyvbcc | 0a13467f6d79ecf29468765da7a47b0f2d444d72 | [
"MIT"
] | 1 | 2019-09-02T19:12:28.000Z | 2019-09-02T19:12:28.000Z | pyvbcc/net/commands.py | peitur/pyvbcc | 0a13467f6d79ecf29468765da7a47b0f2d444d72 | [
"MIT"
] | 5 | 2019-05-30T21:01:57.000Z | 2019-05-30T21:05:55.000Z | pyvbcc/net/commands.py | peitur/pyvbcc | 0a13467f6d79ecf29468765da7a47b0f2d444d72 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import os, sys, re
import json
import getopt
from pprint import pprint
import pyvbcc
import pyvbcc.config
import pyvbcc.utils
import pyvbcc.validate
import pyvbcc.command
#######################################################################################################################... | 43.031373 | 127 | 0.554725 | 1,276 | 10,973 | 4.448276 | 0.112853 | 0.109408 | 0.093023 | 0.042283 | 0.62544 | 0.507576 | 0.455779 | 0.426004 | 0.383721 | 0.360817 | 0 | 0.00352 | 0.223275 | 10,973 | 254 | 128 | 43.200787 | 0.662443 | 0.024424 | 0 | 0.374233 | 0 | 0 | 0.077899 | 0.00222 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.055215 | null | null | 0.006135 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
2f92e0eaee38d42045fabfb851a23386647d4b12 | 1,831 | py | Python | setup.py | kazuyamashi/cReComp | 2b3351626f36d29699334f15a5eb9ea1fb81bf4a | [
"BSD-3-Clause"
] | 15 | 2016-07-01T13:00:17.000Z | 2021-06-29T06:27:07.000Z | setup.py | kazuyamashi/cReComp | 2b3351626f36d29699334f15a5eb9ea1fb81bf4a | [
"BSD-3-Clause"
] | null | null | null | setup.py | kazuyamashi/cReComp | 2b3351626f36d29699334f15a5eb9ea1fb81bf4a | [
"BSD-3-Clause"
] | 7 | 2017-03-22T22:46:50.000Z | 2020-07-14T09:45:38.000Z | import os
from setuptools import setup, find_packages
import crecomp.crecomp as crecomp
version = crecomp.VERSION
script_name = 'crecomp'
def read(filename):
return open(os.path.join(os.path.dirname(__file__),filename)).read()
print find_packages()
import sys
setup(
name='crecomp',
version=version... | 40.688889 | 109 | 0.572911 | 162 | 1,831 | 6.37037 | 0.611111 | 0.034884 | 0.069767 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001552 | 0.296013 | 1,831 | 45 | 110 | 40.688889 | 0.799069 | 0 | 0 | 0 | 0 | 0 | 0.462882 | 0.040393 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.088889 | null | null | 0.022222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
2fa0f6f6815198aaef1ca2c109f4a6a615ee50f9 | 535 | py | Python | python/deletefile.py | MCORN/scripts | 00bc5305b42828c44a25bd653510fefd23fc231c | [
"Apache-2.0"
] | null | null | null | python/deletefile.py | MCORN/scripts | 00bc5305b42828c44a25bd653510fefd23fc231c | [
"Apache-2.0"
] | null | null | null | python/deletefile.py | MCORN/scripts | 00bc5305b42828c44a25bd653510fefd23fc231c | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# Import modules
import os
# Define variables
# 1073741824 bytes = 1 GB
xsize = 1073741824
path = r'/media/Movies-Backup/Movies'
# List all files bigger than 1073741824 bytes
print "\nList files bigger than " + str(xsize) + " bytes"
print "=======================" + "=" * len(st... | 28.157895 | 66 | 0.613084 | 71 | 535 | 4.605634 | 0.577465 | 0.091743 | 0.091743 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.07346 | 0.211215 | 535 | 19 | 67 | 28.157895 | 0.701422 | 0.254206 | 0 | 0 | 0 | 0 | 0.231383 | 0.132979 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1 | null | null | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
85cdb592faf5a927a0f6cb2ada7c22dfe5578f60 | 17,623 | py | Python | PlatformerGame/malmopy/core.py | MrMaik/platformer-ml-game | bbcabe3ddea1e3cfddb01b4cd60c8dd1bd79acac | [
"MIT"
] | 10 | 2020-01-05T19:33:33.000Z | 2022-02-04T14:56:09.000Z | PlatformerGame/malmopy/core.py | MrMaik/platformer-ml-game | bbcabe3ddea1e3cfddb01b4cd60c8dd1bd79acac | [
"MIT"
] | 1 | 2019-12-18T15:16:44.000Z | 2019-12-18T15:16:44.000Z | PlatformerGame/malmopy/core.py | MrMaik/platformer-ml-game | bbcabe3ddea1e3cfddb01b4cd60c8dd1bd79acac | [
"MIT"
] | 6 | 2019-12-18T14:45:37.000Z | 2021-09-13T12:48:28.000Z | # --------------------------------------------------------------------------------------------------
# Copyright (c) 2018 Microsoft Corporation
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
# associated documentation files (the "Software"), to deal in the Softw... | 29.618487 | 100 | 0.621177 | 2,038 | 17,623 | 5.244357 | 0.196762 | 0.02573 | 0.011321 | 0.017028 | 0.408776 | 0.377152 | 0.342721 | 0.308757 | 0.274701 | 0.265344 | 0 | 0.002069 | 0.286841 | 17,623 | 594 | 101 | 29.66835 | 0.848345 | 0.379901 | 0 | 0.509434 | 0 | 0 | 0.006572 | 0 | 0 | 0 | 0 | 0 | 0.037736 | 1 | 0.267925 | false | 0.015094 | 0.041509 | 0.056604 | 0.498113 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
85d8e06cd3c1242963e28d38c34f80a29873a16a | 2,116 | py | Python | gladiator/generate/templates.py | hellcat17/gladiator | 4f1ea65112dab04f584b148d23a150f28a94c434 | [
"Apache-2.0"
] | null | null | null | gladiator/generate/templates.py | hellcat17/gladiator | 4f1ea65112dab04f584b148d23a150f28a94c434 | [
"Apache-2.0"
] | null | null | null | gladiator/generate/templates.py | hellcat17/gladiator | 4f1ea65112dab04f584b148d23a150f28a94c434 | [
"Apache-2.0"
] | null | null | null | """Template preparation and rendering."""
from pathlib import Path
from typing import Iterable, Optional, TYPE_CHECKING
import jinja2
from gladiator.generate.constants import Constants, TemplateFiles
from gladiator.parse.feature import FeatureApi, FeatureVersion
from gladiator.parse.type import TypeDefinition
from g... | 33.587302 | 90 | 0.738185 | 233 | 2,116 | 6.55794 | 0.390558 | 0.068063 | 0.02356 | 0.034031 | 0.053665 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002846 | 0.16966 | 2,116 | 62 | 91 | 34.129032 | 0.866818 | 0.109168 | 0 | 0.046512 | 1 | 0 | 0.094624 | 0.027419 | 0 | 0 | 0 | 0 | 0 | 1 | 0.093023 | false | 0 | 0.255814 | 0.023256 | 0.418605 | 0 | 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 |
85e991b51ab5b4fb638761b1458c994f41d59f43 | 7,538 | py | Python | bin/Python_managing_file.py | getzlab/MSMuTect1 | d94eb1595e229153c9f48b918862771985bddbb7 | [
"Unlicense"
] | null | null | null | bin/Python_managing_file.py | getzlab/MSMuTect1 | d94eb1595e229153c9f48b918862771985bddbb7 | [
"Unlicense"
] | null | null | null | bin/Python_managing_file.py | getzlab/MSMuTect1 | d94eb1595e229153c9f48b918862771985bddbb7 | [
"Unlicense"
] | null | null | null | #Pyhton managing file
def EM_ML (vec,num_allele,P) :
#vec is a two dimenssional vectro continaing the histogram
#The search for the alleles will be only from lenghts that are larger than 5 reads.
#This mean that I need to have two lists of availbile lenghts. All of them, and only those that are larger th... | 27.510949 | 164 | 0.617936 | 1,410 | 7,538 | 3.112766 | 0.146099 | 0.112554 | 0.065619 | 0.027341 | 0.471634 | 0.388471 | 0.33265 | 0.313967 | 0.313967 | 0.308271 | 0 | 0.051316 | 0.208941 | 7,538 | 273 | 165 | 27.611722 | 0.684722 | 0.328204 | 0 | 0.308725 | 0 | 0 | 0.015042 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.033557 | 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 |
85ec8b6d8d12f7b35f2c1f28a6864da735f40a62 | 864 | py | Python | mathbox/app/signal/outlier.py | freedeaths/mathbox-py | e294dc1b916bb634807378883b1ba941a924bec5 | [
"MIT"
] | 7 | 2021-12-23T07:03:12.000Z | 2021-12-31T06:35:34.000Z | mathbox/app/signal/outlier.py | freedeaths/mathbox-py | e294dc1b916bb634807378883b1ba941a924bec5 | [
"MIT"
] | 8 | 2021-12-23T06:12:19.000Z | 2022-01-07T15:01:47.000Z | mathbox/app/signal/outlier.py | freedeaths/mathbox-py | e294dc1b916bb634807378883b1ba941a924bec5 | [
"MIT"
] | null | null | null | from mathbox.statistics.estimator import mean, std
def noise_outlier(noise, bias=3):
noise_mean = mean(noise)
noise_std = std(noise)
outlier_lo = [(i,x) for i,x in enumerate(noise) if x < noise_mean - bias * noise_std]
outlier_hi = [(i,x) for i,x in enumerate(noise) if x > noise_mean + bias * noise_std... | 39.272727 | 89 | 0.675926 | 143 | 864 | 3.951049 | 0.342657 | 0.028319 | 0.035398 | 0.042478 | 0.488496 | 0.325664 | 0.325664 | 0.325664 | 0.325664 | 0.261947 | 0 | 0.033046 | 0.194444 | 864 | 22 | 90 | 39.272727 | 0.778736 | 0.114583 | 0 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0.058824 | 0.058824 | 0 | 0.352941 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
85ee9e8ed9711079c48fca786841badd022b0f97 | 4,933 | py | Python | src/aaLogbook/cli.py | DonalChilde/AA_Logbook_Export | c8e66890be36edd3bc60c378772d864e75af63a9 | [
"MIT"
] | 1 | 2019-05-05T18:47:02.000Z | 2019-05-05T18:47:02.000Z | src/aaLogbook/cli.py | DonalChilde/AA_Logbook_Export | c8e66890be36edd3bc60c378772d864e75af63a9 | [
"MIT"
] | null | null | null | src/aaLogbook/cli.py | DonalChilde/AA_Logbook_Export | c8e66890be36edd3bc60c378772d864e75af63a9 | [
"MIT"
] | null | null | null | """
TODO output options for all save files
TODO more than one save format at a time
TODO save/load output proflies to a file.
TODO for csv, allow list of output fields to be loaded from file
TODO save a list of possible output fields to a file
TODO allow different duration formats in csv
"""
import logging
import clic... | 32.668874 | 88 | 0.689438 | 593 | 4,933 | 5.689713 | 0.340641 | 0.017783 | 0.035566 | 0.025193 | 0.155602 | 0.132484 | 0.132484 | 0.132484 | 0.084173 | 0.084173 | 0 | 0.002853 | 0.218326 | 4,933 | 150 | 89 | 32.886667 | 0.87111 | 0.433205 | 0 | 0.185714 | 0 | 0.014286 | 0.120696 | 0.008702 | 0 | 0 | 0 | 0.04 | 0 | 1 | 0.1 | false | 0.042857 | 0.085714 | 0 | 0.185714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
85f065e479c1d85bccbe17fab4be41125d952912 | 3,662 | py | Python | pyaes/pure/modes.py | Legorooj/pyaes | 589cb87fbab538364c2dcc9f3681d2d9d981aca4 | [
"MIT"
] | null | null | null | pyaes/pure/modes.py | Legorooj/pyaes | 589cb87fbab538364c2dcc9f3681d2d9d981aca4 | [
"MIT"
] | null | null | null | pyaes/pure/modes.py | Legorooj/pyaes | 589cb87fbab538364c2dcc9f3681d2d9d981aca4 | [
"MIT"
] | null | null | null | # ----------------------------------------------------------------------------- #
# Copyright (c) 2020 Legorooj <legorooj@pm.me>. This file is licensed under the #
# MIT license. See the LICENSE file in the root of this repository for details. #
# ------------------------------------------------------------------------... | 30.773109 | 81 | 0.565811 | 446 | 3,662 | 4.457399 | 0.165919 | 0.070423 | 0.067907 | 0.058853 | 0.612676 | 0.596579 | 0.575453 | 0.575453 | 0.522636 | 0.522636 | 0 | 0.024059 | 0.296286 | 3,662 | 118 | 82 | 31.033898 | 0.747381 | 0.108138 | 0 | 0.6625 | 0 | 0 | 0.142946 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.0125 | 0.125 | 0.3875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
85feda043da893c10a9e2d9899353fcb90671a3f | 3,545 | py | Python | plugin_manager/plugin.py | stevencnix/Plugin_Manager_2 | f12872fe109dd2c6dce73d1152cc7082cc5a204f | [
"MIT"
] | null | null | null | plugin_manager/plugin.py | stevencnix/Plugin_Manager_2 | f12872fe109dd2c6dce73d1152cc7082cc5a204f | [
"MIT"
] | null | null | null | plugin_manager/plugin.py | stevencnix/Plugin_Manager_2 | f12872fe109dd2c6dce73d1152cc7082cc5a204f | [
"MIT"
] | null | null | null | from configparser import ConfigParser
from distutils.version import StrictVersion
class Plugin(object):
def __init__(self, plugin_name, plugin_path):
self.__details = ConfigParser()
self.__name = plugin_name
self.__path = plugin_path
self.__fill_empty_fields()
# variables... | 31.651786 | 74 | 0.638928 | 386 | 3,545 | 5.712435 | 0.129534 | 0.179592 | 0.04898 | 0.087075 | 0.498866 | 0.478005 | 0.385488 | 0.333787 | 0.292971 | 0.292971 | 0 | 0.000744 | 0.241467 | 3,545 | 111 | 75 | 31.936937 | 0.819264 | 0.015233 | 0 | 0.269663 | 0 | 0 | 0.148467 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.202247 | false | 0 | 0.022472 | 0.089888 | 0.325843 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c801b27272b08594c111f3ef056a7ac77f3136a7 | 2,537 | py | Python | tests/queries/test_delete.py | Dundee/python-sqlpuzzle | 260524922a0645c9bf94a9779195f93ef2c78cba | [
"MIT"
] | 8 | 2015-03-19T11:25:32.000Z | 2020-09-02T11:30:10.000Z | tests/queries/test_delete.py | Dundee/python-sqlpuzzle | 260524922a0645c9bf94a9779195f93ef2c78cba | [
"MIT"
] | 7 | 2015-03-23T14:34:28.000Z | 2022-02-21T12:36:01.000Z | tests/queries/test_delete.py | Dundee/python-sqlpuzzle | 260524922a0645c9bf94a9779195f93ef2c78cba | [
"MIT"
] | 4 | 2018-11-28T21:59:27.000Z | 2020-01-05T01:50:08.000Z | # pylint: disable=invalid-name
import sqlpuzzle.exceptions
def test_simply(delete):
delete.from_('user')
delete.allow_delete_all()
assert str(delete) == 'DELETE FROM "user"'
def test_str(delete):
delete.from_('user')
delete.where(name='ščřž')
assert str(delete) == 'DELETE FROM "user" WHERE ... | 25.887755 | 118 | 0.627119 | 347 | 2,537 | 4.446686 | 0.15562 | 0.178872 | 0.124433 | 0.142579 | 0.553467 | 0.462087 | 0.381724 | 0.26118 | 0.26118 | 0.26118 | 0 | 0.012142 | 0.188412 | 2,537 | 97 | 119 | 26.154639 | 0.737251 | 0.011037 | 0 | 0.268657 | 0 | 0.014925 | 0.254089 | 0 | 0 | 0 | 0 | 0 | 0.253731 | 1 | 0.208955 | false | 0 | 0.014925 | 0 | 0.223881 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c802fc90db8cd96b716cf864faa00ed3000406cb | 2,849 | py | Python | run_worms.py | skyman/CompressionSimulator | b484f41845aa16e3e3e057a1d7739909d0dff0df | [
"MIT"
] | null | null | null | run_worms.py | skyman/CompressionSimulator | b484f41845aa16e3e3e057a1d7739909d0dff0df | [
"MIT"
] | null | null | null | run_worms.py | skyman/CompressionSimulator | b484f41845aa16e3e3e057a1d7739909d0dff0df | [
"MIT"
] | null | null | null | import os
import itertools
import threading
from compsim.simulate import WormTheorySimulator, WormParticle, ConnectivityRule
from compsim.plot import RasterPlotter
from compsim.io import separation_simulator_grid_loader, MetricsIO
def run_simulation(input_file, root_dir, c, model_name):
grid = separation_simulato... | 39.027397 | 122 | 0.681292 | 385 | 2,849 | 4.849351 | 0.285714 | 0.038565 | 0.021425 | 0.022496 | 0.221211 | 0.221211 | 0.183717 | 0.136583 | 0.099089 | 0.099089 | 0 | 0.028796 | 0.195507 | 2,849 | 73 | 123 | 39.027397 | 0.785777 | 0.208143 | 0 | 0.088889 | 0 | 0 | 0.135918 | 0.035651 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.133333 | null | null | 0.088889 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c80fa3d440330542d88e0fe04551f56a43bf4133 | 380 | py | Python | sme_material_apps/proponentes/migrations/0014_auto_20200812_1620.py | luizhpriotto/piloto_apresentacao | c968025db819633ee4cd75df5357ab6a4ab7d9af | [
"MIT"
] | null | null | null | sme_material_apps/proponentes/migrations/0014_auto_20200812_1620.py | luizhpriotto/piloto_apresentacao | c968025db819633ee4cd75df5357ab6a4ab7d9af | [
"MIT"
] | null | null | null | sme_material_apps/proponentes/migrations/0014_auto_20200812_1620.py | luizhpriotto/piloto_apresentacao | c968025db819633ee4cd75df5357ab6a4ab7d9af | [
"MIT"
] | null | null | null | # Generated by Django 2.2.9 on 2020-08-12 19:20
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('proponentes', '0013_proponente_descricao'),
]
operations = [
migrations.RenameField(
model_name='proponente',
old_name='desc... | 20 | 53 | 0.602632 | 38 | 380 | 5.894737 | 0.763158 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.07037 | 0.289474 | 380 | 18 | 54 | 21.111111 | 0.759259 | 0.118421 | 0 | 0 | 1 | 0 | 0.195195 | 0.075075 | 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 |
c80fb4fcd75a3a5ec6c8e6f0280d1e8a5aa56ba2 | 872 | py | Python | accounts/models.py | simpledatatools/django-starter-api | 6c11b9a236230e47b8358ef9fbaae550002bb1a8 | [
"MIT"
] | null | null | null | accounts/models.py | simpledatatools/django-starter-api | 6c11b9a236230e47b8358ef9fbaae550002bb1a8 | [
"MIT"
] | null | null | null | accounts/models.py | simpledatatools/django-starter-api | 6c11b9a236230e47b8358ef9fbaae550002bb1a8 | [
"MIT"
] | null | null | null | from django.db import models
from django.contrib.auth.models import User
from django.contrib.auth.models import AbstractUser
from django.conf import settings
from files.models import *
class CustomUser(AbstractUser):
pass
# add additional fields in here
user_extras = models.ForeignKey('UserExtras', on_del... | 28.129032 | 104 | 0.733945 | 116 | 872 | 5.310345 | 0.465517 | 0.064935 | 0.055195 | 0.068182 | 0.36039 | 0.308442 | 0.094156 | 0 | 0 | 0 | 0 | 0 | 0.177752 | 872 | 30 | 105 | 29.066667 | 0.859135 | 0.033257 | 0 | 0.1 | 0 | 0 | 0.053699 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.05 | 0.25 | 0.1 | 0.85 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
c8151aa23cb41ecb2e677503e465b5da6e079d1c | 365 | py | Python | topi/python/topi/nn/elemwise.py | ZihengJiang/tvm | 90809381e1ec0ef10ec9f246366f6808bdf12af4 | [
"Apache-2.0"
] | null | null | null | topi/python/topi/nn/elemwise.py | ZihengJiang/tvm | 90809381e1ec0ef10ec9f246366f6808bdf12af4 | [
"Apache-2.0"
] | null | null | null | topi/python/topi/nn/elemwise.py | ZihengJiang/tvm | 90809381e1ec0ef10ec9f246366f6808bdf12af4 | [
"Apache-2.0"
] | null | null | null | """Elementwise operators"""
from __future__ import absolute_import as _abs
import tvm
@tvm.tag_scope(tag="ewise")
def relu(x):
"""Take relu of input x.
Parameters
----------
x : tvm.Tensor
Input argument.
Returns
-------
y : tvm.Tensor
The result.
"""
return tvm.co... | 18.25 | 61 | 0.578082 | 48 | 365 | 4.25 | 0.666667 | 0.088235 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00369 | 0.257534 | 365 | 19 | 62 | 19.210526 | 0.749077 | 0.408219 | 0 | 0 | 0 | 0 | 0.029762 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
c8155d17c5b16e71017ac8bd998ab425c4349598 | 4,144 | py | Python | catalog/views.py | shwetaairan/nimantran | 1a4ed92ef1cff4ac10e0a73edaac36460c5e6728 | [
"MIT"
] | 2 | 2018-04-17T07:53:20.000Z | 2018-05-02T08:26:30.000Z | nimantran/catalog/views.py | shwetaairan/nimantran | 1a4ed92ef1cff4ac10e0a73edaac36460c5e6728 | [
"MIT"
] | null | null | null | nimantran/catalog/views.py | shwetaairan/nimantran | 1a4ed92ef1cff4ac10e0a73edaac36460c5e6728 | [
"MIT"
] | 1 | 2019-06-30T22:29:05.000Z | 2019-06-30T22:29:05.000Z | from django.shortcuts import render
from django.contrib.auth.mixins import LoginRequiredMixin
from django.contrib.auth.models import User
from django.views.generic.edit import CreateView, UpdateView, DeleteView
from django.urls import reverse_lazy
from .models import Event
from django.shortcuts import get_object_or_4... | 30.028986 | 113 | 0.724421 | 469 | 4,144 | 6.270789 | 0.294243 | 0.047603 | 0.034682 | 0.042843 | 0.238354 | 0.15947 | 0.068684 | 0.068684 | 0 | 0 | 0 | 0.00177 | 0.182191 | 4,144 | 137 | 114 | 30.248175 | 0.866037 | 0.077944 | 0 | 0.265957 | 0 | 0 | 0.103303 | 0.048085 | 0 | 0 | 0 | 0 | 0 | 1 | 0.06383 | false | 0.021277 | 0.180851 | 0.021277 | 0.744681 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c81879d7c2ebb03020b29174647501406a7380b3 | 602 | py | Python | bot/seasons/halloween/__init__.py | Denayder/seasonalbot | e8e6afb13debb54226d373d0fcc31c0c974f7b85 | [
"MIT"
] | 1 | 2021-02-25T19:29:53.000Z | 2021-02-25T19:29:53.000Z | bot/seasons/halloween/__init__.py | Denayder/seasonalbot | e8e6afb13debb54226d373d0fcc31c0c974f7b85 | [
"MIT"
] | null | null | null | bot/seasons/halloween/__init__.py | Denayder/seasonalbot | e8e6afb13debb54226d373d0fcc31c0c974f7b85 | [
"MIT"
] | null | null | null | from bot.constants import Colours
from bot.seasons import SeasonBase
class Halloween(SeasonBase):
"""
Halloween Seasonal event attributes.
Announcement for this cog temporarily disabled, since we're doing a custom
Hacktoberfest announcement. If you're enabling the announcement again,
make sure to... | 24.08 | 78 | 0.692691 | 71 | 602 | 5.816901 | 0.746479 | 0.033898 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017167 | 0.225914 | 602 | 24 | 79 | 25.083333 | 0.869099 | 0.383721 | 0 | 0 | 0 | 0 | 0.262391 | 0.139942 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c819f94e624873b19f420b6cecaaa424d64b7638 | 1,739 | py | Python | util.py | 24hours/tf_fcn | 9acc9298ac115a92ccf2cb62091eec65c60e3e90 | [
"MIT"
] | 3 | 2016-06-04T13:33:59.000Z | 2016-07-20T18:50:47.000Z | util.py | 24hours/tf_fcn | 9acc9298ac115a92ccf2cb62091eec65c60e3e90 | [
"MIT"
] | 2 | 2016-07-19T08:21:36.000Z | 2016-08-29T04:07:32.000Z | util.py | 24hours/tf_fcn | 9acc9298ac115a92ccf2cb62091eec65c60e3e90 | [
"MIT"
] | null | null | null | import tensorflow as tf
import os
import numpy as np
def create_or_clear(folder):
if os.path.isdir(folder):
for the_file in os.listdir(folder):
file_path = os.path.join(folder, the_file)
try:
if os.path.isfile(file_path):
os.unlink(file_path)
... | 33.442308 | 72 | 0.589994 | 232 | 1,739 | 4.258621 | 0.318966 | 0.080972 | 0.054656 | 0.05668 | 0.431174 | 0.431174 | 0.431174 | 0.431174 | 0.431174 | 0.431174 | 0 | 0.003271 | 0.296722 | 1,739 | 51 | 73 | 34.098039 | 0.804579 | 0.031627 | 0 | 0.355556 | 0 | 0 | 0.060012 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.066667 | null | null | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c81a3639f13497b48b6f661f2c1d6aabb8bb5413 | 724 | py | Python | 01-advanced/advanced_stuff/implement_context_manager.py | cccaaannn/useful_functions | 1570cda8c642a39f04ed9f22ebeeab2bfb9e9424 | [
"MIT"
] | null | null | null | 01-advanced/advanced_stuff/implement_context_manager.py | cccaaannn/useful_functions | 1570cda8c642a39f04ed9f22ebeeab2bfb9e9424 | [
"MIT"
] | null | null | null | 01-advanced/advanced_stuff/implement_context_manager.py | cccaaannn/useful_functions | 1570cda8c642a39f04ed9f22ebeeab2bfb9e9424 | [
"MIT"
] | null | null | null | class Employee():
def __init__(self, name, salary):
self.name = name
self.salary = salary
self.is_db_connected = False
def __enter__(self):
print("entered")
self.is_db_connected = True
# must return self because in the with employee as e: e becomes the value re... | 20.685714 | 105 | 0.610497 | 92 | 724 | 4.51087 | 0.402174 | 0.057831 | 0.077108 | 0.163855 | 0.19759 | 0.120482 | 0 | 0 | 0 | 0 | 0 | 0.00789 | 0.299724 | 724 | 34 | 106 | 21.294118 | 0.810651 | 0.131215 | 0 | 0.095238 | 0 | 0 | 0.056 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.190476 | false | 0 | 0 | 0 | 0.285714 | 0.190476 | 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 |
c81a394e004cb45cb8ad0b20dd498b635b1ddc38 | 721 | py | Python | main.py | fringebits/PiFrame | 8f3cafb5a4fae46b504234aa5f0baeef75fcc916 | [
"MIT"
] | null | null | null | main.py | fringebits/PiFrame | 8f3cafb5a4fae46b504234aa5f0baeef75fcc916 | [
"MIT"
] | null | null | null | main.py | fringebits/PiFrame | 8f3cafb5a4fae46b504234aa5f0baeef75fcc916 | [
"MIT"
] | null | null | null |
from frame.folder_import import FolderImport
from frame.frame import Frame
import os
import logging
from logging.handlers import RotatingFileHandler
logFile = 'piframe.log'
logLevel = logging.DEBUG
handler = RotatingFileHandler(logFile, mode='a', backupCount=5)
if os.path.isfile(logFile):
handler.doRollover()
l... | 22.53125 | 63 | 0.705964 | 83 | 721 | 6.024096 | 0.493976 | 0.06 | 0.064 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001684 | 0.176144 | 721 | 32 | 64 | 22.53125 | 0.840067 | 0 | 0 | 0 | 0 | 0 | 0.105409 | 0.061026 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.375 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c81badd2b6b69dc999927ddb527a77fa852c8bb5 | 3,356 | py | Python | examples/Synthetic_toy_examples/generate_data.py | lanl/SEPIA | 0a1e606e1d1072f49e4f3f358962bd8918a5d3a3 | [
"BSD-3-Clause"
] | 19 | 2020-06-22T16:37:07.000Z | 2022-02-18T22:50:59.000Z | examples/Synthetic_toy_examples/generate_data.py | lanl/SEPIA | 0a1e606e1d1072f49e4f3f358962bd8918a5d3a3 | [
"BSD-3-Clause"
] | 41 | 2020-07-07T22:52:33.000Z | 2021-11-04T14:05:03.000Z | examples/Synthetic_toy_examples/generate_data.py | lanl/SEPIA | 0a1e606e1d1072f49e4f3f358962bd8918a5d3a3 | [
"BSD-3-Clause"
] | 6 | 2020-08-14T18:58:45.000Z | 2022-03-01T21:00:14.000Z | """
Some simple cases for generating data for unit tests, demos, etc.
"""
import numpy as np
def generate_univ_sim_and_obs(m=100, n=10, sig_n=0.1, seed=42):
"""
Generate simple synthetic univariate-output simulation and observation data.
:param m: scalar -- number of observations in simulation data
... | 36.086022 | 107 | 0.617402 | 606 | 3,356 | 3.226073 | 0.174917 | 0.024552 | 0.042967 | 0.030691 | 0.660358 | 0.534015 | 0.495141 | 0.483376 | 0.456777 | 0.387212 | 0 | 0.021663 | 0.229738 | 3,356 | 92 | 108 | 36.478261 | 0.734623 | 0.307509 | 0 | 0.177778 | 1 | 0 | 0.02969 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044444 | false | 0 | 0.022222 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c81c7a2b5388298e928f5febd16e0f1c20ab5b1c | 1,413 | py | Python | expense_tracker/expense/models.py | odbalogun/expense-tracker | 4a66ce0fd76232a8b3989749ff24cc2da714e178 | [
"MIT"
] | null | null | null | expense_tracker/expense/models.py | odbalogun/expense-tracker | 4a66ce0fd76232a8b3989749ff24cc2da714e178 | [
"MIT"
] | 8 | 2019-12-26T17:33:00.000Z | 2022-03-21T22:21:45.000Z | expense_tracker/expense/models.py | odbalogun/expense-tracker | 4a66ce0fd76232a8b3989749ff24cc2da714e178 | [
"MIT"
] | null | null | null | """
Expense models
"""
import datetime as dt
import calendar
from expense_tracker.database import (
Column,
db,
Model,
reference_col,
relationship,
UserRelated
)
class Expense(UserRelated, Model):
"""
Class for expense line items
"""
__tablename__ = "expense"
name = Column... | 25.232143 | 66 | 0.670913 | 166 | 1,413 | 5.554217 | 0.39759 | 0.095445 | 0.065076 | 0.074837 | 0.169197 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007092 | 0.201699 | 1,413 | 56 | 67 | 25.232143 | 0.810284 | 0.052371 | 0 | 0.055556 | 0 | 0 | 0.0553 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.083333 | 0.083333 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c820401c95e7b2201fb8d360924e69fded66add7 | 1,583 | py | Python | conan/opencv/conanfile.py | geisslersebastian/adtf3_video_toolbox | 77d65e7b93732e0b62cab029e12ce4d58c279fc8 | [
"MIT"
] | 2 | 2019-12-18T22:02:15.000Z | 2021-09-02T10:58:47.000Z | conan/opencv/conanfile.py | geisslersebastian/adtf3_video_toolbox | 77d65e7b93732e0b62cab029e12ce4d58c279fc8 | [
"MIT"
] | 1 | 2021-05-08T07:17:34.000Z | 2021-05-08T07:17:34.000Z | conan/opencv/conanfile.py | geisslersebastian/adtf3_video_toolbox | 77d65e7b93732e0b62cab029e12ce4d58c279fc8 | [
"MIT"
] | null | null | null | from conans import ConanFile, tools, CMake
import os
class OpenCV(ConanFile):
version = "4.1.0"
name = "opencv"
description = "%s" % (name)
short_paths = True
license = "MPL 2.0"
generators = "cmake"
settings = {"os": ["Windows", "Linux"], "arch": ["x86_64"], "compiler": ["Visual Studio", "... | 37.690476 | 137 | 0.613392 | 187 | 1,583 | 5.037433 | 0.438503 | 0.089172 | 0.084926 | 0.063694 | 0.265393 | 0.176221 | 0.176221 | 0.087049 | 0.087049 | 0 | 0 | 0.007426 | 0.234365 | 1,583 | 42 | 138 | 37.690476 | 0.769802 | 0.203411 | 0 | 0 | 0 | 0 | 0.256983 | 0.038308 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0.074074 | 0 | 0.592593 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c82166af5bd37bd207ea2d144fe08a9aa8c9799a | 9,941 | py | Python | dev/csg/bintree.py | hanswenzel/opticks | b75b5929b6cf36a5eedeffb3031af2920f75f9f0 | [
"Apache-2.0"
] | 11 | 2020-07-05T02:39:32.000Z | 2022-03-20T18:52:44.000Z | dev/csg/bintree.py | hanswenzel/opticks | b75b5929b6cf36a5eedeffb3031af2920f75f9f0 | [
"Apache-2.0"
] | null | null | null | dev/csg/bintree.py | hanswenzel/opticks | b75b5929b6cf36a5eedeffb3031af2920f75f9f0 | [
"Apache-2.0"
] | 4 | 2020-09-03T20:36:32.000Z | 2022-01-19T07:42:21.000Z | #!/usr/bin/env python
#
# Copyright (c) 2019 Opticks Team. All Rights Reserved.
#
# This file is part of Opticks
# (see https://bitbucket.org/simoncblyth/opticks).
#
# 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... | 31.862179 | 150 | 0.595011 | 1,307 | 9,941 | 4.463657 | 0.233359 | 0.019198 | 0.021598 | 0.018855 | 0.081076 | 0.058622 | 0.036682 | 0.01337 | 0.008913 | 0 | 0 | 0.022467 | 0.306005 | 9,941 | 311 | 151 | 31.96463 | 0.823163 | 0.341012 | 0 | 0.152866 | 0 | 0 | 0.044081 | 0.003797 | 0 | 0 | 0 | 0.003215 | 0.025478 | 1 | 0.063694 | false | 0.070064 | 0.012739 | 0 | 0.191083 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c82d86438d4e2b3070a96bddca8943fda9a65c16 | 4,023 | py | Python | display.py | gituser-rk/led-wall-clock-iobroker | 51e5565a4a5f66c5c73b1ccd8bd34dda5c768c94 | [
"MIT"
] | null | null | null | display.py | gituser-rk/led-wall-clock-iobroker | 51e5565a4a5f66c5c73b1ccd8bd34dda5c768c94 | [
"MIT"
] | null | null | null | display.py | gituser-rk/led-wall-clock-iobroker | 51e5565a4a5f66c5c73b1ccd8bd34dda5c768c94 | [
"MIT"
] | null | null | null | import threading
import time
import locale
from rgbmatrix import graphics
from rgbmatrix import RGBMatrix
locale.setlocale(locale.LC_ALL,'')
class Display(threading.Thread):
def __init__(self, weather, dimmer):
threading.Thread.__init__(self)
self.setDaemon(True)
self._weather = weather
... | 42.347368 | 104 | 0.637832 | 513 | 4,023 | 4.80117 | 0.28655 | 0.061713 | 0.116119 | 0.137231 | 0.348356 | 0.306943 | 0.115307 | 0.115307 | 0.115307 | 0.056841 | 0 | 0.06632 | 0.235396 | 4,023 | 94 | 105 | 42.797872 | 0.734395 | 0.103654 | 0 | 0.060606 | 0 | 0 | 0.045391 | 0.027569 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.075758 | 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 |
c83731236824c49ff9db7e7a1325310774da2ff0 | 558 | py | Python | apps/account/migrations/0002_pyaccountplan_type.py | gvizquel/pyerp | c859f7293cabd1003f79112463cee93ac89fccba | [
"MIT"
] | null | null | null | apps/account/migrations/0002_pyaccountplan_type.py | gvizquel/pyerp | c859f7293cabd1003f79112463cee93ac89fccba | [
"MIT"
] | 11 | 2020-06-05T22:50:37.000Z | 2022-02-10T09:05:56.000Z | apps/account/migrations/0002_pyaccountplan_type.py | gvizquel/pyerp | c859f7293cabd1003f79112463cee93ac89fccba | [
"MIT"
] | null | null | null | # Generated by Django 2.2.4 on 2019-08-18 03:29
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('account', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='pyaccountplan',
name='type',
... | 29.368421 | 230 | 0.600358 | 56 | 558 | 5.910714 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048387 | 0.222222 | 558 | 18 | 231 | 31 | 0.714286 | 0.080645 | 0 | 0 | 1 | 0 | 0.262231 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c8378f6558878d66b0a5a4baa9e1c6670b451834 | 3,219 | py | Python | teszt/test_feladat05.py | python-feladatok-tesztekkel/05-02-02-fuggvenyek-halado | 79f2be6b5abef98bd88da410645bcf2b75fc2627 | [
"CC0-1.0"
] | null | null | null | teszt/test_feladat05.py | python-feladatok-tesztekkel/05-02-02-fuggvenyek-halado | 79f2be6b5abef98bd88da410645bcf2b75fc2627 | [
"CC0-1.0"
] | null | null | null | teszt/test_feladat05.py | python-feladatok-tesztekkel/05-02-02-fuggvenyek-halado | 79f2be6b5abef98bd88da410645bcf2b75fc2627 | [
"CC0-1.0"
] | null | null | null | from unittest import TestCase
import os,sys,inspect
current_dir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
parent_dir = os.path.dirname(current_dir)
sys.path.insert(0, parent_dir)
import feladatok
class TesPrimszamok(TestCase):
def test_feladat01(self):
parameter=1
... | 58.527273 | 828 | 0.650513 | 450 | 3,219 | 4.624444 | 0.488889 | 0.030274 | 0.116771 | 0.155694 | 0.572802 | 0.532436 | 0.511773 | 0.511773 | 0.490149 | 0.490149 | 0 | 0.217617 | 0.220565 | 3,219 | 54 | 829 | 59.611111 | 0.611798 | 0 | 0 | 0.384615 | 0 | 0 | 0.125815 | 0 | 0 | 0 | 0 | 0 | 0.173077 | 1 | 0.173077 | false | 0 | 0.057692 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c83ea5d2e9a1560004e96366118404b7628eea75 | 520 | py | Python | dataHandler/dataHandler.py | sirnfs/OptionSuite | 1f159a78dcebcdb3373a66d3298da89685877013 | [
"MIT"
] | 82 | 2018-05-03T01:04:47.000Z | 2022-03-29T11:02:07.000Z | dataHandler/dataHandler.py | webclinic017/OptionSuite | 1f159a78dcebcdb3373a66d3298da89685877013 | [
"MIT"
] | 5 | 2019-02-06T05:14:11.000Z | 2022-03-02T03:42:36.000Z | dataHandler/dataHandler.py | webclinic017/OptionSuite | 1f159a78dcebcdb3373a66d3298da89685877013 | [
"MIT"
] | 38 | 2018-05-18T14:42:19.000Z | 2022-03-21T07:32:28.000Z | import abc
class DataHandler(abc.ABC):
"""This class is a generic type for handling incoming data. Incoming data sources could be historical data in the
form of a CSV or a database, or it could be live tick data coming from an exchange."""
@abc.abstractmethod
def getNextTick(self) -> bool:
"""Used to get ... | 40 | 119 | 0.721154 | 85 | 520 | 4.411765 | 0.623529 | 0.064 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.217308 | 520 | 13 | 120 | 40 | 0.921376 | 0.734615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.2 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
c842c4b3679520df99e9f7b6787aad2686208317 | 1,205 | py | Python | ground_truth_labeling_jobs/multi_modal_parallel_sagemaker_labeling_workflows_with_step_functions/src/lambda_test/api_batch_create/main_test.py | jerrypeng7773/amazon-sagemaker-examples | c5ddecce1f739a345465b9a38b064983a129141d | [
"Apache-2.0"
] | 2,610 | 2020-10-01T14:14:53.000Z | 2022-03-31T18:02:31.000Z | ground_truth_labeling_jobs/multi_modal_parallel_sagemaker_labeling_workflows_with_step_functions/src/lambda_test/api_batch_create/main_test.py | jerrypeng7773/amazon-sagemaker-examples | c5ddecce1f739a345465b9a38b064983a129141d | [
"Apache-2.0"
] | 1,959 | 2020-09-30T20:22:42.000Z | 2022-03-31T23:58:37.000Z | ground_truth_labeling_jobs/multi_modal_parallel_sagemaker_labeling_workflows_with_step_functions/src/lambda_test/api_batch_create/main_test.py | jerrypeng7773/amazon-sagemaker-examples | c5ddecce1f739a345465b9a38b064983a129141d | [
"Apache-2.0"
] | 2,052 | 2020-09-30T22:11:46.000Z | 2022-03-31T23:02:51.000Z | import json
import os
import unittest
from unittest import TestCase
from unittest.mock import Mock, patch
from api_batch_create.main import lambda_handler
from botocore.exceptions import ClientError
from test_shared.mock_objects import InputTestData, TestContext
class TestCase(TestCase):
def mock_sagemaker_api_c... | 33.472222 | 86 | 0.725311 | 144 | 1,205 | 5.756944 | 0.479167 | 0.047045 | 0.057901 | 0.048251 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006067 | 0.179253 | 1,205 | 35 | 87 | 34.428571 | 0.832154 | 0.013278 | 0 | 0 | 0 | 0 | 0.164557 | 0.058228 | 0 | 0 | 0 | 0 | 0.041667 | 1 | 0.083333 | false | 0 | 0.333333 | 0 | 0.458333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c84d45e2c57bc5587a3f47eb457293ffc8ab3441 | 4,614 | py | Python | python/houdini_render_time_utils.py | jtomori/ass_render_time_prediction | 58ed8bdc11c96255f4ea03f1fc6b1f98151a50c5 | [
"MIT"
] | 2 | 2020-12-04T10:54:21.000Z | 2022-03-07T04:13:35.000Z | python/houdini_render_time_utils.py | jtomori/ass_render_time_prediction | 58ed8bdc11c96255f4ea03f1fc6b1f98151a50c5 | [
"MIT"
] | null | null | null | python/houdini_render_time_utils.py | jtomori/ass_render_time_prediction | 58ed8bdc11c96255f4ea03f1fc6b1f98151a50c5 | [
"MIT"
] | null | null | null | """
Collection of scripts which are called by Houdini renders.
"""
import os
import hou
import json
import time
import cpuinfo
import subprocess
import re
re_map = {'Machine': 'Machine: ',
'CPU':'CPU : ',
'Cache': 'Cache: ',
'Number of cores':'Number of cores: ',
'Numb... | 34.177778 | 94 | 0.615735 | 554 | 4,614 | 4.98917 | 0.292419 | 0.025326 | 0.02822 | 0.027135 | 0.118669 | 0.090449 | 0.044863 | 0.044863 | 0.044863 | 0.044863 | 0 | 0.01096 | 0.248591 | 4,614 | 134 | 95 | 34.432836 | 0.786271 | 0.236238 | 0 | 0.1 | 0 | 0 | 0.125554 | 0 | 0 | 0 | 0 | 0.014925 | 0 | 1 | 0.0875 | false | 0 | 0.0875 | 0 | 0.275 | 0.0125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
c84f81570fea88a5cda966b69387c33cfbb44eec | 272 | py | Python | manage.py | anomishra/lmsr | ccc2199f378362dfba4c0620bad3f59048a6bebd | [
"Apache-2.0"
] | 1 | 2019-06-15T22:01:00.000Z | 2019-06-15T22:01:00.000Z | manage.py | anomishra/lmsr | ccc2199f378362dfba4c0620bad3f59048a6bebd | [
"Apache-2.0"
] | null | null | null | manage.py | anomishra/lmsr | ccc2199f378362dfba4c0620bad3f59048a6bebd | [
"Apache-2.0"
] | null | null | null | from flask_script import Manager, Server
import os
from app import app
manager = Manager(app)
# use_reloader is active!
server = Server(host="0.0.0.0", port=8080, use_reloader=True)
manager.add_command("runserver", server)
if __name__ == '__main__':
manager.run()
| 19.428571 | 61 | 0.738971 | 41 | 272 | 4.609756 | 0.585366 | 0.031746 | 0.031746 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034188 | 0.139706 | 272 | 13 | 62 | 20.923077 | 0.773504 | 0.084559 | 0 | 0 | 0 | 0 | 0.097166 | 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 |
c866cd767a81c07a1c14b713358008b7bbae6ec9 | 231 | py | Python | tests/integration/test_updates.py | jarhill0/hnpy | 07642f50f377488e1b630507bf2a8c6b6f3182e8 | [
"MIT"
] | null | null | null | tests/integration/test_updates.py | jarhill0/hnpy | 07642f50f377488e1b630507bf2a8c6b6f3182e8 | [
"MIT"
] | null | null | null | tests/integration/test_updates.py | jarhill0/hnpy | 07642f50f377488e1b630507bf2a8c6b6f3182e8 | [
"MIT"
] | null | null | null | from .preparation import bm, hn
def test_updates():
with bm.use_cassette('test_updates'):
updates = hn.updates()
assert 16073931 in updates.items(limit=None)
assert 'coliveira' in updates.profiles(limit=None)
| 25.666667 | 54 | 0.709957 | 31 | 231 | 5.193548 | 0.612903 | 0.136646 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042328 | 0.181818 | 231 | 8 | 55 | 28.875 | 0.809524 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c06ff3dbdf76acf001bd952bbf990b1cecc09d5a | 46,342 | py | Python | model/searchVotes.py | voteview/WebVoteView | 9eadef289f2f0d163ed8192957a8b190e1dbd884 | [
"MIT"
] | 23 | 2018-03-05T16:05:33.000Z | 2021-12-24T16:09:18.000Z | model/searchVotes.py | JeffreyBLewis/WebVoteView | 9eadef289f2f0d163ed8192957a8b190e1dbd884 | [
"MIT"
] | 267 | 2016-06-22T23:53:19.000Z | 2018-01-03T20:16:09.000Z | model/searchVotes.py | JeffreyBLewis/WebVoteView | 9eadef289f2f0d163ed8192957a8b190e1dbd884 | [
"MIT"
] | 2 | 2016-08-11T20:50:34.000Z | 2016-10-28T00:59:23.000Z | # Imports
from datetime import date
from time import strptime
from bson.objectid import ObjectId
import pymongo
from pprint import pprint
import sys
import traceback
import time
import re
import json
import logQuota
from downloadVotes import waterfallText, waterfallQuestion
client = pymongo.MongoClient()
try:
dbConf ... | 36.176425 | 223 | 0.677053 | 6,271 | 46,342 | 4.985808 | 0.140488 | 0.006045 | 0.013241 | 0.016695 | 0.323099 | 0.272277 | 0.25766 | 0.235911 | 0.224461 | 0.213811 | 0 | 0.018272 | 0.192201 | 46,342 | 1,280 | 224 | 36.204688 | 0.816936 | 0.174831 | 0 | 0.404365 | 0 | 0.002567 | 0.223452 | 0.009713 | 0 | 0 | 0 | 0.001563 | 0 | 0 | null | null | 0.001284 | 0.016688 | null | null | 0.03466 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c074d29bb12dc1bb584e05f16eff593b6fe26505 | 4,377 | py | Python | cmp.py | jarethholt/polyTEOS10 | e034fb4d35bd02b2ea640daad79cb78c8b493a8c | [
"MIT"
] | null | null | null | cmp.py | jarethholt/polyTEOS10 | e034fb4d35bd02b2ea640daad79cb78c8b493a8c | [
"MIT"
] | null | null | null | cmp.py | jarethholt/polyTEOS10 | e034fb4d35bd02b2ea640daad79cb78c8b493a8c | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
"""Compressible equations of state.
This module provides two functions for the equation of state (EOS) of seawater
suitable for compressible ocean models. In both cases, the thermodynamic
variables are absolute salinity, conservative temperature, and pressure. In
comparison, the standard formula... | 33.669231 | 79 | 0.672607 | 594 | 4,377 | 4.922559 | 0.309764 | 0.033516 | 0.057456 | 0.008208 | 0.670999 | 0.670999 | 0.647059 | 0.623803 | 0.623803 | 0.623803 | 0 | 0.074207 | 0.236463 | 4,377 | 129 | 80 | 33.930233 | 0.800718 | 0.671236 | 0 | 0.5625 | 0 | 0 | 0.030229 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.125 | 0 | 0.25 | 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 |
c08bfe465d6e61697fb77dd00c5cda8499981793 | 1,074 | py | Python | ixnetwork_restpy/testplatform/sessions/ixnetwork/traffic/trafficitem/configelement/stack/ixP4_ETHERNET_template.py | Vibaswan/ixnetwork_restpy | 239fedc7050890746cbabd71ea1e91c68d9e5cad | [
"MIT"
] | null | null | null | ixnetwork_restpy/testplatform/sessions/ixnetwork/traffic/trafficitem/configelement/stack/ixP4_ETHERNET_template.py | Vibaswan/ixnetwork_restpy | 239fedc7050890746cbabd71ea1e91c68d9e5cad | [
"MIT"
] | null | null | null | ixnetwork_restpy/testplatform/sessions/ixnetwork/traffic/trafficitem/configelement/stack/ixP4_ETHERNET_template.py | Vibaswan/ixnetwork_restpy | 239fedc7050890746cbabd71ea1e91c68d9e5cad | [
"MIT"
] | null | null | null | from ixnetwork_restpy.base import Base
from ixnetwork_restpy.files import Files
class IxP4_ETHERNET(Base):
__slots__ = ()
_SDM_NAME = 'ixP4_ETHERNET'
_SDM_ATT_MAP = {
'dstAddr': 'ixP4_ETHERNET.eTHERNET.dstAddr',
'srcAddr': 'ixP4_ETHERNET.eTHERNET.srcAddr',
'etherType': 'ixP4_ETHERN... | 31.588235 | 84 | 0.703911 | 126 | 1,074 | 5.611111 | 0.238095 | 0.101839 | 0.134371 | 0.07355 | 0.415842 | 0.415842 | 0.415842 | 0.415842 | 0.415842 | 0.415842 | 0 | 0.006936 | 0.1946 | 1,074 | 33 | 85 | 32.545455 | 0.810405 | 0 | 0 | 0.230769 | 0 | 0 | 0.140596 | 0.085661 | 0 | 0 | 0 | 0 | 0 | 1 | 0.192308 | false | 0 | 0.192308 | 0.038462 | 0.692308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
c0a50c17b08e5b64e63a2f635dde276d201f62d2 | 1,038 | py | Python | examples/icme2017/evaluation/yael_v438/test/test_kmeans_alt_dist.py | htyao89/ICME2017 | bc302f7972a0791c6042a9c43bc3fe4c4fb13282 | [
"BSD-2-Clause"
] | 4 | 2019-01-07T17:39:53.000Z | 2020-02-26T03:20:18.000Z | MotionAnalysis/SVM_model/function/yael_v438/test/test_kmeans_alt_dist.py | BumbleBee0819/Estimating_mechanical_properties_of_cloth | 547bba3544bd686a7bac39c9985d89fcdf171642 | [
"MIT"
] | 1 | 2020-09-24T07:42:13.000Z | 2020-09-24T07:42:13.000Z | examples/icme2017/evaluation/yael_v438/test/test_kmeans_alt_dist.py | htyao89/ICME2017 | bc302f7972a0791c6042a9c43bc3fe4c4fb13282 | [
"BSD-2-Clause"
] | 2 | 2019-08-12T20:49:39.000Z | 2020-02-22T16:39:27.000Z |
import time
from yael import yael
yael.common_srandom(12345)
d=16
n=1024
k=4
pts = yael.fvec_new_rand(d * n)
pts = yael.fvec.acquirepointer(pts)
cents = yael.fvec(d * k)
nt = 1
assign = yael.ivec(n)
def d_chi2(a, b):
return (a - b) ** 2 / (a + b)
print "clustering %d uniform %dD pts in %d centroids" % (n... | 21.625 | 94 | 0.55395 | 180 | 1,038 | 3.138889 | 0.333333 | 0.061947 | 0.021239 | 0.035398 | 0.173451 | 0.173451 | 0.173451 | 0.173451 | 0.173451 | 0.173451 | 0 | 0.05305 | 0.273603 | 1,038 | 47 | 95 | 22.085106 | 0.696286 | 0.026975 | 0 | 0.08 | 0 | 0 | 0.11718 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.08 | null | null | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c0aaf9225fe3dde1cb13ba4bb0067cc7e55e98f9 | 333 | py | Python | lab4_funkcje/4.4.py | Damian9449/Python | dc9091e15356733821bbb6a768b7d5e428640340 | [
"MIT"
] | 1 | 2017-11-15T13:03:40.000Z | 2017-11-15T13:03:40.000Z | lab4_funkcje/4.4.py | Damian9449/Python | dc9091e15356733821bbb6a768b7d5e428640340 | [
"MIT"
] | null | null | null | lab4_funkcje/4.4.py | Damian9449/Python | dc9091e15356733821bbb6a768b7d5e428640340 | [
"MIT"
] | null | null | null | #!/usr/bin/python
def Fibonaci_iter(n):
if (n == 0):
return 0
elif (n == 1):
return 1
elif (n > 1):
fn = 0
fn1 = 1
fn2 = 1
while n > 2:
fn = fn1 + fn2
fn1 = fn2
fn2 = fn
n = n - 1
return fn
print(Fibo... | 15.857143 | 26 | 0.378378 | 45 | 333 | 2.755556 | 0.422222 | 0.048387 | 0.096774 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.110429 | 0.510511 | 333 | 21 | 27 | 15.857143 | 0.650307 | 0.048048 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0 | 0 | 0.25 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c0ad0f7e0190f3e60427e22cfcca7bd628a91e4b | 1,637 | py | Python | thelma/resources/chemicalstructure.py | fogathmann/TheLMA | ac330a0005da4fea2f1387da9ff9938611ad1481 | [
"MIT"
] | 1 | 2020-07-12T22:47:58.000Z | 2020-07-12T22:47:58.000Z | thelma/resources/chemicalstructure.py | papagr/TheLMA | d2dc7a478ee5d24ccf3cc680888e712d482321d0 | [
"MIT"
] | null | null | null | thelma/resources/chemicalstructure.py | papagr/TheLMA | d2dc7a478ee5d24ccf3cc680888e712d482321d0 | [
"MIT"
] | 1 | 2020-07-12T22:40:36.000Z | 2020-07-12T22:40:36.000Z | """
This file is part of the TheLMA (THe Laboratory Management Application) project.
See LICENSE.txt for licensing, CONTRIBUTORS.txt for contributor information.
Chemical structure resource.
"""
from everest.resources.base import Member
from everest.resources.descriptors import attribute_alias
from everest.resources.d... | 39.926829 | 80 | 0.763592 | 162 | 1,637 | 7.487654 | 0.351852 | 0.045342 | 0.08244 | 0.102226 | 0.189613 | 0.075845 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166768 | 1,637 | 40 | 81 | 40.925 | 0.889296 | 0.114233 | 0 | 0 | 0 | 0 | 0.151872 | 0.067268 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.321429 | 0 | 0.785714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c0ad7d76e09ffcf0964b96c94e7de2627d1176f8 | 2,474 | py | Python | trakario/models.py | trakario/trakario-backend | 50e05b5124e415955dc99cd4cdfe0c82fd208269 | [
"MIT"
] | 3 | 2021-01-12T17:02:34.000Z | 2021-09-18T19:13:06.000Z | trakario/models.py | trakario/trakario-backend | 50e05b5124e415955dc99cd4cdfe0c82fd208269 | [
"MIT"
] | null | null | null | trakario/models.py | trakario/trakario-backend | 50e05b5124e415955dc99cd4cdfe0c82fd208269 | [
"MIT"
] | null | null | null | from datetime import datetime
from enum import Enum
from typing import Optional, List, Dict
from pydantic import BaseModel
from pydantic.types import conint, UUID4
from tortoise import fields, models
from tortoise.contrib.pydantic import pydantic_model_creator
class ApplicantDB(models.Model):
id = fields.IntFiel... | 27.186813 | 78 | 0.687146 | 256 | 2,474 | 6.535156 | 0.328125 | 0.059175 | 0.035864 | 0.028691 | 0.041841 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00462 | 0.212611 | 2,474 | 90 | 79 | 27.488889 | 0.854209 | 0 | 0 | 0 | 0 | 0 | 0.090137 | 0.031124 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028169 | false | 0 | 0.098592 | 0.014085 | 0.591549 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.