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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3794c5b3b90d8589cbdbe563d83c34b486378458 | 592 | py | Python | blender/arm/logicnode/object/LN_get_object_property.py | niacdoial/armory | 3f9b633fbf772017c576a3f77695a6c28d9956e1 | [
"Zlib"
] | null | null | null | blender/arm/logicnode/object/LN_get_object_property.py | niacdoial/armory | 3f9b633fbf772017c576a3f77695a6c28d9956e1 | [
"Zlib"
] | null | null | null | blender/arm/logicnode/object/LN_get_object_property.py | niacdoial/armory | 3f9b633fbf772017c576a3f77695a6c28d9956e1 | [
"Zlib"
] | null | null | null | from arm.logicnode.arm_nodes import *
class GetPropertyNode(ArmLogicTreeNode):
"""Returns the value of the given object property.
@seeNode Set Object Property"""
bl_idname = 'LNGetPropertyNode'
bl_label = 'Get Object Property'
arm_version = 1
arm_section = 'props'
def init(self, context):... | 32.888889 | 55 | 0.692568 | 64 | 592 | 6.265625 | 0.578125 | 0.069825 | 0.05985 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002101 | 0.195946 | 592 | 17 | 56 | 34.823529 | 0.840336 | 0.130068 | 0 | 0 | 0 | 0 | 0.267327 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.083333 | 0 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
379d29fc0271f1fcde31a4ebcd904c9bd41ccfe9 | 1,097 | py | Python | demo/squad_seq2seq_predict.py | iamatulsingh/QnA-web-api | 4db0388248ce5714eaa6bc518ff0b40bb5eb9cf8 | [
"MIT"
] | null | null | null | demo/squad_seq2seq_predict.py | iamatulsingh/QnA-web-api | 4db0388248ce5714eaa6bc518ff0b40bb5eb9cf8 | [
"MIT"
] | null | null | null | demo/squad_seq2seq_predict.py | iamatulsingh/QnA-web-api | 4db0388248ce5714eaa6bc518ff0b40bb5eb9cf8 | [
"MIT"
] | null | null | null | import sys
sys.path.append('..')
from keras_question_and_answering_system.library.seq2seq import Seq2SeqQA
from keras_question_and_answering_system.library.utility.squad import SquADDataSet
def main():
qa = Seq2SeqQA()
qa.load_model(model_dir_path='./models')
data_set = SquADDataSet(data_path='./data/SQu... | 34.28125 | 82 | 0.621696 | 137 | 1,097 | 4.773723 | 0.408759 | 0.04893 | 0.055046 | 0.06422 | 0.321101 | 0.321101 | 0.220183 | 0.091743 | 0 | 0 | 0 | 0.01934 | 0.198724 | 1,097 | 31 | 83 | 35.387097 | 0.724687 | 0.446673 | 0 | 0 | 0 | 0 | 0.153457 | 0.094435 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.307692 | 0 | 0.384615 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
37a457803d04d4921cefe7f050bb42d735fd90bc | 1,121 | py | Python | tests/cli/test_cli_check.py | Clinical-Genomics/genotype | 25ed71ec69de604cd6331ffc02c8c7c886d33b24 | [
"MIT"
] | 5 | 2017-05-31T01:42:52.000Z | 2021-05-11T09:42:48.000Z | tests/cli/test_cli_check.py | Clinical-Genomics/genotype | 25ed71ec69de604cd6331ffc02c8c7c886d33b24 | [
"MIT"
] | 32 | 2017-10-30T14:43:52.000Z | 2022-01-18T11:58:47.000Z | tests/cli/test_cli_check.py | Clinical-Genomics/genotype | 25ed71ec69de604cd6331ffc02c8c7c886d33b24 | [
"MIT"
] | 2 | 2017-09-27T13:03:41.000Z | 2021-03-08T00:35:56.000Z | """Tests for the delete CLI function"""
import logging
from alchy import Manager
from click.testing import CliRunner
from genotype.cli.match_cmd import check_cmd
from genotype.store.models import Analysis, Sample
def test_match_no_args(cli_runner: CliRunner, sequence_ctx: dict):
# GIVEN a database with a sampl... | 31.138889 | 74 | 0.739518 | 166 | 1,121 | 4.855422 | 0.421687 | 0.044665 | 0.029777 | 0.064516 | 0.404467 | 0.404467 | 0.188586 | 0.188586 | 0.104218 | 0 | 0 | 0.004376 | 0.184657 | 1,121 | 35 | 75 | 32.028571 | 0.877462 | 0.297948 | 0 | 0 | 0 | 0 | 0.037419 | 0 | 0 | 0 | 0 | 0 | 0.3125 | 1 | 0.125 | false | 0 | 0.3125 | 0 | 0.4375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
37b5dc82379c3e44b4a2f5d1c6fe589edbf326f8 | 3,608 | py | Python | gc_apps/worldmap_connect/models.py | IQSS/geoconnect | 09c91be7ffbc04fbfa9850f6b740277d971ac8a7 | [
"Apache-2.0"
] | 6 | 2015-10-28T15:35:04.000Z | 2020-08-20T10:18:33.000Z | gc_apps/worldmap_connect/models.py | IQSS/geoconnect | 09c91be7ffbc04fbfa9850f6b740277d971ac8a7 | [
"Apache-2.0"
] | 50 | 2015-01-05T15:09:00.000Z | 2021-06-30T04:11:36.000Z | gc_apps/worldmap_connect/models.py | IQSS/geoconnect | 09c91be7ffbc04fbfa9850f6b740277d971ac8a7 | [
"Apache-2.0"
] | 2 | 2017-02-28T02:18:49.000Z | 2017-07-14T02:40:43.000Z | from __future__ import absolute_import
from django.db import models
from jsonfield import JSONField
from gc_apps.core.models import TimeStampedModel
from gc_apps.worldmap_connect.jointarget_formatter import JoinTargetFormatter
class JoinTargetInformation(TimeStampedModel):
"""
Store information retrieved f... | 32.214286 | 92 | 0.711752 | 451 | 3,608 | 5.365854 | 0.290466 | 0.077273 | 0.099174 | 0.112397 | 0.462397 | 0.346694 | 0.239669 | 0.236364 | 0.236364 | 0.236364 | 0 | 0.003153 | 0.20898 | 3,608 | 111 | 93 | 32.504505 | 0.844779 | 0.125554 | 0 | 0.227273 | 0 | 0 | 0.012965 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.227273 | false | 0 | 0.113636 | 0.045455 | 0.659091 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
37b823a190f4c4f9d9c8f190734ba686abe13a8c | 1,693 | py | Python | time_reg.py | vaibhav-k3/Kaggle-Road-Accidents-Analysis-and-prediction | 2ddcb42bf886bc965666a60eddff817750dcdab3 | [
"MIT"
] | 1 | 2020-10-07T04:25:09.000Z | 2020-10-07T04:25:09.000Z | time_reg.py | vaibhav-k3/Kaggle-Road-Accidents-Analysis-and-prediction | 2ddcb42bf886bc965666a60eddff817750dcdab3 | [
"MIT"
] | null | null | null | time_reg.py | vaibhav-k3/Kaggle-Road-Accidents-Analysis-and-prediction | 2ddcb42bf886bc965666a60eddff817750dcdab3 | [
"MIT"
] | 1 | 2020-10-07T04:25:30.000Z | 2020-10-07T04:25:30.000Z | import pandas as pd
import numpy as np
from sklearn.linear_model import LinearRegression
from sklearn.model_selection import train_test_split
from sklearn.preprocessing import LabelEncoder,OneHotEncoder
data = pd.read_csv('Prepared data v1.csv')
data =data.drop('Unnamed: 0',axis=1)
le1 = LabelEncoder()
le2 ... | 28.694915 | 96 | 0.637921 | 272 | 1,693 | 3.834559 | 0.275735 | 0.114094 | 0.122723 | 0.184084 | 0.310642 | 0.145733 | 0 | 0 | 0 | 0 | 0 | 0.037681 | 0.184879 | 1,693 | 58 | 97 | 29.189655 | 0.718116 | 0.027171 | 0 | 0 | 0 | 0 | 0.1569 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.116279 | 0 | 0.116279 | 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 |
37bba250394c4b914a6022a0ad358c65734713fa | 342 | py | Python | migrations/versions/e215d4d60b3e_new3.py | syth0le/async_cookeat | 0cecdd44c064be6fe19c0d0ae8342d7baf5a9bb8 | [
"CC0-1.0"
] | null | null | null | migrations/versions/e215d4d60b3e_new3.py | syth0le/async_cookeat | 0cecdd44c064be6fe19c0d0ae8342d7baf5a9bb8 | [
"CC0-1.0"
] | null | null | null | migrations/versions/e215d4d60b3e_new3.py | syth0le/async_cookeat | 0cecdd44c064be6fe19c0d0ae8342d7baf5a9bb8 | [
"CC0-1.0"
] | null | null | null | """new3
Revision ID: e215d4d60b3e
Revises: 6b97eab40e6f
Create Date: 2021-08-23 15:22:10.838845
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'e215d4d60b3e'
down_revision = '6b97eab40e6f'
branch_labels = None
depends_on = None
def upgrade():
pass
def ... | 13.68 | 40 | 0.736842 | 45 | 342 | 5.533333 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166078 | 0.172515 | 342 | 24 | 41 | 14.25 | 0.713781 | 0.388889 | 0 | 0.2 | 0 | 0 | 0.119403 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.2 | 0.2 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
37c4f729a8c0137690f6b79336d7904d08aef14c | 6,402 | py | Python | lib/logic.py | JandroGC/curso_micropython | c03e0101d3b05b12d27d0cb24bc5c45b862fba0e | [
"MIT"
] | null | null | null | lib/logic.py | JandroGC/curso_micropython | c03e0101d3b05b12d27d0cb24bc5c45b862fba0e | [
"MIT"
] | null | null | null | lib/logic.py | JandroGC/curso_micropython | c03e0101d3b05b12d27d0cb24bc5c45b862fba0e | [
"MIT"
] | null | null | null | # Archivo logic, contiene las clases necesarias
# para utilizar funciones lógicas similares a las
# de un relé programable
# Autor: Alejandro García Castro
# Febrero de 2022
from machine import Pin
import time
class Ton:
'''
Clase que crea un objeto de tipo Ton, temporizador con
retardo a la... | 32.333333 | 95 | 0.548891 | 802 | 6,402 | 4.153367 | 0.162095 | 0.088262 | 0.078055 | 0.037826 | 0.569198 | 0.469529 | 0.419093 | 0.346443 | 0.317622 | 0.294206 | 0 | 0.016958 | 0.382849 | 6,402 | 198 | 96 | 32.333333 | 0.82612 | 0.349266 | 0 | 0.610526 | 0 | 0 | 0.032871 | 0 | 0 | 0 | 0 | 0.015152 | 0 | 1 | 0.084211 | false | 0 | 0.021053 | 0 | 0.147368 | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
37c538fcbf3428df5b3c204f017b319a0471cd13 | 1,371 | py | Python | tests/test_report.py | elements-storage/django-haul | 18f535bd3b7d8b25d05026191218defe05f2c5a6 | [
"MIT"
] | 1 | 2022-03-14T03:56:31.000Z | 2022-03-14T03:56:31.000Z | tests/test_report.py | elements-storage/django-haul | 18f535bd3b7d8b25d05026191218defe05f2c5a6 | [
"MIT"
] | null | null | null | tests/test_report.py | elements-storage/django-haul | 18f535bd3b7d8b25d05026191218defe05f2c5a6 | [
"MIT"
] | null | null | null | from haul.policy import ImportPolicy, RelinkAction
from io import BytesIO
from test_app.app import reset
from test_app.models import Book, Author, Tag
from test_app.export import BookExporter, AuthorExporter, TagExporter
from haul import ImportContainer, ExportContainer
EXPORTERS = [BookExporter, AuthorExporter, Tag... | 31.159091 | 82 | 0.693654 | 179 | 1,371 | 5.212291 | 0.357542 | 0.069668 | 0.03537 | 0.049303 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009839 | 0.184537 | 1,371 | 43 | 83 | 31.883721 | 0.824687 | 0 | 0 | 0.064516 | 0 | 0 | 0.016047 | 0 | 0 | 0 | 0 | 0 | 0.129032 | 1 | 0.064516 | false | 0 | 0.322581 | 0 | 0.483871 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
37cc3a83d9edbe6143fd28e1dd66c6eb2d4a2e55 | 428 | py | Python | sublimeterm/utils.py | percevalw/Term | 461be68e1755b2184778c2bc8e28ffa89a6043d5 | [
"MIT"
] | 4 | 2017-05-11T01:05:35.000Z | 2017-05-31T14:42:42.000Z | sublimeterm/utils.py | percevalw/Term | 461be68e1755b2184778c2bc8e28ffa89a6043d5 | [
"MIT"
] | 1 | 2017-06-06T17:17:02.000Z | 2018-03-13T22:14:11.000Z | sublimeterm/utils.py | percevalw/Term | 461be68e1755b2184778c2bc8e28ffa89a6043d5 | [
"MIT"
] | null | null | null | # Copyright (C) 2016-2017 Perceval Wajsburt <perceval.wajsburt@gmail.com>
#
# This module is part of SublimeTerm and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
class SpecialChar:
NEW_LINE = '\n'
TAB = '\t'
BEL = '\x07'
BACKSPACE = '\x08'
DEL = '\x7f'
... | 25.176471 | 73 | 0.607477 | 56 | 428 | 4.625 | 0.875 | 0.123552 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057927 | 0.233645 | 428 | 16 | 74 | 26.75 | 0.731707 | 0.478972 | 0 | 0 | 0 | 0 | 0.202765 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
805e85c1bb6a376d5ad9fb832d6af4eeac07a997 | 1,379 | py | Python | authentication/migrations/0001_initial.py | adityamittl/CureHub | 9b2a6d7271db521b11391c15d95bb8f5d8050cc7 | [
"MIT"
] | null | null | null | authentication/migrations/0001_initial.py | adityamittl/CureHub | 9b2a6d7271db521b11391c15d95bb8f5d8050cc7 | [
"MIT"
] | null | null | null | authentication/migrations/0001_initial.py | adityamittl/CureHub | 9b2a6d7271db521b11391c15d95bb8f5d8050cc7 | [
"MIT"
] | null | null | null | # Generated by Django 3.2 on 2021-07-16 17:45
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
opera... | 37.27027 | 121 | 0.615664 | 144 | 1,379 | 5.75 | 0.458333 | 0.038647 | 0.050725 | 0.07971 | 0.39372 | 0.34058 | 0.34058 | 0.34058 | 0.34058 | 0.34058 | 0 | 0.020448 | 0.255257 | 1,379 | 36 | 122 | 38.305556 | 0.785784 | 0.031182 | 0 | 0.344828 | 1 | 0 | 0.074213 | 0.016492 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.103448 | 0 | 0.241379 | 0 | 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 |
805ffd83a7f64171a29c7a872416ec2ef344fe79 | 3,308 | py | Python | scripts/210_box_upload/upload.py | miltondp/phenomexcan | 38390ac21987f1e72835c42919c53abd1a35cb7e | [
"MIT"
] | 3 | 2020-12-07T15:06:41.000Z | 2021-05-25T06:03:38.000Z | scripts/210_box_upload/upload.py | miltondp/phenomexcan | 38390ac21987f1e72835c42919c53abd1a35cb7e | [
"MIT"
] | 1 | 2020-07-01T14:45:38.000Z | 2020-07-01T15:15:55.000Z | scripts/210_box_upload/upload.py | miltondp/phenomexcan | 38390ac21987f1e72835c42919c53abd1a35cb7e | [
"MIT"
] | 1 | 2020-08-20T13:23:40.000Z | 2020-08-20T13:23:40.000Z | import os
import argparse
from glob import glob
from getpass import getpass
import pandas as pd
from boxsdk import OAuth2, Client
from hashing import get_sha1
parser = argparse.ArgumentParser()
parser.add_argument('--source-directory', required=True, type=str)
parser.add_argument('--target-box-directory', required=T... | 34.821053 | 109 | 0.74607 | 490 | 3,308 | 4.765306 | 0.242857 | 0.047109 | 0.043683 | 0.023983 | 0.176445 | 0.146039 | 0.146039 | 0.104925 | 0.042827 | 0.042827 | 0 | 0.004545 | 0.135429 | 3,308 | 94 | 110 | 35.191489 | 0.811888 | 0.024486 | 0 | 0.075758 | 0 | 0 | 0.180267 | 0.006826 | 0 | 0 | 0 | 0 | 0.015152 | 1 | 0 | false | 0.060606 | 0.106061 | 0 | 0.106061 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
8061469ffd87f2a01653cfde2ae37542d8ce07e3 | 11,899 | py | Python | models/models.py | mworia-Br/super-sendit | 1c7634e679c09fb9392dac9920f49d77f525f7d6 | [
"MIT"
] | 1 | 2021-05-22T09:48:30.000Z | 2021-05-22T09:48:30.000Z | models/models.py | mworia-Br/super-sendit | 1c7634e679c09fb9392dac9920f49d77f525f7d6 | [
"MIT"
] | 3 | 2018-10-31T13:21:04.000Z | 2021-06-01T23:02:47.000Z | models/models.py | mworia-Br/super-sendit | 1c7634e679c09fb9392dac9920f49d77f525f7d6 | [
"MIT"
] | 6 | 2018-11-12T15:33:29.000Z | 2021-07-31T05:48:21.000Z | import psycopg2
from flask import current_app
from datetime import datetime
from flask_jwt_extended import jwt_required, get_jwt_identity
from werkzeug.security import generate_password_hash, check_password_hash
class SendITDB:
def __init__(self):
self.db_name = current_app.config.get('DB_NAME')
s... | 28.263658 | 142 | 0.549038 | 1,271 | 11,899 | 5.018883 | 0.103855 | 0.087788 | 0.06396 | 0.090296 | 0.517636 | 0.465433 | 0.449914 | 0.370277 | 0.357109 | 0.270262 | 0 | 0.002051 | 0.344483 | 11,899 | 420 | 143 | 28.330952 | 0.815769 | 0.054626 | 0 | 0.432056 | 1 | 0 | 0.051064 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111498 | false | 0.027875 | 0.017422 | 0 | 0.226481 | 0 | 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 |
8064435d893f8f064466a3ff25d5aba443212024 | 5,101 | py | Python | PlatformerPathfinding/test_level.py | gerardrbentley/TheVGLC | 508522d9bcef29dac5e8eb78f0ca6bc9e9dd14b5 | [
"MIT"
] | 147 | 2016-06-16T15:34:15.000Z | 2022-02-21T13:51:25.000Z | PlatformerPathfinding/test_level.py | gerardrbentley/TheVGLC | 508522d9bcef29dac5e8eb78f0ca6bc9e9dd14b5 | [
"MIT"
] | 3 | 2019-05-31T07:10:49.000Z | 2020-06-17T09:06:30.000Z | PlatformerPathfinding/test_level.py | gerardrbentley/TheVGLC | 508522d9bcef29dac5e8eb78f0ca6bc9e9dd14b5 | [
"MIT"
] | 35 | 2016-06-27T07:26:01.000Z | 2021-12-11T02:20:44.000Z | '''
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of... | 46.372727 | 226 | 0.597334 | 787 | 5,101 | 3.853875 | 0.200762 | 0.043521 | 0.076162 | 0.047478 | 0.385097 | 0.376195 | 0.371579 | 0.352456 | 0.330366 | 0.323112 | 0 | 0.046458 | 0.236228 | 5,101 | 109 | 227 | 46.798165 | 0.732033 | 0.005685 | 0 | 0.025316 | 0 | 0 | 0.016584 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.037975 | null | null | 0.025316 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
8068d370b323ea2a814613c80a86b465121b617f | 6,489 | py | Python | compare_file_list/compare_file_list.py | aabcce/offline_file_sync | 43ed97bea683b5abd9feccd4fb1cdd01a18ddd85 | [
"Apache-2.0"
] | 1 | 2019-03-23T03:09:15.000Z | 2019-03-23T03:09:15.000Z | compare_file_list/compare_file_list.py | aabcce/offline_file_sync | 43ed97bea683b5abd9feccd4fb1cdd01a18ddd85 | [
"Apache-2.0"
] | null | null | null | compare_file_list/compare_file_list.py | aabcce/offline_file_sync | 43ed97bea683b5abd9feccd4fb1cdd01a18ddd85 | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
import os
import sqlite3
import base64
import time
import datetime
from oslo_config import cfg
from oslo_log import log
CONF = cfg.CONF
LOG = log.getLogger(__name__)
log.register_options(CONF)
compare_file_list_opts = [
cfg.StrOpt('src_sqlite_file',
default='',
help... | 31.047847 | 124 | 0.611342 | 867 | 6,489 | 4.282584 | 0.16955 | 0.08349 | 0.041476 | 0.025586 | 0.422569 | 0.349852 | 0.246701 | 0.213305 | 0.18745 | 0.140587 | 0 | 0.010491 | 0.265526 | 6,489 | 208 | 125 | 31.197115 | 0.768569 | 0.026044 | 0 | 0.278481 | 0 | 0.025316 | 0.19341 | 0.015048 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.044304 | null | null | 0.044304 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
806cae75f4f0e0f5832f76982b34ca355e2a6446 | 3,341 | py | Python | classhound/monitor.py | vernium42/ClassHound | 53014ee998364900e02f920b16a6e676de6d85fb | [
"MIT"
] | null | null | null | classhound/monitor.py | vernium42/ClassHound | 53014ee998364900e02f920b16a6e676de6d85fb | [
"MIT"
] | null | null | null | classhound/monitor.py | vernium42/ClassHound | 53014ee998364900e02f920b16a6e676de6d85fb | [
"MIT"
] | null | null | null | from functools import wraps
class Monitor:
def __init__(self):
""" Store parameter values of a function when function is used in program.
Example:
m = Monitor()
print = m.function_parameter(print, (None, "end"))
print("Hi, Bob", end="\n\n")
print("H... | 34.802083 | 104 | 0.576175 | 361 | 3,341 | 5.157895 | 0.210526 | 0.10956 | 0.051557 | 0.047261 | 0.602041 | 0.581633 | 0.563373 | 0.563373 | 0.492481 | 0.492481 | 0 | 0.00524 | 0.314576 | 3,341 | 95 | 105 | 35.168421 | 0.80786 | 0.496259 | 0 | 0.483871 | 0 | 0 | 0.002922 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.258065 | false | 0 | 0.032258 | 0 | 0.548387 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
806eaeb8732059e3eac3489246ff6da8b7d75a7b | 512 | py | Python | AIPscan/celery.py | artefactual-labs/AIPscan | c11125b0b201d2ba0dd491ba40f2a56c90dd824c | [
"Apache-2.0"
] | 5 | 2020-07-07T18:37:39.000Z | 2022-01-12T18:49:52.000Z | AIPscan/celery.py | artefactual-labs/AIPscan | c11125b0b201d2ba0dd491ba40f2a56c90dd824c | [
"Apache-2.0"
] | 135 | 2020-06-18T04:05:37.000Z | 2021-12-22T17:43:03.000Z | AIPscan/celery.py | artefactual-labs/AIPscan | c11125b0b201d2ba0dd491ba40f2a56c90dd824c | [
"Apache-2.0"
] | 1 | 2021-09-02T08:32:33.000Z | 2021-09-02T08:32:33.000Z | # -*- coding: utf-8 -*-
"""This module contains code related to Celery configuration."""
from AIPscan import extensions
def configure_celery(app):
"""Add Flask app context to celery.Task."""
TaskBase = extensions.celery.Task
class ContextTask(TaskBase):
abstract = True
def __call__(sel... | 24.380952 | 64 | 0.654297 | 57 | 512 | 5.701754 | 0.578947 | 0.092308 | 0.123077 | 0.110769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002545 | 0.232422 | 512 | 20 | 65 | 25.6 | 0.824427 | 0.232422 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.1 | 0 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8071f9a6e16421dc1866224a83733548d526c6ae | 807 | py | Python | lib/db.py | faizal2007/pg_demonic | 0947d32f0861259be55c2e9ac916b1addee29949 | [
"MIT"
] | null | null | null | lib/db.py | faizal2007/pg_demonic | 0947d32f0861259be55c2e9ac916b1addee29949 | [
"MIT"
] | null | null | null | lib/db.py | faizal2007/pg_demonic | 0947d32f0861259be55c2e9ac916b1addee29949 | [
"MIT"
] | null | null | null | # import the psycopg2 database adapter for PostgreSQL
from psycopg2 import extensions, connect, InterfaceError
# import the psycopg2 errors library
import psycopg2.errors
def db_connect(db, user, host, password):
conn = connect(
dbname = db,
user = user,
host = host,
password = pa... | 24.454545 | 64 | 0.648079 | 100 | 807 | 5.11 | 0.4 | 0.164384 | 0.058708 | 0.117417 | 0.1409 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011532 | 0.247831 | 807 | 32 | 65 | 25.21875 | 0.830313 | 0.281289 | 0 | 0 | 0 | 0 | 0.079422 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.111111 | 0.111111 | 0 | 0.277778 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
807b1a0fdb97a3e40d48db7307a54833e1ea729c | 819 | py | Python | exercises/ex29.py | ramachandrajr/lpthw | 6ed8066a1a98f858416605877860e39c8413145a | [
"MIT"
] | null | null | null | exercises/ex29.py | ramachandrajr/lpthw | 6ed8066a1a98f858416605877860e39c8413145a | [
"MIT"
] | null | null | null | exercises/ex29.py | ramachandrajr/lpthw | 6ed8066a1a98f858416605877860e39c8413145a | [
"MIT"
] | null | null | null | people = 200
cats = 30
dogs = 15
if people < cats or 2 != 2:
print "Too many cats! The world is doomed!"
if people > cats:
print "Not many cats! The world is saved!"
if people < dogs:
print "The world is drooled on!"
if people > dogs:
print "The world is dry!"
dogs += 5
if people >= dogs:
pr... | 18.2 | 72 | 0.654457 | 134 | 819 | 4 | 0.462687 | 0.104478 | 0.11194 | 0.158582 | 0.376866 | 0.309701 | 0.261194 | 0.160448 | 0.160448 | 0.160448 | 0 | 0.021138 | 0.249084 | 819 | 44 | 73 | 18.613636 | 0.850407 | 0.368742 | 0 | 0 | 0 | 0 | 0.406746 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.388889 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
807dd6d08ff9391d3edccefd988cc2b04d07916d | 939 | py | Python | recsys/validate.py | Prayogkarki/prog-eval | 461302a9776c4a5f051469c48d1b4228b604ba4d | [
"MIT"
] | 4 | 2019-07-16T13:41:59.000Z | 2021-04-09T03:51:26.000Z | recsys/validate.py | Prayogkarki/prog-eval | 461302a9776c4a5f051469c48d1b4228b604ba4d | [
"MIT"
] | 4 | 2019-07-09T20:28:48.000Z | 2019-09-03T16:32:33.000Z | recsys/validate.py | Prayogkarki/prog-eval | 461302a9776c4a5f051469c48d1b4228b604ba4d | [
"MIT"
] | 12 | 2019-07-03T19:12:35.000Z | 2020-03-25T18:12:15.000Z | #!/usr/bin/env python
"""
main.py
"""
import sys
import json
import argparse
import numpy as np
from helpers import compute_scores
P_AT_01_THRESHOLD = 0.475
def parse_args():
parser = argparse.ArgumentParser()
parser.add_argument('--cache-path', type=str, default='data/cache')
return parser.parse_ar... | 21.837209 | 74 | 0.611289 | 129 | 939 | 4.170543 | 0.51938 | 0.033457 | 0.037175 | 0.078067 | 0.130112 | 0.130112 | 0.130112 | 0.130112 | 0.130112 | 0.130112 | 0 | 0.030899 | 0.241747 | 939 | 42 | 75 | 22.357143 | 0.724719 | 0.059638 | 0 | 0 | 0 | 0 | 0.128028 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0.130435 | 0.217391 | 0 | 0.304348 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
80809b1f00b8998f79176f705445ca46c3dfe8ff | 21,058 | py | Python | amd64-linux/lib/fiesta_system.py | qiyancos/Simics-3.0.31 | 9bd52d5abad023ee87a37306382a338abf7885f1 | [
"BSD-4-Clause",
"FSFAP"
] | 1 | 2020-06-15T10:41:18.000Z | 2020-06-15T10:41:18.000Z | amd64-linux/lib/fiesta_system.py | qiyancos/Simics-3.0.31 | 9bd52d5abad023ee87a37306382a338abf7885f1 | [
"BSD-4-Clause",
"FSFAP"
] | null | null | null | amd64-linux/lib/fiesta_system.py | qiyancos/Simics-3.0.31 | 9bd52d5abad023ee87a37306382a338abf7885f1 | [
"BSD-4-Clause",
"FSFAP"
] | 3 | 2020-08-10T10:25:02.000Z | 2021-09-12T01:12:09.000Z |
## Copyright 2003-2007 Virtutech AB
##
## The contents herein are Source Code which are a subset of Licensed
## Software pursuant to the terms of the Virtutech Simics Software
## License Agreement (the "Agreement"), and are being distributed under
## the Agreement. You should have received a copy of the Agreem... | 37.670841 | 138 | 0.560879 | 2,691 | 21,058 | 4.245634 | 0.18023 | 0.03186 | 0.034136 | 0.023107 | 0.325164 | 0.253654 | 0.167877 | 0.127702 | 0.09523 | 0.075799 | 0 | 0.050513 | 0.315605 | 21,058 | 558 | 139 | 37.738351 | 0.742229 | 0.159939 | 0 | 0.284314 | 0 | 0 | 0.13005 | 0.016149 | 0 | 0 | 0.019174 | 0 | 0 | 0 | null | null | 0.007353 | 0.009804 | null | null | 0.02451 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
80840d8a925848f765bc4d8e1e9d652abce44ea2 | 1,197 | py | Python | slender/tests/list/test_one.py | torokmark/slender | 3bf815e22f7802ba48706f31ba608cf609e23e68 | [
"Apache-2.0"
] | 1 | 2020-01-10T21:51:46.000Z | 2020-01-10T21:51:46.000Z | slender/tests/list/test_one.py | torokmark/slender | 3bf815e22f7802ba48706f31ba608cf609e23e68 | [
"Apache-2.0"
] | null | null | null | slender/tests/list/test_one.py | torokmark/slender | 3bf815e22f7802ba48706f31ba608cf609e23e68 | [
"Apache-2.0"
] | null | null | null |
import re
from unittest import TestCase
from expects import expect, equal, raise_error, be_true, be_false
from slender import List
class TestOne(TestCase):
def test_one_if_all_of_them_are_truthy(self):
e = List([5, 3, 5, 2, 4])
expect(e.one()).to(be_false)
def test_one_if_more_than_one_is... | 32.351351 | 66 | 0.619048 | 187 | 1,197 | 3.673797 | 0.278075 | 0.071325 | 0.101892 | 0.122271 | 0.580786 | 0.556041 | 0.486172 | 0.427948 | 0.427948 | 0.366812 | 0 | 0.008502 | 0.213868 | 1,197 | 36 | 67 | 33.25 | 0.721573 | 0 | 0 | 0.230769 | 0 | 0 | 0.080268 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.269231 | false | 0 | 0.153846 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
80860362a85987ea59d9aa7dde9de75bda0f7474 | 3,527 | py | Python | python/example.py | adamgreenhall/gotetra | d20f1c57e9e85d3db144a6f13f2665193563531b | [
"MIT"
] | 7 | 2016-04-30T06:26:18.000Z | 2021-12-17T19:59:42.000Z | python/example.py | adamgreenhall/gotetra | d20f1c57e9e85d3db144a6f13f2665193563531b | [
"MIT"
] | 18 | 2015-09-10T18:48:26.000Z | 2016-05-01T21:39:28.000Z | python/example.py | adamgreenhall/gotetra | d20f1c57e9e85d3db144a6f13f2665193563531b | [
"MIT"
] | 4 | 2017-01-03T19:16:21.000Z | 2020-12-15T22:12:40.000Z | import sys
import gotetra as gtet
import time
def basic_usage(filename):
""" The output of gotetra is a custom binary format signified by the
file extention '.gtet'. This format consists of pretty big header (your
version uses 336 bytes) followed by either one or three arrays of 32-bit
floats.
You... | 35.989796 | 79 | 0.643606 | 539 | 3,527 | 4.137291 | 0.335807 | 0.075336 | 0.050224 | 0.028251 | 0.31435 | 0.276682 | 0.234978 | 0.229596 | 0.172197 | 0.096861 | 0 | 0.016185 | 0.264247 | 3,527 | 97 | 80 | 36.360825 | 0.84316 | 0.027502 | 0 | 0.255319 | 0 | 0 | 0.233025 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.06383 | null | null | 0.319149 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
80862924f8d0795066f6caca712c26182cbc6e67 | 1,937 | py | Python | quarantineworkout/reviews/schema.py | adeoke/django-quarantine-workout-graphql | 7d53bb17f8ee9e5276b496d00ff92c4b458af31f | [
"MIT"
] | 1 | 2020-06-01T11:41:52.000Z | 2020-06-01T11:41:52.000Z | quarantineworkout/reviews/schema.py | adeoke/django-quarantine-workout-graphql | 7d53bb17f8ee9e5276b496d00ff92c4b458af31f | [
"MIT"
] | 5 | 2020-06-06T15:14:21.000Z | 2021-06-10T19:25:55.000Z | quarantineworkout/reviews/schema.py | adeoke/django-quarantine-workout-graphql | 7d53bb17f8ee9e5276b496d00ff92c4b458af31f | [
"MIT"
] | 1 | 2022-01-19T22:17:44.000Z | 2022-01-19T22:17:44.000Z | """Reviews Schema module"""
import graphene
from graphene_django import DjangoObjectType
from graphql import GraphQLError
from exercises.models import Exercise
from exercises.schema import ExerciseType
from stars.models import Star
from stars.schema import StarType
from .models import Review
class ReviewType(DjangoOb... | 27.28169 | 73 | 0.660299 | 212 | 1,937 | 5.985849 | 0.34434 | 0.047281 | 0.037825 | 0.036249 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.248322 | 1,937 | 70 | 74 | 27.671429 | 0.871566 | 0.151265 | 0 | 0 | 0 | 0 | 0.047559 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04878 | false | 0 | 0.195122 | 0 | 0.536585 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
808b4037b1ae8462f2e0201c1558db2b0e74bb08 | 2,683 | py | Python | openapi_server/models/data_query_coords.py | eugenegesdisc/gmuedr | e8b3e5c7b8d18421d875f0f6f778a37a6d8ec3fd | [
"MIT"
] | null | null | null | openapi_server/models/data_query_coords.py | eugenegesdisc/gmuedr | e8b3e5c7b8d18421d875f0f6f778a37a6d8ec3fd | [
"MIT"
] | null | null | null | openapi_server/models/data_query_coords.py | eugenegesdisc/gmuedr | e8b3e5c7b8d18421d875f0f6f778a37a6d8ec3fd | [
"MIT"
] | null | null | null | # coding: utf-8
from datetime import date, datetime
from typing import List, Dict, Type
from openapi_server.models.base_model_ import Model
from openapi_server import util
class DataQueryCoords(Model):
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Do not edit... | 24.171171 | 96 | 0.607529 | 284 | 2,683 | 5.661972 | 0.21831 | 0.059701 | 0.208955 | 0.062189 | 0.383085 | 0.287935 | 0.261816 | 0.138682 | 0.138682 | 0.138682 | 0 | 0.000536 | 0.305255 | 2,683 | 110 | 97 | 24.390909 | 0.862124 | 0.413343 | 0 | 0.225 | 0 | 0 | 0.061785 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.1 | 0 | 0.425 | 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 |
80924b54e81630c1a28c95db9992846bb5dbaf21 | 847 | py | Python | tests/common.py | nightimer-AU/coolname | 48febea0f9a74612f5d8f5565f8e6194ea77e25a | [
"BSD-2-Clause"
] | 89 | 2016-02-18T09:42:23.000Z | 2022-01-19T18:32:42.000Z | tests/common.py | nightimer-AU/coolname | 48febea0f9a74612f5d8f5565f8e6194ea77e25a | [
"BSD-2-Clause"
] | 11 | 2018-07-29T13:59:10.000Z | 2021-09-06T13:38:10.000Z | tests/common.py | nightimer-AU/coolname | 48febea0f9a74612f5d8f5565f8e6194ea77e25a | [
"BSD-2-Clause"
] | 8 | 2018-11-16T16:04:40.000Z | 2022-01-25T17:52:03.000Z | import os.path as op
import unittest
import six
try:
from unittest import mock
from unittest.mock import patch
except ImportError:
import mock
from mock import patch
TESTS_DIR = op.dirname(op.abspath(__file__))
PROJECT_DIR = op.abspath(op.join(TESTS_DIR, '..'))
EXAMPLES_DIR = op.join(PROJECT_DIR, 'e... | 19.697674 | 59 | 0.64817 | 111 | 847 | 4.828829 | 0.432432 | 0.046642 | 0.052239 | 0.115672 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010836 | 0.237308 | 847 | 42 | 60 | 20.166667 | 0.818885 | 0.023613 | 0 | 0 | 0 | 0 | 0.01218 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.142857 | false | 0.035714 | 0.285714 | 0.035714 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
80969735b0a3956a392127d96253abea341d2383 | 9,083 | py | Python | applications_scripts/depthPlots.py | trineoo/stereo | f76d6740e05b92b095bbcb20761d1b0ba0669eff | [
"MIT"
] | null | null | null | applications_scripts/depthPlots.py | trineoo/stereo | f76d6740e05b92b095bbcb20761d1b0ba0669eff | [
"MIT"
] | null | null | null | applications_scripts/depthPlots.py | trineoo/stereo | f76d6740e05b92b095bbcb20761d1b0ba0669eff | [
"MIT"
] | null | null | null | #!/usr/bin/env python
#coding=utf-8
import os
import matplotlib.pyplot as plt
import subprocess
import matplotlib.cm as cm
import csv
import numpy as np
import math
from math import cos, sin
import statistics
import numpy as np
PATH_GPS = "Experiment/handheldGPS/4hanholdGPS_NED.csv"
PATH_MILLI = "Experiment/maGPS/4mi... | 24.749319 | 144 | 0.601784 | 1,358 | 9,083 | 3.927835 | 0.132548 | 0.016498 | 0.025497 | 0.035058 | 0.491751 | 0.419385 | 0.377578 | 0.353581 | 0.332396 | 0.322085 | 0 | 0.03032 | 0.215678 | 9,083 | 366 | 145 | 24.81694 | 0.718417 | 0.010019 | 0 | 0.387218 | 0 | 0 | 0.055846 | 0.014017 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.037594 | null | null | 0.003759 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
809d98bdc810aa6d4625873f421783e0f19b4ba3 | 3,630 | py | Python | passport.py | gmr/passport | e24c8a0c5c8ff4c268675446173fbe2a7196ff79 | [
"BSD-3-Clause"
] | 17 | 2015-01-09T14:49:23.000Z | 2019-11-19T07:31:00.000Z | passport.py | gmr/passport | e24c8a0c5c8ff4c268675446173fbe2a7196ff79 | [
"BSD-3-Clause"
] | null | null | null | passport.py | gmr/passport | e24c8a0c5c8ff4c268675446173fbe2a7196ff79 | [
"BSD-3-Clause"
] | 3 | 2015-09-16T00:41:26.000Z | 2020-06-07T17:25:05.000Z | """
Passport uses the Tornado template engine to render files, injecting values
from Consul services and kv pairs.
"""
import argparse
from os import path
import sys
from consulate import api
from tornado import template
__version__ = '0.1.1'
class ConsulLoader(template.Loader):
def __init__(self, root_direct... | 31.842105 | 80 | 0.578512 | 414 | 3,630 | 4.949275 | 0.282609 | 0.029283 | 0.033187 | 0.016593 | 0.113226 | 0.063446 | 0.063446 | 0.032211 | 0 | 0 | 0 | 0.001613 | 0.316804 | 3,630 | 113 | 81 | 32.123894 | 0.824597 | 0.030303 | 0 | 0.072289 | 0 | 0 | 0.15779 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.072289 | false | 0.072289 | 0.060241 | 0 | 0.216867 | 0.012048 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
80a47bf0b6a3321257b47313e8dfc31d34d493fa | 666 | py | Python | lliregistration_back/foundation/migrations/0007_auto_20191205_1003.py | ydang5/final-project-back | ae8b0ff2b340b521b70e3b0c25ab8cb4b64ac453 | [
"BSD-3-Clause"
] | null | null | null | lliregistration_back/foundation/migrations/0007_auto_20191205_1003.py | ydang5/final-project-back | ae8b0ff2b340b521b70e3b0c25ab8cb4b64ac453 | [
"BSD-3-Clause"
] | null | null | null | lliregistration_back/foundation/migrations/0007_auto_20191205_1003.py | ydang5/final-project-back | ae8b0ff2b340b521b70e3b0c25ab8cb4b64ac453 | [
"BSD-3-Clause"
] | null | null | null | # Generated by Django 2.2.6 on 2019-12-05 15:03
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('foundation', '0006_llistudentdata_was_immigration_status_valid_date_dealt'),
]
operations = [
migrations.AddField(
model_name='l... | 27.75 | 86 | 0.645646 | 69 | 666 | 5.985507 | 0.57971 | 0.065375 | 0.101695 | 0.130751 | 0.513317 | 0.513317 | 0.513317 | 0.280872 | 0.280872 | 0.280872 | 0 | 0.038306 | 0.255255 | 666 | 23 | 87 | 28.956522 | 0.794355 | 0.067568 | 0 | 0.470588 | 1 | 0 | 0.250404 | 0.189015 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
80a9375245685e4e1ba007bb6edf9091b97dab72 | 2,400 | py | Python | 2020/14/part2.py | harnoldhouse-kmacewicz/adventofcode | b2d40f7b20f12a469a0eb43fc0f7a06e7d69be19 | [
"Apache-2.0"
] | null | null | null | 2020/14/part2.py | harnoldhouse-kmacewicz/adventofcode | b2d40f7b20f12a469a0eb43fc0f7a06e7d69be19 | [
"Apache-2.0"
] | null | null | null | 2020/14/part2.py | harnoldhouse-kmacewicz/adventofcode | b2d40f7b20f12a469a0eb43fc0f7a06e7d69be19 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python3
import re
resp_dict = {}
def dec_to_bin(x):
return int(bin(x)[2:])
index_for_mem_cache = 0
with open('./input.txt', 'r') as input:
list_lines = input.read().split("mask = ")
list_lines = "++".join(list_lines)
list_lines = list_lines.split("++")
list_lines = list(filter(None, ... | 33.802817 | 88 | 0.586667 | 325 | 2,400 | 4.101538 | 0.203077 | 0.138035 | 0.202551 | 0.105026 | 0.217554 | 0.123031 | 0 | 0 | 0 | 0 | 0 | 0.009336 | 0.24125 | 2,400 | 71 | 89 | 33.802817 | 0.72268 | 0.014167 | 0 | 0.037736 | 0 | 0 | 0.070613 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018868 | false | 0 | 0.018868 | 0.018868 | 0.056604 | 0.018868 | 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 |
80ab8de48251a49f7927faefce0e8cdbcb29fccb | 14,045 | py | Python | src/inworldz/win32/SendKeys.py | IslandzVW/maestro | ae3965d61c79985adb03c72be2a744c70a677bf5 | [
"Apache-2.0"
] | 3 | 2016-02-20T00:47:52.000Z | 2018-07-27T22:57:36.000Z | src/inworldz/win32/SendKeys.py | IslandzVW/maestro | ae3965d61c79985adb03c72be2a744c70a677bf5 | [
"Apache-2.0"
] | 1 | 2016-07-29T07:19:01.000Z | 2016-07-29T07:19:01.000Z | src/inworldz/win32/SendKeys.py | InWorldz/maestro | ae3965d61c79985adb03c72be2a744c70a677bf5 | [
"Apache-2.0"
] | 2 | 2018-04-09T18:15:18.000Z | 2018-05-20T16:14:28.000Z | '''
Created on Jan 2, 2013
@author: mdickson
'''
"""
SendKeys.py - Sends one or more keystroke or keystroke combinations
to the active window.
Copyright (C) 2003 Ollie Rutherfurd <oliver@rutherfurd.net>
Python License
Version 0.3 (2003-06-14)
$Id$
"""
import sys
import time
from ctypes import windll
__all__ = ['Key... | 27.378168 | 85 | 0.48665 | 1,590 | 14,045 | 4.196226 | 0.257233 | 0.008243 | 0.013639 | 0.016187 | 0.251948 | 0.215228 | 0.197392 | 0.197392 | 0.197392 | 0.151529 | 0 | 0.035206 | 0.389249 | 14,045 | 512 | 86 | 27.431641 | 0.742597 | 0.076682 | 0 | 0.194444 | 0 | 0.003086 | 0.101405 | 0 | 0 | 0 | 0 | 0 | 0.012346 | 0 | null | null | 0.003086 | 0.012346 | null | null | 0.006173 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
80acdf19f5178f43e9cf85f80b8bf098627a154a | 7,127 | py | Python | run_unittests.py | TheSoftwareFactory/lokki-wp8 | c132e9244a269f87e61f9846dd2aefa6afe4a90d | [
"Apache-2.0"
] | null | null | null | run_unittests.py | TheSoftwareFactory/lokki-wp8 | c132e9244a269f87e61f9846dd2aefa6afe4a90d | [
"Apache-2.0"
] | null | null | null | run_unittests.py | TheSoftwareFactory/lokki-wp8 | c132e9244a269f87e61f9846dd2aefa6afe4a90d | [
"Apache-2.0"
] | 1 | 2018-03-21T01:19:25.000Z | 2018-03-21T01:19:25.000Z | """
Copyright (c) 2014-2015 F-Secure
See LICENSE for details
"""
#! coding: utf-8
import os
import shutil
import time
import subprocess
from os.path import abspath, dirname, basename, join, exists
from scripts import buildutils
from optparse import OptionParser
import xml.etree.ElementTree as ET
from xml... | 29.329218 | 168 | 0.604462 | 766 | 7,127 | 5.522193 | 0.305483 | 0.018913 | 0.014184 | 0.016312 | 0.120331 | 0.098345 | 0.082742 | 0.082742 | 0.062884 | 0.062884 | 0 | 0.005663 | 0.281465 | 7,127 | 243 | 169 | 29.329218 | 0.820348 | 0.024555 | 0 | 0.184713 | 0 | 0.006369 | 0.142555 | 0.022945 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.031847 | 0.082803 | null | null | 0.019108 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
80b3e664da9da71d81c35372ea2227ad9acc87af | 4,734 | py | Python | skforecast/ForecasterBase/ForecasterBase.py | JoaquinAmatRodrigo/skforecaster | 3ab526d63bbb94ae4bd18ae964197042a675a34a | [
"MIT"
] | 86 | 2021-02-25T08:56:45.000Z | 2022-03-31T01:33:53.000Z | skforecast/ForecasterBase/ForecasterBase.py | hdiazsqlr/skforecast | 5ee79a51960a27db9e169706014528eae403e1c2 | [
"MIT"
] | 5 | 2021-11-30T22:30:45.000Z | 2022-03-29T10:21:36.000Z | skforecast/ForecasterBase/ForecasterBase.py | hdiazsqlr/skforecast | 5ee79a51960a27db9e169706014528eae403e1c2 | [
"MIT"
] | 24 | 2021-04-04T09:58:26.000Z | 2022-03-09T15:55:44.000Z | ################################################################################
# ForecasterBase #
# #
# This work by Joaquin Amat Rodrigo is licensed under a Creative Commons ... | 28.011834 | 85 | 0.498099 | 473 | 4,734 | 4.942918 | 0.353066 | 0.027374 | 0.021814 | 0.02438 | 0.246364 | 0.246364 | 0.230111 | 0.230111 | 0.213003 | 0.213003 | 0 | 0.004118 | 0.384453 | 4,734 | 169 | 86 | 28.011834 | 0.798216 | 0.553021 | 0 | 0.447368 | 0 | 0 | 0.033051 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0.131579 | 0.105263 | 0 | 0.289474 | 0.026316 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
80b4fe09881bb48975492044addb71d80fa26962 | 2,018 | py | Python | polyglotdb/io/parsers/speaker.py | michaelhaaf/PolyglotDB | 7640212c7062cf44ae911081241ce83a26ced2eb | [
"MIT"
] | 25 | 2016-01-28T20:47:07.000Z | 2021-11-29T16:13:07.000Z | polyglotdb/io/parsers/speaker.py | michaelhaaf/PolyglotDB | 7640212c7062cf44ae911081241ce83a26ced2eb | [
"MIT"
] | 120 | 2016-04-07T17:55:09.000Z | 2022-03-24T18:30:10.000Z | polyglotdb/io/parsers/speaker.py | PhonologicalCorpusTools/PolyglotDB | 7640212c7062cf44ae911081241ce83a26ced2eb | [
"MIT"
] | 10 | 2015-12-03T20:06:58.000Z | 2021-02-11T03:02:48.000Z | import os
class SpeakerParser(object):
def parse_path(self, path):
raise (NotImplementedError)
class FilenameSpeakerParser(SpeakerParser):
"""
Class for parsing a speaker name from a path that gets a specified number of characters from either the left or
the right of the base file name.
... | 26.906667 | 115 | 0.609514 | 246 | 2,018 | 4.878049 | 0.288618 | 0.06 | 0.135 | 0.091667 | 0.301667 | 0.285 | 0.248333 | 0.248333 | 0.248333 | 0.248333 | 0 | 0.001452 | 0.317641 | 2,018 | 74 | 116 | 27.27027 | 0.870007 | 0.432607 | 0 | 0.208333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.208333 | false | 0.041667 | 0.041667 | 0 | 0.541667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
80bb1015056290acf86fa801c04bcf1f4776ba75 | 669 | py | Python | numerical_la.py | anapophenic/knb | 0e865a47791bf801c00078a128a4d21e4375e732 | [
"CC0-1.0"
] | 2 | 2016-04-21T21:10:22.000Z | 2016-08-27T19:15:23.000Z | numerical_la.py | anapophenic/knb | 0e865a47791bf801c00078a128a4d21e4375e732 | [
"CC0-1.0"
] | null | null | null | numerical_la.py | anapophenic/knb | 0e865a47791bf801c00078a128a4d21e4375e732 | [
"CC0-1.0"
] | null | null | null | import numpy as np
'''
W_1: k x n matrix
T: k x k x k tensor
Return: n x n x n tensor
'''
def fast_trilinear(T, W1, W2, W3):
NT = W1.shape[0];
if type(T) is str:
if T == 'I':
M = np.zeros((NT, NT, NT));
for i in xrange(NT):
M[i,i,i] = 1
else:
M = T
M1 = ttm(M, W1, 0)
M12 = ttm(M1, W2,... | 19.676471 | 65 | 0.575486 | 130 | 669 | 2.930769 | 0.438462 | 0.015748 | 0.015748 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058 | 0.252616 | 669 | 33 | 66 | 20.272727 | 0.704 | 0 | 0 | 0 | 0 | 0 | 0.002004 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.05 | 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 |
80c309ad85905662ad9c3e269ed724bb0e038311 | 532 | py | Python | week07/myproject/myapp/models.py | wasit7/dsi202_2021 | 678c0cf4b6d888b29a9b5d7b62ef171a5a399eac | [
"MIT"
] | null | null | null | week07/myproject/myapp/models.py | wasit7/dsi202_2021 | 678c0cf4b6d888b29a9b5d7b62ef171a5a399eac | [
"MIT"
] | null | null | null | week07/myproject/myapp/models.py | wasit7/dsi202_2021 | 678c0cf4b6d888b29a9b5d7b62ef171a5a399eac | [
"MIT"
] | null | null | null | from django.db import models
class Bike(models.Model):
start=models.DateField(auto_now=False, auto_now_add=True)
type=models.CharField(max_length=20)
price=models.DecimalField( max_digits=8, decimal_places=2)
image=models.ImageField(null=True, blank=True)
def __str__(self):
return "Bike id... | 35.466667 | 62 | 0.68985 | 79 | 532 | 4.493671 | 0.544304 | 0.056338 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009132 | 0.176692 | 532 | 15 | 63 | 35.466667 | 0.80137 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0.083333 | 0.916667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
80c7d27a0b1d7a0a0909648ccf26e5cb11e25164 | 1,404 | py | Python | Support/Fuego/Pythia/pythia-0.4/packages/fuego/fuego/serialization/chemkin/unpickle/tokens/TemperatureRange.py | marient/PelePhysics | e6ad1839d77b194e09ab44ff850c9489652e5d81 | [
"BSD-3-Clause-LBNL"
] | 1 | 2019-04-24T13:32:23.000Z | 2019-04-24T13:32:23.000Z | Support/Fuego/Pythia/pythia-0.4/packages/fuego/fuego/serialization/chemkin/unpickle/tokens/TemperatureRange.py | marient/PelePhysics | e6ad1839d77b194e09ab44ff850c9489652e5d81 | [
"BSD-3-Clause-LBNL"
] | null | null | null | Support/Fuego/Pythia/pythia-0.4/packages/fuego/fuego/serialization/chemkin/unpickle/tokens/TemperatureRange.py | marient/PelePhysics | e6ad1839d77b194e09ab44ff850c9489652e5d81 | [
"BSD-3-Clause-LBNL"
] | null | null | null | #!/usr/bin/env python
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Michael A.G. Aivazis
# California Institute of Technology
# (C) 1998-2003 All Rights Reserved
#
# <LicenseText>
#
# ~~~~~~~~~~~~~~~~... | 25.527273 | 98 | 0.505698 | 133 | 1,404 | 5.180451 | 0.609023 | 0.05225 | 0.075472 | 0.055152 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012961 | 0.285613 | 1,404 | 54 | 99 | 26 | 0.673978 | 0.315527 | 0 | 0.086957 | 0 | 0 | 0.099471 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.130435 | false | 0 | 0.130435 | 0.086957 | 0.521739 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
80c990d1ed08af2e7ab440f5c47fe69cb4553652 | 1,317 | py | Python | visualise_games_as_svg.py | ettmetal/ChessMoveGAN | 206ecfbab1b8c4ffde76850d90579d33dcdcac49 | [
"MIT"
] | null | null | null | visualise_games_as_svg.py | ettmetal/ChessMoveGAN | 206ecfbab1b8c4ffde76850d90579d33dcdcac49 | [
"MIT"
] | null | null | null | visualise_games_as_svg.py | ettmetal/ChessMoveGAN | 206ecfbab1b8c4ffde76850d90579d33dcdcac49 | [
"MIT"
] | null | null | null | import chess
import chess.svg
from helpers.io_helpers import ensure_dir_exists
from helpers.pgn_helpers import pgn_iterate
def main():
# Input
input_path = "generated.pgn"
# Output
output_directory = input_path.replace(".pgn", "") + "/"
ensure_dir_exists(output_directory)
with open(input_path... | 33.769231 | 136 | 0.614275 | 164 | 1,317 | 4.676829 | 0.341463 | 0.057366 | 0.05867 | 0.046936 | 0.164276 | 0.164276 | 0.164276 | 0.164276 | 0.164276 | 0.164276 | 0 | 0.004264 | 0.287775 | 1,317 | 38 | 137 | 34.657895 | 0.813433 | 0.081245 | 0 | 0.076923 | 1 | 0 | 0.053156 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0.153846 | 0 | 0.192308 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
80cb1e62b7224eaf0d8c075ab5b54d8c1a1e0b04 | 2,275 | py | Python | qa/rpc-tests/pingearly.py | MONIMAKER365/BitcoinUnlimited | 8aea282c44ee23ca65cdd895c99b3f6347f46dfc | [
"MIT"
] | 535 | 2015-09-04T15:10:08.000Z | 2022-03-17T20:51:05.000Z | qa/rpc-tests/pingearly.py | MONIMAKER365/BitcoinUnlimited | 8aea282c44ee23ca65cdd895c99b3f6347f46dfc | [
"MIT"
] | 1,269 | 2016-01-31T20:21:24.000Z | 2022-03-16T01:20:08.000Z | qa/rpc-tests/pingearly.py | MONIMAKER365/BitcoinUnlimited | 8aea282c44ee23ca65cdd895c99b3f6347f46dfc | [
"MIT"
] | 295 | 2015-10-19T16:12:29.000Z | 2021-08-02T20:05:17.000Z | #!/usr/bin/env python3
# Copyright (c) 2015-2018 The Bitcoin Unlimited developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
import test_framework.loginit
import os
import os.path
import time
import sys
if sys.version_info[0] ... | 32.971014 | 75 | 0.673846 | 270 | 2,275 | 5.477778 | 0.474074 | 0.070318 | 0.068966 | 0.046653 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014917 | 0.233846 | 2,275 | 68 | 76 | 33.455882 | 0.83362 | 0.105495 | 0 | 0.054545 | 0 | 0 | 0.069458 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0.054545 | 0.236364 | 0 | 0.363636 | 0.054545 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
80cb3112af6e99502c5d3a2a8e1f1d2c672b7d1c | 808 | py | Python | convolution_matrices/test2D_convmat.py | zhaonat/RCWA | a28fdf90b5b5fc0fedacc8bb44a0a0c2f2a02143 | [
"MIT"
] | 66 | 2019-03-11T11:59:26.000Z | 2022-03-25T05:17:11.000Z | convolution_matrices/test2D_convmat.py | Ydeh22/Rigorous-Coupled-Wave-Analysis | 15f4300601899d08f57c95863df88280ab6f0d21 | [
"MIT"
] | 5 | 2018-09-23T05:18:15.000Z | 2021-11-07T20:16:40.000Z | convolution_matrices/test2D_convmat.py | Ydeh22/Rigorous-Coupled-Wave-Analysis | 15f4300601899d08f57c95863df88280ab6f0d21 | [
"MIT"
] | 33 | 2018-09-23T05:16:59.000Z | 2022-03-23T08:37:07.000Z | import numpy as np
import matplotlib.pyplot as plt
from convolution_matrices.convmat2D import *
#generate a picture array with a circle
Nx = 2*256
Ny = 2*256;
A = 9*np.ones((Nx,Ny));
ci = Nx/2-1; cj= Ny/2-1;
cr = np.round(0.35*Nx);
I,J=np.meshgrid(np.arange(A.shape[0]),np.arange(A.shape[1]));
dist = np.sqrt((I-ci)**2... | 23.764706 | 87 | 0.684406 | 160 | 808 | 3.4125 | 0.4875 | 0.010989 | 0.029304 | 0.03663 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05698 | 0.131188 | 808 | 34 | 88 | 23.764706 | 0.720798 | 0.220297 | 0 | 0.08 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.12 | 0 | 0.12 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
80cbc57b15b4b160ab14843793c55270d03ff655 | 716 | py | Python | students/k3343/laboratory_works/Nazarenko_Uliana/laboratory_work_1/homework_board/urls.py | TonikX/ITMO_ICT_-WebProgramming_2020 | ba566c1b3ab04585665c69860b713741906935a0 | [
"MIT"
] | 10 | 2020-03-20T09:06:12.000Z | 2021-07-27T13:06:02.000Z | students/k3343/laboratory_works/Nazarenko_Uliana/laboratory_work_1/homework_board/urls.py | TonikX/ITMO_ICT_-WebProgramming_2020 | ba566c1b3ab04585665c69860b713741906935a0 | [
"MIT"
] | 134 | 2020-03-23T09:47:48.000Z | 2022-03-12T01:05:19.000Z | students/k3343/laboratory_works/Nazarenko_Uliana/laboratory_work_1/homework_board/urls.py | TonikX/ITMO_ICT_-WebProgramming_2020 | ba566c1b3ab04585665c69860b713741906935a0 | [
"MIT"
] | 71 | 2020-03-20T12:45:56.000Z | 2021-10-31T19:22:25.000Z | from urllib import request
from django.urls import path
from django.contrib.auth import views as view
from . import views
from .views import User_registration, Comment_creation, RegisterUserView
urlpatterns = [
path('', views.index, name='index'),
path('hw_list', views.hw_view, name='hwlist'),
path('profi... | 39.777778 | 79 | 0.727654 | 91 | 716 | 5.571429 | 0.351648 | 0.110454 | 0.098619 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.120112 | 716 | 17 | 80 | 42.117647 | 0.804762 | 0 | 0 | 0 | 0 | 0 | 0.178771 | 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 |
80cc81fae72495d2a262dd8c0d1d3b5e9a72197c | 1,562 | py | Python | src/buildstream/_scheduler/queues/artifactpushqueue.py | doraskayo/buildstream | 1c72d4342ae7df360808de22c5e49f55dbb6bec6 | [
"Apache-2.0"
] | null | null | null | src/buildstream/_scheduler/queues/artifactpushqueue.py | doraskayo/buildstream | 1c72d4342ae7df360808de22c5e49f55dbb6bec6 | [
"Apache-2.0"
] | null | null | null | src/buildstream/_scheduler/queues/artifactpushqueue.py | doraskayo/buildstream | 1c72d4342ae7df360808de22c5e49f55dbb6bec6 | [
"Apache-2.0"
] | null | null | null | #
# Copyright (C) 2016 Codethink 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 law or agre... | 30.038462 | 75 | 0.71831 | 199 | 1,562 | 5.487437 | 0.567839 | 0.054945 | 0.02381 | 0.029304 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006431 | 0.203585 | 1,562 | 51 | 76 | 30.627451 | 0.871383 | 0.477593 | 0 | 0 | 0 | 0 | 0.025221 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.15 | 0.05 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
80d4a62f1ec3a2f0e6dfaaacee8035d22a9b20bf | 4,343 | py | Python | scrapper.py | entaq/FoodPantriesScrapper | cd38d61c6e452d648fe0a485f88f8e5e7e2bd124 | [
"MIT"
] | 1 | 2017-06-20T21:19:29.000Z | 2017-06-20T21:19:29.000Z | scrapper.py | entaq/FoodPantriesScrapper | cd38d61c6e452d648fe0a485f88f8e5e7e2bd124 | [
"MIT"
] | null | null | null | scrapper.py | entaq/FoodPantriesScrapper | cd38d61c6e452d648fe0a485f88f8e5e7e2bd124 | [
"MIT"
] | null | null | null | import requests
from bs4 import BeautifulSoup
from bs4 import Tag
import re
import csv
class KitchenRecord:
pass
kitchens_records = []
def printKitchenDetails(kitchen_record):
print kitchen_record.url
try:
response = requests.get(kitchen_record.url)
soup = BeautifulSoup(response.content, ... | 44.316327 | 198 | 0.647018 | 564 | 4,343 | 4.789007 | 0.248227 | 0.091448 | 0.035172 | 0.059237 | 0.212884 | 0.196594 | 0.12773 | 0.04739 | 0.04739 | 0.04739 | 0 | 0.008021 | 0.22496 | 4,343 | 98 | 199 | 44.316327 | 0.794415 | 0.099701 | 0 | 0.1375 | 0 | 0 | 0.084229 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.0125 | 0.0625 | null | null | 0.0875 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
80d517f4b36572a8381519fd88c583c477b5fa32 | 4,581 | py | Python | portve/core.py | sdelquin/portve | 572b13eece8ac1f6b85b24113ba45cc521adea27 | [
"MIT"
] | 1 | 2021-07-21T14:04:39.000Z | 2021-07-21T14:04:39.000Z | portve/core.py | sdelquin/portve | 572b13eece8ac1f6b85b24113ba45cc521adea27 | [
"MIT"
] | null | null | null | portve/core.py | sdelquin/portve | 572b13eece8ac1f6b85b24113ba45cc521adea27 | [
"MIT"
] | null | null | null | import datetime
import html2text
import redis
import requests
import telegram
from logzero import logger
from user_agent import generate_user_agent
from portve import moment, services, settings
class Schedule:
def __init__(self, channel_name: str, channel_slug: str, ref_date: str):
logger.info(f'Buildin... | 34.969466 | 90 | 0.578913 | 530 | 4,581 | 4.775472 | 0.277358 | 0.042671 | 0.030818 | 0.016594 | 0.115369 | 0.103516 | 0.060846 | 0.060846 | 0.060846 | 0.060846 | 0 | 0.003487 | 0.311286 | 4,581 | 130 | 91 | 35.238462 | 0.79683 | 0 | 0 | 0.210526 | 1 | 0 | 0.126828 | 0.058939 | 0 | 0 | 0 | 0 | 0 | 1 | 0.087719 | false | 0 | 0.070175 | 0.035088 | 0.236842 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
80d5e1e7bb9feefdb485286f4d112a700e6fa408 | 3,310 | py | Python | Calibration/EcalCalibAlgos/python/ALCARECOEcalPhiSym_cff.py | PKUfudawei/cmssw | 8fbb5ce74398269c8a32956d7c7943766770c093 | [
"Apache-2.0"
] | 1 | 2021-11-30T16:24:46.000Z | 2021-11-30T16:24:46.000Z | Calibration/EcalCalibAlgos/python/ALCARECOEcalPhiSym_cff.py | PKUfudawei/cmssw | 8fbb5ce74398269c8a32956d7c7943766770c093 | [
"Apache-2.0"
] | 4 | 2021-11-29T13:57:56.000Z | 2022-03-29T06:28:36.000Z | Calibration/EcalCalibAlgos/python/ALCARECOEcalPhiSym_cff.py | PKUfudawei/cmssw | 8fbb5ce74398269c8a32956d7c7943766770c093 | [
"Apache-2.0"
] | 1 | 2021-11-23T09:25:45.000Z | 2021-11-23T09:25:45.000Z | import FWCore.ParameterSet.Config as cms
from PhysicsTools.NanoAOD.common_cff import *
# # PHISYM producer
from Calibration.EcalCalibAlgos.EcalPhiSymRecHitProducers_cfi import EcalPhiSymRecHitProducerRun, EcalPhiSymRecHitProducerLumi
# Sum info by run or lumi sequences
ALCARECOEcalPhiSymRecHitProducerRun = EcalPhiSym... | 63.653846 | 126 | 0.777946 | 232 | 3,310 | 11.025862 | 0.37931 | 0.078186 | 0.145035 | 0.153245 | 0.080923 | 0.041439 | 0.041439 | 0.041439 | 0.041439 | 0.041439 | 0 | 0.00498 | 0.150755 | 3,310 | 51 | 127 | 64.901961 | 0.905016 | 0.034441 | 0 | 0 | 0 | 0 | 0.102604 | 0.066834 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.105263 | 0 | 0.105263 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
80d623fc3fbf91249bbd7d625607ac228c70d3b6 | 3,108 | py | Python | koji_wrapper/base.py | lhh/koji_wrapper | 7afab1c12650257fed3a9b9ba08704d70a53c26d | [
"MIT"
] | null | null | null | koji_wrapper/base.py | lhh/koji_wrapper | 7afab1c12650257fed3a9b9ba08704d70a53c26d | [
"MIT"
] | null | null | null | koji_wrapper/base.py | lhh/koji_wrapper | 7afab1c12650257fed3a9b9ba08704d70a53c26d | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Provides common functionality for classes in this module which
wrap a connection to koji, manage the session, and provide
convenience methods for interacting with the koji api.
"""
import koji
class KojiWrapperBase(object):
"""
Base Koji Wrapper object
This class provides th... | 28.513761 | 78 | 0.614865 | 370 | 3,108 | 5.105405 | 0.294595 | 0.033351 | 0.04235 | 0.040233 | 0.325569 | 0.258867 | 0.258867 | 0.222869 | 0.174166 | 0.131816 | 0 | 0.000459 | 0.299228 | 3,108 | 108 | 79 | 28.777778 | 0.86685 | 0.468147 | 0 | 0.073171 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.268293 | false | 0.02439 | 0.02439 | 0 | 0.463415 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
80d9b98e2b9abd23e87c37afa2e12f1335b18169 | 461 | py | Python | ex2.py | gitdumper/pynet-week6 | 3a349e3f4053ca4e5d95b664afe1b318892b36f0 | [
"Apache-2.0"
] | null | null | null | ex2.py | gitdumper/pynet-week6 | 3a349e3f4053ca4e5d95b664afe1b318892b36f0 | [
"Apache-2.0"
] | null | null | null | ex2.py | gitdumper/pynet-week6 | 3a349e3f4053ca4e5d95b664afe1b318892b36f0 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import jinja2
filename = 'ospf_config.j2'
with open(filename) as f:
mytemplate = f.read()
vars = {
'process_id': 40,
'network': '10.220.88.0',
'wildcard': '0.0.0.255',
'area': 0,
'loopback0_addr': '172.31.255.1',
'loopback0_mask': '255.255.255.255... | 20.043478 | 45 | 0.603037 | 62 | 461 | 4.419355 | 0.629032 | 0.065693 | 0.065693 | 0.175182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.120112 | 0.223427 | 461 | 22 | 46 | 20.954545 | 0.645251 | 0.136659 | 0 | 0 | 0 | 0 | 0.315508 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.066667 | 0.066667 | 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 |
80db8457918193308d3c201fa9d3fbf167692bad | 4,821 | py | Python | python/tutorialpoint.com_Extractor.py | gurditsinghbedi/simple-projects | d914b68ab23bf7af4e87a9547804065bef17db3e | [
"MIT"
] | null | null | null | python/tutorialpoint.com_Extractor.py | gurditsinghbedi/simple-projects | d914b68ab23bf7af4e87a9547804065bef17db3e | [
"MIT"
] | null | null | null | python/tutorialpoint.com_Extractor.py | gurditsinghbedi/simple-projects | d914b68ab23bf7af4e87a9547804065bef17db3e | [
"MIT"
] | null | null | null | # python 2.7
# This is program to extract a tutorial from the website tutorialpoint.com
# First a HTML is created and then a corresponding pdf. Both the files are available.
# Changing the mainURL can lead to extraction of any tutorial.
# Single Beep confirms Generation of HTML file and Double Beep confirms Generat... | 38.879032 | 147 | 0.667704 | 612 | 4,821 | 5.236928 | 0.383987 | 0.019969 | 0.020593 | 0.029953 | 0.15975 | 0.102964 | 0.037442 | 0.037442 | 0 | 0 | 0 | 0.018485 | 0.203277 | 4,821 | 123 | 148 | 39.195122 | 0.815933 | 0.304916 | 0 | 0.188406 | 0 | 0.028986 | 0.261644 | 0.032198 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.072464 | null | null | 0.115942 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
80e1738796038ade3cb34a1e290f9857ec07592a | 4,666 | py | Python | spirit/user/forms.py | Ke-xueting/Spirit | 346d9a0db125ee8995ba5d0ab0fd8b43aa8c5dc7 | [
"MIT"
] | 974 | 2015-01-02T12:56:00.000Z | 2022-03-24T00:01:54.000Z | spirit/user/forms.py | Ke-xueting/Spirit | 346d9a0db125ee8995ba5d0ab0fd8b43aa8c5dc7 | [
"MIT"
] | 247 | 2015-01-07T02:59:26.000Z | 2022-02-23T08:27:57.000Z | spirit/user/forms.py | Ke-xueting/Spirit | 346d9a0db125ee8995ba5d0ab0fd8b43aa8c5dc7 | [
"MIT"
] | 366 | 2015-01-08T10:22:25.000Z | 2022-02-21T12:58:31.000Z | # -*- coding: utf-8 -*-
import os
from django import forms
from django.utils.translation import gettext_lazy as _
from django.contrib.auth import get_user_model
from django.utils import timezone
from django.template import defaultfilters
from django.core.files.uploadedfile import UploadedFile
from spirit.core import... | 31.741497 | 87 | 0.655594 | 527 | 4,666 | 5.618596 | 0.28463 | 0.03715 | 0.050659 | 0.035461 | 0.166836 | 0.122931 | 0.081054 | 0.058088 | 0.058088 | 0.058088 | 0 | 0.002789 | 0.231676 | 4,666 | 146 | 88 | 31.958904 | 0.823152 | 0.013931 | 0 | 0.095238 | 0 | 0 | 0.102218 | 0.006525 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085714 | false | 0.057143 | 0.104762 | 0.009524 | 0.466667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
80e317b39ecde9394a121cea2c49460ebeaf9c50 | 2,608 | py | Python | lambda/py/owl_model/rankings.py | jpburnett/overwatch-league-skill | aad5db2b2cf01c1264b9da610c9a8715a4aa087e | [
"MIT"
] | 5 | 2018-03-02T21:42:39.000Z | 2019-02-17T04:03:48.000Z | lambda/py/owl_model/rankings.py | jpburnett/overwatch-league-skill | aad5db2b2cf01c1264b9da610c9a8715a4aa087e | [
"MIT"
] | 8 | 2018-02-23T05:05:13.000Z | 2019-10-02T14:02:26.000Z | lambda/py/owl_model/rankings.py | jpburnett/overwatch-league-skill | aad5db2b2cf01c1264b9da610c9a8715a4aa087e | [
"MIT"
] | 1 | 2018-11-05T09:05:46.000Z | 2018-11-05T09:05:46.000Z | from owl_model.modelobject import ModelObject
class Rankings(ModelObject):
""" The Rankings Model for OWL """
cls_attr_types = {
'ranks': 'list[owl_model.rankings.Rank]',
'totalmatches': 'int',
'matchesconcluded': 'int',
'playoffcutoff': 'int'
}
cls_attr_map = {
... | 26.343434 | 85 | 0.564034 | 240 | 2,608 | 6.008333 | 0.258333 | 0.029126 | 0.024965 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000555 | 0.309433 | 2,608 | 98 | 86 | 26.612245 | 0.800111 | 0.108129 | 0 | 0.088235 | 0 | 0 | 0.225177 | 0.023936 | 0 | 0 | 0 | 0.010204 | 0 | 1 | 0.058824 | false | 0 | 0.014706 | 0 | 0.220588 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
80ea5ddf06e193f6f6957a192dcd38c4abf4c402 | 896 | py | Python | main.py | mario21ic/demo_docker_api | 02d1243a5d883c3eaff93579f68145dabb9bd841 | [
"MIT"
] | null | null | null | main.py | mario21ic/demo_docker_api | 02d1243a5d883c3eaff93579f68145dabb9bd841 | [
"MIT"
] | null | null | null | main.py | mario21ic/demo_docker_api | 02d1243a5d883c3eaff93579f68145dabb9bd841 | [
"MIT"
] | null | null | null | import docker
client = docker.from_env()
print("#### Container - Run ####")
container_alpine = client.containers.run("alpine", ["echo", "hello", "world"])
print(container_alpine)
print("#### Container - Run Background ####")
container = client.containers.run("bfirsh/reticulate-splines", detach=True)
print("#### C... | 22.974359 | 78 | 0.668527 | 101 | 896 | 5.90099 | 0.366337 | 0.14094 | 0.057047 | 0.057047 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010101 | 0.116071 | 896 | 38 | 79 | 23.578947 | 0.742424 | 0.017857 | 0 | 0.086957 | 0 | 0 | 0.32992 | 0.028441 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.043478 | 0 | 0.043478 | 0.521739 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
80f0d9b320b5a90c2fb7d20ad25e1c081c8e54b8 | 1,402 | py | Python | libs/grid_graph.py | nishio/atcoder | 8db36537b5d8580745d5f98312162506ad7d7ab4 | [
"MIT"
] | 1 | 2021-03-09T04:28:13.000Z | 2021-03-09T04:28:13.000Z | libs/grid_graph.py | nishio/atcoder | 8db36537b5d8580745d5f98312162506ad7d7ab4 | [
"MIT"
] | null | null | null | libs/grid_graph.py | nishio/atcoder | 8db36537b5d8580745d5f98312162506ad7d7ab4 | [
"MIT"
] | null | null | null | """
Construct Grid Graph
"""
def sample(H, W, AS):
# PAST1J
from collections import defaultdict
edges = defaultdict(dict)
for x in range(W):
for y in range(H):
pos = y * W + x
if x < W - 1:
edges[pos + 1][pos] = AS[y][x]
if x > 0:
... | 28.04 | 51 | 0.340942 | 174 | 1,402 | 2.747126 | 0.218391 | 0.150628 | 0.094142 | 0.100418 | 0.650628 | 0.556485 | 0.543933 | 0.422594 | 0.075314 | 0 | 0 | 0.037094 | 0.538516 | 1,402 | 49 | 52 | 28.612245 | 0.7017 | 0.024964 | 0 | 0.4 | 0 | 0 | 0.001473 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.05 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
80fbf76a052ff5bb36f1418e86c2b5b936c40be8 | 6,525 | py | Python | mute_infs.py | bafly/myScripts | d164c16089bab2ce103500c905f32d458de63e61 | [
"MIT"
] | null | null | null | mute_infs.py | bafly/myScripts | d164c16089bab2ce103500c905f32d458de63e61 | [
"MIT"
] | null | null | null | mute_infs.py | bafly/myScripts | d164c16089bab2ce103500c905f32d458de63e61 | [
"MIT"
] | null | null | null | #######################################################################
# mute_bind #
# (!) best thing is to get bindPose right from skinCluster #
pi = 3.141592653589793
def mute_bind(scl=None):
"""Temporarly mutes all influences of selected skin... | 29.794521 | 79 | 0.540996 | 880 | 6,525 | 3.857955 | 0.207955 | 0.049485 | 0.014728 | 0.015317 | 0.139912 | 0.086598 | 0.033579 | 0.022386 | 0 | 0 | 0 | 0.010096 | 0.332107 | 6,525 | 219 | 80 | 29.794521 | 0.768931 | 0.052874 | 0 | 0.195122 | 0 | 0 | 0.061281 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.067073 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
037d64a7cbcbe5f694dc93506615f415392e9c96 | 5,620 | py | Python | music.py | springmaple/wesing | b12ef5c7514ac71a1d19a118f3ab41b67233bb66 | [
"Unlicense"
] | null | null | null | music.py | springmaple/wesing | b12ef5c7514ac71a1d19a118f3ab41b67233bb66 | [
"Unlicense"
] | null | null | null | music.py | springmaple/wesing | b12ef5c7514ac71a1d19a118f3ab41b67233bb66 | [
"Unlicense"
] | null | null | null | import contextlib
import datetime
import json
class Meta:
Title = 'title'
Artist = 'artist'
Year = 'year'
Comment = 'comment'
class WeSing:
def __init__(self, src):
self._src = src
self._data = None
def get_meta(self):
meta = {}
try:
data = self._... | 85.151515 | 4,065 | 0.696975 | 713 | 5,620 | 5.307153 | 0.413745 | 0.010571 | 0.011892 | 0.010307 | 0.086152 | 0.072939 | 0.072939 | 0.072939 | 0.063425 | 0.063425 | 0 | 0.090572 | 0.135587 | 5,620 | 65 | 4,066 | 86.461538 | 0.688349 | 0.721886 | 0 | 0.122449 | 0 | 0 | 0.066927 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.102041 | false | 0.020408 | 0.061224 | 0 | 0.387755 | 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 |
0386a18c4d2dce94e1be2b7a9b3b15d65df5c5e7 | 2,752 | py | Python | twisted/plugins/4ubot_plugin.py | agentOfChaos/4Ubot | 56c5a6c37b7bee728b648e8fb01255954099cef2 | [
"MIT"
] | null | null | null | twisted/plugins/4ubot_plugin.py | agentOfChaos/4Ubot | 56c5a6c37b7bee728b648e8fb01255954099cef2 | [
"MIT"
] | null | null | null | twisted/plugins/4ubot_plugin.py | agentOfChaos/4Ubot | 56c5a6c37b7bee728b648e8fb01255954099cef2 | [
"MIT"
] | null | null | null | from ConfigParser import ConfigParser
from twisted.application.service import IServiceMaker, Service
from twisted.internet.endpoints import clientFromString
from twisted.plugin import IPlugin
from twisted.python import usage, log
from zope.interface import implementer
from bot4u.bot import Bot4UFactory
class Option... | 31.272727 | 106 | 0.644622 | 285 | 2,752 | 6.115789 | 0.382456 | 0.041308 | 0.034423 | 0.029834 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003413 | 0.254724 | 2,752 | 87 | 107 | 31.632184 | 0.846416 | 0.099927 | 0 | 0 | 0 | 0 | 0.095567 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096774 | false | 0.112903 | 0.129032 | 0 | 0.387097 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
038d0fe02478f675abe9d5c388b3c0d4c5b3f53d | 1,266 | py | Python | timeB.py | Mazafard/TimeTW | dc3785d174939fb72087c8ea1d162da3f0aaccc4 | [
"CC0-1.0"
] | 7 | 2016-06-28T13:17:25.000Z | 2021-02-10T12:49:15.000Z | timeB.py | Mazafard/TimeTW | dc3785d174939fb72087c8ea1d162da3f0aaccc4 | [
"CC0-1.0"
] | null | null | null | timeB.py | Mazafard/TimeTW | dc3785d174939fb72087c8ea1d162da3f0aaccc4 | [
"CC0-1.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import tweepy
import jdatetime
import autho as ao
auth = tweepy.OAuthHandler(ao.CONSUMER_KEY, ao.CONSUMER_SECRET)
auth.set_access_token(ao.ACCESS_KEY, ao.ACCESS_SECRET)
api = tweepy.API(auth)
def tweet(f):
api.update_status(f)
def increase(l):
return all(x ==... | 20.419355 | 76 | 0.511848 | 224 | 1,266 | 2.861607 | 0.316964 | 0.021841 | 0.046802 | 0.051482 | 0.205928 | 0.187207 | 0.187207 | 0.187207 | 0.187207 | 0.162246 | 0 | 0.045558 | 0.306477 | 1,266 | 61 | 77 | 20.754098 | 0.68451 | 0.033175 | 0 | 0.05 | 0 | 0 | 0.064648 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.075 | 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 |
038e0e08e4a8ff5fffb3425825bc7dbc99713ae9 | 1,216 | py | Python | neteye/apis/arp_entry_namespace.py | yone2ks/neteye | 7cb641acec1cce65da291245245f9ab1511fa749 | [
"MIT"
] | null | null | null | neteye/apis/arp_entry_namespace.py | yone2ks/neteye | 7cb641acec1cce65da291245245f9ab1511fa749 | [
"MIT"
] | null | null | null | neteye/apis/arp_entry_namespace.py | yone2ks/neteye | 7cb641acec1cce65da291245245f9ab1511fa749 | [
"MIT"
] | null | null | null | from flask import jsonify, request
from flask_restx import Namespace, Resource
from marshmallow import fields
from neteye.apis.interface_namespace import InterfaceSchema
from neteye.apis.routes import api_bp
from neteye.arp_entry.models import ArpEntry
from neteye.extensions import api, db, ma
class ArpEntrySchema(m... | 27.636364 | 85 | 0.752467 | 155 | 1,216 | 5.722581 | 0.335484 | 0.101466 | 0.073281 | 0.060879 | 0.065389 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.143914 | 1,216 | 43 | 86 | 28.27907 | 0.852065 | 0 | 0 | 0.066667 | 0 | 0 | 0.044408 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.233333 | 0.066667 | 0.633333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
03917ee34d5c7b83fa4d4ec0504bdfe47fd38024 | 2,075 | py | Python | authors/apps/authentication/tests/test_user_model.py | andela/ah-backend-prime | 0708463d4565a4977a5a5dcb839f1dfed52fdc90 | [
"BSD-3-Clause"
] | 1 | 2019-09-19T14:30:05.000Z | 2019-09-19T14:30:05.000Z | authors/apps/authentication/tests/test_user_model.py | e-ian/authors-haven-frontend | 05829c8088ca49ef2cf0863dc87ec55b44b13534 | [
"BSD-3-Clause"
] | 22 | 2019-03-25T16:10:53.000Z | 2022-03-11T23:44:21.000Z | authors/apps/authentication/tests/test_user_model.py | e-ian/authors-haven-frontend | 05829c8088ca49ef2cf0863dc87ec55b44b13534 | [
"BSD-3-Clause"
] | 6 | 2019-03-25T09:39:39.000Z | 2021-03-11T23:54:12.000Z | from authors.apps.authentication.models import User, UserManager
from django.test import TestCase
from unittest.mock import patch, MagicMock, PropertyMock
from .base import BaseTest
class TestModel(TestCase):
def test_empty_email(self):
User.objects.create_user(username="anyatibrian",
... | 34.016393 | 80 | 0.590843 | 205 | 2,075 | 5.814634 | 0.380488 | 0.02349 | 0.080537 | 0.088087 | 0.311242 | 0.262584 | 0.227349 | 0.129195 | 0.129195 | 0.129195 | 0 | 0.00427 | 0.322892 | 2,075 | 60 | 81 | 34.583333 | 0.844128 | 0.092048 | 0 | 0.097561 | 0 | 0 | 0.140573 | 0.07828 | 0 | 0 | 0 | 0 | 0.146341 | 1 | 0.146341 | false | 0.170732 | 0.097561 | 0.02439 | 0.317073 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
039356ad43b726e81b0869839a9cb8f7ec13dd69 | 337 | py | Python | setup.py | pp555/ml-server-image-similarity | c105cbe2e2d4cd3e146f2ec2b8652cbae2da7485 | [
"CC-BY-4.0",
"MIT"
] | 8 | 2019-08-06T04:51:02.000Z | 2021-08-21T15:43:13.000Z | setup.py | pp555/ml-server-image-similarity | c105cbe2e2d4cd3e146f2ec2b8652cbae2da7485 | [
"CC-BY-4.0",
"MIT"
] | 3 | 2019-05-10T17:19:17.000Z | 2020-03-30T10:11:21.000Z | setup.py | pp555/ml-server-image-similarity | c105cbe2e2d4cd3e146f2ec2b8652cbae2da7485 | [
"CC-BY-4.0",
"MIT"
] | 11 | 2019-06-06T02:19:05.000Z | 2021-09-13T12:49:53.000Z | from distutils.core import setup
from image_similarity import VERSION, LICENSE
setup(
name='image-similarity-sql-python',
version=VERSION,
packages=['image_similarity'],
url='https://github.com/Azure/Azure-MachineLearning-DataScience-Private/tree/master/Misc/SQL_RRE_Templates/ImageSimilarity_SQL',
... | 33.7 | 132 | 0.780415 | 41 | 337 | 6.292683 | 0.658537 | 0.174419 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106825 | 337 | 10 | 133 | 33.7 | 0.857143 | 0 | 0 | 0 | 0 | 0.111111 | 0.485207 | 0.079882 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.222222 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
039507046c7464224ddfff651ee04a8f8123bd61 | 1,613 | py | Python | app/main.py | HolyShining/little-friends | a0fd4f288fb9d3d13f7f0b95ad5be41ac1b7f7e9 | [
"MIT"
] | null | null | null | app/main.py | HolyShining/little-friends | a0fd4f288fb9d3d13f7f0b95ad5be41ac1b7f7e9 | [
"MIT"
] | null | null | null | app/main.py | HolyShining/little-friends | a0fd4f288fb9d3d13f7f0b95ad5be41ac1b7f7e9 | [
"MIT"
] | null | null | null | from fastapi import FastAPI
from fastapi.exceptions import RequestValidationError
from fastapi.staticfiles import StaticFiles
from starlette.exceptions import HTTPException
from starlette.middleware.cors import CORSMiddleware
from starlette.requests import Request
from starlette.templating import Jinja2Templates
from ... | 38.404762 | 94 | 0.799132 | 194 | 1,613 | 6.396907 | 0.335052 | 0.033844 | 0.024174 | 0.025786 | 0.091861 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00494 | 0.121513 | 1,613 | 41 | 95 | 39.341463 | 0.870854 | 0.035338 | 0 | 0 | 0 | 0 | 0.029601 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0 | 0.433333 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
03987c670745c8cd92a0acffa295fd9180103eb3 | 1,923 | py | Python | main10.py | Blaze20014/E02a-Control-Structures | 6521c12225b8e5f637e6f3b51f90b79c96700f89 | [
"MIT"
] | null | null | null | main10.py | Blaze20014/E02a-Control-Structures | 6521c12225b8e5f637e6f3b51f90b79c96700f89 | [
"MIT"
] | null | null | null | main10.py | Blaze20014/E02a-Control-Structures | 6521c12225b8e5f637e6f3b51f90b79c96700f89 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import sys, random
assert sys.version_info >= (3,7), "This script requires at least Python 3.7"
print('Greetings!') # displays "Greetings!"
colors = ['red','orange','yellow','green','blue','violet','purple'] #creates a list of colors
play_again = '' #instansiates a variable to whether the play... | 58.272727 | 129 | 0.685907 | 287 | 1,923 | 4.550523 | 0.43554 | 0.05513 | 0.025268 | 0.026034 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004608 | 0.210088 | 1,923 | 33 | 130 | 58.272727 | 0.855168 | 0 | 0 | 0 | 0 | 0 | 0.305274 | 0 | 0 | 0 | 0 | 0 | 0.041667 | 0 | null | null | 0 | 0.041667 | null | null | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
039df9fa145beb4b4d58fae85ff83cf4e10cce69 | 27,604 | py | Python | generate_boxreconst_samples.py | baudm/adversarial-object-removal | 2ad7caa0d0ffdb3fbe5fa59c66edd4e77e3557ed | [
"MIT"
] | 70 | 2018-10-26T18:32:50.000Z | 2022-02-16T22:11:54.000Z | generate_boxreconst_samples.py | baudm/adversarial-object-removal | 2ad7caa0d0ffdb3fbe5fa59c66edd4e77e3557ed | [
"MIT"
] | 4 | 2018-12-13T03:45:36.000Z | 2021-07-02T06:59:28.000Z | generate_boxreconst_samples.py | baudm/adversarial-object-removal | 2ad7caa0d0ffdb3fbe5fa59c66edd4e77e3557ed | [
"MIT"
] | 13 | 2019-01-03T12:01:21.000Z | 2021-09-12T15:32:44.000Z | import argparse
import numpy as np
import time
import torch
import json
import torch.nn as nn
import cv2
import random
from solver import Solver
from removalmodels.models import Generator, Discriminator
from removalmodels.models import GeneratorDiff, GeneratorDiffWithInp, GeneratorDiffAndMask, GeneratorDiffAndMask_V2,... | 47.429553 | 225 | 0.575279 | 3,532 | 27,604 | 4.332956 | 0.132503 | 0.022935 | 0.043322 | 0.012219 | 0.430672 | 0.381534 | 0.346249 | 0.281887 | 0.255815 | 0.238826 | 0 | 0.022762 | 0.271084 | 27,604 | 581 | 226 | 47.511188 | 0.737836 | 0.084299 | 0 | 0.259009 | 0 | 0 | 0.110603 | 0.006275 | 0 | 0 | 0.000486 | 0 | 0.002252 | 0 | null | null | 0 | 0.040541 | null | null | 0.045045 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
039ed54ad11690c031e1cb478ab8749ff8d20d51 | 1,945 | py | Python | scripts/predict.py | sreesxlnc/kaggle-right-whale | 14d5c8a002610dbaadaa0a3c84cca57252201a68 | [
"MIT"
] | 200 | 2016-01-18T17:13:41.000Z | 2022-02-18T10:50:50.000Z | scripts/predict.py | ashishlal/kaggle-right-whale | f5b8a369866144c7b9ccfeed803b578ae10abe3e | [
"MIT"
] | 4 | 2016-04-14T01:56:19.000Z | 2017-07-18T08:15:32.000Z | scripts/predict.py | ashishlal/kaggle-right-whale | f5b8a369866144c7b9ccfeed803b578ae10abe3e | [
"MIT"
] | 78 | 2016-01-18T22:31:39.000Z | 2020-01-04T11:26:41.000Z | import argparse
import importlib
from time import strftime
import numpy as np
import pandas as pd
import cPickle as pickle
def load_data(fname):
n = 6925
size = int(fname.split('_')[0])
X_fname = 'cache/X_test_%s.npy' % fname
X_shape = (n, 3, size, size)
X = np.memmap(X_fname, dtype=np.float32, m... | 24.935897 | 69 | 0.681748 | 270 | 1,945 | 4.703704 | 0.362963 | 0.047244 | 0.040157 | 0.034646 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007056 | 0.198458 | 1,945 | 77 | 70 | 25.25974 | 0.807569 | 0 | 0 | 0.122807 | 0 | 0 | 0.165553 | 0.013368 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.122807 | null | null | 0.298246 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
03a661239b546c6b6277143c8f2742f898030450 | 2,701 | py | Python | third_party/ibis/ibis_oracle/tests/conftest.py | ajw0100/professional-services-data-validator | b1dc82adf92adf19702f5ef41590c62c7c128c74 | [
"Apache-2.0"
] | 167 | 2021-05-27T19:43:43.000Z | 2022-03-16T02:42:30.000Z | third_party/ibis/ibis_oracle/tests/conftest.py | ajw0100/professional-services-data-validator | b1dc82adf92adf19702f5ef41590c62c7c128c74 | [
"Apache-2.0"
] | 110 | 2021-05-27T14:49:09.000Z | 2022-03-31T11:10:41.000Z | third_party/ibis/ibis_oracle/tests/conftest.py | ajw0100/professional-services-data-validator | b1dc82adf92adf19702f5ef41590c62c7c128c74 | [
"Apache-2.0"
] | 32 | 2021-06-23T22:00:59.000Z | 2022-03-30T03:32:20.000Z | # Copyright 2020 Google 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, soft... | 23.902655 | 78 | 0.709737 | 367 | 2,701 | 5.054496 | 0.373297 | 0.058221 | 0.077628 | 0.051752 | 0.243127 | 0.17035 | 0.036658 | 0 | 0 | 0 | 0 | 0.003567 | 0.169567 | 2,701 | 112 | 79 | 24.116071 | 0.823451 | 0.270641 | 0 | 0.112903 | 0 | 0 | 0.156217 | 0.0721 | 0 | 0 | 0 | 0 | 0 | 1 | 0.145161 | false | 0.048387 | 0.080645 | 0.112903 | 0.354839 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
03a7aa66377384dec2536333e13635b5efa400b8 | 7,341 | py | Python | descriptor.py | yak1ex/UTF8-Win32API | a320d71ff8d04f1b7a3d28222e832648eca97480 | [
"BSD-2-Clause"
] | 2 | 2015-12-01T14:56:09.000Z | 2017-04-29T20:05:26.000Z | descriptor.py | yak1ex/UTF8-Win32API | a320d71ff8d04f1b7a3d28222e832648eca97480 | [
"BSD-2-Clause"
] | null | null | null | descriptor.py | yak1ex/UTF8-Win32API | a320d71ff8d04f1b7a3d28222e832648eca97480 | [
"BSD-2-Clause"
] | null | null | null | """Descriptors for clang.cindex"""
def dump(level, node):
"""
"""
print '%s%s %s %s %s' % (" " * level, node.spelling, node.kind.name, ("const " if node.type.is_const_qualified() else "") + node.type.kind.name, "-> " + (("const " if node.type.get_pointee().is_const_qualified() else "") + node.type.get_poi... | 39.467742 | 306 | 0.614766 | 956 | 7,341 | 4.453975 | 0.130753 | 0.07891 | 0.071865 | 0.023485 | 0.506341 | 0.426726 | 0.360733 | 0.343823 | 0.323626 | 0.265853 | 0 | 0.005323 | 0.257867 | 7,341 | 185 | 307 | 39.681081 | 0.776248 | 0.03065 | 0 | 0.369565 | 0 | 0 | 0.047826 | 0 | 0 | 0 | 0 | 0.005405 | 0.007246 | 0 | null | null | 0 | 0 | null | null | 0.014493 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
03a9916f1db48fe0ffdf836e98f64779c7ca89b7 | 1,628 | py | Python | networkStatusNotifier.py | tflander/espNetConfig | b5a2048317627e02f5e4ae0aeb1d98bcd451d70f | [
"MIT"
] | 3 | 2019-08-15T10:52:44.000Z | 2021-12-26T09:02:47.000Z | networkStatusNotifier.py | tflander/espNetConfig | b5a2048317627e02f5e4ae0aeb1d98bcd451d70f | [
"MIT"
] | 1 | 2020-07-25T07:24:50.000Z | 2020-07-25T07:24:50.000Z | networkStatusNotifier.py | tflander/espNetConfig | b5a2048317627e02f5e4ae0aeb1d98bcd451d70f | [
"MIT"
] | null | null | null | import machine
class ConnectStatus:
DISCONNECTED = 0
CONNECTING = 1
CONNECTED = 2
FAILED = 3
class NetworkStatusNotifier:
def __init__(self):
self.status = ConnectStatus.DISCONNECTED
def setConnected(self):
self.status = ConnectStatus.CONNECTED
def setConnecting(self):... | 26.258065 | 71 | 0.675061 | 150 | 1,628 | 7.246667 | 0.273333 | 0.045078 | 0.064397 | 0.124195 | 0.117755 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009569 | 0.22973 | 1,628 | 61 | 72 | 26.688525 | 0.857257 | 0.015971 | 0 | 0.44186 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.255814 | false | 0 | 0.023256 | 0 | 0.44186 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
03b68c6295a84a4bb2ebe762817d27860b598597 | 511 | py | Python | reader/analytics/analyticsAPIs.py | sifarone/gce_k8s_deployment | f596e17b9d0263ae24c61ebba9925af4719b4306 | [
"MIT"
] | null | null | null | reader/analytics/analyticsAPIs.py | sifarone/gce_k8s_deployment | f596e17b9d0263ae24c61ebba9925af4719b4306 | [
"MIT"
] | null | null | null | reader/analytics/analyticsAPIs.py | sifarone/gce_k8s_deployment | f596e17b9d0263ae24c61ebba9925af4719b4306 | [
"MIT"
] | 1 | 2021-01-24T17:07:37.000Z | 2021-01-24T17:07:37.000Z |
def calculateEMA(period, data):
returnData = {}
emaList = []
key = 'ema' + str(period)
if data:
historicalEma = data[0]
e = 2/(period + 1)
for i in range(len(data)):
ema = (data[i] - historicalEma) * e + historicalEma
historicalEma = ema
emaLi... | 24.333333 | 63 | 0.549902 | 53 | 511 | 5.301887 | 0.528302 | 0.113879 | 0.135231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011429 | 0.315068 | 511 | 20 | 64 | 25.55 | 0.791429 | 0 | 0 | 0 | 0 | 0 | 0.005882 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0.058824 | 0 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
03bcba62b687e1dd664d566bd0f3821062374365 | 237 | py | Python | src/worker/__main__.py | fossabot/F.I.D.E | ebc749d557847c075645d0ff287ab95f763339b5 | [
"MIT"
] | 1 | 2018-06-12T17:01:17.000Z | 2018-06-12T17:01:17.000Z | src/worker/__main__.py | fossabot/F.I.D.E | ebc749d557847c075645d0ff287ab95f763339b5 | [
"MIT"
] | 11 | 2017-10-22T13:08:43.000Z | 2018-01-20T14:28:29.000Z | src/worker/__main__.py | fossabot/F.I.D.E | ebc749d557847c075645d0ff287ab95f763339b5 | [
"MIT"
] | null | null | null | from flask import Flask, render_template
from flask_socketio import SocketIO
from base import Base
app = Flask(__name__)
app.config['SECRET_KEY'] = 'secret!'
socketio = SocketIO(app)
socketio.on_namespace(Base('/'))
socketio.run(app)
| 19.75 | 40 | 0.772152 | 33 | 237 | 5.30303 | 0.454545 | 0.102857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113924 | 237 | 11 | 41 | 21.545455 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0.075949 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
03c087cb2901cbd885c969b97ee0c671a9121403 | 576 | py | Python | tests/common.py | Majik-Industries/majik-obfuscate | 2308a9d6d2d8f5a3036f0b3b8b1a6fb5fabc5314 | [
"Apache-2.0"
] | null | null | null | tests/common.py | Majik-Industries/majik-obfuscate | 2308a9d6d2d8f5a3036f0b3b8b1a6fb5fabc5314 | [
"Apache-2.0"
] | null | null | null | tests/common.py | Majik-Industries/majik-obfuscate | 2308a9d6d2d8f5a3036f0b3b8b1a6fb5fabc5314 | [
"Apache-2.0"
] | null | null | null | import os
# Local
import majik.obfuscate
ALGORITHMS = [
majik.obfuscate.Algorithm.AES128,
majik.obfuscate.Algorithm.AES192,
majik.obfuscate.Algorithm.AES256,
]
TESTSIZES = [0, 1, 15, 16, 17, 16384, 1048575, 1048576, 1048577]
def random_text(size):
output = []
while True:
block = os.uran... | 20.571429 | 64 | 0.569444 | 68 | 576 | 4.808824 | 0.632353 | 0.171254 | 0.211009 | 0.091743 | 0.122324 | 0 | 0 | 0 | 0 | 0 | 0 | 0.124682 | 0.317708 | 576 | 27 | 65 | 21.333333 | 0.707379 | 0.008681 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.1 | 0 | 0.2 | 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 |
03c4885cd4d3fe553ceb3f3e3a6c215ee3884e42 | 20,008 | py | Python | resolwe_bio/tools/make_multireport.py | gregorjerse/resolwe-bio | 80f1e354cf0014a1eeff00acc112c622a2a044a9 | [
"Apache-2.0"
] | 12 | 2015-12-07T18:29:27.000Z | 2022-03-16T08:00:18.000Z | resolwe_bio/tools/make_multireport.py | gregorjerse/resolwe-bio | 80f1e354cf0014a1eeff00acc112c622a2a044a9 | [
"Apache-2.0"
] | 480 | 2015-11-20T21:46:43.000Z | 2022-03-28T12:40:57.000Z | resolwe_bio/tools/make_multireport.py | gregorjerse/resolwe-bio | 80f1e354cf0014a1eeff00acc112c622a2a044a9 | [
"Apache-2.0"
] | 45 | 2015-11-19T14:54:07.000Z | 2022-02-13T21:36:50.000Z | #!/usr/bin/env python3
"""Generate amplicon multireport."""
import argparse
import collections
import csv
import re
import subprocess
import numpy as np
import pandas as pd
from bokeh import palettes
from bokeh.models import (
BasicTicker,
ColorBar,
ColumnDataSource,
HoverTool,
LinearColorMapper,
... | 35.985612 | 114 | 0.577069 | 2,417 | 20,008 | 4.587919 | 0.201903 | 0.012986 | 0.017134 | 0.016232 | 0.196772 | 0.139057 | 0.104428 | 0.079899 | 0.057895 | 0.044549 | 0 | 0.010778 | 0.285836 | 20,008 | 555 | 115 | 36.05045 | 0.765274 | 0.117653 | 0 | 0.099078 | 1 | 0.004608 | 0.145352 | 0.033784 | 0 | 0 | 0 | 0 | 0.002304 | 1 | 0.032258 | false | 0 | 0.023041 | 0 | 0.089862 | 0.002304 | 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 |
03c60a47c8245b4d3ce6f3d58b07171948930ebf | 2,867 | py | Python | ref/consistent_hash.py | KarizCache/serverless | c5735afee29e104f3909f3b0140e993d461a5420 | [
"MIT"
] | null | null | null | ref/consistent_hash.py | KarizCache/serverless | c5735afee29e104f3909f3b0140e993d461a5420 | [
"MIT"
] | null | null | null | ref/consistent_hash.py | KarizCache/serverless | c5735afee29e104f3909f3b0140e993d461a5420 | [
"MIT"
] | null | null | null | from hashlib import sha256
from urllib.parse import urlparse, urlunparse
# Based on (and should return the same results as):
# https://dev.azure.com/msresearch/Serverless-Efficiency/_git/azure-webjobs-sdk?path=/src/Microsoft.Azure.WebJobs.Host/FunctionDataCache/ConsistentHash.cs
class ConsistentHash:
def __init_... | 33.337209 | 154 | 0.58842 | 374 | 2,867 | 4.347594 | 0.355615 | 0.04428 | 0.03444 | 0.04059 | 0.054121 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012358 | 0.294384 | 2,867 | 85 | 155 | 33.729412 | 0.791399 | 0.234043 | 0 | 0.074074 | 0 | 0 | 0.025665 | 0 | 0 | 0 | 0 | 0.011765 | 0 | 1 | 0.148148 | false | 0 | 0.037037 | 0 | 0.314815 | 0.092593 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
03c8d3c54bd88902f63780d6fd619b0d7b1a972c | 2,707 | py | Python | src/parseaia/otherclasses.py | LasanhaVonW/parseaia | b7ad1640a8fe06443c00d7effcca38b3870cf334 | [
"MIT"
] | 1 | 2022-02-04T13:58:58.000Z | 2022-02-04T13:58:58.000Z | src/parseaia/otherclasses.py | LasanhaVonW/parseaia | b7ad1640a8fe06443c00d7effcca38b3870cf334 | [
"MIT"
] | 1 | 2022-03-02T21:45:33.000Z | 2022-03-02T21:45:33.000Z | src/parseaia/otherclasses.py | LasanhaVonW/parseaia | b7ad1640a8fe06443c00d7effcca38b3870cf334 | [
"MIT"
] | 1 | 2022-03-02T13:13:57.000Z | 2022-03-02T13:13:57.000Z | import os
import mutagen
from PIL import ImageFont
from mutagen import File
import logging
logger = logging.getLogger(__name__)
class Base:
pass
class Asset:
filename: str
class TextAsset(Asset):
data: str
def __init__(self, filepath, filename):
self.filename = filename
with op... | 27.907216 | 117 | 0.650536 | 333 | 2,707 | 5.15015 | 0.354354 | 0.046647 | 0.041983 | 0.055394 | 0.516035 | 0.516035 | 0.491545 | 0.451895 | 0.451895 | 0.393586 | 0 | 0.001502 | 0.261914 | 2,707 | 96 | 118 | 28.197917 | 0.856857 | 0.141854 | 0 | 0.441176 | 0 | 0 | 0.011663 | 0 | 0 | 0 | 0 | 0.010417 | 0 | 1 | 0.088235 | false | 0.014706 | 0.073529 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
03caece70c030f0dffa19de0a38b00782367de3e | 648 | py | Python | callbacks/second_tab/remove_clickData.py | Zhiji022/Kelowna_cultural_plan_survey_analysis | 71de28c0ad8c69183a8eaf8039273dd92d5a73ce | [
"MIT"
] | null | null | null | callbacks/second_tab/remove_clickData.py | Zhiji022/Kelowna_cultural_plan_survey_analysis | 71de28c0ad8c69183a8eaf8039273dd92d5a73ce | [
"MIT"
] | null | null | null | callbacks/second_tab/remove_clickData.py | Zhiji022/Kelowna_cultural_plan_survey_analysis | 71de28c0ad8c69183a8eaf8039273dd92d5a73ce | [
"MIT"
] | null | null | null | from dash.dependencies import Input, Output
from server import app
@app.callback(Output('stacked_bar', 'clickData'),
[Input('remove_clickData', 'n_clicks')])
def reset_click_data_callback(n_clicks):
return None
@app.callback(Output('remove_clickData', 'style'),
[Input('stacked_bar', 'c... | 40.5 | 128 | 0.666667 | 76 | 648 | 5.5 | 0.486842 | 0.064593 | 0.08134 | 0.124402 | 0.301435 | 0.301435 | 0.301435 | 0.301435 | 0.301435 | 0.301435 | 0 | 0 | 0.157407 | 648 | 15 | 129 | 43.2 | 0.765568 | 0 | 0 | 0 | 0 | 0 | 0.337963 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.153846 | 0.076923 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
03ce0719188c2b4c19cee503b7c8db95d3f78475 | 1,209 | py | Python | exercises/en/test_03_13.py | Lavendulaa/programming-in-python-for-data-science | bc41da8afacf4c180ae0ff9c6dc26a7e6292252f | [
"MIT"
] | 1 | 2020-06-26T20:15:44.000Z | 2020-06-26T20:15:44.000Z | exercises/en/test_03_13.py | Lavendulaa/programming-in-python-for-data-science | bc41da8afacf4c180ae0ff9c6dc26a7e6292252f | [
"MIT"
] | 20 | 2020-06-15T23:05:20.000Z | 2020-09-01T22:07:45.000Z | exercises/en/test_03_13.py | UBC-MDS/MCL-programming-in-python | 22836d9013d3e3d1b1074678ba7dc3ee2e66f398 | [
"MIT"
] | 1 | 2020-06-25T20:53:13.000Z | 2020-06-25T20:53:13.000Z | def test():
# Here we can either check objects created in the solution code, or the
# string value of the solution, available as __solution__. A helper for
# printing formatted messages is available as __msg__. See the testTemplate
# in the meta.json for details.
# If an assertion fails, the messag... | 63.631579 | 134 | 0.717122 | 177 | 1,209 | 4.649718 | 0.508475 | 0.036452 | 0.047388 | 0.058323 | 0.070474 | 0.070474 | 0.070474 | 0.070474 | 0 | 0 | 0 | 0.006085 | 0.18445 | 1,209 | 18 | 135 | 67.166667 | 0.8286 | 0.24483 | 0 | 0 | 0 | 0.090909 | 0.390298 | 0 | 0 | 0 | 0 | 0 | 0.545455 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.090909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 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 |
03d1f752db89f6eda46914e5143ca4c7d0d64bda | 234 | py | Python | dr_twitter/accounts/admin.py | squadran2003/dr_twitter | 8fa8592a2f343853be47aa213c463a6d026cc96c | [
"MIT"
] | null | null | null | dr_twitter/accounts/admin.py | squadran2003/dr_twitter | 8fa8592a2f343853be47aa213c463a6d026cc96c | [
"MIT"
] | 4 | 2021-06-08T21:50:45.000Z | 2022-03-12T00:36:42.000Z | dr_twitter/accounts/admin.py | squadran2003/dr_twitter | 8fa8592a2f343853be47aa213c463a6d026cc96c | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Profile
# Register your models here.
class ProfileAdmin(admin.ModelAdmin):
fields = (
'user','image','following',
)
admin.site.register(Profile, ProfileAdmin)
| 16.714286 | 42 | 0.705128 | 26 | 234 | 6.346154 | 0.692308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.188034 | 234 | 13 | 43 | 18 | 0.868421 | 0.111111 | 0 | 0 | 0 | 0 | 0.087379 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.571429 | 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 |
03d4052aee007fe503f9a9369270d5f08708c8b3 | 7,994 | py | Python | metadata-etl/src/main/resources/jython/MultiproductLoad.py | simplesteph/WhereHows | e34bbcc629d529238a62b4bd4405713f8ee1519c | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | metadata-etl/src/main/resources/jython/MultiproductLoad.py | simplesteph/WhereHows | e34bbcc629d529238a62b4bd4405713f8ee1519c | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | metadata-etl/src/main/resources/jython/MultiproductLoad.py | simplesteph/WhereHows | e34bbcc629d529238a62b4bd4405713f8ee1519c | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2020-02-03T14:12:46.000Z | 2021-07-25T03:23:56.000Z | #
# Copyright 2015 LinkedIn Corp. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | 42.073684 | 134 | 0.711909 | 1,224 | 7,994 | 4.328431 | 0.196895 | 0.029256 | 0.015289 | 0.018686 | 0.378633 | 0.283692 | 0.214232 | 0.181389 | 0.144394 | 0.136655 | 0 | 0.009657 | 0.183888 | 7,994 | 189 | 135 | 42.296296 | 0.802422 | 0.058669 | 0 | 0.110345 | 0 | 0.048276 | 0.626814 | 0.032885 | 0 | 0 | 0 | 0 | 0 | 1 | 0.048276 | false | 0.013793 | 0.027586 | 0 | 0.082759 | 0 | 0 | 0 | 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 |
03e508a6ab9c34978b3eed5fd3c920d6fa5102a4 | 8,768 | py | Python | main.py | lauriehjb/stock_control | e7565106740fafc51ad85e12e095b5df5ca1d4d9 | [
"MIT"
] | 17 | 2018-04-18T12:57:47.000Z | 2022-01-13T15:27:21.000Z | main.py | lauriehjb/stock_control | e7565106740fafc51ad85e12e095b5df5ca1d4d9 | [
"MIT"
] | null | null | null | main.py | lauriehjb/stock_control | e7565106740fafc51ad85e12e095b5df5ca1d4d9 | [
"MIT"
] | 6 | 2019-10-12T04:18:51.000Z | 2022-03-31T13:08:47.000Z | from flask import Flask, render_template, flash, request, redirect, url_for
from flask_bootstrap import Bootstrap
from flask_login import UserMixin, LoginManager, login_required, login_user, logout_user, current_user
import time
app = Flask(__name__)
bootstrap = Bootstrap(app)
app.config['SECRET_KEY'] = 'hello RobbiJi... | 32.838951 | 112 | 0.644845 | 1,032 | 8,768 | 5.29845 | 0.187016 | 0.030724 | 0.030724 | 0.027798 | 0.433431 | 0.338149 | 0.282187 | 0.250366 | 0.227688 | 0.191478 | 0 | 0.004623 | 0.235287 | 8,768 | 266 | 113 | 32.962406 | 0.810887 | 0.016195 | 0 | 0.410377 | 0 | 0 | 0.091437 | 0.008133 | 0 | 0 | 0 | 0 | 0 | 1 | 0.070755 | false | 0.084906 | 0.117925 | 0 | 0.283019 | 0.075472 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
03e93a0fa635b253425fd4dfdfd3d36b6384d8ac | 4,833 | py | Python | new_calibrate.py | deapplegate/wtgpipeline | 9693e8562022cc97bf5a96427e22965e1a5e8497 | [
"MIT"
] | 1 | 2019-03-15T04:01:19.000Z | 2019-03-15T04:01:19.000Z | new_calibrate.py | deapplegate/wtgpipeline | 9693e8562022cc97bf5a96427e22965e1a5e8497 | [
"MIT"
] | 5 | 2017-12-11T00:11:39.000Z | 2021-07-09T17:05:16.000Z | new_calibrate.py | deapplegate/wtgpipeline | 9693e8562022cc97bf5a96427e22965e1a5e8497 | [
"MIT"
] | 2 | 2017-08-15T21:19:11.000Z | 2017-10-12T00:36:35.000Z | def plot_histo(mags):
from ppgplot import *
import Numeric
pgbeg("/XWINDOW",1,1)
pgiden()
for filter in mags.keys():
print len(mags[filter])
print mags[filter][0:20]
pgpanl(1,1)
mags_array = Numeric.array(mags[filter])
pghist(len(mags_array),mags_array,23,30,... | 33.10274 | 161 | 0.659218 | 659 | 4,833 | 4.687405 | 0.277693 | 0.03561 | 0.03302 | 0.028488 | 0.334089 | 0.270314 | 0.216251 | 0.164455 | 0.164455 | 0.154743 | 0 | 0.016402 | 0.180012 | 4,833 | 145 | 162 | 33.331034 | 0.763058 | 0.221395 | 0 | 0.273684 | 0 | 0.010526 | 0.147977 | 0.01439 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.084211 | null | null | 0.115789 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
03ec7a5751721cf9368fe50a4f5740ec61a3d9b3 | 15,731 | py | Python | mayan/apps/authentication/views/authentication_views.py | devinleighsmith/Mayan-EDMS | c927bf9a161a4b6daac9a0988db450a0ec03708b | [
"Apache-2.0"
] | null | null | null | mayan/apps/authentication/views/authentication_views.py | devinleighsmith/Mayan-EDMS | c927bf9a161a4b6daac9a0988db450a0ec03708b | [
"Apache-2.0"
] | null | null | null | mayan/apps/authentication/views/authentication_views.py | devinleighsmith/Mayan-EDMS | c927bf9a161a4b6daac9a0988db450a0ec03708b | [
"Apache-2.0"
] | null | null | null | from collections import OrderedDict
from django.conf import settings
from django.contrib import messages
from django.contrib.auth import REDIRECT_FIELD_NAME, login as django_auth_login
from django.contrib.auth.forms import SetPasswordForm
from django.contrib.auth.views import (
LoginView, LogoutView, PasswordChang... | 32.979036 | 81 | 0.641154 | 1,612 | 15,731 | 6.011166 | 0.167494 | 0.038803 | 0.024149 | 0.025284 | 0.535604 | 0.506811 | 0.473994 | 0.452838 | 0.433643 | 0.433643 | 0 | 0.000439 | 0.276206 | 15,731 | 476 | 82 | 33.048319 | 0.850606 | 0.057848 | 0 | 0.450549 | 0 | 0 | 0.102768 | 0.038019 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065934 | false | 0.104396 | 0.07967 | 0.008242 | 0.348901 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
03edf62ca576b96cbffe3f60c27bd2d8e1525d01 | 1,746 | py | Python | NoteBooks/Curso de Python/Python/Algoritmos/Sorting/Quicksort.py | Alejandro-sin/Learning_Notebooks | 161d6bed4c7b1d171b45f61c0cc6fa91e9894aad | [
"MIT"
] | 1 | 2021-02-26T13:12:22.000Z | 2021-02-26T13:12:22.000Z | NoteBooks/Curso de Python/Python/Algoritmos/Sorting/Quicksort.py | Alejandro-sin/Learning_Notebooks | 161d6bed4c7b1d171b45f61c0cc6fa91e9894aad | [
"MIT"
] | null | null | null | NoteBooks/Curso de Python/Python/Algoritmos/Sorting/Quicksort.py | Alejandro-sin/Learning_Notebooks | 161d6bed4c7b1d171b45f61c0cc6fa91e9894aad | [
"MIT"
] | null | null | null | '''
'''
# Implement a quicksort
items = [20, 6, 8, 53, 56, 23, 87, 41, 49, 19]
def quickSort(dataset, first, last):
# Comparo el inificio y el final.
if first < last:
# calculate the split point
pivotIdx = partition(dataset, first, last)
# now sort the two partitions
#Izqu... | 26.059701 | 117 | 0.615693 | 216 | 1,746 | 4.976852 | 0.425926 | 0.069767 | 0.048372 | 0.055814 | 0.063256 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020695 | 0.308133 | 1,746 | 66 | 118 | 26.454545 | 0.869205 | 0.356816 | 0 | 0.137931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015152 | 0 | 1 | 0.068966 | false | 0 | 0 | 0 | 0.103448 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ff04fe26a17b5b865f885fb0a97e9d2cf9e07cd0 | 17,125 | py | Python | h3mlcore/utils/H3Plot.py | CognutSecurity/h3mlcore | f2e4e70b9db07da249b872213ca0e68908c08e97 | [
"MIT"
] | 1 | 2019-09-20T09:23:50.000Z | 2019-09-20T09:23:50.000Z | h3mlcore/utils/H3Plot.py | CognutSecurity/h3mlcore | f2e4e70b9db07da249b872213ca0e68908c08e97 | [
"MIT"
] | null | null | null | h3mlcore/utils/H3Plot.py | CognutSecurity/h3mlcore | f2e4e70b9db07da249b872213ca0e68908c08e97 | [
"MIT"
] | null | null | null | """
This utility helper file is used for visualizing a dataset from .csv file.
The main usage of this file is for easy check how the training dataset looks like,
and to give developers a quick overview of the data they are dealing with.
Author: Huang Xiao
Email: xh0217@gmail.com
Copyright@2016, Stanford
"""
import nu... | 36.358811 | 102 | 0.507562 | 1,866 | 17,125 | 4.542337 | 0.189711 | 0.072204 | 0.052855 | 0.014866 | 0.395352 | 0.357008 | 0.329519 | 0.304979 | 0.262152 | 0.257079 | 0 | 0.008865 | 0.387387 | 17,125 | 470 | 103 | 36.43617 | 0.799066 | 0.005664 | 0 | 0.3391 | 0 | 0 | 0.061743 | 0.005592 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.062284 | null | null | 0.00692 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ff09be1ca924a1e0c33215c82d3cc7ad404d867c | 3,155 | py | Python | test.py | Wenuka/mini_deep_learning_framework | 8c32c594099981118d6f1c5d547e403454cf6016 | [
"MIT"
] | 1 | 2020-06-14T19:11:28.000Z | 2020-06-14T19:11:28.000Z | test.py | Wenuka/mini_deep_learning_framework | 8c32c594099981118d6f1c5d547e403454cf6016 | [
"MIT"
] | null | null | null | test.py | Wenuka/mini_deep_learning_framework | 8c32c594099981118d6f1c5d547e403454cf6016 | [
"MIT"
] | null | null | null | from plot_helper import plot_data
from general_helper import NNcompute_nb_errors, generate_disc_set, analyse_model
from NN_classes import NNSequential, NNRelu, NNTanh, NNLinear
from torch import set_grad_enabled
set_grad_enabled(False)
def main() :
"""
Main Function: to compute performance of Two Models with diff... | 51.721311 | 200 | 0.796513 | 499 | 3,155 | 4.691383 | 0.264529 | 0.038445 | 0.033319 | 0.029902 | 0.369927 | 0.323793 | 0.271679 | 0.245194 | 0.181974 | 0.148654 | 0 | 0.019713 | 0.115689 | 3,155 | 61 | 201 | 51.721311 | 0.819355 | 0.193344 | 0 | 0.047619 | 1 | 0 | 0.114754 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02381 | false | 0 | 0.095238 | 0 | 0.119048 | 0.02381 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ff0b352b9735a2e50165691528b79ac809a922b0 | 4,395 | py | Python | environments/utils/random_planar_graph/graphops.py | proroklab/xaer | 9a59d1ec19ffd8037697aa7ffc43246d4c0c0e69 | [
"MIT"
] | 1 | 2021-10-16T16:48:56.000Z | 2021-10-16T16:48:56.000Z | environments/utils/random_planar_graph/graphops.py | proroklab/xaer | 9a59d1ec19ffd8037697aa7ffc43246d4c0c0e69 | [
"MIT"
] | null | null | null | environments/utils/random_planar_graph/graphops.py | proroklab/xaer | 9a59d1ec19ffd8037697aa7ffc43246d4c0c0e69 | [
"MIT"
] | null | null | null | from environments.utils.random_planar_graph.DisjointSet import *
from environments.utils.random_planar_graph import triangulation
def generate_node(width, height, randstream):
return (randstream.randint(0, width-1), randstream.randint(0, height-1))
def distance2(node0, node1):
dx = node1[0] - node0[0]
dy = node1[1... | 30.520833 | 113 | 0.734243 | 658 | 4,395 | 4.764438 | 0.253799 | 0.037321 | 0.029027 | 0.017863 | 0.194896 | 0.132695 | 0.079107 | 0.054226 | 0.024242 | 0 | 0 | 0.010604 | 0.16314 | 4,395 | 143 | 114 | 30.734266 | 0.841762 | 0.202958 | 0 | 0.116071 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.017857 | 0.026786 | 0.285714 | 0 | 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 |
ff16fd64bb397c0e918e2a32e507a280e15c26c5 | 11,198 | py | Python | audioperm/audioperm.py | zabir-nabil/audioperm | e9a0e9a0f042d016a284077a447a43cfafa3f9ad | [
"MIT"
] | 8 | 2021-07-08T08:43:14.000Z | 2022-03-24T00:10:37.000Z | audioperm/audioperm.py | zabir-nabil/audioperm | e9a0e9a0f042d016a284077a447a43cfafa3f9ad | [
"MIT"
] | null | null | null | audioperm/audioperm.py | zabir-nabil/audioperm | e9a0e9a0f042d016a284077a447a43cfafa3f9ad | [
"MIT"
] | 1 | 2021-08-14T11:59:33.000Z | 2021-08-14T11:59:33.000Z | import itertools
import os
import random
import numpy as np
import librosa
import pydub
import soundfile as sf
from audioperm.utils import type_nested, noise_boundaries, type_chain, save_audio, segment_aud_eq
class AudioPerm:
"""
The main class for audioperm. Takes an audio file (or a batch of files) path or... | 40.572464 | 239 | 0.605733 | 1,552 | 11,198 | 4.204897 | 0.150129 | 0.03034 | 0.022066 | 0.029421 | 0.548268 | 0.514097 | 0.495097 | 0.48529 | 0.430432 | 0.403157 | 0 | 0.021668 | 0.291123 | 11,198 | 276 | 240 | 40.572464 | 0.800454 | 0.265762 | 0 | 0.397661 | 0 | 0.035088 | 0.092571 | 0.008254 | 0 | 0 | 0 | 0.014493 | 0 | 1 | 0.040936 | false | 0 | 0.046784 | 0 | 0.187135 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
ff1bd3a464dd78101c167d1710fd5c3a12e0350b | 361 | py | Python | Backend/bigchain_db/download.py | AriYoung00/Veritas | f81588406e606789cc0702f60ac34f0cf4fc4f61 | [
"Apache-2.0"
] | null | null | null | Backend/bigchain_db/download.py | AriYoung00/Veritas | f81588406e606789cc0702f60ac34f0cf4fc4f61 | [
"Apache-2.0"
] | null | null | null | Backend/bigchain_db/download.py | AriYoung00/Veritas | f81588406e606789cc0702f60ac34f0cf4fc4f61 | [
"Apache-2.0"
] | 1 | 2019-03-31T16:54:28.000Z | 2019-03-31T16:54:28.000Z | from bigchaindb_driver import BigchainDB
from bigchaindb_driver.crypto import generate_keypair
import json
bdb_root_url = '35.247.15.151:9984'
bdb = BigchainDB(bdb_root_url)
def get_articles(search_term):
user = generate_keypair()
return bdb.assets.get(search=search_term)
if __name__ == "__main__":
... | 25.785714 | 53 | 0.767313 | 51 | 361 | 5.039216 | 0.588235 | 0.108949 | 0.155642 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044728 | 0.132964 | 361 | 14 | 54 | 25.785714 | 0.776358 | 0 | 0 | 0 | 1 | 0 | 0.085635 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.3 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
20661439c90b3e450e4c8859c020f4ae15061791 | 3,115 | py | Python | Python/empire/betsiamites/python/jit/jit.py | Tombmyst/Empire | f28782787c5fa9127e353549b73ec90d3c82c003 | [
"Apache-2.0"
] | null | null | null | Python/empire/betsiamites/python/jit/jit.py | Tombmyst/Empire | f28782787c5fa9127e353549b73ec90d3c82c003 | [
"Apache-2.0"
] | null | null | null | Python/empire/betsiamites/python/jit/jit.py | Tombmyst/Empire | f28782787c5fa9127e353549b73ec90d3c82c003 | [
"Apache-2.0"
] | null | null | null | from empire import *
from empire.util.log import *
class JIT:
_eval_cache: Dict[Tuple[str, Union[Dict, None], Union[Mapping, None]], Any] = dict()
@staticmethod
def exec(*commands: str, globals_: Dict = None, locals_: Mapping = None) -> Union[Exception, None]:
"""
Encapsulates a... | 57.685185 | 601 | 0.671589 | 432 | 3,115 | 4.726852 | 0.328704 | 0.012243 | 0.01763 | 0.024976 | 0.304114 | 0.304114 | 0.290891 | 0.222331 | 0.222331 | 0.222331 | 0 | 0.002174 | 0.261637 | 3,115 | 53 | 602 | 58.773585 | 0.885652 | 0.529053 | 0 | 0.272727 | 0 | 0 | 0.044106 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0.090909 | 0.090909 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
206657567cbec2d073932d874def6ea92e2b4e68 | 6,395 | py | Python | scripts/zumoShield.py | Wataru-Oshima-Tokyo/zumoShield | 7d1c24c8fc6e3c95fe326923cf48215604ad3fc7 | [
"MIT"
] | null | null | null | scripts/zumoShield.py | Wataru-Oshima-Tokyo/zumoShield | 7d1c24c8fc6e3c95fe326923cf48215604ad3fc7 | [
"MIT"
] | null | null | null | scripts/zumoShield.py | Wataru-Oshima-Tokyo/zumoShield | 7d1c24c8fc6e3c95fe326923cf48215604ad3fc7 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
import traceback
import serial
from math import sqrt, cos, sin
import rospy
import tf
from time import sleep
from geometry_msgs.msg import Twist, Pose
from sensor_msgs.msg import Imu
from nav_msgs.msg import Odometry
from std_msgs.msg import String
class Zumo... | 38.065476 | 144 | 0.593589 | 858 | 6,395 | 4.354312 | 0.207459 | 0.036135 | 0.040953 | 0.059154 | 0.4106 | 0.343415 | 0.235278 | 0.117238 | 0.042827 | 0.029443 | 0 | 0.033624 | 0.265207 | 6,395 | 167 | 145 | 38.293413 | 0.761439 | 0.197185 | 0 | 0.088496 | 0 | 0 | 0.047666 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.097345 | null | null | 0.017699 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
206b279971863cfb5e1d0c7a6b3122dd016da0af | 3,830 | py | Python | joke-mysql.py | whde/JokeMysql | 9b478ebbdc84495454c3075a0e35462fafb2b864 | [
"MIT"
] | 1 | 2019-01-05T14:55:30.000Z | 2019-01-05T14:55:30.000Z | joke-mysql.py | whde/JokeMysql | 9b478ebbdc84495454c3075a0e35462fafb2b864 | [
"MIT"
] | null | null | null | joke-mysql.py | whde/JokeMysql | 9b478ebbdc84495454c3075a0e35462fafb2b864 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding:utf-8 -*-
import sys
import importlib
from bs4 import BeautifulSoup
from urllib.parse import quote
import urllib3
import string
import pymysql
root_url = 'http://www.jokeji.cn/hot.asp?action=brow'
user_agent = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14) AppleWebKit\
/537.3... | 26.413793 | 90 | 0.584073 | 489 | 3,830 | 4.492843 | 0.329243 | 0.025489 | 0.036413 | 0.043696 | 0.351388 | 0.325899 | 0.286755 | 0.286755 | 0.216204 | 0.216204 | 0 | 0.026523 | 0.27154 | 3,830 | 144 | 91 | 26.597222 | 0.760932 | 0.028198 | 0 | 0.330645 | 0 | 0.008065 | 0.120731 | 0.007529 | 0 | 0 | 0 | 0 | 0 | 1 | 0.056452 | false | 0.08871 | 0.064516 | 0 | 0.169355 | 0.104839 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
206e9868e1afa017faa468ce957c7d95a9662eab | 1,029 | py | Python | oculusVR/src/vrheadtest.py | cihuang123/pyrobot | fe620097e31d11453b5ea7ac15e40f5f5721b29a | [
"MIT"
] | null | null | null | oculusVR/src/vrheadtest.py | cihuang123/pyrobot | fe620097e31d11453b5ea7ac15e40f5f5721b29a | [
"MIT"
] | null | null | null | oculusVR/src/vrheadtest.py | cihuang123/pyrobot | fe620097e31d11453b5ea7ac15e40f5f5721b29a | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import rospy
import tf
from std_msgs.msg import Float64
from std_msgs.msg import String
from geometry_msgs.msg import PoseStamped
class subvrandpub(object):
def __init__(self):
self.sub = rospy.Subscriber("vr/head", PoseStamped, self.callback)
self.test = false
# self... | 34.3 | 126 | 0.680272 | 136 | 1,029 | 4.926471 | 0.470588 | 0.041791 | 0.113433 | 0.041791 | 0.134328 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014581 | 0.200194 | 1,029 | 30 | 127 | 34.3 | 0.799514 | 0.439261 | 0 | 0 | 0 | 0 | 0.040422 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 1 | 0.125 | false | 0 | 0.3125 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
20742670dc905f01825a9e0f6040bcc2fb83785a | 678 | py | Python | core/urls.py | andreztz/django-blog | b6b894333c4ea38dea30b5449ff51b00d8396cbc | [
"Apache-2.0"
] | 5 | 2017-06-10T17:37:49.000Z | 2020-08-24T16:11:31.000Z | core/urls.py | andreztz/DjangoBlog | e49c9abd458445232f1024812aa9e8ece68a09f7 | [
"Apache-2.0"
] | 6 | 2021-04-08T18:28:22.000Z | 2021-09-07T23:50:23.000Z | core/urls.py | andreztz/django-blog | b6b894333c4ea38dea30b5449ff51b00d8396cbc | [
"Apache-2.0"
] | null | null | null | from django.conf.urls import url
from django.conf.urls import include
from django.contrib import admin
from django.contrib.sitemaps.views import sitemap
from django.urls import path
from blog.sitemap import HomePageSiteMap
from blog.sitemap import PostSiteMap
from blog.sitemap import StaticSiteMap
app_name = "core"
... | 21.1875 | 56 | 0.69469 | 78 | 678 | 6.025641 | 0.358974 | 0.106383 | 0.095745 | 0.134043 | 0.102128 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.188791 | 678 | 31 | 57 | 21.870968 | 0.854545 | 0 | 0 | 0 | 0 | 0 | 0.143068 | 0.058997 | 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 |
207828473d7df63377f43b19c3b992da0d5ff943 | 465 | py | Python | api/src/consumer/admin.py | asermax/msa | 2d74167f5da661517e7deaea05a5a29ba677c206 | [
"MIT"
] | null | null | null | api/src/consumer/admin.py | asermax/msa | 2d74167f5da661517e7deaea05a5a29ba677c206 | [
"MIT"
] | null | null | null | api/src/consumer/admin.py | asermax/msa | 2d74167f5da661517e7deaea05a5a29ba677c206 | [
"MIT"
] | null | null | null | from django.contrib import admin
from . import models
class OrganizationAdmin(admin.ModelAdmin):
model = models.Organization
prepopulated_fields = {'slug': ('name',)}
class OrderProductInline(admin.TabularInline):
model = models.OrderProduct
class OrderAdmin(admin.ModelAdmin):
model = models.Order... | 22.142857 | 59 | 0.765591 | 47 | 465 | 7.553191 | 0.489362 | 0.092958 | 0.112676 | 0.146479 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 465 | 20 | 60 | 23.25 | 0.880893 | 0 | 0 | 0 | 0 | 0 | 0.017204 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
2082dc313b62aa42d4f3ec59d72931c21b41d3b3 | 44,834 | py | Python | templates.py | tommccoy1/hans | 7299f6f657089ce06a0f98e7e81f8d0f5b7741ce | [
"MIT"
] | 109 | 2019-02-15T15:03:11.000Z | 2022-01-04T03:34:12.000Z | templates.py | tommccoy1/hans | 7299f6f657089ce06a0f98e7e81f8d0f5b7741ce | [
"MIT"
] | 5 | 2019-02-18T12:50:25.000Z | 2022-02-11T03:38:12.000Z | templates.py | tommccoy1/hans | 7299f6f657089ce06a0f98e7e81f8d0f5b7741ce | [
"MIT"
] | 15 | 2019-03-08T07:08:48.000Z | 2022-03-26T23:53:55.000Z | import random
import numpy as np
def despace(string):
new_string = string.replace(" ", " ")
if new_string == string:
return string
else:
return despace(new_string)
def remove_terminals(tree):
words = tree.split()
new_words = []
for word in words:
if word[0] == "(... | 74.973244 | 535 | 0.480261 | 6,655 | 44,834 | 3.130729 | 0.07453 | 0.047996 | 0.083657 | 0.103672 | 0.676986 | 0.620878 | 0.588769 | 0.548692 | 0.532805 | 0.511495 | 0 | 0.05965 | 0.182228 | 44,834 | 597 | 536 | 75.098827 | 0.508619 | 0.046817 | 0 | 0.187793 | 0 | 0.016432 | 0.326804 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.021127 | 0.007042 | null | null | 0.103286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
208359499df6d1f71ddbcf0e58b5dab7ece9a3f2 | 1,226 | py | Python | vnpy/trader/tiingodata.py | xiumingxu/vnpy-xx | 8b2d9ecdabcb7931d46fd92fad2d3701b7e66975 | [
"MIT"
] | null | null | null | vnpy/trader/tiingodata.py | xiumingxu/vnpy-xx | 8b2d9ecdabcb7931d46fd92fad2d3701b7e66975 | [
"MIT"
] | null | null | null | vnpy/trader/tiingodata.py | xiumingxu/vnpy-xx | 8b2d9ecdabcb7931d46fd92fad2d3701b7e66975 | [
"MIT"
] | null | null | null | from datetime import timedelta
from typing import List, Optional
from pytz import timezone
from numpy import ndarray
from iexfinance.stocks import Stock, get_historical_data
# from iexdatac import init as iexdata_init
# from iexdatac.services.basic import all_instruments as iexdata_all_instruments
# from iexdatac.ser... | 27.863636 | 103 | 0.771615 | 165 | 1,226 | 5.642424 | 0.557576 | 0.051557 | 0.042965 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006763 | 0.155791 | 1,226 | 43 | 104 | 28.511628 | 0.892754 | 0.402121 | 0 | 0 | 0 | 0 | 0.045706 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.391304 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
208718d4e95c85bd8e61745e614486e541491220 | 1,390 | py | Python | solutions/prog10.py | aditya95sriram/aoc2021 | e73c2bb9707858ab850b8a4a8dbee0d6e78bd8b8 | [
"MIT"
] | null | null | null | solutions/prog10.py | aditya95sriram/aoc2021 | e73c2bb9707858ab850b8a4a8dbee0d6e78bd8b8 | [
"MIT"
] | null | null | null | solutions/prog10.py | aditya95sriram/aoc2021 | e73c2bb9707858ab850b8a4a8dbee0d6e78bd8b8 | [
"MIT"
] | null | null | null | import re, os, sys
from functools import reduce
from itertools import combinations as comb, permutations as perm, combinations_with_replacement as combr
from operator import itemgetter
from pprint import pprint
from math import *
from collections import defaultdict
import networkx as nx
import numpy as np
def dprint(d... | 26.730769 | 104 | 0.611511 | 200 | 1,390 | 4.23 | 0.425 | 0.070922 | 0.056738 | 0.047281 | 0.104019 | 0.049645 | 0 | 0 | 0 | 0 | 0 | 0.020677 | 0.234532 | 1,390 | 51 | 105 | 27.254902 | 0.774436 | 0.060432 | 0 | 0 | 0 | 0 | 0.012298 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.214286 | 0.095238 | 0.547619 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
20877968a0f2e81cdfacca4e37267db983fd1afb | 2,457 | py | Python | home/pi/blissflixx/lib/player/ytdlprocnoproxy.py | erick-guerra/Royalbox | 967dbbdddc94b9968e6eba873f0d20328fd86f66 | [
"MIT"
] | 1 | 2022-01-29T11:17:58.000Z | 2022-01-29T11:17:58.000Z | home/pi/blissflixx/lib/player/ytdlprocnoproxy.py | erick-guerra/Royalbox | 967dbbdddc94b9968e6eba873f0d20328fd86f66 | [
"MIT"
] | null | null | null | home/pi/blissflixx/lib/player/ytdlprocnoproxy.py | erick-guerra/Royalbox | 967dbbdddc94b9968e6eba873f0d20328fd86f66 | [
"MIT"
] | null | null | null | import cherrypy, locations, os, ythelper, json
from processpipe import ExternalProcess, ProcessException, OUT_FILE
YTDL_PATH = os.path.join(locations.YTUBE_PATH, "youtube_dl")
YTDL_PATH = os.path.join(YTDL_PATH, "__main__.py")
class YoutubeDlNoProxy(ExternalProcess):
def __init__(self, url):
ExternalProcess.__... | 27.3 | 73 | 0.592593 | 323 | 2,457 | 4.399381 | 0.318885 | 0.057002 | 0.049261 | 0.031668 | 0.102041 | 0.066151 | 0 | 0 | 0 | 0 | 0 | 0.012009 | 0.254375 | 2,457 | 89 | 74 | 27.606742 | 0.763646 | 0.024013 | 0 | 0.15493 | 0 | 0 | 0.203758 | 0.011691 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.028169 | 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 |
208ce03e1adf55cccc1612179ddb3a787732e2c9 | 4,471 | py | Python | profile_api/views.py | lahirupw/profile-rest-api | abc3b6d2245d167103bfdb5fef1b06c6398e3859 | [
"MIT"
] | null | null | null | profile_api/views.py | lahirupw/profile-rest-api | abc3b6d2245d167103bfdb5fef1b06c6398e3859 | [
"MIT"
] | null | null | null | profile_api/views.py | lahirupw/profile-rest-api | abc3b6d2245d167103bfdb5fef1b06c6398e3859 | [
"MIT"
] | null | null | null | from rest_framework.views import APIView
from rest_framework.response import Response
from rest_framework import status
from profile_api import serializers
from rest_framework import viewsets
from profile_api import models
from rest_framework.authentication import TokenAuthentication
from profile_api import permissions... | 36.647541 | 82 | 0.672556 | 489 | 4,471 | 6.034765 | 0.306748 | 0.061674 | 0.051847 | 0.040325 | 0.291766 | 0.164012 | 0.164012 | 0.140969 | 0.140969 | 0.140969 | 0 | 0.001736 | 0.227019 | 4,471 | 121 | 83 | 36.950413 | 0.852141 | 0.127041 | 0 | 0.235294 | 0 | 0 | 0.134137 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.141176 | false | 0 | 0.141176 | 0 | 0.647059 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2095f2f3acb3daa1543edc8879832e72bc2c188c | 2,589 | py | Python | myresources/crocodile/toolbox.py | thisismygitrepo/crocodile | fd92798486e24350bb84ac6e7ff7640e8f9cd880 | [
"Apache-2.0"
] | 2 | 2021-06-22T00:18:31.000Z | 2021-11-07T07:44:50.000Z | myresources/crocodile/toolbox.py | thisismygitrepo/crocodile | fd92798486e24350bb84ac6e7ff7640e8f9cd880 | [
"Apache-2.0"
] | null | null | null | myresources/crocodile/toolbox.py | thisismygitrepo/crocodile | fd92798486e24350bb84ac6e7ff7640e8f9cd880 | [
"Apache-2.0"
] | 1 | 2022-03-26T11:50:58.000Z | 2022-03-26T11:50:58.000Z |
"""
A collection of classes extending the functionality of Python's builtins.
author: Alex Al-Saffar
email: programmer@usa.com
This is `export file` while one can dictate what will be exposed with toolbox
"""
from crocodile import core
from crocodile.core import datetime, dt, os, sys, string, random, np, copy, dill
... | 31.573171 | 120 | 0.73117 | 324 | 2,589 | 5.657407 | 0.429012 | 0.049645 | 0.041462 | 0.016367 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002316 | 0.166087 | 2,589 | 81 | 121 | 31.962963 | 0.846688 | 0.180379 | 0 | 0 | 0 | 0 | 0.03052 | 0 | 0 | 0 | 0 | 0.012346 | 0 | 1 | 0.044444 | false | 0.022222 | 0.266667 | 0 | 0.355556 | 0.022222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
209c3c59fc18e1d2e95ffb756f2a3d8eb2e014a2 | 389 | py | Python | backup_example/transpiler/parser_example1.py | brichet/PyCrop2ML | 7177996f72a8d95fdbabb772a16f1fd87b1d033e | [
"MIT"
] | 5 | 2020-06-21T18:58:04.000Z | 2022-01-29T21:32:28.000Z | backup_example/transpiler/parser_example1.py | brichet/PyCrop2ML | 7177996f72a8d95fdbabb772a16f1fd87b1d033e | [
"MIT"
] | 27 | 2018-12-04T15:35:44.000Z | 2022-03-11T08:25:03.000Z | backup_example/transpiler/parser_example1.py | brichet/PyCrop2ML | 7177996f72a8d95fdbabb772a16f1fd87b1d033e | [
"MIT"
] | 7 | 2019-04-20T02:25:22.000Z | 2021-11-04T07:52:35.000Z | from pycropml.transpiler import Parser
from path import Path
def test_parser1():
filename = Path.getcwd()/"tests_transpiler"/"data"/"example1.pyx"
tree_example1 = Parser.parser(filename)
treeast = tree_example1.dump()
treefile= Path.getcwd()/"tests_transpiler"/"output"/"tree_example1.ast"
with open... | 29.923077 | 75 | 0.709512 | 49 | 389 | 5.489796 | 0.55102 | 0.133829 | 0.111524 | 0.185874 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018349 | 0.159383 | 389 | 13 | 76 | 29.923077 | 0.804281 | 0 | 0 | 0 | 0 | 0 | 0.184615 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.2 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
20a1753f24508a146dbd62463718244a49e1b9cb | 831 | py | Python | pit.py | mikhail/alpha-zero-general | 1b2641ef823a8dedd49159ecd5b69b77c7165731 | [
"MIT"
] | null | null | null | pit.py | mikhail/alpha-zero-general | 1b2641ef823a8dedd49159ecd5b69b77c7165731 | [
"MIT"
] | null | null | null | pit.py | mikhail/alpha-zero-general | 1b2641ef823a8dedd49159ecd5b69b77c7165731 | [
"MIT"
] | 1 | 2021-08-23T02:17:06.000Z | 2021-08-23T02:17:06.000Z | import Arena
from MCTS import MCTS
from pytorch.NNet import NNetWrapper as NNet
import numpy as np
from curling.game import CurlingGame
from curling.players import HumanPlayer
"""
use this script to play any two agents against each other, or play manually with
any agent.
"""
class dotdict(dict):
# allow obj.att... | 22.459459 | 84 | 0.738869 | 122 | 831 | 4.97541 | 0.606557 | 0.032949 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022599 | 0.148014 | 831 | 36 | 85 | 23.083333 | 0.834746 | 0.067389 | 0 | 0 | 0 | 0 | 0.089153 | 0.065379 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.333333 | 0.055556 | 0.5 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
20a711cb3f7a4ddd124714c6cb8fb46abc32be78 | 393 | py | Python | apps/taobao/migrations/0005_auto_20191029_1136.py | fengjinqi/linjuanbang | 8cdc4e81df73ccd737ac547da7f2c7dca545862a | [
"MIT"
] | 5 | 2019-10-30T01:16:30.000Z | 2020-06-14T03:32:19.000Z | apps/taobao/migrations/0005_auto_20191029_1136.py | fengjinqi/linjuanbang | 8cdc4e81df73ccd737ac547da7f2c7dca545862a | [
"MIT"
] | 2 | 2020-10-12T07:12:48.000Z | 2021-06-02T03:15:47.000Z | apps/taobao/migrations/0005_auto_20191029_1136.py | fengjinqi/linjuanbang | 8cdc4e81df73ccd737ac547da7f2c7dca545862a | [
"MIT"
] | 3 | 2019-12-06T17:33:49.000Z | 2021-03-01T13:24:22.000Z | # Generated by Django 2.0.12 on 2019-10-29 11:36
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('taobao', '0004_banner'),
]
operations = [
migrations.AlterField(
model_name='banner',
name='pid',
field... | 20.684211 | 72 | 0.592875 | 43 | 393 | 5.325581 | 0.813953 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081851 | 0.284987 | 393 | 18 | 73 | 21.833333 | 0.733096 | 0.117048 | 0 | 0 | 1 | 0 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
20b74a927a6cef44717aaf5b6fb9bdcd301cca55 | 2,095 | py | Python | lambda-event-driven-s3-to-dynamo/service.py | sagarshah95/lambda-serverless-py | 912a40594ded3afba0ca2bafba14620da421e9d2 | [
"MIT"
] | 1 | 2021-05-26T20:41:17.000Z | 2021-05-26T20:41:17.000Z | lambda-event-driven-s3-to-dynamo/service.py | holladileep/lambda-serverless-py | 27ae2d797cde337dc55aa9258ed68a3da5cfb111 | [
"MIT"
] | null | null | null | lambda-event-driven-s3-to-dynamo/service.py | holladileep/lambda-serverless-py | 27ae2d797cde337dc55aa9258ed68a3da5cfb111 | [
"MIT"
] | null | null | null |
import datetime
import json
import os
import boto3
import pandas as pd
import io
bucket_name = os.environ['bucket_name']
dynamo_table = os.environ['dynamodb_table']
# Connect to S3
s3 = boto3.resource(
service_name='s3',
region_name='us-east-1')
# Connect to DynamoDB
resource = boto3.resource('dynamodb', re... | 24.647059 | 108 | 0.655847 | 293 | 2,095 | 4.556314 | 0.392491 | 0.058427 | 0.059925 | 0.02397 | 0.038951 | 0.038951 | 0.038951 | 0 | 0 | 0 | 0 | 0.014259 | 0.230072 | 2,095 | 84 | 109 | 24.940476 | 0.813391 | 0.156086 | 0 | 0 | 0 | 0 | 0.169134 | 0 | 0 | 0 | 0 | 0.011905 | 0 | 1 | 0.08 | false | 0 | 0.12 | 0 | 0.24 | 0.14 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.