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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bbcfcc2c964998cd841b8d9194e54aad88af524d | 519 | py | Python | setup.py | efbbrown/eugenium | 94a2ce81fe321420f659271575efdcad38daca5b | [
"MIT"
] | 1 | 2021-07-19T13:05:22.000Z | 2021-07-19T13:05:22.000Z | setup.py | efbbrown/eugenium | 94a2ce81fe321420f659271575efdcad38daca5b | [
"MIT"
] | null | null | null | setup.py | efbbrown/eugenium | 94a2ce81fe321420f659271575efdcad38daca5b | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from distutils.core import setup
setup(
name='Eugenium',
packages=['eugenium'],
version='0.0.3',
license='MIT',
description=
'Classes to create and deploy selenium processes on google cloud platform',
author='Eugene Brown',
author_email='efbbrown@gmail.com',
u... | 27.315789 | 85 | 0.662813 | 65 | 519 | 5.246154 | 0.738462 | 0.01173 | 0.017595 | 0.099707 | 0.193548 | 0.193548 | 0 | 0 | 0 | 0 | 0 | 0.014218 | 0.186898 | 519 | 19 | 86 | 27.315789 | 0.793839 | 0.038536 | 0 | 0 | 0 | 0.0625 | 0.490982 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.0625 | 0 | 0.0625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
bbd94f13dbfda28c49d0c108d2384e0f78feee3f | 6,758 | py | Python | python_scripts/02_numerical_pipeline_cross_validation.py | MichlF/scikit-learn-mooc | 31fd171c9e3f75bd19f3709e1f5345a75a7d22ab | [
"CC-BY-4.0"
] | 1 | 2022-01-25T19:20:21.000Z | 2022-01-25T19:20:21.000Z | python_scripts/02_numerical_pipeline_cross_validation.py | gmash24/scikit-learn-mooc | b58f051efb591a38859a4242369c9494ccac6a17 | [
"CC-BY-4.0"
] | null | null | null | python_scripts/02_numerical_pipeline_cross_validation.py | gmash24/scikit-learn-mooc | b58f051efb591a38859a4242369c9494ccac6a17 | [
"CC-BY-4.0"
] | null | null | null | # ---
# jupyter:
# jupytext:
# text_representation:
# extension: .py
# format_name: percent
# format_version: '1.3'
# jupytext_version: 1.11.3
# kernelspec:
# display_name: Python 3 (ipykernel)
# language: python
# name: python3
# ---
# %% [markdown]
# # Model evaluation usi... | 41.207317 | 139 | 0.757473 | 1,015 | 6,758 | 5.004926 | 0.323153 | 0.067913 | 0.022047 | 0.023622 | 0.100394 | 0.049606 | 0.032677 | 0.022047 | 0.022047 | 0 | 0 | 0.003549 | 0.166025 | 6,758 | 163 | 140 | 41.460123 | 0.8978 | 0.836934 | 0 | 0.1 | 0 | 0 | 0.169928 | 0.028836 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bbdeb6d9c46357a67ed763811e0d9f0ddefe3101 | 404 | py | Python | tests/test_pymemcache.py | ankane/python-timeouts | bf939d5ef3bc8391d9ca8c2750c765fbd0bf63ae | [
"MIT"
] | 6 | 2021-10-01T06:38:22.000Z | 2022-03-23T09:22:06.000Z | tests/test_pymemcache.py | ankane/python-timeouts | bf939d5ef3bc8391d9ca8c2750c765fbd0bf63ae | [
"MIT"
] | null | null | null | tests/test_pymemcache.py | ankane/python-timeouts | bf939d5ef3bc8391d9ca8c2750c765fbd0bf63ae | [
"MIT"
] | null | null | null | from .conftest import TestTimeouts
from pymemcache.client.base import Client
from socket import timeout
class TestPymemcache(TestTimeouts):
def test_connect(self):
with self.raises(timeout):
Client(self.connect_host(), connect_timeout=1).get('key')
def test_read(self):
with self.r... | 28.857143 | 69 | 0.700495 | 52 | 404 | 5.307692 | 0.461538 | 0.050725 | 0.086957 | 0.130435 | 0.253623 | 0.253623 | 0.253623 | 0 | 0 | 0 | 0 | 0.006116 | 0.190594 | 404 | 13 | 70 | 31.076923 | 0.83792 | 0 | 0 | 0.2 | 0 | 0 | 0.014851 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.3 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
bbe3854951aedb940763c6e74a9379c88a1055b1 | 3,027 | py | Python | stegano-encoder.py | dryairship/stegano-encoder | 44a7e751ed15581673f6a0a1936e17fbaeadac93 | [
"MIT"
] | null | null | null | stegano-encoder.py | dryairship/stegano-encoder | 44a7e751ed15581673f6a0a1936e17fbaeadac93 | [
"MIT"
] | null | null | null | stegano-encoder.py | dryairship/stegano-encoder | 44a7e751ed15581673f6a0a1936e17fbaeadac93 | [
"MIT"
] | null | null | null | import sys
from PIL import Image
def encode(visible_image,hidden_image,output_file):
# create an output image of the same size as the visible image
output_image = Image.new('RGB',(visible_image.width,visible_image.height))
# this array will store the rgb values of the encoded file
pixels = []
w = hidden_image.wi... | 38.316456 | 96 | 0.672944 | 519 | 3,027 | 3.818882 | 0.244701 | 0.163471 | 0.094349 | 0.072654 | 0.293643 | 0.281029 | 0.184157 | 0.123613 | 0.123613 | 0.123613 | 0 | 0.035067 | 0.161546 | 3,027 | 78 | 97 | 38.807692 | 0.745863 | 0.324083 | 0 | 0.173077 | 0 | 0.019231 | 0.101085 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.038462 | null | null | 0.057692 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bbe7043266144a3fb2739745b39b12c530f7b532 | 5,459 | py | Python | etl_unificando.py | parismend/Temblor | b7f78a9d8f2aa56150fe510b6e65f86623030f77 | [
"MIT",
"Unlicense"
] | 6 | 2017-09-21T21:05:43.000Z | 2017-09-25T18:36:50.000Z | etl_unificando.py | parismend/Temblor | b7f78a9d8f2aa56150fe510b6e65f86623030f77 | [
"MIT",
"Unlicense"
] | 18 | 2017-09-21T04:28:57.000Z | 2021-04-30T20:37:11.000Z | etl_unificando.py | parismend/Temblor | b7f78a9d8f2aa56150fe510b6e65f86623030f77 | [
"MIT",
"Unlicense"
] | 13 | 2017-09-20T21:30:59.000Z | 2020-05-15T06:56:29.000Z | import pandas as pd
from apiclient import discovery
from oauth2client import client
from oauth2client import tools
from oauth2client.file import Storage
import re
import os
import httplib2
from geopy.geocoders import Nominatim
from Dicc_Tipo_Danhos import camb_tipos
try:
import argparse
flags = argparse.Argume... | 33.906832 | 92 | 0.686206 | 617 | 5,459 | 5.97731 | 0.395462 | 0.017625 | 0.020607 | 0.013557 | 0.285249 | 0.285249 | 0.238612 | 0.238612 | 0.238612 | 0.238612 | 0 | 0.015614 | 0.213959 | 5,459 | 161 | 93 | 33.906832 | 0.843859 | 0.049643 | 0 | 0.230769 | 0 | 0 | 0.232159 | 0.035682 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.102564 | null | null | 0.034188 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
bbecf65fd5b7ee0fd60d2868abb90fd85ad457e6 | 1,672 | py | Python | weeklypedia/mail.py | Nintendofan885/weeklypedia | 512be3814a693d7ba3044bda7965e7a5d3d137fd | [
"Unlicense"
] | null | null | null | weeklypedia/mail.py | Nintendofan885/weeklypedia | 512be3814a693d7ba3044bda7965e7a5d3d137fd | [
"Unlicense"
] | null | null | null | weeklypedia/mail.py | Nintendofan885/weeklypedia | 512be3814a693d7ba3044bda7965e7a5d3d137fd | [
"Unlicense"
] | null | null | null | # -*- coding: utf-8 -*-
import os
import json
import mailchimp
_CUR_PATH = os.path.dirname(os.path.abspath(__file__))
KEY = json.load(open(os.path.join(_CUR_PATH, 'secrets.json'))).get('mc')
TEST_LIST_ID = "a5ecbc7404"
DEFAULT_LIST = TEST_LIST_ID
# 'f811608f69'
class Mailinglist(object):
def __i... | 29.333333 | 72 | 0.56878 | 185 | 1,672 | 4.864865 | 0.378378 | 0.046667 | 0.053333 | 0.037778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013112 | 0.315789 | 1,672 | 56 | 73 | 29.857143 | 0.773601 | 0.02811 | 0 | 0.073171 | 0 | 0 | 0.098027 | 0.01418 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.097561 | null | null | 0.097561 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
bbf39bcec2ecd2c34ee29b6e707c32b3654cdbee | 419 | py | Python | test_face_extractor.py | MartinPernus/FaceExtractor | 66f2107e0c9361b05e7120f343f84fe5ccdf000d | [
"MIT"
] | 1 | 2021-12-24T22:02:27.000Z | 2021-12-24T22:02:27.000Z | test_face_extractor.py | MartinPernus/FaceExtractor | 66f2107e0c9361b05e7120f343f84fe5ccdf000d | [
"MIT"
] | 1 | 2021-12-24T22:02:19.000Z | 2021-12-24T22:02:19.000Z | test_face_extractor.py | MartinPernus/FaceExtractor | 66f2107e0c9361b05e7120f343f84fe5ccdf000d | [
"MIT"
] | null | null | null |
import torch
from PIL import Image
from torchvision.transforms.functional import to_tensor
from torchvision.utils import save_image
from FaceExtractor import Extractor
if torch.cuda.is_available():
device = 'cuda:0'
else:
device = 'cpu'
img = Image.open('img.jpg')
img = to_tensor(img).to(device)
extractor... | 19.045455 | 55 | 0.754177 | 61 | 419 | 5.04918 | 0.442623 | 0.058442 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002755 | 0.133652 | 419 | 21 | 56 | 19.952381 | 0.84573 | 0 | 0 | 0 | 0 | 0 | 0.079137 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.357143 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
bbf97996cca9b49cefaae3fcd60b2b4950acb629 | 558 | py | Python | nest_py/knoweng/data_types/analysis_networks.py | KnowEnG/platform | 7356fabf5e2db4171ef1f910514436b69ecaa701 | [
"MIT"
] | 2 | 2020-02-12T22:20:51.000Z | 2020-07-31T03:19:51.000Z | nest_py/knoweng/data_types/analysis_networks.py | KnowEnG/platform | 7356fabf5e2db4171ef1f910514436b69ecaa701 | [
"MIT"
] | 1 | 2021-06-02T00:29:02.000Z | 2021-06-02T00:29:02.000Z | nest_py/knoweng/data_types/analysis_networks.py | KnowEnG/platform | 7356fabf5e2db4171ef1f910514436b69ecaa701 | [
"MIT"
] | 1 | 2018-01-03T22:56:27.000Z | 2018-01-03T22:56:27.000Z | """
species' super collections and their collections from knowledge network
"""
from nest_py.core.data_types.tablelike_schema import TablelikeSchema
COLLECTION_NAME = 'analysis_networks'
def generate_schema():
schema = TablelikeSchema(COLLECTION_NAME)
schema.add_categoric_attribute('species_number', valid_v... | 32.823529 | 78 | 0.810036 | 68 | 558 | 6.279412 | 0.544118 | 0.084309 | 0.126464 | 0.189696 | 0.271663 | 0.271663 | 0.196721 | 0 | 0 | 0 | 0 | 0 | 0.109319 | 558 | 16 | 79 | 34.875 | 0.859155 | 0.12724 | 0 | 0 | 0 | 0 | 0.178197 | 0.044025 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.333333 | 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 |
bbfb4a4c9fec15327d8a73633b5e685baf4e1801 | 819 | py | Python | recommen/dump_info.py | jinyaxuan/WebLearning | ad7f8f2cb7e9d0bfe68604550ae676d5d0123063 | [
"MIT"
] | 1 | 2018-02-26T15:45:17.000Z | 2018-02-26T15:45:17.000Z | DMProject/music_suggestion/dump_info.py | gongjunhuang/Spider | c683137dafac9c7f4afd359baf9d0717d1a127e2 | [
"Apache-2.0"
] | null | null | null | DMProject/music_suggestion/dump_info.py | gongjunhuang/Spider | c683137dafac9c7f4afd359baf9d0717d1a127e2 | [
"Apache-2.0"
] | 1 | 2021-12-04T13:33:54.000Z | 2021-12-04T13:33:54.000Z | #coding: utf-8
import cPickle as pickle
import sys
def parse_playlist_get_info(in_line, playlist_dic, song_dic):
contents = in_line.strip().split("\t")
name, tags, playlist_id, subscribed_count = contents[0].split("##")
playlist_dic[playlist_id] = name
for song in contents[1:]
try:
song_id, song_name, artist,... | 28.241379 | 68 | 0.724054 | 123 | 819 | 4.577236 | 0.406504 | 0.117229 | 0.056838 | 0.071048 | 0.078153 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004225 | 0.133089 | 819 | 29 | 69 | 28.241379 | 0.788732 | 0.145299 | 0 | 0 | 0 | 0 | 0.071839 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1 | null | null | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
bbfd99f7537eb4e9aea41160bb84ae040a1cf1c3 | 1,108 | py | Python | test/source/codeinjector-test.py | OMGtechy/libcodeinjector | a19e6102e0f5ec393f0d09eb89dab17958a36073 | [
"MIT"
] | null | null | null | test/source/codeinjector-test.py | OMGtechy/libcodeinjector | a19e6102e0f5ec393f0d09eb89dab17958a36073 | [
"MIT"
] | null | null | null | test/source/codeinjector-test.py | OMGtechy/libcodeinjector | a19e6102e0f5ec393f0d09eb89dab17958a36073 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import subprocess
import sys
import os
def main():
lib_produced_filename = 'ctor'
program_produced_filename = 'main'
try:
os.remove(lib_produced_filename)
except FileNotFoundError:
pass
try:
os.remove(program_produced_filename)
except FileNotFou... | 23.574468 | 80 | 0.663357 | 136 | 1,108 | 5.198529 | 0.404412 | 0.135785 | 0.080622 | 0.080622 | 0.280057 | 0.110325 | 0.110325 | 0.110325 | 0 | 0 | 0 | 0.009368 | 0.229242 | 1,108 | 46 | 81 | 24.086957 | 0.818501 | 0.018953 | 0 | 0.258065 | 0 | 0 | 0.136406 | 0.019355 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032258 | false | 0.064516 | 0.096774 | 0 | 0.258065 | 0.129032 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a5211a391b4f06ea1b67b448dd5c78eeb22f26e6 | 1,085 | py | Python | _src/Chapter01/Recipe04/Python_4/PyJsonConsumer.py | paullewallencom/rabbitmq-978-1-8495-1650-1 | cbec48e514c2f3937c106ff4f4cba188629516c6 | [
"Apache-2.0"
] | null | null | null | _src/Chapter01/Recipe04/Python_4/PyJsonConsumer.py | paullewallencom/rabbitmq-978-1-8495-1650-1 | cbec48e514c2f3937c106ff4f4cba188629516c6 | [
"Apache-2.0"
] | null | null | null | _src/Chapter01/Recipe04/Python_4/PyJsonConsumer.py | paullewallencom/rabbitmq-978-1-8495-1650-1 | cbec48e514c2f3937c106ff4f4cba188629516c6 | [
"Apache-2.0"
] | null | null | null | '''
Created on Feb 2, 2013
@author: gabriele
'''
import pika;
import json;
import sys;
def consumer_callback(ch, method, properties, body):
print " JSON Message received."
new_books=json.loads(body); # the body contains json string.
print " Count books:",len(new_books);
# Books List like the Publish
... | 24.111111 | 97 | 0.710599 | 138 | 1,085 | 5.376812 | 0.528986 | 0.06469 | 0.021563 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008724 | 0.154839 | 1,085 | 45 | 98 | 24.111111 | 0.800436 | 0.053456 | 0 | 0 | 0 | 0 | 0.235537 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.038462 | 0.115385 | null | null | 0.307692 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a526f84d8a01990342e9d3aea422a71f86bf7294 | 2,672 | py | Python | trunk/matgen.py | ethiery/heatEquationSolver | c1fc4316b453974cd72a34eb551130e85842aef0 | [
"MIT"
] | null | null | null | trunk/matgen.py | ethiery/heatEquationSolver | c1fc4316b453974cd72a34eb551130e85842aef0 | [
"MIT"
] | null | null | null | trunk/matgen.py | ethiery/heatEquationSolver | c1fc4316b453974cd72a34eb551130e85842aef0 | [
"MIT"
] | null | null | null | # A little library for the generation and attribute checking of
# matrix of integers
# author : Etienne THIERY
from numpy import *
def symmetricPositiveDefinite(n, maxValue= 1):
''' Generates a n x n random symmetric, positive-definite matrix.
The optionnal maxValue argument can be used to specify a maximum
... | 35.157895 | 71 | 0.678892 | 385 | 2,672 | 4.706494 | 0.337662 | 0.024834 | 0.041391 | 0.020971 | 0.391832 | 0.391832 | 0.391832 | 0.331126 | 0.331126 | 0.302428 | 0 | 0.010978 | 0.25 | 2,672 | 75 | 72 | 35.626667 | 0.893214 | 0.618263 | 0 | 0.08 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16 | false | 0 | 0.04 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a52a1c5c54ed3eab06c4cdd277bda0cc826c548b | 2,337 | py | Python | tests.py | qiuosier/prometheus | 7c104dadb4769caf4368f37973f986b6d194931c | [
"MIT"
] | null | null | null | tests.py | qiuosier/prometheus | 7c104dadb4769caf4368f37973f986b6d194931c | [
"MIT"
] | null | null | null | tests.py | qiuosier/prometheus | 7c104dadb4769caf4368f37973f986b6d194931c | [
"MIT"
] | null | null | null | from unittest import TestCase
from app import check_url, uptime_check, parse_arguments
class TestUpTimeCheck(TestCase):
# This URL is considered UP
up_url = "https://httpstat.us/200"
# This URL is considered DOWN
down_url = "https://httpstat.us/503"
# This URL will trigger timeout
timeout_url... | 41.732143 | 91 | 0.679076 | 324 | 2,337 | 4.734568 | 0.259259 | 0.125163 | 0.055411 | 0.039113 | 0.247066 | 0.178618 | 0.119948 | 0.119948 | 0.119948 | 0.061278 | 0 | 0.025556 | 0.229782 | 2,337 | 55 | 92 | 42.490909 | 0.826667 | 0.231493 | 0 | 0.068966 | 0 | 0 | 0.222473 | 0 | 0 | 0 | 0 | 0 | 0.551724 | 1 | 0.137931 | false | 0 | 0.068966 | 0 | 0.344828 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a52aeddc5ab073519116b30b803e08d1ff199659 | 1,974 | py | Python | inspector-pkg/tests/inspector/components/pythonstrictvalidator_test.py | sha1n/macos-devenv-dump-poc | be439ad4a0c0ac265fe62d44bded73eab1a0c31d | [
"MIT"
] | null | null | null | inspector-pkg/tests/inspector/components/pythonstrictvalidator_test.py | sha1n/macos-devenv-dump-poc | be439ad4a0c0ac265fe62d44bded73eab1a0c31d | [
"MIT"
] | null | null | null | inspector-pkg/tests/inspector/components/pythonstrictvalidator_test.py | sha1n/macos-devenv-dump-poc | be439ad4a0c0ac265fe62d44bded73eab1a0c31d | [
"MIT"
] | null | null | null | import unittest
from shminspector.api.semver import SemVer
from shminspector.api.validator import Status
from shminspector.components.python import PythonInfo, PythonInfoStrictValidator
from tests.testutil import test_context
class PythonInfoStrictValidatorTest(unittest.TestCase):
def test_validate(self):
... | 35.25 | 80 | 0.741135 | 226 | 1,974 | 6.19469 | 0.212389 | 0.1 | 0.135714 | 0.164286 | 0.665714 | 0.665714 | 0.665714 | 0.585714 | 0.585714 | 0.585714 | 0 | 0.00602 | 0.158561 | 1,974 | 55 | 81 | 35.890909 | 0.836845 | 0 | 0 | 0.361111 | 0 | 0 | 0.009625 | 0 | 0 | 0 | 0 | 0 | 0.138889 | 1 | 0.194444 | false | 0 | 0.138889 | 0.055556 | 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 |
a52ce1b9d752e9f89b4d35c5925a696eab33391d | 851 | py | Python | src/my_robot_bringup/launch/number_app.launch.py | devis12/ros2_ws_src | 3a3552a2240767a2d6776c424681b70cad83e989 | [
"Apache-2.0"
] | 1 | 2021-06-14T11:30:55.000Z | 2021-06-14T11:30:55.000Z | src/my_robot_bringup/launch/number_app.launch.py | devis12/ros2_ws_src | 3a3552a2240767a2d6776c424681b70cad83e989 | [
"Apache-2.0"
] | null | null | null | src/my_robot_bringup/launch/number_app.launch.py | devis12/ros2_ws_src | 3a3552a2240767a2d6776c424681b70cad83e989 | [
"Apache-2.0"
] | null | null | null | from launch import LaunchDescription
from launch_ros.actions import Node
def generate_launch_description():
ld = LaunchDescription()
remap_number_topic = ("number", "my_number")
number_publisher_node = Node(
package="my_py_pkg",
executable="number_publisher",
name="my_number_p... | 25.029412 | 48 | 0.613396 | 87 | 851 | 5.586207 | 0.390805 | 0.065844 | 0.098765 | 0.090535 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003322 | 0.292597 | 851 | 34 | 49 | 25.029412 | 0.803987 | 0 | 0 | 0.068966 | 1 | 0 | 0.188967 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0.068966 | 0 | 0.137931 | 0 | 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 |
a5330764d6ad8e0a95f97d40eced856b26a23452 | 3,252 | py | Python | accounts/models.py | zbvc382/absence-management-system | aeaa9b2cd83957aee9c9face8bda190f8007c5d6 | [
"MIT"
] | null | null | null | accounts/models.py | zbvc382/absence-management-system | aeaa9b2cd83957aee9c9face8bda190f8007c5d6 | [
"MIT"
] | null | null | null | accounts/models.py | zbvc382/absence-management-system | aeaa9b2cd83957aee9c9face8bda190f8007c5d6 | [
"MIT"
] | null | null | null | from django.db import models
from django.contrib.auth.models import (
BaseUserManager, AbstractBaseUser
)
from django.core import validators
class MyUserManager(BaseUserManager):
def _create_user(self, username, email, password,
is_active, is_admin, **extra_fields):
if not userna... | 33.525773 | 98 | 0.607011 | 360 | 3,252 | 5.269444 | 0.322222 | 0.03321 | 0.056932 | 0.075909 | 0.225619 | 0.168687 | 0.137059 | 0.100158 | 0.059041 | 0.059041 | 0 | 0.007749 | 0.28567 | 3,252 | 96 | 99 | 33.875 | 0.808868 | 0 | 0 | 0.115385 | 0 | 0 | 0.123001 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.141026 | false | 0.076923 | 0.038462 | 0.089744 | 0.525641 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a534413f67114e30e6909678ea4f5bc5c821b383 | 1,767 | py | Python | src/seva_zaika_sdk/book.py | vsevolod-kolchinsky/seva-zaika-SDK | cdfad0f50cd239313517e18c7ca8ea6101ab8758 | [
"MIT"
] | null | null | null | src/seva_zaika_sdk/book.py | vsevolod-kolchinsky/seva-zaika-SDK | cdfad0f50cd239313517e18c7ca8ea6101ab8758 | [
"MIT"
] | null | null | null | src/seva_zaika_sdk/book.py | vsevolod-kolchinsky/seva-zaika-SDK | cdfad0f50cd239313517e18c7ca8ea6101ab8758 | [
"MIT"
] | null | null | null | from typing import Any, Optional
from .base import BaseEntityApi
class Book:
"""LOTR Book entity model"""
_id: str
name: str
def __init__(self, api_client, _id: str, name: str) -> None:
self._api_client = api_client
self._id = _id
self.name = name
def __repr__(self) -> ... | 22.948052 | 83 | 0.644595 | 218 | 1,767 | 4.885321 | 0.266055 | 0.059155 | 0.061033 | 0.033803 | 0.312676 | 0.312676 | 0.2723 | 0.206573 | 0.153991 | 0.090141 | 0 | 0 | 0.250707 | 1,767 | 76 | 84 | 23.25 | 0.804381 | 0.195812 | 0 | 0.368421 | 0 | 0 | 0.13069 | 0.0558 | 0 | 0 | 0 | 0 | 0 | 1 | 0.131579 | false | 0 | 0.052632 | 0.052632 | 0.763158 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a53882a256e7c23ce74ac1f408ed26088e40bc56 | 3,642 | py | Python | mail/handler.py | Pie-Intl-Entmt/CloudVending | 204742cd4eab4d81e29bdd048bfe8bb29024b70e | [
"MIT"
] | null | null | null | mail/handler.py | Pie-Intl-Entmt/CloudVending | 204742cd4eab4d81e29bdd048bfe8bb29024b70e | [
"MIT"
] | 3 | 2021-07-03T02:40:59.000Z | 2021-07-06T04:21:13.000Z | mail/handler.py | Gaukas/CloudVending | 204742cd4eab4d81e29bdd048bfe8bb29024b70e | [
"MIT"
] | 1 | 2021-07-03T10:49:45.000Z | 2021-07-03T10:49:45.000Z | import smtplib, imaplib, ssl
from email.mime.text import MIMEText
from email.mime.multipart import MIMEMultipart
def set_syspath():
from pathlib import Path
import os
import sys
root_directory = str(Path(os.path.abspath(__file__)).parent.parent.absolute())
if root_directory not in sys.path:
... | 34.685714 | 103 | 0.686711 | 475 | 3,642 | 5.018947 | 0.227368 | 0.05453 | 0.040268 | 0.037752 | 0.356544 | 0.337248 | 0.229027 | 0.199664 | 0.111158 | 0.111158 | 0 | 0.008205 | 0.19687 | 3,642 | 104 | 104 | 35.019231 | 0.806838 | 0 | 0 | 0.314607 | 0 | 0 | 0.123833 | 0.005766 | 0 | 0 | 0 | 0 | 0 | 1 | 0.089888 | false | 0.11236 | 0.146067 | 0 | 0.314607 | 0.011236 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a538db220b8b3fe32e8839de9ad8113677b9f37e | 3,111 | py | Python | pathways/migrations/0001_initial.py | truffi01/affordable_water | 86ed47537f826a8978790744440936ad6d179321 | [
"MIT"
] | 2 | 2020-08-27T22:40:50.000Z | 2020-08-27T22:42:03.000Z | pathways/migrations/0001_initial.py | truffi01/affordable_water | 86ed47537f826a8978790744440936ad6d179321 | [
"MIT"
] | 26 | 2019-10-25T12:29:55.000Z | 2020-10-16T14:43:57.000Z | pathways/migrations/0001_initial.py | truffi01/affordable_water | 86ed47537f826a8978790744440936ad6d179321 | [
"MIT"
] | 2 | 2020-01-03T19:24:15.000Z | 2020-01-26T21:51:49.000Z | # Generated by Django 2.2.5 on 2019-09-27 13:21
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Application',
fields=[
... | 74.071429 | 306 | 0.630344 | 378 | 3,111 | 5.068783 | 0.444444 | 0.070459 | 0.084551 | 0.112735 | 0.24739 | 0.216075 | 0.09499 | 0 | 0 | 0 | 0 | 0.035786 | 0.200579 | 3,111 | 41 | 307 | 75.878049 | 0.73462 | 0.014465 | 0 | 0 | 1 | 0.029412 | 0.321802 | 0.023172 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.176471 | 0 | 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 |
a53c026fb135ee08209f6a0eecd6aa65c99dc02a | 1,703 | py | Python | alt_db/pgaws.py | vsx-gh/PfE_Capstone | 1e6aeeaf17436c0364a2963e8b927947eebcc374 | [
"BSD-3-Clause",
"MIT"
] | null | null | null | alt_db/pgaws.py | vsx-gh/PfE_Capstone | 1e6aeeaf17436c0364a2963e8b927947eebcc374 | [
"BSD-3-Clause",
"MIT"
] | 1 | 2017-02-02T03:07:29.000Z | 2017-02-02T03:07:29.000Z | alt_db/pgaws.py | vsx-gh/PfE_Capstone | 1e6aeeaf17436c0364a2963e8b927947eebcc374 | [
"BSD-3-Clause",
"MIT"
] | null | null | null | #!/usr/bin/env python
'''
Program: pgaws.py
Author: Jeff VanSickle
Created: 20170117
Modified: 20170117
Program creates connection to AWS RDS instance and returns cursor to the
instance and DB specified.
Most connection options kept in environment variables. Best practice would
be to encrypt these. T... | 33.392157 | 169 | 0.672343 | 221 | 1,703 | 5.144796 | 0.561086 | 0.03518 | 0.070361 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013196 | 0.19906 | 1,703 | 50 | 170 | 34.06 | 0.820381 | 0.494422 | 0 | 0 | 0 | 0 | 0.180851 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0.294118 | 0.117647 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
a53ce661d924d9b987e9c89977f688213505402b | 7,217 | py | Python | run.py | demarillacizere/Password-Locker | 718030c318d34178f6dd127e6431006d7a5ae295 | [
"MIT"
] | null | null | null | run.py | demarillacizere/Password-Locker | 718030c318d34178f6dd127e6431006d7a5ae295 | [
"MIT"
] | null | null | null | run.py | demarillacizere/Password-Locker | 718030c318d34178f6dd127e6431006d7a5ae295 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3.6
from user import User
from credentials import Credential
def create_account(username,password):
'''
Function to create a new account
'''
new_user = User(username,password)
return new_user
def save_account(user):
'''
Function to save new user
'''
User.save_use... | 37.984211 | 158 | 0.502425 | 688 | 7,217 | 5.139535 | 0.199128 | 0.025452 | 0.022059 | 0.010181 | 0.163744 | 0.135464 | 0.11086 | 0.11086 | 0.086538 | 0.086538 | 0 | 0.004153 | 0.399473 | 7,217 | 190 | 159 | 37.984211 | 0.811721 | 0.081613 | 0 | 0.315789 | 0 | 0.022556 | 0.226543 | 0.039043 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090226 | false | 0.165414 | 0.015038 | 0 | 0.165414 | 0.398496 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a53d396d78978f557d626004017b144b3d98327b | 482 | py | Python | opmatch/tests/match_t.py | kirilklein/opmatch | 6cff35422d92f36a6ce93bff40003cb35b2768d0 | [
"MIT"
] | null | null | null | opmatch/tests/match_t.py | kirilklein/opmatch | 6cff35422d92f36a6ce93bff40003cb35b2768d0 | [
"MIT"
] | null | null | null | opmatch/tests/match_t.py | kirilklein/opmatch | 6cff35422d92f36a6ce93bff40003cb35b2768d0 | [
"MIT"
] | null | null | null | import os, sys
from os.path import join
ROOT_DIR = os.path.abspath(os.curdir)
if ROOT_DIR not in sys.path:
sys.path.append(ROOT_DIR)
sys.path.append(join(ROOT_DIR, 'opmatch'))
import match
import create_test_data
import numpy as np
from util import vis
X, y, ps = create_test_data.get_test_data(False, 30, 1, .1... | 30.125 | 60 | 0.742739 | 90 | 482 | 3.811111 | 0.5 | 0.081633 | 0.06414 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011792 | 0.120332 | 482 | 16 | 61 | 30.125 | 0.79717 | 0 | 0 | 0 | 0 | 0 | 0.064182 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
a543611965f13325e86924ac236126b7a6f5e117 | 668 | py | Python | OtherProjects/todo/server/api/migrations/0001_initial.py | captainTOKIO/Premchand_Aug2022_fullstack_august_python1 | 5fbbdd106a764c2f862cf933fdcd69d6bf4ebdf0 | [
"MIT"
] | null | null | null | OtherProjects/todo/server/api/migrations/0001_initial.py | captainTOKIO/Premchand_Aug2022_fullstack_august_python1 | 5fbbdd106a764c2f862cf933fdcd69d6bf4ebdf0 | [
"MIT"
] | null | null | null | OtherProjects/todo/server/api/migrations/0001_initial.py | captainTOKIO/Premchand_Aug2022_fullstack_august_python1 | 5fbbdd106a764c2f862cf933fdcd69d6bf4ebdf0 | [
"MIT"
] | null | null | null | # Generated by Django 4.0.1 on 2022-03-10 16:05
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Tasks',
fields=[
('id', mod... | 26.72 | 117 | 0.595808 | 69 | 668 | 5.681159 | 0.695652 | 0.076531 | 0.091837 | 0.122449 | 0.137755 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043659 | 0.27994 | 668 | 24 | 118 | 27.833333 | 0.77131 | 0.067365 | 0 | 0 | 1 | 0 | 0.05475 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.117647 | 0 | 0.352941 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a54d02c97bda99c290a0ce77297690534cdf2147 | 790 | py | Python | setup.py | tylercrumpton/snappy-atmega | 270fac214f56e9aca8b16e79fe37f9d50aab628d | [
"Apache-2.0"
] | null | null | null | setup.py | tylercrumpton/snappy-atmega | 270fac214f56e9aca8b16e79fe37f9d50aab628d | [
"Apache-2.0"
] | null | null | null | setup.py | tylercrumpton/snappy-atmega | 270fac214f56e9aca8b16e79fe37f9d50aab628d | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup
setup(
name='snappyatmega',
description="Advanced SNAPpy includes for Synapse SNAP modules based on the atmega128rfa1",
maintainer='Tyler Crumpton',
maintainer_email='tyler.crumpton@synapse-wireless.com',
url='https://githu... | 30.384615 | 95 | 0.648101 | 77 | 790 | 6.584416 | 0.805195 | 0.051282 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012821 | 0.210127 | 790 | 25 | 96 | 31.6 | 0.799679 | 0.053165 | 0 | 0 | 0 | 0 | 0.575067 | 0.079088 | 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 |
a553d78748b19ed50f1f89ff088ac06a08aa43ab | 286 | py | Python | setup.py | BlueShifTA/MLHEP2020-black-box | e979cb92218e9242174e45f976f5bb78ac916bac | [
"MIT"
] | 1 | 2022-03-14T12:31:03.000Z | 2022-03-14T12:31:03.000Z | setup.py | BlueShifTA/MLHEP2020-black-box | e979cb92218e9242174e45f976f5bb78ac916bac | [
"MIT"
] | null | null | null | setup.py | BlueShifTA/MLHEP2020-black-box | e979cb92218e9242174e45f976f5bb78ac916bac | [
"MIT"
] | 7 | 2020-07-25T11:43:56.000Z | 2020-10-14T18:53:12.000Z | from setuptools import find_packages, setup
setup(
name='fel',
version='0.1.0',
description='Study of optimization methods for XFEL accelerator tuning.',
author='Maxim Borisyak, Alena Zarodnyuk',
license='MIT',
packages=find_packages('src'),
package_dir={'': 'src/'},
)
| 22 | 75 | 0.706294 | 36 | 286 | 5.527778 | 0.833333 | 0.120603 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012245 | 0.143357 | 286 | 12 | 76 | 23.833333 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0.374126 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.1 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a554ca963eee8ce2ec0df5cf9102b27398fed113 | 6,950 | py | Python | radalert/util/filter.py | jigpu/radalert-py | 9de5f7a0fbc0bae64ab723e816c42fc1b40a51a8 | [
"Apache-2.0"
] | null | null | null | radalert/util/filter.py | jigpu/radalert-py | 9de5f7a0fbc0bae64ab723e816c42fc1b40a51a8 | [
"Apache-2.0"
] | null | null | null | radalert/util/filter.py | jigpu/radalert-py | 9de5f7a0fbc0bae64ab723e816c42fc1b40a51a8 | [
"Apache-2.0"
] | null | null | null | """
Simple data filtering module.
Provides functions and classes that implement FIR and IIR filters.
"""
import math
def mean_arithmetic(values):
"""Get the arithmetic mean of the input list."""
if len(values) == 0:
return None
return sum(values) / len(values)
def mean_geometric(values):
"... | 31.880734 | 79 | 0.653381 | 912 | 6,950 | 4.923246 | 0.197368 | 0.009354 | 0.01804 | 0.020045 | 0.477506 | 0.398218 | 0.357906 | 0.327617 | 0.288641 | 0.288641 | 0 | 0.006211 | 0.281871 | 6,950 | 217 | 80 | 32.02765 | 0.893408 | 0.514388 | 0 | 0.309859 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.239437 | false | 0 | 0.014085 | 0 | 0.535211 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a5571814d92e3839f5e0027fda72aad88d8e9ad9 | 3,011 | py | Python | EV3/telemetry.py | mahbubiftekhar/RoboTour | 360571c7d7df3b09b00be762bbfcf41310680de4 | [
"MIT"
] | 4 | 2018-05-16T17:26:36.000Z | 2021-05-20T08:05:25.000Z | EV3/telemetry.py | mahbubiftekhar/RoboTour | 360571c7d7df3b09b00be762bbfcf41310680de4 | [
"MIT"
] | null | null | null | EV3/telemetry.py | mahbubiftekhar/RoboTour | 360571c7d7df3b09b00be762bbfcf41310680de4 | [
"MIT"
] | 3 | 2018-06-29T10:13:12.000Z | 2020-01-22T21:07:24.000Z | #! /usr/bin/env python3
import time
import random
import os
class DataLogger():
def __init__(self, name, folder='./logs', timer=None):
self.name = name
self.folder = folder
self.channel_names = []
self.channels = []
# attach timer channel - either generic or passed on (e.g. global)
if timer is None:
... | 22.810606 | 76 | 0.689472 | 440 | 3,011 | 4.563636 | 0.3 | 0.023904 | 0.021912 | 0.033865 | 0.175299 | 0.157371 | 0.134462 | 0.134462 | 0.134462 | 0.134462 | 0 | 0.003622 | 0.174693 | 3,011 | 132 | 77 | 22.810606 | 0.804427 | 0.104949 | 0 | 0.222222 | 0 | 0 | 0.089552 | 0 | 0 | 0 | 0 | 0.015152 | 0 | 1 | 0.122222 | false | 0.011111 | 0.033333 | 0 | 0.255556 | 0.044444 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
a566b2e81192dccaa7ff37892412008eaf02c399 | 3,201 | py | Python | socio/verification/verification_functions.py | rjazevedo/dados-unicamp | 4b77906d5348647dcdba1b8cb09f46d2cac53457 | [
"MIT"
] | null | null | null | socio/verification/verification_functions.py | rjazevedo/dados-unicamp | 4b77906d5348647dcdba1b8cb09f46d2cac53457 | [
"MIT"
] | null | null | null | socio/verification/verification_functions.py | rjazevedo/dados-unicamp | 4b77906d5348647dcdba1b8cb09f46d2cac53457 | [
"MIT"
] | null | null | null | def check_cnpj(value):
if value == '99999999999999':
is_valid = False
else:
# Checks if is in pattern NNNNNNNNNNNNNN
is_valid_len = len(value) == 14
is_valid_num = all(char.isnumeric() for char in value)
is_valid = is_valid_len and is_valid_num
return not is_valid
de... | 29.638889 | 199 | 0.632927 | 501 | 3,201 | 3.836327 | 0.249501 | 0.145682 | 0.085848 | 0.12487 | 0.468783 | 0.425078 | 0.340791 | 0.282518 | 0.282518 | 0.170656 | 0 | 0.041841 | 0.253358 | 3,201 | 107 | 200 | 29.915888 | 0.762343 | 0.086535 | 0 | 0.321429 | 0 | 0 | 0.028444 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.202381 | false | 0 | 0 | 0 | 0.440476 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a56d934273c5a35c1071946656b81be9b100ddc4 | 877 | py | Python | prf/tests/prf_testcase.py | vahana/_prf | ff947003a3675a22730ca3d821fcb2e230575e7d | [
"MIT"
] | null | null | null | prf/tests/prf_testcase.py | vahana/_prf | ff947003a3675a22730ca3d821fcb2e230575e7d | [
"MIT"
] | 6 | 2015-01-04T14:49:34.000Z | 2017-11-21T16:26:03.000Z | prf/tests/prf_testcase.py | vahana/_prf | ff947003a3675a22730ca3d821fcb2e230575e7d | [
"MIT"
] | 1 | 2019-11-14T17:16:34.000Z | 2019-11-14T17:16:34.000Z | import os
import unittest
from os import environ
from pyramid.config import Configurator
from pyramid.paster import get_appsettings
from pyramid import testing
from pymongo import MongoClient
import prf
class PrfTestCase(unittest.TestCase):
def setUp(self):
test_ini_file = environ.get('INI_FILE', 'test.in... | 28.290323 | 74 | 0.688712 | 108 | 877 | 5.5 | 0.37037 | 0.121212 | 0.126263 | 0.148148 | 0.121212 | 0.121212 | 0.121212 | 0 | 0 | 0 | 0 | 0.007153 | 0.202965 | 877 | 30 | 75 | 29.233333 | 0.842632 | 0 | 0 | 0 | 0 | 0 | 0.082098 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0.347826 | 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 |
a56f57037c58b98b831a6d1d87fe0a7ab6f9cac9 | 432 | py | Python | yitu/client.py | wangjinyu124419/long_audio_asr | d8dabf6cb10b282e3bd4981207c4a0f478977c9b | [
"MIT"
] | null | null | null | yitu/client.py | wangjinyu124419/long_audio_asr | d8dabf6cb10b282e3bd4981207c4a0f478977c9b | [
"MIT"
] | null | null | null | yitu/client.py | wangjinyu124419/long_audio_asr | d8dabf6cb10b282e3bd4981207c4a0f478977c9b | [
"MIT"
] | 1 | 2019-11-15T10:29:52.000Z | 2019-11-15T10:29:52.000Z |
from sample import get_result
# res=get_result('/home/wangjinyu/workproject/long_audio_asr/res/real_wav/xuexiangchong/xuexiangchong5.wav')
import os
files_path='/home/wangjinyu/workproject/long_audio_asr/mp3_audio'
files_list=os.listdir(files_path)
f=open(os.path.join(files_path,'yitu.txt'),'a')
for file in files_l... | 27 | 108 | 0.770833 | 71 | 432 | 4.450704 | 0.464789 | 0.113924 | 0.075949 | 0.177215 | 0.348101 | 0.227848 | 0 | 0 | 0 | 0 | 0 | 0.005038 | 0.081019 | 432 | 16 | 109 | 27 | 0.790932 | 0.24537 | 0 | 0 | 0 | 0 | 0.198142 | 0.160991 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.222222 | 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 |
a56fd8ec102fa229279fc941662ee2e452451465 | 19,941 | py | Python | openrave/python/examples/visibilityplanning.py | jdsika/TUM_HOly | a2ac55fa1751a3a8038cf61d29b95005f36d6264 | [
"MIT"
] | 2 | 2015-11-13T16:40:57.000Z | 2017-09-15T15:37:19.000Z | openrave/python/examples/visibilityplanning.py | jdsika/holy | a2ac55fa1751a3a8038cf61d29b95005f36d6264 | [
"MIT"
] | 1 | 2016-06-13T01:29:51.000Z | 2016-06-14T00:38:27.000Z | openrave/python/examples/visibilityplanning.py | jdsika/holy | a2ac55fa1751a3a8038cf61d29b95005f36d6264 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (C) 2009-2012 Rosen Diankov (rosen.diankov@gmail.com)
#
# 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/lic... | 46.053118 | 542 | 0.621383 | 2,179 | 19,941 | 5.665443 | 0.281322 | 0.035804 | 0.014176 | 0.014743 | 0.138437 | 0.0887 | 0.072499 | 0.063589 | 0.053706 | 0.043337 | 0 | 0.013208 | 0.282383 | 19,941 | 432 | 543 | 46.159722 | 0.849476 | 0.073868 | 0 | 0.255034 | 0 | 0 | 0.044191 | 0.007033 | 0 | 0 | 0 | 0 | 0.003356 | 0 | null | null | 0 | 0.02349 | null | null | 0.043624 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a5714c598817e274d674a9520e12289c149d220e | 4,675 | py | Python | adjudicator/check.py | zingbretsen/diplomacy | e4c8d2c89540c0e2ea1929879fd303a170d0a723 | [
"MIT"
] | 1 | 2020-07-21T18:10:29.000Z | 2020-07-21T18:10:29.000Z | adjudicator/check.py | zingbretsen/diplomacy | e4c8d2c89540c0e2ea1929879fd303a170d0a723 | [
"MIT"
] | 142 | 2020-04-07T17:36:34.000Z | 2021-06-07T00:20:47.000Z | adjudicator/check.py | zingbretsen/diplomacy | e4c8d2c89540c0e2ea1929879fd303a170d0a723 | [
"MIT"
] | 3 | 2018-08-30T08:58:27.000Z | 2021-02-28T03:34:26.000Z | from .piece import PieceTypes
class Check:
pass
class SourcePieceBelongsToNation(Check):
code = '001'
message = 'Cannot order a piece belonging to another nation.'
def fail_condition(self, order):
return order.source.piece.nation != order.nation
class SourceAndTargetDistinct(Check):
... | 22.584541 | 81 | 0.659679 | 551 | 4,675 | 5.515427 | 0.23049 | 0.053307 | 0.094768 | 0.11846 | 0.436657 | 0.404409 | 0.365581 | 0.345837 | 0.277394 | 0.189207 | 0 | 0.015499 | 0.254759 | 4,675 | 206 | 82 | 22.694175 | 0.856774 | 0 | 0 | 0.280303 | 0 | 0 | 0.195508 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136364 | false | 0.007576 | 0.007576 | 0.083333 | 0.69697 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a571abf4334066a4b164f591ecde776c60b84679 | 2,255 | py | Python | 0126_WordLadder(2).py | yingzhuo1994/LeetCode | 636eef90867d21e3439d258ec99fbb8e5ad5a742 | [
"MIT"
] | null | null | null | 0126_WordLadder(2).py | yingzhuo1994/LeetCode | 636eef90867d21e3439d258ec99fbb8e5ad5a742 | [
"MIT"
] | null | null | null | 0126_WordLadder(2).py | yingzhuo1994/LeetCode | 636eef90867d21e3439d258ec99fbb8e5ad5a742 | [
"MIT"
] | null | null | null | # 1st solution
class Solution:
def findLadders(self, beginWord: str, endWord: str, wordList: List[str]) -> List[List[str]]:
if endWord not in wordList:
return []
wordSet = set(wordList) # faster checks against dictionary
layer = {}
layer[beginWord] = [[beginWord]] # ... | 42.54717 | 144 | 0.545898 | 264 | 2,255 | 4.659091 | 0.356061 | 0.022764 | 0.026016 | 0.043902 | 0.456911 | 0.456911 | 0.356098 | 0.356098 | 0.356098 | 0.356098 | 0 | 0.004196 | 0.365854 | 2,255 | 53 | 145 | 42.54717 | 0.855944 | 0.232373 | 0 | 0.878049 | 0 | 0 | 0.015134 | 0.015134 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04878 | false | 0 | 0 | 0 | 0.243902 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a580e98316a4f170b4cdf55eaeee5384927a25af | 14,787 | py | Python | Books/PythonForDataAnalysis/ch05/pandas_basic.py | Tim232/Python-Things | 05f0f373a4cf298e70d9668c88a6e3a9d1cd8146 | [
"MIT"
] | 2 | 2020-12-05T07:42:55.000Z | 2021-01-06T23:23:18.000Z | Books/PythonForDataAnalysis/ch05/pandas_basic.py | Tim232/Python-Things | 05f0f373a4cf298e70d9668c88a6e3a9d1cd8146 | [
"MIT"
] | null | null | null | Books/PythonForDataAnalysis/ch05/pandas_basic.py | Tim232/Python-Things | 05f0f373a4cf298e70d9668c88a6e3a9d1cd8146 | [
"MIT"
] | null | null | null | #todo chapter5. pandas 시작하기
from pandas import Series, DataFrame
import pandas as pd
import numpy as np
#todo 5.1 pandas 자료 구조 소개
'''
pandas 에 대해서 알아보려면 Series 와 DataFrame, 이 두 가지 자료 구조에 익숙해질 필요가 있다.
이 두 가지 자료 구조로 모든 문제를 해결할 수는 없지만 대부분의 애플리케이션에서 사용하기 쉽고 탄탄한 기반을 제공한다.
'''
#todo 5.1.1 Series
'''
Series 는 일련의... | 27.742964 | 136 | 0.61926 | 2,814 | 14,787 | 3.24769 | 0.314854 | 0.008863 | 0.003283 | 0.003064 | 0.101105 | 0.076048 | 0.061385 | 0.055477 | 0.049568 | 0.045957 | 0 | 0.036599 | 0.222087 | 14,787 | 533 | 137 | 27.742964 | 0.757889 | 0.056739 | 0 | 0.2 | 0 | 0 | 0.124656 | 0 | 0 | 0 | 0 | 0.02439 | 0 | 1 | 0.005128 | false | 0 | 0.015385 | 0.005128 | 0.025641 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
a583b331999854085dd84e1932ea42272e7f6448 | 650 | py | Python | Lab4/Exercise3/string_utilities.py | alex99q/python3-lab-exercises | dfa96908f589d2e03ce3a21a3326fd7365d62fcb | [
"MIT"
] | null | null | null | Lab4/Exercise3/string_utilities.py | alex99q/python3-lab-exercises | dfa96908f589d2e03ce3a21a3326fd7365d62fcb | [
"MIT"
] | null | null | null | Lab4/Exercise3/string_utilities.py | alex99q/python3-lab-exercises | dfa96908f589d2e03ce3a21a3326fd7365d62fcb | [
"MIT"
] | null | null | null | class StringUtilities(str):
def longest_word(self):
word_list = self.split()
longest_word_length = 0
for word in word_list:
word = StringUtilities.remove_symbols(word)
if len(word) > longest_word_length:
longest_word_length = len(word)
... | 29.545455 | 118 | 0.58 | 80 | 650 | 4.4875 | 0.3875 | 0.153203 | 0.189415 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020642 | 0.329231 | 650 | 22 | 119 | 29.545455 | 0.802752 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0 | 0 | 0.333333 | 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 |
a58efa92a7b63f132dc88f33e1d02925a8e83074 | 527 | py | Python | cinnamon_sdk/internals/json_codecs.py | adgorithmics-inc/cinnamon-python-sdk | 804e7d00bb728c4d91280d7236a4dc06fefaeea0 | [
"MIT"
] | null | null | null | cinnamon_sdk/internals/json_codecs.py | adgorithmics-inc/cinnamon-python-sdk | 804e7d00bb728c4d91280d7236a4dc06fefaeea0 | [
"MIT"
] | null | null | null | cinnamon_sdk/internals/json_codecs.py | adgorithmics-inc/cinnamon-python-sdk | 804e7d00bb728c4d91280d7236a4dc06fefaeea0 | [
"MIT"
] | null | null | null | import json
import datetime
import pytz
from enum import Enum
def datetime_encoder(dt: datetime.datetime) -> str:
if isinstance(dt, datetime.datetime):
return dt.astimezone(pytz.UTC).replace(tzinfo=None).isoformat() + "Z"
return dt
class CinnamonJSONEncoder(json.JSONEncoder):
def default(self, o... | 26.35 | 77 | 0.686907 | 64 | 527 | 5.625 | 0.421875 | 0.133333 | 0.1 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.216319 | 527 | 19 | 78 | 27.736842 | 0.871671 | 0 | 0 | 0 | 0 | 0 | 0.001898 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.266667 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
a59adaf735ff499f9f45fcd826aa6c63e7ae14fd | 1,074 | py | Python | example/C-beam_shearFlow2.py | Eacaen/composite-blade-design | 61437988c4b1a8008927e6365d4c8ba8ba94d162 | [
"CNRI-Python",
"OML"
] | 9 | 2018-06-01T07:12:25.000Z | 2022-03-18T08:43:09.000Z | example/C-beam_shearFlow2.py | furetosan/composite-blade-design | 61437988c4b1a8008927e6365d4c8ba8ba94d162 | [
"CNRI-Python",
"OML"
] | null | null | null | example/C-beam_shearFlow2.py | furetosan/composite-blade-design | 61437988c4b1a8008927e6365d4c8ba8ba94d162 | [
"CNRI-Python",
"OML"
] | 3 | 2019-10-16T01:42:41.000Z | 2021-01-14T14:35:27.000Z | #coding:utf-8
import sys
sys.path.insert(0, "../source")
import read_exe
import profile
import open_profile
from graph import *
from graph_plugin import *
from profile_plugin import *
if __name__ == "__main__":
val = read_exe.Read_COS('/home/eacaen/TUBS_graduation/draft/test_data/]--|_|.xlsx')
lis = val.cos_value
... | 22.851064 | 91 | 0.683426 | 187 | 1,074 | 3.716578 | 0.406417 | 0.040288 | 0.025899 | 0.031655 | 0.057554 | 0.057554 | 0 | 0 | 0 | 0 | 0 | 0.021622 | 0.138734 | 1,074 | 47 | 92 | 22.851064 | 0.72973 | 0.082868 | 0 | 0 | 0 | 0 | 0.113937 | 0.056968 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.225806 | null | null | 0.193548 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a59bdbfbfc2a560398ace90136f2312e7487d993 | 31,508 | py | Python | teafacto/scripts/semparse/semparse.py | lukovnikov/teafacto | 5e863df8d061106ad705c0837f2d2ca4e08db0e4 | [
"MIT"
] | 2 | 2016-06-28T23:41:42.000Z | 2017-01-14T12:41:36.000Z | teafacto/scripts/semparse/semparse.py | lukovnikov/teafacto | 5e863df8d061106ad705c0837f2d2ca4e08db0e4 | [
"MIT"
] | 1 | 2016-04-20T20:09:20.000Z | 2016-08-17T19:02:47.000Z | teafacto/scripts/semparse/semparse.py | lukovnikov/teafacto | 5e863df8d061106ad705c0837f2d2ca4e08db0e4 | [
"MIT"
] | 5 | 2016-07-18T17:05:18.000Z | 2018-10-13T05:40:05.000Z | from teafacto.util import argprun, isstring, issequence
from teafacto.procutil import wordids2string, wordmat2charmat
import numpy as np, re, random
from IPython import embed
from teafacto.core.base import Val, Block, tensorops as T
from teafacto.blocks.seq.rnu import GRU
from teafacto.blocks.seq.encdec import SimpleS... | 40.13758 | 152 | 0.5106 | 3,794 | 31,508 | 4.177385 | 0.136268 | 0.005552 | 0.00631 | 0.008833 | 0.237239 | 0.193955 | 0.157739 | 0.136917 | 0.106758 | 0.080762 | 0 | 0.01888 | 0.351117 | 31,508 | 785 | 153 | 40.13758 | 0.756322 | 0.045163 | 0 | 0.200299 | 0 | 0 | 0.032003 | 0.006011 | 0 | 0 | 0 | 0.001274 | 0.001495 | 0 | null | null | 0.008969 | 0.019432 | null | null | 0.041854 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a59fd03f298f2c856a351192d121d8a93a08c15d | 1,075 | py | Python | unittests/pyloc_tests.py | abingham/pyloc | 726e567492f70ee93545637b5c06f771801f50fa | [
"MIT"
] | 1 | 2016-05-09T14:11:35.000Z | 2016-05-09T14:11:35.000Z | unittests/pyloc_tests.py | abingham/pyloc | 726e567492f70ee93545637b5c06f771801f50fa | [
"MIT"
] | null | null | null | unittests/pyloc_tests.py | abingham/pyloc | 726e567492f70ee93545637b5c06f771801f50fa | [
"MIT"
] | null | null | null | import unittest
from pyloc.db import Results
from pyloc.util import loc
class Tests(unittest.TestCase):
def setUp(self):
pass
def tearDown(self):
pass
def test_python(self):
t1_expected = {'comment': 2, 'code': 2, 'total': 5, 'docstring': 2, 'empty': 1}
t2_expected = {'co... | 26.219512 | 87 | 0.533023 | 125 | 1,075 | 4.392 | 0.384 | 0.081967 | 0.060109 | 0.081967 | 0.17122 | 0.17122 | 0.17122 | 0.17122 | 0.116576 | 0 | 0 | 0.02981 | 0.313488 | 1,075 | 40 | 88 | 26.875 | 0.714092 | 0 | 0 | 0.166667 | 0 | 0 | 0.135814 | 0 | 0 | 0 | 0 | 0 | 0.1 | 1 | 0.166667 | false | 0.066667 | 0.1 | 0.033333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
a5a15866b53898ab3f72d63e7cd461195cd2aadf | 215 | py | Python | easydata/parsers/data.py | easydatapy/easydata | 5e76bf7fc9f368065a82ccc99fca54b17f7e91bd | [
"BSD-3-Clause"
] | 6 | 2020-09-06T19:06:01.000Z | 2020-09-09T23:19:21.000Z | easydata/parsers/data.py | sitegroove/easydata | 0e347990027b9f6cc06a1072511197f1adb50e5c | [
"BSD-3-Clause"
] | null | null | null | easydata/parsers/data.py | sitegroove/easydata | 0e347990027b9f6cc06a1072511197f1adb50e5c | [
"BSD-3-Clause"
] | 1 | 2021-07-22T17:59:20.000Z | 2021-07-22T17:59:20.000Z | from typing import Any
from easydata.parsers.base import BaseData
__all__ = ("Data",)
class Data(BaseData):
def _parse_value(
self,
value: Any,
data: Any,
):
return value
| 14.333333 | 42 | 0.6 | 25 | 215 | 4.92 | 0.64 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.311628 | 215 | 14 | 43 | 15.357143 | 0.831081 | 0 | 0 | 0 | 0 | 0 | 0.018605 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.2 | 0.1 | 0.5 | 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 |
a5a190c6a24f79ffa1183a06a7942956238c4ba8 | 2,156 | py | Python | bflib/items/containers/common.py | ChrisLR/BasicDungeonRL | b293d40bd9a0d3b7aec41b5e1d58441165997ff1 | [
"MIT"
] | 3 | 2017-10-28T11:28:38.000Z | 2018-09-12T09:47:00.000Z | bflib/items/containers/common.py | ChrisLR/BasicDungeonRL | b293d40bd9a0d3b7aec41b5e1d58441165997ff1 | [
"MIT"
] | null | null | null | bflib/items/containers/common.py | ChrisLR/BasicDungeonRL | b293d40bd9a0d3b7aec41b5e1d58441165997ff1 | [
"MIT"
] | null | null | null | from bflib import units
from bflib.items import coins, listing
from bflib.items.containers.base import Container
from bflib.keywords.items import WearLocation
from bflib.sizes import Size
@listing.register_item
class Backpack(Container):
name = "Backpack"
container_type = Container
price = coins.Gold(4)
... | 22.93617 | 49 | 0.698052 | 277 | 2,156 | 5.31769 | 0.205776 | 0.095044 | 0.090292 | 0.114053 | 0.629328 | 0.629328 | 0.577733 | 0.483367 | 0.462322 | 0.29871 | 0 | 0.025029 | 0.203154 | 2,156 | 93 | 50 | 23.182796 | 0.832363 | 0 | 0 | 0.541667 | 0 | 0 | 0.031076 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.069444 | 0 | 0.902778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a5b2912a98792423b70c3439fd00bf5b5dbbfba1 | 790 | py | Python | setup.py | nuclearpinguin/fuzzy_mcdm | 1e547658a18e6cbaecf464dc9dfc1ac9a10adf14 | [
"MIT"
] | null | null | null | setup.py | nuclearpinguin/fuzzy_mcdm | 1e547658a18e6cbaecf464dc9dfc1ac9a10adf14 | [
"MIT"
] | 1 | 2018-04-25T08:32:03.000Z | 2018-04-25T08:32:03.000Z | setup.py | nuclearpinguin/fuzzy_mcdm | 1e547658a18e6cbaecf464dc9dfc1ac9a10adf14 | [
"MIT"
] | null | null | null | from setuptools import setup
def readme():
with open('README.rst') as f:
return f.read()
setup(name='fmcdm',
version='0.1',
description='Simple implementation of fuzzy preference structures and '
'tools for fuzzy multi-criteria decision making',
long_description=readme(... | 34.347826 | 101 | 0.640506 | 84 | 790 | 5.964286 | 0.77381 | 0.05988 | 0.0998 | 0.107784 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005008 | 0.241772 | 790 | 23 | 102 | 34.347826 | 0.831386 | 0 | 0 | 0 | 0 | 0 | 0.460177 | 0.027813 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | true | 0 | 0.047619 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a5b9458aefe0c1b819fa42816c841da50bf28c2c | 761 | py | Python | dagster/lib/convert_to_bvh_blender.py | fire/kinetic-transfer-gan | 2bf5e3b29ca4744dcdce780fea2e59846550c203 | [
"BSD-2-Clause"
] | 3 | 2021-01-30T08:37:59.000Z | 2021-11-29T12:10:40.000Z | dagster/lib/convert_to_bvh_blender.py | fire/kinetic-transfer-gan | 2bf5e3b29ca4744dcdce780fea2e59846550c203 | [
"BSD-2-Clause"
] | 13 | 2021-02-05T05:54:28.000Z | 2021-06-26T21:17:15.000Z | dagster/lib/convert_to_bvh_blender.py | fire/kinetic-transfer-gan | 2bf5e3b29ca4744dcdce780fea2e59846550c203 | [
"BSD-2-Clause"
] | 1 | 2022-03-21T08:37:53.000Z | 2022-03-21T08:37:53.000Z | import sys
import bpy
argv = sys.argv
argv = argv[argv.index("--") + 1:]
path = argv[0]
bpy.ops.import_scene.gltf(filepath=path)
armature_count = 0
for i in range(len(bpy.context.scene.objects)):
element = bpy.context.scene.objects[i]
if element.type != "ARMATURE":
continue
armature_count += 1
if ... | 29.269231 | 119 | 0.649146 | 106 | 761 | 4.537736 | 0.45283 | 0.08316 | 0.12474 | 0.182952 | 0.39501 | 0.39501 | 0.39501 | 0.39501 | 0.39501 | 0.39501 | 0 | 0.013491 | 0.220762 | 761 | 25 | 120 | 30.44 | 0.797639 | 0 | 0 | 0.363636 | 0 | 0 | 0.051248 | 0 | 0 | 0 | 0 | 0 | 0.045455 | 1 | 0 | false | 0 | 0.136364 | 0 | 0.136364 | 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 |
3c00dcdef1f17594ddb0f5814db5cede300267e2 | 94,233 | py | Python | NAVI.py | GregoryBriggs/Navi | f1fe72388cd8f6a2b9458ecd80649f1b13bd4970 | [
"MIT"
] | null | null | null | NAVI.py | GregoryBriggs/Navi | f1fe72388cd8f6a2b9458ecd80649f1b13bd4970 | [
"MIT"
] | null | null | null | NAVI.py | GregoryBriggs/Navi | f1fe72388cd8f6a2b9458ecd80649f1b13bd4970 | [
"MIT"
] | null | null | null | # Imports
import os
import subprocess
from PIL import Image
import time
import datetime
import picamera as picam
from collections import defaultdict, deque, OrderedDict
import datetime
from PIL import Image
import math
import RPi.GPIO as GPIO # used for GPIO switches in state 1
import smbus as smbus ... | 41.421099 | 383 | 0.581187 | 12,814 | 94,233 | 4.154362 | 0.118698 | 0.011534 | 0.012511 | 0.012924 | 0.495341 | 0.455517 | 0.41233 | 0.39518 | 0.364579 | 0.329489 | 0 | 0.066342 | 0.325778 | 94,233 | 2,274 | 384 | 41.439314 | 0.77154 | 0 | 0 | 0.395044 | 0 | 0 | 0.023255 | 0 | 0 | 0 | 0.015132 | 0.00044 | 0 | 0 | null | null | 0 | 0.012391 | null | null | 0.011662 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
3c0203b2a001ef738743fe39dd31f85f8622393f | 1,608 | py | Python | HistoGAN/Accuracy Testing/generate_images.py | Praneet1997/weed-gan | d80dad9c8dde606ba0eebbdb4f32a65763ff5692 | [
"Apache-2.0"
] | null | null | null | HistoGAN/Accuracy Testing/generate_images.py | Praneet1997/weed-gan | d80dad9c8dde606ba0eebbdb4f32a65763ff5692 | [
"Apache-2.0"
] | null | null | null | HistoGAN/Accuracy Testing/generate_images.py | Praneet1997/weed-gan | d80dad9c8dde606ba0eebbdb4f32a65763ff5692 | [
"Apache-2.0"
] | null | null | null | import os
import argparse
from os.path import join
from itertools import product
from scipy.misc import imsave
from image_class import image_class
# Generates new images half-half
def generate_more_images(input_folder, output_folder, num_images):
# Counter for number of images
counter = 1
os.makedirs(outp... | 33.5 | 66 | 0.652985 | 199 | 1,608 | 5.040201 | 0.376884 | 0.07677 | 0.041874 | 0.035892 | 0.103689 | 0.057827 | 0 | 0 | 0 | 0 | 0 | 0.011814 | 0.26306 | 1,608 | 47 | 67 | 34.212766 | 0.834599 | 0.123756 | 0 | 0 | 1 | 0 | 0.107857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029412 | false | 0 | 0.176471 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3c052a5bc59913f4d4611594e35dd17805f2ae35 | 5,200 | py | Python | predict.py | Kingsleyandher/Keras_BASNet | d782b80d45d49aaebf0eadf3beba0089f8f80c6e | [
"MIT"
] | null | null | null | predict.py | Kingsleyandher/Keras_BASNet | d782b80d45d49aaebf0eadf3beba0089f8f80c6e | [
"MIT"
] | null | null | null | predict.py | Kingsleyandher/Keras_BASNet | d782b80d45d49aaebf0eadf3beba0089f8f80c6e | [
"MIT"
] | 1 | 2021-05-17T07:54:54.000Z | 2021-05-17T07:54:54.000Z | import colorsys
import copy
import os
import numpy as np
from PIL import Image
import cv2
from BASNET import ModelBASNet
# --------------------------------------------#
# 使用自己训练好的模型预测需要修改2个参数
# model_path和num_classes都需要修改!
# 如果出现shape不匹配
# 一定要注意训练时的model_path和num_classes数的修改
# ---------------------------------... | 39.097744 | 113 | 0.385769 | 504 | 5,200 | 3.845238 | 0.281746 | 0.065015 | 0.072239 | 0.083591 | 0.162539 | 0.087719 | 0.0516 | 0.0516 | 0 | 0 | 0 | 0.063413 | 0.263077 | 5,200 | 132 | 114 | 39.393939 | 0.442328 | 0.296154 | 0 | 0 | 0 | 0 | 0.038762 | 0.016732 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.097222 | 0 | 0.208333 | 0.027778 | 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 |
3c0c177e25222957ee5395f19118597a7b1e93b3 | 3,476 | py | Python | cnns/train/fixed_hyperparams.py | johnwlambert/dlupi-heteroscedastic-dropou | 057dd079fce7ec8833b818b77fd694c01a1adcbc | [
"MIT"
] | 39 | 2018-04-04T13:29:03.000Z | 2022-03-12T23:57:33.000Z | cnns/train/fixed_hyperparams.py | johnwlambert/dlupi-heteroscedastic-dropou | 057dd079fce7ec8833b818b77fd694c01a1adcbc | [
"MIT"
] | 5 | 2018-04-30T12:14:38.000Z | 2021-04-26T23:52:18.000Z | cnns/train/fixed_hyperparams.py | johnwlambert/dlupi-heteroscedastic-dropou | 057dd079fce7ec8833b818b77fd694c01a1adcbc | [
"MIT"
] | 10 | 2018-05-14T09:14:55.000Z | 2021-11-10T00:23:21.000Z |
# John Lambert
import argparse
def get_fixed_hyperparams(parser):
""" Hyperparameters that remain fixed across all experiments """
parser.add_argument('--pred_logvar_domain', type=bool, default=True)
parser.add_argument('--use_l2_sigma_reg', type=bool, default=True)
parser.add_argument('--dataset', t... | 60.982456 | 113 | 0.724684 | 497 | 3,476 | 4.814889 | 0.317907 | 0.150439 | 0.284162 | 0.058504 | 0.379858 | 0.321354 | 0.239031 | 0.093606 | 0.062683 | 0 | 0 | 0.030921 | 0.125432 | 3,476 | 57 | 114 | 60.982456 | 0.75625 | 0.113061 | 0 | 0 | 0 | 0 | 0.273677 | 0.163292 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022727 | false | 0 | 0.022727 | 0 | 0.068182 | 0.022727 | 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 |
3c0c303eba6f6779daec222dc2d9c4fae904ac6d | 5,452 | py | Python | flaskApp/clean.py | earthlycoder/GenrePrediction | e94098e8e4e00ad736ffa308296123d8bf19a964 | [
"MIT"
] | null | null | null | flaskApp/clean.py | earthlycoder/GenrePrediction | e94098e8e4e00ad736ffa308296123d8bf19a964 | [
"MIT"
] | null | null | null | flaskApp/clean.py | earthlycoder/GenrePrediction | e94098e8e4e00ad736ffa308296123d8bf19a964 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
# In[15]:
import re
from sklearn.feature_extraction.text import TfidfVectorizer
import pickle
import numpy as np
import lxml
import warnings
from bs4 import BeautifulSoup
from requests import get
# In[4]:
def decontracted(phrase):
# specific
phrase = re.sub(r"won't",... | 42.59375 | 1,647 | 0.524578 | 719 | 5,452 | 3.940195 | 0.385257 | 0.022944 | 0.042711 | 0.046594 | 0.304977 | 0.262972 | 0.255559 | 0.220967 | 0.220967 | 0.220967 | 0 | 0.009186 | 0.261189 | 5,452 | 127 | 1,648 | 42.929134 | 0.694141 | 0.079787 | 0 | 0.337349 | 0 | 0 | 0.235836 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.048193 | false | 0 | 0.096386 | 0 | 0.228916 | 0 | 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 |
3c0c8e8a0610e2c9ec9067ac92b39efb62ad4ae4 | 2,213 | py | Python | email_client.py | NilsSlui/PyMail | 24cd51ea36bfd4b9cbdac93f6777dbfa38c614ad | [
"MIT"
] | null | null | null | email_client.py | NilsSlui/PyMail | 24cd51ea36bfd4b9cbdac93f6777dbfa38c614ad | [
"MIT"
] | null | null | null | email_client.py | NilsSlui/PyMail | 24cd51ea36bfd4b9cbdac93f6777dbfa38c614ad | [
"MIT"
] | null | null | null | import os
import re
import ssl
import datetime
import mailparser
import imapclient
import smtplib
import json
from ping3 import ping, verbose_ping
class Authentication:
def __init__(self, imap, smtp, username, password):
self.imap = imap
self.smtp = smtp
self.username = username
se... | 32.072464 | 127 | 0.666064 | 284 | 2,213 | 5.070423 | 0.376761 | 0.066667 | 0.033333 | 0.031944 | 0.091667 | 0.056944 | 0.056944 | 0 | 0 | 0 | 0 | 0.012448 | 0.237686 | 2,213 | 69 | 128 | 32.072464 | 0.841138 | 0.139178 | 0 | 0.181818 | 0 | 0 | 0.035865 | 0.020042 | 0 | 0 | 0 | 0 | 0 | 1 | 0.109091 | false | 0.072727 | 0.163636 | 0 | 0.436364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
3c1729b416a21546e696923bcbad6d954b6ed6f5 | 405 | py | Python | home/migrations/0003_auto_20210123_0012.py | d-shaktiranjan/task_management | 188c9519dd5d9fe406ed7ce4e27dd491240302da | [
"Apache-2.0"
] | null | null | null | home/migrations/0003_auto_20210123_0012.py | d-shaktiranjan/task_management | 188c9519dd5d9fe406ed7ce4e27dd491240302da | [
"Apache-2.0"
] | null | null | null | home/migrations/0003_auto_20210123_0012.py | d-shaktiranjan/task_management | 188c9519dd5d9fe406ed7ce4e27dd491240302da | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.1.4 on 2021-01-22 18:42
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('home', '0002_auto_20210123_0010'),
]
operations = [
migrations.AlterField(
model_name='alltask',
name='task_id',
... | 21.315789 | 70 | 0.609877 | 45 | 405 | 5.355556 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105802 | 0.276543 | 405 | 18 | 71 | 22.5 | 0.716724 | 0.111111 | 0 | 0 | 1 | 0 | 0.114525 | 0.064246 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3c18152d36a0b8a547de77e0d1853b989d1d3212 | 1,394 | py | Python | main.py | rosulucian/handrolled-ml | dc4227039da20a8daaeabc7ec438398b2ff12894 | [
"MIT"
] | null | null | null | main.py | rosulucian/handrolled-ml | dc4227039da20a8daaeabc7ec438398b2ff12894 | [
"MIT"
] | null | null | null | main.py | rosulucian/handrolled-ml | dc4227039da20a8daaeabc7ec438398b2ff12894 | [
"MIT"
] | null | null | null | import os
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from models.logistic import logistic
from models.toy_shallow_nn import toy_shallow_nn
from models.neural_network import neural_network
from models.summary import summary
from utils.datasets import load_cats
cats = os.getenv('CATS')
trai... | 29.659574 | 125 | 0.721664 | 222 | 1,394 | 4.310811 | 0.36036 | 0.047022 | 0.037618 | 0.029258 | 0.133751 | 0.096134 | 0.096134 | 0.096134 | 0.096134 | 0 | 0 | 0.032473 | 0.138451 | 1,394 | 46 | 126 | 30.304348 | 0.764363 | 0.225251 | 0 | 0 | 0 | 0 | 0.041122 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.36 | 0 | 0.36 | 0.04 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
3c2c2ea375ed8a69383c4d7bbcbfab60434538c8 | 5,322 | py | Python | handlers/kbeServer/Editor/Interface/interface_class.py | iamjing66/tornaodo_sdk | 242a852d3231e5798aa357a17e5638c7dc0567b9 | [
"MIT"
] | null | null | null | handlers/kbeServer/Editor/Interface/interface_class.py | iamjing66/tornaodo_sdk | 242a852d3231e5798aa357a17e5638c7dc0567b9 | [
"MIT"
] | null | null | null | handlers/kbeServer/Editor/Interface/interface_class.py | iamjing66/tornaodo_sdk | 242a852d3231e5798aa357a17e5638c7dc0567b9 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding=utf-8
def ClassSchedule(DB, pam):
json_data = {
"code": 0,
"msg": ""
}
if pam == "":
json_data["code"] = "0"
json_data["msg"] = "false"
return json_data
classid = pam["Pam"]
# &Schedule.WID, &Schedule.Chapter, &Schedule.CourseN... | 40.318182 | 703 | 0.537956 | 704 | 5,322 | 3.9375 | 0.140625 | 0.138528 | 0.051948 | 0.048701 | 0.687951 | 0.655483 | 0.628788 | 0.605339 | 0.563853 | 0.53355 | 0 | 0.029052 | 0.262683 | 5,322 | 132 | 704 | 40.318182 | 0.67737 | 0.081924 | 0 | 0.705882 | 0 | 0.039216 | 0.2395 | 0.020897 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04902 | false | 0 | 0 | 0 | 0.137255 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3c2ed21d31e130e1d9d4c051283122c5f32207c3 | 411 | py | Python | pics/urls.py | AndrewIndeche/Gallery | 2314ea429cba89aeaf97f93c695aa4f3a1ceea74 | [
"MIT"
] | null | null | null | pics/urls.py | AndrewIndeche/Gallery | 2314ea429cba89aeaf97f93c695aa4f3a1ceea74 | [
"MIT"
] | null | null | null | pics/urls.py | AndrewIndeche/Gallery | 2314ea429cba89aeaf97f93c695aa4f3a1ceea74 | [
"MIT"
] | null | null | null | from django.shortcuts import render
from django.conf.urls import url
from . import views
from django.conf.urls.static import static
from django.conf import settings
urlpatterns=[
url(r'^$',views.index,name = 'index'),
url(r'^gallery/', views.gallery, name='gallery'),
url(r'^search/', views.search, name='se... | 31.615385 | 80 | 0.703163 | 58 | 411 | 4.965517 | 0.362069 | 0.138889 | 0.145833 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.124088 | 411 | 12 | 81 | 34.25 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0.177616 | 0.068127 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.454545 | 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 |
3c3cd0c2ab4974b1b8d61712ca0b5cb7450942e7 | 14,985 | py | Python | gaia_init.py | tdaylan/tdgu | 824aaad9e93f30cacee365d76819962885e1dad7 | [
"MIT"
] | null | null | null | gaia_init.py | tdaylan/tdgu | 824aaad9e93f30cacee365d76819962885e1dad7 | [
"MIT"
] | null | null | null | gaia_init.py | tdaylan/tdgu | 824aaad9e93f30cacee365d76819962885e1dad7 | [
"MIT"
] | null | null | null | from __init__ import *
def read_pstr(lgal, bgal):
numbpnts = lgal.size
indxpixl = empty(numbpnts, dtype=int)
for k in range(numbpnts):
indxpixl[k] = ang2pix(32., pi / 2. - deg2rad(bgal), deg2rad(lgal))
indxpixl = unique(indxpixl)
for k in range(indxpixl):
path = '/n/fink2/dfink/d... | 37.276119 | 169 | 0.590591 | 1,758 | 14,985 | 4.964164 | 0.278726 | 0.01123 | 0.008823 | 0.01524 | 0.354417 | 0.316833 | 0.297124 | 0.270654 | 0.236966 | 0.167755 | 0 | 0.042434 | 0.24985 | 14,985 | 401 | 170 | 37.369077 | 0.73392 | 0.156957 | 0 | 0.350181 | 0 | 0.00722 | 0.168427 | 0.036766 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.00361 | null | null | 0.00722 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
3c42a68c765862bf7e7985a123606173b281175b | 1,733 | py | Python | simplenet/test/build_synapses_test.py | kirkbroadhurst/simple_neural_network | 36c1f9e40093c21c809bbbad20c301716cbbf293 | [
"Apache-2.0"
] | null | null | null | simplenet/test/build_synapses_test.py | kirkbroadhurst/simple_neural_network | 36c1f9e40093c21c809bbbad20c301716cbbf293 | [
"Apache-2.0"
] | null | null | null | simplenet/test/build_synapses_test.py | kirkbroadhurst/simple_neural_network | 36c1f9e40093c21c809bbbad20c301716cbbf293 | [
"Apache-2.0"
] | null | null | null | from simplenet.lib.network import build_synapses
def assert_layer_result(layers, shape, length):
"""
Boilerplate function to leverage common testing / different shapes
:param layers: Layers parameter passed to method
:param shape: Expected resulting shape(s)
:param length: Total number of values t... | 20.630952 | 77 | 0.590883 | 230 | 1,733 | 4.326087 | 0.356522 | 0.065327 | 0.034171 | 0.046231 | 0.287437 | 0.287437 | 0.219095 | 0.219095 | 0.134673 | 0.056281 | 0 | 0.022746 | 0.315061 | 1,733 | 83 | 78 | 20.879518 | 0.815501 | 0 | 0 | 0.363636 | 0 | 0 | 0.006617 | 0 | 0 | 0 | 0 | 0 | 0.227273 | 0 | null | null | 0 | 0.022727 | null | null | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3c48f5fd8dd9f0c29dc581a2e72c6ae6d30fbcac | 154 | py | Python | 2022/s1.py | Luke-zhang-04/CCC-Junior-Problems | 9fc52296113b333b9b5151202ff67d484d5be6f0 | [
"0BSD"
] | null | null | null | 2022/s1.py | Luke-zhang-04/CCC-Junior-Problems | 9fc52296113b333b9b5151202ff67d484d5be6f0 | [
"0BSD"
] | null | null | null | 2022/s1.py | Luke-zhang-04/CCC-Junior-Problems | 9fc52296113b333b9b5151202ff67d484d5be6f0 | [
"0BSD"
] | null | null | null | #!/bin/python
num = int(input())
possibilities = 0
while num >= 0:
if num % 4 == 0:
possibilities += 1
num -= 5
print(possibilities)
| 11 | 26 | 0.558442 | 20 | 154 | 4.3 | 0.65 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055046 | 0.292208 | 154 | 13 | 27 | 11.846154 | 0.733945 | 0.077922 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3c4b5a0d7ddee2b9a09ab70b02ac80552fae4c00 | 1,283 | py | Python | src/bxcommon/messages/eth/serializers/block.py | thabaptiser/bxcommon | ee8547c9fc68c71b8acf4ce0989a344681ea273c | [
"MIT"
] | null | null | null | src/bxcommon/messages/eth/serializers/block.py | thabaptiser/bxcommon | ee8547c9fc68c71b8acf4ce0989a344681ea273c | [
"MIT"
] | null | null | null | src/bxcommon/messages/eth/serializers/block.py | thabaptiser/bxcommon | ee8547c9fc68c71b8acf4ce0989a344681ea273c | [
"MIT"
] | null | null | null | from typing import List, Dict, Any
import blxr_rlp as rlp
from bxcommon.messages.eth.serializers.block_header import BlockHeader
from bxcommon.messages.eth.serializers.transaction import Transaction
# pyre-fixme[13]: Attribute `header` is never initialized.
# pyre-fixme[13]: Attribute `transactions` is never initia... | 29.159091 | 70 | 0.640686 | 134 | 1,283 | 6.059701 | 0.343284 | 0.029557 | 0.04064 | 0.073892 | 0.17734 | 0.093596 | 0.093596 | 0 | 0 | 0 | 0 | 0.006224 | 0.248636 | 1,283 | 43 | 71 | 29.837209 | 0.8361 | 0.176929 | 0 | 0 | 0 | 0 | 0.064078 | 0 | 0 | 0 | 0 | 0.023256 | 0 | 1 | 0.035714 | false | 0 | 0.142857 | 0 | 0.392857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
3c4ca677b15de4755ad675c7f1eece694452bf80 | 4,406 | py | Python | tests/test_io_SequenceWriter.py | dmccloskey/smartPeakPy | 51085fe963eed1fe174438cd30135cd0bd71700f | [
"MIT"
] | null | null | null | tests/test_io_SequenceWriter.py | dmccloskey/smartPeakPy | 51085fe963eed1fe174438cd30135cd0bd71700f | [
"MIT"
] | null | null | null | tests/test_io_SequenceWriter.py | dmccloskey/smartPeakPy | 51085fe963eed1fe174438cd30135cd0bd71700f | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from smartPeak.io.SequenceWriter import SequenceWriter
from smartPeak.io.FileReaderOpenMS import FileReaderOpenMS
from . import data_dir
from smartPeak.core.RawDataHandler import RawDataHandler
from smartPeak.core.SequenceHandler import SequenceHandler
import copy
class TestSequenceWriter():
... | 41.17757 | 87 | 0.613709 | 422 | 4,406 | 6.097156 | 0.21327 | 0.076176 | 0.103381 | 0.081617 | 0.653712 | 0.632724 | 0.607851 | 0.607851 | 0.607851 | 0.607851 | 0 | 0.061924 | 0.285293 | 4,406 | 107 | 88 | 41.17757 | 0.75516 | 0.027916 | 0 | 0.666667 | 0 | 0 | 0.223573 | 0.127222 | 0 | 0 | 0 | 0 | 0.149425 | 1 | 0.022989 | false | 0 | 0.068966 | 0 | 0.103448 | 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 |
3c4fb6974e2fe30e4f6114d992f272f9d78ba158 | 1,171 | py | Python | MovieDialogueAnalysis/UnicodeToURL.py | ecjoseph42/toastystats | bd8fba7601bd4a11759bec7c826406fca67563c2 | [
"MIT"
] | 27 | 2019-07-28T03:33:04.000Z | 2022-03-30T18:56:14.000Z | MovieDialogueAnalysis/UnicodeToURL.py | ecjoseph42/toastystats | bd8fba7601bd4a11759bec7c826406fca67563c2 | [
"MIT"
] | null | null | null | MovieDialogueAnalysis/UnicodeToURL.py | ecjoseph42/toastystats | bd8fba7601bd4a11759bec7c826406fca67563c2 | [
"MIT"
] | 6 | 2019-08-02T21:41:53.000Z | 2022-02-08T22:15:13.000Z | import urlparse, urllib
def fixurl(url):
# turn string into unicode
if not isinstance(url,unicode):
url = url.decode('utf8')
# parse it
parsed = urlparse.urlsplit(url)
# divide the netloc further
userpass,at,hostport = parsed.netloc.rpartition('@')
user,colon1,pass_ = userpass.par... | 32.527778 | 76 | 0.64731 | 143 | 1,171 | 5.272727 | 0.405594 | 0.132626 | 0.067639 | 0.095491 | 0.079576 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02 | 0.188728 | 1,171 | 35 | 77 | 33.457143 | 0.773684 | 0.109308 | 0 | 0 | 0 | 0 | 0.055072 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0.166667 | 0.041667 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
3c5a0df8d28860ec8a9813bae196afe3977aaa47 | 5,922 | py | Python | MSC/changedetection.py | ACDC-paper-double-review/ACDC | bf44a691d3860eb35731c0ce41f606188f233b1a | [
"MIT"
] | null | null | null | MSC/changedetection.py | ACDC-paper-double-review/ACDC | bf44a691d3860eb35731c0ce41f606188f233b1a | [
"MIT"
] | null | null | null | MSC/changedetection.py | ACDC-paper-double-review/ACDC | bf44a691d3860eb35731c0ce41f606188f233b1a | [
"MIT"
] | null | null | null | from properties import Properties
import math, numpy as np
from scipy.stats import beta, binom
from decimal import Decimal
import sys, random, time
class ChangeDetection(object):
def __init__(self, gamma, sensitivity, maxWindowSize):
self.gamma = gamma
self.sensitivity = sensitivity
self.maxWindowSize = maxWi... | 34.034483 | 121 | 0.67055 | 783 | 5,922 | 5.03576 | 0.195402 | 0.042607 | 0.055795 | 0.025361 | 0.682222 | 0.650266 | 0.616789 | 0.575704 | 0.566066 | 0.566066 | 0 | 0.018487 | 0.205336 | 5,922 | 173 | 122 | 34.231214 | 0.81938 | 0.184735 | 0 | 0.647059 | 0 | 0 | 0.110936 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.04902 | null | null | 0.019608 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
3c5c5f3263b622984a1bfe4ec00ea68db90a2fbb | 4,689 | py | Python | fm_agent/mbedfm.py | saheerb/mbed-fastmodel-agent | ff123ac6227cf036e2124666c5c9b313f1eed03c | [
"Apache-2.0"
] | 1 | 2020-09-07T23:14:23.000Z | 2020-09-07T23:14:23.000Z | fm_agent/mbedfm.py | saheerb/mbed-fastmodel-agent | ff123ac6227cf036e2124666c5c9b313f1eed03c | [
"Apache-2.0"
] | null | null | null | fm_agent/mbedfm.py | saheerb/mbed-fastmodel-agent | ff123ac6227cf036e2124666c5c9b313f1eed03c | [
"Apache-2.0"
] | 1 | 2018-08-10T09:11:16.000Z | 2018-08-10T09:11:16.000Z | #!/usr/bin/env python
"""
mbed SDK
Copyright (c) 2011-2018 ARM Limited
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable ... | 34.733333 | 102 | 0.627426 | 600 | 4,689 | 4.681667 | 0.326667 | 0.03204 | 0.027768 | 0.02136 | 0.161979 | 0.139195 | 0.096832 | 0.096832 | 0.096832 | 0.096832 | 0 | 0.007613 | 0.2717 | 4,689 | 134 | 103 | 34.992537 | 0.814934 | 0.155257 | 0 | 0.153846 | 0 | 0 | 0.114046 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0.076923 | 0.131868 | 0 | 0.274725 | 0.120879 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
3c656aa1bd7f4a91dd703d2b9efc29efeb17cfc7 | 368 | py | Python | Class 1/Chap02/blocks.py | gratienceacademy/python_basics | 102a740d9c9fae45a3947b14a204f7bae33af813 | [
"Apache-2.0"
] | null | null | null | Class 1/Chap02/blocks.py | gratienceacademy/python_basics | 102a740d9c9fae45a3947b14a204f7bae33af813 | [
"Apache-2.0"
] | null | null | null | Class 1/Chap02/blocks.py | gratienceacademy/python_basics | 102a740d9c9fae45a3947b14a204f7bae33af813 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# Copyright 2009-2017 BHG http://bw.org/
x = 42
y = 73
# Compares the vallue of x and y
if x < y:
print('x < y: x is {} and y is {}'.format(x, y))
elif x > y:
print("x is greater than y")
else:
print("x and y are equal")
if x > y:
print('x > y: x is {} and y is {}'.format(x, y)... | 18.4 | 52 | 0.565217 | 73 | 368 | 2.849315 | 0.452055 | 0.067308 | 0.134615 | 0.115385 | 0.269231 | 0.269231 | 0.269231 | 0.269231 | 0.269231 | 0.269231 | 0 | 0.054945 | 0.258152 | 368 | 20 | 53 | 18.4 | 0.70696 | 0.247283 | 0 | 0 | 0 | 0 | 0.378182 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.461538 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
3c7e02087fa45cf5d6d02459b7c8145368c73f03 | 578 | py | Python | CNN/transfer learning/my_data.py | showmonki/learn_notes | 8a416e0294170e242c40d16370e8f42ec9ae8582 | [
"MIT"
] | null | null | null | CNN/transfer learning/my_data.py | showmonki/learn_notes | 8a416e0294170e242c40d16370e8f42ec9ae8582 | [
"MIT"
] | null | null | null | CNN/transfer learning/my_data.py | showmonki/learn_notes | 8a416e0294170e242c40d16370e8f42ec9ae8582 | [
"MIT"
] | null | null | null | import numpy as np
def load_train_data(dim):
from tensorflow.keras.datasets import mnist
(x_train, y_train), (x_test, y_test) = mnist.load_data()
x_train_convert = [convert_pic(data,dim) for data in x_train]
x_test_convert = [convert_pic(data,dim) for data in x_test]
return (np.array(x_train_convert),y_train),(... | 26.272727 | 77 | 0.768166 | 102 | 578 | 4.078431 | 0.303922 | 0.084135 | 0.122596 | 0.122596 | 0.163462 | 0.163462 | 0.163462 | 0.163462 | 0.163462 | 0 | 0 | 0.009843 | 0.121107 | 578 | 22 | 78 | 26.272727 | 0.809055 | 0 | 0 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.266667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
3c83eca5cc2115ca8a4f9877f59ead1ad895502f | 416 | py | Python | inspire_eu/migrations/0003_typo_fixed_added_baseinspireeumodel.py | xusy2k/django-inspire-eu | 8bdde9022f5f89ae11bc2d25b3f13cfb2ebac94d | [
"MIT"
] | 6 | 2021-02-26T10:35:37.000Z | 2021-07-02T14:28:24.000Z | inspire_eu/migrations/0003_typo_fixed_added_baseinspireeumodel.py | xusy2k/django-inspire-eu | 8bdde9022f5f89ae11bc2d25b3f13cfb2ebac94d | [
"MIT"
] | 1 | 2021-03-17T18:04:20.000Z | 2021-03-19T05:17:40.000Z | inspire_eu/migrations/0003_typo_fixed_added_baseinspireeumodel.py | xusy2k/django-inspire-eu | 8bdde9022f5f89ae11bc2d25b3f13cfb2ebac94d | [
"MIT"
] | null | null | null | # Generated by Django 2.2.19 on 2021-03-17 17:54
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('inspire_eu', '0002_inspire_eu_core'),
]
operations = [
migrations.RenameField(
model_name='cadastralparcel',
old_name='nati... | 21.894737 | 52 | 0.637019 | 44 | 416 | 5.772727 | 0.727273 | 0.070866 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065359 | 0.264423 | 416 | 18 | 53 | 23.111111 | 0.764706 | 0.110577 | 0 | 0 | 1 | 0 | 0.271739 | 0.149457 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3c83f84cd6ee04cc44cf96bb482ff66f2966da7e | 840 | py | Python | ip_to_country.py | gabhijit/ipgiri | b7bf323010d1922adc24e2c2e2bd6ebe9dd902e0 | [
"MIT"
] | 2 | 2016-06-06T16:56:45.000Z | 2019-01-17T09:01:46.000Z | ip_to_country.py | gabhijit/ipgiri | b7bf323010d1922adc24e2c2e2bd6ebe9dd902e0 | [
"MIT"
] | null | null | null | ip_to_country.py | gabhijit/ipgiri | b7bf323010d1922adc24e2c2e2bd6ebe9dd902e0 | [
"MIT"
] | 1 | 2021-02-13T09:21:45.000Z | 2021-02-13T09:21:45.000Z | #
# Refer to LICENSE file and README file for licensing information.
#
import gc
from mrtdump import MRTDumper
from asinformation import ASInformation
from ipv4_routing_table import RouteTable
from mrttypes import PeerIndexTable, RIBEntry
a = ASInformation('20150701.as-org2info.txt')
r = RouteTable()
dumper = MRTDump... | 27.096774 | 66 | 0.702381 | 112 | 840 | 5.151786 | 0.544643 | 0.083189 | 0.083189 | 0.058925 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065185 | 0.196429 | 840 | 30 | 67 | 28 | 0.78963 | 0.132143 | 0 | 0 | 0 | 0 | 0.100968 | 0.033195 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.238095 | null | null | 0.095238 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
3c8a7d6baf18a5208dd13ec5cdb17d31101d2eee | 1,152 | py | Python | day08.py | jlucangelio/adventofcode-2019 | 7c0e4e2c4f70e78f8c338bfe39216c4d32904aa8 | [
"MIT"
] | null | null | null | day08.py | jlucangelio/adventofcode-2019 | 7c0e4e2c4f70e78f8c338bfe39216c4d32904aa8 | [
"MIT"
] | null | null | null | day08.py | jlucangelio/adventofcode-2019 | 7c0e4e2c4f70e78f8c338bfe39216c4d32904aa8 | [
"MIT"
] | null | null | null | digits = [int(d) for d in open("day08.input").read()]
#print digits
print len(digits) / (25*6)
w = 25
h = 6
layer_len = w * h
nlayers = len(digits) / layer_len
print nlayers
#image = [[[None for _ in range(w)] for _ in range(h)] for _ in range(nlayers)]
#print image
counts = {}
counts[0] = {}
counts[1] = {}
counts... | 18.885246 | 79 | 0.613715 | 199 | 1,152 | 3.472362 | 0.175879 | 0.121563 | 0.072359 | 0.047757 | 0.273517 | 0.212735 | 0.146165 | 0.146165 | 0.098408 | 0.098408 | 0 | 0.031077 | 0.217882 | 1,152 | 60 | 80 | 19.2 | 0.735849 | 0.12066 | 0 | 0.166667 | 0 | 0 | 0.012884 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
3c8b246a70050a99309995be0a741a56278a7ba2 | 511 | py | Python | lec01/ex04.py | SOOIN-KIM/lab-python | 4b85dc11c76e2d4f89be0d01864f9f61f3c6e2cc | [
"MIT"
] | null | null | null | lec01/ex04.py | SOOIN-KIM/lab-python | 4b85dc11c76e2d4f89be0d01864f9f61f3c6e2cc | [
"MIT"
] | null | null | null | lec01/ex04.py | SOOIN-KIM/lab-python | 4b85dc11c76e2d4f89be0d01864f9f61f3c6e2cc | [
"MIT"
] | null | null | null | '''
연산자(operator)
- 할당(assignment): =
- 산술 연산 : +,-,*,**,/,//,%
- 복합 할당 : +=, -=, *=, /=, ...
- 논리 연산 : and, or ,not
- 비교 연산 : >, >=, <, <=, ==, !=
- identity 연산 : is, is not(id() 함수의 리턴값이 같은지 다른지)
'''
x = 1 # 연산자 오른쪽의 값을 연산자 왼쪽의 변수에 저장(할당)
# 1 = x
print(2**3) #2 x 2 x 2
print(10/3)
print(10//3) # 정수 나눗셈 몫
print(10%3)... | 15.029412 | 49 | 0.475538 | 100 | 511 | 2.43 | 0.41 | 0.123457 | 0.098765 | 0.082305 | 0.106996 | 0 | 0 | 0 | 0 | 0 | 0 | 0.089005 | 0.252446 | 511 | 33 | 50 | 15.484848 | 0.54712 | 0.561644 | 0 | 0.266667 | 0 | 0 | 0.019139 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.733333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
3c8e7eadad67983241147518880ffe0286aa0c4b | 2,617 | py | Python | src/test/tinc/tincrepo/mpp/gpdb/tests/storage/basic/partition/manual/TEST.py | lintzc/GPDB | b48c8b97da18f495c10065d0853db87960aebae2 | [
"PostgreSQL",
"Apache-2.0"
] | 1 | 2017-09-15T06:09:56.000Z | 2017-09-15T06:09:56.000Z | src/test/tinc/tincrepo/mpp/gpdb/tests/storage/basic/partition/manual/TEST.py | guofengrichard/gpdb | 29bdd6ef38d8d9b9cb04ca31d44e279eb9f640d3 | [
"PostgreSQL",
"Apache-2.0"
] | null | null | null | src/test/tinc/tincrepo/mpp/gpdb/tests/storage/basic/partition/manual/TEST.py | guofengrichard/gpdb | 29bdd6ef38d8d9b9cb04ca31d44e279eb9f640d3 | [
"PostgreSQL",
"Apache-2.0"
] | 1 | 2018-12-04T09:13:57.000Z | 2018-12-04T09:13:57.000Z | #!/usr/bin/env python
"""
Copyright (C) 2004-2015 Pivotal Software, Inc. All rights reserved.
This program and the accompanying materials are made available under
the terms of the 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 co... | 30.788235 | 76 | 0.661062 | 348 | 2,617 | 4.922414 | 0.479885 | 0.035026 | 0.039696 | 0.018681 | 0.101576 | 0.101576 | 0.101576 | 0.101576 | 0 | 0 | 0 | 0.014552 | 0.159725 | 2,617 | 84 | 77 | 31.154762 | 0.764438 | 0.144822 | 0 | 0.108108 | 0 | 0 | 0.274181 | 0.07997 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.081081 | 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 |
3c991f7b2b9140239fccc073659d1d56ecb0d481 | 1,964 | py | Python | molecule/default/tests/test_installation.py | Linkurious/ansible-role-account-management | 1b119eac1b1605afa863ac785b62ed8c00eb1945 | [
"MIT"
] | null | null | null | molecule/default/tests/test_installation.py | Linkurious/ansible-role-account-management | 1b119eac1b1605afa863ac785b62ed8c00eb1945 | [
"MIT"
] | null | null | null | molecule/default/tests/test_installation.py | Linkurious/ansible-role-account-management | 1b119eac1b1605afa863ac785b62ed8c00eb1945 | [
"MIT"
] | 2 | 2020-04-07T13:24:47.000Z | 2022-02-21T08:50:12.000Z | """
Role tests
"""
import os
import pytest
from testinfra.utils.ansible_runner import AnsibleRunner
testinfra_hosts = AnsibleRunner(
os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all')
@pytest.mark.parametrize('name,gid', [
('my-group', None),
('my-group2', 1500),
('my-user3', 1503),
])
def test_... | 23.95122 | 62 | 0.651222 | 277 | 1,964 | 4.505415 | 0.238267 | 0.152244 | 0.123397 | 0.076923 | 0.446314 | 0.330128 | 0.290064 | 0.238782 | 0.185897 | 0.120192 | 0 | 0.026762 | 0.219959 | 1,964 | 81 | 63 | 24.246914 | 0.787859 | 0.108961 | 0 | 0.130435 | 0 | 0 | 0.143452 | 0.040476 | 0 | 0 | 0 | 0 | 0.543478 | 1 | 0.086957 | false | 0 | 0.065217 | 0 | 0.152174 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3c9b1582b07a482e6bf9d739fcc9245f5659c30d | 700 | py | Python | rocket_connect/instance/admin.py | crashbr/rocket.connect | e24914403d0717748501bc3a66a358429372adad | [
"MIT"
] | 23 | 2021-04-15T23:19:51.000Z | 2022-02-21T19:58:31.000Z | rocket_connect/instance/admin.py | crashbr/rocket.connect | e24914403d0717748501bc3a66a358429372adad | [
"MIT"
] | 30 | 2021-04-14T22:04:20.000Z | 2022-03-28T11:22:08.000Z | rocket_connect/instance/admin.py | crashbr/rocket.connect | e24914403d0717748501bc3a66a358429372adad | [
"MIT"
] | 5 | 2021-04-16T14:50:32.000Z | 2022-03-11T23:50:59.000Z | # -*- coding: utf-8 -*-
from django.contrib import admin
from .models import Connector, Server
@admin.register(Server)
class ServerAdmin(admin.ModelAdmin):
list_display = (
"id",
"name",
"enabled",
"url",
"admin_user",
"admin_password",
"bot_user",
... | 23.333333 | 79 | 0.592857 | 68 | 700 | 5.926471 | 0.5 | 0.104218 | 0.094293 | 0.129032 | 0.158809 | 0.158809 | 0 | 0 | 0 | 0 | 0 | 0.001898 | 0.247143 | 700 | 29 | 80 | 24.137931 | 0.762808 | 0.03 | 0 | 0 | 0 | 0 | 0.267356 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.086957 | 0.086957 | 0 | 0.391304 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
3c9c7d95d27f59eaf955f07ac8fb0ad58b21a3d8 | 1,393 | py | Python | openmmtools/data/benzene-toluene-implicit/generate-molecules.py | sroet/openmmtools | ce5a38599dc10459a8eda7284b21fa458f9a804d | [
"MIT"
] | 135 | 2015-05-11T18:55:32.000Z | 2022-02-28T14:24:17.000Z | openmmtools/data/benzene-toluene-implicit/generate-molecules.py | sroet/openmmtools | ce5a38599dc10459a8eda7284b21fa458f9a804d | [
"MIT"
] | 442 | 2015-01-01T22:58:10.000Z | 2022-03-30T14:22:16.000Z | openmmtools/data/benzene-toluene-implicit/generate-molecules.py | sroet/openmmtools | ce5a38599dc10459a8eda7284b21fa458f9a804d | [
"MIT"
] | 56 | 2015-08-25T15:58:56.000Z | 2022-03-15T09:31:38.000Z | #!/usr/bin/env python
"""
Generate molecules for test system using OpenEye tools.
"""
molecules = { 'BEN' : 'benzene',
'TOL' : 'toluene' }
from openeye import oechem
from openeye import oeomega
from openeye import oeiupac
from openeye import oequacpac
# Create molecules.
for resname in molecules:
... | 24.438596 | 77 | 0.694903 | 145 | 1,393 | 6.668966 | 0.475862 | 0.072389 | 0.070321 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003591 | 0.200287 | 1,393 | 56 | 78 | 24.875 | 0.864452 | 0.162958 | 0 | 0 | 1 | 0 | 0.033943 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.121212 | 0 | 0.121212 | 0.060606 | 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 |
b1b9e9379a91b6bc36e906df8feb0b29c722cee4 | 709 | py | Python | FapgansControleBot/Controllers/message_controller.py | bufo24/Fapganscontrolebot | d2a1f002de620a769985d5b4ea23afbab61d336c | [
"MIT"
] | null | null | null | FapgansControleBot/Controllers/message_controller.py | bufo24/Fapganscontrolebot | d2a1f002de620a769985d5b4ea23afbab61d336c | [
"MIT"
] | null | null | null | FapgansControleBot/Controllers/message_controller.py | bufo24/Fapganscontrolebot | d2a1f002de620a769985d5b4ea23afbab61d336c | [
"MIT"
] | null | null | null | from telegram import Message, Update
from telegram.ext import Filters, MessageHandler, CallbackContext
from FapgansControleBot.Repository.i_unit_of_work import IUnitOfWork
from config import BotConfig
def is_fapgans(message: Message) -> bool:
if message:
if message.sticker:
if message.sticker... | 29.541667 | 78 | 0.712271 | 84 | 709 | 5.77381 | 0.440476 | 0.049485 | 0.082474 | 0.057732 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.222849 | 709 | 23 | 79 | 30.826087 | 0.880218 | 0 | 0 | 0 | 0 | 0 | 0.009873 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.235294 | 0 | 0.588235 | 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 | 0 | 0 | 1 | 0 | 0 | 1 |
b1c30621b8b03ddcca5825107360db061033dde7 | 1,072 | py | Python | cctbx/eltbx/tests/tst_attenuation_coefficient.py | rimmartin/cctbx_project | 644090f9432d9afc22cfb542fc3ab78ca8e15e5d | [
"BSD-3-Clause-LBNL"
] | null | null | null | cctbx/eltbx/tests/tst_attenuation_coefficient.py | rimmartin/cctbx_project | 644090f9432d9afc22cfb542fc3ab78ca8e15e5d | [
"BSD-3-Clause-LBNL"
] | null | null | null | cctbx/eltbx/tests/tst_attenuation_coefficient.py | rimmartin/cctbx_project | 644090f9432d9afc22cfb542fc3ab78ca8e15e5d | [
"BSD-3-Clause-LBNL"
] | null | null | null | from __future__ import division
def tst_for_z(z):
from cctbx.eltbx import attenuation_coefficient
eps = 1e-7
# Get the table
table = attenuation_coefficient.get_table(z)
# Get list of energies and coefficients
energy = table.energy()[1:-1]
mu_rho = table.mu_rho()[1:-1]
mu_en_rho = table.mu_en_rho()[... | 25.52381 | 134 | 0.641791 | 179 | 1,072 | 3.620112 | 0.374302 | 0.135802 | 0.04321 | 0.024691 | 0.179012 | 0.179012 | 0 | 0 | 0 | 0 | 0 | 0.065476 | 0.216418 | 1,072 | 41 | 135 | 26.146341 | 0.705952 | 0.225746 | 0 | 0.076923 | 0 | 0 | 0.012136 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 0 | null | null | 0 | 0.115385 | null | null | 0.038462 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b1c363db2304706d04207c85b2507dde1d065e62 | 11,457 | py | Python | mongodb.py | skeeved/ganglia-mongodb-plugin | 382b3bb5510b7c4a8ecc32385bf0dfb77245f8b7 | [
"Apache-2.0"
] | null | null | null | mongodb.py | skeeved/ganglia-mongodb-plugin | 382b3bb5510b7c4a8ecc32385bf0dfb77245f8b7 | [
"Apache-2.0"
] | null | null | null | mongodb.py | skeeved/ganglia-mongodb-plugin | 382b3bb5510b7c4a8ecc32385bf0dfb77245f8b7 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
"""
"""
import io
from os.path import expanduser
from subprocess import Popen, PIPE
import json
from bson import json_util
import re
from time import time
import logging
import logging.handlers
import socket
__author__ = 'Adam Lanier (skeeved@skeeved.org)'
__version__ = '0.0.1'
__copyright__ = 'C... | 33.79646 | 105 | 0.486602 | 1,034 | 11,457 | 5.115087 | 0.182785 | 0.062394 | 0.037814 | 0.042352 | 0.485536 | 0.407828 | 0.308943 | 0.28928 | 0.272263 | 0.272263 | 0 | 0.003093 | 0.379157 | 11,457 | 338 | 106 | 33.89645 | 0.740475 | 0.014314 | 0 | 0.383838 | 0 | 0 | 0.282492 | 0.056844 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.040404 | null | null | 0.030303 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b1cc4e986d6f21953e856a2b8ee2b9a021fee477 | 2,066 | py | Python | teeth_overlord/agent_client/base.py | rackerlabs/teeth-overlord | d76f6a03853d964b556aa1aa0f7011b4d1a6f208 | [
"Apache-2.0"
] | null | null | null | teeth_overlord/agent_client/base.py | rackerlabs/teeth-overlord | d76f6a03853d964b556aa1aa0f7011b4d1a6f208 | [
"Apache-2.0"
] | null | null | null | teeth_overlord/agent_client/base.py | rackerlabs/teeth-overlord | d76f6a03853d964b556aa1aa0f7011b4d1a6f208 | [
"Apache-2.0"
] | null | null | null | """
Copyright 2013 Rackspace, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software... | 29.514286 | 72 | 0.697483 | 269 | 2,066 | 5.275093 | 0.453532 | 0.042283 | 0.084567 | 0.144468 | 0.242424 | 0.085976 | 0.085976 | 0.085976 | 0 | 0 | 0 | 0.005597 | 0.221684 | 2,066 | 69 | 73 | 29.942029 | 0.876866 | 0.49516 | 0 | 0.428571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.107143 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b1ceb252174a80b9a86d832e6039e132b23cc3a2 | 3,512 | py | Python | demo/demo/settings.py | caravancoop/rest-auth-toolkit | 425bf293987f7128d9538f27a5eca7e47ba84217 | [
"MIT"
] | 1 | 2019-12-23T21:51:06.000Z | 2019-12-23T21:51:06.000Z | demo/demo/settings.py | caravancoop/rest-framework-auth-toolkit | 425bf293987f7128d9538f27a5eca7e47ba84217 | [
"MIT"
] | 127 | 2017-10-27T15:20:01.000Z | 2022-03-07T04:09:15.000Z | demo/demo/settings.py | caravancoop/rest-auth-toolkit | 425bf293987f7128d9538f27a5eca7e47ba84217 | [
"MIT"
] | 2 | 2018-01-03T16:22:51.000Z | 2019-12-23T21:51:54.000Z | """Django settings for demo project."""
import os
from django.core.management.utils import get_random_secret_key
import dj_database_url
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/1.11/... | 27.653543 | 78 | 0.704727 | 372 | 3,512 | 6.384409 | 0.432796 | 0.065684 | 0.027368 | 0.035368 | 0.074947 | 0.061474 | 0.059789 | 0 | 0 | 0 | 0 | 0.006498 | 0.167426 | 3,512 | 126 | 79 | 27.873016 | 0.805746 | 0.052677 | 0 | 0.066667 | 0 | 0 | 0.565833 | 0.459777 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.033333 | 0.033333 | 0 | 0.033333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b1d395d1bddf9c246dde02fb209762b746d9bbae | 478 | py | Python | aasaan/notify/migrations/0004_auto_20180513_1026.py | deepakkt/aasaan | 77ef72e785e6ae562f51ae64fa9d85faf860c315 | [
"MIT"
] | null | null | null | aasaan/notify/migrations/0004_auto_20180513_1026.py | deepakkt/aasaan | 77ef72e785e6ae562f51ae64fa9d85faf860c315 | [
"MIT"
] | 15 | 2020-06-05T19:26:26.000Z | 2022-03-11T23:33:53.000Z | aasaan/notify/migrations/0004_auto_20180513_1026.py | deepakkt/aasaan | 77ef72e785e6ae562f51ae64fa9d85faf860c315 | [
"MIT"
] | null | null | null | # Generated by Django 2.0.4 on 2018-05-13 04:56
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('notify', '0003_notifier_attachments'),
]
operations = [
migrations.AlterField(
model_name='notifier',
name='sending_... | 25.157895 | 133 | 0.617155 | 49 | 478 | 5.918367 | 0.795918 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058011 | 0.242678 | 478 | 18 | 134 | 26.555556 | 0.743094 | 0.094142 | 0 | 0 | 1 | 0 | 0.213457 | 0.058005 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b1ded4ee1dabd331a3c0be339ff7510af88ea3d9 | 461 | py | Python | app/app/controllers/api.py | chenqing24/mug-skeleton | 8ec6715e980aaef92f69e559f8c00ef400cb36cb | [
"MIT"
] | 8 | 2019-11-01T08:20:55.000Z | 2022-03-07T11:21:33.000Z | app/app/controllers/api.py | chenqing24/mug-skeleton | 8ec6715e980aaef92f69e559f8c00ef400cb36cb | [
"MIT"
] | 1 | 2021-06-02T00:46:59.000Z | 2021-06-02T00:46:59.000Z | app/app/controllers/api.py | chenqing24/mug-skeleton | 8ec6715e980aaef92f69e559f8c00ef400cb36cb | [
"MIT"
] | 2 | 2020-01-19T09:11:29.000Z | 2020-09-18T09:35:44.000Z | #!/usr/bin/python
# -*- coding: UTF-8 -*-
# another: Jeff.Chen
# "/api"映射的访问接口
from bottle import Bottle, jinja2_view
from ..settings import *
###################
# 初始化app,加载中间件
###################
api_app = Bottle()
# 加载log
api_app.install(log_to_logger)
@api_app.get('/')
@jinja2_view('index.html')
@cache.cache... | 15.366667 | 44 | 0.605206 | 60 | 461 | 4.333333 | 0.7 | 0.092308 | 0.069231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007653 | 0.149675 | 461 | 29 | 45 | 15.896552 | 0.655612 | 0.199566 | 0 | 0 | 0 | 0 | 0.126154 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0.076923 | 0.153846 | 0 | 0.307692 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
b1e3870d8c0a06d1e95503af6ae71edfa557bfbc | 1,027 | py | Python | words/words/management/commands/refresh.py | StevenKangWei/words | 3e60e5f370da83fd48fa20e0573fe062e45a84c9 | [
"MIT"
] | 6 | 2019-07-31T07:29:27.000Z | 2021-03-22T08:10:44.000Z | words/words/management/commands/refresh.py | StevenBaby/words | 3e60e5f370da83fd48fa20e0573fe062e45a84c9 | [
"MIT"
] | 4 | 2021-06-04T21:39:23.000Z | 2021-09-22T17:46:07.000Z | words/words/management/commands/refresh.py | StevenKangWei/words | 3e60e5f370da83fd48fa20e0573fe062e45a84c9 | [
"MIT"
] | null | null | null | # encoding=utf-8
from __future__ import print_function, unicode_literals, division
from django.core.management.base import BaseCommand
import six
import logging
from django.utils import timezone
from words import functions
from words import models
logger = logging.getLogger("words")
class Command(BaseCommand):
... | 33.129032 | 106 | 0.674781 | 131 | 1,027 | 5.160305 | 0.549618 | 0.081361 | 0.044379 | 0.06213 | 0.065089 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017677 | 0.228822 | 1,027 | 30 | 107 | 34.233333 | 0.835859 | 0.013632 | 0 | 0 | 0 | 0 | 0.092977 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.304348 | 0 | 0.434783 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
b1e4f6a086f6fce091fbb6570c6e41b8c2a4dddd | 338 | py | Python | pyxel/_dll_path.py | TrietChau/asd | 49d08b49246f1720cb1ac1134d5f34391a5c74f2 | [
"MIT"
] | 1 | 2019-10-18T01:54:10.000Z | 2019-10-18T01:54:10.000Z | pyxel/_dll_path.py | TCadillac/Pyxel | 49d08b49246f1720cb1ac1134d5f34391a5c74f2 | [
"MIT"
] | null | null | null | pyxel/_dll_path.py | TCadillac/Pyxel | 49d08b49246f1720cb1ac1134d5f34391a5c74f2 | [
"MIT"
] | null | null | null | import os
import platform
if platform.system() == "Windows":
lib_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "core", "bin")
win_dir = "win64" if platform.architecture()[0] == "64bit" else "win32"
dll_path = os.path.join(lib_dir, win_dir)
os.environ["PATH"] = dll_path + os.pathsep + o... | 37.555556 | 85 | 0.671598 | 51 | 338 | 4.254902 | 0.490196 | 0.110599 | 0.092166 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024306 | 0.147929 | 338 | 8 | 86 | 42.25 | 0.729167 | 0 | 0 | 0 | 0 | 0 | 0.109467 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b1e682d62cafad797ba91ddf973ac8137eea3196 | 2,340 | py | Python | features/steps/triangles_steps.py | cloose/ray-tracer-challenge | 5e9dd56fb67c5cba47172986a963fc22a8cbcaa2 | [
"MIT"
] | null | null | null | features/steps/triangles_steps.py | cloose/ray-tracer-challenge | 5e9dd56fb67c5cba47172986a963fc22a8cbcaa2 | [
"MIT"
] | null | null | null | features/steps/triangles_steps.py | cloose/ray-tracer-challenge | 5e9dd56fb67c5cba47172986a963fc22a8cbcaa2 | [
"MIT"
] | null | null | null | from behave import given, when, then # pylint: disable=no-name-in-module
from asserts import assert_tuple
from core import point, vector
from shapes import Triangle
@given(u't <- triangle(p1, p2, p3)')
def step_create_triangle_t(context):
context.t = Triangle(context.p1, context.p2, context.p3)
@given(
u't... | 30.789474 | 113 | 0.657265 | 406 | 2,340 | 3.554187 | 0.162562 | 0.063063 | 0.063063 | 0.095634 | 0.493416 | 0.462924 | 0.435897 | 0.234927 | 0.234927 | 0.178794 | 0 | 0.041817 | 0.172222 | 2,340 | 75 | 114 | 31.2 | 0.703149 | 0.014103 | 0 | 0 | 0 | 0.081633 | 0.189154 | 0.009544 | 0 | 0 | 0 | 0 | 0.306122 | 1 | 0.265306 | false | 0 | 0.081633 | 0 | 0.346939 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b1ee0ef1843107318d8c55fc5f6b63abf6dc5022 | 825 | py | Python | src/titiler/core/titiler/core/resources/responses.py | obaid585/rastertile | 18904ffd8e95907cae7b9839bfc9f7d902182ac2 | [
"MIT"
] | 288 | 2019-12-05T18:19:51.000Z | 2022-03-31T16:43:18.000Z | src/titiler/core/titiler/core/resources/responses.py | obaid585/rastertile | 18904ffd8e95907cae7b9839bfc9f7d902182ac2 | [
"MIT"
] | 228 | 2020-03-26T13:48:05.000Z | 2022-03-31T20:16:55.000Z | src/titiler/core/titiler/core/resources/responses.py | obaid585/rastertile | 18904ffd8e95907cae7b9839bfc9f7d902182ac2 | [
"MIT"
] | 73 | 2020-04-29T13:49:35.000Z | 2022-03-25T13:09:16.000Z | """Common response models."""
from typing import Any
import simplejson as json
from starlette import responses
class XMLResponse(responses.Response):
"""XML Response"""
media_type = "application/xml"
class JSONResponse(responses.JSONResponse):
"""Custom JSON Response."""
def render(self, conten... | 21.710526 | 118 | 0.626667 | 86 | 825 | 5.953488 | 0.604651 | 0.050781 | 0.066406 | 0.109375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001642 | 0.261818 | 825 | 37 | 119 | 22.297297 | 0.83908 | 0.242424 | 0 | 0 | 0 | 0 | 0.072165 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.176471 | 0 | 0.588235 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
5906a973fe07458f4e3ce42fbace66c7245f33a5 | 1,655 | py | Python | test_project/test_app/tests/factories.py | johnchuks/YAK-server | 910af81a7b23e88585479131886c627e33163de1 | [
"MIT"
] | 15 | 2015-10-10T07:56:23.000Z | 2021-07-26T14:39:17.000Z | test_project/test_app/tests/factories.py | johnchuks/YAK-server | 910af81a7b23e88585479131886c627e33163de1 | [
"MIT"
] | 26 | 2015-01-06T00:43:50.000Z | 2018-10-29T03:12:09.000Z | test_project/test_app/tests/factories.py | johnchuks/YAK-server | 910af81a7b23e88585479131886c627e33163de1 | [
"MIT"
] | 8 | 2015-09-28T14:47:52.000Z | 2018-02-09T18:53:53.000Z | import factory
import datetime
from test_project.test_app.models import Post
from django.utils.timezone import now
from oauth2_provider.models import AccessToken, Application
from django.contrib.auth import get_user_model
from yak.rest_social_network.models import Comment
User = get_user_model()
class UserFactory(f... | 29.035088 | 76 | 0.687613 | 187 | 1,655 | 5.957219 | 0.44385 | 0.032316 | 0.08079 | 0.091562 | 0.157092 | 0.052065 | 0 | 0 | 0 | 0 | 0 | 0.003106 | 0.221752 | 1,655 | 56 | 77 | 29.553571 | 0.861801 | 0 | 0 | 0.116279 | 0 | 0 | 0.079154 | 0.012689 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046512 | false | 0.023256 | 0.162791 | 0 | 0.55814 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
590d6216cd9ec0a153de4045ed1e8c050f421a93 | 370 | py | Python | Decisions.py | SpilledMilkCOM/IHatePython | 93688c877287bbca8eed24d322ca51e1e4090ea1 | [
"MIT"
] | null | null | null | Decisions.py | SpilledMilkCOM/IHatePython | 93688c877287bbca8eed24d322ca51e1e4090ea1 | [
"MIT"
] | null | null | null | Decisions.py | SpilledMilkCOM/IHatePython | 93688c877287bbca8eed24d322ca51e1e4090ea1 | [
"MIT"
] | null | null | null | """The Decisions module contains the command parsing logic."""
validCommands = ["h", "w"]
def processCommand(command: str):
# NOTE: that type hinting is still used above
"""Processes the gamer's input.
(below is the Google docstrings example)
Args:
command (str): The command to process
... | 24.666667 | 62 | 0.640541 | 45 | 370 | 5.266667 | 0.777778 | 0.084388 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.248649 | 370 | 15 | 63 | 24.666667 | 0.852518 | 0.597297 | 0 | 0 | 0 | 0 | 0.144068 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.333333 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
591068eabdea83283d15128f50339370bf14f7be | 5,489 | py | Python | Titanic_Dataset.py | scipsycho/kaggle | 9471d3814a84612c43e3970f4ab278d158b07620 | [
"MIT"
] | null | null | null | Titanic_Dataset.py | scipsycho/kaggle | 9471d3814a84612c43e3970f4ab278d158b07620 | [
"MIT"
] | null | null | null | Titanic_Dataset.py | scipsycho/kaggle | 9471d3814a84612c43e3970f4ab278d158b07620 | [
"MIT"
] | null | null | null | import numpy as np
import pandas as pd
from matplotlib import pyplot as plt
%matplotlib inline
from sklearn.pipeline import Pipeline
from sklearn.preprocessing import Imputer
from sklearn.base import BaseEstimator,TransformerMixin
from sklearn.preprocessing import StandardScaler
from sklearn.pipeline import FeatureUnio... | 34.740506 | 98 | 0.655493 | 714 | 5,489 | 4.852941 | 0.204482 | 0.047619 | 0.076768 | 0.079365 | 0.271284 | 0.159307 | 0.139394 | 0.11746 | 0.104185 | 0.047908 | 0 | 0.003831 | 0.239206 | 5,489 | 157 | 99 | 34.961783 | 0.82591 | 0.04755 | 0 | 0.168 | 0 | 0 | 0.035831 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.032 | 0.144 | 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 |
5911705df168de9f886d535a2fb48bfb955cdded | 2,468 | py | Python | fundamentals/rectangle.py | optas/geo_tool | 286722e759e7b75c52a77827574aa66bbef858c6 | [
"MIT"
] | 6 | 2019-05-21T15:11:55.000Z | 2021-04-01T18:04:10.000Z | fundamentals/rectangle.py | optas/geo_tool | 286722e759e7b75c52a77827574aa66bbef858c6 | [
"MIT"
] | null | null | null | fundamentals/rectangle.py | optas/geo_tool | 286722e759e7b75c52a77827574aa66bbef858c6 | [
"MIT"
] | 2 | 2019-06-03T03:35:52.000Z | 2021-02-12T01:36:24.000Z | '''
Created on December 13, 2016
@author: Panos Achlioptas and Lin Shao
@contact: pachlioptas @ gmail.com
@copyright: You are free to use, change, or redistribute this code in any way you want for non-commercial purposes.
'''
from .. utils import linalg_utils as utils
l2_norm = utils.l2_norm
class Rectangle(object)... | 32.906667 | 117 | 0.600891 | 326 | 2,468 | 4.46319 | 0.371166 | 0.030928 | 0.035739 | 0.051546 | 0.127835 | 0.060481 | 0.060481 | 0.060481 | 0.060481 | 0 | 0 | 0.012557 | 0.290113 | 2,468 | 74 | 118 | 33.351351 | 0.817922 | 0.317261 | 0 | 0.210526 | 0 | 0 | 0.030051 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.026316 | 0.026316 | 0.473684 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
591cfcb0aab78295fa60f43f012a6e0f06cad0df | 733 | py | Python | Main/List_Python_1.py | tamalbag117/Python_Practice | 52d008682b9828043617b789a8ebf441048cd0de | [
"MIT"
] | null | null | null | Main/List_Python_1.py | tamalbag117/Python_Practice | 52d008682b9828043617b789a8ebf441048cd0de | [
"MIT"
] | null | null | null | Main/List_Python_1.py | tamalbag117/Python_Practice | 52d008682b9828043617b789a8ebf441048cd0de | [
"MIT"
] | null | null | null | # List in Python
# from typing import Tuple
name = ["Anirban", "Rangan", "Miko", "UK NK", "Lucifer"]
print(name)
# mixed List
mixing1 = ["ISHITA ROY", 143, 0.99, 'E']
print(mixing1)
print(mixing1[2])
# list shorting
num1 = [2, 5, 78, 3, 88, 23, 1, 94, 33, 21, 5, 3, 67, 27]
print(num1)
num2 = num1.copy()
num1.sort()
pr... | 17.878049 | 57 | 0.648022 | 130 | 733 | 3.653846 | 0.523077 | 0.056842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12987 | 0.159618 | 733 | 40 | 58 | 18.325 | 0.641234 | 0.197817 | 0 | 0.1 | 0 | 0 | 0.069085 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.433333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
591fe4549a7a373f37c8f13826aab8b631ac89b4 | 8,561 | py | Python | fileinfoupdater.py | ChengWu-NJ/ebpf-bcc-apps | f0df930ec4692b45e9ebb2d921bb834310e6bd8e | [
"Apache-2.0"
] | null | null | null | fileinfoupdater.py | ChengWu-NJ/ebpf-bcc-apps | f0df930ec4692b45e9ebb2d921bb834310e6bd8e | [
"Apache-2.0"
] | null | null | null | fileinfoupdater.py | ChengWu-NJ/ebpf-bcc-apps | f0df930ec4692b45e9ebb2d921bb834310e6bd8e | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# Licensed under the Apache License, Version 2.0 (the "License")
# fileinfoupdater ---- a tool to trace file content changes in an appointed path.
# version 1.0
# Cheng Wu August 30, 2019
from __future__ import print_function
from bcc import BPF
import argparse
import datetime
import os
import sys
... | 30.794964 | 125 | 0.592104 | 1,184 | 8,561 | 4.085304 | 0.240709 | 0.044656 | 0.029771 | 0.020674 | 0.323754 | 0.293364 | 0.228241 | 0.228241 | 0.228241 | 0.21749 | 0 | 0.029783 | 0.278355 | 8,561 | 277 | 126 | 30.906137 | 0.753156 | 0.044271 | 0 | 0.321429 | 0 | 0.017857 | 0.780906 | 0.159731 | 0 | 0 | 0 | 0 | 0 | 1 | 0.008929 | false | 0 | 0.026786 | 0 | 0.102679 | 0.049107 | 0 | 0 | 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 |
592426352d6ffa598957001cf9063554dd24339e | 416 | py | Python | ocflcore/persistence/storage/__init__.py | inveniosoftware/pyocfl | d60abf04ba3a791114ad3788407b07337c880309 | [
"MIT"
] | null | null | null | ocflcore/persistence/storage/__init__.py | inveniosoftware/pyocfl | d60abf04ba3a791114ad3788407b07337c880309 | [
"MIT"
] | null | null | null | ocflcore/persistence/storage/__init__.py | inveniosoftware/pyocfl | d60abf04ba3a791114ad3788407b07337c880309 | [
"MIT"
] | 2 | 2021-12-14T16:04:49.000Z | 2021-12-14T16:21:32.000Z | # -*- coding: utf-8 -*-
#
# Copyright (C) 2021 CERN.
# Copyright (C) 2021 Data Futures.
#
# OCFL Core is free software; you can redistribute it and/or modify it under the
# terms of the MIT License; see LICENSE file for more details.
"""Storage abstraction layer for the OCFL repository."""
from .base import Storage
f... | 23.111111 | 80 | 0.711538 | 56 | 416 | 5.214286 | 0.75 | 0.068493 | 0.09589 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026549 | 0.185096 | 416 | 17 | 81 | 24.470588 | 0.834808 | 0.651442 | 0 | 0 | 0 | 0 | 0.180451 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
592adf77a26b24af08ee629b1402869969d8a80d | 3,734 | py | Python | src/openvr/color_cube_actor.py | risa2000/pyopenvr | 6c153f986d46b61a3e136c144011695841b56502 | [
"BSD-3-Clause"
] | 204 | 2016-05-12T09:14:55.000Z | 2022-03-22T14:37:11.000Z | src/openvr/color_cube_actor.py | risa2000/pyopenvr | 6c153f986d46b61a3e136c144011695841b56502 | [
"BSD-3-Clause"
] | 85 | 2016-05-11T16:49:39.000Z | 2022-01-17T10:28:18.000Z | src/openvr/color_cube_actor.py | risa2000/pyopenvr | 6c153f986d46b61a3e136c144011695841b56502 | [
"BSD-3-Clause"
] | 47 | 2016-06-02T09:48:39.000Z | 2022-03-10T13:30:02.000Z | #!/bin/env python
# file color_cube_actor.py
from textwrap import dedent
from OpenGL.GL import * # @UnusedWildImport # this comment squelches an IDE warning
from OpenGL.GL.shaders import compileShader, compileProgram
from openvr.glframework import shader_string
"""
Color cube for use in "hello world" openvr apps
... | 31.644068 | 94 | 0.477772 | 458 | 3,734 | 3.748908 | 0.266376 | 0.039604 | 0.033197 | 0.020967 | 0.121142 | 0.102504 | 0.102504 | 0.085032 | 0.023879 | 0.013395 | 0 | 0.093126 | 0.39609 | 3,734 | 117 | 95 | 31.91453 | 0.668293 | 0.05624 | 0 | 0.1625 | 0 | 0.1 | 0.659058 | 0.030729 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.05 | 0 | 0.1125 | 0 | 0 | 0 | 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 |
592ef04bc1f7208da0b23ae6f53a4ea5b5ee831e | 6,767 | py | Python | patches/multiworld.py | muffinjets/LADXR | bbd82a5b7bac015561bb6a4cfe1c5fa017f827f5 | [
"MIT"
] | 13 | 2020-09-13T16:50:28.000Z | 2022-03-22T20:49:54.000Z | patches/multiworld.py | muffinjets/LADXR | bbd82a5b7bac015561bb6a4cfe1c5fa017f827f5 | [
"MIT"
] | 10 | 2020-06-27T12:34:38.000Z | 2022-01-03T12:15:42.000Z | patches/multiworld.py | muffinjets/LADXR | bbd82a5b7bac015561bb6a4cfe1c5fa017f827f5 | [
"MIT"
] | 18 | 2020-05-29T17:48:04.000Z | 2022-02-08T03:36:08.000Z | from assembler import ASM
from roomEditor import RoomEditor, ObjectHorizontal, ObjectVertical, Object
import entityData
def addMultiworldShop(rom, this_player, player_count):
# Make a copy of the shop into GrandpaUlrira house
re = RoomEditor(rom, 0x2A9)
re.objects = [
ObjectHorizontal(1,1, 0x00, 8... | 21.899676 | 98 | 0.552239 | 1,013 | 6,767 | 3.679171 | 0.321816 | 0.019318 | 0.013147 | 0.008049 | 0.073249 | 0.018782 | 0.007513 | 0.007513 | 0.007513 | 0 | 0 | 0.092366 | 0.336043 | 6,767 | 308 | 99 | 21.970779 | 0.737147 | 0.025565 | 0 | 0.302239 | 0 | 0.026119 | 0.842289 | 0.013054 | 0 | 0 | 0.019733 | 0 | 0 | 1 | 0.003731 | false | 0 | 0.011194 | 0 | 0.014925 | 0 | 0 | 0 | 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 |
594460b8974472781609b9f434f9f31eeb16fccd | 2,886 | py | Python | scripts/tacotron_save_spec.py | gioannides/OpenSeq2Seq | 9e13da51eda2d239539cad6a56f8db2bf11492d6 | [
"Apache-2.0"
] | 1,459 | 2017-09-11T17:58:19.000Z | 2022-03-27T06:42:04.000Z | scripts/tacotron_save_spec.py | gioannides/OpenSeq2Seq | 9e13da51eda2d239539cad6a56f8db2bf11492d6 | [
"Apache-2.0"
] | 307 | 2017-09-14T05:52:16.000Z | 2021-06-05T16:08:53.000Z | scripts/tacotron_save_spec.py | gioannides/OpenSeq2Seq | 9e13da51eda2d239539cad6a56f8db2bf11492d6 | [
"Apache-2.0"
] | 422 | 2017-09-11T19:13:21.000Z | 2022-03-31T23:43:10.000Z | %matplotlib inline
# Replace the first box of Interactive_Infer_example.ipynb with this
import IPython
import librosa
import numpy as np
import scipy.io.wavfile as wave
import tensorflow as tf
import matplotlib.pyplot as plt
from open_seq2seq.utils.utils import deco_print, get_base_config, check_logdir,\
... | 35.195122 | 122 | 0.72869 | 427 | 2,886 | 4.667447 | 0.388759 | 0.058705 | 0.060211 | 0.030105 | 0.04014 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022351 | 0.162855 | 2,886 | 81 | 123 | 35.62963 | 0.802566 | 0.112266 | 0 | 0 | 0 | 0 | 0.062231 | 0.03092 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.137931 | null | null | 0.068966 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
594663a0711f458bd97181c40d53dfe745d558a9 | 438 | py | Python | pytgcalls/types/input_stream/audio_parameters.py | fadhil-riyanto/radiovc | fe02a01ce10b93775fce8c569f6062d71b07b4d4 | [
"MIT"
] | null | null | null | pytgcalls/types/input_stream/audio_parameters.py | fadhil-riyanto/radiovc | fe02a01ce10b93775fce8c569f6062d71b07b4d4 | [
"MIT"
] | null | null | null | pytgcalls/types/input_stream/audio_parameters.py | fadhil-riyanto/radiovc | fe02a01ce10b93775fce8c569f6062d71b07b4d4 | [
"MIT"
] | null | null | null | from ..py_object import PyObject
class AudioParameters(PyObject):
"""Audio parameters of the stream
Attributes:
bitrate (``int``):
Audio bitrate
Parameters:
bitrate (``int``):
Audio bitrate (0 - 48000 max
allowed by Telegram)
"""
def __init__(... | 19.909091 | 65 | 0.559361 | 44 | 438 | 5.454545 | 0.590909 | 0.166667 | 0.125 | 0.183333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073427 | 0.347032 | 438 | 21 | 66 | 20.857143 | 0.765734 | 0.43379 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.428571 | 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 |
5946f11cb88e919cf6be70a008a7385cff40fb3e | 1,751 | py | Python | data_integration/incremental_processing/processed_files.py | vitorbaptista/data-integration | bc7deb64ca847122fa57cff2d1648c95e8a81748 | [
"MIT"
] | null | null | null | data_integration/incremental_processing/processed_files.py | vitorbaptista/data-integration | bc7deb64ca847122fa57cff2d1648c95e8a81748 | [
"MIT"
] | null | null | null | data_integration/incremental_processing/processed_files.py | vitorbaptista/data-integration | bc7deb64ca847122fa57cff2d1648c95e8a81748 | [
"MIT"
] | null | null | null | """Functions for keeping track whether an input file has already been 'processed' """
import datetime
import mara_db.config
import mara_db.dbs
import mara_db.postgresql
import sqlalchemy
from sqlalchemy.ext.declarative import declarative_base
Base = declarative_base()
class ProcessedFile(Base):
"""A local file... | 31.836364 | 119 | 0.728155 | 244 | 1,751 | 5.032787 | 0.331967 | 0.065147 | 0.029316 | 0.068404 | 0.363192 | 0.278502 | 0.21987 | 0.21987 | 0.21987 | 0.21987 | 0 | 0.000694 | 0.177613 | 1,751 | 54 | 120 | 32.425926 | 0.852083 | 0.267276 | 0 | 0.08 | 0 | 0 | 0.247525 | 0.076733 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0.24 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
5949fa14b160c85af8434256d874ba96e415b96b | 725 | py | Python | 01Array/216CombinationSumIII.py | zhaoxinlu/leetcode-algorithms | f5e1c94c99628e7fb04ba158f686a55a8093e933 | [
"MIT"
] | null | null | null | 01Array/216CombinationSumIII.py | zhaoxinlu/leetcode-algorithms | f5e1c94c99628e7fb04ba158f686a55a8093e933 | [
"MIT"
] | null | null | null | 01Array/216CombinationSumIII.py | zhaoxinlu/leetcode-algorithms | f5e1c94c99628e7fb04ba158f686a55a8093e933 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Editor: Zhao Xinlu
School: BUPT
Date: 2018-04-03
算法思想:组合之和III--递归回溯
"""
class Solution(object):
def combinationSum3(self, k, n):
"""
:type k: int
:type n: int
:rtype: List[List[int]]
"""
result = []
self.combinationSum3DFS(k, n, 1, ... | 24.166667 | 63 | 0.513103 | 92 | 725 | 3.956522 | 0.521739 | 0.016484 | 0.032967 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.049689 | 0.333793 | 725 | 30 | 64 | 24.166667 | 0.703934 | 0.028966 | 0 | 0 | 0 | 0 | 0.014842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
594b0afabe5580c047372024a9c290f6e4f6395c | 759 | py | Python | py/server.py | mabotech/mabo.task | 96752a5ae94349a46e3b6f9369cc0933d5e37be0 | [
"MIT"
] | null | null | null | py/server.py | mabotech/mabo.task | 96752a5ae94349a46e3b6f9369cc0933d5e37be0 | [
"MIT"
] | null | null | null | py/server.py | mabotech/mabo.task | 96752a5ae94349a46e3b6f9369cc0933d5e37be0 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""task server"""
import nsq
import ssl
import tornado.options
def handler(msg):
""" msg handler"""
print msg.body
return True
def main():
"""main"""
tornado.options.parse_command_line()
reader = nsq.Reader(topic='test', channel='pynsq',... | 18.975 | 78 | 0.516469 | 80 | 759 | 4.6125 | 0.675 | 0.075881 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04321 | 0.359684 | 759 | 40 | 79 | 18.975 | 0.716049 | 0.027668 | 0 | 0 | 0 | 0 | 0.063584 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.166667 | null | null | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
594bf7c6a9b026634b3eb740e2769a1dea01ef6f | 5,281 | py | Python | tockloader/app.py | 1c3t3a/tockloader | 864fd03fc456c7e4f5fe88f88715ada9dca9f095 | [
"MIT"
] | null | null | null | tockloader/app.py | 1c3t3a/tockloader | 864fd03fc456c7e4f5fe88f88715ada9dca9f095 | [
"MIT"
] | null | null | null | tockloader/app.py | 1c3t3a/tockloader | 864fd03fc456c7e4f5fe88f88715ada9dca9f095 | [
"MIT"
] | null | null | null | import struct
import textwrap
class TabApp:
'''
Representation of a Tock app for a specific board from a TAB file. This is
different from a TAB, since a TAB can include compiled binaries for a range
of architectures, or compiled for various scenarios, which may not be
applicable for a particular board.
A TabApp... | 32.598765 | 100 | 0.666351 | 832 | 5,281 | 4.137019 | 0.264423 | 0.039221 | 0.020337 | 0.029053 | 0.119407 | 0.106624 | 0.082801 | 0.017432 | 0 | 0 | 0 | 0.02526 | 0.197879 | 5,281 | 161 | 101 | 32.801242 | 0.787299 | 0.439311 | 0 | 0.115942 | 0 | 0 | 0.203396 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217391 | false | 0 | 0.028986 | 0.014493 | 0.405797 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
3ca439926027eb46da902090660b3be9d052f388 | 1,348 | py | Python | confluent_kafka/ConsumerAuth.py | pengfei99/KafkaPyClient | b18b361aedec9b58eef27c1d6f97346a64a1f154 | [
"Apache-2.0"
] | null | null | null | confluent_kafka/ConsumerAuth.py | pengfei99/KafkaPyClient | b18b361aedec9b58eef27c1d6f97346a64a1f154 | [
"Apache-2.0"
] | null | null | null | confluent_kafka/ConsumerAuth.py | pengfei99/KafkaPyClient | b18b361aedec9b58eef27c1d6f97346a64a1f154 | [
"Apache-2.0"
] | null | null | null | from confluent_kafka import Consumer, KafkaError
KAFKA_BROKER_URL = 'localhost:9092'
KAFKA_CONSUMER_SESSION_TIMEOUT = 10000
KAFKA_QUEUED_MAX_MESSAGE_KB = 2000000
GROUP_ID="bob-group"
LOGIN="bob"
PWD="bob-secret"
def main():
subscribe_topics = ["test-topic"]
print('Starting consumer on topic ' + str(subscribe_... | 34.564103 | 117 | 0.597181 | 148 | 1,348 | 5.202703 | 0.560811 | 0.054545 | 0.036364 | 0.07013 | 0.05974 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016815 | 0.25 | 1,348 | 38 | 118 | 35.473684 | 0.744807 | 0 | 0 | 0.058824 | 0 | 0 | 0.263353 | 0.047478 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029412 | false | 0.058824 | 0.029412 | 0 | 0.088235 | 0.147059 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
3ca805edd32f2e7585dc8a5b2b75f6dca1c63fc5 | 913 | py | Python | python/lib/sendMail.py | yangkechuan/wiki | 734ffbd71e82a9e0cb33194d670d327adb7cfd62 | [
"Apache-2.0"
] | null | null | null | python/lib/sendMail.py | yangkechuan/wiki | 734ffbd71e82a9e0cb33194d670d327adb7cfd62 | [
"Apache-2.0"
] | null | null | null | python/lib/sendMail.py | yangkechuan/wiki | 734ffbd71e82a9e0cb33194d670d327adb7cfd62 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*-coding:UTF-8
import smtplib
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
author = "夜微凉"
"""
1.用户名和密码根据自己情况去输入
2.可以发送附件,抄送邮件
"""
usr = "*********"
password = "*********"
to = "*********"
# _cc = "*********"
msg = MIMEMultipart()
msg["Subject... | 17.226415 | 76 | 0.60241 | 117 | 913 | 4.632479 | 0.598291 | 0.01476 | 0.04797 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019557 | 0.159912 | 913 | 52 | 77 | 17.557692 | 0.687093 | 0.278204 | 0 | 0 | 0 | 0 | 0.229983 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0.086957 | 0.130435 | 0 | 0.173913 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
3cb70f788a9cafc756dcbf77e94ab3e96509aada | 1,662 | py | Python | accounts/admin.py | cliqet/djangodesign | be8e4580ddf237d96ab8ca970571e7c88c8edfa2 | [
"MIT"
] | null | null | null | accounts/admin.py | cliqet/djangodesign | be8e4580ddf237d96ab8ca970571e7c88c8edfa2 | [
"MIT"
] | 7 | 2021-03-30T13:42:54.000Z | 2022-01-13T02:52:35.000Z | accounts/admin.py | cliqet/djangodesign | be8e4580ddf237d96ab8ca970571e7c88c8edfa2 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import AuthorProfile
import csv
from django.http import HttpResponse
from django.utils.safestring import mark_safe
THUMBNAIL_WIDTH = 100
THUMBNAIL_HEIGHT = 100
# this class will be used to export queryset for different models as CSV
class ExportCsvMixin:
def export_a... | 33.918367 | 104 | 0.683514 | 197 | 1,662 | 5.558376 | 0.441624 | 0.022831 | 0.040183 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006015 | 0.199759 | 1,662 | 48 | 105 | 34.625 | 0.817293 | 0.042118 | 0 | 0 | 0 | 0 | 0.198113 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054054 | false | 0 | 0.135135 | 0.027027 | 0.540541 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.