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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fd2853b77920c0199f767de23167a778caf83558 | 1,078 | py | Python | routers/schemas.py | sr-vazkez/instagram_clone | 4ec8478bd718c4f544cad29ee28780d6d685621c | [
"MIT"
] | 4 | 2022-02-25T17:47:00.000Z | 2022-03-20T19:26:48.000Z | routers/schemas.py | sr-vazkez/instagram_clone | 4ec8478bd718c4f544cad29ee28780d6d685621c | [
"MIT"
] | null | null | null | routers/schemas.py | sr-vazkez/instagram_clone | 4ec8478bd718c4f544cad29ee28780d6d685621c | [
"MIT"
] | 1 | 2022-03-10T20:32:16.000Z | 2022-03-10T20:32:16.000Z | from datetime import datetime
from typing import List
from sqlalchemy.orm.session import Session
from db.database import Base
from pydantic import BaseModel
class UserBase(BaseModel):
username: str
email: str
password: str
class UserDisplay(BaseModel):
username = str
email = str
class Config... | 16.584615 | 42 | 0.66141 | 132 | 1,078 | 5.310606 | 0.310606 | 0.094151 | 0.114123 | 0.10271 | 0.356633 | 0.24679 | 0.091298 | 0.091298 | 0.091298 | 0 | 0 | 0 | 0.270872 | 1,078 | 65 | 43 | 16.584615 | 0.891858 | 0.030612 | 0 | 0.574468 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.021277 | 0.106383 | 0 | 0.914894 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
fd2aaa1e7b2a734c96481539e6841d133a180b80 | 1,991 | py | Python | templates.py | jeremyatia/mini_datathon | a80214335a235b55064070b2748f6b7b2d231f9b | [
"MIT"
] | 8 | 2021-08-10T10:38:02.000Z | 2022-01-25T03:31:46.000Z | templates.py | jeremyatia/mini_datathon | a80214335a235b55064070b2748f6b7b2d231f9b | [
"MIT"
] | null | null | null | templates.py | jeremyatia/mini_datathon | a80214335a235b55064070b2748f6b7b2d231f9b | [
"MIT"
] | null | null | null | # The following templates are markdowns
overview = """
## Context
Manufacturing process feature selection and categorization
## Content
Abstract: Data from a semi-conductor manufacturing process
Data Set Characteristics: Multivariate
Number of Instances: 1567
Area: Computer
Attribute Characteristic... | 37.566038 | 116 | 0.789051 | 286 | 1,991 | 5.475524 | 0.660839 | 0.038314 | 0.033206 | 0.042146 | 0.019157 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008902 | 0.153692 | 1,991 | 52 | 117 | 38.288462 | 0.920475 | 0.018584 | 0 | 0.170732 | 0 | 0.073171 | 0.971311 | 0.011783 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.02439 | 0 | 0.02439 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fd2ad1cb1da2a427d0015a49cc0aa608bf5d43b9 | 12,093 | py | Python | LaTeXpkges.py | michaelmhoffman/LaTeXpkges | 22bdafcfc36a72429129a4eee99abfb1b036e6a4 | [
"MIT"
] | null | null | null | LaTeXpkges.py | michaelmhoffman/LaTeXpkges | 22bdafcfc36a72429129a4eee99abfb1b036e6a4 | [
"MIT"
] | null | null | null | LaTeXpkges.py | michaelmhoffman/LaTeXpkges | 22bdafcfc36a72429129a4eee99abfb1b036e6a4 | [
"MIT"
] | null | null | null | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
import re
import os
import sys
import filecmp
import fileinput
import hashlib
import subprocess
import random
import argparse
from glob import glob
from multiprocessing import Pool
def get_basename(s):
return os.path.splitext(s)[0]
def get_variants(s):
# find... | 34.950867 | 121 | 0.581659 | 1,519 | 12,093 | 4.491113 | 0.214615 | 0.014512 | 0.014072 | 0.011434 | 0.217238 | 0.161536 | 0.134125 | 0.11888 | 0.107153 | 0.096599 | 0 | 0.010654 | 0.293724 | 12,093 | 345 | 122 | 35.052174 | 0.788081 | 0.06971 | 0 | 0.205534 | 0 | 0.019763 | 0.165196 | 0.019157 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.003953 | 0.043478 | null | null | 0.051383 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
fd3c8e55bf9596dab692e9e0c25954e3d40936c3 | 351 | py | Python | settings.py | blacktrub/async_open_graph_saver | 4351de9741d1195407d1e0d16f7e099a9f840826 | [
"MIT"
] | 1 | 2018-10-20T13:11:56.000Z | 2018-10-20T13:11:56.000Z | settings.py | blacktrub/async_open_graph_saver | 4351de9741d1195407d1e0d16f7e099a9f840826 | [
"MIT"
] | 1 | 2018-10-20T13:29:29.000Z | 2018-10-20T13:46:58.000Z | settings.py | blacktrub/async_open_graph_saver | 4351de9741d1195407d1e0d16f7e099a9f840826 | [
"MIT"
] | null | null | null | import os
TORNADO_PORT = 8888
POSTGRES = {
'host': '127.0.0.1',
'port': 5432,
'user': 'admin',
'password': 'admin',
'database': 'open_graph_links',
}
PROTOCOL = 'http'
HOST = '127.0.0.1'
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
DOWNLOAD_DIR_NAME = 'media'
DOWNLOAD_DIR = os.path.joi... | 17.55 | 56 | 0.652422 | 51 | 351 | 4.215686 | 0.588235 | 0.083721 | 0.074419 | 0.083721 | 0.093023 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068729 | 0.17094 | 351 | 19 | 57 | 18.473684 | 0.670103 | 0 | 0 | 0 | 0 | 0 | 0.230769 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.071429 | 0.071429 | 0 | 0.071429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
fd3f014f88fa5e83375e4da248f107102c65de86 | 4,194 | py | Python | mysite/bms/models.py | rajhiren/django-bms | a80f08dd81aa50499de8fc5a307e2da57961425c | [
"Apache-2.0"
] | null | null | null | mysite/bms/models.py | rajhiren/django-bms | a80f08dd81aa50499de8fc5a307e2da57961425c | [
"Apache-2.0"
] | null | null | null | mysite/bms/models.py | rajhiren/django-bms | a80f08dd81aa50499de8fc5a307e2da57961425c | [
"Apache-2.0"
] | 1 | 2021-12-05T16:31:25.000Z | 2021-12-05T16:31:25.000Z | from django.contrib.auth import get_user_model
from django.db import models
from django.urls import reverse
from django.utils import timezone
class Role(models.Model):
COACH = 'C'
PLAYER = 'P'
ADMIN = 'A'
ROLE_TYPES = [
(COACH, 'Coach'),
(PLAYER, 'Player'),
(ADMIN, 'Admin'),
... | 28.147651 | 91 | 0.654268 | 548 | 4,194 | 4.79562 | 0.156934 | 0.066591 | 0.074581 | 0.111872 | 0.632801 | 0.579528 | 0.420091 | 0.420091 | 0.305936 | 0.196347 | 0 | 0.001815 | 0.211731 | 4,194 | 148 | 92 | 28.337838 | 0.793103 | 0.028374 | 0 | 0.301887 | 0 | 0 | 0.065079 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.179245 | false | 0 | 0.037736 | 0.179245 | 0.820755 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
fd456b8523df3e506367e20bf639afb251f1fbff | 4,839 | py | Python | bin/update/update.py | Mozilla-GitHub-Standards/6f6b18ac63685c6bf60fff95a3bbcc598378c77ceb14c7404172c570dd1e971d | 23ca8d46496b491fbdb2b8a72c91e75372932f23 | [
"BSD-3-Clause"
] | 27 | 2015-01-02T18:47:56.000Z | 2021-08-14T11:48:24.000Z | bin/update/update.py | Mozilla-GitHub-Standards/6f6b18ac63685c6bf60fff95a3bbcc598378c77ceb14c7404172c570dd1e971d | 23ca8d46496b491fbdb2b8a72c91e75372932f23 | [
"BSD-3-Clause"
] | 450 | 2015-01-02T12:29:50.000Z | 2020-10-27T21:41:38.000Z | bin/update/update.py | Mozilla-GitHub-Standards/6f6b18ac63685c6bf60fff95a3bbcc598378c77ceb14c7404172c570dd1e971d | 23ca8d46496b491fbdb2b8a72c91e75372932f23 | [
"BSD-3-Clause"
] | 81 | 2015-01-10T23:59:32.000Z | 2021-08-19T17:08:56.000Z | """
Deploy reps.mozilla.org using Chief in dev/stage/production.
Requires commander_ which is installed on the systems that need it.
.. _commander: https://github.com/oremj/commander
"""
import os
import sys
import urllib
import urllib2
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
from commander.dep... | 32.695946 | 99 | 0.672246 | 685 | 4,839 | 4.6 | 0.335766 | 0.055855 | 0.026658 | 0.028562 | 0.243415 | 0.210409 | 0.194541 | 0.118692 | 0.060298 | 0 | 0 | 0.005692 | 0.201281 | 4,839 | 147 | 100 | 32.918367 | 0.809573 | 0.078529 | 0 | 0.184783 | 0 | 0 | 0.275294 | 0.03634 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.065217 | null | null | 0.021739 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
fd4cf805f9d516d92e2008e6a9ea5b0c5f3c0efc | 3,869 | py | Python | simple_note/tests/test_rest_api.py | sodascourse/note-storage | 2e7decf968c6939b30ca52573e1a33d12ce32e0e | [
"Apache-2.0"
] | null | null | null | simple_note/tests/test_rest_api.py | sodascourse/note-storage | 2e7decf968c6939b30ca52573e1a33d12ce32e0e | [
"Apache-2.0"
] | null | null | null | simple_note/tests/test_rest_api.py | sodascourse/note-storage | 2e7decf968c6939b30ca52573e1a33d12ce32e0e | [
"Apache-2.0"
] | null | null | null | import base64
import json
import uuid
from http import HTTPStatus
import pytest
from django.contrib.auth import get_user_model
from django.urls import reverse
from rest_framework.response import Response
from simple_note.models import Note
pytestmark = pytest.mark.django_db
User = get_user_model()
def expected_no... | 34.855856 | 97 | 0.670716 | 529 | 3,869 | 4.733459 | 0.179584 | 0.04992 | 0.041534 | 0.050319 | 0.571885 | 0.538339 | 0.482827 | 0.466853 | 0.447284 | 0.365016 | 0 | 0.016868 | 0.187904 | 3,869 | 110 | 98 | 35.172727 | 0.780076 | 0 | 0 | 0.238095 | 0 | 0 | 0.149134 | 0.005428 | 0 | 0 | 0 | 0 | 0.178571 | 1 | 0.130952 | false | 0.083333 | 0.107143 | 0.011905 | 0.27381 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
fd5ade9f7ea2fd5b5642b99b45cd0ab8811c6124 | 2,913 | py | Python | GPSController.py | GangstaSquirrel/Raspberry-Pi-GoPro | e68e87a64293161e6631e403d8b2e9d882e78186 | [
"MIT"
] | 8 | 2015-05-05T08:48:04.000Z | 2022-02-16T18:51:13.000Z | GPSController.py | GangstaSquirrel/Raspberry-Pi-GoPro | e68e87a64293161e6631e403d8b2e9d882e78186 | [
"MIT"
] | 3 | 2015-11-25T05:29:53.000Z | 2016-12-08T22:49:56.000Z | GPSController.py | GangstaSquirrel/Raspberry-Pi-GoPro | e68e87a64293161e6631e403d8b2e9d882e78186 | [
"MIT"
] | 3 | 2015-07-24T06:42:21.000Z | 2022-03-27T22:42:41.000Z | from gps import *
import time
import datetime
import threading
import math
class GpsUtils():
MPS_TO_MPH = 2.2369362920544
@staticmethod
def latLongToXY(lat, lon):
rMajor = 6378137 # Equatorial Radius, WGS84
shift = math.pi * rMajor
x = lon * shift / 180
y = math.log(m... | 27.481132 | 79 | 0.550978 | 348 | 2,913 | 4.554598 | 0.37069 | 0.035331 | 0.04858 | 0.034069 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021602 | 0.348438 | 2,913 | 105 | 80 | 27.742857 | 0.813488 | 0.15551 | 0 | 0.164384 | 0 | 0 | 0.065957 | 0.008603 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.068493 | null | null | 0.205479 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
fd5c0cb280bd878d4470f615177d9e638d35b16f | 69,275 | py | Python | core_utils.py | ironport/coreutils | c64e36256ddcfd293f6cead8cf4061a67c8a09bb | [
"MIT"
] | 2 | 2015-04-08T15:59:31.000Z | 2017-05-12T22:08:26.000Z | core_utils.py | ironport/coreutils | c64e36256ddcfd293f6cead8cf4061a67c8a09bb | [
"MIT"
] | null | null | null | core_utils.py | ironport/coreutils | c64e36256ddcfd293f6cead8cf4061a67c8a09bb | [
"MIT"
] | null | null | null | # Copyright (c) 2002-2011 IronPort Systems and Cisco Systems
#
# 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
# to use, copy, mo... | 32.862903 | 106 | 0.575157 | 8,909 | 69,275 | 4.30935 | 0.129083 | 0.01318 | 0.010419 | 0.004741 | 0.258335 | 0.206319 | 0.177407 | 0.154016 | 0.141201 | 0.12849 | 0 | 0.020091 | 0.314572 | 69,275 | 2,107 | 107 | 32.8785 | 0.788451 | 0.134854 | 0 | 0.307296 | 0 | 0.001474 | 0.089793 | 0.001545 | 0 | 0 | 0 | 0 | 0.002948 | 0 | null | null | 0.007369 | 0.00958 | null | null | 0.053058 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b5bc0f9fb42760380dad946d5e97190a0e26fcc9 | 28,304 | py | Python | plot_utils.py | aramisa/ploterm | 076ad8ced60aacc3c130b29486c5ab699d6d076b | [
"BSD-3-Clause"
] | null | null | null | plot_utils.py | aramisa/ploterm | 076ad8ced60aacc3c130b29486c5ab699d6d076b | [
"BSD-3-Clause"
] | null | null | null | plot_utils.py | aramisa/ploterm | 076ad8ced60aacc3c130b29486c5ab699d6d076b | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# PYTHON_ARGCOMPLETE_OK
import numpy as np
import json
def showurl(u):
import cv2
cv2.namedWindow('tt', 1)
_, crop, url = u.split('@')
fname = '/data/db_imas/' + url.split('//')[-1]
im = cv2.imread(fname)
x, y, w, h = map(int, crop.replace(':', '+'... | 38.508844 | 82 | 0.479473 | 3,813 | 28,304 | 3.477314 | 0.123263 | 0.02323 | 0.008598 | 0.011615 | 0.470247 | 0.383739 | 0.34799 | 0.330945 | 0.312467 | 0.294366 | 0 | 0.043377 | 0.36062 | 28,304 | 734 | 83 | 38.561308 | 0.687407 | 0.051018 | 0 | 0.363354 | 0 | 0 | 0.063204 | 0.002724 | 0 | 0 | 0 | 0 | 0.007764 | 0 | null | null | 0 | 0.017081 | null | null | 0.017081 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b5d35462e58ee49ca465ee80d091b4615d4ac7c2 | 1,363 | py | Python | Zoom_auto.py | Akshat-unt/Zoom_AUTOMATER | 3df535fb16da0d7126acc0b53b975eacbe5ca043 | [
"Apache-2.0"
] | 1 | 2020-11-28T09:41:46.000Z | 2020-11-28T09:41:46.000Z | Zoom_auto.py | Akshat-unt/Zoom_AUTOMATER | 3df535fb16da0d7126acc0b53b975eacbe5ca043 | [
"Apache-2.0"
] | null | null | null | Zoom_auto.py | Akshat-unt/Zoom_AUTOMATER | 3df535fb16da0d7126acc0b53b975eacbe5ca043 | [
"Apache-2.0"
] | 2 | 2020-11-12T17:14:07.000Z | 2021-07-29T23:56:51.000Z | import pyautogui #use pip install pyautogui in your terminal
import os
import datetime
import sys
print("press ctrl + C to quit.")
meetid = input("ID: \n")
meetpsd = input("Password: \n")
meeth = int(input("Hour of meeting: \n"))
meetm = int(input("Minute of meeting: \n"))
amPm1 = input("Am or Pm: \n")
... | 29.630435 | 64 | 0.565664 | 152 | 1,363 | 5.072368 | 0.467105 | 0.108949 | 0.042802 | 0.077821 | 0.064851 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029756 | 0.309611 | 1,363 | 45 | 65 | 30.288889 | 0.789586 | 0.030814 | 0 | 0.128205 | 0 | 0 | 0.128627 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.025641 | 0.102564 | null | null | 0.102564 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b5d936c2bdade5f916f092aedf7ed23b08df9902 | 442 | py | Python | broadcasting.py | dqthebt24/opencv_grpeach_mbed | b9fc147d4ef79eb00e9a5688d14067c8689cba79 | [
"MIT"
] | 1 | 2021-01-22T16:55:15.000Z | 2021-01-22T16:55:15.000Z | broadcasting.py | dqthebt24/opencv_grpeach_mbed | b9fc147d4ef79eb00e9a5688d14067c8689cba79 | [
"MIT"
] | null | null | null | broadcasting.py | dqthebt24/opencv_grpeach_mbed | b9fc147d4ef79eb00e9a5688d14067c8689cba79 | [
"MIT"
] | null | null | null | import socket
from time import sleep, time
import netifaces as ni
ni.ifaddresses('wlp2s0')
ip = ni.ifaddresses('wlp2s0')[ni.AF_INET][0]['addr']
print ip
BROADCAST_PORT = 58083
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
s.bind(('', 0))
s.setsockopt(socket.SOL_SOCKET, socket.SO_BROADCAST, 1)
while True:
... | 22.1 | 55 | 0.701357 | 65 | 442 | 4.661538 | 0.523077 | 0.118812 | 0.125413 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034392 | 0.144796 | 442 | 19 | 56 | 23.263158 | 0.767196 | 0 | 0 | 0 | 0 | 0 | 0.124434 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.2 | null | null | 0.133333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b5e4196753902b5db237c64f317e67fe7bdbd1a5 | 3,834 | py | Python | app/modules/auth/controllers/register_controller.py | systemaker/Flask-Easy-Template | a31c374d0420524e6c7ee9f92824c5a9d62223cf | [
"Apache-2.0"
] | 11 | 2017-06-03T15:58:25.000Z | 2019-06-13T19:10:58.000Z | app/modules/auth/controllers/register_controller.py | systemaker/flask-web-api-demo | a31c374d0420524e6c7ee9f92824c5a9d62223cf | [
"Apache-2.0"
] | null | null | null | app/modules/auth/controllers/register_controller.py | systemaker/flask-web-api-demo | a31c374d0420524e6c7ee9f92824c5a9d62223cf | [
"Apache-2.0"
] | 8 | 2017-07-31T04:10:05.000Z | 2019-01-29T01:46:31.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
# ------- IMPORT DEPENDENCIES -------
from flask import request, render_template, flash, current_app, redirect, abort, jsonify, url_for, session
from flask_login import login_required, login_user, logout_user, current_user
import base64
# ------- IMPORT LOCAL DEPENDENCIES -... | 43.078652 | 176 | 0.589202 | 437 | 3,834 | 5.073227 | 0.313501 | 0.018945 | 0.031574 | 0.040595 | 0.262517 | 0.262517 | 0.230492 | 0.185837 | 0.147046 | 0.105548 | 0 | 0.009727 | 0.302817 | 3,834 | 88 | 177 | 43.568182 | 0.819678 | 0.145018 | 0 | 0.22 | 0 | 0 | 0.173138 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.04 | 0.18 | null | null | 0.02 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b5f32f32db17c1d11d6ec29190434e910ee40e3c | 303 | py | Python | Python/EXERCICIOS/IF/CRV030 - IF.py | ccpn1988/Python | 94c84aa6f3ef9d05d64c3d87212dfd67694f4544 | [
"MIT"
] | null | null | null | Python/EXERCICIOS/IF/CRV030 - IF.py | ccpn1988/Python | 94c84aa6f3ef9d05d64c3d87212dfd67694f4544 | [
"MIT"
] | null | null | null | Python/EXERCICIOS/IF/CRV030 - IF.py | ccpn1988/Python | 94c84aa6f3ef9d05d64c3d87212dfd67694f4544 | [
"MIT"
] | null | null | null | # CRIAR UM PROGRAMA QUE LEIA UM NUMERO E MOSTRE SE ELE È PAR OU IMPAR
from time import sleep
num = int(input('Digite um número: '))
print('Verificando o número digitado')
if num % 2 > 0:
print(f'O numero digitado é {num} ele é IMPAR')
else:
print(f'Você digitou o numero {num} ele é PAR!!!')
| 25.25 | 69 | 0.683168 | 55 | 303 | 3.763636 | 0.636364 | 0.057971 | 0.067633 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008368 | 0.211221 | 303 | 11 | 70 | 27.545455 | 0.857741 | 0.221122 | 0 | 0 | 0 | 0 | 0.529915 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 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 |
b5f3aedce20d0009fc020218c9069b357250bcc8 | 209 | py | Python | BTrain_1/BTrain_1_5.py | Bhaney44/BTRAIN | c230e06f7097e7e29dbdb93656923ba75828d90a | [
"MIT"
] | null | null | null | BTrain_1/BTrain_1_5.py | Bhaney44/BTRAIN | c230e06f7097e7e29dbdb93656923ba75828d90a | [
"MIT"
] | null | null | null | BTrain_1/BTrain_1_5.py | Bhaney44/BTRAIN | c230e06f7097e7e29dbdb93656923ba75828d90a | [
"MIT"
] | null | null | null | #Imports
import pandas as pd
from pandas import DataFrame
import numpy as np
#Define variable for file
df = pd.read_csv('Tezos_1.csv')
#Process Data
df.to_numpy()
a = df[1:4]
#print(a)
b = df.T
print(b)
| 11 | 31 | 0.708134 | 40 | 209 | 3.625 | 0.65 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017442 | 0.177033 | 209 | 18 | 32 | 11.611111 | 0.825581 | 0.244019 | 0 | 0 | 0 | 0 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
b5f7189602a56546996adf4d02299bf8e039658f | 173 | py | Python | tslan/__init__.py | rtafds/Tslan | 84898ceb827eddd2117089cc9d649d7d26ff9027 | [
"BSD-2-Clause"
] | null | null | null | tslan/__init__.py | rtafds/Tslan | 84898ceb827eddd2117089cc9d649d7d26ff9027 | [
"BSD-2-Clause"
] | null | null | null | tslan/__init__.py | rtafds/Tslan | 84898ceb827eddd2117089cc9d649d7d26ff9027 | [
"BSD-2-Clause"
] | null | null | null |
__copyright__ = 'Copyright (C) 2019 rtafds'
__version__ = '0.0.1'
__license__ = 'MIT'
__author__ = 'rtafds'
__author_email__ = 'n.rtafds@gmail.coms'
| 15.727273 | 46 | 0.630058 | 19 | 173 | 4.631579 | 0.736842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053435 | 0.242775 | 173 | 10 | 47 | 17.3 | 0.618321 | 0 | 0 | 0 | 0 | 0 | 0.345238 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b5f838c7c3353f8830ed8651bff7a651c23f4845 | 5,795 | py | Python | douglasdaly/douglasdaly/models.py | douglasdaly/douglasdaly | 984576f6e8b9f7d9cdcc347c0f0ad1323e7d6d1f | [
"MIT"
] | null | null | null | douglasdaly/douglasdaly/models.py | douglasdaly/douglasdaly | 984576f6e8b9f7d9cdcc347c0f0ad1323e7d6d1f | [
"MIT"
] | 17 | 2019-01-22T02:10:38.000Z | 2021-09-22T17:53:23.000Z | douglasdaly/douglasdaly/models.py | douglasdaly/douglasdaly | 984576f6e8b9f7d9cdcc347c0f0ad1323e7d6d1f | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Models for the main site.
:author: Douglas Daly
:date: 12/10/2017
"""
#
# Imports
#
from django.db import models
from django.urls import reverse
from django.core.exceptions import ValidationError
from django.core.validators import MaxValueValidator
from adminsortable.models import Sortab... | 32.016575 | 79 | 0.627092 | 651 | 5,795 | 5.423963 | 0.25192 | 0.043047 | 0.061172 | 0.081563 | 0.533843 | 0.510337 | 0.428774 | 0.337865 | 0.290852 | 0.264231 | 0 | 0.016484 | 0.277653 | 5,795 | 180 | 80 | 32.194444 | 0.827043 | 0.09767 | 0 | 0.35514 | 0 | 0 | 0.061844 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.102804 | false | 0.037383 | 0.056075 | 0.056075 | 0.626168 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b5fdf4a50e5e2cf3597b2a749d8bfbe77f43bdc5 | 961 | py | Python | Trabalho-1.2/src/utils.py | ugiete/PPD-2021-1 | acf96eb0fac0213b488f2e678122ac2897999446 | [
"MIT"
] | null | null | null | Trabalho-1.2/src/utils.py | ugiete/PPD-2021-1 | acf96eb0fac0213b488f2e678122ac2897999446 | [
"MIT"
] | null | null | null | Trabalho-1.2/src/utils.py | ugiete/PPD-2021-1 | acf96eb0fac0213b488f2e678122ac2897999446 | [
"MIT"
] | null | null | null | from random import randint
import matplotlib.pyplot as plt
def generate_list(length: int) -> list:
"""Generate a list with given length with random integer values in the interval [0, length]
Args:
length (int): List length
Returns:
list: List generated with random values
"""
retu... | 32.033333 | 95 | 0.655567 | 131 | 961 | 4.770992 | 0.526718 | 0.0096 | 0.0416 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013441 | 0.225806 | 961 | 30 | 96 | 32.033333 | 0.826613 | 0.366285 | 0 | 0 | 1 | 0 | 0.195691 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b5fe89ef775f295bdba3d7ec4bfc02f4f9f1c968 | 27,205 | py | Python | src/rogerthat/utils/__init__.py | goubertbrent/oca-backend | b9f59cc02568aecb55d4b54aec05245790ea25fd | [
"Apache-2.0"
] | null | null | null | src/rogerthat/utils/__init__.py | goubertbrent/oca-backend | b9f59cc02568aecb55d4b54aec05245790ea25fd | [
"Apache-2.0"
] | null | null | null | src/rogerthat/utils/__init__.py | goubertbrent/oca-backend | b9f59cc02568aecb55d4b54aec05245790ea25fd | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright 2020 Green Valley Belgium NV
#
# 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 appl... | 31.781542 | 124 | 0.652196 | 3,482 | 27,205 | 4.894888 | 0.189259 | 0.010561 | 0.011969 | 0.007393 | 0.194966 | 0.140636 | 0.103908 | 0.088594 | 0.077857 | 0.06008 | 0 | 0.010717 | 0.235104 | 27,205 | 855 | 125 | 31.818713 | 0.808352 | 0.036023 | 0 | 0.164516 | 0 | 0.019355 | 0.086793 | 0.012656 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.006452 | 0.08871 | 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 |
bd03ec14e31b5c6764550321dfb1418e886a53a5 | 2,852 | py | Python | departamentos/migrations/0001_initial.py | adrianpisabarrogarcia/modulo-crm-departamentos | a84db65217ae45d0f0470597f0c2c854d200eaa3 | [
"Apache-2.0"
] | null | null | null | departamentos/migrations/0001_initial.py | adrianpisabarrogarcia/modulo-crm-departamentos | a84db65217ae45d0f0470597f0c2c854d200eaa3 | [
"Apache-2.0"
] | null | null | null | departamentos/migrations/0001_initial.py | adrianpisabarrogarcia/modulo-crm-departamentos | a84db65217ae45d0f0470597f0c2c854d200eaa3 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 4.0.3 on 2022-05-04 10:38
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Departamento',
fields=[
... | 40.169014 | 122 | 0.551893 | 256 | 2,852 | 6.035156 | 0.273438 | 0.046602 | 0.081553 | 0.108738 | 0.600647 | 0.583819 | 0.583819 | 0.583819 | 0.583819 | 0.583819 | 0 | 0.016625 | 0.303997 | 2,852 | 70 | 123 | 40.742857 | 0.761713 | 0.015778 | 0 | 0.619048 | 1 | 0 | 0.094118 | 0.022816 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.015873 | 0.031746 | 0 | 0.095238 | 0 | 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 |
bd04c68d5877b33eb65f17014cf6de2683d2a515 | 1,631 | py | Python | esp8266/main.py | pedesen/zeebe-microcontroller | 9ce1cbb19c405d36cd9d1f264e5fd023a8faa1f6 | [
"MIT"
] | 1 | 2020-10-26T12:14:32.000Z | 2020-10-26T12:14:32.000Z | esp8266/main.py | pedesen/zeebe-microcontroller | 9ce1cbb19c405d36cd9d1f264e5fd023a8faa1f6 | [
"MIT"
] | null | null | null | esp8266/main.py | pedesen/zeebe-microcontroller | 9ce1cbb19c405d36cd9d1f264e5fd023a8faa1f6 | [
"MIT"
] | null | null | null | """
This device connects via WiFi and subscribes to the MQTT channel zeebe/job.
Whenever a message arrives, it publishes an MQTT message to the channel
zeebe/grpc/publishMessage containing the current temperature as a variable.
"""
import network
from machine import ADC
import time
import ujson
from umqtt.simple impo... | 26.737705 | 75 | 0.676272 | 212 | 1,631 | 5.127358 | 0.509434 | 0.022079 | 0.042318 | 0.040478 | 0.051518 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01324 | 0.212753 | 1,631 | 60 | 76 | 27.183333 | 0.833333 | 0.099326 | 0 | 0 | 0 | 0 | 0.133009 | 0.020276 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.025 | 0.125 | null | null | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bd0a71b87660669e15fc74df361a14050ff21329 | 14,981 | py | Python | gitapp/forms.py | abiolarasheed/gitstation | 852f06e4f1d32208f42bdae2a76db958d4ea4f8e | [
"MIT"
] | null | null | null | gitapp/forms.py | abiolarasheed/gitstation | 852f06e4f1d32208f42bdae2a76db958d4ea4f8e | [
"MIT"
] | null | null | null | gitapp/forms.py | abiolarasheed/gitstation | 852f06e4f1d32208f42bdae2a76db958d4ea4f8e | [
"MIT"
] | null | null | null | # coding: utf-8
from django import forms
from django.contrib.auth import authenticate
from django.contrib.auth.models import User
from django.contrib.auth.forms import UserCreationForm as UserForm, PasswordChangeForm
from django.utils.translation import ugettext_lazy as _
from django.urls import reverse, reverse_lazy
... | 45.534954 | 119 | 0.524331 | 1,506 | 14,981 | 5.033865 | 0.153386 | 0.07255 | 0.055402 | 0.039441 | 0.533571 | 0.455745 | 0.444532 | 0.423691 | 0.394011 | 0.377655 | 0 | 0.006987 | 0.340765 | 14,981 | 328 | 120 | 45.67378 | 0.760632 | 0.003872 | 0 | 0.356618 | 0 | 0 | 0.149772 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0.058824 | 0.036765 | 0.007353 | 0.227941 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
bd0b6a3307c89d7decb75f6f8cfb57b84e176d58 | 2,025 | py | Python | paperThinRest/paperThinRest/validation.py | viktorasm/paper-thin-rest | 027a86ff41e85c8a02b054192e42a63e416260ae | [
"Apache-2.0"
] | 2 | 2018-05-08T23:09:49.000Z | 2018-05-08T23:09:52.000Z | paperThinRest/paperThinRest/validation.py | viktorasm/paper-thin-rest | 027a86ff41e85c8a02b054192e42a63e416260ae | [
"Apache-2.0"
] | null | null | null | paperThinRest/paperThinRest/validation.py | viktorasm/paper-thin-rest | 027a86ff41e85c8a02b054192e42a63e416260ae | [
"Apache-2.0"
] | null | null | null | import inspect
from functools import wraps
from jsonschema.validators import validate
from jsonschema.exceptions import ValidationError
from paperThinRest.apiError import ApiErrorException
from collections import OrderedDict
class SchemaBuilder(object):
def __init__(self):
self.result = {}
def obj... | 29.779412 | 90 | 0.581235 | 173 | 2,025 | 6.780347 | 0.410405 | 0.059676 | 0.02387 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.323951 | 2,025 | 68 | 91 | 29.779412 | 0.85683 | 0 | 0 | 0.052632 | 0 | 0 | 0.049202 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.157895 | 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 |
bd1934494bbb867c5f895831b9f3c1c211257ae9 | 1,536 | py | Python | examples/bezier.py | DeflatedPickle/rabbyt | c28718379e6ef8961b5e9788d667ed365a788d92 | [
"MIT"
] | 11 | 2015-09-11T09:44:50.000Z | 2021-11-16T11:54:52.000Z | examples/bezier.py | DeflatedPickle/rabbyt | c28718379e6ef8961b5e9788d667ed365a788d92 | [
"MIT"
] | 6 | 2016-04-18T04:24:13.000Z | 2021-07-10T14:46:26.000Z | examples/bezier.py | DeflatedPickle/rabbyt | c28718379e6ef8961b5e9788d667ed365a788d92 | [
"MIT"
] | 3 | 2018-06-30T06:10:37.000Z | 2021-08-29T16:13:10.000Z | from math import hypot
import pygame
import rabbyt
rabbyt.init_display((640,480))
rabbyt.set_viewport((640,480), projection=(0,0,640,480))
control_points = [rabbyt.Sprite(xy=xy) for xy in
[(100,100),(200,50),(300,150),(400,100)]]
grabbed_point = None
path_followers = []
def generate_followers():
global ... | 29.538462 | 77 | 0.622396 | 208 | 1,536 | 4.480769 | 0.399038 | 0.069742 | 0.080472 | 0.081545 | 0.107296 | 0.066524 | 0 | 0 | 0 | 0 | 0 | 0.057895 | 0.257813 | 1,536 | 51 | 78 | 30.117647 | 0.759649 | 0 | 0 | 0.142857 | 0 | 0 | 0.026042 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.071429 | null | null | 0.02381 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
bd1c3eacf14ec337f7bb255324b47df0e46b12f7 | 609 | py | Python | tests/test_media_type.py | tombulled/mediatype | 9d3ad942960442228f50b07c6caf5f999feb451d | [
"MIT"
] | null | null | null | tests/test_media_type.py | tombulled/mediatype | 9d3ad942960442228f50b07c6caf5f999feb451d | [
"MIT"
] | 1 | 2022-03-15T22:52:35.000Z | 2022-03-15T22:52:35.000Z | tests/test_media_type.py | tombulled/mimetype | 9d3ad942960442228f50b07c6caf5f999feb451d | [
"MIT"
] | null | null | null | import mediatype
import pytest
@pytest.fixture
def media_type() -> mediatype.MediaType:
return mediatype.MediaType(
type='type',
subtype='subtype',
suffix='suffix',
parameters={
'key1': 'val1',
'key2': 'val2'
}
)
@pytest.fixture
def string() -> s... | 25.375 | 70 | 0.635468 | 69 | 609 | 5.507246 | 0.318841 | 0.118421 | 0.142105 | 0.213158 | 0.242105 | 0.242105 | 0.242105 | 0.242105 | 0 | 0 | 0 | 0.017021 | 0.228243 | 609 | 24 | 71 | 25.375 | 0.791489 | 0 | 0 | 0.1 | 0 | 0 | 0.127869 | 0 | 0 | 0 | 0 | 0 | 0.1 | 1 | 0.2 | false | 0 | 0.1 | 0.1 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bd2454c2b8e1f6ddf17b4eb0cae20a7b6d53e997 | 762 | py | Python | al_hostserver/kill_py_server.py | DannyWeitekamp/AL_HTML | 37be9b3e2b0110ea6ecd83f572063fdf7657fa22 | [
"MIT"
] | 4 | 2020-07-28T00:28:05.000Z | 2021-12-06T12:21:05.000Z | al_hostserver/kill_py_server.py | DannyWeitekamp/AL_HTML | 37be9b3e2b0110ea6ecd83f572063fdf7657fa22 | [
"MIT"
] | 9 | 2019-07-13T22:47:17.000Z | 2020-06-05T18:49:34.000Z | al_hostserver/kill_py_server.py | DannyWeitekamp/AL_HTML | 37be9b3e2b0110ea6ecd83f572063fdf7657fa22 | [
"MIT"
] | 4 | 2020-11-20T03:15:14.000Z | 2021-06-01T23:51:10.000Z | from http.client import HTTPConnection
import sys, urllib.parse
def stop_server (port):
"""send QUIT request to http server running on localhost:<port>"""
conn = HTTPConnection("localhost:%d" % port)
conn.request("PRINT", "/", "THIS IS IT PRINTING")
resp = conn.getresponse()
conn = HTTPConnection(... | 33.130435 | 80 | 0.658793 | 103 | 762 | 4.854369 | 0.427184 | 0.07 | 0.064 | 0.168 | 0.334 | 0.334 | 0.334 | 0.248 | 0.248 | 0.248 | 0 | 0.007949 | 0.174541 | 762 | 23 | 81 | 33.130435 | 0.786963 | 0.07874 | 0 | 0.352941 | 0 | 0 | 0.233859 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 1 | 0.058824 | false | 0 | 0.117647 | 0 | 0.176471 | 0.058824 | 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 |
bd25fee0c222ce2ed229662a98e24a4937ea8816 | 322 | py | Python | sarpy/__init__.py | spacefan/sarpy | 2791af86b568c8a8560275aee426a4718d5a4606 | [
"MIT"
] | 119 | 2018-07-12T22:08:17.000Z | 2022-03-24T12:11:39.000Z | sarpy/__init__.py | spacefan/sarpy | 2791af86b568c8a8560275aee426a4718d5a4606 | [
"MIT"
] | 72 | 2018-03-29T15:57:37.000Z | 2022-03-10T01:46:21.000Z | sarpy/__init__.py | spacefan/sarpy | 2791af86b568c8a8560275aee426a4718d5a4606 | [
"MIT"
] | 54 | 2018-03-27T19:57:20.000Z | 2022-03-09T20:53:11.000Z | from .__about__ import *
import logging
__all__ = ['__version__',
'__classification__', '__author__', '__url__', '__email__',
'__title__', '__summary__',
'__license__', '__copyright__']
# establish logging paradigm
logger = logging.getLogger(__name__)
logger.setLevel(logging.WARNING... | 23 | 70 | 0.68323 | 26 | 322 | 6.615385 | 0.807692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.192547 | 322 | 13 | 71 | 24.769231 | 0.661538 | 0.080745 | 0 | 0 | 0 | 0 | 0.336735 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 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 |
bd29a49e246d0dbad8a9d131a12159d7b3e9203a | 1,174 | py | Python | info/utils/comment.py | wangjinyu124419/xinjing | 205dd890b5d0baeae5935dfe24bd0208808e7e2b | [
"MIT"
] | null | null | null | info/utils/comment.py | wangjinyu124419/xinjing | 205dd890b5d0baeae5935dfe24bd0208808e7e2b | [
"MIT"
] | null | null | null | info/utils/comment.py | wangjinyu124419/xinjing | 205dd890b5d0baeae5935dfe24bd0208808e7e2b | [
"MIT"
] | null | null | null | from functools import wraps
from flask import g
def do_rank(myindex):
if myindex==1:
return 'first'
elif myindex==2:
return 'second'
elif myindex==3:
return 'third'
else:
return ''
# 如果提前导入do_rank
# 这段代码无法运行
import logging
from flask import session
from info.models imp... | 23.48 | 70 | 0.589438 | 139 | 1,174 | 4.827338 | 0.417266 | 0.071535 | 0.053651 | 0.04769 | 0.292101 | 0.292101 | 0.292101 | 0.292101 | 0.292101 | 0.292101 | 0 | 0.00375 | 0.318569 | 1,174 | 49 | 71 | 23.959184 | 0.835 | 0.335605 | 0 | 0 | 0 | 0 | 0.030184 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.185185 | 0 | 0.518519 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
bd30b03f884206665b8502f7d2063734ceb9a829 | 20,556 | py | Python | dev/bin/ipynbdoctest.py | davidcortesortuno/finmag | 9ac0268d2c0e45faf1284cee52a73525aa589e2b | [
"BSL-1.0"
] | 10 | 2018-03-24T07:43:17.000Z | 2022-03-26T10:42:27.000Z | dev/bin/ipynbdoctest.py | davidcortesortuno/finmag | 9ac0268d2c0e45faf1284cee52a73525aa589e2b | [
"BSL-1.0"
] | 21 | 2018-03-26T15:08:53.000Z | 2021-07-10T16:11:14.000Z | dev/bin/ipynbdoctest.py | davidcortesortuno/finmag | 9ac0268d2c0e45faf1284cee52a73525aa589e2b | [
"BSL-1.0"
] | 7 | 2018-04-09T11:50:48.000Z | 2021-06-10T09:23:25.000Z | #!/usr/bin/env python
# IPython notebook testing script. This is based on the gist [1] (revision 5).
#
# Each cell is submitted to the kernel, and the outputs are compared
# with those stored in the notebook. If the output is an image this is
# currently ignored.
#
# https://gist.github.com/minrk/2620735
"""
IPython... | 38.639098 | 238 | 0.557696 | 2,428 | 20,556 | 4.642092 | 0.257002 | 0.005146 | 0.006122 | 0.007098 | 0.152072 | 0.106912 | 0.088368 | 0.035489 | 0.030166 | 0.025197 | 0 | 0.007855 | 0.300156 | 20,556 | 531 | 239 | 38.711864 | 0.775615 | 0.186758 | 0 | 0.209231 | 0 | 0.018462 | 0.322257 | 0.061666 | 0 | 0 | 0.000648 | 0.001883 | 0.003077 | 0 | null | null | 0.012308 | 0.067692 | null | null | 0.064615 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
bd329446c7e21f7227e972234cdde0b42574af3f | 537 | py | Python | 11_20/day-18/assignments/6-spirograph.py | srakhe/100-days-py | 4d99ab35eb1376d2f8722c42e0bf98acc18fba20 | [
"MIT"
] | null | null | null | 11_20/day-18/assignments/6-spirograph.py | srakhe/100-days-py | 4d99ab35eb1376d2f8722c42e0bf98acc18fba20 | [
"MIT"
] | null | null | null | 11_20/day-18/assignments/6-spirograph.py | srakhe/100-days-py | 4d99ab35eb1376d2f8722c42e0bf98acc18fba20 | [
"MIT"
] | null | null | null | from turtle import Turtle, Screen
import random
def spirograph(my_turtle):
my_turtle.speed(0)
current_angle = my_turtle.heading()
while current_angle < 360:
my_turtle.pencolor((random.randint(0, 255), random.randint(0, 255), random.randint(0, 255)))
my_turtle.circle(radius=100)
... | 23.347826 | 101 | 0.683426 | 69 | 537 | 5.130435 | 0.376812 | 0.20339 | 0.118644 | 0.144068 | 0.144068 | 0.144068 | 0.144068 | 0.144068 | 0 | 0 | 0 | 0.056206 | 0.204842 | 537 | 22 | 102 | 24.409091 | 0.772834 | 0 | 0 | 0 | 0 | 0 | 0.01165 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.125 | 0 | 0.1875 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bd33551faff6956958c19f8c034e6d684be09103 | 1,079 | py | Python | niftiToCsv.py | sadihem/fMRI-Data-Analysis-using-Amazon-Web-Services | e7a7f939b95715dd4ad630d21c1a1acc73de8cb1 | [
"Apache-2.0"
] | 2 | 2020-11-05T21:47:54.000Z | 2020-11-09T22:27:23.000Z | niftiToCsv.py | sadihem/fMRI-Data-Analysis-using-Amazon-Web-Services | e7a7f939b95715dd4ad630d21c1a1acc73de8cb1 | [
"Apache-2.0"
] | null | null | null | niftiToCsv.py | sadihem/fMRI-Data-Analysis-using-Amazon-Web-Services | e7a7f939b95715dd4ad630d21c1a1acc73de8cb1 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# Requires installation of NiBabel, Numpy
# sudo pip install nibabel
# sudo pip install numpy
#
# USAGE: ./csv frmiData condition
import logging
import sys
import nibabel as nib
import numpy as np
USAGE = './csv.py niftiFile condition'
logging.basicConfig( level=logging.INFO )
logger = logg... | 22.957447 | 97 | 0.667285 | 154 | 1,079 | 4.545455 | 0.487013 | 0.085714 | 0.068571 | 0.065714 | 0.12 | 0.12 | 0.12 | 0.12 | 0.12 | 0.12 | 0 | 0.012615 | 0.191844 | 1,079 | 46 | 98 | 23.456522 | 0.790138 | 0.268767 | 0 | 0 | 0 | 0 | 0.085897 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.173913 | null | null | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
bd40785dc6a88643609e7edbf8ce3f321d9a4c2b | 13,628 | py | Python | tests/functional/MHD/Dedner-divB/Dedner-divB.py | jmikeowen/Spheral | 3e1082a7aefd6b328bd3ae24ca1a477108cfc3c4 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 22 | 2018-07-31T21:38:22.000Z | 2020-06-29T08:58:33.000Z | tests/MHD/Dedner-divB/Dedner-divB.py | markguozhiming/spheral | bbb982102e61edb8a1d00cf780bfa571835e1b61 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 41 | 2020-09-28T23:14:27.000Z | 2022-03-28T17:01:33.000Z | tests/MHD/Dedner-divB/Dedner-divB.py | markguozhiming/spheral | bbb982102e61edb8a1d00cf780bfa571835e1b61 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 7 | 2019-12-01T07:00:06.000Z | 2020-09-15T21:12:39.000Z | #-------------------------------------------------------------------------------
# The evolution of a uniform, magnetized conducting fluid.
#-------------------------------------------------------------------------------
from math import *
from Spheral import *
from SpheralTestUtilities import *
from SpheralVisitDump i... | 38.497175 | 102 | 0.513355 | 1,352 | 13,628 | 5.173817 | 0.278107 | 0.014582 | 0.01158 | 0.008006 | 0.17441 | 0.115225 | 0.073767 | 0.042888 | 0.042888 | 0.037741 | 0 | 0.029868 | 0.181905 | 13,628 | 353 | 103 | 38.606232 | 0.597542 | 0.354417 | 0 | 0.047619 | 0 | 0 | 0.080616 | 0.030661 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.060606 | null | null | 0.004329 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
bd450ef0027c8079d72c1326d27ec8ea65559058 | 9,721 | py | Python | sdk/python/pulumi_aws_native/ec2/vpc_peering_connection.py | AaronFriel/pulumi-aws-native | 5621690373ac44accdbd20b11bae3be1baf022d1 | [
"Apache-2.0"
] | 29 | 2021-09-30T19:32:07.000Z | 2022-03-22T21:06:08.000Z | sdk/python/pulumi_aws_native/ec2/vpc_peering_connection.py | AaronFriel/pulumi-aws-native | 5621690373ac44accdbd20b11bae3be1baf022d1 | [
"Apache-2.0"
] | 232 | 2021-09-30T19:26:26.000Z | 2022-03-31T23:22:06.000Z | sdk/python/pulumi_aws_native/ec2/vpc_peering_connection.py | AaronFriel/pulumi-aws-native | 5621690373ac44accdbd20b11bae3be1baf022d1 | [
"Apache-2.0"
] | 4 | 2021-11-10T19:42:01.000Z | 2022-02-05T10:15:49.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
from... | 42.449782 | 210 | 0.654974 | 1,138 | 9,721 | 5.256591 | 0.132689 | 0.069876 | 0.06319 | 0.069876 | 0.679037 | 0.615012 | 0.584754 | 0.505349 | 0.472919 | 0.431795 | 0 | 0.00054 | 0.238556 | 9,721 | 228 | 211 | 42.635965 | 0.80762 | 0.105956 | 0 | 0.402367 | 1 | 0.017751 | 0.164261 | 0.026399 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142012 | false | 0.005917 | 0.04142 | 0.071006 | 0.272189 | 0 | 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 |
bd452aa45a4af6de3f14f8a40ccfd2772e86c8e0 | 1,703 | py | Python | 243_shortest_word_distance.py | gengwg/leetcode | 0af5256ec98149ef5863f3bba78ed1e749650f6e | [
"Apache-2.0"
] | 2 | 2018-04-24T19:17:40.000Z | 2018-04-24T19:33:52.000Z | 243_shortest_word_distance.py | gengwg/leetcode | 0af5256ec98149ef5863f3bba78ed1e749650f6e | [
"Apache-2.0"
] | null | null | null | 243_shortest_word_distance.py | gengwg/leetcode | 0af5256ec98149ef5863f3bba78ed1e749650f6e | [
"Apache-2.0"
] | 3 | 2020-06-17T05:48:52.000Z | 2021-01-02T06:08:25.000Z | """
243 Shortest Word Distance
Question:
Given a list of words and two words word1 and word2, return the shortest distance between these two words in the list.
For example,
Assume that words = ["practice", "makes", "perfect", "coding", "makes"].
Given word1 = "coding", word2 = "practice", return 3.
... | 27.467742 | 122 | 0.573106 | 215 | 1,703 | 4.502326 | 0.348837 | 0.051653 | 0.049587 | 0.024793 | 0.280992 | 0.245868 | 0.171488 | 0.171488 | 0.171488 | 0.171488 | 0 | 0.031906 | 0.300646 | 1,703 | 61 | 123 | 27.918033 | 0.780856 | 0.102173 | 0 | 0.25 | 0 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.208333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
bd557253c215754fa3bbfafcdb254942b489e7b1 | 516 | py | Python | pyaww/always_on_task.py | ammarsys/pyanywhere-wrapper | d8cde2d29900c25fc7ab3cd8103923f727b5dade | [
"MIT"
] | 5 | 2021-06-25T14:34:52.000Z | 2021-07-04T14:15:13.000Z | pyaww/always_on_task.py | ammarsys/pyanywhere-wrapper | d8cde2d29900c25fc7ab3cd8103923f727b5dade | [
"MIT"
] | 1 | 2021-12-12T00:47:25.000Z | 2022-01-24T17:19:43.000Z | pyaww/always_on_task.py | ammarsys/pyanywhere-wrapper | d8cde2d29900c25fc7ab3cd8103923f727b5dade | [
"MIT"
] | 1 | 2021-12-14T15:44:52.000Z | 2021-12-14T15:44:52.000Z | from .sched_task import SchedTask
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from .user import User
class AlwaysOnTask(SchedTask):
"""Inherits sheduled task class because they're pretty similar. Only 1 method difference."""
def __init__(self, resp: dict, user: 'User') -> None:
super().__i... | 27.157895 | 96 | 0.668605 | 67 | 516 | 4.895522 | 0.58209 | 0.073171 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002469 | 0.215116 | 516 | 18 | 97 | 28.666667 | 0.807407 | 0.217054 | 0 | 0 | 0 | 0 | 0.040712 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.272727 | 0.090909 | 0.727273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1f99587c9eef0d692b3616227d13b2408999e465 | 841 | py | Python | utils/db_helper.py | lyqht/palico-bot | 3bd4f1527aac442aae6bd15f45ab0ee4cf1c1d75 | [
"MIT"
] | 2 | 2020-02-20T17:01:36.000Z | 2020-02-23T11:56:05.000Z | utils/db_helper.py | lyqht/palico-bot | 3bd4f1527aac442aae6bd15f45ab0ee4cf1c1d75 | [
"MIT"
] | 1 | 2021-04-30T21:05:41.000Z | 2021-04-30T21:05:41.000Z | utils/db_helper.py | lyqht/palico-bot | 3bd4f1527aac442aae6bd15f45ab0ee4cf1c1d75 | [
"MIT"
] | 1 | 2020-02-20T17:01:40.000Z | 2020-02-20T17:01:40.000Z | import sqlite3
class DbHelper:
def __init__(self, dbname="todo.sqlite"):
self.dbname = dbname
self.conn = sqlite3.connect(dbname)
def setup(self):
stmt = "CREATE TABLE IF NOT EXISTS items (description text)"
self.conn.execute(stmt)
self.conn.commit()
def add_item(... | 28.033333 | 68 | 0.606421 | 105 | 841 | 4.742857 | 0.4 | 0.128514 | 0.120482 | 0.15261 | 0.335341 | 0.208835 | 0.208835 | 0.208835 | 0.208835 | 0.208835 | 0 | 0.004934 | 0.277051 | 841 | 30 | 69 | 28.033333 | 0.814145 | 0 | 0 | 0.304348 | 0 | 0 | 0.206651 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217391 | false | 0 | 0.043478 | 0 | 0.347826 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1f9bc1f42ed50304e3c07c797a6c2d25fdda79ae | 3,248 | py | Python | position_player/migrations/0001_initial.py | Wegi/position-player | 9e72ad3915a51391087ad076788b77c30b344b51 | [
"MIT"
] | null | null | null | position_player/migrations/0001_initial.py | Wegi/position-player | 9e72ad3915a51391087ad076788b77c30b344b51 | [
"MIT"
] | null | null | null | position_player/migrations/0001_initial.py | Wegi/position-player | 9e72ad3915a51391087ad076788b77c30b344b51 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2017-06-06 17:46
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
... | 40.098765 | 130 | 0.573892 | 325 | 3,248 | 5.593846 | 0.243077 | 0.039604 | 0.046205 | 0.072607 | 0.631463 | 0.60341 | 0.545655 | 0.50165 | 0.50165 | 0.50165 | 0 | 0.026237 | 0.284175 | 3,248 | 80 | 131 | 40.6 | 0.755699 | 0.020936 | 0 | 0.569444 | 1 | 0 | 0.085301 | 0.015109 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.055556 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1fa4d07f3448f8d6510963714760611486300dae | 21,839 | py | Python | bot.py | sohamjaiswal10/vella | 8f4eff505deb1d40c6a26349b76ebe545350cbe4 | [
"MIT"
] | null | null | null | bot.py | sohamjaiswal10/vella | 8f4eff505deb1d40c6a26349b76ebe545350cbe4 | [
"MIT"
] | null | null | null | bot.py | sohamjaiswal10/vella | 8f4eff505deb1d40c6a26349b76ebe545350cbe4 | [
"MIT"
] | null | null | null | import configparser
import json
import os
import sys
import contextlib
import random
import time
from pathlib import Path
import discord
import lavalink
import requests
import wikipedia as wiki
from discord import Embed, utils
from wikipedia.exceptions import *
from discord.errors import *
from discord.ext import com... | 42.078998 | 1,048 | 0.546041 | 2,524 | 21,839 | 4.709192 | 0.22504 | 0.059734 | 0.088339 | 0.116103 | 0.389618 | 0.337203 | 0.317937 | 0.28277 | 0.232122 | 0.213949 | 0 | 0.012612 | 0.335592 | 21,839 | 518 | 1,049 | 42.160232 | 0.805996 | 0 | 0 | 0.372768 | 0 | 0.017857 | 0.283667 | 0.022666 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020089 | false | 0 | 0.058036 | 0 | 0.091518 | 0.006696 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1fa4e76983b0eb6af9056992fae73d49621e7222 | 977 | py | Python | stack-kvp.py | blairw/stack-kvp | ae3f3a212d10b3741b2204d621fe29daee26dfb6 | [
"MIT"
] | null | null | null | stack-kvp.py | blairw/stack-kvp | ae3f3a212d10b3741b2204d621fe29daee26dfb6 | [
"MIT"
] | null | null | null | stack-kvp.py | blairw/stack-kvp | ae3f3a212d10b3741b2204d621fe29daee26dfb6 | [
"MIT"
] | null | null | null | import csv, array, sys
# all arrays start at 0
TRANPOSE_BEGINS_AT = 1
with sys.stdin as csvfile:
nextlinereader = csv.reader(csvfile, delimiter=',', quotechar='|')
headings = []
linecounter = 0
totalcolumns = 0
for row in nextlinereader:
# handle headings
if linecounter == 0:
preparedLineToPrint = ''
... | 22.72093 | 69 | 0.680655 | 101 | 977 | 6.524752 | 0.415842 | 0.063733 | 0.072838 | 0.078907 | 0.084977 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013263 | 0.22825 | 977 | 42 | 70 | 23.261905 | 0.860743 | 0.087001 | 0 | 0.285714 | 0 | 0 | 0.015801 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.035714 | null | null | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1fa74255b65f9de16f463c88158577d6a257a685 | 4,834 | py | Python | LDSReplicate/lds/ConfigWrapper.py | josephramsay/LDS | 8ee2bafc5fa69d47a9460d5920fc39cd2514a97f | [
"PostgreSQL"
] | 1 | 2018-09-08T02:04:17.000Z | 2018-09-08T02:04:17.000Z | LDSReplicate/lds/ConfigWrapper.py | linz/lds_replicate | 38fb97b075a5c5b97c69a640241d7b8d01f015c5 | [
"PostgreSQL"
] | null | null | null | LDSReplicate/lds/ConfigWrapper.py | linz/lds_replicate | 38fb97b075a5c5b97c69a640241d7b8d01f015c5 | [
"PostgreSQL"
] | null | null | null | '''
v.0.0.9
LDSReplicate - ConfigWrapper
Copyright 2011 Crown copyright (c)
Land Information New Zealand and the New Zealand Government.
All rights reserved
This program is released under the terms of the new BSD license. See the
LICENSE file for more information.
Created on 23/07/2012
@author: jramsay
'''
impor... | 36.621212 | 130 | 0.640463 | 587 | 4,834 | 5.253833 | 0.398637 | 0.031777 | 0.007134 | 0.009728 | 0.01297 | 0.01297 | 0.01297 | 0.01297 | 0 | 0 | 0 | 0.008324 | 0.254448 | 4,834 | 132 | 131 | 36.621212 | 0.847392 | 0.401738 | 0 | 0.037037 | 0 | 0 | 0.028214 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.055556 | 0.074074 | 0 | 0.388889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
1fabc49aa015ead5dfc5d28efee55499ef594c43 | 799 | py | Python | tests/components/image_processing/common.py | pcaston/core | e74d946cef7a9d4e232ae9e0ba150d18018cfe33 | [
"Apache-2.0"
] | 1 | 2021-07-08T20:09:55.000Z | 2021-07-08T20:09:55.000Z | tests/components/image_processing/common.py | pcaston/core | e74d946cef7a9d4e232ae9e0ba150d18018cfe33 | [
"Apache-2.0"
] | 47 | 2021-02-21T23:43:07.000Z | 2022-03-31T06:07:10.000Z | tests/components/image_processing/common.py | OpenPeerPower/core | f673dfac9f2d0c48fa30af37b0a99df9dd6640ee | [
"Apache-2.0"
] | null | null | null | """Collection of helper methods.
All containing methods are legacy helpers that should not be used by new
components. Instead call the service directly.
"""
from openpeerpower.components.image_processing import DOMAIN, SERVICE_SCAN
from openpeerpower.const import ATTR_ENTITY_ID, ENTITY_MATCH_ALL
from openpeerpower.cor... | 33.291667 | 74 | 0.790989 | 122 | 799 | 4.959016 | 0.434426 | 0.092562 | 0.092562 | 0.094215 | 0.295868 | 0.218182 | 0.218182 | 0.218182 | 0.218182 | 0.218182 | 0 | 0 | 0.132666 | 799 | 23 | 75 | 34.73913 | 0.873016 | 0.302879 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
1fb1c12982232a9eaccfca7e0f5434578c047c7e | 14,954 | py | Python | GM2AUTOSAR_MM/merge_inter_layer_rules/models/strip_matchmodel_MDL.py | levilucio/SyVOLT | 7526ec794d21565e3efcc925a7b08ae8db27d46a | [
"MIT"
] | 3 | 2017-06-02T19:26:27.000Z | 2021-06-14T04:25:45.000Z | UMLRT2Kiltera_MM/merge_preprocess_rules/models/strip_matchmodel_MDL.py | levilucio/SyVOLT | 7526ec794d21565e3efcc925a7b08ae8db27d46a | [
"MIT"
] | 8 | 2016-08-24T07:04:07.000Z | 2017-05-26T16:22:47.000Z | GM2AUTOSAR_MM/merge_inter_layer_rules/models/strip_matchmodel_MDL.py | levilucio/SyVOLT | 7526ec794d21565e3efcc925a7b08ae8db27d46a | [
"MIT"
] | 1 | 2019-10-31T06:00:23.000Z | 2019-10-31T06:00:23.000Z | """
__strip_matchmodel_MDL.py_____________________________________________________
Automatically generated AToM3 Model File (Do not modify directly)
Author: levi
Modified: Sat Jun 1 13:29:30 2013
______________________________________________________________________________
"""
from stickylink import *
from widthXfil... | 43.47093 | 745 | 0.686973 | 1,867 | 14,954 | 5.169255 | 0.118372 | 0.029841 | 0.02694 | 0.01347 | 0.605222 | 0.492591 | 0.420475 | 0.384831 | 0.361621 | 0.340897 | 0 | 0.034822 | 0.156948 | 14,954 | 343 | 746 | 43.597668 | 0.730705 | 0.122442 | 0 | 0.18894 | 1 | 0.036866 | 0.156226 | 0.063409 | 0 | 0 | 0 | 0 | 0 | 1 | 0.004608 | false | 0.004608 | 0.147465 | 0 | 0.152074 | 0 | 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 |
1fb74d42dd6a25b6b0521329ebdcc166a9df7c81 | 12,464 | py | Python | rodentia/test/display_test.py | miyosuda/rodent | 3d60a234eecd5e2476b186365eb121f0f3655c2e | [
"Apache-2.0"
] | 11 | 2017-09-14T00:52:35.000Z | 2018-07-16T12:21:48.000Z | rodentia/test/display_test.py | miyosuda/rodent | 3d60a234eecd5e2476b186365eb121f0f3655c2e | [
"Apache-2.0"
] | null | null | null | rodentia/test/display_test.py | miyosuda/rodent | 3d60a234eecd5e2476b186365eb121f0f3655c2e | [
"Apache-2.0"
] | null | null | null | import numpy as np
import os
import pygame, sys
from pygame.locals import *
import sys
sys.path.insert(0, os.getcwd())
import rodentia
BLACK = (0, 0, 0)
MAX_STEP_NUM = 60 * 30
class Display(object):
def __init__(self, display_size):
self.width = 640
self.height = 480
self.data_path = os... | 28.13544 | 79 | 0.50337 | 1,680 | 12,464 | 3.533929 | 0.107143 | 0.036382 | 0.036382 | 0.035371 | 0.684352 | 0.654708 | 0.635001 | 0.61142 | 0.608051 | 0.606198 | 0 | 0.075628 | 0.370908 | 12,464 | 442 | 80 | 28.199095 | 0.681546 | 0.032654 | 0 | 0.581121 | 0 | 0 | 0.011731 | 0.001747 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029499 | false | 0 | 0.017699 | 0 | 0.056047 | 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 |
1fbaf02566013a8fd34b3e6b094a7a24135b8b10 | 649 | py | Python | TopologicalPolyhedralization_1.0.py | Pirouz-Nourian/Topological_Voxeliziation_and_Polyhedralization | 1df5bd4df2ce6922c47eaf686522006d0b84d4b2 | [
"MIT"
] | 3 | 2021-05-11T17:48:16.000Z | 2022-03-21T05:35:57.000Z | TopologicalPolyhedralization_1.0.py | Pirouz-Nourian/Topological_Voxeliziation_and_Polyhedralization | 1df5bd4df2ce6922c47eaf686522006d0b84d4b2 | [
"MIT"
] | null | null | null | TopologicalPolyhedralization_1.0.py | Pirouz-Nourian/Topological_Voxeliziation_and_Polyhedralization | 1df5bd4df2ce6922c47eaf686522006d0b84d4b2 | [
"MIT"
] | null | null | null | """Provides a scripting component.
Inputs:
x: The x script variable
y: The y script variable
Output:
a: The a output variable"""
__author__ = "pnourian"
__version__ = "2020.08.23"
import Rhino.Geometry as rg
blockMeshes=[]
for blockMesh in B:
edgeLines=[blockMesh.Topo... | 28.217391 | 98 | 0.657935 | 75 | 649 | 5.6 | 0.626667 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018634 | 0.255778 | 649 | 22 | 99 | 29.5 | 0.848861 | 0 | 0 | 0 | 0 | 0 | 0.038627 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.071429 | 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 |
1fc10dc8a7de2f889fac2385a3afc544e4307cea | 1,588 | py | Python | flow/api/auth/__init__.py | mariano-git/plugin.video.flow | a63362f308c1e67ba532acf9ba4eced95a243f49 | [
"MIT"
] | 3 | 2022-01-19T00:27:24.000Z | 2022-03-24T15:15:24.000Z | flow/api/auth/__init__.py | mariano-git/plugin.video.flow | a63362f308c1e67ba532acf9ba4eced95a243f49 | [
"MIT"
] | 3 | 2021-12-30T06:05:30.000Z | 2022-01-19T02:52:21.000Z | flow/api/auth/__init__.py | mariano-git/plugin.video.flow | a63362f308c1e67ba532acf9ba4eced95a243f49 | [
"MIT"
] | null | null | null | from typing import List
from ext.util import ModelHelper
from ext.ws.rs import Path, POST, Produces, Consumes, GET
from ext.ws.rs.core import MediaType
class LoginData(ModelHelper):
accountId: str
password: str
deviceName: str
deviceType: str
devicePlatform: str
clientCasId: str
version: ... | 19.13253 | 59 | 0.65995 | 170 | 1,588 | 6.105882 | 0.358824 | 0.115607 | 0.138728 | 0.123314 | 0.156069 | 0.156069 | 0.156069 | 0.156069 | 0.156069 | 0.156069 | 0 | 0.000831 | 0.241814 | 1,588 | 82 | 60 | 19.365854 | 0.861296 | 0.006927 | 0 | 0.35 | 0 | 0 | 0.04 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0.183333 | 0.066667 | 0.016667 | 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 |
1fc11fad5fed3a2be339e92bc32bfa76ce021534 | 1,449 | py | Python | main.py | eugland/container_infrastructure | 99cb5360cf3943ac3ce19dc82d93a5be61f25488 | [
"MIT"
] | null | null | null | main.py | eugland/container_infrastructure | 99cb5360cf3943ac3ce19dc82d93a5be61f25488 | [
"MIT"
] | null | null | null | main.py | eugland/container_infrastructure | 99cb5360cf3943ac3ce19dc82d93a5be61f25488 | [
"MIT"
] | null | null | null | from flask import Flask
import time
import sys
app = Flask(__name__)
# define constants
x = [0,0,0,0,0]
a = [[4,1,2,1,1],[3,5,1,1,1],[1,1,3,1,1],[1,1,1,5,1], [1,1,1,1,9]]
b = [4,7,3,9,2]
import logging
log = logging.getLogger('werkzeug')
log.setLevel(logging.ERROR)
@app.route("/")
def home():
return "Hel... | 26.833333 | 95 | 0.505176 | 221 | 1,449 | 3.248869 | 0.380091 | 0.036212 | 0.037604 | 0.033426 | 0.057103 | 0.016713 | 0 | 0 | 0 | 0 | 0 | 0.046465 | 0.31677 | 1,449 | 53 | 96 | 27.339623 | 0.678788 | 0.108351 | 0 | 0 | 0 | 0 | 0.088419 | 0.052426 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078947 | false | 0.078947 | 0.105263 | 0.026316 | 0.236842 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
1fc5df93193a59913e8d2c7f62a8cede2ed28346 | 4,195 | py | Python | sdk/python/pulumi_oci/core/get_ipsec_connection_tunnels.py | EladGabay/pulumi-oci | 6841e27d4a1a7e15c672306b769912efbfd3ba99 | [
"ECL-2.0",
"Apache-2.0"
] | 5 | 2021-08-17T11:14:46.000Z | 2021-12-31T02:07:03.000Z | sdk/python/pulumi_oci/core/get_ipsec_connection_tunnels.py | pulumi-oci/pulumi-oci | 6841e27d4a1a7e15c672306b769912efbfd3ba99 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2021-09-06T11:21:29.000Z | 2021-09-06T11:21:29.000Z | sdk/python/pulumi_oci/core/get_ipsec_connection_tunnels.py | pulumi-oci/pulumi-oci | 6841e27d4a1a7e15c672306b769912efbfd3ba99 | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2021-08-24T23:31:30.000Z | 2022-01-02T19:26:54.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import... | 37.792793 | 163 | 0.698927 | 472 | 4,195 | 5.904661 | 0.29661 | 0.109795 | 0.080732 | 0.118407 | 0.170075 | 0.100466 | 0.054539 | 0.016505 | 0 | 0 | 0 | 0.000302 | 0.209774 | 4,195 | 110 | 164 | 38.136364 | 0.840422 | 0.208343 | 0 | 0.088235 | 1 | 0 | 0.186351 | 0.124026 | 0 | 0 | 0 | 0 | 0 | 1 | 0.102941 | false | 0 | 0.102941 | 0.029412 | 0.323529 | 0 | 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 |
1fc66614af96cde51002442b71d68b5de67d551d | 2,353 | py | Python | tests/test_tools.py | WithPrecedent/denovo | dbbc5298f785493b3aa1fd3a2d4f9524b1ac04c7 | [
"Apache-2.0"
] | null | null | null | tests/test_tools.py | WithPrecedent/denovo | dbbc5298f785493b3aa1fd3a2d4f9524b1ac04c7 | [
"Apache-2.0"
] | null | null | null | tests/test_tools.py | WithPrecedent/denovo | dbbc5298f785493b3aa1fd3a2d4f9524b1ac04c7 | [
"Apache-2.0"
] | null | null | null | """
test_tools: tests function in denovo.tools
Corey Rayburn Yung <coreyrayburnyung@gmail.com>
Copyright 2020-2021, Corey Rayburn Yung
License: Apache-2.0 (https://www.apache.org/licenses/LICENSE-2.0)
ToDo:
Add tests for the remaining functions in tools.
"""
import sys
from typing import (Any, Callable, Class... | 29.4125 | 80 | 0.658309 | 299 | 2,353 | 4.979933 | 0.324415 | 0.08865 | 0.057085 | 0.069846 | 0.395567 | 0.127602 | 0.098052 | 0.098052 | 0.065816 | 0.065816 | 0 | 0.009836 | 0.222269 | 2,353 | 80 | 81 | 29.4125 | 0.803825 | 0.108372 | 0 | 0.224138 | 0 | 0 | 0.025407 | 0 | 0 | 0 | 0 | 0.0125 | 0.206897 | 1 | 0.086207 | false | 0 | 0.051724 | 0 | 0.293103 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
1fc7d234027f454fd6696a561798cf33f3b5fcd3 | 1,899 | py | Python | lib/googlecloudsdk/command_lib/kuberun/kuberuncli.py | google-cloud-sdk-unofficial/google-cloud-sdk | 2a48a04df14be46c8745050f98768e30474a1aac | [
"Apache-2.0"
] | 2 | 2019-11-10T09:17:07.000Z | 2019-12-18T13:44:08.000Z | lib/googlecloudsdk/command_lib/kuberun/kuberuncli.py | google-cloud-sdk-unofficial/google-cloud-sdk | 2a48a04df14be46c8745050f98768e30474a1aac | [
"Apache-2.0"
] | null | null | null | lib/googlecloudsdk/command_lib/kuberun/kuberuncli.py | google-cloud-sdk-unofficial/google-cloud-sdk | 2a48a04df14be46c8745050f98768e30474a1aac | [
"Apache-2.0"
] | 1 | 2020-07-25T01:40:19.000Z | 2020-07-25T01:40:19.000Z | # -*- coding: utf-8 -*- #
# Copyright 2020 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | 34.527273 | 84 | 0.749342 | 254 | 1,899 | 5.448819 | 0.566929 | 0.043353 | 0.034682 | 0.023121 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011436 | 0.171143 | 1,899 | 54 | 85 | 35.166667 | 0.867853 | 0.482886 | 0 | 0 | 0 | 0 | 0.027368 | 0 | 0 | 0 | 0 | 0.018519 | 0 | 1 | 0.111111 | false | 0 | 0.259259 | 0.037037 | 0.481481 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1fee430baadde5bb283a1b57ae04e03112890295 | 596 | py | Python | test/lammpstools/test_merge.py | Pakketeretet2/lammps-tools | 1e2109018a7412c33c80bb3eceb1f97003495341 | [
"Unlicense"
] | 4 | 2017-09-04T14:39:51.000Z | 2020-08-07T01:30:00.000Z | test/lammpstools/test_merge.py | Pakketeretet2/lammps-tools | 1e2109018a7412c33c80bb3eceb1f97003495341 | [
"Unlicense"
] | null | null | null | test/lammpstools/test_merge.py | Pakketeretet2/lammps-tools | 1e2109018a7412c33c80bb3eceb1f97003495341 | [
"Unlicense"
] | null | null | null | import lammpstools, dumpreader, block_data
d = dumpreader.dumpreader_cpp( "melt.dump" )
b = d.getblock()
print("Block at t = ", b.meta.t, " has ", b.meta.N, " particles and atom style",
b.meta.atom_style)
for b2 in d:
pass
print("Block at t = ", b2.meta.t, " has ", b2.meta.N, " particles and atom style",... | 31.368421 | 82 | 0.652685 | 98 | 596 | 3.857143 | 0.377551 | 0.142857 | 0.095238 | 0.103175 | 0.417989 | 0.417989 | 0.349206 | 0.349206 | 0.349206 | 0.349206 | 0 | 0.018557 | 0.186242 | 596 | 18 | 83 | 33.111111 | 0.760825 | 0 | 0 | 0.285714 | 0 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.071429 | 0.071429 | 0 | 0.071429 | 0.285714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1ff4da61b9b8452edd9df279e0532c1a19b40573 | 1,680 | py | Python | authentik/api/authorization.py | BeryJu/passbook | 350f0d836580f4411524614f361a76c4f27b8a2d | [
"MIT"
] | 15 | 2020-01-05T09:09:57.000Z | 2020-11-28T05:27:39.000Z | authentik/api/authorization.py | BeryJu/passbook | 350f0d836580f4411524614f361a76c4f27b8a2d | [
"MIT"
] | 302 | 2020-01-21T08:03:59.000Z | 2020-12-04T05:04:57.000Z | authentik/api/authorization.py | BeryJu/passbook | 350f0d836580f4411524614f361a76c4f27b8a2d | [
"MIT"
] | 3 | 2020-03-04T08:21:59.000Z | 2020-08-01T20:37:18.000Z | """API Authorization"""
from django.db.models import Model
from django.db.models.query import QuerySet
from rest_framework.filters import BaseFilterBackend
from rest_framework.permissions import BasePermission
from rest_framework.request import Request
class OwnerFilter(BaseFilterBackend):
"""Filter objects by th... | 35.744681 | 86 | 0.705952 | 205 | 1,680 | 5.692683 | 0.365854 | 0.034276 | 0.061697 | 0.071979 | 0.174807 | 0.147386 | 0.095973 | 0.095973 | 0.095973 | 0.095973 | 0 | 0 | 0.208929 | 1,680 | 46 | 87 | 36.521739 | 0.878104 | 0.227976 | 0 | 0.37037 | 0 | 0 | 0.006359 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.148148 | false | 0 | 0.185185 | 0 | 0.814815 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9507143c2e01b52559fc002f4e9344a5433c45bf | 1,456 | py | Python | dp/combination_sum.py | Ratione/Python-Algroithms | 3485d63e47ff635b8ca44f90400167c516bcbd6d | [
"MIT"
] | null | null | null | dp/combination_sum.py | Ratione/Python-Algroithms | 3485d63e47ff635b8ca44f90400167c516bcbd6d | [
"MIT"
] | null | null | null | dp/combination_sum.py | Ratione/Python-Algroithms | 3485d63e47ff635b8ca44f90400167c516bcbd6d | [
"MIT"
] | null | null | null | Given an integer array with all positive numbers and no duplicates, find the number of possible combinations that add up to a positive integer target.
Example:
nums = [1, 2, 3]
target = 4
The possible combination ways are:
(1, 1, 1, 1)
(1, 1, 2)
(1, 2, 1)
(1, 3)
(2, 1, 1)
(2, 2)
(3, 1)
Note that different sequences... | 22.75 | 150 | 0.586538 | 226 | 1,456 | 3.778761 | 0.362832 | 0.016393 | 0.014052 | 0.014052 | 0.100703 | 0.093677 | 0.093677 | 0 | 0 | 0 | 0 | 0.037285 | 0.281593 | 1,456 | 63 | 151 | 23.111111 | 0.779159 | 0 | 0 | 0.039216 | 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 |
950d28eb39d9e46d1b917626e7f1ef4ba72657a2 | 379 | py | Python | series/series.py | ghaith96/exercism-python | 5b0c336e6442a987c9202a42e135a1d94dcea23f | [
"MIT"
] | null | null | null | series/series.py | ghaith96/exercism-python | 5b0c336e6442a987c9202a42e135a1d94dcea23f | [
"MIT"
] | null | null | null | series/series.py | ghaith96/exercism-python | 5b0c336e6442a987c9202a42e135a1d94dcea23f | [
"MIT"
] | null | null | null | def slices(series, length):
if not series:
raise ValueError("invalid series")
if length <= 0:
raise ValueError("Length must be positive integer")
if length > len(series):
raise ValueError("Length must be less or equal to series length")
return [
series[start : start + len... | 34.454545 | 86 | 0.633245 | 50 | 379 | 4.8 | 0.5 | 0.15 | 0.175 | 0.208333 | 0.225 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01083 | 0.269129 | 379 | 10 | 87 | 37.9 | 0.855596 | 0 | 0 | 0 | 0 | 0 | 0.237467 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.2 | 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 |
9510ca8880b4abe45dfbb62408d7be7663f0e0c5 | 1,682 | py | Python | tests/functional/test_cli.py | J35P312/loqusdb | 4ca233b80b2f6b8488edcb00975fa495ffbb7b6f | [
"MIT"
] | null | null | null | tests/functional/test_cli.py | J35P312/loqusdb | 4ca233b80b2f6b8488edcb00975fa495ffbb7b6f | [
"MIT"
] | null | null | null | tests/functional/test_cli.py | J35P312/loqusdb | 4ca233b80b2f6b8488edcb00975fa495ffbb7b6f | [
"MIT"
] | null | null | null | from loqusdb.commands import base_command
from click.testing import CliRunner
def test_base_command():
runner = CliRunner()
result = runner.invoke(base_command, [])
assert result.exit_code == 0
class TestLoadCommand:
# def test_load_command(self, mongo_client, vcf_path, ped_path):
# ... | 33.64 | 103 | 0.628419 | 200 | 1,682 | 5.02 | 0.18 | 0.098606 | 0.111554 | 0.160359 | 0.795817 | 0.665339 | 0.609562 | 0.609562 | 0.545817 | 0.545817 | 0 | 0.003717 | 0.200357 | 1,682 | 49 | 104 | 34.326531 | 0.742751 | 0.640904 | 0 | 0.166667 | 0 | 0 | 0.055749 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.416667 | 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 |
952ad9831a96d608f305e91ce64f26ed076b037c | 374 | py | Python | server.py | Novacation/Python-Api-Request | 211c59c5f8fc49006b23f3845b243bab57e2dd77 | [
"MIT"
] | null | null | null | server.py | Novacation/Python-Api-Request | 211c59c5f8fc49006b23f3845b243bab57e2dd77 | [
"MIT"
] | null | null | null | server.py | Novacation/Python-Api-Request | 211c59c5f8fc49006b23f3845b243bab57e2dd77 | [
"MIT"
] | null | null | null | import http.server
import socketserver
class myHandler(http.server.SimpleHTTPRequestHandler):
def do_GET(self):
if self.path == '/':
self.path = 'myotherpage.html'
return http.server.SimpleHTTPRequestHandler.do_GET(self)
PORT = 8000
handler = myHandler
myServer = socketserver.T... | 22 | 68 | 0.703209 | 40 | 374 | 6.5 | 0.575 | 0.115385 | 0.261538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013158 | 0.187166 | 374 | 17 | 69 | 22 | 0.842105 | 0 | 0 | 0 | 0 | 0 | 0.045333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.181818 | 0 | 0.454545 | 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 |
952cfb0664beb96c72d26cbf71594b3b11484848 | 269 | py | Python | architecture/db_util.py | elisesweetnam/ES595project | 7c76a0d325b9ca4f31ab0723a217e621902a8100 | [
"MIT"
] | null | null | null | architecture/db_util.py | elisesweetnam/ES595project | 7c76a0d325b9ca4f31ab0723a217e621902a8100 | [
"MIT"
] | null | null | null | architecture/db_util.py | elisesweetnam/ES595project | 7c76a0d325b9ca4f31ab0723a217e621902a8100 | [
"MIT"
] | null | null | null | import db.initilise_db as init
import db.write_db as wrt
def handleDatabase():
'''
This module handles the database reading and writing
'''
init.handleInitiliseDB()
wrt.handleWriting()
if __name__ == "__main__":
handleDatabase() | 22.416667 | 57 | 0.66171 | 30 | 269 | 5.6 | 0.733333 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.249071 | 269 | 12 | 58 | 22.416667 | 0.831683 | 0.193309 | 0 | 0 | 0 | 0 | 0.041885 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | true | 0 | 0.285714 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
20f9386edef4064fe44fd79ef7071301a3afade1 | 608 | py | Python | code_analysis/old/code_analysis/doc_analysis.py | AnacletoLAB/ensmallen_graph | b2c1b18fb1e5801712852bcc239f239e03076f09 | [
"MIT"
] | 5 | 2021-02-17T00:44:45.000Z | 2021-08-09T16:41:47.000Z | code_analysis/old/code_analysis/doc_analysis.py | AnacletoLAB/ensmallen_graph | b2c1b18fb1e5801712852bcc239f239e03076f09 | [
"MIT"
] | 18 | 2021-01-07T16:47:39.000Z | 2021-08-12T21:51:32.000Z | code_analysis/old/code_analysis/doc_analysis.py | AnacletoLAB/ensmallen | b2c1b18fb1e5801712852bcc239f239e03076f09 | [
"MIT"
] | 3 | 2021-01-14T02:20:59.000Z | 2021-08-04T19:09:52.000Z | import re
import sys
import json
from ensmallen import Graph
from .utils import build_path
from .parsers import DocParser
def doc_analysis(args):
with open(build_path("results/analysis.json"), "r") as f:
analysis = json.load(f)
result = {}
for values in analysis.values():
for function in ... | 27.636364 | 92 | 0.646382 | 84 | 608 | 4.619048 | 0.488095 | 0.069588 | 0.06701 | 0.087629 | 0.123711 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004175 | 0.212171 | 608 | 22 | 93 | 27.636364 | 0.805846 | 0 | 0 | 0 | 0 | 0 | 0.108374 | 0.075534 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.352941 | 0 | 0.411765 | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
1f0184d0953d65a690c082d21d86fd463ee3e808 | 4,669 | py | Python | venv/lib/python3.6/site-packages/ansible_collections/netapp/ontap/tests/unit/plugins/modules/test_na_ontap_cifs_local_user_set_password.py | usegalaxy-no/usegalaxy | 75dad095769fe918eb39677f2c887e681a747f3a | [
"MIT"
] | 1 | 2020-01-22T13:11:23.000Z | 2020-01-22T13:11:23.000Z | venv/lib/python3.6/site-packages/ansible_collections/netapp/ontap/tests/unit/plugins/modules/test_na_ontap_cifs_local_user_set_password.py | usegalaxy-no/usegalaxy | 75dad095769fe918eb39677f2c887e681a747f3a | [
"MIT"
] | 12 | 2020-02-21T07:24:52.000Z | 2020-04-14T09:54:32.000Z | venv/lib/python3.6/site-packages/ansible_collections/netapp/ontap/tests/unit/plugins/modules/test_na_ontap_cifs_local_user_set_password.py | usegalaxy-no/usegalaxy | 75dad095769fe918eb39677f2c887e681a747f3a | [
"MIT"
] | null | null | null | # (c) 2021, NetApp, Inc
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
''' unit test for ONTAP disks Ansible module '''
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
import json
import pytest
from ansible.module_utils import basi... | 32.880282 | 133 | 0.698222 | 620 | 4,669 | 5.037097 | 0.31129 | 0.019212 | 0.024976 | 0.027217 | 0.327249 | 0.268972 | 0.243356 | 0.184438 | 0.146654 | 0.146654 | 0 | 0.005857 | 0.195545 | 4,669 | 141 | 134 | 33.113475 | 0.825612 | 0.215035 | 0 | 0.230769 | 0 | 0 | 0.090198 | 0 | 0 | 0 | 0 | 0 | 0.043956 | 1 | 0.131868 | false | 0.087912 | 0.087912 | 0 | 0.274725 | 0.043956 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1f066962ea11f83324d3eac490fbebe575bc2805 | 1,956 | py | Python | algorithms/dselect.py | pisskidney/leetcode | 08c19cbf3d7afc897908ea05db4ad11a5487f523 | [
"MIT"
] | null | null | null | algorithms/dselect.py | pisskidney/leetcode | 08c19cbf3d7afc897908ea05db4ad11a5487f523 | [
"MIT"
] | null | null | null | algorithms/dselect.py | pisskidney/leetcode | 08c19cbf3d7afc897908ea05db4ad11a5487f523 | [
"MIT"
] | null | null | null | #!/usr/bin/python
from sys import exit
class DSelect(object):
'''Deterministic i'th order selection algorithm that is guaranteed
to run in O(n).'''
def partition(self, A, start, end, pivot):
A[start], A[pivot] = A[pivot], A[start]
j = 0
for i in xrange(start + 1, end + 1):
... | 24.148148 | 70 | 0.484151 | 297 | 1,956 | 3.175084 | 0.212121 | 0.057264 | 0.057264 | 0.090138 | 0.159067 | 0.127253 | 0.086957 | 0.065748 | 0.065748 | 0 | 0 | 0.047352 | 0.362986 | 1,956 | 80 | 71 | 24.45 | 0.70947 | 0.00818 | 0 | 0.145455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 0 | null | null | 0 | 0.036364 | null | null | 0.054545 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1f070a0b5b232cb9a2569eaa2ba7d086596c5f98 | 6,623 | py | Python | app/db_pages.py | ptdriscoll/klrn-passport-referrals-database | 417b368dbeb937dc04fe5e5c7ac503bc8fdd850e | [
"MIT"
] | null | null | null | app/db_pages.py | ptdriscoll/klrn-passport-referrals-database | 417b368dbeb937dc04fe5e5c7ac503bc8fdd850e | [
"MIT"
] | null | null | null | app/db_pages.py | ptdriscoll/klrn-passport-referrals-database | 417b368dbeb937dc04fe5e5c7ac503bc8fdd850e | [
"MIT"
] | null | null | null | import datetime
import sqlite3
import analytics
from db_backup import database_backup
#create list of dates to run through analytics api call
def get_dates(last_date):
start = datetime.datetime.utcfromtimestamp(last_date).toordinal() + 1
end = datetime.date.today().toordinal()
#######################... | 32.625616 | 129 | 0.591424 | 820 | 6,623 | 4.676829 | 0.236585 | 0.028683 | 0.019557 | 0.027119 | 0.169752 | 0.111343 | 0.063625 | 0.038592 | 0.038592 | 0.038592 | 0 | 0.008552 | 0.276159 | 6,623 | 203 | 130 | 32.625616 | 0.791406 | 0.198098 | 0 | 0.133858 | 0 | 0.007874 | 0.357858 | 0.006671 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.031496 | null | null | 0.07874 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1f0adc9969b3a6f36fda609886e57b560eff909c | 2,046 | py | Python | machines/product/admin.py | Guilehm/machines | 859b909cebfd6b72e3f4e0bb6e1a6f4b7afcd255 | [
"MIT"
] | null | null | null | machines/product/admin.py | Guilehm/machines | 859b909cebfd6b72e3f4e0bb6e1a6f4b7afcd255 | [
"MIT"
] | 7 | 2020-06-05T23:00:22.000Z | 2021-06-10T18:53:59.000Z | machines/product/admin.py | Guilehm/machines | 859b909cebfd6b72e3f4e0bb6e1a6f4b7afcd255 | [
"MIT"
] | null | null | null | from django.contrib import admin
from machines.product.models import Machine, Module, Variation, Picture
admin.site.site_header = 'Machines Admin'
class MachineVariationInline(admin.StackedInline):
model = Machine.variations.through
extra = 0
exclude = (
'description',
'pictures',
)... | 25.575 | 71 | 0.672532 | 200 | 2,046 | 6.73 | 0.29 | 0.053492 | 0.068351 | 0.077266 | 0.36107 | 0.218425 | 0.142645 | 0.142645 | 0.142645 | 0.089153 | 0 | 0.003008 | 0.187683 | 2,046 | 79 | 72 | 25.898734 | 0.806859 | 0 | 0 | 0.344828 | 0 | 0 | 0.175953 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.034483 | 0 | 0.758621 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1f1320287465f8a576bdc54288f600ec6f3015dd | 1,004 | py | Python | test/browser/wait/until/url/contains_3_test.py | jakob-bagterp/browserist | 76bd916dd217b7da3759fd6ec3374191002dc091 | [
"Apache-2.0"
] | 2 | 2022-02-20T10:03:19.000Z | 2022-03-22T11:17:10.000Z | test/browser/wait/until/url/contains_3_test.py | jakob-bagterp/browserist | 76bd916dd217b7da3759fd6ec3374191002dc091 | [
"Apache-2.0"
] | null | null | null | test/browser/wait/until/url/contains_3_test.py | jakob-bagterp/browserist | 76bd916dd217b7da3759fd6ec3374191002dc091 | [
"Apache-2.0"
] | null | null | null | from contextlib import nullcontext as does_not_raise
from typing import Any
import pytest
from _mock_data.url import internal_url
from browserist import Browser
from browserist.constant import timeout
from browserist.exception.timeout import WaitForUrlTimeoutException
@pytest.mark.parametrize("url1, url2, url2_frag... | 43.652174 | 136 | 0.796813 | 131 | 1,004 | 5.832061 | 0.358779 | 0.115183 | 0.073298 | 0.120419 | 0.234293 | 0.204188 | 0.204188 | 0.204188 | 0.146597 | 0.146597 | 0 | 0.015819 | 0.118526 | 1,004 | 22 | 137 | 45.636364 | 0.847458 | 0 | 0 | 0 | 0 | 0 | 0.054781 | 0 | 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 |
1f1e6890a714a0d8d6766c06d54885f96c4ce79e | 1,772 | py | Python | webapp/fila_da_creche/queries/fila_por_escolas.py | prefeiturasp/SME-VagasNaCreche-API | 20ae8862375124c7459fe6ff2d2d33ed34d136fb | [
"0BSD"
] | null | null | null | webapp/fila_da_creche/queries/fila_por_escolas.py | prefeiturasp/SME-VagasNaCreche-API | 20ae8862375124c7459fe6ff2d2d33ed34d136fb | [
"0BSD"
] | 9 | 2020-06-06T00:20:46.000Z | 2022-02-10T10:57:35.000Z | webapp/fila_da_creche/queries/fila_por_escolas.py | prefeiturasp/SME-VagasNaCreche-API | 20ae8862375124c7459fe6ff2d2d33ed34d136fb | [
"0BSD"
] | 1 | 2020-09-17T14:46:24.000Z | 2020-09-17T14:46:24.000Z | from utils.db_fila_creche_connection import FilaDBConnection
def get_fila_por_escolas(cd_serie, lon, lat, raio):
connection = FilaDBConnection()
querie_escolas = f"""
select juntado.cd_unidade_educacao,
tipo,
escola,
upper(endereco_completo) endereco_completo,
... | 44.3 | 106 | 0.548533 | 187 | 1,772 | 4.898396 | 0.44385 | 0.114629 | 0.092795 | 0.058952 | 0.148472 | 0.10917 | 0.10917 | 0.10917 | 0.10917 | 0.10917 | 0 | 0.016529 | 0.38544 | 1,772 | 39 | 107 | 45.435897 | 0.82461 | 0 | 0 | 0 | 0 | 0.027778 | 0.858352 | 0.203725 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027778 | false | 0 | 0.027778 | 0 | 0.083333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1f23fe15eadf989a30328d473c7405a6d07026f3 | 252 | py | Python | emencia_paste_djangocms_2/django_buildout/project/settings_development.py | emencia/emencia_paste_djangocms_2 | 23bc97aef2f235f1be1fc5ba8ffce53064a5b6ca | [
"MIT"
] | null | null | null | emencia_paste_djangocms_2/django_buildout/project/settings_development.py | emencia/emencia_paste_djangocms_2 | 23bc97aef2f235f1be1fc5ba8ffce53064a5b6ca | [
"MIT"
] | 3 | 2017-12-16T23:45:20.000Z | 2017-12-16T23:45:37.000Z | emencia_paste_djangocms_2/django_buildout/project/settings_development.py | emencia/emencia_paste_djangocms_2 | 23bc97aef2f235f1be1fc5ba8ffce53064a5b6ca | [
"MIT"
] | null | null | null | """
Settings to use for development
"""
from settings import *
# Enable django-debug-toolbar for the following IPs
INTERNAL_IPS = ('127.0.0.1',)
# Test emails by looking at the console
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
| 22.909091 | 64 | 0.753968 | 37 | 252 | 5.081081 | 0.810811 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027523 | 0.134921 | 252 | 10 | 65 | 25.2 | 0.834862 | 0.47619 | 0 | 0 | 0 | 0 | 0.447154 | 0.373984 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
1f293e04dea602300c6280cccf58f3f3927673b9 | 1,734 | py | Python | OpenCV/Opencv documentations/OpenCV-Python Tutorials/Image Processing in OpenCV/Histograms in OpenCV/histogram.py | ahmedosaka/HACKER_RANK | f594fa8e1eeed0598f7151556a1068865cf9be91 | [
"MIT"
] | null | null | null | OpenCV/Opencv documentations/OpenCV-Python Tutorials/Image Processing in OpenCV/Histograms in OpenCV/histogram.py | ahmedosaka/HACKER_RANK | f594fa8e1eeed0598f7151556a1068865cf9be91 | [
"MIT"
] | null | null | null | OpenCV/Opencv documentations/OpenCV-Python Tutorials/Image Processing in OpenCV/Histograms in OpenCV/histogram.py | ahmedosaka/HACKER_RANK | f594fa8e1eeed0598f7151556a1068865cf9be91 | [
"MIT"
] | null | null | null | # import cv2
# import numpy as np
# from matplotlib import pyplot as plt
# img = cv2.imread('Louane.jpg',0)
# plt.hist(img.ravel(),256,[0,256]); plt.show()
'''
Plotting Histograms
1. Using Matplotlib
'''
# import cv2
# import numpy as np
# from matplotlib import pyplot as plt
# img = cv2.imread('Louane.jpg')
# colo... | 23.432432 | 72 | 0.661476 | 279 | 1,734 | 4.078853 | 0.27957 | 0.042179 | 0.036907 | 0.087873 | 0.471002 | 0.471002 | 0.355888 | 0.355888 | 0.355888 | 0.326011 | 0 | 0.085482 | 0.149942 | 1,734 | 74 | 73 | 23.432432 | 0.686567 | 0.749712 | 0 | 0 | 0 | 0 | 0.052147 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
1f2d3ad213b7095b65280ea3c364b2e1cc313c0d | 1,105 | py | Python | devito/core/__init__.py | rwalkerlewis/devito | 262364e5f2855ad01a281d517d400704b7667420 | [
"MIT"
] | null | null | null | devito/core/__init__.py | rwalkerlewis/devito | 262364e5f2855ad01a281d517d400704b7667420 | [
"MIT"
] | null | null | null | devito/core/__init__.py | rwalkerlewis/devito | 262364e5f2855ad01a281d517d400704b7667420 | [
"MIT"
] | null | null | null | """
The ``core`` Devito backend is simply a "shadow" of the ``base`` backend,
common to all other backends. The ``core`` backend (and therefore the ``base``
backend as well) are used to run Devito on standard CPU architectures.
"""
from devito.dle import (BasicRewriter, AdvancedRewriter, AdvancedRewriterSafeMath,
... | 38.103448 | 82 | 0.752941 | 132 | 1,105 | 6.212121 | 0.44697 | 0.097561 | 0.085366 | 0.115854 | 0.179268 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.161991 | 1,105 | 28 | 83 | 39.464286 | 0.885529 | 0.289593 | 0 | 0 | 0 | 0 | 0.058442 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.470588 | 0 | 0.470588 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
1f3149c510bcc53ca10e1b0ba5f5cea0d8ddc602 | 343 | py | Python | gip/main.py | elda27/GIP | b79a444a411042967484d7c5d88639084748d1b0 | [
"MIT"
] | null | null | null | gip/main.py | elda27/GIP | b79a444a411042967484d7c5d88639084748d1b0 | [
"MIT"
] | null | null | null | gip/main.py | elda27/GIP | b79a444a411042967484d7c5d88639084748d1b0 | [
"MIT"
] | null | null | null | from gip.logging import autoinit # NOQA
import gip.functions
from gip import args
from gip import version
__version__ = version.__version__
def main():
parser = args.ArgumentsParser()
tokens = parser.parse_tokens()
if len(tokens) == 0:
tokens.append(args.Token('', 'help', verbose=False))
gi... | 21.4375 | 60 | 0.699708 | 45 | 343 | 5.133333 | 0.577778 | 0.090909 | 0.112554 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003584 | 0.186589 | 343 | 15 | 61 | 22.866667 | 0.824373 | 0.011662 | 0 | 0 | 0 | 0 | 0.011869 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.363636 | 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 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
1f31773b1716ed29968500ca20cf546c4135a014 | 668 | py | Python | class4/ex5.py | jordanwimb/kbpython | 01620098fb17df6b2b3b31a2c1b0b645df3a3e0a | [
"MIT"
] | null | null | null | class4/ex5.py | jordanwimb/kbpython | 01620098fb17df6b2b3b31a2c1b0b645df3a3e0a | [
"MIT"
] | null | null | null | class4/ex5.py | jordanwimb/kbpython | 01620098fb17df6b2b3b31a2c1b0b645df3a3e0a | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from __future__ import print_function
from netmiko import ConnectHandler
import getpass
import time
pynet_rtr2 = {
'device_type':'cisco_ios',
'ip':'50.76.53.27',
'username':'pyclass',
'password':getpass.getpass(),
'port':8022
}
def config_mode(device):
#Enter config mode
... | 20.242424 | 39 | 0.664671 | 84 | 668 | 5.02381 | 0.559524 | 0.165877 | 0.075829 | 0.090047 | 0.094787 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034091 | 0.209581 | 668 | 32 | 40 | 20.875 | 0.765152 | 0.136228 | 0 | 0.086957 | 0 | 0 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0.086957 | 0.173913 | 0 | 0.26087 | 0.086957 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
1f3bd09f6c85450790f98bdaaade06cc9533d84c | 27,174 | py | Python | GenerateHeaders.py | Sixshaman/VulkanGenericStructures | 1ca19402f33ec55acc5adfc57f42809337877bd9 | [
"MIT"
] | null | null | null | GenerateHeaders.py | Sixshaman/VulkanGenericStructures | 1ca19402f33ec55acc5adfc57f42809337877bd9 | [
"MIT"
] | null | null | null | GenerateHeaders.py | Sixshaman/VulkanGenericStructures | 1ca19402f33ec55acc5adfc57f42809337877bd9 | [
"MIT"
] | null | null | null | # MIT License
#
# Copyright (c) 2020 Sixshaman
#
# 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
# to use, copy, modify, merge, pu... | 32.35 | 228 | 0.756054 | 2,837 | 27,174 | 7.107508 | 0.135354 | 0.028566 | 0.024995 | 0.022317 | 0.470046 | 0.400169 | 0.364461 | 0.332821 | 0.325035 | 0.320373 | 0 | 0.00269 | 0.11062 | 27,174 | 840 | 229 | 32.35 | 0.831637 | 0.042835 | 0 | 0.279412 | 0 | 0.031046 | 0.812329 | 0.372417 | 0 | 0 | 0 | 0 | 0.02451 | 1 | 0.00817 | false | 0.001634 | 0.004902 | 0 | 0.039216 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1f3ed2c470c722fa0986482e16275ba516f4c892 | 14,623 | py | Python | mnml.py | garethr/mnml | 30876c0a26ddee3e736c3ccca094ecb2250f9011 | [
"MIT"
] | 2 | 2016-05-09T13:58:38.000Z | 2016-07-27T11:53:36.000Z | mnml.py | garethr/mnml | 30876c0a26ddee3e736c3ccca094ecb2250f9011 | [
"MIT"
] | null | null | null | mnml.py | garethr/mnml | 30876c0a26ddee3e736c3ccca094ecb2250f9011 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""
MNML WSGI Web Framework
A small python glue framework for building web applications and services that
run atop WSGI compliant servers. The emphasis is on HTTP best practices,
readble code and allowing applications to be built with using whatever
other python modules you like.
MNML has bor... | 35.321256 | 79 | 0.567531 | 1,643 | 14,623 | 4.983567 | 0.293366 | 0.025647 | 0.023449 | 0.017953 | 0.230459 | 0.183806 | 0.159013 | 0.159013 | 0.159013 | 0.159013 | 0 | 0.022649 | 0.344799 | 14,623 | 413 | 80 | 35.40678 | 0.831959 | 0.141216 | 0 | 0.247104 | 0 | 0 | 0.199892 | 0.006046 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.003861 | 0.019305 | null | null | 0.003861 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1f5162264eff5fa1af80d08ec04a2279e8e31945 | 4,416 | py | Python | db_etl/processors/normalisation.py | publichealthengland/coronavirus-dashboard-pipeline-etl | efcf5c77091afe8a0f7edce2e5934fe8c1f6dc1c | [
"MIT"
] | 7 | 2021-02-14T12:42:56.000Z | 2022-03-02T09:14:22.000Z | db_etl/processors/normalisation.py | publichealthengland/coronavirus-dashboard-pipeline-etl | efcf5c77091afe8a0f7edce2e5934fe8c1f6dc1c | [
"MIT"
] | 19 | 2021-11-03T09:21:00.000Z | 2022-03-07T09:26:47.000Z | db_etl/processors/normalisation.py | publichealthengland/coronavirus-dashboard-pipeline-etl | efcf5c77091afe8a0f7edce2e5934fe8c1f6dc1c | [
"MIT"
] | 2 | 2021-03-03T16:52:51.000Z | 2022-02-28T16:22:33.000Z | #!/usr/bin python3
# Imports
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Python:
from typing import Iterable
from itertools import product
# 3rd party:
from pandas import DataFrame, unique
# Internal:
try:
from __app__.utilities import func_logger
except ImportEr... | 29.052632 | 92 | 0.53442 | 507 | 4,416 | 4.573965 | 0.209073 | 0.032773 | 0.021561 | 0.039241 | 0.7279 | 0.714963 | 0.658473 | 0.644674 | 0.609746 | 0.573523 | 0 | 0.004079 | 0.278306 | 4,416 | 151 | 93 | 29.245033 | 0.723564 | 0.139493 | 0 | 0.430233 | 0 | 0 | 0.060794 | 0.008106 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023256 | false | 0 | 0.069767 | 0 | 0.116279 | 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 |
1f5627ec7599ed24808e7e62bcf92710cd0dae06 | 1,961 | py | Python | Aspect based Senti analysis/sample.py | hixio-mh/Aspect-Based-Sentiment-Analysis | 3527dd7c36f6b57f41ba02157d47cfdb7b84a286 | [
"MIT"
] | 1 | 2017-12-22T15:34:34.000Z | 2017-12-22T15:34:34.000Z | Aspect based Senti analysis/sample.py | pranithkumar/Aspect-Based-Sentiment-Analysis | 55355b8c38f1a0d8ed67665cce0901d8b3e002cd | [
"MIT"
] | 12 | 2017-12-29T12:13:07.000Z | 2022-03-11T23:19:24.000Z | Aspect based Senti analysis/sample.py | hixio-mh/Aspect-Based-Sentiment-Analysis | 3527dd7c36f6b57f41ba02157d47cfdb7b84a286 | [
"MIT"
] | 1 | 2017-12-19T09:49:52.000Z | 2017-12-19T09:49:52.000Z | import nltk
class Splitter(object):
def __init__(self):
self.nltk_splitter = nltk.data.load('tokenizers/punkt/english.pickle')
self.nltk_tokenizer = nltk.tokenize.TreebankWordTokenizer()
def split(self, text):
"""input format: a paragraph of text
output format: a list of lists ... | 41.723404 | 338 | 0.626721 | 259 | 1,961 | 4.65251 | 0.405405 | 0.026556 | 0.027386 | 0.032365 | 0.13195 | 0.111203 | 0.084647 | 0.084647 | 0.084647 | 0.084647 | 0 | 0 | 0.223355 | 1,961 | 46 | 339 | 42.630435 | 0.791202 | 0.006119 | 0 | 0.086957 | 0 | 0.043478 | 0.283439 | 0.024682 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.043478 | 0.043478 | null | null | 0.086957 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1f57eebec4d8f48917c63a9a9af8cbd158c8adbc | 1,367 | py | Python | Lutece-VJudge-prototype/51nod.py | HeRaNO/ChickenRibs | 9aa8dd8f915aa39a7168940b5ff99a1d665f5212 | [
"MIT"
] | 14 | 2020-03-02T09:55:44.000Z | 2021-09-17T09:39:40.000Z | Lutece-VJudge-prototype/51nod.py | HeRaNO/ChickenRibs | 9aa8dd8f915aa39a7168940b5ff99a1d665f5212 | [
"MIT"
] | null | null | null | Lutece-VJudge-prototype/51nod.py | HeRaNO/ChickenRibs | 9aa8dd8f915aa39a7168940b5ff99a1d665f5212 | [
"MIT"
] | 8 | 2020-06-08T12:38:56.000Z | 2021-06-27T14:23:30.000Z | import requests
from Crypto.PublicKey import RSA
from Crypto.Cipher import PKCS1_v1_5
import base64
session = requests.Session()
public_key = """-----BEGIN PUBLIC KEY-----
MIGeMA0GCSqGSIb3DQEBAQUAA4GMADCBiAKBgGTNlnTkCV1UvqhwEwoTBSgve1Ic
eORoDpB8lV7g358xqoXTHFj7i+4SP3mD48VmGFUyKu+ZiH8hN0Od6s6+bttQ7YbE
vSRwEjwfVC9DCCPu... | 23.169492 | 64 | 0.721287 | 167 | 1,367 | 5.826347 | 0.491018 | 0.055498 | 0.049332 | 0.032888 | 0.195272 | 0.156218 | 0.156218 | 0.086331 | 0.086331 | 0.086331 | 0 | 0.048213 | 0.119971 | 1,367 | 58 | 65 | 23.568966 | 0.760599 | 0.08632 | 0 | 0.1 | 0 | 0 | 0.373591 | 0.173913 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025 | false | 0.075 | 0.125 | 0 | 0.175 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1f60207daeb623bbc862a8c77ff2b0fc156d9a6d | 525 | py | Python | mayan/apps/appearance/migrations/0005_theme_fontlink.py | Mandeep822/Mayan-EDMS | ba223eaaf05579af484e91245b681273642359d4 | [
"Apache-2.0"
] | null | null | null | mayan/apps/appearance/migrations/0005_theme_fontlink.py | Mandeep822/Mayan-EDMS | ba223eaaf05579af484e91245b681273642359d4 | [
"Apache-2.0"
] | null | null | null | mayan/apps/appearance/migrations/0005_theme_fontlink.py | Mandeep822/Mayan-EDMS | ba223eaaf05579af484e91245b681273642359d4 | [
"Apache-2.0"
] | 1 | 2022-02-21T17:11:09.000Z | 2022-02-21T17:11:09.000Z | # Generated by Django 2.2.24 on 2022-03-08 15:49
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('appearance', '0004_auto_20220308_1439'),
]
operations = [
migrations.AddField(
model_name='theme',
name='fontLink',... | 26.25 | 150 | 0.626667 | 61 | 525 | 5.245902 | 0.770492 | 0.05 | 0.06875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.091837 | 0.253333 | 525 | 19 | 151 | 27.631579 | 0.72449 | 0.087619 | 0 | 0 | 1 | 0 | 0.15304 | 0.048218 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1f612acd4a347a1b8e30cec6dd55885cdee69570 | 511 | py | Python | src/storage/aws.py | OpenROAD-Cloud/flow-runner | 1a9a22c8fa249d7fcd8d282d1c958033f64f25f3 | [
"BSD-2-Clause"
] | null | null | null | src/storage/aws.py | OpenROAD-Cloud/flow-runner | 1a9a22c8fa249d7fcd8d282d1c958033f64f25f3 | [
"BSD-2-Clause"
] | 2 | 2020-02-12T03:21:51.000Z | 2020-02-12T03:24:13.000Z | src/storage/aws.py | OpenROAD-Cloud/flow-runner | 1a9a22c8fa249d7fcd8d282d1c958033f64f25f3 | [
"BSD-2-Clause"
] | null | null | null | import logging
import boto3
from botocore.exceptions import ClientError
from django.conf import settings
def upload_file(file_path, file_key):
s3 = boto3.resource('s3')
data = open(file_path, 'rb')
try:
s3.Bucket('openroad-flow').put_object(Key=file_key, Body=data, ACL='public-read')
return... | 31.9375 | 89 | 0.708415 | 75 | 511 | 4.68 | 0.6 | 0.059829 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018824 | 0.168297 | 511 | 16 | 90 | 31.9375 | 0.807059 | 0 | 0 | 0 | 0 | 0.071429 | 0.171875 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0.071429 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1f653d51c0e31548c19da2c4c373292b6a626180 | 2,448 | py | Python | workflows/common/db/candle_sql.py | andrew-weisman/Supervisor | 9110f85c85dcc2593de68db96dbd0f433a476507 | [
"MIT"
] | 10 | 2017-03-14T14:36:19.000Z | 2021-01-21T00:39:36.000Z | workflows/common/db/candle_sql.py | andrew-weisman/Supervisor | 9110f85c85dcc2593de68db96dbd0f433a476507 | [
"MIT"
] | 58 | 2017-03-03T21:07:53.000Z | 2021-07-19T18:51:03.000Z | workflows/common/db/candle_sql.py | andrew-weisman/Supervisor | 9110f85c85dcc2593de68db96dbd0f433a476507 | [
"MIT"
] | 21 | 2017-03-08T16:07:47.000Z | 2020-11-24T04:23:00.000Z |
import datetime
import logging
import os
import sqlite3
import sys
def setup_db(db_file):
"""
Convenience function to use from Swift/T
"""
if 'DB' not in globals():
rank = os.getenv('PMIX_RANK')
print('rank %s Connecting to DB...' % rank)
global DB
DB = candle_sq... | 25.5 | 81 | 0.57884 | 310 | 2,448 | 4.480645 | 0.364516 | 0.046076 | 0.021598 | 0.031677 | 0.076314 | 0.076314 | 0.048956 | 0.048956 | 0 | 0 | 0 | 0.004681 | 0.301879 | 2,448 | 95 | 82 | 25.768421 | 0.808075 | 0.17402 | 0 | 0.063492 | 0 | 0 | 0.072133 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.079365 | 0 | 0.428571 | 0.015873 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1f6b0dcec345ad14b231be8847bcb106c7910a2d | 717 | py | Python | feedhoos/reader/views/delete.py | 38elements/feedhoos | c0e29da85079ae6ed154d1ae192e271babd00ced | [
"MIT"
] | null | null | null | feedhoos/reader/views/delete.py | 38elements/feedhoos | c0e29da85079ae6ed154d1ae192e271babd00ced | [
"MIT"
] | null | null | null | feedhoos/reader/views/delete.py | 38elements/feedhoos | c0e29da85079ae6ed154d1ae192e271babd00ced | [
"MIT"
] | null | null | null | # coding: utf-8
import json
from django.http import HttpResponse
from feedhoos.worker.models.entry import EntryModel
from feedhoos.finder.models.feed import FeedModel
from feedhoos.reader.models.bookmark import BookmarkModel
from django.db import transaction
@transaction.commit_on_success
def execute(request):
fe... | 34.142857 | 80 | 0.771269 | 97 | 717 | 5.515464 | 0.515464 | 0.08972 | 0.06729 | 0.071028 | 0.134579 | 0.134579 | 0.134579 | 0.134579 | 0 | 0 | 0 | 0.001595 | 0.125523 | 717 | 20 | 81 | 35.85 | 0.851675 | 0.018131 | 0 | 0 | 0 | 0 | 0.032764 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.352941 | 0 | 0.470588 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
1f6b5dd3dbb694690e0d368bd4a491f98388ca6d | 500 | py | Python | day11/day11a.py | Paul-Haley/adventofcode_2017 | 36457b2751c16413fad6e472aab92e7d38db9d84 | [
"Unlicense"
] | 1 | 2017-12-05T13:06:13.000Z | 2017-12-05T13:06:13.000Z | day11/day11a.py | Paul-Haley/adventofcode_2017 | 36457b2751c16413fad6e472aab92e7d38db9d84 | [
"Unlicense"
] | null | null | null | day11/day11a.py | Paul-Haley/adventofcode_2017 | 36457b2751c16413fad6e472aab92e7d38db9d84 | [
"Unlicense"
] | null | null | null | import sys
x = 0
y = 0
with open(sys.argv[1]) as f:
instruct = f.read().strip().split(",")
for c in instruct:
if c == 'n':
y += 2
elif c == 's':
y -= 2
elif c == 'ne':
x += 1
y += 1
elif c == 'nw':
x -= 1
y ... | 16.666667 | 42 | 0.3 | 73 | 500 | 2.054795 | 0.410959 | 0.166667 | 0.08 | 0.106667 | 0.18 | 0.18 | 0 | 0 | 0 | 0 | 0 | 0.059322 | 0.528 | 500 | 29 | 43 | 17.241379 | 0.576271 | 0 | 0 | 0.307692 | 0 | 0 | 0.022088 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.038462 | 0 | 0.038462 | 0.038462 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1f6db259e333de15840e73f5d1d44c55e1081bcd | 4,737 | py | Python | CV/HW10/HW10.py | r07922003/NTU | 4414b656643bc0079c12617190fa2a519d2331f8 | [
"MIT"
] | null | null | null | CV/HW10/HW10.py | r07922003/NTU | 4414b656643bc0079c12617190fa2a519d2331f8 | [
"MIT"
] | null | null | null | CV/HW10/HW10.py | r07922003/NTU | 4414b656643bc0079c12617190fa2a519d2331f8 | [
"MIT"
] | null | null | null |
# coding: utf-8
from PIL import Image, ImageDraw
import numpy as np
def Laplace(img,threshold,mask):
pixel = img.load()
img_new = Image.new(img.mode,img.size)
array = np.zeros((img.width,img.height))
for i in range(1,img.width-1):
for j in range(1,img.height-1):
temp = 0
... | 41.920354 | 149 | 0.411231 | 722 | 4,737 | 2.638504 | 0.126039 | 0.017848 | 0.015748 | 0.034646 | 0.536483 | 0.509186 | 0.492388 | 0.47664 | 0.457743 | 0.445144 | 0 | 0.173064 | 0.373021 | 4,737 | 112 | 150 | 42.294643 | 0.46835 | 0.002744 | 0 | 0.386667 | 0 | 0 | 0.039522 | 0.025573 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026667 | false | 0 | 0.026667 | 0 | 0.08 | 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 |
1f81f49266ac1cdbdfefc42cd60fc41d29cb8ea4 | 370 | py | Python | tests/fraction_tests/test_str.py | lycantropos/rithm | 61ae1614411ab0ce7feb403fdf93b71f49231ec1 | [
"MIT"
] | null | null | null | tests/fraction_tests/test_str.py | lycantropos/rithm | 61ae1614411ab0ce7feb403fdf93b71f49231ec1 | [
"MIT"
] | null | null | null | tests/fraction_tests/test_str.py | lycantropos/rithm | 61ae1614411ab0ce7feb403fdf93b71f49231ec1 | [
"MIT"
] | null | null | null | from hypothesis import given
from tests.utils import FractionWithBuiltin
from . import strategies
@given(strategies.fractions_with_builtins)
def test_connection_with_builtin(fraction_with_builtin: FractionWithBuiltin
) -> None:
fraction, builtin_fraction = fraction_with_builtin
... | 28.461538 | 75 | 0.751351 | 39 | 370 | 6.846154 | 0.487179 | 0.123596 | 0.142322 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.194595 | 370 | 12 | 76 | 30.833333 | 0.895973 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.125 | false | 0 | 0.375 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
1f84daa4319519f0941650083fdaee27665d6ac6 | 1,521 | py | Python | auto_wifi.py | Ladvien/esp32_upython_env | 8b0feab940efd3feff16220473e1b5b27d679a56 | [
"MIT"
] | null | null | null | auto_wifi.py | Ladvien/esp32_upython_env | 8b0feab940efd3feff16220473e1b5b27d679a56 | [
"MIT"
] | null | null | null | auto_wifi.py | Ladvien/esp32_upython_env | 8b0feab940efd3feff16220473e1b5b27d679a56 | [
"MIT"
] | null | null | null | def auto_wifi():
import network
import uos
import time
def exists(file_name):
try:
uos.stat(file_name)
return True
except OSError:
return False
# File containing wifi credentials.
wifi_cred_filename = 'wifi_creds.txt'
# Get an interface ob... | 29.823529 | 78 | 0.583169 | 187 | 1,521 | 4.620321 | 0.44385 | 0.046296 | 0.055556 | 0.027778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009251 | 0.289283 | 1,521 | 50 | 79 | 30.42 | 0.790009 | 0.130178 | 0 | 0.162162 | 0 | 0 | 0.201674 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054054 | false | 0.054054 | 0.081081 | 0 | 0.216216 | 0.27027 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1f88794529bf9125dd7a80c7a348156d5746b4d1 | 940 | py | Python | src/google_foobar/P009_undercover_underground/solution_01_main.py | lakshmikanth-tesla/ProgrammingProblems | be67c9ad607e22c04634095a987f84967560568c | [
"MIT"
] | 1 | 2016-06-05T20:05:23.000Z | 2016-06-05T20:05:23.000Z | src/google_foobar/P009_undercover_underground/solution_01_main.py | vikash-india/ProgrammingProblems | 2768bd6a61bfde705661e31dfe8374a0973e032b | [
"MIT"
] | null | null | null | src/google_foobar/P009_undercover_underground/solution_01_main.py | vikash-india/ProgrammingProblems | 2768bd6a61bfde705661e31dfe8374a0973e032b | [
"MIT"
] | 1 | 2019-07-12T13:19:32.000Z | 2019-07-12T13:19:32.000Z | from src.google_foobar.P009_undercover_underground.solution_01 import answer
from math import factorial
import logging
import itertools
def main():
# Set level from DEBUG, INFO, WARNING. ERROR, CRITICAL
# logging.basicConfig(level=logging.DEBUG)
N = 4
K = 3
expected = '16'
print "N = %-2s K =... | 23.5 | 93 | 0.593617 | 130 | 940 | 4.169231 | 0.446154 | 0.01476 | 0.02952 | 0.03321 | 0.077491 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034043 | 0.25 | 940 | 39 | 94 | 24.102564 | 0.734752 | 0.278723 | 0 | 0 | 0 | 0 | 0.127436 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.222222 | null | null | 0.222222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1f8e94d1ce2055000236db69911a9df37b73aaba | 326 | py | Python | shortstories/forms.py | evenset/ketabdan | ea56ad18f64b35714c6c3a0d85e59a3f8514057a | [
"MIT"
] | 3 | 2018-03-20T20:51:30.000Z | 2019-11-26T01:36:43.000Z | shortstories/forms.py | evenset/ketabdan | ea56ad18f64b35714c6c3a0d85e59a3f8514057a | [
"MIT"
] | 34 | 2018-03-20T21:15:01.000Z | 2018-10-07T16:09:20.000Z | shortstories/forms.py | evenset/ketabdan-project | ea56ad18f64b35714c6c3a0d85e59a3f8514057a | [
"MIT"
] | null | null | null | from django import forms
from .models import ShortStory
from django.forms import widgets
class ShortStoryForm (forms.ModelForm):
body = forms.CharField(min_length='3500', widget=widgets.Textarea)
class Meta:
model = ShortStory
fields = ('author', 'title', 'status', 'body', 'publication_d... | 27.166667 | 76 | 0.699387 | 37 | 326 | 6.108108 | 0.675676 | 0.088496 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015209 | 0.193252 | 326 | 11 | 77 | 29.636364 | 0.844106 | 0 | 0 | 0 | 0 | 0 | 0.125767 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
2f071a1c348ba6ba34e2beaec6dad18f3e6ef7c7 | 2,546 | py | Python | src/Material/MaterialUnits.py | jmikeowen/Spheral | 3e1082a7aefd6b328bd3ae24ca1a477108cfc3c4 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 22 | 2018-07-31T21:38:22.000Z | 2020-06-29T08:58:33.000Z | src/Material/MaterialUnits.py | markguozhiming/spheral | bbb982102e61edb8a1d00cf780bfa571835e1b61 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 41 | 2020-09-28T23:14:27.000Z | 2022-03-28T17:01:33.000Z | src/Material/MaterialUnits.py | markguozhiming/spheral | bbb982102e61edb8a1d00cf780bfa571835e1b61 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 7 | 2019-12-01T07:00:06.000Z | 2020-09-15T21:12:39.000Z | from SpheralCompiledPackages import PhysicalConstants
#-------------------------------------------------------------------------------
# MKS units.
#-------------------------------------------------------------------------------
class MKS(PhysicalConstants):
def __init__(self):
PhysicalConstants.__init__(s... | 46.290909 | 80 | 0.302042 | 160 | 2,546 | 4.60625 | 0.28125 | 0.088195 | 0.097693 | 0.151967 | 0.63772 | 0.602442 | 0.602442 | 0.31479 | 0.31479 | 0.31479 | 0 | 0.057618 | 0.386489 | 2,546 | 54 | 81 | 47.148148 | 0.414213 | 0.42066 | 0 | 0.648649 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.108108 | false | 0 | 0.027027 | 0 | 0.351351 | 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 |
2f0c489bd564f14150b901626c7b44129498e902 | 467 | py | Python | lib/popen.py | binmahone/Raven | 40b7e24f14a72af978341c311250f15795be1eb0 | [
"Apache-2.0"
] | 1 | 2021-12-23T02:45:06.000Z | 2021-12-23T02:45:06.000Z | lib/popen.py | Mukvin/Raven | 40b7e24f14a72af978341c311250f15795be1eb0 | [
"Apache-2.0"
] | null | null | null | lib/popen.py | Mukvin/Raven | 40b7e24f14a72af978341c311250f15795be1eb0 | [
"Apache-2.0"
] | 2 | 2021-09-16T10:18:01.000Z | 2021-09-17T08:40:47.000Z | import subprocess
def subprocess_popen(statement):
p = subprocess.Popen(statement, shell=True, stdout=subprocess.PIPE)
while p.poll() is None:
if p.wait() is not 0:
print("Failed")
return False
else:
re = p.stdout.readlines()
result = []
... | 29.1875 | 71 | 0.520343 | 56 | 467 | 4.321429 | 0.696429 | 0.123967 | 0.198347 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006667 | 0.357602 | 467 | 16 | 72 | 29.1875 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0.032051 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.071429 | 0 | 0.285714 | 0.071429 | 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 |
2f0e2fcaa6a0440d4803204a3ee417b789329f01 | 3,702 | py | Python | ad_api/api/eligibility.py | mkdir700/python-amazon-ad-api | e82429be4c56f4b56bddfcd70c18dabd4c109406 | [
"MIT"
] | null | null | null | ad_api/api/eligibility.py | mkdir700/python-amazon-ad-api | e82429be4c56f4b56bddfcd70c18dabd4c109406 | [
"MIT"
] | null | null | null | ad_api/api/eligibility.py | mkdir700/python-amazon-ad-api | e82429be4c56f4b56bddfcd70c18dabd4c109406 | [
"MIT"
] | null | null | null | from ad_api.base import Client, sp_endpoint, fill_query_params, ApiResponse, Utils
import json
import logging
class Eligibility(Client):
r"""
"""
@sp_endpoint('/eligibility/product/list', method='POST')
def get_eligibility(self, **kwargs) -> ApiResponse:
r"""
get_eligibility(body: (di... | 50.027027 | 423 | 0.667747 | 493 | 3,702 | 4.929006 | 0.251521 | 0.025926 | 0.017284 | 0.036214 | 0.72963 | 0.682305 | 0.655967 | 0.603292 | 0.603292 | 0.603292 | 0 | 0.00035 | 0.228525 | 3,702 | 73 | 424 | 50.712329 | 0.85049 | 0.56564 | 0 | 0.068966 | 0 | 0 | 0.098326 | 0.034868 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0 | 0.103448 | 0 | 0.275862 | 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 |
2f0f4e6af7959e0e71970b24b88f0a9e1d260386 | 2,050 | py | Python | wrapper.py | ramanans1/panoramic-stitching | 95ad6872a4edb3d5ce067eaf34cd2efda4cba88b | [
"MIT"
] | null | null | null | wrapper.py | ramanans1/panoramic-stitching | 95ad6872a4edb3d5ce067eaf34cd2efda4cba88b | [
"MIT"
] | null | null | null | wrapper.py | ramanans1/panoramic-stitching | 95ad6872a4edb3d5ce067eaf34cd2efda4cba88b | [
"MIT"
] | null | null | null | import numpy as np
from PIL import Image
import matplotlib.pyplot as plt
import matplotlib
from corner_detector import *
from anms import *
from feat_desc import *
from feat_match import *
from ransac_est_homography import *
from mymosaic import *
def wrapper():
#SET 1
im1 = np.array(Image.open('SET1_L.jpg').... | 25 | 82 | 0.543902 | 254 | 2,050 | 4.228346 | 0.228346 | 0.104283 | 0.089385 | 0.119181 | 0.746741 | 0.649907 | 0.649907 | 0.649907 | 0.620112 | 0.497207 | 0 | 0.022129 | 0.18439 | 2,050 | 81 | 83 | 25.308642 | 0.620215 | 0.041463 | 0 | 0 | 0 | 0 | 0.073713 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.434783 | 0 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
2f19cbbf5390f71655df1ef2e94e1eaac945b0e3 | 11,392 | py | Python | deepdoctection/pipe/anngen.py | deepdoctection/deepdoctection | 7e0d7396e5ef8bf8109904e09c5d4ee56cb5a036 | [
"Apache-2.0"
] | 39 | 2021-12-14T11:05:25.000Z | 2022-03-31T18:50:58.000Z | deepdoctection/pipe/anngen.py | deepdoctection/deepdoctection | 7e0d7396e5ef8bf8109904e09c5d4ee56cb5a036 | [
"Apache-2.0"
] | 17 | 2022-01-04T14:32:26.000Z | 2022-03-29T14:01:36.000Z | deepdoctection/pipe/anngen.py | deepdoctection/deepdoctection | 7e0d7396e5ef8bf8109904e09c5d4ee56cb5a036 | [
"Apache-2.0"
] | 4 | 2022-01-11T16:40:17.000Z | 2022-03-30T02:09:55.000Z | # -*- coding: utf-8 -*-
# File: anngen.py
# Copyright 2021 Dr. Janis Meyer. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENS... | 44.326848 | 120 | 0.661868 | 1,434 | 11,392 | 5.067643 | 0.192469 | 0.059447 | 0.020641 | 0.011559 | 0.283611 | 0.231182 | 0.213431 | 0.198844 | 0.172561 | 0.14614 | 0 | 0.001567 | 0.271857 | 11,392 | 256 | 121 | 44.5 | 0.874503 | 0.383515 | 0 | 0.181159 | 0 | 0 | 0.011642 | 0 | 0 | 0 | 0 | 0 | 0.086957 | 1 | 0.065217 | false | 0.065217 | 0.057971 | 0 | 0.188406 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2f202435e96092334c31f25da49569e4cfb7066e | 3,260 | py | Python | philo_one/package/__init__.py | dolovnyak/Philosophers | 887962b824273d41a935fc8437597783048cfe00 | [
"Unlicense"
] | 1 | 2021-03-11T04:40:46.000Z | 2021-03-11T04:40:46.000Z | philo_two/package/__init__.py | dolovnyak/Philosophers | 887962b824273d41a935fc8437597783048cfe00 | [
"Unlicense"
] | null | null | null | philo_two/package/__init__.py | dolovnyak/Philosophers | 887962b824273d41a935fc8437597783048cfe00 | [
"Unlicense"
] | null | null | null | import os, sys; sys.path.append(os.path.dirname(os.path.realpath(__file__)))
from srcs_expression import proccess_src_list_expressions
from compiler_opts import generate_compilers_options
from compiler_rules import generate_link_rule, generate_compile_rules
import target_collectors
def generate_generic_variables(obj... | 35.824176 | 123 | 0.557669 | 367 | 3,260 | 4.667575 | 0.237057 | 0.084063 | 0.017513 | 0.037945 | 0.214244 | 0.123176 | 0.123176 | 0.083479 | 0.06655 | 0.06655 | 0 | 0 | 0.209202 | 3,260 | 90 | 124 | 36.222222 | 0.664469 | 0 | 0 | 0.24 | 1 | 0 | 0.298773 | 0.084663 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.066667 | 0 | 0.133333 | 0.08 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2f21388431c7b4b4a157a08cf5ce96feb5e34348 | 4,362 | py | Python | accounts/tests/test_views.py | Junon72/DreamsOnWheels | f3b1691c36994a35be1d1e8e928730c118c01f4b | [
"PostgreSQL"
] | null | null | null | accounts/tests/test_views.py | Junon72/DreamsOnWheels | f3b1691c36994a35be1d1e8e928730c118c01f4b | [
"PostgreSQL"
] | 6 | 2020-06-19T14:38:15.000Z | 2021-09-22T18:58:50.000Z | accounts/tests/test_views.py | Junon72/DreamsOnWheels | f3b1691c36994a35be1d1e8e928730c118c01f4b | [
"PostgreSQL"
] | 1 | 2020-06-29T10:10:54.000Z | 2020-06-29T10:10:54.000Z | from django.test import TestCase, TransactionTestCase
from django.contrib.auth.models import User
from accounts.models import Profile
from accounts.views import logout, login, register, user_profile, update_profile
from django.contrib.messages import get_messages
class TestRegisterUserView(TestCase):
def test_re... | 34.619048 | 102 | 0.657726 | 463 | 4,362 | 6.086393 | 0.220302 | 0.074521 | 0.063875 | 0.082328 | 0.557488 | 0.521647 | 0.46132 | 0.341732 | 0.33286 | 0.286018 | 0 | 0.013341 | 0.226731 | 4,362 | 125 | 103 | 34.896 | 0.822117 | 0.060752 | 0 | 0.358025 | 0 | 0 | 0.182747 | 0.006233 | 0 | 0 | 0 | 0 | 0.271605 | 1 | 0.135802 | false | 0.135802 | 0.061728 | 0 | 0.246914 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2f2794b90a421b864e6e1ac90e53a3dca1af9213 | 557 | py | Python | setup.py | awilliamson10/ftmscan-python | d7ed384f1ac65461c86bed4a65f9332baf92c8f0 | [
"MIT"
] | null | null | null | setup.py | awilliamson10/ftmscan-python | d7ed384f1ac65461c86bed4a65f9332baf92c8f0 | [
"MIT"
] | null | null | null | setup.py | awilliamson10/ftmscan-python | d7ed384f1ac65461c86bed4a65f9332baf92c8f0 | [
"MIT"
] | null | null | null | from setuptools import setup
setup(
name="ftmscan-python",
version="1.0.2",
description="A minimal, complete, python API for ftmscan.com.",
url="https://github.com/awilliamson10/ftmscan-python",
author="Tiago A. Silva",
license="MIT",
packages=[
"ftmscan",
"ftmscan.configs",... | 24.217391 | 67 | 0.608618 | 61 | 557 | 5.47541 | 0.754098 | 0.077844 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016393 | 0.233393 | 557 | 22 | 68 | 25.318182 | 0.765808 | 0 | 0 | 0 | 0 | 0 | 0.405745 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.047619 | 0 | 0.047619 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2f30ab6c995be9df7d4196c54a09f5fb95044f66 | 1,208 | py | Python | peeringdb/migrations/0006_auto_20180213_0031.py | schiederme/peering-manager | 2d29427fd4f2b91a5208f31e1a7ad69eaf82924c | [
"Apache-2.0"
] | 173 | 2020-08-08T15:38:08.000Z | 2022-03-21T11:35:25.000Z | peeringdb/migrations/0006_auto_20180213_0031.py | schiederme/peering-manager | 2d29427fd4f2b91a5208f31e1a7ad69eaf82924c | [
"Apache-2.0"
] | 247 | 2017-12-26T12:55:34.000Z | 2020-08-08T11:57:35.000Z | peeringdb/migrations/0006_auto_20180213_0031.py | schiederme/peering-manager | 2d29427fd4f2b91a5208f31e1a7ad69eaf82924c | [
"Apache-2.0"
] | 63 | 2017-10-13T06:46:05.000Z | 2020-08-08T00:41:57.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.10 on 2018-02-12 23:31
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [("peeringdb", "0005_auto_20180122_1845")]
operations = [
migrations.CreateModel(
name="Prefix",
fields=[... | 28.761905 | 61 | 0.46606 | 95 | 1,208 | 5.768421 | 0.642105 | 0.060219 | 0.065693 | 0.087591 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054131 | 0.418874 | 1,208 | 41 | 62 | 29.463415 | 0.726496 | 0.057119 | 0 | 0.121212 | 1 | 0 | 0.131162 | 0.020246 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.030303 | 0 | 0.121212 | 0 | 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 |
2f31261382648ca6ad568916f7592e01e69c6c39 | 1,982 | py | Python | tests/trac/test-trac-0175.py | eLBati/pyxb | 14737c23a125fd12c954823ad64fc4497816fae3 | [
"Apache-2.0"
] | 123 | 2015-01-12T06:43:22.000Z | 2022-03-20T18:06:46.000Z | tests/trac/test-trac-0175.py | eLBati/pyxb | 14737c23a125fd12c954823ad64fc4497816fae3 | [
"Apache-2.0"
] | 103 | 2015-01-08T18:35:57.000Z | 2022-01-18T01:44:14.000Z | tests/trac/test-trac-0175.py | eLBati/pyxb | 14737c23a125fd12c954823ad64fc4497816fae3 | [
"Apache-2.0"
] | 54 | 2015-02-15T17:12:00.000Z | 2022-03-07T23:02:32.000Z | # -*- coding: utf-8 -*-
import logging
if __name__ == '__main__':
logging.basicConfig()
_log = logging.getLogger(__name__)
import pyxb.binding.generate
import pyxb.utils.domutils
import operator
import functools
from xml.dom import Node
from pyxb.utils.six.moves import xrange
import os.path
xsd='''<?xml version="1... | 29.58209 | 150 | 0.645812 | 263 | 1,982 | 4.756654 | 0.376426 | 0.064748 | 0.071942 | 0.052758 | 0.354916 | 0.354916 | 0.354916 | 0.26219 | 0.26219 | 0.21263 | 0 | 0.019065 | 0.179617 | 1,982 | 66 | 151 | 30.030303 | 0.750308 | 0.026741 | 0 | 0.263158 | 1 | 0 | 0.431464 | 0.023884 | 0 | 0 | 0 | 0 | 0.105263 | 1 | 0.017544 | false | 0 | 0.175439 | 0 | 0.210526 | 0 | 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 |
2f316aaf152f18da01c9b2b017b137ccf9cf6aa7 | 1,393 | py | Python | Python-For-Everyone-Horstmann/Chapter9-Objects-and-Classes/P9_21.py | islayy/Books-solutions | 5fe05deb4e9f65875284d8af43bd383bf9ae145b | [
"MIT"
] | null | null | null | Python-For-Everyone-Horstmann/Chapter9-Objects-and-Classes/P9_21.py | islayy/Books-solutions | 5fe05deb4e9f65875284d8af43bd383bf9ae145b | [
"MIT"
] | null | null | null | Python-For-Everyone-Horstmann/Chapter9-Objects-and-Classes/P9_21.py | islayy/Books-solutions | 5fe05deb4e9f65875284d8af43bd383bf9ae145b | [
"MIT"
] | 1 | 2021-01-30T22:19:07.000Z | 2021-01-30T22:19:07.000Z | # After closing time, the store manager would like to know how much business was
# transacted during the day. Modify the CashRegister class to enable this functionality.
# Supply methods getSalesTotal and getSalesCount to get the total amount of all sales
# and the number of sales. Supply a method resetSales that reset... | 29.020833 | 92 | 0.625987 | 185 | 1,393 | 4.524324 | 0.4 | 0.075269 | 0.043011 | 0.035842 | 0.242533 | 0.057348 | 0 | 0 | 0 | 0 | 0 | 0.001996 | 0.280689 | 1,393 | 47 | 93 | 29.638298 | 0.833333 | 0.274946 | 0 | 0.1875 | 0 | 0 | 0.008964 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.28125 | false | 0 | 0 | 0.0625 | 0.46875 | 0.03125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2f3d56e02618a3444aa6cce68b4509830f4bab0c | 2,408 | py | Python | story/urls.py | OrhanOdabasi/weirdbutreal | 6bd227608192876f65505200873275cc5f709e7d | [
"MIT"
] | null | null | null | story/urls.py | OrhanOdabasi/weirdbutreal | 6bd227608192876f65505200873275cc5f709e7d | [
"MIT"
] | null | null | null | story/urls.py | OrhanOdabasi/weirdbutreal | 6bd227608192876f65505200873275cc5f709e7d | [
"MIT"
] | null | null | null | from django.conf.urls import url
from story import views
from story.views import StoryVote, CommentVote
urlpatterns = [
url(r'^$', views.homepage, name='homePage'),
url(r'^weirdests/$', views.homepage, name='weirdestPage'),
url(r'^funny/$', views.funny, name='funnyPage'),
url(r'^mystery/$', views.myst... | 61.74359 | 132 | 0.669435 | 294 | 2,408 | 5.459184 | 0.326531 | 0.077259 | 0.015576 | 0.018692 | 0.04486 | 0.04486 | 0.04486 | 0.04486 | 0.04486 | 0.04486 | 0 | 0.004606 | 0.098422 | 2,408 | 38 | 133 | 63.368421 | 0.734684 | 0.023256 | 0 | 0 | 0 | 0.057143 | 0.420426 | 0.170638 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.085714 | 0.085714 | 0 | 0.085714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2f4d27772958ba4cb652c74feada7b42d985c3ee | 522 | py | Python | old-stuff/old-scripts/msdie.py | bleekere/eScience2022 | be58ab45a75e26551f5409d5afe407e60b1989b1 | [
"CC0-1.0"
] | null | null | null | old-stuff/old-scripts/msdie.py | bleekere/eScience2022 | be58ab45a75e26551f5409d5afe407e60b1989b1 | [
"CC0-1.0"
] | null | null | null | old-stuff/old-scripts/msdie.py | bleekere/eScience2022 | be58ab45a75e26551f5409d5afe407e60b1989b1 | [
"CC0-1.0"
] | null | null | null | # msdie.py
# Class definition for an n-sided die
# exercise from book for defining classes
from random import randrange
class MSDie:
def __init__(self, sides):
self.sides = sides
self.value = 1
def roll(self):
self.value = randrange(1, self.sides+1)
def getValue(self):
r... | 27.473684 | 71 | 0.672414 | 75 | 522 | 4.626667 | 0.506667 | 0.129683 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025126 | 0.237548 | 522 | 19 | 72 | 27.473684 | 0.846734 | 0.302682 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.071429 | 0.071429 | 0.5 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2f4f681ea950649af14bebc06684c233f38ab6c5 | 1,442 | py | Python | app.py | jrl9110/readability_index_app | 7d5ea08995bce699e21c0adb7245537d4a79ce7b | [
"MIT"
] | null | null | null | app.py | jrl9110/readability_index_app | 7d5ea08995bce699e21c0adb7245537d4a79ce7b | [
"MIT"
] | null | null | null | app.py | jrl9110/readability_index_app | 7d5ea08995bce699e21c0adb7245537d4a79ce7b | [
"MIT"
] | null | null | null | import streamlit as st
from langcalc import ari
st.set_page_config(page_title='Readability Calculator')
st.title('Automated Readability Index Calculator')
description = '''
This app assesses the readability of an excerpt of text using the Automated Readability Index.
'''
st.markdown(description)
demo_string = '''... | 41.2 | 125 | 0.78086 | 245 | 1,442 | 4.571429 | 0.632653 | 0.010714 | 0.032143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004146 | 0.163662 | 1,442 | 35 | 125 | 41.2 | 0.924544 | 0 | 0 | 0.08 | 0 | 0.04 | 0.821206 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.04 | 0.08 | 0 | 0.08 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2f53e7d0d08cc8d646f7b85a2f1fb93f62351f6d | 418 | py | Python | exercicios/ex020.py | grievous0/Python_exercises | d1bef850c6d0205ff55c6a059e2bff382871853e | [
"MIT"
] | null | null | null | exercicios/ex020.py | grievous0/Python_exercises | d1bef850c6d0205ff55c6a059e2bff382871853e | [
"MIT"
] | null | null | null | exercicios/ex020.py | grievous0/Python_exercises | d1bef850c6d0205ff55c6a059e2bff382871853e | [
"MIT"
] | null | null | null | # O mesmo professor do desafio 019 quer sortear a ordem de apresentação de trabalhos dos alunos. Faça um programa que leia o nome dos quatro alunos e mostre a ordem sorteada.
from random import shuffle
a1 = input('Primeiro aluno: ')
a2 = input('Segundo aluno: ')
a3 = input('Terceiro aluno: ')
a4 = input('Quarto aluno: ... | 46.444444 | 174 | 0.729665 | 66 | 418 | 4.621212 | 0.651515 | 0.059016 | 0.052459 | 0.131148 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031429 | 0.162679 | 418 | 9 | 175 | 46.444444 | 0.84 | 0.411483 | 0 | 0 | 0 | 0 | 0.379592 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0.125 | 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 |
2f5973cd3145db35a902d23b78b6c9354df03e21 | 3,829 | py | Python | qtui/controls/question.py | matcom/autoexam | 178c6d99af8ff92c365ca8342c1c6d55a0362fad | [
"MIT"
] | 9 | 2016-01-18T19:57:55.000Z | 2020-10-26T16:59:54.000Z | qtui/controls/question.py | matcom/autoexam | 178c6d99af8ff92c365ca8342c1c6d55a0362fad | [
"MIT"
] | 4 | 2015-05-08T01:26:01.000Z | 2015-05-08T02:03:55.000Z | qtui/controls/question.py | matcom/autoexam | 178c6d99af8ff92c365ca8342c1c6d55a0362fad | [
"MIT"
] | 5 | 2016-10-07T02:12:58.000Z | 2021-12-12T07:24:57.000Z | #! /usr/bin/python
#-*-coding: utf8-*-
from PyQt4.QtGui import *
from PyQt4.QtCore import *
from PyQt4 import uic
import qtui.model
import os.path
class QuestionWidget(QWidget):
def __init__(self, parent=None):
super(QuestionWidget, self).__init__(parent)
self.ui = uic.loadUi(os.path.join(os.envi... | 37.174757 | 266 | 0.666493 | 452 | 3,829 | 5.54646 | 0.269912 | 0.055046 | 0.077782 | 0.022337 | 0.117272 | 0.049462 | 0.031113 | 0.031113 | 0.031113 | 0 | 0 | 0.003646 | 0.212066 | 3,829 | 102 | 267 | 37.539216 | 0.827312 | 0.08958 | 0 | 0.057971 | 0 | 0.014493 | 0.043453 | 0.017842 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.072464 | null | null | 0.028986 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
2f5c4090a468397bc48e943a60ec79976b162bb2 | 643 | py | Python | crypto_duck/user/models.py | sifrovacky-cz/kachna | be7ad00fa837b197d4dae205f100cd3d54dda562 | [
"MIT"
] | null | null | null | crypto_duck/user/models.py | sifrovacky-cz/kachna | be7ad00fa837b197d4dae205f100cd3d54dda562 | [
"MIT"
] | 1 | 2020-04-21T19:59:38.000Z | 2020-04-21T19:59:38.000Z | crypto_duck/user/models.py | sifrovacky-cz/kachna | be7ad00fa837b197d4dae205f100cd3d54dda562 | [
"MIT"
] | null | null | null | from django.db import models
from django.contrib.auth.models import User
# Create your models here.
#User profile model, one to one relation to User model
#Note: User = team, participants = team members
class UserProfile (models.Model):
user = models.OneToOneField(User, on_delete = models.CASCADE)
#parti... | 32.15 | 67 | 0.754277 | 86 | 643 | 5.488372 | 0.476744 | 0.127119 | 0.152542 | 0.20339 | 0.332627 | 0.275424 | 0.275424 | 0.199153 | 0 | 0 | 0 | 0.022181 | 0.158631 | 643 | 19 | 68 | 33.842105 | 0.850277 | 0.209953 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.2 | 0.1 | 1 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.