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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a05a3cedd57bb1bcbd59d6a03c4afd9c8cb77874 | 1,770 | py | Python | B2G/gecko/toolkit/components/telemetry/gen-histogram-bucket-ranges.py | wilebeast/FireFox-OS | 43067f28711d78c429a1d6d58c77130f6899135f | [
"Apache-2.0"
] | 3 | 2015-08-31T15:24:31.000Z | 2020-04-24T20:31:29.000Z | B2G/gecko/toolkit/components/telemetry/gen-histogram-bucket-ranges.py | wilebeast/FireFox-OS | 43067f28711d78c429a1d6d58c77130f6899135f | [
"Apache-2.0"
] | null | null | null | B2G/gecko/toolkit/components/telemetry/gen-histogram-bucket-ranges.py | wilebeast/FireFox-OS | 43067f28711d78c429a1d6d58c77130f6899135f | [
"Apache-2.0"
] | 3 | 2015-07-29T07:17:15.000Z | 2020-11-04T06:55:37.000Z | #!/usr/bin/env python
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
# Write out detailed histogram information, including the ranges of the
# buckets specified by eac... | 32.181818 | 83 | 0.610734 | 205 | 1,770 | 5.156098 | 0.536585 | 0.05298 | 0.034059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011015 | 0.281921 | 1,770 | 54 | 84 | 32.777778 | 0.820614 | 0.233333 | 0 | 0 | 0 | 0 | 0.088213 | 0.019274 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.111111 | null | null | 0.027778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a062417d591336f62bb06f126390d89ecbc41d5f | 3,688 | py | Python | oauth2_getAllUsers.py | misterhay/GoogleAppsProvisioning | bc2bd95b58f41e7064d0ffc55923af7ca21439e7 | [
"Unlicense"
] | 1 | 2019-11-06T15:16:43.000Z | 2019-11-06T15:16:43.000Z | oauth2_getAllUsers.py | misterhay/GoogleAppsProvisioning | bc2bd95b58f41e7064d0ffc55923af7ca21439e7 | [
"Unlicense"
] | null | null | null | oauth2_getAllUsers.py | misterhay/GoogleAppsProvisioning | bc2bd95b58f41e7064d0ffc55923af7ca21439e7 | [
"Unlicense"
] | null | null | null | #import some things we need
import httplib2
from oauth2client.client import SignedJwtAssertionCredentials #included with the Google Apps Directory API
from apiclient.discovery import build
import csv
def downloadUsers(domain, account, customerId):
superAdmin = 'is@' + domain
serviceAccount = account + '@develo... | 39.655914 | 240 | 0.670282 | 409 | 3,688 | 6.03912 | 0.391198 | 0.041296 | 0.02915 | 0.034008 | 0.124292 | 0.105263 | 0.063158 | 0 | 0 | 0 | 0 | 0.006169 | 0.208785 | 3,688 | 92 | 241 | 40.086957 | 0.840302 | 0.159165 | 0 | 0 | 0 | 0.022222 | 0.215564 | 0.013417 | 0 | 0 | 0 | 0 | 0.044444 | 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 |
a062d40c8b9b1993487fafe224a077f3207f3c0e | 31,897 | py | Python | BlackJack/blackjack.py | MarkoJereb/SchoolProjects | 4b2e9642426975f7b7f28b5d3ee2bce7a0be4f2c | [
"MIT"
] | null | null | null | BlackJack/blackjack.py | MarkoJereb/SchoolProjects | 4b2e9642426975f7b7f28b5d3ee2bce7a0be4f2c | [
"MIT"
] | null | null | null | BlackJack/blackjack.py | MarkoJereb/SchoolProjects | 4b2e9642426975f7b7f28b5d3ee2bce7a0be4f2c | [
"MIT"
] | null | null | null | import random
import tkinter
import math
class Blackjack():
def __init__(self, master):
#Menu
glavniMenu = tkinter.Menu(master)
master.config(menu = glavniMenu)
menuBJ = tkinter.Menu(glavniMenu)
glavniMenu.add_cascade(label = 'Blackjack', menu=menuBJ)
menuBJ.add_cascade(label = 'New Game', command = ... | 48.110106 | 429 | 0.704361 | 4,047 | 31,897 | 5.527551 | 0.118606 | 0.060796 | 0.05865 | 0.065802 | 0.732857 | 0.692803 | 0.678543 | 0.657756 | 0.642468 | 0.623335 | 0 | 0.041843 | 0.15409 | 31,897 | 662 | 430 | 48.182779 | 0.787229 | 0.145155 | 0 | 0.658314 | 0 | 0 | 0.132432 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022779 | false | 0.006834 | 0.006834 | 0 | 0.05467 | 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 |
a06867aa5ab2522751ea7191695bf526ce9eef00 | 561 | py | Python | spectrogen/spectrogen_main/templatetags/ms_to_time.py | SteelPh0enix/TAIProject | 1cb4a341470f075d739df161dc6a83aaa5a461d9 | [
"MIT"
] | null | null | null | spectrogen/spectrogen_main/templatetags/ms_to_time.py | SteelPh0enix/TAIProject | 1cb4a341470f075d739df161dc6a83aaa5a461d9 | [
"MIT"
] | 10 | 2021-03-18T22:37:46.000Z | 2022-03-12T00:11:43.000Z | spectrogen/spectrogen_main/templatetags/ms_to_time.py | SteelPh0enix/TAIProject | 1cb4a341470f075d739df161dc6a83aaa5a461d9 | [
"MIT"
] | null | null | null | from django import template
register = template.Library()
@register.filter()
def mstotime(milliseconds):
seconds = int(int(milliseconds) / 1000)
minutes = int(int(seconds) / 60)
hours = int(int(minutes) / 60)
final_time_string = str(seconds) + 's'
if minutes > 0:
final_time_string = str(mi... | 28.05 | 68 | 0.670232 | 71 | 561 | 5.126761 | 0.380282 | 0.148352 | 0.247253 | 0.148352 | 0.104396 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031746 | 0.213904 | 561 | 20 | 69 | 28.05 | 0.793651 | 0 | 0 | 0.125 | 0 | 0 | 0.005338 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.0625 | 0.0625 | 0.3125 | 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 |
a06b3c596e54a6c9fc11931b46437631ac49d97d | 2,557 | py | Python | run_examples/main.py | vmeta42/metaai | 7800549f34bc9c041a07bddfb8d4c6e72248961c | [
"Apache-2.0"
] | null | null | null | run_examples/main.py | vmeta42/metaai | 7800549f34bc9c041a07bddfb8d4c6e72248961c | [
"Apache-2.0"
] | null | null | null | run_examples/main.py | vmeta42/metaai | 7800549f34bc9c041a07bddfb8d4c6e72248961c | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python 3.7
#-*-coding:utf-8-*-
from torch import nn
import argparse
from progressbar import *
from torch.optim import Adam
import pandas as pd
import numpy as np
from my_tsp.datasets import data_processing
from my_tsp.trainer import train
def main(args):
# 读取数据
data_path = '../data/2-2.csv'
dS... | 31.182927 | 100 | 0.668752 | 355 | 2,557 | 4.608451 | 0.380282 | 0.099022 | 0.187042 | 0.036675 | 0.086797 | 0.086797 | 0.086797 | 0 | 0 | 0 | 0 | 0.018466 | 0.174032 | 2,557 | 81 | 101 | 31.567901 | 0.756155 | 0.09034 | 0 | 0 | 0 | 0 | 0.185089 | 0.02384 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02439 | false | 0 | 0.195122 | 0 | 0.219512 | 0.02439 | 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 |
a07f469a5674ef1c38ea36e575eb451a8973deb8 | 562 | py | Python | tests/test_i2v/test_pretrained.py | test2021413/doc_dev | 7a90edaa415e2d0e7db160dc30eae83732f248e0 | [
"Apache-2.0"
] | null | null | null | tests/test_i2v/test_pretrained.py | test2021413/doc_dev | 7a90edaa415e2d0e7db160dc30eae83732f248e0 | [
"Apache-2.0"
] | null | null | null | tests/test_i2v/test_pretrained.py | test2021413/doc_dev | 7a90edaa415e2d0e7db160dc30eae83732f248e0 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
# 2021/8/2 @ tongshiwei
import pytest
from EduNLP import get_pretrained_i2v
from EduNLP.Vector.t2v import PRETRAINED_MODELS
from EduNLP.I2V.i2v import MODELS
from EduNLP.I2V import D2V
def test_pretrained_i2v(tmp_path):
PRETRAINED_MODELS["test"] = ["http://base.ustc.edu.cn/data/model_zoo/EduNLP/d2... | 24.434783 | 105 | 0.708185 | 84 | 562 | 4.547619 | 0.440476 | 0.170157 | 0.167539 | 0.099476 | 0.109948 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048729 | 0.160142 | 562 | 22 | 106 | 25.545455 | 0.760593 | 0.062278 | 0 | 0.142857 | 0 | 0.071429 | 0.181298 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.357143 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
a0855a5eb34a5516ea5ea6c00e548750a4ad6346 | 1,478 | py | Python | tests/test_db.py | cdaguin/table_rappel | f7471c82b341d6cf1616409032025b02e065d512 | [
"MIT"
] | null | null | null | tests/test_db.py | cdaguin/table_rappel | f7471c82b341d6cf1616409032025b02e065d512 | [
"MIT"
] | null | null | null | tests/test_db.py | cdaguin/table_rappel | f7471c82b341d6cf1616409032025b02e065d512 | [
"MIT"
] | null | null | null | import glob
import unittest
import os
from collections import namedtuple
from rappel import db
Result = namedtuple('response', 'word value tries found time')
class DBTestCreation(unittest.TestCase):
def setUp(self):
self.db_file_name = "temp/tu.db"
# do some house cleaning
if glob.glob(self.db_file_name):
... | 23.460317 | 69 | 0.701624 | 235 | 1,478 | 4.234043 | 0.255319 | 0.084422 | 0.130653 | 0.182915 | 0.494472 | 0.442211 | 0.442211 | 0.442211 | 0.319598 | 0.319598 | 0 | 0.026814 | 0.142084 | 1,478 | 63 | 70 | 23.460317 | 0.757886 | 0.064276 | 0 | 0.225 | 0 | 0 | 0.084119 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.15 | false | 0 | 0.125 | 0 | 0.325 | 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 |
a08821d057a5b62ae85608bcbfc915b89fffe6d1 | 507 | py | Python | def_design.py | rathorearvind19/fastSCA | 4fabc5088663e3bb6db498840c061f18dadaefa0 | [
"MIT"
] | 4 | 2020-04-01T08:04:08.000Z | 2021-11-23T13:50:02.000Z | def_design.py | rathorearvind19/fastSCA | 4fabc5088663e3bb6db498840c061f18dadaefa0 | [
"MIT"
] | null | null | null | def_design.py | rathorearvind19/fastSCA | 4fabc5088663e3bb6db498840c061f18dadaefa0 | [
"MIT"
] | 1 | 2021-11-23T13:53:04.000Z | 2021-11-23T13:53:04.000Z |
idir="<path to public/template database>/";
odir=idir+"output/";
public_dir='DPA_contest2_public_base_diff_vcc_a128_2009_12_23/'
template_dir='DPA_contest2_template_base_diff_vcc_a128_2009_12_23/'
template_index_file=idir+'DPA_contest2_template_base_index_file'
public_index_file=idir+'DPA_contest2_public_base_inde... | 33.8 | 67 | 0.879684 | 79 | 507 | 5.037975 | 0.278481 | 0.110553 | 0.070352 | 0.105528 | 0.276382 | 0.155779 | 0.155779 | 0.155779 | 0 | 0 | 0 | 0.057377 | 0.037475 | 507 | 14 | 68 | 36.214286 | 0.758197 | 0 | 0 | 0 | 0 | 0 | 0.549407 | 0.466403 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a0882fd56c256819708ef9b4afb3b01914fbc370 | 2,247 | py | Python | instagram/models.py | samwel-chege/Instagram | 859ef26a3a90a403cc69d5165b3b80513a3cfa70 | [
"MIT"
] | null | null | null | instagram/models.py | samwel-chege/Instagram | 859ef26a3a90a403cc69d5165b3b80513a3cfa70 | [
"MIT"
] | null | null | null | instagram/models.py | samwel-chege/Instagram | 859ef26a3a90a403cc69d5165b3b80513a3cfa70 | [
"MIT"
] | null | null | null | from django.db import models
from django.db.models.deletion import CASCADE
from django.contrib.auth.models import User
from django.dispatch import receiver
from django.db.models.signals import post_save
# Create your models here.
class Profile(models.Model):
user = models.OneToOneField(User,on_delete=models.CASCA... | 30.780822 | 100 | 0.684468 | 271 | 2,247 | 5.523985 | 0.321033 | 0.0334 | 0.024048 | 0.042084 | 0.268537 | 0.057448 | 0.057448 | 0.057448 | 0 | 0 | 0 | 0.00564 | 0.210948 | 2,247 | 72 | 101 | 31.208333 | 0.838691 | 0.010681 | 0 | 0.150943 | 0 | 0 | 0.030167 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.188679 | false | 0.018868 | 0.09434 | 0.09434 | 0.735849 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a08bb9bbfa7c49ba90d34e7beaba10562c5b395f | 9,043 | py | Python | scripts/labtainer-instructor/bin/regresstest.py | jakuta-tech/Labtainers | f674204022ad5d13ad6bccaf02a14a283470d23f | [
"Apache-2.0"
] | null | null | null | scripts/labtainer-instructor/bin/regresstest.py | jakuta-tech/Labtainers | f674204022ad5d13ad6bccaf02a14a283470d23f | [
"Apache-2.0"
] | null | null | null | scripts/labtainer-instructor/bin/regresstest.py | jakuta-tech/Labtainers | f674204022ad5d13ad6bccaf02a14a283470d23f | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
'''
This software was created by United States Government employees at
The Center for Cybersecurity and Cyber Operations (C3O)
at the Naval Postgraduate School NPS. Please note that within the
United States, copyright protection is not available for any works
created by United States Govern... | 40.918552 | 126 | 0.658631 | 1,089 | 9,043 | 5.370983 | 0.277319 | 0.015387 | 0.015387 | 0.012823 | 0.186015 | 0.144982 | 0.113866 | 0.104633 | 0.104633 | 0.104633 | 0 | 0.003102 | 0.251465 | 9,043 | 220 | 127 | 41.104545 | 0.860984 | 0.087803 | 0 | 0.253333 | 0 | 0 | 0.163907 | 0.015646 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.013333 | 0.06 | null | null | 0.026667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a08deec5f304995e89541781a1db642f6ec62973 | 193 | py | Python | getNoZeroIntegers.py | hazardinho/LeetcodeSolutions | 3f7fee882c1cdc83ecf7c9fd05d2a7f1afb130e6 | [
"MIT"
] | 1 | 2020-05-21T09:29:48.000Z | 2020-05-21T09:29:48.000Z | getNoZeroIntegers.py | Ich1goSan/LeetcodeSolutions | 3f7fee882c1cdc83ecf7c9fd05d2a7f1afb130e6 | [
"MIT"
] | null | null | null | getNoZeroIntegers.py | Ich1goSan/LeetcodeSolutions | 3f7fee882c1cdc83ecf7c9fd05d2a7f1afb130e6 | [
"MIT"
] | null | null | null | def getNoZeroIntegers(self, n: int) -> List[int]:
for i in range(1, n):
a = i
b = n - i
if "0" in str(a) or "0" in str(b):
continue
return [a, b] | 27.571429 | 49 | 0.450777 | 32 | 193 | 2.71875 | 0.59375 | 0.068966 | 0.137931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026087 | 0.404145 | 193 | 7 | 50 | 27.571429 | 0.730435 | 0 | 0 | 0 | 0 | 0 | 0.010309 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a099e73d1f7c6a134a33158e673ee6b2049803de | 2,010 | py | Python | sublime2/User/syntax_highlighting.py | joewalnes/dotfiles-1 | 64b27e560da7f112600d8d590a07028c604acc91 | [
"MIT"
] | 1 | 2021-01-05T12:17:04.000Z | 2021-01-05T12:17:04.000Z | sublime2/User/syntax_highlighting.py | joewalnes/dotfiles-1 | 64b27e560da7f112600d8d590a07028c604acc91 | [
"MIT"
] | null | null | null | sublime2/User/syntax_highlighting.py | joewalnes/dotfiles-1 | 64b27e560da7f112600d8d590a07028c604acc91 | [
"MIT"
] | null | null | null | import os
from fnmatch import fnmatch
import sublime
import sublime_plugin
class DetectFileTypeCommand(sublime_plugin.EventListener):
"""
Detects current file type if the file's extension isn't
Modified for Ruby on Rails and Sublime Text 2 Original pastie
here: http://pastie.org/private/kz... | 36.545455 | 69 | 0.563184 | 225 | 2,010 | 4.951111 | 0.395556 | 0.105027 | 0.140036 | 0.106822 | 0.337522 | 0.337522 | 0.337522 | 0.337522 | 0.337522 | 0.197487 | 0 | 0.003631 | 0.314925 | 2,010 | 54 | 70 | 37.222222 | 0.805374 | 0.013433 | 0 | 0.219512 | 0 | 0 | 0.22029 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.097561 | null | null | 0.04878 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a09bb6bffb60a018df38dd1525ee3b09cbb0d0e2 | 474 | py | Python | hrwros_ws/src/hrwros/hrwros_week1/scripts/test_publisher.py | AshfakYeafi/ros | 7895302251088b7945e359f60a9c617e5170a72e | [
"MIT"
] | null | null | null | hrwros_ws/src/hrwros/hrwros_week1/scripts/test_publisher.py | AshfakYeafi/ros | 7895302251088b7945e359f60a9c617e5170a72e | [
"MIT"
] | null | null | null | hrwros_ws/src/hrwros/hrwros_week1/scripts/test_publisher.py | AshfakYeafi/ros | 7895302251088b7945e359f60a9c617e5170a72e | [
"MIT"
] | null | null | null | #!/usr/bin/env python2
import rospy
from std_msgs.msg import String
def simplePublisher():
simple_publisher=rospy.Publisher("ROS_chudi",String,queue_size=10)
rospy.init_node("test_pub",anonymous=False)
rate=rospy.Rate(10)
txt="ROS er bou ra chudi"
while not rospy.is_shutdown():
simple_pub... | 23.7 | 70 | 0.694093 | 61 | 474 | 5.131148 | 0.721311 | 0.095847 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013123 | 0.196203 | 474 | 20 | 71 | 23.7 | 0.808399 | 0.044304 | 0 | 0 | 0 | 0 | 0.09713 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0.066667 | 0.133333 | 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 |
a0a12fe42046086c287018478edb7b62e5d7ffbb | 2,434 | py | Python | src/mjotool/sheets/majirodata.py | trigger-segfault/majiro-py | e2e237cc726da1ebaf1c9a5ce409c856c8dce17f | [
"MIT"
] | 2 | 2021-04-21T11:30:45.000Z | 2022-02-15T05:26:47.000Z | src/mjotool/sheets/majirodata.py | trigger-segfault/majiro-py | e2e237cc726da1ebaf1c9a5ce409c856c8dce17f | [
"MIT"
] | 3 | 2021-10-15T00:10:49.000Z | 2021-12-27T10:30:13.000Z | src/mjotool/sheets/majirodata.py | trigger-segfault/majiro-py | e2e237cc726da1ebaf1c9a5ce409c856c8dce17f | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
#-*- coding: utf-8 -*-
"""
"""
__version__ = '0.1.0'
__date__ = '2021-05-03'
__author__ = 'Robert Jordan'
__all__ = ['MajiroData', 'MajiroData_Syscalls', 'MajiroData_Groups', 'MajiroData_Functions', 'MajiroData_Variables', 'MajiroData_Locals', 'MajiroData_Callbacks', 'MajiroData_Games', 'Sh... | 39.901639 | 296 | 0.741167 | 242 | 2,434 | 7.268595 | 0.347107 | 0.059693 | 0.099488 | 0.111427 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033913 | 0.079293 | 2,434 | 60 | 297 | 40.566667 | 0.751004 | 0.149137 | 0 | 0.241379 | 0 | 0 | 0.187467 | 0.023567 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.241379 | 0.103448 | 0 | 0.344828 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a0a3c1c9d2848daacce3d03b46595b245b474a13 | 1,675 | py | Python | resources/word.py | assem-ch/arabicstemmer_api | 8ac13f6e469eec0bffa745ffdc2eafd0fec7dba1 | [
"MIT"
] | 8 | 2021-08-08T22:43:02.000Z | 2021-11-23T06:50:56.000Z | resources/word.py | assem-ch/arabicstemmer_api | 8ac13f6e469eec0bffa745ffdc2eafd0fec7dba1 | [
"MIT"
] | 1 | 2017-12-16T10:46:21.000Z | 2017-12-16T10:46:21.000Z | resources/word.py | assem-ch/arabicstemmer_api | 8ac13f6e469eec0bffa745ffdc2eafd0fec7dba1 | [
"MIT"
] | 2 | 2018-03-22T10:21:53.000Z | 2018-08-25T20:53:28.000Z | from flask_restful import Resource, reqparse
from flask_jwt import jwt_required
from models.word import WordModel
class Word(Resource):
parser = reqparse.RequestParser()
parser.add_argument('stem_id',
type=int,
required=True,
help="Every word needs a stem."
)
#@jwt_required()
... | 25.769231 | 96 | 0.599403 | 208 | 1,675 | 4.634615 | 0.365385 | 0.112033 | 0.072614 | 0.078838 | 0.315353 | 0.235477 | 0.206432 | 0.145228 | 0.145228 | 0.105809 | 0 | 0.010033 | 0.28597 | 1,675 | 64 | 97 | 26.171875 | 0.795987 | 0.054925 | 0 | 0.302326 | 0 | 0 | 0.109068 | 0 | 0 | 0 | 0 | 0.015625 | 0 | 1 | 0.116279 | false | 0 | 0.069767 | 0.023256 | 0.44186 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
a0a59223aceb7c1dcb8cec5035e405b7c3a4155b | 657 | py | Python | examples/GCN/GCN_DGL.py | xiezhq-hermann/graphiler | 4d3dd2d2e0a095e3e834be3a34f402bf43e4b4fa | [
"Apache-2.0"
] | 17 | 2022-02-09T16:43:15.000Z | 2022-03-30T07:05:40.000Z | examples/GCN/GCN_DGL.py | xiezhq-hermann/graphiler | 4d3dd2d2e0a095e3e834be3a34f402bf43e4b4fa | [
"Apache-2.0"
] | 1 | 2022-02-12T08:24:21.000Z | 2022-02-12T08:24:21.000Z | examples/GCN/GCN_DGL.py | xiezhq-hermann/graphiler | 4d3dd2d2e0a095e3e834be3a34f402bf43e4b4fa | [
"Apache-2.0"
] | 2 | 2022-02-09T23:51:42.000Z | 2022-03-10T16:21:27.000Z | import torch
import torch.nn as nn
import torch.nn.functional as F
from dgl.nn.pytorch.conv import GraphConv
class GCN_DGL(nn.Module):
def __init__(self, in_dim, hidden_dim, out_dim):
super(GCN_DGL, self).__init__()
self.layer1 = GraphConv(in_dim, hidden_dim, norm='right',
... | 32.85 | 81 | 0.630137 | 92 | 657 | 4.25 | 0.402174 | 0.084399 | 0.066496 | 0.071611 | 0.265985 | 0.265985 | 0.265985 | 0.265985 | 0.265985 | 0.265985 | 0 | 0.008299 | 0.266362 | 657 | 19 | 82 | 34.578947 | 0.802905 | 0 | 0 | 0.133333 | 0 | 0 | 0.015221 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.266667 | 0 | 0.533333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a0a69fc1cf77f008f9b78e758793d358d7e21396 | 1,100 | py | Python | tests/support/dtos.py | juntossomosmais/django-stomp | 65e7cb86f8f6e2336a2739df8f33f985c9b4c792 | [
"MIT"
] | 32 | 2019-06-10T13:24:11.000Z | 2021-12-17T21:00:41.000Z | tests/support/dtos.py | juntossomosmais/django-stomp | 65e7cb86f8f6e2336a2739df8f33f985c9b4c792 | [
"MIT"
] | 26 | 2019-12-17T12:51:00.000Z | 2022-02-16T16:13:14.000Z | tests/support/dtos.py | juntossomosmais/django-stomp | 65e7cb86f8f6e2336a2739df8f33f985c9b4c792 | [
"MIT"
] | 1 | 2021-09-11T03:55:30.000Z | 2021-09-11T03:55:30.000Z | from dataclasses import dataclass
from typing import Dict
from typing import Optional
@dataclass(frozen=True)
class CurrentDestinationStatus:
number_of_pending_messages: Optional[int]
number_of_consumers: int
messages_enqueued: int
messages_dequeued: int
@dataclass(frozen=True)
class ConsumerStatus:... | 22.916667 | 49 | 0.752727 | 127 | 1,100 | 6.307087 | 0.377953 | 0.09613 | 0.094881 | 0.11985 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 1,100 | 47 | 50 | 23.404255 | 0.89 | 0 | 0 | 0.102564 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.076923 | 0 | 0.897436 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a0b50ca17bdac4f7f15ddc740e06abc7c88eb579 | 1,380 | py | Python | examples/couchy/models.py | billyrrr/werkzeug | a220671d66755a94630a212378754bb432811158 | [
"BSD-3-Clause"
] | 1 | 2020-08-08T21:54:22.000Z | 2020-08-08T21:54:22.000Z | examples/couchy/models.py | billyrrr/werkzeug | a220671d66755a94630a212378754bb432811158 | [
"BSD-3-Clause"
] | 1 | 2019-05-11T16:26:21.000Z | 2019-05-11T16:26:21.000Z | examples/couchy/models.py | billyrrr/werkzeug | a220671d66755a94630a212378754bb432811158 | [
"BSD-3-Clause"
] | 1 | 2021-01-14T08:58:12.000Z | 2021-01-14T08:58:12.000Z | from datetime import datetime
from couchdb.mapping import BooleanField
from couchdb.mapping import DateTimeField
from couchdb.mapping import Document
from couchdb.mapping import TextField
from .utils import get_random_uid
from .utils import url_for
class URL(Document):
target = TextField()
public = BooleanF... | 27.058824 | 65 | 0.578261 | 168 | 1,380 | 4.625 | 0.369048 | 0.032175 | 0.092664 | 0.123552 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001079 | 0.328261 | 1,380 | 50 | 66 | 27.6 | 0.837109 | 0 | 0 | 0.04878 | 0 | 0 | 0.014493 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.121951 | false | 0 | 0.170732 | 0.097561 | 0.560976 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a0bd06b34eff31a314fef4c79c8900b6c7d6a326 | 547 | py | Python | bcproject/bcapp/migrations/0001_initial.py | imajic-unimelb/backend_challenge | 3de5c43ec54161cf2cae7a0dc0466d50b7f84aef | [
"MIT"
] | null | null | null | bcproject/bcapp/migrations/0001_initial.py | imajic-unimelb/backend_challenge | 3de5c43ec54161cf2cae7a0dc0466d50b7f84aef | [
"MIT"
] | null | null | null | bcproject/bcapp/migrations/0001_initial.py | imajic-unimelb/backend_challenge | 3de5c43ec54161cf2cae7a0dc0466d50b7f84aef | [
"MIT"
] | null | null | null | # Generated by Django 3.2.6 on 2021-08-09 13:42
import django.contrib.gis.db.models.fields
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Routes',
fields=... | 23.782609 | 99 | 0.61426 | 56 | 547 | 5.982143 | 0.696429 | 0.077612 | 0.095522 | 0.107463 | 0.179104 | 0.179104 | 0 | 0 | 0 | 0 | 0 | 0.047619 | 0.270567 | 547 | 22 | 100 | 24.863636 | 0.79198 | 0.082267 | 0 | 0 | 1 | 0 | 0.044 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a0c32ab40b2b0547e66fa8a42d5f02149f46739d | 587 | py | Python | mode/examples/Demos/Graphics/Particles/particle_system.py | kazimuth/processing.py | 9aa1ddf7ebd4efed73a8c2a1ecf6d2c167b1faf1 | [
"Apache-2.0"
] | 4 | 2016-08-09T14:14:36.000Z | 2021-12-10T07:51:35.000Z | mode/examples/Demos/Graphics/Particles/particle_system.py | kazimuth/processing.py | 9aa1ddf7ebd4efed73a8c2a1ecf6d2c167b1faf1 | [
"Apache-2.0"
] | null | null | null | mode/examples/Demos/Graphics/Particles/particle_system.py | kazimuth/processing.py | 9aa1ddf7ebd4efed73a8c2a1ecf6d2c167b1faf1 | [
"Apache-2.0"
] | null | null | null | from particle import Particle
class ParticleSystem:
def __init__(self, n, sprite):
self.particles = []
self.particleShape = createShape(PShape.GROUP)
for i in range(n):
p = Particle(sprite)
self.particles.append(p)
self.particleShape.addChild(p.getShape... | 22.576923 | 54 | 0.565588 | 68 | 587 | 4.823529 | 0.470588 | 0.158537 | 0.115854 | 0.060976 | 0.115854 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.330494 | 587 | 25 | 55 | 23.48 | 0.834606 | 0 | 0 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.055556 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
39ffd7007d62333bf8af70b164337857a46aafdc | 753 | py | Python | uint.py | aselker/ld48_computer_1 | 50e07cc7089200814b20bff408a5cd778995f9cd | [
"MIT"
] | 6 | 2021-04-26T14:58:26.000Z | 2021-06-05T16:09:05.000Z | uint.py | aselker/ld48_computer_1 | 50e07cc7089200814b20bff408a5cd778995f9cd | [
"MIT"
] | null | null | null | uint.py | aselker/ld48_computer_1 | 50e07cc7089200814b20bff408a5cd778995f9cd | [
"MIT"
] | null | null | null | import math
class UintN:
def __init__(self, number, n):
self.n = n
assert 0 <= number and number < 2 ** self.n
self.number = number
def bits(self):
number = self.number
bits = [None] * self.n
for i in range(self.n):
bits[self.n-1-i] = bool(number % ... | 22.818182 | 72 | 0.540505 | 107 | 753 | 3.64486 | 0.317757 | 0.089744 | 0.061538 | 0.082051 | 0.194872 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019531 | 0.320053 | 753 | 32 | 73 | 23.53125 | 0.742188 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043478 | 1 | 0.217391 | false | 0 | 0.043478 | 0.043478 | 0.478261 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2603f02b8233d88bfc2593b287dc8b6edb290ca8 | 354 | py | Python | graduated_site/migrations/0037_auto_20191220_1847.py | vbacaksiz/KTU-MEBSIS | e1afaa07a16e00ff9be3f39b728603b64f08590e | [
"MIT"
] | null | null | null | graduated_site/migrations/0037_auto_20191220_1847.py | vbacaksiz/KTU-MEBSIS | e1afaa07a16e00ff9be3f39b728603b64f08590e | [
"MIT"
] | null | null | null | graduated_site/migrations/0037_auto_20191220_1847.py | vbacaksiz/KTU-MEBSIS | e1afaa07a16e00ff9be3f39b728603b64f08590e | [
"MIT"
] | null | null | null | # Generated by Django 3.0 on 2019-12-20 18:47
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('graduated_site', '0036_company'),
]
operations = [
migrations.AlterModelOptions(
name='company',
options={'verbose_name_plural... | 19.666667 | 57 | 0.607345 | 35 | 354 | 6.028571 | 0.828571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070313 | 0.276836 | 354 | 17 | 58 | 20.823529 | 0.753906 | 0.121469 | 0 | 0 | 1 | 0 | 0.197411 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
260aefc11bc7f13c4094a17b7ccdbd402c7786ac | 1,092 | py | Python | alembic/versions/0647beeadb7d_add_org_name.py | neuro-inc/platform-neuro-flow-api | 499eb90e23c3c64b8e3097d516e935d1413dd4a4 | [
"Apache-2.0"
] | null | null | null | alembic/versions/0647beeadb7d_add_org_name.py | neuro-inc/platform-neuro-flow-api | 499eb90e23c3c64b8e3097d516e935d1413dd4a4 | [
"Apache-2.0"
] | 51 | 2021-12-20T16:38:20.000Z | 2022-03-28T03:18:50.000Z | alembic/versions/0647beeadb7d_add_org_name.py | neuro-inc/platform-neuro-flow-api | 499eb90e23c3c64b8e3097d516e935d1413dd4a4 | [
"Apache-2.0"
] | null | null | null | """add org_name
Revision ID: 0647beeadb7d
Revises: f3fc27385ef3
Create Date: 2022-05-12 19:35:03.484368
"""
import sqlalchemy as sa
from alembic import op
# revision identifiers, used by Alembic.
revision = "0647beeadb7d"
down_revision = "f3fc27385ef3"
branch_labels = None
depends_on = None
def upgrade():
op.... | 24.818182 | 83 | 0.679487 | 140 | 1,092 | 4.978571 | 0.378571 | 0.120517 | 0.170732 | 0.241033 | 0.454806 | 0.354376 | 0.296987 | 0.241033 | 0 | 0 | 0 | 0.05 | 0.194139 | 1,092 | 43 | 84 | 25.395349 | 0.742045 | 0.129121 | 0 | 0.241379 | 0 | 0 | 0.347826 | 0.186638 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0 | 0.068966 | 0 | 0.137931 | 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 |
2611855c3ab5941802e739c97ac7f11674d061b6 | 5,237 | py | Python | NC_coating_vs_coreVED.py | annahs/atmos_research | b5853c9b12e327492f8f8ba5069bca3fd2e981c8 | [
"MIT"
] | 2 | 2018-08-17T15:25:26.000Z | 2019-04-17T16:50:00.000Z | NC_coating_vs_coreVED.py | annahs/atmos_research | b5853c9b12e327492f8f8ba5069bca3fd2e981c8 | [
"MIT"
] | null | null | null | NC_coating_vs_coreVED.py | annahs/atmos_research | b5853c9b12e327492f8f8ba5069bca3fd2e981c8 | [
"MIT"
] | null | null | null | import sys
import os
import numpy as np
from pprint import pprint
from datetime import datetime
from datetime import timedelta
import mysql.connector
import math
import matplotlib.pyplot as plt
import matplotlib.colors
from matplotlib import dates
from mpl_toolkits.basemap import Basemap
import calendar
from scipy.opti... | 41.23622 | 400 | 0.703838 | 964 | 5,237 | 3.654564 | 0.216805 | 0.108998 | 0.118081 | 0.055634 | 0.352257 | 0.28243 | 0.261425 | 0.208061 | 0.208061 | 0.200397 | 0 | 0.146435 | 0.108077 | 5,237 | 126 | 401 | 41.563492 | 0.607793 | 0.380752 | 0 | 0 | 0 | 0.013889 | 0.157058 | 0.048613 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.013889 | 0.208333 | null | null | 0.041667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2616252f353e7c7b29b70485f9cea53453abb955 | 543 | py | Python | sweet/common/tf_utils.py | Hadjubuntu/sweet-rl | f0dedadf8a7187e9b9b70436f05c637960fd72a7 | [
"MIT"
] | 3 | 2020-01-31T09:39:32.000Z | 2020-03-04T16:41:53.000Z | sweet/common/tf_utils.py | Hadjubuntu/sweet-rl | f0dedadf8a7187e9b9b70436f05c637960fd72a7 | [
"MIT"
] | 4 | 2020-11-13T18:29:43.000Z | 2022-02-10T00:40:51.000Z | sweet/common/tf_utils.py | Hadjubuntu/sweet-rl | f0dedadf8a7187e9b9b70436f05c637960fd72a7 | [
"MIT"
] | null | null | null | import tensorflow as tf
import torch
def tf_check_cpu_gpu():
print(('Is your GPU available for use?\n{0}').format(
'Yes, your GPU is available: True' if tf.test.is_gpu_available() else 'No, your GPU is NOT available: False'
))
print(('\nYour devices that are available:\n{0}').format(
[dev... | 28.578947 | 116 | 0.6814 | 82 | 543 | 4.365854 | 0.5 | 0.058659 | 0.061453 | 0.089385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004494 | 0.180479 | 543 | 18 | 117 | 30.166667 | 0.8 | 0 | 0 | 0.166667 | 0 | 0 | 0.418819 | 0.103321 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | true | 0 | 0.166667 | 0 | 0.333333 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2619ce6c76dcc23dba00d82c33255ef311ec1fcb | 3,798 | py | Python | comments/admin.py | lesspointless/Shakal-NG | eee491af94527228735c2bca7644605effd74b37 | [
"MIT"
] | 10 | 2016-02-06T15:40:30.000Z | 2018-09-27T15:15:13.000Z | comments/admin.py | lesspointless/Shakal-NG | eee491af94527228735c2bca7644605effd74b37 | [
"MIT"
] | 94 | 2016-02-04T18:39:36.000Z | 2022-01-20T05:25:00.000Z | comments/admin.py | lesspointless/Shakal-NG | eee491af94527228735c2bca7644605effd74b37 | [
"MIT"
] | 8 | 2016-05-10T20:29:53.000Z | 2021-02-07T00:50:31.000Z | # -*- coding: utf-8 -*-
from django.contrib import admin
from django.contrib.contenttypes.admin import GenericTabularInline
from django.utils.html import format_html, escape, mark_safe
from mptt.admin import DraggableMPTTAdmin
from .models import Comment, RootHeader
from attachment.admin import AttachmentInline, Attac... | 34.527273 | 246 | 0.739863 | 499 | 3,798 | 5.354709 | 0.298597 | 0.033683 | 0.067365 | 0.019087 | 0.269461 | 0.219311 | 0.196856 | 0.143713 | 0.116766 | 0.116766 | 0 | 0.003586 | 0.11901 | 3,798 | 109 | 247 | 34.844037 | 0.794979 | 0.005529 | 0 | 0.105882 | 0 | 0.011765 | 0.276026 | 0.100662 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.070588 | 0.070588 | 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 |
262555bdc06c8d76811e1a386034336014198514 | 8,432 | py | Python | main.py | PETEROLO291/G-CPS | efa476b8b1211700da13426e9c0c98124796f924 | [
"Apache-2.0"
] | 7 | 2020-12-19T22:45:05.000Z | 2022-02-25T12:57:48.000Z | main.py | PETEROLO291/G-CPS | efa476b8b1211700da13426e9c0c98124796f924 | [
"Apache-2.0"
] | 2 | 2021-04-07T17:16:14.000Z | 2021-11-18T17:28:12.000Z | main.py | PETEROLO291/G-CPS | efa476b8b1211700da13426e9c0c98124796f924 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import PySimpleGUI as sg
from os import system
from time import sleep
from threading import Thread
# Read Saved Theme
with open("theme.txt") as theme:
theme = theme.read()
# Variables
timer_goal = 5
timer = 0
start_loops = True
clicks = 0
running = True
final = 0
cps = 0
round_finished =... | 27.645902 | 146 | 0.553961 | 1,080 | 8,432 | 4.230556 | 0.222222 | 0.027577 | 0.019698 | 0.021011 | 0.245349 | 0.213832 | 0.146203 | 0.125192 | 0.125192 | 0.117969 | 0 | 0.028674 | 0.305147 | 8,432 | 305 | 147 | 27.645902 | 0.749275 | 0.138639 | 0 | 0.322404 | 0 | 0 | 0.142067 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016393 | false | 0.054645 | 0.021858 | 0 | 0.038251 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2628a187619ece3f4f009774f7bf98d2c6528572 | 2,396 | py | Python | geovisualizing.py | sayonkumarsaha/satellite-index-earth-observation-experiement | 83c853ef3e94fd01194af6f16eb66fb5ac191942 | [
"MIT"
] | null | null | null | geovisualizing.py | sayonkumarsaha/satellite-index-earth-observation-experiement | 83c853ef3e94fd01194af6f16eb66fb5ac191942 | [
"MIT"
] | null | null | null | geovisualizing.py | sayonkumarsaha/satellite-index-earth-observation-experiement | 83c853ef3e94fd01194af6f16eb66fb5ac191942 | [
"MIT"
] | 1 | 2019-12-09T11:50:54.000Z | 2019-12-09T11:50:54.000Z |
import pylab
import matplotlib as mpl
import numpy as np
import matplotlib.colors as colors
import matplotlib.pyplot as plt
import matplotlib.colors as mcolors
from colormap import cmap_builder, test_cmap # for _build_colormap()
# --------------------------------------... | 35.235294 | 125 | 0.623122 | 320 | 2,396 | 4.575 | 0.41875 | 0.023907 | 0.062158 | 0.05806 | 0.124317 | 0.050546 | 0 | 0 | 0 | 0 | 0 | 0.023896 | 0.196578 | 2,396 | 67 | 126 | 35.761194 | 0.736623 | 0.321786 | 0 | 0.111111 | 0 | 0 | 0.053503 | 0.016561 | 0 | 0 | 0 | 0.014925 | 0 | 1 | 0.111111 | false | 0 | 0.194444 | 0 | 0.361111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
262af8d2802747302ff0ea9e5a9cfda0aa05c6a0 | 1,490 | py | Python | contact/admin.py | rajeshr188/django-onex | f1086a4159b1d135e54327c77c93fcc6c446338f | [
"MIT"
] | 2 | 2019-06-08T22:50:59.000Z | 2020-07-12T14:13:18.000Z | contact/admin.py | rajeshr188/django-onex | f1086a4159b1d135e54327c77c93fcc6c446338f | [
"MIT"
] | 13 | 2020-02-11T23:51:43.000Z | 2021-06-05T13:10:49.000Z | contact/admin.py | rajeshr188/django-onex | f1086a4159b1d135e54327c77c93fcc6c446338f | [
"MIT"
] | null | null | null | from django.contrib import admin
from django import forms
from import_export import fields,resources
from import_export.admin import ImportExportModelAdmin,ImportExportActionModelAdmin
from import_export.widgets import ForeignKeyWidget
from .models import Customer
class CustomerResource(resources.ModelResource):
... | 32.391304 | 125 | 0.71745 | 138 | 1,490 | 7.608696 | 0.347826 | 0.034286 | 0.053333 | 0.059048 | 0.394286 | 0.224762 | 0.224762 | 0.224762 | 0.121905 | 0.121905 | 0 | 0 | 0.158389 | 1,490 | 45 | 126 | 33.111111 | 0.837321 | 0.383221 | 0 | 0.210526 | 0 | 0 | 0.150167 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.368421 | 0 | 0.842105 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
262bf7a442fc3d0c155b1a0fdcfca3c5192f1b8c | 2,730 | py | Python | scripts/batch_sequence.py | dgketchum/gsflow-arcpy | 966e8f48e0fee1ba534fc6a64987f67594b144f2 | [
"Apache-2.0"
] | null | null | null | scripts/batch_sequence.py | dgketchum/gsflow-arcpy | 966e8f48e0fee1ba534fc6a64987f67594b144f2 | [
"Apache-2.0"
] | null | null | null | scripts/batch_sequence.py | dgketchum/gsflow-arcpy | 966e8f48e0fee1ba534fc6a64987f67594b144f2 | [
"Apache-2.0"
] | null | null | null | import os
import sys
import argparse
import logging
import datetime as dt
from fishnet_generator import fishnet_func
from hru_parameters import hru_parameters
from dem_parameters import dem_parameters
from dem_2_streams import flow_parameters
from crt_fill_parameters import crt_fill_parameters
from stream_parameters i... | 35.921053 | 109 | 0.720147 | 416 | 2,730 | 4.478365 | 0.221154 | 0.06978 | 0.062802 | 0.090714 | 0.372517 | 0.242083 | 0.242083 | 0.242083 | 0.242083 | 0.242083 | 0 | 0.008754 | 0.121245 | 2,730 | 75 | 110 | 36.4 | 0.76782 | 0.035897 | 0 | 0 | 0 | 0 | 0.221673 | 0.141065 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017857 | false | 0 | 0.321429 | 0 | 0.339286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
262f7f11481d705b28815ad9b82be13a1fc8c908 | 7,891 | py | Python | screenshoter.py | Microcore/AGT | 2c9ded93fceff11ab2e76a41e9d41fe6e3bf32b7 | [
"BSD-3-Clause"
] | 2 | 2016-04-05T02:34:41.000Z | 2016-04-06T12:22:24.000Z | screenshoter.py | Microcore/AGT | 2c9ded93fceff11ab2e76a41e9d41fe6e3bf32b7 | [
"BSD-3-Clause"
] | null | null | null | screenshoter.py | Microcore/AGT | 2c9ded93fceff11ab2e76a41e9d41fe6e3bf32b7 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from datetime import datetime
import logging
from multiprocessing import Process
import os
import time
from PIL import ImageGrab
import wx
from loghandlers import NotificationHandler
sh_logger = logging.getLogger('Screenshot')
sh_logger.setLevel(logging.INFO)
sh_logger.addHandler(Notificatio... | 31.564 | 80 | 0.542644 | 856 | 7,891 | 4.890187 | 0.267523 | 0.090062 | 0.01505 | 0.0301 | 0.324415 | 0.265647 | 0.205447 | 0.15958 | 0.120401 | 0.068323 | 0 | 0.016722 | 0.348245 | 7,891 | 249 | 81 | 31.690763 | 0.7972 | 0.063617 | 0 | 0.267974 | 0 | 0 | 0.025855 | 0.003871 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.006536 | 0.052288 | 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 |
26321e52348c39666d7136afe194a5c79628fe98 | 807 | py | Python | kavik/example_local_settings.py | kradalby/kavik | 81f4008a14103f57d8ef57802a7e6ad5e8c39124 | [
"MIT"
] | null | null | null | kavik/example_local_settings.py | kradalby/kavik | 81f4008a14103f57d8ef57802a7e6ad5e8c39124 | [
"MIT"
] | null | null | null | kavik/example_local_settings.py | kradalby/kavik | 81f4008a14103f57d8ef57802a7e6ad5e8c39124 | [
"MIT"
] | null | null | null | import os
from kavik.settings import BASE_DIR
DEBUG = True
TEMPLATE_DEBUG = DEBUG
# Hosts/domain names that are valid for this site; required if DEBUG is False
# See https://docs.djangoproject.com/en/1.5/ref/settings/#allowed-hosts
ALLOWED_HOSTS = []
SECRET_KEY = ''
DATABASES = {
'default': {
'ENGINE':... | 25.21875 | 77 | 0.731103 | 111 | 807 | 5.153153 | 0.594595 | 0.062937 | 0.094406 | 0.115385 | 0.234266 | 0.234266 | 0.174825 | 0.174825 | 0 | 0 | 0 | 0.008671 | 0.142503 | 807 | 31 | 78 | 26.032258 | 0.817919 | 0.372986 | 0 | 0 | 0 | 0 | 0.263581 | 0.191147 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.052632 | 0.105263 | 0 | 0.105263 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2634178a5cfd113d68060e899a4361f5f3c5964d | 412 | py | Python | ch1/2.py | alexzhf/kid-training | ae9a4660f84f31bc988959d6e40635d621361838 | [
"MIT"
] | 1 | 2020-01-22T05:07:10.000Z | 2020-01-22T05:07:10.000Z | ch1/2.py | alexzhf/kid-training | ae9a4660f84f31bc988959d6e40635d621361838 | [
"MIT"
] | null | null | null | ch1/2.py | alexzhf/kid-training | ae9a4660f84f31bc988959d6e40635d621361838 | [
"MIT"
] | null | null | null | import random
secret = random.randint(1, 99)
guess = 0
tries = 0
print("嘿,我是海盗王,我有个秘密")
print("秘密是1到99间的一个数,给你6次机会猜哦")
while guess != secret and tries <6:
guess = int(input("输入你猜的数:"))
if guess < secret:
print("太小了,笨蛋")
elif guess > secret:
print("太大了,呆子")
tries = tries +1
if guess == ... | 17.913043 | 35 | 0.604369 | 56 | 412 | 4.446429 | 0.589286 | 0.176707 | 0.192771 | 0.144578 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0347 | 0.230583 | 412 | 22 | 36 | 18.727273 | 0.750789 | 0 | 0 | 0 | 0 | 0 | 0.192683 | 0.05122 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.055556 | 0 | 0.055556 | 0.388889 | 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 |
263487fad59f0e81053e111f4d8febe61daa2265 | 693 | py | Python | test/test_utils.py | Yifanfanfanfan/torchutils | 939331d28fcee97bfb0a4b2eaab8e799877fb0dc | [
"MIT"
] | 9 | 2019-12-23T06:06:56.000Z | 2021-12-17T07:07:03.000Z | test/test_utils.py | Yifanfanfanfan/torchutils | 939331d28fcee97bfb0a4b2eaab8e799877fb0dc | [
"MIT"
] | 6 | 2019-08-10T19:01:58.000Z | 2019-08-20T21:02:52.000Z | test/test_utils.py | Yifanfanfanfan/torchutils | 939331d28fcee97bfb0a4b2eaab8e799877fb0dc | [
"MIT"
] | 3 | 2020-07-16T19:22:26.000Z | 2020-09-21T05:22:24.000Z | import random as _random
import unittest as _unittest
import numpy as _np
import torch as _torch
import torchutils as _tu
class _TestUtils(_unittest.TestCase):
def test_set_random_seed(self):
# Set new seed and verify.
seed = _random.randint(1, 1000)
_tu.set_random_seed(seed)
np... | 25.666667 | 54 | 0.68254 | 95 | 693 | 4.526316 | 0.357895 | 0.113953 | 0.132558 | 0.160465 | 0.139535 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013133 | 0.23088 | 693 | 26 | 55 | 26.653846 | 0.793621 | 0.034632 | 0 | 0 | 0 | 0 | 0.011994 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.055556 | false | 0 | 0.277778 | 0 | 0.388889 | 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 |
2634c447bf87ca7493951c85b5863e3b883a98ce | 1,590 | py | Python | src/docker_tests/pkgdest_tests.py | eli-schwartz/aurman | 4ea000348600afb7454c592de15bb008a0ebde80 | [
"MIT"
] | null | null | null | src/docker_tests/pkgdest_tests.py | eli-schwartz/aurman | 4ea000348600afb7454c592de15bb008a0ebde80 | [
"MIT"
] | null | null | null | src/docker_tests/pkgdest_tests.py | eli-schwartz/aurman | 4ea000348600afb7454c592de15bb008a0ebde80 | [
"MIT"
] | null | null | null | from os import getcwd
from os.path import join
from sys import exit
from docker_tests.test_utils import CurrentTest, test_command
if __name__ == '__main__':
# install expac-git
test_command("git clone https://aur.archlinux.org/expac-git.git")
test_command("makepkg -si --needed --noconfirm", dir_to_execute... | 35.333333 | 117 | 0.671698 | 213 | 1,590 | 4.86385 | 0.352113 | 0.148649 | 0.067568 | 0.066602 | 0.431467 | 0.390927 | 0.294402 | 0.294402 | 0.294402 | 0.221042 | 0 | 0.014729 | 0.188679 | 1,590 | 44 | 118 | 36.136364 | 0.788372 | 0.145283 | 0 | 0.208333 | 0 | 0.125 | 0.523739 | 0.146142 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2636a8915ab1032f2a67fd7139d409f8c0d23499 | 1,213 | py | Python | MigrateDestruct/migrate_destroyWithinContract_compiler2.0.py | ONT-Avocados/python-template | 0acb5032adf8f4968c5d46cf53681f31ac917650 | [
"Apache-2.0"
] | 17 | 2018-09-26T07:09:16.000Z | 2020-05-28T06:16:47.000Z | MigrateDestruct/migrate_destroyWithinContract_compiler2.0.py | zhangxiaocong/python-template | 0acb5032adf8f4968c5d46cf53681f31ac917650 | [
"Apache-2.0"
] | 8 | 2018-09-26T02:08:04.000Z | 2021-12-14T02:53:26.000Z | MigrateDestruct/migrate_destroyWithinContract_compiler2.0.py | zhangxiaocong/python-template | 0acb5032adf8f4968c5d46cf53681f31ac917650 | [
"Apache-2.0"
] | 30 | 2018-09-25T08:27:42.000Z | 2020-12-08T09:02:33.000Z | OntCversion = '2.0.0'
from ontology.interop.Ontology.Contract import Migrate
# from ontology.interop.Ontology.Contract import Destroy
from ontology.interop.System.Runtime import Notify
from ontology.interop.System.Storage import Put, GetContext, Get
KEY = "KEY"
NAME = "SecondName"
def Main(operation, args):
# if ... | 25.270833 | 83 | 0.639736 | 137 | 1,213 | 5.664234 | 0.408759 | 0.070876 | 0.097938 | 0.069588 | 0.10567 | 0.10567 | 0 | 0 | 0 | 0 | 0 | 0.008658 | 0.238252 | 1,213 | 47 | 84 | 25.808511 | 0.831169 | 0.257214 | 0 | 0.071429 | 0 | 0 | 0.122989 | 0 | 0 | 0 | 0 | 0 | 0.035714 | 1 | 0.142857 | false | 0 | 0.107143 | 0.035714 | 0.535714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
263b56bc962bdd612a7af0aa4d344ebce6c28f4c | 2,124 | py | Python | yacts.py | pvital/yaCTS | 0057e59d21ff50439237fe25ccc274af1c5319a7 | [
"MIT"
] | null | null | null | yacts.py | pvital/yaCTS | 0057e59d21ff50439237fe25ccc274af1c5319a7 | [
"MIT"
] | null | null | null | yacts.py | pvital/yaCTS | 0057e59d21ff50439237fe25ccc274af1c5319a7 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (c) 2017 Paulo Vital
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights... | 32.181818 | 79 | 0.661959 | 310 | 2,124 | 4.487097 | 0.477419 | 0.063264 | 0.018692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00814 | 0.248117 | 2,124 | 65 | 80 | 32.676923 | 0.862868 | 0.554143 | 0 | 0.129032 | 0 | 0 | 0.098592 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.129032 | null | null | 0.096774 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
263cec01bc9e6acc2c587a7d479d9115d3e761ac | 508 | py | Python | AT_Compatibility/AT_contourOrder.py | huertatipografica/huertatipografica-fl-scripts | f048705c217132b3f103a773aaf20033874f6579 | [
"Apache-2.0"
] | 1 | 2020-02-06T22:18:07.000Z | 2020-02-06T22:18:07.000Z | AT_Compatibility/AT_contourOrder.py | huertatipografica/huertatipografica-fl-scripts | f048705c217132b3f103a773aaf20033874f6579 | [
"Apache-2.0"
] | null | null | null | AT_Compatibility/AT_contourOrder.py | huertatipografica/huertatipografica-fl-scripts | f048705c217132b3f103a773aaf20033874f6579 | [
"Apache-2.0"
] | null | null | null | #FLM: AT Contour order + direction
"""correctDirection(): correct the direction of all contours in this glyphs.
autoContourOrder(): automatically order the contours based on (in this order): the point count of the contours, the segment count of the contours, the x value of the center of the contours, the y value of the... | 50.8 | 284 | 0.777559 | 78 | 508 | 5.064103 | 0.461538 | 0.101266 | 0.164557 | 0.121519 | 0.253165 | 0.146835 | 0.146835 | 0 | 0 | 0 | 0 | 0 | 0.15748 | 508 | 9 | 285 | 56.444444 | 0.922897 | 0.771654 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 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 |
26521efb66a12f79d4d053cafad756f490e8c46a | 493 | py | Python | tr3_navigation/src/tr3_cmd_map___.py | SlateRobotics/tr3_essentials | c8608f04a83a5ca53f25ce0e5f6bce217e378c6f | [
"MIT"
] | 2 | 2021-01-22T05:52:10.000Z | 2021-02-09T18:11:20.000Z | tr3_navigation/src/tr3_cmd_map___.py | SlateRobotics/tr3_essentials | c8608f04a83a5ca53f25ce0e5f6bce217e378c6f | [
"MIT"
] | 1 | 2020-08-07T08:47:52.000Z | 2020-08-07T08:47:52.000Z | tr3_navigation/src/tr3_cmd_map___.py | SlateRobotics/tr3_essentials | c8608f04a83a5ca53f25ce0e5f6bce217e378c6f | [
"MIT"
] | 3 | 2020-08-03T17:42:18.000Z | 2021-04-06T14:23:35.000Z | #!/usr/bin/env python
import time
import rospy
import sys
import signal
import math
import tf
from geometry_msgs.msg import Twist
pub = None
def handle_cmd(msg):
cmd_vel = Twist()
cmd_vel.linear.x = msg.linear.x
cmd_vel.angular.z = -msg.angular.z
pub.publish(cmd_vel)
if __name__ == '__main__':
r... | 20.541667 | 73 | 0.707911 | 79 | 493 | 4.151899 | 0.531646 | 0.109756 | 0.10061 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009756 | 0.168357 | 493 | 23 | 74 | 21.434783 | 0.790244 | 0.040568 | 0 | 0 | 0 | 0 | 0.103814 | 0.04661 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.388889 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2652fa2d735928bde058349960951cbdc31fb106 | 1,095 | py | Python | src/custom_types/confirm.py | CupOfGeo/adaptable-antelopes | 3f7ba49a88d3e89377a4df2983d5d91f2fa6b2ba | [
"MIT"
] | null | null | null | src/custom_types/confirm.py | CupOfGeo/adaptable-antelopes | 3f7ba49a88d3e89377a4df2983d5d91f2fa6b2ba | [
"MIT"
] | 13 | 2021-07-09T19:45:30.000Z | 2021-07-11T20:01:31.000Z | src/custom_types/confirm.py | CupOfGeo/adaptable-antelopes | 3f7ba49a88d3e89377a4df2983d5d91f2fa6b2ba | [
"MIT"
] | null | null | null | from asyncio import Future
from prompt_toolkit.layout.containers import HSplit
from prompt_toolkit.layout.dimension import D
from prompt_toolkit.widgets import Button, Dialog, Label
from constants import DIALOG_WIDTH
from custom_types.ui_types import PopUpDialog
from utils import display_path
class ConfirmDialog(Po... | 28.076923 | 58 | 0.645662 | 133 | 1,095 | 5.105263 | 0.406015 | 0.044183 | 0.07511 | 0.067747 | 0.082474 | 0.082474 | 0 | 0 | 0 | 0 | 0 | 0 | 0.254795 | 1,095 | 38 | 59 | 28.815789 | 0.832108 | 0.063927 | 0 | 0 | 0 | 0 | 0.004955 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16 | false | 0 | 0.28 | 0.04 | 0.52 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2662d6907b49346b4ba60c3d936a90a646e63267 | 10,291 | py | Python | fluid_multirouter.py | lycarter/6.851-dors | 760ba6cd5a084e5ceaaf4d0bedcaea6ef9937970 | [
"MIT"
] | null | null | null | fluid_multirouter.py | lycarter/6.851-dors | 760ba6cd5a084e5ceaaf4d0bedcaea6ef9937970 | [
"MIT"
] | null | null | null | fluid_multirouter.py | lycarter/6.851-dors | 760ba6cd5a084e5ceaaf4d0bedcaea6ef9937970 | [
"MIT"
] | 1 | 2018-05-04T03:05:36.000Z | 2018-05-04T03:05:36.000Z | """Routes multiple fluid channels simultaneously."""
import copy
import numpy as np
import lpa_fluid_router as flpa
import random
import lpa_math
import priority_queue as pq
random.seed(1)
class MPA(object):
"""BFS Python implementation."""
def __init__(self, desired_routes, valid_region_func, debug=False):... | 37.151625 | 97 | 0.588573 | 1,341 | 10,291 | 4.263236 | 0.166294 | 0.069967 | 0.040406 | 0.058772 | 0.41088 | 0.340388 | 0.324646 | 0.283016 | 0.248732 | 0.222844 | 0 | 0.024062 | 0.313478 | 10,291 | 277 | 98 | 37.151625 | 0.785138 | 0.018754 | 0 | 0.316583 | 0 | 0 | 0.054015 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.01005 | 0.030151 | null | null | 0.150754 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
2664fed4d7aacaf0ebfde965c90303414eed99d3 | 1,827 | py | Python | eventbridge/eventbridge/misc/utils.py | CityPulse/Event-Testing | 53d876dd6a2cf2a666bfb510f435a68829d017d2 | [
"MIT"
] | 2 | 2016-11-03T14:57:45.000Z | 2019-05-13T13:21:08.000Z | eventbridge/eventbridge/misc/utils.py | CityPulse/Event-Testing | 53d876dd6a2cf2a666bfb510f435a68829d017d2 | [
"MIT"
] | null | null | null | eventbridge/eventbridge/misc/utils.py | CityPulse/Event-Testing | 53d876dd6a2cf2a666bfb510f435a68829d017d2 | [
"MIT"
] | 1 | 2020-07-23T11:27:15.000Z | 2020-07-23T11:27:15.000Z | import chardet
import copy
__author__ = 'Thorben Iggena (t.iggena@hs-osnabrueck.de)'
def getType(strType):
if "." in strType:
splittedType = strType.split(".")
moduleName = ".".join(splittedType[:-1])
importedModule = __import__(moduleName)
return getattr(importedModule, splitte... | 29 | 88 | 0.659551 | 194 | 1,827 | 6.123711 | 0.453608 | 0.017677 | 0.031987 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004289 | 0.234264 | 1,827 | 63 | 89 | 29 | 0.844889 | 0.125342 | 0 | 0.162791 | 0 | 0 | 0.086459 | 0.017165 | 0 | 0 | 0 | 0 | 0 | 1 | 0.186047 | false | 0 | 0.116279 | 0.069767 | 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 |
26650383b53070a53c096cae74e3cf4a0f8cd29a | 533 | py | Python | Mundo01CursoemVideo/ex029.py | JuniorMelo-Dev/Python_Guanabara | 680ea59aba81ef043cef2aec46d0ebf1dd4f8c7c | [
"MIT"
] | null | null | null | Mundo01CursoemVideo/ex029.py | JuniorMelo-Dev/Python_Guanabara | 680ea59aba81ef043cef2aec46d0ebf1dd4f8c7c | [
"MIT"
] | null | null | null | Mundo01CursoemVideo/ex029.py | JuniorMelo-Dev/Python_Guanabara | 680ea59aba81ef043cef2aec46d0ebf1dd4f8c7c | [
"MIT"
] | null | null | null | # Escreva um programaque leia a velocidade de um carro. Se ele ultrapassar 80Km/h,
# moostre uma mensagem que ele foi multado. A multa vai custar R$7,00 por cada
# Km acima do limite.
velocidade = float(input('Qual a velocidade atual do veículo? '))
if velocidade > 80:
print('VOCÊ FOI MULTADO! Pois você excedeu o... | 44.416667 | 88 | 0.711069 | 87 | 533 | 4.356322 | 0.666667 | 0.058047 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030233 | 0.193246 | 533 | 11 | 89 | 48.454545 | 0.851163 | 0.333959 | 0 | 0 | 0 | 0 | 0.57265 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.428571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
266d076c1bed57882ec737b3abe466bbbe941a22 | 7,546 | py | Python | planenet_utils.py | VisualMine/PlaneNet | a4327f0233dd3a5c4de375c2857402d28b308230 | [
"MIT"
] | null | null | null | planenet_utils.py | VisualMine/PlaneNet | a4327f0233dd3a5c4de375c2857402d28b308230 | [
"MIT"
] | null | null | null | planenet_utils.py | VisualMine/PlaneNet | a4327f0233dd3a5c4de375c2857402d28b308230 | [
"MIT"
] | null | null | null | import os
import tempfile
import time
import cv2
import numpy as np
from PIL import Image
def calcVanishingPoint(lines):
points = lines[:, :2]
normals = lines[:, 2:4] - lines[:, :2]
normals /= np.maximum(np.linalg.norm(normals, axis=-1, keepdims=True), 1e-4)
normals = np.stack([normals[:, 1], -normal... | 37.919598 | 178 | 0.51471 | 841 | 7,546 | 4.606421 | 0.19025 | 0.017037 | 0.024781 | 0.014455 | 0.19747 | 0.157202 | 0.136035 | 0.115126 | 0.107899 | 0.073309 | 0 | 0.070965 | 0.346409 | 7,546 | 199 | 179 | 37.919598 | 0.714517 | 0.090114 | 0 | 0.175325 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064935 | false | 0.064935 | 0.045455 | 0.012987 | 0.188312 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
26762d5e8060ea48e3d3a54e3f5a09402e1aff95 | 1,625 | py | Python | examples/programmatical/object_ids_example.py | franpoz/SHERLOCK | 6c9e79405aa84e86cd1d6c41fa1cc45d5dbcfb46 | [
"MIT"
] | 20 | 2020-09-25T13:18:46.000Z | 2022-03-09T14:01:03.000Z | examples/programmatical/object_ids_example.py | anthuil/SHERLOCK | e768a6375ded6c3ba1d07784afc2682e95228d3a | [
"MIT"
] | 74 | 2020-09-22T12:19:28.000Z | 2022-01-12T13:53:35.000Z | examples/programmatical/object_ids_example.py | anthuil/SHERLOCK | e768a6375ded6c3ba1d07784afc2682e95228d3a | [
"MIT"
] | 5 | 2020-10-19T10:01:05.000Z | 2021-12-16T10:23:24.000Z | from contextlib import contextmanager
from timeit import default_timer
from sherlockpipe.sherlock import Sherlock
from lcbuilder.objectinfo.InputObjectInfo import InputObjectInfo
from lcbuilder.objectinfo.MissionFfiCoordsObjectInfo import MissionFfiCoordsObjectInfo
from lcbuilder.objectinfo.MissionFfiIdObjectInfo impor... | 49.242424 | 122 | 0.713846 | 160 | 1,625 | 7.1875 | 0.46875 | 0.056522 | 0.1 | 0.043478 | 0.048696 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027365 | 0.212923 | 1,625 | 32 | 123 | 50.78125 | 0.871775 | 0.148923 | 0 | 0 | 0 | 0 | 0.069666 | 0.015965 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.375 | 0 | 0.416667 | 0.041667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
267910f262da039820342e889fae7bfcd00655e7 | 1,195 | py | Python | fjarrsyn/core/mover.py | anderzzz/fjarrsyn | 742f86d727634e3612cf0b4e1ca78af9d0ccf525 | [
"BSD-3-Clause"
] | null | null | null | fjarrsyn/core/mover.py | anderzzz/fjarrsyn | 742f86d727634e3612cf0b4e1ca78af9d0ccf525 | [
"BSD-3-Clause"
] | null | null | null | fjarrsyn/core/mover.py | anderzzz/fjarrsyn | 742f86d727634e3612cf0b4e1ca78af9d0ccf525 | [
"BSD-3-Clause"
] | null | null | null | '''The Mover Parent Class'''
from fjarrsyn.core.agent_ms import AgentManagementSystem
class Mover(object):
'''Base class for all Movers to move an agent system forward
Parameters
----------
'''
def __call__(self, agent_ms):
'''Move the mover of given AMS
Parameters
-----... | 25.425532 | 83 | 0.627615 | 136 | 1,195 | 5.330882 | 0.492647 | 0.057931 | 0.030345 | 0.046897 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.262762 | 1,195 | 47 | 84 | 25.425532 | 0.822928 | 0.263598 | 0 | 0 | 0 | 0 | 0.116395 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.058824 | 0 | 0.411765 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
267c2dad2a485109c20ece85ce8f8064b5c1a43b | 276 | py | Python | Week 3/Program10F.py | Mitul-Joby/Semester-1-Python-Lab | 8ab62a6945dae0ec9873acec7ba395b9c360cad1 | [
"MIT"
] | null | null | null | Week 3/Program10F.py | Mitul-Joby/Semester-1-Python-Lab | 8ab62a6945dae0ec9873acec7ba395b9c360cad1 | [
"MIT"
] | null | null | null | Week 3/Program10F.py | Mitul-Joby/Semester-1-Python-Lab | 8ab62a6945dae0ec9873acec7ba395b9c360cad1 | [
"MIT"
] | null | null | null | '''PROGRAM TO GENERATE THE SAME RANDOM NUMBER EVERY TIME'''
#Importing random module for seed and random function
from random import seed,random
#Seeding the generator
seed(0)
#Generating random number
Num = random()
#Displaying the result
print('\nRandom number is',Num) | 21.230769 | 59 | 0.771739 | 40 | 276 | 5.325 | 0.675 | 0.112676 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004255 | 0.148551 | 276 | 13 | 60 | 21.230769 | 0.902128 | 0.626812 | 0 | 0 | 1 | 0 | 0.189474 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 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 |
2681aaff582c67f4105645a486eb2f835c102864 | 192 | py | Python | swap_first_last.py | pfreese/py_test | bf1cb713d63259c8b6db666924b69bd101b55674 | [
"MIT"
] | null | null | null | swap_first_last.py | pfreese/py_test | bf1cb713d63259c8b6db666924b69bd101b55674 | [
"MIT"
] | null | null | null | swap_first_last.py | pfreese/py_test | bf1cb713d63259c8b6db666924b69bd101b55674 | [
"MIT"
] | null | null | null | def front_back(str):
if len(str) < 2:
return str
n = len(str)
first_char = str[0]
last_char = str[n-1]
middle_chars = str[1:(n-1)]
return last_char + middle_chars + first_char
| 21.333333 | 46 | 0.645833 | 35 | 192 | 3.342857 | 0.457143 | 0.102564 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033333 | 0.21875 | 192 | 8 | 47 | 24 | 0.746667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.375 | 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 |
26881387de769e6f9268b7815b739c2c14b1ea18 | 728 | py | Python | aulas/desafio2.py | Biguelini/Curso-Python-3 | 0b5df350f5901262927b11b6f2b9b215176808ff | [
"MIT"
] | null | null | null | aulas/desafio2.py | Biguelini/Curso-Python-3 | 0b5df350f5901262927b11b6f2b9b215176808ff | [
"MIT"
] | null | null | null | aulas/desafio2.py | Biguelini/Curso-Python-3 | 0b5df350f5901262927b11b6f2b9b215176808ff | [
"MIT"
] | null | null | null | # 1
numero = input('Digite um número inteiro ')
if numero.isdigit():
if int(numero)%2==0:
print('É par')
else:
print('É ímpar')
else:
print('Digite um número inteiro')
# 2
from datetime import datetime
data_e_hora_atuais = datetime.now()
data_e_hora_atuais = int(data_e_hora_atuais.strftime... | 23.483871 | 59 | 0.666209 | 119 | 728 | 3.89916 | 0.420168 | 0.075431 | 0.135776 | 0.226293 | 0.077586 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025381 | 0.188187 | 728 | 31 | 60 | 23.483871 | 0.759729 | 0.006868 | 0 | 0.16 | 0 | 0 | 0.223611 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.04 | 0 | 0.04 | 0.36 | 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 |
268fd805ab7eb6fe9f9b308205e29fa50e62ae81 | 3,918 | py | Python | simulation/classes.py | jmgraeffe/ieee802-11-simplified-mac-simulator | dbc2a57785715b35bb30603532486be1aee53578 | [
"MIT"
] | null | null | null | simulation/classes.py | jmgraeffe/ieee802-11-simplified-mac-simulator | dbc2a57785715b35bb30603532486be1aee53578 | [
"MIT"
] | null | null | null | simulation/classes.py | jmgraeffe/ieee802-11-simplified-mac-simulator | dbc2a57785715b35bb30603532486be1aee53578 | [
"MIT"
] | null | null | null | import copy
class Simulation:
class _Log(list):
def append(self, obj):
super().append(copy.deepcopy(obj))
def __init__(self, scheme, num_stations, num_iterations, cw_start, cw_end):
# not changing
self.scheme = scheme
self.num_stations = num_stations
self.n... | 36.277778 | 166 | 0.657478 | 491 | 3,918 | 5.059063 | 0.303462 | 0.066425 | 0.053543 | 0.064815 | 0.155395 | 0.070853 | 0.039453 | 0.039453 | 0.039453 | 0.039453 | 0 | 0.003185 | 0.278714 | 3,918 | 107 | 167 | 36.616822 | 0.875796 | 0.295814 | 0 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0.042857 | 0.014286 | 0 | 0.371429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
26933ae5ed5867c7f975dcdfddc8fe04b6cab4be | 9,621 | py | Python | commons_link.py | Botomatik/JackBot | 58651d8b5a5bcead2a2eb79849019cb4f972b7cd | [
"MIT"
] | null | null | null | commons_link.py | Botomatik/JackBot | 58651d8b5a5bcead2a2eb79849019cb4f972b7cd | [
"MIT"
] | null | null | null | commons_link.py | Botomatik/JackBot | 58651d8b5a5bcead2a2eb79849019cb4f972b7cd | [
"MIT"
] | null | null | null | #!/usr/bin/python
# coding: utf-8
"""
Include commons template in home wiki.
This bot functions mainly in the en.wikipedia, because it
compares the names of articles and category in English
language (standard language in Commons). If the name of
an article in Commons will not be in English but with
redirect, this als... | 43.143498 | 83 | 0.477705 | 850 | 9,621 | 5.384706 | 0.268235 | 0.045882 | 0.04894 | 0.030588 | 0.523487 | 0.487656 | 0.438278 | 0.421674 | 0.410312 | 0.410312 | 0 | 0.005767 | 0.423241 | 9,621 | 222 | 84 | 43.337838 | 0.818526 | 0.019956 | 0 | 0.508876 | 0 | 0 | 0.134158 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.017751 | 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 |
13f987304e619363d79dfb74ca23b2b4e8857c74 | 139 | py | Python | vnc_viewer/engine/__init__.py | alsbi/vnc | 1dd89ffed17a0f5a47cf08516b5757b4481ae6b4 | [
"MIT"
] | null | null | null | vnc_viewer/engine/__init__.py | alsbi/vnc | 1dd89ffed17a0f5a47cf08516b5757b4481ae6b4 | [
"MIT"
] | null | null | null | vnc_viewer/engine/__init__.py | alsbi/vnc | 1dd89ffed17a0f5a47cf08516b5757b4481ae6b4 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
__author__ = 'alsbi'
from .service import start
def main():
start()
if __name__ == '__main__':
main()
| 10.692308 | 26 | 0.582734 | 16 | 139 | 4.3125 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009434 | 0.23741 | 139 | 12 | 27 | 11.583333 | 0.641509 | 0.151079 | 0 | 0 | 0 | 0 | 0.112069 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.333333 | 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 |
13fb0554e6db74ba88256ed2617c4a1498f3e808 | 722 | py | Python | notaso/search/views.py | jpadilla/notaso | 1c2f94d36b3d360d70f6c9937beb053beb8d8ad3 | [
"MIT"
] | 11 | 2017-03-16T21:47:51.000Z | 2021-11-30T12:38:59.000Z | notaso/search/views.py | jpadilla/notaso | 1c2f94d36b3d360d70f6c9937beb053beb8d8ad3 | [
"MIT"
] | 43 | 2015-01-13T14:14:48.000Z | 2021-12-29T14:21:25.000Z | notaso/search/views.py | jpadilla/notaso | 1c2f94d36b3d360d70f6c9937beb053beb8d8ad3 | [
"MIT"
] | 5 | 2015-09-27T15:05:36.000Z | 2019-05-14T17:09:06.000Z | from django.views.generic import ListView
from ..professors.models import Professor
class SearchView(ListView):
queryset = Professor.objects.all().order_by("-first_name", "last_name")
template_name = "search.html"
def get_context_data(self):
context = super(SearchView, self).get_context_data()
... | 27.769231 | 84 | 0.66205 | 84 | 722 | 5.511905 | 0.464286 | 0.086393 | 0.060475 | 0.095032 | 0.12095 | 0.12095 | 0.12095 | 0 | 0 | 0 | 0 | 0.003552 | 0.220222 | 722 | 25 | 85 | 28.88 | 0.818828 | 0 | 0 | 0 | 0 | 0 | 0.083102 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.117647 | 0 | 0.588235 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
13fd69e96b46e415ec8f95df6c148004da26192f | 2,753 | py | Python | tests/apisports/test_response.py | MikeSmithEU/apisports | 9d96acea7da2b31a5119bbfd760bfd23299cc981 | [
"MIT"
] | null | null | null | tests/apisports/test_response.py | MikeSmithEU/apisports | 9d96acea7da2b31a5119bbfd760bfd23299cc981 | [
"MIT"
] | null | null | null | tests/apisports/test_response.py | MikeSmithEU/apisports | 9d96acea7da2b31a5119bbfd760bfd23299cc981 | [
"MIT"
] | null | null | null | import json
import pytest
from apisports.response import AbstractResponse, ErrorResponse, HttpErrorResponse, Headers
from helpers import MockResponse, assert_response_ok, assert_response_error
def test_invalidjson():
response = AbstractResponse.create(None, MockResponse("-"))
assert_response_error(response)... | 28.978947 | 98 | 0.707228 | 291 | 2,753 | 6.563574 | 0.199313 | 0.153927 | 0.087958 | 0.106806 | 0.437173 | 0.357592 | 0.196335 | 0.196335 | 0.12356 | 0.092147 | 0 | 0.003951 | 0.172539 | 2,753 | 94 | 99 | 29.287234 | 0.834504 | 0 | 0 | 0.223881 | 0 | 0 | 0.139847 | 0.027969 | 0 | 0 | 0 | 0 | 0.41791 | 1 | 0.104478 | false | 0 | 0.059701 | 0 | 0.164179 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cd00cb7c78f05eea6091dd78d5d5160c57339c93 | 1,179 | py | Python | Day 33/BirthdayParty.py | sandeep-krishna/100DaysOfCode | af4594fb6933e4281d298fa921311ccc07295a7c | [
"MIT"
] | null | null | null | Day 33/BirthdayParty.py | sandeep-krishna/100DaysOfCode | af4594fb6933e4281d298fa921311ccc07295a7c | [
"MIT"
] | null | null | null | Day 33/BirthdayParty.py | sandeep-krishna/100DaysOfCode | af4594fb6933e4281d298fa921311ccc07295a7c | [
"MIT"
] | null | null | null | '''
Mr. X's birthday is in next month. This time he is planning to invite N of his friends. He wants to distribute some chocolates to all of his friends after party. He went to a shop to buy a packet of chocolates.
At chocolate shop, each packet is having different number of chocolates. He wants to buy such a packet wh... | 31.026316 | 210 | 0.737065 | 226 | 1,179 | 3.845133 | 0.411504 | 0.04603 | 0.041427 | 0.034522 | 0.036824 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029567 | 0.196777 | 1,179 | 38 | 211 | 31.026316 | 0.888068 | 0.897371 | 0 | 0 | 0 | 0 | 0.044248 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cd01f3ddb198c280f7cd45c42c20eddb8811c52e | 1,189 | py | Python | jsonsimpleconfig/jscparser/__init__.py | xmzxmz/Python_jsonsimpleconfig | 7e7d15bb91c22156a8a54323b57bb0d5424dd06a | [
"MIT"
] | null | null | null | jsonsimpleconfig/jscparser/__init__.py | xmzxmz/Python_jsonsimpleconfig | 7e7d15bb91c22156a8a54323b57bb0d5424dd06a | [
"MIT"
] | null | null | null | jsonsimpleconfig/jscparser/__init__.py | xmzxmz/Python_jsonsimpleconfig | 7e7d15bb91c22156a8a54323b57bb0d5424dd06a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# * ********************************************************************* *
# * Copyright (C) 2018 by xmz *
# * ********************************************************************* *
__author__ = "Marcin Zelek (marcin.zelek@gmail.com)"
__copyright__ ... | 42.464286 | 79 | 0.16905 | 40 | 1,189 | 4.7 | 0.675 | 0.106383 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005767 | 0.270816 | 1,189 | 27 | 80 | 44.037037 | 0.211073 | 0.370059 | 0 | 0 | 0 | 0 | 0.386957 | 0.104348 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cd0938d66f0836b462ed5903cd0614d0e4e16888 | 2,433 | py | Python | pp/tests.py | MUKEI-SOFT-LLC/mks_pretty_printer | 919df3c5ce0ac4fd66538f136f80b600290d64a8 | [
"MIT"
] | null | null | null | pp/tests.py | MUKEI-SOFT-LLC/mks_pretty_printer | 919df3c5ce0ac4fd66538f136f80b600290d64a8 | [
"MIT"
] | null | null | null | pp/tests.py | MUKEI-SOFT-LLC/mks_pretty_printer | 919df3c5ce0ac4fd66538f136f80b600290d64a8 | [
"MIT"
] | null | null | null | from unittest.case import skip
from bs4.element import NavigableString, PageElement, Tag, TemplateString
from pp.models import BadUrlException, GitHubCode, GithubCodeElement, GithubCodeLine
from django.test import TestCase
# Create your tests here.
class GithubCodeTestCase(TestCase):
def test_about_bad_url_on_con... | 42.684211 | 113 | 0.731196 | 282 | 2,433 | 6.060284 | 0.315603 | 0.105325 | 0.070217 | 0.098303 | 0.530135 | 0.458163 | 0.380339 | 0.231129 | 0.193681 | 0.193681 | 0 | 0.007321 | 0.15783 | 2,433 | 56 | 114 | 43.446429 | 0.826745 | 0.009453 | 0 | 0.177778 | 0 | 0 | 0.117574 | 0 | 0 | 0 | 0 | 0 | 0.311111 | 1 | 0.244444 | false | 0.022222 | 0.088889 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
cd0cc2c5fe158b79d13ce97f936ed8161cf84926 | 345 | py | Python | config.py | GrishonNganga/Spravy | 94e47de5db3d40298dd7f07887fa9fc92e8f538b | [
"MIT"
] | null | null | null | config.py | GrishonNganga/Spravy | 94e47de5db3d40298dd7f07887fa9fc92e8f538b | [
"MIT"
] | null | null | null | config.py | GrishonNganga/Spravy | 94e47de5db3d40298dd7f07887fa9fc92e8f538b | [
"MIT"
] | null | null | null | import os
class Config:
NEWS_API_BASE_URL = 'https://newsapi.org/v2/{}?{}&apiKey={}'
SECRET_KEY = os.environ.get("SECRET_KEY")
NEWS_API_KEY = os.environ.get('NEWS_API_KEY')
class DevConfig(Config):
DEBUG = True
class ProdConfig(Config):
DEBUG = False
configuration = {
'develop': DevConfig,... | 18.157895 | 64 | 0.666667 | 44 | 345 | 5.022727 | 0.568182 | 0.095023 | 0.108597 | 0.135747 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003559 | 0.185507 | 345 | 19 | 65 | 18.157895 | 0.782918 | 0 | 0 | 0 | 0 | 0 | 0.205202 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 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 |
cd0f084e19bf463e65524220ac6688c7aa5073ae | 2,083 | py | Python | Modules/Helpers/Morse.py | cweeks12/KTANE-Solver | b162bd107c0ac90a892659461819214772a04f9d | [
"MIT"
] | null | null | null | Modules/Helpers/Morse.py | cweeks12/KTANE-Solver | b162bd107c0ac90a892659461819214772a04f9d | [
"MIT"
] | null | null | null | Modules/Helpers/Morse.py | cweeks12/KTANE-Solver | b162bd107c0ac90a892659461819214772a04f9d | [
"MIT"
] | null | null | null | class Morse:
DOT = '.'
DASH = '-'
characters = {
(DOT, DASH): 'A',
(DASH, DOT, DOT, DOT): 'B',
(DASH, DOT, DASH, DOT): 'C',
(DASH, DOT, DOT): 'D',
(DOT,): 'E',
(DOT, DOT, DASH, DOT): 'F',
(DASH, DASH, DOT): 'G',
(DOT, DOT, DOT, DOT): 'H',
... | 30.632353 | 88 | 0.445031 | 235 | 2,083 | 3.910638 | 0.293617 | 0.208923 | 0.137106 | 0.065288 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007321 | 0.344215 | 2,083 | 67 | 89 | 31.089552 | 0.665447 | 0 | 0 | 0 | 0 | 0 | 0.06193 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0 | 0 | 0.137931 | 0.017241 | 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 |
cd107fc5c8b2716c0df37ffe7fb22f2b2f0892d9 | 284 | py | Python | exercicios/Mundo2/Contagem_Ano_Novo.py | soualeques/Curso-em-Video-Python | ea651c687ce7daf810fc235ab2fcd0fb6c218a2c | [
"MIT"
] | null | null | null | exercicios/Mundo2/Contagem_Ano_Novo.py | soualeques/Curso-em-Video-Python | ea651c687ce7daf810fc235ab2fcd0fb6c218a2c | [
"MIT"
] | null | null | null | exercicios/Mundo2/Contagem_Ano_Novo.py | soualeques/Curso-em-Video-Python | ea651c687ce7daf810fc235ab2fcd0fb6c218a2c | [
"MIT"
] | null | null | null | '''Faça um program que mostre uma contagem regressiva para os estouros de fogos de artificil.
indo de 10 ate 0 com pausa de 1 segundo entre eles.'''
from time import sleep
for c in range(10, -1, -1):
print(c)
sleep(1)
print('\033[1;36;40mFELIZ ANO NOVO MEUS QUERIDOS!\033[m') | 35.5 | 93 | 0.711268 | 53 | 284 | 3.811321 | 0.773585 | 0.059406 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086207 | 0.183099 | 284 | 8 | 94 | 35.5 | 0.784483 | 0.5 | 0 | 0 | 0 | 0 | 0.350365 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.4 | 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 |
cd15a261b54ac9e497a2d5712f02a36bfbd23819 | 128 | py | Python | Series Patterns/seriespattern3.py | Daksh777/Python-PatternHouse | ab801631c2e1f5ed3cc12a26c959d41a5e51273d | [
"MIT"
] | 61 | 2021-01-07T03:56:25.000Z | 2022-02-26T14:39:52.000Z | PythonPatternPrograms/SeriesPatterns/Pattern3.py | Ankur-586/Printing-Pattern-Programs | 33e534ed66a02705e6cd6bc1992d4818a44d1b6b | [
"MIT"
] | 851 | 2021-04-02T09:08:15.000Z | 2022-01-12T11:26:57.000Z | PythonPatternPrograms/SeriesPatterns/Pattern3.py | Ankur-586/Printing-Pattern-Programs | 33e534ed66a02705e6cd6bc1992d4818a44d1b6b | [
"MIT"
] | 15 | 2021-04-13T06:10:17.000Z | 2022-01-08T05:07:21.000Z | n = 5 # limit or size
for x in range(1, n + 1):
print(" " + str(2 * x - 1), end="")
"""
OUTPUT:
1 3 5 7 9
""" | 11.636364 | 39 | 0.40625 | 24 | 128 | 2.166667 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126582 | 0.382813 | 128 | 11 | 40 | 11.636364 | 0.531646 | 0.101563 | 0 | 0 | 0 | 0 | 0.012346 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 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 |
cd164e6ccf011a5d4acf621f442c1faded8612a7 | 1,065 | py | Python | sfa_dash/api_interface/tests/test_util.py | lboeman/solarforecastarbiter_dashboard | cd4dcffa922625b548d93f83be2b7c10457e1bbe | [
"MIT"
] | 4 | 2020-06-02T01:40:40.000Z | 2021-06-01T20:15:00.000Z | sfa_dash/api_interface/tests/test_util.py | lboeman/solarforecastarbiter_dashboard | cd4dcffa922625b548d93f83be2b7c10457e1bbe | [
"MIT"
] | 181 | 2020-05-14T15:42:55.000Z | 2021-12-02T20:27:44.000Z | sfa_dash/api_interface/tests/test_util.py | lboeman/solarforecastarbiter_dashboard | cd4dcffa922625b548d93f83be2b7c10457e1bbe | [
"MIT"
] | 2 | 2018-11-02T19:32:16.000Z | 2018-11-06T17:06:28.000Z | import pytest
from requests.exceptions import HTTPError
from sfa_dash.api_interface.util import handle_response
from sfa_dash.errors import DataRequestException
@pytest.fixture()
def mock_response(mocker):
def fn(status_code):
def raise_for():
raise HTTPError()
resp = mocker.Mock()
... | 27.307692 | 77 | 0.717371 | 134 | 1,065 | 5.470149 | 0.350746 | 0.095498 | 0.087312 | 0.051842 | 0.351978 | 0.117326 | 0.117326 | 0.117326 | 0 | 0 | 0 | 0.02746 | 0.179343 | 1,065 | 38 | 78 | 28.026316 | 0.811213 | 0 | 0 | 0.142857 | 0 | 0 | 0.050704 | 0.032864 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cd18876c94a86db9164d9592c2dc84afc6c88fec | 924 | py | Python | Dataset/Leetcode/train/2/571.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/2/571.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/2/571.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | class Solution:
def XXX(self, l1: ListNode, l2: ListNode) -> ListNode:
"""
:type l1: ListNode
:type l2: ListNode
:rtype: ListNode
"""
ptr1 = l1
ptr2 = l2
l3 = ListNode(0)
ptr3 = l3
carry_bit = 0
while ptr1 or ptr2:
... | 28 | 58 | 0.455628 | 105 | 924 | 3.866667 | 0.27619 | 0.137931 | 0.081281 | 0.073892 | 0.174877 | 0.1133 | 0 | 0 | 0 | 0 | 0 | 0.079108 | 0.46645 | 924 | 32 | 59 | 28.875 | 0.744422 | 0 | 0 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cd1e00604e9812c1de419e55f758f9c3947b5902 | 8,465 | py | Python | profiles_api/views.py | 2020lg/project-rest-api | 4b82eded7f99465dc43b86fb4727c64b2d9892a8 | [
"MIT"
] | null | null | null | profiles_api/views.py | 2020lg/project-rest-api | 4b82eded7f99465dc43b86fb4727c64b2d9892a8 | [
"MIT"
] | 7 | 2020-06-06T01:51:36.000Z | 2022-02-10T14:34:30.000Z | profiles_api/views.py | 2020lg/project-rest-api | 4b82eded7f99465dc43b86fb4727c64b2d9892a8 | [
"MIT"
] | null | null | null | from rest_framework.views import APIView
from rest_framework.response import Response # standard Response object that's returned when from APIView
from rest_framework import status
from rest_framework import viewsets
from rest_framework.authentication import TokenAuthentication # token authentication is a type of authe... | 56.812081 | 294 | 0.636031 | 1,003 | 8,465 | 5.31007 | 0.279163 | 0.034172 | 0.028727 | 0.022343 | 0.139504 | 0.110026 | 0.092002 | 0.078107 | 0.078107 | 0.078107 | 0 | 0.001011 | 0.299232 | 8,465 | 148 | 295 | 57.195946 | 0.896831 | 0.414294 | 0 | 0.240964 | 0 | 0 | 0.10721 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.144578 | false | 0 | 0.144578 | 0 | 0.662651 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
cd269378ae54bf3e51acdad48baacfaca3183b21 | 1,162 | py | Python | ScalePairs.py | cvsmith/KosBeat | b563b3a1ad607442e6d6b7b8e66b842b9102ccd1 | [
"MIT"
] | null | null | null | ScalePairs.py | cvsmith/KosBeat | b563b3a1ad607442e6d6b7b8e66b842b9102ccd1 | [
"MIT"
] | null | null | null | ScalePairs.py | cvsmith/KosBeat | b563b3a1ad607442e6d6b7b8e66b842b9102ccd1 | [
"MIT"
] | null | null | null | # ScalePairs.py
# Chromatic definitions of different scale types
# Guide:
# C:1, Db:2, D:3, Eb:4, E:5, F:6, Gb:7, G:8, Ab:9, A:10, Bb:11, B:12
scalePairs = []
# Copied from NodeBeat's "NodeBeat Classic"
scalePairs += [("KosBeat\nClassic", [1, 3, 6, 8, 10])]
scalePairs += [("Major", [1, 3, 5, 6, 8, 10, 12])]
scalePair... | 46.48 | 69 | 0.541308 | 203 | 1,162 | 3.098522 | 0.285714 | 0.041335 | 0.033386 | 0.071542 | 0.241653 | 0.160572 | 0.057234 | 0.057234 | 0 | 0 | 0 | 0.162551 | 0.163511 | 1,162 | 25 | 70 | 46.48 | 0.484568 | 0.152324 | 0 | 0 | 0 | 0 | 0.182653 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cd2bc108c580a0688d2744ae580a8e3a922fc60a | 332 | py | Python | apps/users/config.py | fangMint/django_web | cf50df6c1a2358996620ac83ffa99b31472d3c07 | [
"AFL-3.0"
] | null | null | null | apps/users/config.py | fangMint/django_web | cf50df6c1a2358996620ac83ffa99b31472d3c07 | [
"AFL-3.0"
] | null | null | null | apps/users/config.py | fangMint/django_web | cf50df6c1a2358996620ac83ffa99b31472d3c07 | [
"AFL-3.0"
] | 1 | 2021-11-22T10:15:50.000Z | 2021-11-22T10:15:50.000Z | # ==================================
# Author : fang
# Time : 2020/5/28 14:33
# Email : zhen.fang@qdreamer.com
# File : config.py
# Software : PyCharm
# ==================================
TOKEN_SIGN = "ihudongketang"
TOKEN_ALGORITHM = 'HS256'
TOKEN_EXP = 86400 # token超时时间(/s) 60 * 60 * 24(一天)
ORIGINAL_PW... | 25.538462 | 51 | 0.506024 | 36 | 332 | 4.555556 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113553 | 0.177711 | 332 | 12 | 52 | 27.666667 | 0.487179 | 0.653614 | 0 | 0 | 0 | 0 | 0.226415 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cd2d11638f2a6b1c2d013630647840d83f31571b | 1,555 | py | Python | invenio_users_resources/services/results.py | mb-wali/invenio-users-resources | 1263d4f47a129b38c6a3854904b720b28facdd98 | [
"MIT"
] | null | null | null | invenio_users_resources/services/results.py | mb-wali/invenio-users-resources | 1263d4f47a129b38c6a3854904b720b28facdd98 | [
"MIT"
] | 7 | 2022-01-27T09:39:58.000Z | 2022-03-29T11:33:52.000Z | invenio_users_resources/services/results.py | mb-wali/invenio-users-resources | 1263d4f47a129b38c6a3854904b720b28facdd98 | [
"MIT"
] | 4 | 2022-01-27T10:42:57.000Z | 2022-02-16T11:53:16.000Z | # -*- coding: utf-8 -*-
#
# Copyright (C) 2022 CERN.
#
# Invenio-Users-Resources is free software; you can redistribute it and/or
# modify it under the terms of the MIT License; see LICENSE file for more
# details.
"""Avatar results for users and groups."""
from datetime import datetime, timedelta
from io import Byte... | 24.68254 | 76 | 0.600643 | 197 | 1,555 | 4.598985 | 0.446701 | 0.054084 | 0.057395 | 0.039735 | 0.081678 | 0.081678 | 0.081678 | 0.081678 | 0 | 0 | 0 | 0.011754 | 0.288746 | 1,555 | 62 | 77 | 25.080645 | 0.807414 | 0.306752 | 0 | 0.176471 | 0 | 0 | 0.082846 | 0.046784 | 0 | 0 | 0 | 0 | 0 | 1 | 0.205882 | false | 0 | 0.088235 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cd35f0a9e4c92c2899fffdee8ef764e9ec91e98c | 2,641 | py | Python | lib/python3.7/site-packages/gatco_acl/acl.py | teomoney1999/ACT_gatco_project | a804a6348efeab90f3114606cfbc73aaebab63e1 | [
"MIT"
] | null | null | null | lib/python3.7/site-packages/gatco_acl/acl.py | teomoney1999/ACT_gatco_project | a804a6348efeab90f3114606cfbc73aaebab63e1 | [
"MIT"
] | null | null | null | lib/python3.7/site-packages/gatco_acl/acl.py | teomoney1999/ACT_gatco_project | a804a6348efeab90f3114606cfbc73aaebab63e1 | [
"MIT"
] | 2 | 2020-03-24T08:08:40.000Z | 2021-06-21T08:20:09.000Z | from .models import Ability
from .exceptions import AccessDenied
class ACL(object):
"""This class is used to control the Abilities Integration to one or more Gatco applications"""
def __init__(self, app=None, **kwargs):
self._authorization_method = None
self.get_current_user = self.default_us... | 33.43038 | 99 | 0.619841 | 313 | 2,641 | 5.083067 | 0.28754 | 0.076053 | 0.072282 | 0.045255 | 0.144563 | 0.10748 | 0.075424 | 0.075424 | 0.075424 | 0.075424 | 0 | 0.001616 | 0.297236 | 2,641 | 79 | 100 | 33.43038 | 0.855603 | 0.159031 | 0 | 0.086957 | 0 | 0 | 0.097222 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217391 | false | 0 | 0.043478 | 0.021739 | 0.434783 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
cd3895441f6a8b3955bc187ff9b32f39edb52613 | 930 | py | Python | toby_dev_blog/api/resources/user/user_api.py | chodar89/toby-dev-blog-api | 88665a0026ef86419533c3867d6f68669c2d9567 | [
"MIT"
] | 1 | 2021-05-30T12:00:27.000Z | 2021-05-30T12:00:27.000Z | toby_dev_blog/api/resources/user/user_api.py | chodar89/toby-dev-blog | 88665a0026ef86419533c3867d6f68669c2d9567 | [
"MIT"
] | null | null | null | toby_dev_blog/api/resources/user/user_api.py | chodar89/toby-dev-blog | 88665a0026ef86419533c3867d6f68669c2d9567 | [
"MIT"
] | null | null | null | """`User` endpoints"""
from flask.views import MethodView
from flask_smorest import Blueprint
from toby_dev_blog.extensions import db
from toby_dev_blog.models import User
from toby_dev_blog.schemas import UserSchema
blp_user = Blueprint(
"users", "users", url_prefix="/users", description="Operations on users"
)
... | 27.352941 | 76 | 0.692473 | 121 | 930 | 5.181818 | 0.446281 | 0.055821 | 0.052632 | 0.07177 | 0.124402 | 0.124402 | 0.124402 | 0.124402 | 0 | 0 | 0 | 0.007884 | 0.18172 | 930 | 33 | 77 | 28.181818 | 0.816032 | 0.180645 | 0 | 0.105263 | 0 | 0 | 0.054945 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.263158 | 0 | 0.526316 | 0.105263 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
cd3babf310eff8fa117495500f26be0b9ee92a84 | 3,111 | py | Python | programs/analysis_opensnp/edit_html.py | CORDEA/analysis_of_1000genomes-data | eb9a9f3387453e9f4561e0c2e6776cb4c87daefb | [
"Apache-2.0"
] | null | null | null | programs/analysis_opensnp/edit_html.py | CORDEA/analysis_of_1000genomes-data | eb9a9f3387453e9f4561e0c2e6776cb4c87daefb | [
"Apache-2.0"
] | null | null | null | programs/analysis_opensnp/edit_html.py | CORDEA/analysis_of_1000genomes-data | eb9a9f3387453e9f4561e0c2e6776cb4c87daefb | [
"Apache-2.0"
] | null | null | null | #!/bin/env python
# encoding:utf-8
#
# Author: CORDEA
# Created: 2014-09-01
#
import sys, re
from collections import OrderedDict
outFile = open("userinfo.csv", "w")
for i in range(1,2601):
try:
infile = open("html/user" + str(i) + ".html", "r")
lines = infile.readlines()
infile.close()... | 34.566667 | 73 | 0.384121 | 325 | 3,111 | 3.676923 | 0.310769 | 0.065272 | 0.060251 | 0.070293 | 0.189958 | 0.14477 | 0.14477 | 0.14477 | 0 | 0 | 0 | 0.028756 | 0.452266 | 3,111 | 89 | 74 | 34.955056 | 0.672535 | 0.046287 | 0 | 0.282051 | 0 | 0 | 0.092599 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.038462 | 0.025641 | null | null | 0.012821 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
cd493dbbff6c6d7350b737c0b2b51d6238b30b43 | 752 | py | Python | kafka_influxdb/tests/encoder_test/test_heapster_json_encoder.py | gldnspud/kafka-influxdb | c54ca256ecabf49b2c347086b1bd4e02e30e1186 | [
"Apache-2.0"
] | 224 | 2015-01-14T17:26:48.000Z | 2022-03-22T20:03:56.000Z | kafka_influxdb/tests/encoder_test/test_heapster_json_encoder.py | gldnspud/kafka-influxdb | c54ca256ecabf49b2c347086b1bd4e02e30e1186 | [
"Apache-2.0"
] | 123 | 2015-02-28T18:46:47.000Z | 2021-06-22T16:14:48.000Z | kafka_influxdb/tests/encoder_test/test_heapster_json_encoder.py | gldnspud/kafka-influxdb | c54ca256ecabf49b2c347086b1bd4e02e30e1186 | [
"Apache-2.0"
] | 59 | 2015-02-26T10:41:07.000Z | 2020-12-22T08:04:45.000Z | import unittest
from kafka_influxdb.encoder import heapster_json_encoder
class TestHeapsterJsonEncoder(unittest.TestCase):
def setUp(self):
self.encoder = heapster_json_encoder.Encoder()
def testEncoder(self):
msg = b'{ "MetricsName":"memory/major_page_faults","MetricsValue":{"value":56}, "... | 44.235294 | 241 | 0.765957 | 72 | 752 | 7.791667 | 0.583333 | 0.042781 | 0.067736 | 0.074866 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.162328 | 0.131649 | 752 | 16 | 242 | 47 | 0.696784 | 0 | 0 | 0 | 0 | 0.090909 | 0.472074 | 0.43617 | 0 | 0 | 0 | 0 | 0.090909 | 1 | 0.181818 | false | 0 | 0.181818 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cd4d5e6ea9bdd91fcbefca177c79cccb552b34d0 | 264 | py | Python | hail/python/cluster-tests/cluster-write-many-partitions.py | tdeboer-ilmn/hail | 98fffc9b4e13cd5d5ced8322112894361d0b7052 | [
"MIT"
] | 789 | 2016-09-05T04:14:25.000Z | 2022-03-30T09:51:54.000Z | hail/python/cluster-tests/cluster-write-many-partitions.py | tdeboer-ilmn/hail | 98fffc9b4e13cd5d5ced8322112894361d0b7052 | [
"MIT"
] | 5,724 | 2016-08-29T18:58:40.000Z | 2022-03-31T23:49:42.000Z | hail/python/cluster-tests/cluster-write-many-partitions.py | tdeboer-ilmn/hail | 98fffc9b4e13cd5d5ced8322112894361d0b7052 | [
"MIT"
] | 233 | 2016-08-31T20:42:38.000Z | 2022-02-17T16:42:39.000Z | import hail as hl
ht = hl.utils.range_table(1_000_000, n_partitions=10_000)
# use HDFS so as not to create garbage on GS
ht.write('/tmp/many_partitions.ht')
mt = hl.utils.range_matrix_table(1_000_000, 2, n_partitions=10_000)
mt.write('/tmp/many_partitions.mt')
| 26.4 | 67 | 0.768939 | 52 | 264 | 3.653846 | 0.538462 | 0.073684 | 0.126316 | 0.126316 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106383 | 0.109848 | 264 | 9 | 68 | 29.333333 | 0.702128 | 0.159091 | 0 | 0 | 0 | 0 | 0.209091 | 0.209091 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cd4ec3aa3b36fd0ea77057b352abcf6c4e7dbdcb | 464 | py | Python | src/dev/steve/Escape_T6/logs/statsDistances.py | wvat/NTRTsim | 0443cbd542e12e23c04adf79ea0d8d003c428baa | [
"Apache-2.0"
] | 148 | 2015-01-08T22:44:00.000Z | 2022-03-19T18:42:48.000Z | src/dev/steve/Escape_T6/logs/statsDistances.py | wvat/NTRTsim | 0443cbd542e12e23c04adf79ea0d8d003c428baa | [
"Apache-2.0"
] | 107 | 2015-01-02T16:41:42.000Z | 2021-06-14T22:09:19.000Z | src/dev/steve/Escape_T6/logs/statsDistances.py | wvat/NTRTsim | 0443cbd542e12e23c04adf79ea0d8d003c428baa | [
"Apache-2.0"
] | 86 | 2015-01-06T07:02:36.000Z | 2022-02-28T17:36:14.000Z | """ Prints the min, avg, max of the numbers on each line """
import sys
try:
f = open(sys.argv[1], 'r')
lines = 0
sum = 0
max = 0
min = 9999999
for line in f:
lines += 1
x = float(line.partition(',')[0])
sum += x
if x < min:
min = x
if x > ma... | 18.56 | 60 | 0.452586 | 67 | 464 | 3.134328 | 0.477612 | 0.038095 | 0.038095 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046595 | 0.398707 | 464 | 24 | 61 | 19.333333 | 0.706093 | 0 | 0 | 0 | 0 | 0 | 0.042184 | 0 | 0 | 0 | 0 | 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 |
cd53f8217ba2be4482739f1177777ed52bce6886 | 7,672 | py | Python | pysnmp-with-texts/TIMETRA-SAS-FILTER-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/TIMETRA-SAS-FILTER-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/TIMETRA-SAS-FILTER-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module TIMETRA-SAS-FILTER-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/TIMETRA-SAS-FILTER-MIB
# Produced by pysmi-0.3.4 at Wed May 1 15:21:39 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (d... | 144.754717 | 945 | 0.79927 | 823 | 7,672 | 7.447145 | 0.341434 | 0.033284 | 0.058248 | 0.005874 | 0.378855 | 0.264154 | 0.235764 | 0.210312 | 0.210312 | 0.208354 | 0 | 0.052602 | 0.085636 | 7,672 | 52 | 946 | 147.538462 | 0.821098 | 0.044056 | 0 | 0 | 0 | 0.090909 | 0.38785 | 0.036177 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cd561ad55c3e422494683cda9467c613d4caa53a | 329 | py | Python | lynxfall/core/classes.py | Fates-List-Archive/lynxfall | cf0a4671e5a2cc7a354d0908c09f4840fef4037c | [
"MIT"
] | null | null | null | lynxfall/core/classes.py | Fates-List-Archive/lynxfall | cf0a4671e5a2cc7a354d0908c09f4840fef4037c | [
"MIT"
] | null | null | null | lynxfall/core/classes.py | Fates-List-Archive/lynxfall | cf0a4671e5a2cc7a354d0908c09f4840fef4037c | [
"MIT"
] | null | null | null | # Singleton (from guido)
class Singleton(object):
def __new__(cls, *args, **kwds):
it = cls.__dict__.get("__it__")
if it is not None:
return it
cls.__it__ = it = object.__new__(cls)
it.init(*args, **kwds)
return it
def init(self, *args, **kwds):
pass
... | 23.5 | 45 | 0.528875 | 41 | 329 | 3.756098 | 0.512195 | 0.155844 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.340426 | 329 | 13 | 46 | 25.307692 | 0.709677 | 0.066869 | 0 | 0.2 | 0 | 0 | 0.019672 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.1 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
cd5a1bb7219c5969ad6a9e828d29030d992d684f | 2,721 | py | Python | core/admin.py | pugaru/lmsimpacta | 1e11f8610fe3f91fc1d236121f5b3ddbc132bc01 | [
"MIT"
] | null | null | null | core/admin.py | pugaru/lmsimpacta | 1e11f8610fe3f91fc1d236121f5b3ddbc132bc01 | [
"MIT"
] | null | null | null | core/admin.py | pugaru/lmsimpacta | 1e11f8610fe3f91fc1d236121f5b3ddbc132bc01 | [
"MIT"
] | null | null | null | from django.contrib import admin
from django import forms
from core.models import Curso,Aluno,Professor,Disciplina
from django.contrib.auth.admin import UserAdmin
from django.contrib import admin
from .models import Post
admin.site.register(Post)
class NovoAlunoForm(forms.ModelForm):
class Meta:
... | 29.901099 | 88 | 0.593164 | 275 | 2,721 | 5.789091 | 0.243636 | 0.040201 | 0.045226 | 0.057789 | 0.45603 | 0.418342 | 0.374372 | 0.11809 | 0.059045 | 0.059045 | 0 | 0.002972 | 0.257993 | 2,721 | 90 | 89 | 30.233333 | 0.785537 | 0.009555 | 0 | 0.346667 | 0 | 0 | 0.136765 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026667 | false | 0.026667 | 0.08 | 0 | 0.586667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
cd5d48e6d935ebe9cf92bc5eb85779c415b68d7b | 3,189 | py | Python | src/mitre/securingai/restapi/job/interface.py | usnistgov/dioptra | 08a08e96c27787915bafc75a483431333e2c70ca | [
"CC-BY-4.0"
] | 14 | 2021-06-17T15:16:12.000Z | 2021-11-08T10:25:37.000Z | src/mitre/securingai/restapi/job/interface.py | usnistgov/dioptra | 08a08e96c27787915bafc75a483431333e2c70ca | [
"CC-BY-4.0"
] | 7 | 2021-09-20T20:20:26.000Z | 2022-03-30T13:17:43.000Z | src/mitre/securingai/restapi/job/interface.py | usnistgov/dioptra | 08a08e96c27787915bafc75a483431333e2c70ca | [
"CC-BY-4.0"
] | 4 | 2021-06-29T16:52:42.000Z | 2022-01-21T16:56:45.000Z | # This Software (Dioptra) is being made available as a public service by the
# National Institute of Standards and Technology (NIST), an Agency of the United
# States Department of Commerce. This software was developed in part by employees of
# NIST and in part by NIST contractors. Copyright in portions of this softwar... | 43.094595 | 88 | 0.721543 | 465 | 3,189 | 4.894624 | 0.384946 | 0.02109 | 0.00703 | 0.007909 | 0.185413 | 0.173989 | 0.094025 | 0.073814 | 0.073814 | 0.073814 | 0 | 0.007624 | 0.218564 | 3,189 | 73 | 89 | 43.684932 | 0.905698 | 0.789903 | 0 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.166667 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cd618c9437dce585c86a31966dc355cfac90756b | 2,136 | py | Python | src/benchsuite/core/sessionmanager.py | benchmarking-suite/benchmarking-common | 97a075cc353e5237d0f1507d339a49e8c8afe9ac | [
"Apache-2.0"
] | 1 | 2018-07-05T09:15:54.000Z | 2018-07-05T09:15:54.000Z | src/benchsuite/core/sessionmanager.py | benchmarking-suite/benchmarking-common | 97a075cc353e5237d0f1507d339a49e8c8afe9ac | [
"Apache-2.0"
] | 1 | 2018-06-06T09:00:17.000Z | 2018-06-06T09:00:17.000Z | src/benchsuite/core/sessionmanager.py | benchmarking-suite/benchsuite-core | 97a075cc353e5237d0f1507d339a49e8c8afe9ac | [
"Apache-2.0"
] | null | null | null | # Benchmarking Suite
# Copyright 2014-2017 Engineering Ingegneria Informatica S.p.A.
#
# 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 ... | 32.861538 | 123 | 0.715356 | 286 | 2,136 | 5.258741 | 0.451049 | 0.079787 | 0.05984 | 0.061835 | 0.053191 | 0.053191 | 0.053191 | 0.053191 | 0.053191 | 0 | 0 | 0.007528 | 0.191479 | 2,136 | 65 | 124 | 32.861538 | 0.863347 | 0.33661 | 0 | 0 | 0 | 0 | 0.162974 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.241379 | false | 0 | 0.137931 | 0.034483 | 0.482759 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
cd6d84f131267bf6ad748ec3b0cfe01cb43fd102 | 1,397 | py | Python | src/dcss/actions/menuchoice.py | jsuagee/dcss-ai-wrapper | da446a88d4f2ca290fe8477773373ce7c9bb88a7 | [
"MIT"
] | 29 | 2020-03-06T05:55:15.000Z | 2022-01-24T19:10:23.000Z | src/dcss/actions/menuchoice.py | jsuagee/dcss-ai-wrapper | da446a88d4f2ca290fe8477773373ce7c9bb88a7 | [
"MIT"
] | 22 | 2020-04-06T19:17:32.000Z | 2022-03-08T02:42:38.000Z | src/dcss/actions/menuchoice.py | jsuagee/dcss-ai-wrapper | da446a88d4f2ca290fe8477773373ce7c9bb88a7 | [
"MIT"
] | 10 | 2020-03-06T03:04:35.000Z | 2022-03-24T18:08:17.000Z | from enum import Enum
class MenuChoice(Enum):
"""
Menu choices are always a lower or upper case letter
"""
NONE = -1
LOWER_A = 0
LOWER_B = 1
LOWER_C = 2
LOWER_D = 3
LOWER_E = 4
LOWER_F = 5
LOWER_G = 6
LOWER_H = 7
LOWER_I = 8
LOWER_J = 9
LOWER_K = 10
LOWE... | 17.246914 | 56 | 0.559771 | 228 | 1,397 | 3.149123 | 0.592105 | 0.016713 | 0.036212 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141869 | 0.379384 | 1,397 | 81 | 57 | 17.246914 | 0.686275 | 0.037223 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013699 | false | 0 | 0.013699 | 0.013699 | 0.986301 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
cd72ac1060605754ce6c91763b6b33dbb0203ff3 | 919 | py | Python | app/app.py | parthpankajtiwary/azure-image-analysis-app | ebd76d3275b63de25274283e6b669b187d6c44d2 | [
"MIT"
] | 1 | 2021-07-11T09:31:09.000Z | 2021-07-11T09:31:09.000Z | app/app.py | parthpankajtiwary/azure-image-analysis-app | ebd76d3275b63de25274283e6b669b187d6c44d2 | [
"MIT"
] | null | null | null | app/app.py | parthpankajtiwary/azure-image-analysis-app | ebd76d3275b63de25274283e6b669b187d6c44d2 | [
"MIT"
] | null | null | null | import os
import io
import sys
import numpy as np
from array import array
import cv2
from PIL import Image, ImageDraw
import streamlit as st
from image_processing import *
from azure_api import *
MAGE_EMOJI_URL = "https://emojipedia-us.s3.dualstack.us-west-1.amazonaws.com/thumbs/240/twitter/259/mage_1f9d9.png"
# Set... | 24.184211 | 115 | 0.739935 | 142 | 919 | 4.65493 | 0.528169 | 0.068079 | 0.036309 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015385 | 0.151251 | 919 | 37 | 116 | 24.837838 | 0.832051 | 0.02938 | 0 | 0.076923 | 0 | 0.038462 | 0.203371 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.384615 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
cd735e0454cb780d60cde4fdc5f6c7d916ad3d69 | 1,736 | py | Python | python/refreshSource/refreshSource.py | ped998/scripts | 0dcaaf47f9676210e1c972a5d59d8d0de82a1d93 | [
"Apache-2.0"
] | null | null | null | python/refreshSource/refreshSource.py | ped998/scripts | 0dcaaf47f9676210e1c972a5d59d8d0de82a1d93 | [
"Apache-2.0"
] | null | null | null | python/refreshSource/refreshSource.py | ped998/scripts | 0dcaaf47f9676210e1c972a5d59d8d0de82a1d93 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
"""refresh protection source"""
### import pyhesity wrapper module
from pyhesity import *
### command line arguments
import argparse
parser = argparse.ArgumentParser()
parser.add_argument('-v', '--vip', type=str, required=True) # cluster to connect to
parser.add_argument('-u', '--user... | 32.754717 | 99 | 0.691244 | 204 | 1,736 | 5.843137 | 0.436275 | 0.045302 | 0.08557 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.167051 | 1,736 | 52 | 100 | 33.384615 | 0.824343 | 0.138825 | 0 | 0.055556 | 0 | 0 | 0.199187 | 0.058266 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027778 | false | 0.083333 | 0.055556 | 0 | 0.138889 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
cd836a612e477d983bc9d66e712610b97a40bf49 | 3,396 | py | Python | .leetcode/25.reverse-nodes-in-k-group.py | KuiyuanFu/PythonLeetCode | 8962df2fa838eb7ae48fa59de272ba55a89756d8 | [
"MIT"
] | null | null | null | .leetcode/25.reverse-nodes-in-k-group.py | KuiyuanFu/PythonLeetCode | 8962df2fa838eb7ae48fa59de272ba55a89756d8 | [
"MIT"
] | null | null | null | .leetcode/25.reverse-nodes-in-k-group.py | KuiyuanFu/PythonLeetCode | 8962df2fa838eb7ae48fa59de272ba55a89756d8 | [
"MIT"
] | null | null | null | # @lc app=leetcode id=25 lang=python3
#
# [25] Reverse Nodes in k-Group
#
# https://leetcode.com/problems/reverse-nodes-in-k-group/description/
#
# algorithms
# Hard (45.33%)
# Likes: 3501
# Dislikes: 400
# Total Accepted: 342.2K
# Total Submissions: 753.9K
# Testcase Example: '[1,2,3,4,5]\n2'
#
# Given a linked... | 19.630058 | 79 | 0.532391 | 504 | 3,396 | 3.559524 | 0.289683 | 0.015608 | 0.020067 | 0.026756 | 0.295429 | 0.200669 | 0.200669 | 0.200669 | 0.172798 | 0.172798 | 0 | 0.06113 | 0.301531 | 3,396 | 173 | 80 | 19.630058 | 0.695194 | 0.417845 | 0 | 0.354839 | 0 | 0 | 0.150663 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016129 | false | 0.032258 | 0.016129 | 0 | 0.096774 | 0.516129 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
cd8625ec215a451f6694972e6785013d21e97766 | 749 | py | Python | njzjzwikibot/bot.py | njzjz/njzjzwikibot | d519ed6fad00ff8cd2f6127655aac4adf941ec2a | [
"MIT"
] | 2 | 2021-11-19T02:42:46.000Z | 2021-11-19T02:42:49.000Z | njzjzwikibot/bot.py | njzjz/njzjzwikibot | d519ed6fad00ff8cd2f6127655aac4adf941ec2a | [
"MIT"
] | 1 | 2020-10-16T11:32:16.000Z | 2020-10-16T11:32:16.000Z | njzjzwikibot/bot.py | njzjz/njzjzwikibot | d519ed6fad00ff8cd2f6127655aac4adf941ec2a | [
"MIT"
] | null | null | null | import os
os.environ['PYWIKIBOT_NO_USER_CONFIG']='1'
import pywikibot
def login(code, fam, user, password):
site = pywikibot.Site(
code=code,
fam=fam,
user=user,
)
pywikibot.data.api.LoginManager(site=site,user=user,password=password).login()
return site
def create_page(s... | 26.75 | 82 | 0.659546 | 94 | 749 | 5.170213 | 0.414894 | 0.065844 | 0.053498 | 0.069959 | 0.131687 | 0.131687 | 0 | 0 | 0 | 0 | 0 | 0.001686 | 0.208278 | 749 | 28 | 83 | 26.75 | 0.817875 | 0 | 0 | 0 | 0 | 0 | 0.156 | 0.128 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0.095238 | 0.095238 | 0 | 0.238095 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
cd8d6b1c967ae6d27f822cd5d56063d5ce1bd59b | 30,878 | py | Python | codes/src/util/filter.py | CorbinFoucart/FEMexperiment | 9bad34d9ed7cbdd740e3a4b67f433779dd53b264 | [
"MIT"
] | 2 | 2018-05-26T22:09:32.000Z | 2018-06-25T21:46:32.000Z | codes/src/util/filter.py | CorbinFoucart/FEMexperiment | 9bad34d9ed7cbdd740e3a4b67f433779dd53b264 | [
"MIT"
] | 16 | 2018-05-17T21:38:44.000Z | 2022-03-11T23:21:25.000Z | codes/src/util/filter.py | CorbinFoucart/FEMexperiment | 9bad34d9ed7cbdd740e3a4b67f433779dd53b264 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Thu Jul 12 13:28:39 2012
@author: empeeu
"""
import numpy as np
import scipy as sp
import src.master.mk_basis_nodal as mkbn
import src.master.mk_master as mkm
import copy
import os
import pdb
def mk_filter(master, forder=2, degcut=0, alpha=None):
"""
Create the filterin... | 38.938209 | 94 | 0.54113 | 4,227 | 30,878 | 3.910811 | 0.130116 | 0.010284 | 0.011978 | 0.011978 | 0.601476 | 0.56881 | 0.535418 | 0.530518 | 0.510193 | 0.500877 | 0 | 0.023683 | 0.335417 | 30,878 | 792 | 95 | 38.987374 | 0.781882 | 0.161377 | 0 | 0.476684 | 0 | 0 | 0.005834 | 0 | 0 | 0 | 0 | 0.001263 | 0 | 0 | null | null | 0.002591 | 0.018135 | null | null | 0.010363 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
cd905c092eb6b8b9d9faa85d2409a778651b886d | 569 | py | Python | polltask/tasks/task_execute_system_opt.py | xuweiliang/Codelibrary | 54e45b2daa205132c05b0ff5a2c3db7fca2853a7 | [
"Apache-2.0"
] | null | null | null | polltask/tasks/task_execute_system_opt.py | xuweiliang/Codelibrary | 54e45b2daa205132c05b0ff5a2c3db7fca2853a7 | [
"Apache-2.0"
] | null | null | null | polltask/tasks/task_execute_system_opt.py | xuweiliang/Codelibrary | 54e45b2daa205132c05b0ff5a2c3db7fca2853a7 | [
"Apache-2.0"
] | null | null | null | #-*- coding: utf-8 -*-
from polltask.task import Task
class TaskExecuteSystemOpt(Task):
def __init__(self, status_queue):
super(TaskExecuteSystemOpt, self).__init__(status_queue,
'TaskExecuteSystemOpt',
... | 33.470588 | 102 | 0.521968 | 47 | 569 | 6 | 0.617021 | 0.095745 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002825 | 0.377856 | 569 | 16 | 103 | 35.5625 | 0.793785 | 0.036907 | 0 | 0 | 0 | 0 | 0.163004 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
26949abf7f9b3d3df86cf0a2d07539f2850a991a | 2,711 | py | Python | src/calibration/image_input_fn.py | Pomiculture/YOLOv4-Vitis-AI | 65f726cab14778f006b2f0ab81345e5fda1cb616 | [
"Apache-2.0"
] | 2 | 2021-08-23T06:26:03.000Z | 2022-01-03T14:45:40.000Z | src/calibration/image_input_fn.py | maxpark/YOLOv4-Vitis-AI | 65f726cab14778f006b2f0ab81345e5fda1cb616 | [
"Apache-2.0"
] | null | null | null | src/calibration/image_input_fn.py | maxpark/YOLOv4-Vitis-AI | 65f726cab14778f006b2f0ab81345e5fda1cb616 | [
"Apache-2.0"
] | 1 | 2021-12-08T08:50:53.000Z | 2021-12-08T08:50:53.000Z | # Copyright 2020 Xilinx Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | 37.136986 | 111 | 0.641092 | 356 | 2,711 | 4.786517 | 0.41573 | 0.04108 | 0.024648 | 0.018779 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010927 | 0.156031 | 2,711 | 72 | 112 | 37.652778 | 0.733829 | 0.428993 | 0 | 0 | 0 | 0 | 0.133333 | 0 | 0 | 0 | 0 | 0.013889 | 0 | 1 | 0.068966 | false | 0 | 0.103448 | 0 | 0.241379 | 0.034483 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
26a3371aa9d264aaa493d77cdc8bff58d5a556b8 | 889 | py | Python | hackerrankPython/nested_list.py | bhetey/hackerrank_python | 0aec95fdee34216f7e975b954649ddd3776e08f2 | [
"MIT"
] | null | null | null | hackerrankPython/nested_list.py | bhetey/hackerrank_python | 0aec95fdee34216f7e975b954649ddd3776e08f2 | [
"MIT"
] | null | null | null | hackerrankPython/nested_list.py | bhetey/hackerrank_python | 0aec95fdee34216f7e975b954649ddd3776e08f2 | [
"MIT"
] | null | null | null | print " PROBLEM : \n \
Given the names and grades for each student in a Physics class of N students, \n \
store them in a nested list and print the name(s) of any student(s) having the second lowest grade. \
------------------------------------------------------------"
# create a nested list
numberOfStudent = int(raw_... | 52.294118 | 114 | 0.689539 | 122 | 889 | 4.934426 | 0.401639 | 0.046512 | 0.084718 | 0.063123 | 0.199336 | 0.13289 | 0.13289 | 0 | 0 | 0 | 0 | 0.011827 | 0.143982 | 889 | 16 | 115 | 55.5625 | 0.779238 | 0.022497 | 0 | 0 | 0 | 0.071429 | 0.083141 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.214286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
26afcd6b167012ffbd1b6aa6d57b82a3e78b1280 | 11,601 | py | Python | keystone/contrib/roles/routers.py | TampereTC/tre-smartcity-keystone | e2d0adc25165eef102c87d7991fb1a595680fda6 | [
"Apache-2.0"
] | null | null | null | keystone/contrib/roles/routers.py | TampereTC/tre-smartcity-keystone | e2d0adc25165eef102c87d7991fb1a595680fda6 | [
"Apache-2.0"
] | null | null | null | keystone/contrib/roles/routers.py | TampereTC/tre-smartcity-keystone | e2d0adc25165eef102c87d7991fb1a595680fda6 | [
"Apache-2.0"
] | null | null | null | # Copyright (C) 2014 Universidad Politecnica de Madrid
#
# 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 la... | 43.612782 | 133 | 0.650892 | 1,184 | 11,601 | 5.95777 | 0.125 | 0.069889 | 0.087326 | 0.091863 | 0.731783 | 0.713638 | 0.690814 | 0.646725 | 0.602779 | 0.557698 | 0 | 0.002781 | 0.256099 | 11,601 | 265 | 134 | 43.777358 | 0.8146 | 0.077062 | 0 | 0.565854 | 0 | 0 | 0.234714 | 0.132713 | 0 | 0 | 0 | 0 | 0 | 1 | 0.004878 | false | 0 | 0.019512 | 0 | 0.034146 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
26b9c5be7e9eb05939a9b6d2561e24e4f9084d83 | 1,769 | py | Python | src/util.py | ClaasM/Masters-Thesis | c9106f1747dc6d7d0d1199a386315f6cb389b832 | [
"Apache-2.0"
] | null | null | null | src/util.py | ClaasM/Masters-Thesis | c9106f1747dc6d7d0d1199a386315f6cb389b832 | [
"Apache-2.0"
] | null | null | null | src/util.py | ClaasM/Masters-Thesis | c9106f1747dc6d7d0d1199a386315f6cb389b832 | [
"Apache-2.0"
] | null | null | null | import gzip
import pickle
import validators
def gzip_to_plaintext(path, destination):
"""
Saves a file unzipped and unpickled, for manual inspection
:param path: input file path
:param destination: where the plain text file will be saved
:return: None
"""
with gzip.open(path, "rb") as infi... | 24.569444 | 81 | 0.622386 | 240 | 1,769 | 4.525 | 0.354167 | 0.044199 | 0.066298 | 0.088398 | 0.302947 | 0.302947 | 0.28453 | 0.12523 | 0.12523 | 0.12523 | 0 | 0.017372 | 0.251555 | 1,769 | 71 | 82 | 24.915493 | 0.80287 | 0.216507 | 0 | 0.153846 | 0 | 0 | 0.027439 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.205128 | false | 0 | 0.076923 | 0 | 0.487179 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
26bd027342e001e8529a2494ffd7579c3c4d4d6a | 2,492 | py | Python | brainrender/Utils/image.py | maithamn/BrainRender | 9359ccc5b278f58ee3124bcf75b9ebefe0378bbc | [
"MIT"
] | null | null | null | brainrender/Utils/image.py | maithamn/BrainRender | 9359ccc5b278f58ee3124bcf75b9ebefe0378bbc | [
"MIT"
] | null | null | null | brainrender/Utils/image.py | maithamn/BrainRender | 9359ccc5b278f58ee3124bcf75b9ebefe0378bbc | [
"MIT"
] | null | null | null | from skimage import measure
import numpy as np
from brainio import brainio
def marching_cubes_to_obj(marching_cubes_out, output_file):
"""
Saves the output of skimage.measure.marching_cubes as an .obj file
:param marching_cubes_out: tuple
:param output_file: str
"""
verts, faces, normals, _... | 29.666667 | 77 | 0.619984 | 331 | 2,492 | 4.507553 | 0.244713 | 0.053619 | 0.024129 | 0.020107 | 0.268767 | 0.088472 | 0.088472 | 0.088472 | 0.033512 | 0.033512 | 0 | 0.015359 | 0.268459 | 2,492 | 83 | 78 | 30.024096 | 0.803072 | 0.300963 | 0 | 0 | 0 | 0 | 0.10723 | 0.01348 | 0 | 0 | 0 | 0.012048 | 0 | 1 | 0.081081 | false | 0 | 0.081081 | 0 | 0.189189 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
26c5fbcd92568f0da47533118450e5dfb52449f4 | 28,401 | py | Python | python/MongoUtil.py | webbhm/GBE_T | 77302ecc57c6997bd646a5a789ec5d55bdc1b8d8 | [
"MIT"
] | null | null | null | python/MongoUtil.py | webbhm/GBE_T | 77302ecc57c6997bd646a5a789ec5d55bdc1b8d8 | [
"MIT"
] | null | null | null | python/MongoUtil.py | webbhm/GBE_T | 77302ecc57c6997bd646a5a789ec5d55bdc1b8d8 | [
"MIT"
] | 1 | 2021-07-30T15:54:29.000Z | 2021-07-30T15:54:29.000Z | '''
A group of MongoDB functions to demonstrate and test query capabilities.
This generates the data needed to populate the Fairchild spreadsheet from data sources
Author: Howard Webb
Date: 6/29/2021
'''
from pymongo import MongoClient
import dns.resolver
from pprint import pprint
import json
from datetime import dat... | 35.062963 | 157 | 0.479877 | 2,707 | 28,401 | 4.937569 | 0.133727 | 0.057459 | 0.037408 | 0.020201 | 0.562322 | 0.536211 | 0.48975 | 0.456307 | 0.445982 | 0.440072 | 0 | 0.008117 | 0.353685 | 28,401 | 810 | 158 | 35.062963 | 0.720037 | 0.232351 | 0 | 0.627329 | 1 | 0 | 0.320092 | 0.06342 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05176 | false | 0 | 0.012422 | 0.008282 | 0.089027 | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
26cc1ffe8e856778523c05e40bdc732df0710994 | 6,494 | py | Python | ProgrammingLanguageToolkit/test.py | Rodney-O-C-Melby/tokenize_ultra | 53e93e4954800900dff55b7e02d10c90e7200499 | [
"MIT"
] | null | null | null | ProgrammingLanguageToolkit/test.py | Rodney-O-C-Melby/tokenize_ultra | 53e93e4954800900dff55b7e02d10c90e7200499 | [
"MIT"
] | null | null | null | ProgrammingLanguageToolkit/test.py | Rodney-O-C-Melby/tokenize_ultra | 53e93e4954800900dff55b7e02d10c90e7200499 | [
"MIT"
] | null | null | null | import pltk as pl
from pltk import load_data
from pltk import get_file_contents # Load single file
from pltk import get_folder_contents # Load all files in folder
from pltk import tokenize # create desired tokens
from pltk import vectorize # convert list of string to list of vectors
from pltk import unvectorize #... | 47.75 | 117 | 0.816138 | 893 | 6,494 | 5.620381 | 0.128779 | 0.086073 | 0.055788 | 0.043833 | 0.458657 | 0.305639 | 0.225941 | 0.190875 | 0.113568 | 0.098426 | 0 | 0.002566 | 0.099938 | 6,494 | 136 | 118 | 47.75 | 0.856116 | 0.100708 | 0 | 0 | 0 | 0 | 0.262597 | 0.023044 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.185185 | 0 | 0.185185 | 0.453704 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
26df26cae9d5e6f66657126171762b85b731f281 | 896 | py | Python | setup.py | proteanblank/pyquake | 26818b92bf648d897975993a3c40a78d7a5c1a9e | [
"MIT"
] | 44 | 2020-11-07T23:52:27.000Z | 2022-03-30T12:43:27.000Z | setup.py | proteanblank/pyquake | 26818b92bf648d897975993a3c40a78d7a5c1a9e | [
"MIT"
] | null | null | null | setup.py | proteanblank/pyquake | 26818b92bf648d897975993a3c40a78d7a5c1a9e | [
"MIT"
] | 2 | 2021-06-22T00:52:55.000Z | 2021-07-15T05:36:01.000Z | #!/usr/bin/env python
from distutils.core import setup
setup(name='Pyquake',
version='1.0',
entry_points={
'console_scripts': [
'demo_viewer = pyquake.render:demo_viewer_main',
'ray_tracer = pyquake.ray:raytracer_main',
'pyqclient = pyquake.client... | 34.461538 | 77 | 0.59375 | 90 | 896 | 5.644444 | 0.555556 | 0.03937 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00314 | 0.289063 | 896 | 25 | 78 | 35.84 | 0.794349 | 0.022321 | 0 | 0 | 0 | 0 | 0.536613 | 0.290618 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.05 | 0 | 0.05 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
26e466f6cae0855b68ccce2359cd573fbc2499ab | 784 | py | Python | chapter13exercise.py | rpmva/Python1 | c642070eea506dfce3863d5534a616668dcf5575 | [
"MIT"
] | null | null | null | chapter13exercise.py | rpmva/Python1 | c642070eea506dfce3863d5534a616668dcf5575 | [
"MIT"
] | null | null | null | chapter13exercise.py | rpmva/Python1 | c642070eea506dfce3863d5534a616668dcf5575 | [
"MIT"
] | null | null | null | Exercise 1
from random import random
x = 0
while (random != 0 and random != 1):
print random()
print "Test item number: {}".format(x)
x = x + 1
if random == 0 or random == 1:
print "Test complete!"
break
Exercise 2
from random import randint
print "Welcome to the number guessing game!"
... | 21.777778 | 50 | 0.614796 | 112 | 784 | 4.285714 | 0.5 | 0.125 | 0.066667 | 0.091667 | 0.104167 | 0.104167 | 0 | 0 | 0 | 0 | 0 | 0.024823 | 0.280612 | 784 | 35 | 51 | 22.4 | 0.826241 | 0 | 0 | 0.068966 | 0 | 0 | 0.255102 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.068966 | null | null | 0.275862 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
26e4cafbd91a765db8cb222e4256499431729756 | 1,890 | py | Python | loops_functions.py | F-U-Njoku/zuri2021 | 4dc1321104f27f48a4775ae25743a0d024b6fb60 | [
"Apache-2.0"
] | null | null | null | loops_functions.py | F-U-Njoku/zuri2021 | 4dc1321104f27f48a4775ae25743a0d024b6fb60 | [
"Apache-2.0"
] | null | null | null | loops_functions.py | F-U-Njoku/zuri2021 | 4dc1321104f27f48a4775ae25743a0d024b6fb60 | [
"Apache-2.0"
] | null | null | null | import random
from datetime import datetime
allowedUsers = {'Seyi':["passwordSeyi",3383690575],'Mike':["passwordMike",9548447439], 'Love':["passwordLove",4399371430],}
options = {1:"Withdrawal", 2:"Cash Deposit", 3:"Complaint"}
inputs = {1:"How much would you like to withdraw?", 2:"How much would you like to deposit?"... | 30.983607 | 133 | 0.621693 | 230 | 1,890 | 5.1 | 0.447826 | 0.030691 | 0.047741 | 0.025575 | 0.035806 | 0.035806 | 0 | 0 | 0 | 0 | 0 | 0.037879 | 0.231746 | 1,890 | 60 | 134 | 31.5 | 0.769972 | 0.020635 | 0 | 0.130435 | 0 | 0 | 0.355327 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065217 | false | 0.195652 | 0.043478 | 0 | 0.108696 | 0.282609 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
26e5704ff6f531d2fcee05af8570b2063440b883 | 2,256 | py | Python | pyds8k/test/test_resources/test_ds8k/test_pprc.py | 27149chen/pyds8k | e6e52af236330e4da4b08d749d835b7809ae2308 | [
"Apache-2.0"
] | 7 | 2020-04-16T11:20:02.000Z | 2021-04-21T13:39:14.000Z | pyds8k/test/test_resources/test_ds8k/test_pprc.py | 27149chen/pyds8k | e6e52af236330e4da4b08d749d835b7809ae2308 | [
"Apache-2.0"
] | 1 | 2020-07-15T02:56:56.000Z | 2020-08-03T17:16:53.000Z | pyds8k/test/test_resources/test_ds8k/test_pprc.py | 27149chen/pyds8k | e6e52af236330e4da4b08d749d835b7809ae2308 | [
"Apache-2.0"
] | 6 | 2020-01-03T05:54:26.000Z | 2022-03-31T09:42:27.000Z | ##############################################################################
# Copyright 2019 IBM Corp.
#
# 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/LI... | 48 | 78 | 0.702128 | 264 | 2,256 | 5.848485 | 0.375 | 0.087435 | 0.110751 | 0.068005 | 0.218264 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013535 | 0.148493 | 2,256 | 46 | 79 | 49.043478 | 0.790213 | 0.240248 | 0 | 0 | 0 | 0 | 0.049223 | 0 | 0 | 0 | 0 | 0 | 0.444444 | 1 | 0.037037 | false | 0 | 0.222222 | 0 | 0.296296 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
26fef7bf2cce913748f0bf62048ba6a679e07f60 | 929 | py | Python | filamentcolors/migrations/0005_auto_20190303_1933.py | itsthejoker/filamentcolors.xyz | 10cdc3b573093f4122ec3300d4fcc1c72771659d | [
"MIT"
] | 12 | 2019-04-29T01:36:25.000Z | 2022-03-24T18:10:47.000Z | filamentcolors/migrations/0005_auto_20190303_1933.py | itsthejoker/filamentcolors.xyz | 10cdc3b573093f4122ec3300d4fcc1c72771659d | [
"MIT"
] | 16 | 2020-02-07T15:21:29.000Z | 2022-03-24T02:59:45.000Z | filamentcolors/migrations/0005_auto_20190303_1933.py | itsthejoker/filamentcolors.xyz | 10cdc3b573093f4122ec3300d4fcc1c72771659d | [
"MIT"
] | 1 | 2020-10-06T02:55:13.000Z | 2020-10-06T02:55:13.000Z | # Generated by Django 2.1.4 on 2019-03-03 19:33
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
("filamentcolors", "0004_filamenttype_manufacturer"),
]
operations = [
migrations.AddField(
model... | 26.542857 | 61 | 0.542519 | 82 | 929 | 6.060976 | 0.47561 | 0.064386 | 0.084507 | 0.132797 | 0.515091 | 0.515091 | 0.366197 | 0.366197 | 0.366197 | 0.366197 | 0 | 0.031826 | 0.357374 | 929 | 34 | 62 | 27.323529 | 0.80067 | 0.048439 | 0 | 0.571429 | 1 | 0 | 0.153061 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.178571 | 0 | 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 |
f800d0bc0b267c8cdaca501a1c0742ef03e31421 | 7,335 | py | Python | main.py | enihsyou/Sorting-algorithm | 09a109bb26e0d8d165a4d1bbe18ec7b4e538b364 | [
"MIT"
] | null | null | null | main.py | enihsyou/Sorting-algorithm | 09a109bb26e0d8d165a4d1bbe18ec7b4e538b364 | [
"MIT"
] | null | null | null | main.py | enihsyou/Sorting-algorithm | 09a109bb26e0d8d165a4d1bbe18ec7b4e538b364 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Count algorithms' efficiency.
File name: main
Reference:
Introduction: Use random generate_function to count efficiency of algorithms.
Date: 2016-05-20
Last modified: 2016-06-01
Author: enihsyou
"""
import random
import numpy
import algorithm
def generate_list(number, ... | 32.030568 | 80 | 0.533742 | 820 | 7,335 | 4.653659 | 0.235366 | 0.081237 | 0.033019 | 0.044025 | 0.321017 | 0.308438 | 0.228249 | 0.178197 | 0.113994 | 0.071017 | 0 | 0.016453 | 0.361963 | 7,335 | 228 | 81 | 32.171053 | 0.798932 | 0.281254 | 0 | 0.4 | 1 | 0 | 0.05628 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051852 | false | 0 | 0.022222 | 0 | 0.155556 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f803d41dbfa6b57c46e3f1c3aff16c81a1fe1114 | 1,489 | py | Python | LightLevelServer.py | basimkhajwal/RaspberryPi | 1e9a9fbfe201f0fe642613c9fe784e2104b79dcf | [
"MIT"
] | null | null | null | LightLevelServer.py | basimkhajwal/RaspberryPi | 1e9a9fbfe201f0fe642613c9fe784e2104b79dcf | [
"MIT"
] | null | null | null | LightLevelServer.py | basimkhajwal/RaspberryPi | 1e9a9fbfe201f0fe642613c9fe784e2104b79dcf | [
"MIT"
] | null | null | null | #!/usr/bin/python
from BaseHTTPServer import BaseHTTPRequestHandler,HTTPServer
html = """
<!DOCTYPE html>
<html>
<head>
<title>Light Level's</title>
<style type="text/css">
strong, #a{
padding-right: 20em;
}
*{
text-align:center;
}
</style>
</head>
<body>
<h1>Light Levels:<... | 17.939759 | 76 | 0.609134 | 191 | 1,489 | 4.685864 | 0.549738 | 0.022346 | 0.013408 | 0.031285 | 0.129609 | 0.129609 | 0.129609 | 0.129609 | 0.129609 | 0.129609 | 0 | 0.013135 | 0.233042 | 1,489 | 82 | 77 | 18.158537 | 0.770578 | 0.104097 | 0 | 0.12 | 0 | 0.02 | 0.385252 | 0.036117 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.02 | 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 |
f8048dace7931f9ffa216e1f073d9ceb12abb0bf | 4,352 | py | Python | candy_135.py | danielsunzhongyuan/my_leetcode_in_python | 34d34280170c991ea7a28d74a3f2338753844917 | [
"Apache-2.0"
] | null | null | null | candy_135.py | danielsunzhongyuan/my_leetcode_in_python | 34d34280170c991ea7a28d74a3f2338753844917 | [
"Apache-2.0"
] | null | null | null | candy_135.py | danielsunzhongyuan/my_leetcode_in_python | 34d34280170c991ea7a28d74a3f2338753844917 | [
"Apache-2.0"
] | null | null | null | """
There are N children standing in a line. Each child is assigned a rating value.
You are giving candies to these children subjected to the following requirements:
Each child must have at least one candy.
Children with a higher rating get more candies than their neighbors.
What is the minimum candies you must give?... | 34.816 | 102 | 0.467601 | 632 | 4,352 | 3.207278 | 0.189873 | 0.126295 | 0.079921 | 0.059201 | 0.610755 | 0.591515 | 0.578194 | 0.548594 | 0.48298 | 0.468673 | 0 | 0.110562 | 0.395221 | 4,352 | 124 | 103 | 35.096774 | 0.659574 | 0.201057 | 0 | 0.634921 | 0 | 0 | 0.003406 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.063492 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.