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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bfb6340fbbc7e56129c9bfe9ba48fe36ac1730fd | 900 | py | Python | Aprendendo Python/cursopythonudamy/aula24_operadorternario.py | JlucasS777/Aprendendo-Python | a3a960260070f0d604c27fbbc41578a6ab11edb5 | [
"MIT"
] | null | null | null | Aprendendo Python/cursopythonudamy/aula24_operadorternario.py | JlucasS777/Aprendendo-Python | a3a960260070f0d604c27fbbc41578a6ab11edb5 | [
"MIT"
] | null | null | null | Aprendendo Python/cursopythonudamy/aula24_operadorternario.py | JlucasS777/Aprendendo-Python | a3a960260070f0d604c27fbbc41578a6ab11edb5 | [
"MIT"
] | null | null | null | # Operador Ternário
'''login_user = False
if login_user : # isso é o mesmo que if login_user == True:
msg = 'Usuário logado'
else:
msg = 'Usuário precisa logar'
print(msg)
print(i)'''
''' O código acima é o mesmo que :
'''
# login_user = False
# msg ='Usuário logado.'if login_user else ' Usuário precisa loga... | 30 | 111 | 0.628889 | 133 | 900 | 4.218045 | 0.496241 | 0.080214 | 0.058824 | 0.035651 | 0.114082 | 0.114082 | 0 | 0 | 0 | 0 | 0 | 0.016743 | 0.27 | 900 | 30 | 112 | 30 | 0.837139 | 0.314444 | 0 | 0 | 0 | 0 | 0.472855 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.285714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bfb69b8488c9035534337b7d04075f3c5e669cc8 | 471 | py | Python | images_of/entrypoints/bot.py | amici-ursi/ImagesOfNetwork | a8922c24b7e2b0df50282842ebb0998a3cb7d60a | [
"MIT"
] | 12 | 2016-04-23T23:24:44.000Z | 2018-09-17T04:07:56.000Z | images_of/entrypoints/bot.py | amici-ursi/ImagesOfNetwork | a8922c24b7e2b0df50282842ebb0998a3cb7d60a | [
"MIT"
] | 90 | 2016-04-10T06:12:23.000Z | 2017-07-24T14:15:38.000Z | images_of/entrypoints/bot.py | amici-ursi/ImagesOfNetwork | a8922c24b7e2b0df50282842ebb0998a3cb7d60a | [
"MIT"
] | 9 | 2016-04-24T21:30:21.000Z | 2020-06-15T13:45:12.000Z | import click
from images_of import command, settings, Reddit
from images_of.bot import Bot
@command
@click.option('--no-post', is_flag=True, help='Do not post to reddit.')
def main(no_post):
"""Reddit Network scraper and x-poster bot."""
r = Reddit('{} v6.0 /u/{}'.format(settings.NETWORK_NAME,
... | 22.428571 | 71 | 0.615711 | 67 | 471 | 4.104478 | 0.567164 | 0.065455 | 0.087273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005602 | 0.242038 | 471 | 20 | 72 | 23.55 | 0.764706 | 0.084926 | 0 | 0 | 0 | 0 | 0.122353 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.230769 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bfb6e0c1a847c2bc7fe17d92901369d447464178 | 4,740 | py | Python | server/architext/verbs/edit_world.py | JimenaAndrea/architext | fb49624f7301902a357815af0ca5d320cfc6ddb6 | [
"MIT"
] | 3 | 2020-08-02T07:14:25.000Z | 2021-04-25T12:22:53.000Z | server/architext/verbs/edit_world.py | JimenaAndrea/architext | fb49624f7301902a357815af0ca5d320cfc6ddb6 | [
"MIT"
] | 130 | 2020-07-15T12:09:30.000Z | 2021-05-27T15:02:01.000Z | server/architext/verbs/edit_world.py | JimenaAndrea/architext | fb49624f7301902a357815af0ca5d320cfc6ddb6 | [
"MIT"
] | 1 | 2021-06-10T15:51:49.000Z | 2021-06-10T15:51:49.000Z | from . import verb
import textwrap
from .. import entities
import architext.strings as strings
class EditWorld(verb.Verb):
command = _('editworld')
permissions = verb.CREATOR
def __init__(self, session):
super().__init__(session)
self.world = self.session.user.room.world_state.get_world()
... | 41.217391 | 184 | 0.606962 | 549 | 4,740 | 4.978142 | 0.23133 | 0.076473 | 0.076839 | 0.087084 | 0.448225 | 0.362971 | 0.252836 | 0.225759 | 0.183315 | 0.107574 | 0 | 0.003014 | 0.3 | 4,740 | 115 | 185 | 41.217391 | 0.820675 | 0 | 0 | 0.235294 | 0 | 0.009804 | 0.182029 | 0.017718 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068627 | false | 0 | 0.039216 | 0 | 0.186275 | 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 | 0 | 0 | 1 | 0 |
bfb7c5fc2640cb5beb6e90cd007956cfc19c4d95 | 569 | py | Python | count_and_say.py | lutianming/leetcode | 848c7470ff5fd23608cc954be23732f60488ed8a | [
"MIT"
] | null | null | null | count_and_say.py | lutianming/leetcode | 848c7470ff5fd23608cc954be23732f60488ed8a | [
"MIT"
] | null | null | null | count_and_say.py | lutianming/leetcode | 848c7470ff5fd23608cc954be23732f60488ed8a | [
"MIT"
] | null | null | null | class Solution:
# @return a string
def countAndSay(self, n):
say = '1'
for i in range(n-1):
say = self._count_say(say)
return say
def _count_say(self, s):
curr = None
count = 0
say = ""
for c in s:
if c == curr:
... | 21.884615 | 47 | 0.420035 | 68 | 569 | 3.455882 | 0.382353 | 0.034043 | 0.093617 | 0.119149 | 0.153191 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020134 | 0.476274 | 569 | 25 | 48 | 22.76 | 0.768456 | 0.02812 | 0 | 0.181818 | 0 | 0 | 0.001815 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.227273 | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bfb7d3cf4eee3e62630ca9d2b93475cfa95338cc | 2,510 | py | Python | src/1-prepare/cmftools/cmf_fldmap_downscale.py | DirkEilander/compound_hotspots | f9d7960633be80e8e24d2f2563df367cc3f060c6 | [
"BSD-3-Clause"
] | 1 | 2022-01-17T07:02:13.000Z | 2022-01-17T07:02:13.000Z | src/1-prepare/cmftools/cmf_fldmap_downscale.py | DirkEilander/compound_hotspots | f9d7960633be80e8e24d2f2563df367cc3f060c6 | [
"BSD-3-Clause"
] | null | null | null | src/1-prepare/cmftools/cmf_fldmap_downscale.py | DirkEilander/compound_hotspots | f9d7960633be80e8e24d2f2563df367cc3f060c6 | [
"BSD-3-Clause"
] | 1 | 2022-01-17T02:48:28.000Z | 2022-01-17T02:48:28.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import numpy as np
import os
from os.path import join, dirname, realpath, basename
import rasterio
import click
import glob
import subprocess
import xarray as xr
import pandas as pd
from datetime import timedelta
from rasterio.transform import from_origin
@click.command()... | 33.918919 | 94 | 0.642231 | 366 | 2,510 | 4.26776 | 0.393443 | 0.028809 | 0.03073 | 0.020487 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014209 | 0.186853 | 2,510 | 73 | 95 | 34.383562 | 0.751102 | 0.067331 | 0 | 0 | 0 | 0 | 0.087983 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018519 | false | 0 | 0.203704 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bfb8ead9c6c7c310a5414613dd9bbb4a9dc0c78b | 5,083 | py | Python | scaling.py | samsalemi/OpenSim-Python-Simulation | f66bcce7aaaf3b4095d623b3ad2df484d123fa24 | [
"Apache-2.0"
] | 2 | 2021-11-01T20:21:23.000Z | 2021-11-26T03:14:25.000Z | scaling.py | samsalemi/OpenSim-Python-Simulation | f66bcce7aaaf3b4095d623b3ad2df484d123fa24 | [
"Apache-2.0"
] | null | null | null | scaling.py | samsalemi/OpenSim-Python-Simulation | f66bcce7aaaf3b4095d623b3ad2df484d123fa24 | [
"Apache-2.0"
] | null | null | null | # June 7 2018
# Author: Samuel Salemi
# University of Guelph Masters Graduate
# This script determines scaling factors and places them on model Gait2354
def scale():
import os
import opensim as osim
import shutil
import directories
# Global Directories
allDir = list(directori... | 38.801527 | 89 | 0.69821 | 501 | 5,083 | 7.061876 | 0.391218 | 0.054268 | 0.013567 | 0.011871 | 0.072923 | 0.054833 | 0.054833 | 0.054833 | 0.054833 | 0.054833 | 0 | 0.00905 | 0.217391 | 5,083 | 130 | 90 | 39.1 | 0.880342 | 0.277592 | 0 | 0.042254 | 0 | 0 | 0.054472 | 0.013761 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014085 | false | 0 | 0.056338 | 0 | 0.084507 | 0.014085 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
bfbab397793ac92eea059f9b2857f1026c1521b5 | 1,159 | py | Python | Retos/Ordenar Lista/ordenarLista.py | juanpanu/Juan_DS_Path | 24e71616dae692e931e95cd3815ca88fa9b8a46a | [
"MIT"
] | null | null | null | Retos/Ordenar Lista/ordenarLista.py | juanpanu/Juan_DS_Path | 24e71616dae692e931e95cd3815ca88fa9b8a46a | [
"MIT"
] | null | null | null | Retos/Ordenar Lista/ordenarLista.py | juanpanu/Juan_DS_Path | 24e71616dae692e931e95cd3815ca88fa9b8a46a | [
"MIT"
] | null | null | null | # Ejercicio #2: Ordenamiento en listas.
# Tecnologías sugeridas: Python o Javascript (elegir), Git
# Realizar un programa que dada un lista de números desordenada, retorne una lista con
# todos sus valores ordenados de menor a mayor. No se puede utilizar la función “sort” u
# otras existentes en Javascript para el orde... | 34.088235 | 97 | 0.719586 | 178 | 1,159 | 4.685393 | 0.52809 | 0.043165 | 0.02518 | 0.043165 | 0.046763 | 0.038369 | 0.038369 | 0 | 0 | 0 | 0 | 0.019169 | 0.189819 | 1,159 | 34 | 98 | 34.088235 | 0.86901 | 0.559103 | 0 | 0 | 0 | 0 | 0.064257 | 0 | 0 | 0 | 0 | 0.029412 | 0 | 1 | 0.052632 | false | 0 | 0.052632 | 0 | 0.105263 | 0.210526 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
bfbbe34de6cfae26177dec781f0aff1524bf1b1b | 1,666 | py | Python | tirmite/bowtie2_wrappers.py | Adamtaranto/mapmite | e2e85d73fa1df3a1c5d9893f7b35bcb6f6a1558b | [
"MIT"
] | 2 | 2019-05-30T00:46:27.000Z | 2019-12-18T11:01:49.000Z | tirmite/bowtie2_wrappers.py | Adamtaranto/mapmite | e2e85d73fa1df3a1c5d9893f7b35bcb6f6a1558b | [
"MIT"
] | 10 | 2017-09-19T01:24:02.000Z | 2021-04-08T00:35:40.000Z | tirmite/bowtie2_wrappers.py | Adamtaranto/mapmite | e2e85d73fa1df3a1c5d9893f7b35bcb6f6a1558b | [
"MIT"
] | 3 | 2019-12-18T11:01:51.000Z | 2021-09-02T01:26:34.000Z | import os
from shlex import quote
def _bowtie2build_cmd(bt2Path="bowtie2-build",IdxPath="db/GenIdx",genome=None):
'''Construct the bowtie2-build command'''
# Base command
cmd = ' '.join(['mkdir db &&',quote(bt2Path),quote(os.path.abspath(genome)),IdxPath])
return cmd
def _bowtie2_cmd(bt2Path="bowtie2",tirFasta=No... | 47.6 | 178 | 0.676471 | 243 | 1,666 | 4.613169 | 0.374486 | 0.057984 | 0.021409 | 0.035682 | 0.371097 | 0.335415 | 0.335415 | 0.335415 | 0.335415 | 0.271186 | 0 | 0.02686 | 0.128451 | 1,666 | 34 | 179 | 49 | 0.745179 | 0.365546 | 0 | 0.125 | 0 | 0.125 | 0.324952 | 0.021277 | 0 | 0 | 0.010638 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.125 | 0 | 0.5 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bfbbe35054b047337e457c136d547a61c6afb53d | 2,716 | py | Python | action_blocking_helping_functions.py | netceteragroup/Flatland-Challenge | 4292e8aa778d264d025ad6d32926840864b22a21 | [
"MIT"
] | 4 | 2021-01-15T10:49:33.000Z | 2021-12-31T08:11:35.000Z | action_blocking_helping_functions.py | netceteragroup/Flatland-Challenge | 4292e8aa778d264d025ad6d32926840864b22a21 | [
"MIT"
] | null | null | null | action_blocking_helping_functions.py | netceteragroup/Flatland-Challenge | 4292e8aa778d264d025ad6d32926840864b22a21 | [
"MIT"
] | null | null | null | from envs.flatland.observations.segment_graph import Graph
def get_coords(direction):
if direction == 0:
return -1, 0
elif direction == 1:
return 0, 1
elif direction == 2:
return 1, 0
elif direction == 3:
return 0, -1
def stop_deadlock_when_unavoidable(timestamp_segme... | 29.846154 | 118 | 0.591679 | 375 | 2,716 | 4.088 | 0.192 | 0.067841 | 0.117417 | 0.039139 | 0.313112 | 0.193085 | 0.193085 | 0.142205 | 0.142205 | 0.142205 | 0 | 0.033636 | 0.310383 | 2,716 | 90 | 119 | 30.177778 | 0.784837 | 0.082842 | 0 | 0.416667 | 0 | 0 | 0.002818 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.069444 | false | 0 | 0.013889 | 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 | 0 | 0 | 0 | 0 | 1 | 0 |
bfbd4529c7fa51f7002af4f36973add53c6da978 | 997 | py | Python | venv/lib/python2.7/site-packages/ebcli/objects/event.py | zwachtel11/fruitful-backend | 45b8994917182e7b684b9e25944cc79c9494c9f3 | [
"MIT"
] | 4 | 2018-04-19T19:56:53.000Z | 2021-06-28T19:53:41.000Z | venv/lib/python2.7/site-packages/ebcli/objects/event.py | zwachtel11/fruitful-backend | 45b8994917182e7b684b9e25944cc79c9494c9f3 | [
"MIT"
] | 1 | 2020-06-03T13:57:07.000Z | 2020-06-22T10:27:48.000Z | venv/lib/python2.7/site-packages/ebcli/objects/event.py | zwachtel11/fruitful-backend | 45b8994917182e7b684b9e25944cc79c9494c9f3 | [
"MIT"
] | 3 | 2018-07-30T05:34:42.000Z | 2019-04-30T20:02:54.000Z | # Copyright 2014 Amazon.com, Inc. or its affiliates. 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. A copy of
# the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" file accompa... | 39.88 | 85 | 0.718154 | 141 | 997 | 4.964539 | 0.524823 | 0.085714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010101 | 0.205617 | 997 | 24 | 86 | 41.541667 | 0.873737 | 0.537613 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bfbdb2606c7d9fbb6e570e314eadff3809426b49 | 13,493 | py | Python | com/vmware/vapi/bindings/struct.py | sumitrsystems/Vmware | 7705d9979bee71f02c71d63890616409044cba08 | [
"MIT"
] | null | null | null | com/vmware/vapi/bindings/struct.py | sumitrsystems/Vmware | 7705d9979bee71f02c71d63890616409044cba08 | [
"MIT"
] | null | null | null | com/vmware/vapi/bindings/struct.py | sumitrsystems/Vmware | 7705d9979bee71f02c71d63890616409044cba08 | [
"MIT"
] | null | null | null | """
Bindings data classes
"""
__author__ = 'VMware, Inc.'
__copyright__ = 'Copyright 2015-2016 VMware, Inc. All rights reserved. -- VMware Confidential' # pylint: disable=line-too-long
import decimal
import json
import six
import sys
from vmware.vapi.bindings.common import raise_core_exception
from vmware.vapi.dat... | 34.955959 | 128 | 0.613207 | 1,607 | 13,493 | 4.969508 | 0.148102 | 0.038567 | 0.026296 | 0.019033 | 0.378162 | 0.339344 | 0.299274 | 0.269472 | 0.240671 | 0.204358 | 0 | 0.002849 | 0.29771 | 13,493 | 385 | 129 | 35.046753 | 0.839911 | 0.416957 | 0 | 0.175325 | 0 | 0 | 0.031823 | 0 | 0 | 0 | 0 | 0.005195 | 0 | 1 | 0.168831 | false | 0 | 0.064935 | 0.012987 | 0.396104 | 0.149351 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
bfc050097243e7b2091975c40a2359b3639deda4 | 78 | py | Python | tests/parameters/secret.py | yehonadav/bunbun | 3703c837859ee27bb87604a236d051601c830c9b | [
"Apache-2.0"
] | 1 | 2019-08-04T17:31:06.000Z | 2019-08-04T17:31:06.000Z | tests/parameters/secret.py | yehonadav/bunbun | 3703c837859ee27bb87604a236d051601c830c9b | [
"Apache-2.0"
] | 5 | 2021-03-18T21:18:21.000Z | 2022-03-11T23:32:06.000Z | tests/parameters/secret.py | yehonadav/bunbun | 3703c837859ee27bb87604a236d051601c830c9b | [
"Apache-2.0"
] | null | null | null | hub = 'http://18.216.225.173:4444/wd/hub'
user = 'user'
password = 'password'
| 19.5 | 41 | 0.653846 | 13 | 78 | 3.923077 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.217391 | 0.115385 | 78 | 3 | 42 | 26 | 0.521739 | 0 | 0 | 0 | 0 | 0 | 0.576923 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.333333 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
bfc16f3c9732a3bac02cf561d1ad42fdb042389b | 1,005 | py | Python | checks/checkpython.py | h4ck3rm1k3/salt-formulas | 8b0265faa64fa1d2a4149ce9aeb279e3861150fd | [
"CC0-1.0"
] | 5 | 2015-01-26T20:52:54.000Z | 2019-06-18T06:48:55.000Z | checks/checkpython.py | h4ck3rm1k3/salt-formulas | 8b0265faa64fa1d2a4149ce9aeb279e3861150fd | [
"CC0-1.0"
] | 1 | 2015-01-06T10:54:00.000Z | 2015-01-06T10:54:00.000Z | checks/checkpython.py | h4ck3rm1k3/salt-formulas | 8b0265faa64fa1d2a4149ce9aeb279e3861150fd | [
"CC0-1.0"
] | 4 | 2015-01-19T16:39:48.000Z | 2020-11-04T05:52:02.000Z | import yaml
import sys
from jinja2 import Environment, PackageLoader, Template
import os
# shebangs
#!yaml_jinja
#!yaml_mako
#!mako|yaml
#!jinja|yaml
#!jinja|mako|yaml
#!mako|yaml|stateconf
#!jinja|yaml|stateconf
#!mako|yaml_odict
#!mako|yaml_odict|stateconf
def check(fn):
#print fn
print("Consider {0}".forma... | 20.9375 | 70 | 0.536318 | 132 | 1,005 | 4.05303 | 0.462121 | 0.074766 | 0.048598 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02029 | 0.313433 | 1,005 | 47 | 71 | 21.382979 | 0.755072 | 0.441791 | 0 | 0 | 0 | 0 | 0.130435 | 0 | 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 |
bfc30a77b97d4e74224bb01d940181301a27ab6f | 537 | py | Python | dthm4kaiako/config/filters/markdown.py | taskmaker1/dthm4kaiako | 681babc10b3223b5ae7fdf19b98c53d2bef4ea1a | [
"MIT"
] | 3 | 2018-12-10T07:03:02.000Z | 2021-04-12T02:18:30.000Z | dthm4kaiako/config/filters/markdown.py | taskmaker1/dthm4kaiako | 681babc10b3223b5ae7fdf19b98c53d2bef4ea1a | [
"MIT"
] | 566 | 2018-09-30T02:54:28.000Z | 2022-03-28T01:20:01.000Z | dthm4kaiako/config/filters/markdown.py | taskmaker1/dthm4kaiako | 681babc10b3223b5ae7fdf19b98c53d2bef4ea1a | [
"MIT"
] | 3 | 2019-04-04T19:53:39.000Z | 2021-05-16T02:04:46.000Z | """Template filter for rendering Markdown to HTML."""
from django import template
from django.utils.safestring import mark_safe
from django.template.defaultfilters import stringfilter
from markdownx.utils import markdownify
register = template.Library()
@register.filter
@stringfilter
def markdown(raw_markdown):
... | 23.347826 | 56 | 0.748603 | 66 | 537 | 6.015152 | 0.5 | 0.110831 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176909 | 537 | 22 | 57 | 24.409091 | 0.89819 | 0.350093 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.444444 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
bfc43a6e6874e02847e5dd1f797f3d3037107d33 | 1,572 | py | Python | tests/test_tk_file_extention_dialog.py | MaxWeise/Filebackup_Automation | fc4b7480897b34b1b3315f5505c0b96c8714202d | [
"MIT"
] | null | null | null | tests/test_tk_file_extention_dialog.py | MaxWeise/Filebackup_Automation | fc4b7480897b34b1b3315f5505c0b96c8714202d | [
"MIT"
] | null | null | null | tests/test_tk_file_extention_dialog.py | MaxWeise/Filebackup_Automation | fc4b7480897b34b1b3315f5505c0b96c8714202d | [
"MIT"
] | null | null | null | #!/usr/bin/env python
""" Testsuite for the user text input
Created 15.12.2021
@author Max Weise
"""
import unittest
from unittest import TestCase
from backup_script.tk_file_extention_dialog import TextInputDialog
class Test_TextInputDialog(TestCase):
""" Testcase for the custom tkinter text input dialog."""
... | 30.230769 | 97 | 0.681934 | 198 | 1,572 | 5.111111 | 0.383838 | 0.088933 | 0.115613 | 0.047431 | 0.37747 | 0.249012 | 0.249012 | 0.177866 | 0.100791 | 0.100791 | 0 | 0.010492 | 0.211832 | 1,572 | 51 | 98 | 30.823529 | 0.806295 | 0.215649 | 0 | 0.153846 | 0 | 0 | 0.060884 | 0 | 0 | 0 | 0 | 0 | 0.269231 | 1 | 0.115385 | false | 0 | 0.115385 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bfc4c4ec186ec83ad923e2b9cf71b87520c6a873 | 755 | py | Python | My_Account/migrations/0006_auto_20200426_1701.py | CHESyrian/Syrians | 8376e9bed6e3a03f536d8aacd523d630f6bc4345 | [
"MIT"
] | null | null | null | My_Account/migrations/0006_auto_20200426_1701.py | CHESyrian/Syrians | 8376e9bed6e3a03f536d8aacd523d630f6bc4345 | [
"MIT"
] | null | null | null | My_Account/migrations/0006_auto_20200426_1701.py | CHESyrian/Syrians | 8376e9bed6e3a03f536d8aacd523d630f6bc4345 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.3 on 2020-04-26 14:01
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('My_Account', '0005_auto_20200426_1643'),
]
operations = [
migrations.AlterField(
model_name='profile_model',
name='C... | 31.458333 | 147 | 0.664901 | 84 | 755 | 5.690476 | 0.488095 | 0.075314 | 0.100418 | 0.121339 | 0.502092 | 0.502092 | 0.380753 | 0 | 0 | 0 | 0 | 0.052991 | 0.225166 | 755 | 23 | 148 | 32.826087 | 0.764103 | 0.059603 | 0 | 0.352941 | 1 | 0 | 0.347458 | 0.262712 | 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 |
bfc5e0326ff06b4f88532664293de1aca3963505 | 3,993 | py | Python | efls-data/xfl/data/local_join/worker.py | finalljx/Elastic-Federated-Learning-Solution | fb588fdc03a2c1598b40b36712b27bdffdd24258 | [
"Apache-2.0"
] | null | null | null | efls-data/xfl/data/local_join/worker.py | finalljx/Elastic-Federated-Learning-Solution | fb588fdc03a2c1598b40b36712b27bdffdd24258 | [
"Apache-2.0"
] | null | null | null | efls-data/xfl/data/local_join/worker.py | finalljx/Elastic-Federated-Learning-Solution | fb588fdc03a2c1598b40b36712b27bdffdd24258 | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 Alibaba Group Holding Limited. 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 ... | 46.430233 | 138 | 0.650889 | 539 | 3,993 | 4.680891 | 0.326531 | 0.022196 | 0.052319 | 0.045581 | 0.114546 | 0.075704 | 0.046373 | 0.031708 | 0 | 0 | 0 | 0.006816 | 0.2284 | 3,993 | 85 | 139 | 46.976471 | 0.812074 | 0.167042 | 0 | 0 | 0 | 0 | 0.110843 | 0 | 0 | 0 | 0 | 0 | 0.014706 | 1 | 0.044118 | false | 0 | 0.132353 | 0 | 0.191176 | 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 | 0 | 0 | 1 | 0 |
bfc67912cacb053d18b81a8c4ccd2fa05884f9dd | 8,528 | py | Python | wifi12306.py | Arnie97/emu-screenshot-server | a50526c0d852cd61050ba2926d43c84241d57afb | [
"MIT"
] | 42 | 2018-01-16T10:48:58.000Z | 2020-08-28T07:34:56.000Z | wifi12306.py | Arnie97/emu-screenshot | a50526c0d852cd61050ba2926d43c84241d57afb | [
"MIT"
] | 1 | 2018-11-12T06:20:50.000Z | 2018-11-12T06:45:30.000Z | wifi12306.py | Arnie97/emu-screenshot | a50526c0d852cd61050ba2926d43c84241d57afb | [
"MIT"
] | 4 | 2018-06-09T02:29:45.000Z | 2020-08-07T11:47:52.000Z | #!/usr/bin/env python3
from datetime import date
from itertools import chain
from operator import itemgetter
from os.path import commonprefix
from tickets import API
from typing import Any, Iterable, Dict, List, Optional, Tuple
from util import repl, AttrDict
COMMENT_MAPPING = {
'A': "",
'B': "宿",
'C': "... | 33.443137 | 198 | 0.577744 | 992 | 8,528 | 4.72379 | 0.257056 | 0.044174 | 0.034144 | 0.017926 | 0.307298 | 0.245625 | 0.202732 | 0.148314 | 0.13679 | 0.13679 | 0 | 0.015521 | 0.297373 | 8,528 | 254 | 199 | 33.574803 | 0.766522 | 0.007505 | 0 | 0.256881 | 0 | 0.004587 | 0.142723 | 0.064425 | 0 | 0 | 0.001176 | 0 | 0 | 1 | 0.087156 | false | 0.004587 | 0.03211 | 0.03211 | 0.224771 | 0.03211 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
bfc69200893675851efff0c9ed38ba8da908af17 | 1,648 | py | Python | tests/components/coronavirus/test_config_flow.py | basicpail/core | 5cc54618c5af3f75c08314bf2375cc7ac40d2b7e | [
"Apache-2.0"
] | 11 | 2018-02-16T15:35:47.000Z | 2020-01-14T15:20:00.000Z | tests/components/coronavirus/test_config_flow.py | jagadeeshvenkatesh/core | 1bd982668449815fee2105478569f8e4b5670add | [
"Apache-2.0"
] | 79 | 2020-07-23T07:13:37.000Z | 2022-03-22T06:02:37.000Z | tests/components/coronavirus/test_config_flow.py | jagadeeshvenkatesh/core | 1bd982668449815fee2105478569f8e4b5670add | [
"Apache-2.0"
] | 11 | 2020-12-16T13:48:14.000Z | 2022-02-01T00:28:05.000Z | """Test the Coronavirus config flow."""
from unittest.mock import MagicMock, patch
from aiohttp import ClientError
from homeassistant import config_entries, setup
from homeassistant.components.coronavirus.const import DOMAIN, OPTION_WORLDWIDE
from homeassistant.core import HomeAssistant
async def test_form(hass: Ho... | 32.313725 | 79 | 0.703277 | 193 | 1,648 | 5.80829 | 0.352332 | 0.069581 | 0.040143 | 0.058876 | 0.332739 | 0.284567 | 0.256913 | 0.256913 | 0.256913 | 0.256913 | 0 | 0.004425 | 0.177184 | 1,648 | 50 | 80 | 32.96 | 0.822271 | 0.020024 | 0 | 0.153846 | 0 | 0 | 0.125162 | 0.04345 | 0 | 0 | 0 | 0 | 0.282051 | 1 | 0 | false | 0 | 0.128205 | 0 | 0.128205 | 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 | 0 | 0 | 1 | 0 |
bfc8836265bf50d2912b69d0feaa958739783ce7 | 64,150 | py | Python | src/view/perspective.py | struts2spring/sql-editor | 082868dd92cbd8f0f6715f734f9ebe64032cbe4a | [
"MIT"
] | 9 | 2018-10-15T04:57:37.000Z | 2021-12-07T07:39:35.000Z | src/view/perspective.py | struts2spring/sql-editor | 082868dd92cbd8f0f6715f734f9ebe64032cbe4a | [
"MIT"
] | 13 | 2018-10-19T11:52:44.000Z | 2021-09-08T00:39:30.000Z | src/view/perspective.py | struts2spring/sql-editor | 082868dd92cbd8f0f6715f734f9ebe64032cbe4a | [
"MIT"
] | 3 | 2018-10-25T11:08:04.000Z | 2021-02-23T08:28:31.000Z | import logging.config
import wx
from src.sqlite_executer.ConnectExecuteSqlite import SQLExecuter
from src.view.AutoCompleteTextCtrl import TextCtrlAutoComplete
# from src.view.TreePanel import CreatingTreePanel
from src.view.constants import *
from wx.lib.agw.aui.aui_constants import actionDragFloatingPane, A... | 47.589021 | 237 | 0.595479 | 6,624 | 64,150 | 5.596014 | 0.129378 | 0.010386 | 0.013219 | 0.012464 | 0.460586 | 0.390579 | 0.352568 | 0.311724 | 0.278245 | 0.265809 | 0 | 0.007771 | 0.287872 | 64,150 | 1,347 | 238 | 47.62435 | 0.803647 | 0.219111 | 0 | 0.300842 | 0 | 0 | 0.103892 | 0.012408 | 0 | 0 | 0 | 0 | 0 | 1 | 0.067389 | false | 0.002407 | 0.033694 | 0 | 0.134777 | 0.013237 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
bfc92f5dcf23f382d12d6bd9cbb5c26b13f0c728 | 268 | py | Python | PythonBehave/features/environment.py | adamd1985/BDDArticle | be1f7fd67d8e195c31864622966ee88d3a2e257a | [
"Apache-2.0"
] | null | null | null | PythonBehave/features/environment.py | adamd1985/BDDArticle | be1f7fd67d8e195c31864622966ee88d3a2e257a | [
"Apache-2.0"
] | null | null | null | PythonBehave/features/environment.py | adamd1985/BDDArticle | be1f7fd67d8e195c31864622966ee88d3a2e257a | [
"Apache-2.0"
] | null | null | null | from flaskr import app
def before_feature(context, feature):
flask_app = app.create_app()
flask_app.testing = True
context.client = flask_app.test_client()
def before_scenario(context, scenario):
context.users = list()
context.results = list()
| 20.615385 | 44 | 0.716418 | 35 | 268 | 5.285714 | 0.514286 | 0.12973 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.182836 | 268 | 12 | 45 | 22.333333 | 0.844749 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bfc96dc65fba4dfeccca21923ae5c19d56187622 | 1,042 | py | Python | pyscripts/truncate_lines.py | joseph62/Scripts | 13aab2a51957894f4d524b7a868cb7e51dbba980 | [
"MIT"
] | null | null | null | pyscripts/truncate_lines.py | joseph62/Scripts | 13aab2a51957894f4d524b7a868cb7e51dbba980 | [
"MIT"
] | null | null | null | pyscripts/truncate_lines.py | joseph62/Scripts | 13aab2a51957894f4d524b7a868cb7e51dbba980 | [
"MIT"
] | null | null | null | #! /usr/bin/env python3
import sys
import argparse
import signal
DEFAULT_LINE_LENGTH = 80
def parse_arguments(args):
parser = argparse.ArgumentParser(
description="Trucate incoming lines to a specified length with an optional suffix"
)
parser.add_argument(
"-l", "--length", help="The ma... | 22.652174 | 90 | 0.642035 | 137 | 1,042 | 4.722628 | 0.467153 | 0.046368 | 0.055641 | 0.071097 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008906 | 0.245681 | 1,042 | 45 | 91 | 23.155556 | 0.814249 | 0.021113 | 0 | 0.0625 | 0 | 0 | 0.20314 | 0.034347 | 0 | 0 | 0 | 0 | 0 | 1 | 0.09375 | false | 0 | 0.09375 | 0 | 0.25 | 0.03125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bfcb37f297e73011c6f83e4feb6d86e5b96b07bc | 30,944 | py | Python | mpisppy/opt/lshaped.py | Matthew-Signorotti/mpi-sppy | 5c6b4b8cd26af517ff09706d11751f2fb05b1b5f | [
"BSD-3-Clause"
] | null | null | null | mpisppy/opt/lshaped.py | Matthew-Signorotti/mpi-sppy | 5c6b4b8cd26af517ff09706d11751f2fb05b1b5f | [
"BSD-3-Clause"
] | null | null | null | mpisppy/opt/lshaped.py | Matthew-Signorotti/mpi-sppy | 5c6b4b8cd26af517ff09706d11751f2fb05b1b5f | [
"BSD-3-Clause"
] | null | null | null | # Copyright 2020 by B. Knueven, D. Mildebrath, C. Muir, J-P Watson, and D.L. Woodruff
# This software is distributed under the 3-clause BSD License.
import pyomo.environ as pyo
import mpisppy.utils.sputils as sputils
import numpy as np
import itertools
import time
import sys
import mpisppy.spbase as spbase
from mpispp... | 39.824968 | 152 | 0.607226 | 3,863 | 30,944 | 4.660368 | 0.137458 | 0.020941 | 0.015997 | 0.014442 | 0.433817 | 0.385547 | 0.341332 | 0.297173 | 0.255791 | 0.238016 | 0 | 0.005302 | 0.317283 | 30,944 | 776 | 153 | 39.876289 | 0.846871 | 0.207601 | 0 | 0.358527 | 0 | 0 | 0.066363 | 0 | 0 | 0 | 0 | 0 | 0.00969 | 1 | 0.03876 | false | 0 | 0.034884 | 0.001938 | 0.091085 | 0.011628 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
bfcbc5d0c314cd0ac9510073757086968e66ea31 | 4,812 | py | Python | Features/NucleotideContent.py | jcg/d-tailor | 7ea83bcf7a2cda21eb8727575ff2b20ac8b49606 | [
"BSD-2-Clause"
] | 14 | 2016-05-19T08:31:44.000Z | 2021-08-05T08:56:56.000Z | Features/NucleotideContent.py | jcg/d-tailor | 7ea83bcf7a2cda21eb8727575ff2b20ac8b49606 | [
"BSD-2-Clause"
] | 1 | 2018-09-25T12:00:23.000Z | 2018-12-10T18:42:31.000Z | Features/NucleotideContent.py | jcg/d-tailor | 7ea83bcf7a2cda21eb8727575ff2b20ac8b49606 | [
"BSD-2-Clause"
] | 4 | 2016-06-23T21:40:49.000Z | 2021-02-02T03:05:35.000Z | '''
Created on Nov 16, 2011
@author: jcg
'''
from Features.Feature import Feature
import Functions
from uuid import uuid4
class NucleotideContent(Feature):
"""
Nucleotide Content Feature
solution - solution where nucleotide content should be computed
label - some label to append to the name
... | 43.745455 | 206 | 0.625104 | 461 | 4,812 | 6.266811 | 0.266811 | 0.041537 | 0.150225 | 0.082381 | 0.282451 | 0.217376 | 0.217376 | 0.217376 | 0.217376 | 0.217376 | 0 | 0.004993 | 0.292394 | 4,812 | 110 | 207 | 43.745455 | 0.843465 | 0.14256 | 0 | 0.323077 | 0 | 0 | 0.035105 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.138462 | false | 0 | 0.061538 | 0 | 0.353846 | 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 | 0 | 0 | 1 | 0 |
bfcc3bf3ce4a6a7791d6831071ec72ca44993852 | 25 | py | Python | python/testData/intentions/PyConvertTypeCommentToVariableAnnotationIntentionTest/simpleAssignment.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/intentions/PyConvertTypeCommentToVariableAnnotationIntentionTest/simpleAssignment.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/intentions/PyConvertTypeCommentToVariableAnnotationIntentionTest/simpleAssignment.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | x = 42 # ty<caret>pe: int | 25 | 25 | 0.6 | 6 | 25 | 2.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 0.2 | 25 | 1 | 25 | 25 | 0.65 | 0.64 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
bfcdbaafa9988638af7ac347c436a853bc52d3ed | 6,090 | py | Python | python/etl/tests/spark/app/test_smartstore_src_to_log0.py | beobest2/delta | 0107d5322492c420a044fa41d90be03375606bea | [
"Apache-2.0"
] | 1 | 2021-12-01T00:35:13.000Z | 2021-12-01T00:35:13.000Z | python/etl/tests/spark/app/test_smartstore_src_to_log0.py | beobest2/delta | 0107d5322492c420a044fa41d90be03375606bea | [
"Apache-2.0"
] | null | null | null | python/etl/tests/spark/app/test_smartstore_src_to_log0.py | beobest2/delta | 0107d5322492c420a044fa41d90be03375606bea | [
"Apache-2.0"
] | null | null | null | from argparse import Namespace
import pytest
from laplace_spark.app.smartstore_src_to_log0 import SparkAppSmartstoreSrcToLog0
from laplace_spark.constants import DATE_ID_COLUMN_NAME
from laplace_spark.modules.provider import Provider
from laplace_spark.modules.utils.laplace_utils import LaplaceUtils
from tests.utils i... | 29.563107 | 98 | 0.691297 | 757 | 6,090 | 5.108322 | 0.110964 | 0.083786 | 0.074476 | 0.086889 | 0.670028 | 0.642358 | 0.559348 | 0.51849 | 0.468063 | 0.399535 | 0 | 0.009165 | 0.229557 | 6,090 | 205 | 99 | 29.707317 | 0.815004 | 0 | 0 | 0.52907 | 0 | 0 | 0.091133 | 0.06798 | 0 | 0 | 0 | 0 | 0.087209 | 1 | 0.098837 | false | 0 | 0.040698 | 0 | 0.145349 | 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 | 0 | 0 | 1 | 0 |
bfd00740f86fba0d1df5af433b0fc3f4e9436cc0 | 3,962 | py | Python | lambda/ec2-event-processor/handler.py | mattmcclean/mlops-ray-cdk | 202e127a11ac84749ec45b4d345e2557bf3e8121 | [
"Apache-2.0"
] | null | null | null | lambda/ec2-event-processor/handler.py | mattmcclean/mlops-ray-cdk | 202e127a11ac84749ec45b4d345e2557bf3e8121 | [
"Apache-2.0"
] | null | null | null | lambda/ec2-event-processor/handler.py | mattmcclean/mlops-ray-cdk | 202e127a11ac84749ec45b4d345e2557bf3e8121 | [
"Apache-2.0"
] | null | null | null | import os
import json
import boto3
# create the boto3 clients
ec2 = boto3.client('ec2')
elbv2 = boto3.client('elbv2')
# Get the ALB Target Group ARNs
MLFLOW_TARGET_GROUP_ARN=os.getenv('MLFLOW_TARGET_GROUP_ARN')
TENSORBOARD_TARGET_GROUP_ARN=os.getenv('TENSORBOARD_TARGET_GROUP_ARN')
RAY_DASHBOARD_TARGET_GROUP_ARN=os.g... | 37.377358 | 115 | 0.692075 | 503 | 3,962 | 5.115308 | 0.180915 | 0.218033 | 0.168675 | 0.037311 | 0.474155 | 0.405752 | 0.385542 | 0.271279 | 0.211426 | 0.211426 | 0 | 0.011879 | 0.19258 | 3,962 | 105 | 116 | 37.733333 | 0.792435 | 0.033317 | 0 | 0.090909 | 0 | 0 | 0.306667 | 0.133856 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068182 | false | 0 | 0.034091 | 0 | 0.125 | 0.238636 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bfd04b70e5cd39ca29b574b5353e8f0319f41223 | 2,325 | py | Python | app.py | laurohen/api-flask-mysql | 3660d8828203476ea87b2580ed4b0508c0ea3af6 | [
"MIT"
] | null | null | null | app.py | laurohen/api-flask-mysql | 3660d8828203476ea87b2580ed4b0508c0ea3af6 | [
"MIT"
] | null | null | null | app.py | laurohen/api-flask-mysql | 3660d8828203476ea87b2580ed4b0508c0ea3af6 | [
"MIT"
] | null | null | null | from flask import Flask, request, jsonify, make_response
from flask_sqlalchemy import SQLAlchemy
from marshmallow import fields
from marshmallow_sqlalchemy import ModelSchema
app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = 'mysql+pymysql://username:password@host:port/database-name'
db = SQLAlchemy(app)
... | 26.420455 | 99 | 0.67828 | 315 | 2,325 | 4.787302 | 0.253968 | 0.059682 | 0.036472 | 0.043103 | 0.312997 | 0.264589 | 0.177719 | 0.157825 | 0.157825 | 0.157825 | 0 | 0.00676 | 0.172903 | 2,325 | 88 | 100 | 26.420455 | 0.777431 | 0.002151 | 0 | 0.21875 | 0 | 0 | 0.115567 | 0.061665 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.015625 | 0.0625 | 0.015625 | 0.421875 | 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 | 0 | 0 | 1 | 0 |
bfd196b146e9b5ea426e42cd1a578fe228ee3eac | 647 | py | Python | inspector/checks/constants.py | yoyowallet/inspector | a6ee3328a4dcf49b0e5b62d23195ed44f515a705 | [
"Apache-2.0"
] | 7 | 2019-03-03T14:47:47.000Z | 2020-10-31T00:26:52.000Z | inspector/checks/constants.py | yoyowallet/inspector | a6ee3328a4dcf49b0e5b62d23195ed44f515a705 | [
"Apache-2.0"
] | 2 | 2019-03-06T19:35:41.000Z | 2020-11-04T11:57:18.000Z | inspector/checks/constants.py | yoyowallet/inspector | a6ee3328a4dcf49b0e5b62d23195ed44f515a705 | [
"Apache-2.0"
] | 3 | 2019-03-03T16:29:44.000Z | 2020-10-31T00:47:01.000Z | from model_utils import Choices
RELATIONS = Choices(
(0, 'eq', '='),
(1, 'ne', '!='),
(2, 'gt', '>'),
(3, 'lt', '<'),
(4, 'ge', '>='),
(5, 'le', '<='),
)
STATUSES = Choices(
('NEW', 'New'),
('RUNNING', 'Running'),
('FINISHED', 'Finished'),
('ERROR', 'Error')
)
RESULTS = Choice... | 19.029412 | 50 | 0.479134 | 64 | 647 | 4.765625 | 0.5625 | 0.052459 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024341 | 0.238022 | 647 | 33 | 51 | 19.606061 | 0.59432 | 0 | 0 | 0 | 0 | 0 | 0.338485 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.035714 | 0 | 0.035714 | 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 | 0 | 0 | 1 | 0 |
bfd4a079399c71c1620bc498d4b73a09c55a55ad | 661 | bzl | Python | versions.bzl | spiralgenetics/biograph | 33c78278ce673e885f38435384f9578bfbf9cdb8 | [
"BSD-2-Clause"
] | 16 | 2021-07-14T23:32:31.000Z | 2022-03-24T16:25:15.000Z | versions.bzl | spiralgenetics/biograph | 33c78278ce673e885f38435384f9578bfbf9cdb8 | [
"BSD-2-Clause"
] | 9 | 2021-07-20T20:39:47.000Z | 2021-09-16T20:57:59.000Z | versions.bzl | spiralgenetics/biograph | 33c78278ce673e885f38435384f9578bfbf9cdb8 | [
"BSD-2-Clause"
] | 9 | 2021-07-15T19:38:35.000Z | 2022-01-31T19:24:56.000Z | # Product versions live here (and only here). They should be bumped at every
# release.
#
# NOTE: This is parsable by both bazel and sh. Do not add arbitrary
# text here.
#
# Versions *must* adhere to semantic versioning rules. See http://semver.org/
#
# Don't forget to also update relevant docs and README.txt files. ... | 30.045455 | 77 | 0.750378 | 111 | 661 | 4.423423 | 0.63964 | 0.02444 | 0.03666 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021583 | 0.15885 | 661 | 21 | 78 | 31.47619 | 0.861511 | 0.789713 | 0 | 0 | 0 | 0 | 0.224 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bfd4b07cf0067ae5efca658be3f46767e83ea056 | 523 | py | Python | 35. searchInsertPosition.py | izan-majeed/leetcode | b7fbc734771f94522498d833f72443d07c4e7ed1 | [
"Apache-2.0"
] | 1 | 2021-06-20T09:59:59.000Z | 2021-06-20T09:59:59.000Z | 35. searchInsertPosition.py | izan-majeed/leetcode | b7fbc734771f94522498d833f72443d07c4e7ed1 | [
"Apache-2.0"
] | null | null | null | 35. searchInsertPosition.py | izan-majeed/leetcode | b7fbc734771f94522498d833f72443d07c4e7ed1 | [
"Apache-2.0"
] | null | null | null | from typing import List
class Solution:
def searchInsert(self, a: List[int], target: int) -> int:
l, r = 0, len(a)-1
#binary search
while l<=r:
mid = (l+r)//2
if target == a[mid]:
return mid
elif target > a[mid]:
... | 23.772727 | 61 | 0.418738 | 66 | 523 | 3.318182 | 0.409091 | 0.159817 | 0.228311 | 0.219178 | 0.360731 | 0.319635 | 0.319635 | 0.319635 | 0.319635 | 0.319635 | 0 | 0.021898 | 0.476099 | 523 | 22 | 62 | 23.772727 | 0.777372 | 0.049713 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.0625 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 2 |
bfd7afdce647ef41b496ff6aa9e1fd9678d81b54 | 542 | py | Python | Lesson 02.gf/intermediate_expressions.py | gfoo003/programming-together | 225e0a2255dd8da1f1ef32d2a88deea27c050f10 | [
"MIT"
] | null | null | null | Lesson 02.gf/intermediate_expressions.py | gfoo003/programming-together | 225e0a2255dd8da1f1ef32d2a88deea27c050f10 | [
"MIT"
] | null | null | null | Lesson 02.gf/intermediate_expressions.py | gfoo003/programming-together | 225e0a2255dd8da1f1ef32d2a88deea27c050f10 | [
"MIT"
] | null | null | null | name=input("hi, what's your name?")
age=input("how old are you?")
print("your name is ", name, "and you are ", age )
# int(x) = change string to integer
# str(x)= change integer to string
# to check type, print(type"x")
# you can only print "results" of the same type, unless doing string interpolation.
# difference b... | 30.111111 | 103 | 0.726937 | 88 | 542 | 4.477273 | 0.545455 | 0.040609 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002183 | 0.154982 | 542 | 17 | 104 | 31.882353 | 0.858079 | 0.599631 | 0 | 0 | 0 | 0 | 0.326923 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.375 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
bfd85a1488c8ca4d9abcbfd556e3a3f3dfa1b395 | 1,877 | py | Python | trainNaiveBayes.py | tianxiangchen2015/bayes-Apache-spark-reuters | 705a05a1d8dddef27c4bdd68c08174996822ca3a | [
"Apache-2.0"
] | null | null | null | trainNaiveBayes.py | tianxiangchen2015/bayes-Apache-spark-reuters | 705a05a1d8dddef27c4bdd68c08174996822ca3a | [
"Apache-2.0"
] | null | null | null | trainNaiveBayes.py | tianxiangchen2015/bayes-Apache-spark-reuters | 705a05a1d8dddef27c4bdd68c08174996822ca3a | [
"Apache-2.0"
] | null | null | null | from pyspark.mllib.feature import HashingTF, IDF
from pyspark.mllib.regression import LabeledPoint
from pyspark.mllib.classification import NaiveBayes
import os.path
os.environ["SPARK_HOME"] = "/usr/local/spark"
os.environ["PYSPARK_PYTHON"]="/System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7"
from p... | 34.127273 | 101 | 0.726692 | 271 | 1,877 | 5.01845 | 0.439114 | 0.032353 | 0.035294 | 0.023529 | 0.029412 | 0.029412 | 0 | 0 | 0 | 0 | 0 | 0.018519 | 0.136921 | 1,877 | 55 | 102 | 34.127273 | 0.820988 | 0.078316 | 0 | 0 | 0 | 0.028571 | 0.132818 | 0.064652 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.142857 | null | null | 0.114286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
bfd93482b38e9761ce0b5a5309864c90fa7acac9 | 7,298 | py | Python | tests/filesystems/test_s3.py | altescy/minato | bcb198a3f65192367df71a6c3a3324a6b2285785 | [
"MIT"
] | 8 | 2021-05-16T00:50:01.000Z | 2022-02-09T11:15:56.000Z | tests/filesystems/test_s3.py | altescy/minato | bcb198a3f65192367df71a6c3a3324a6b2285785 | [
"MIT"
] | null | null | null | tests/filesystems/test_s3.py | altescy/minato | bcb198a3f65192367df71a6c3a3324a6b2285785 | [
"MIT"
] | 1 | 2021-06-20T07:22:53.000Z | 2021-06-20T07:22:53.000Z | import tempfile
from pathlib import Path
import boto3
from moto import mock_s3
from minato.filesystems import S3FileSystem
@mock_s3
def test_open_file() -> None:
url = "s3://my_bucket/path/to/file"
conn = boto3.resource("s3", region_name="us-east-1")
conn.create_bucket(Bucket="my_bucket")
fs = S3F... | 27.231343 | 85 | 0.643327 | 1,034 | 7,298 | 4.390716 | 0.075435 | 0.070485 | 0.061674 | 0.1163 | 0.897577 | 0.837225 | 0.801322 | 0.789427 | 0.726652 | 0.700441 | 0 | 0.018449 | 0.197862 | 7,298 | 267 | 86 | 27.333333 | 0.757089 | 0 | 0 | 0.639344 | 0 | 0 | 0.187038 | 0.097698 | 0 | 0 | 0 | 0 | 0.196721 | 1 | 0.065574 | false | 0 | 0.027322 | 0 | 0.092896 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
449bbabb756ac92734377e46afd4f7a309af927c | 12,269 | py | Python | app/school/tests/test_moderation_api.py | bondeveloper/maischool | 16bf2afe99d26caa067b7912e88839639cf2191e | [
"MIT"
] | null | null | null | app/school/tests/test_moderation_api.py | bondeveloper/maischool | 16bf2afe99d26caa067b7912e88839639cf2191e | [
"MIT"
] | null | null | null | app/school/tests/test_moderation_api.py | bondeveloper/maischool | 16bf2afe99d26caa067b7912e88839639cf2191e | [
"MIT"
] | null | null | null | from django.test import TestCase
from django.urls import reverse
from django.utils import timezone
from django.contrib.auth import get_user_model
from rest_framework.test import APIClient
from rest_framework import status
from core.models import Category, School, Session, Subject, Level, Lesson, \
... | 28.532558 | 76 | 0.5108 | 1,074 | 12,269 | 5.728119 | 0.127561 | 0.109883 | 0.06827 | 0.046326 | 0.804454 | 0.800228 | 0.800228 | 0.800228 | 0.800228 | 0.784135 | 0 | 0.018677 | 0.380308 | 12,269 | 429 | 77 | 28.599068 | 0.790477 | 0 | 0 | 0.695291 | 0 | 0 | 0.12878 | 0.048741 | 0 | 0 | 0 | 0 | 0.033241 | 1 | 0.019391 | false | 0.049862 | 0.022161 | 0 | 0.044321 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
449c986b0e31e6560fc043808de0556dfd190e0f | 169 | py | Python | packages/server/invites/src/domain/controller/__init__.py | gbartoczevicz/moosic | 003ff5cff628505093cc08ad0fbd273272172a51 | [
"MIT"
] | 3 | 2021-09-30T00:41:31.000Z | 2022-03-15T00:14:23.000Z | packages/server/invites/src/domain/controller/__init__.py | gbartoczevicz/moosic | 003ff5cff628505093cc08ad0fbd273272172a51 | [
"MIT"
] | 13 | 2021-09-20T22:29:52.000Z | 2021-12-05T01:59:34.000Z | packages/server/invites/src/domain/controller/__init__.py | gabrielbartoczevicz/moosic | 003ff5cff628505093cc08ad0fbd273272172a51 | [
"MIT"
] | 1 | 2021-11-10T22:11:55.000Z | 2021-11-10T22:11:55.000Z | from .create_invite import CreateInviteController
from ..usecases import create_invite_usecase
create_invite_controller = CreateInviteController(create_invite_usecase)
| 33.8 | 72 | 0.893491 | 18 | 169 | 8 | 0.444444 | 0.333333 | 0.263889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071006 | 169 | 4 | 73 | 42.25 | 0.917197 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 5 |
449d14cc3d79279400a714ef3f44c1383e23b569 | 2,937 | py | Python | main.py | danialre/ise_ipsk | a11929c19a7fcff7311cea2f457a6eac1823d77b | [
"Apache-2.0"
] | null | null | null | main.py | danialre/ise_ipsk | a11929c19a7fcff7311cea2f457a6eac1823d77b | [
"Apache-2.0"
] | null | null | null | main.py | danialre/ise_ipsk | a11929c19a7fcff7311cea2f457a6eac1823d77b | [
"Apache-2.0"
] | null | null | null | import traceback, logging, signal, time, ssl
from functools import partial
from tornado import httpserver, ioloop, log
from tornado.web import Application
import settings, isetools, isehandlers, ruckushandlers
PORT = 2443
def create_server(serverlist, username, password, emailer=None, certfile=None,
keyfile=... | 40.232877 | 90 | 0.706844 | 353 | 2,937 | 5.736544 | 0.396601 | 0.017778 | 0.044444 | 0.061728 | 0.124938 | 0.051852 | 0 | 0 | 0 | 0 | 0 | 0.003378 | 0.193735 | 2,937 | 72 | 91 | 40.791667 | 0.851774 | 0.113041 | 0 | 0.037736 | 0 | 0 | 0.149167 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.075472 | false | 0.09434 | 0.09434 | 0 | 0.207547 | 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 |
449e221a47922edae38daf290f2bdc462fa87ed3 | 446 | py | Python | dueros/directive/Pay/Buy.py | Mryan2005/bot-sdk-python | f961aedf141e966badd5cd577ad8913dd9733998 | [
"Apache-2.0"
] | 70 | 2018-01-04T06:47:58.000Z | 2021-07-28T03:08:48.000Z | dueros/directive/Pay/Buy.py | mlzboy/bot-sdk-python | 664c90ec6d0abbb0844c030cd3114693a96b12ab | [
"Apache-2.0"
] | 16 | 2018-01-02T15:25:23.000Z | 2020-03-14T07:25:44.000Z | dueros/directive/Pay/Buy.py | mlzboy/bot-sdk-python | 664c90ec6d0abbb0844c030cd3114693a96b12ab | [
"Apache-2.0"
] | 32 | 2018-01-09T10:19:46.000Z | 2021-05-06T08:35:52.000Z | #!/usr/bin/env python3
# -*- encoding=utf-8 -*-
# description:
# author:jack
# create_time: 2019-07-04
from dueros.directive.BaseDirective import BaseDirective
class Buy(BaseDirective):
"""
用于生成Buy指令的类
"""
def __init__(self, product_id, token=''):
super(Buy, self).__init__('Connections.Send... | 21.238095 | 64 | 0.639013 | 50 | 446 | 5.48 | 0.72 | 0.065693 | 0.094891 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028329 | 0.20852 | 446 | 20 | 65 | 22.3 | 0.747875 | 0.235426 | 0 | 0 | 0 | 0 | 0.149533 | 0.084112 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
44a08928a2a3e4699cdfa43b536f8936d6d36c31 | 6,064 | py | Python | deployer/loggers/__init__.py | timgates42/python-deployer | 04c67c887357c202e315412473ee3541b4675f02 | [
"BSD-2-Clause-FreeBSD"
] | 39 | 2015-01-06T23:56:56.000Z | 2021-12-15T09:43:35.000Z | deployer/loggers/__init__.py | timgates42/python-deployer | 04c67c887357c202e315412473ee3541b4675f02 | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2017-02-11T21:12:41.000Z | 2017-02-11T21:12:41.000Z | deployer/loggers/__init__.py | timgates42/python-deployer | 04c67c887357c202e315412473ee3541b4675f02 | [
"BSD-2-Clause-FreeBSD"
] | 14 | 2015-03-14T17:52:18.000Z | 2021-11-25T18:23:38.000Z | __all__ = ('Actions', 'LoggerInterface', 'RunCallback', 'FileCallback', 'Logger', 'DummyLoggerInterface')
#
# Interface: group of loggers which can attach multiple loggers.
#
class Actions(object):
Run = 'run'
Open = 'open'
Fork = 'fork'
class LoggerInterface(object):
"""
Base class for loggin... | 25.91453 | 123 | 0.540897 | 632 | 6,064 | 4.969937 | 0.18038 | 0.019102 | 0.013372 | 0.015919 | 0.257243 | 0.202165 | 0.13085 | 0.094874 | 0.073862 | 0.042662 | 0 | 0.000262 | 0.369393 | 6,064 | 233 | 124 | 26.025751 | 0.82113 | 0.084268 | 0 | 0.342857 | 0 | 0 | 0.016614 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.292857 | false | 0.057143 | 0 | 0.042857 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
44a13e0681ea8a22398ff1905b2af689bf8ea5fe | 477 | py | Python | Deep-Hash-learning-for-Remote-Sensing-Image-Retrieval/utils/generateUniformData.py | LiuChaoXD/Remote-Sensing-Image-Retrieval-Models | c135562263102080716e35260f111dcff7762264 | [
"MIT"
] | 4 | 2021-01-30T15:45:43.000Z | 2021-12-19T03:41:57.000Z | Deep-Hash-learning-for-Remote-Sensing-Image-Retrieval/utils/generateUniformData.py | LiuChaoXD/Remote-Sensing-Image-Retrieval-Models | c135562263102080716e35260f111dcff7762264 | [
"MIT"
] | null | null | null | Deep-Hash-learning-for-Remote-Sensing-Image-Retrieval/utils/generateUniformData.py | LiuChaoXD/Remote-Sensing-Image-Retrieval-Models | c135562263102080716e35260f111dcff7762264 | [
"MIT"
] | 1 | 2020-12-21T14:23:36.000Z | 2020-12-21T14:23:36.000Z | import numpy as np
def generate_binary_distribution(batchsize, dim):
z_batch = np.zeros((batchsize, dim))
for b in range(batchsize):
value_zeros_ones = np.zeros((dim))
for i in range(dim):
if i < dim // 2:
value_zeros_ones[i] = 0.
else:
v... | 28.058824 | 49 | 0.563941 | 65 | 477 | 3.938462 | 0.461538 | 0.15625 | 0.21875 | 0.117188 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009317 | 0.324948 | 477 | 16 | 50 | 29.8125 | 0.785714 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.071429 | 0 | 0.214286 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
44a242250b25eed8bf545b060d0762a2f0751de5 | 2,949 | py | Python | etc/pip_install/setup.py | hmost1/incubator-toree | f58a86f2a9466c122d52ed5abd8122c8ce40b2c5 | [
"Apache-2.0"
] | 31 | 2017-03-02T09:00:22.000Z | 2021-03-27T12:14:46.000Z | etc/pip_install/setup.py | hmost1/incubator-toree | f58a86f2a9466c122d52ed5abd8122c8ce40b2c5 | [
"Apache-2.0"
] | 3 | 2016-11-03T16:05:08.000Z | 2020-02-20T07:12:50.000Z | etc/pip_install/setup.py | hmost1/incubator-toree | f58a86f2a9466c122d52ed5abd8122c8ce40b2c5 | [
"Apache-2.0"
] | 8 | 2016-09-27T12:58:48.000Z | 2020-12-01T11:35:48.000Z | #
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | 36.407407 | 102 | 0.707358 | 389 | 2,949 | 5.275064 | 0.51928 | 0.02924 | 0.016569 | 0.026316 | 0.02924 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005968 | 0.204476 | 2,949 | 80 | 103 | 36.8625 | 0.868713 | 0.300441 | 0 | 0 | 0 | 0 | 0.60225 | 0.014677 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.056604 | 0 | 0.056604 | 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 |
44a2791177029781912dd84d5fb81d78441a1833 | 1,488 | py | Python | server-python3/test/test.py | Aaron-Ming/websocket_terminal | 42c24391d51c275eabf1f879fb312b9a3614f51e | [
"MIT"
] | 40 | 2016-11-20T09:48:27.000Z | 2021-04-02T00:29:14.000Z | server-python3/test/test.py | Aaron-Ming/websocket_terminal | 42c24391d51c275eabf1f879fb312b9a3614f51e | [
"MIT"
] | 6 | 2018-01-07T03:43:22.000Z | 2022-03-21T08:43:33.000Z | server-python3/test/test.py | glensc/websocket_terminal | 42c24391d51c275eabf1f879fb312b9a3614f51e | [
"MIT"
] | 20 | 2016-12-02T06:00:27.000Z | 2021-08-15T11:40:34.000Z | import threading
import sys
import subprocess
import eventlet
import eventlet.tpool
import eventlet.green.subprocess
from eventlet import green
eventlet.monkey_patch()
def consume(stream, pref=b'T> '):
print("CHK consume 1")
p = pref
while True:
print("CHK consume 2")
data = stream.rea... | 22.208955 | 118 | 0.640457 | 198 | 1,488 | 4.747475 | 0.328283 | 0.093617 | 0.111702 | 0.040426 | 0.053191 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013169 | 0.234543 | 1,488 | 66 | 119 | 22.545455 | 0.812116 | 0.038978 | 0 | 0.042553 | 0 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085106 | false | 0 | 0.148936 | 0 | 0.276596 | 0.234043 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
44a509e87a818b2445cd5c73173ed6b47ce8470d | 1,591 | py | Python | climatecontrol/cli_utils.py | daviskirk/climatecontrol | f1fed474d649eaf4d75ed5b7cdda333faef4bbd7 | [
"MIT"
] | 19 | 2018-01-19T13:42:18.000Z | 2022-02-27T22:20:39.000Z | climatecontrol/cli_utils.py | daviskirk/climatecontrol | f1fed474d649eaf4d75ed5b7cdda333faef4bbd7 | [
"MIT"
] | 27 | 2016-06-01T23:03:48.000Z | 2022-02-27T22:24:36.000Z | climatecontrol/cli_utils.py | daviskirk/climatecontrol | f1fed474d649eaf4d75ed5b7cdda333faef4bbd7 | [
"MIT"
] | 2 | 2017-07-10T09:49:55.000Z | 2018-01-10T12:38:34.000Z | """CLI utils for easy command line extras."""
import click
from climatecontrol import core
def click_settings_file_option(
settings_obj: core.Climate, click_obj=click, option_name="settings", **kw
):
"""Build a `click` option decorator.
Args:
settings_obj: settings object to load configuration ... | 26.081967 | 81 | 0.63105 | 194 | 1,591 | 4.979381 | 0.43299 | 0.062112 | 0.031056 | 0.060041 | 0.144928 | 0.080745 | 0 | 0 | 0 | 0 | 0 | 0.000868 | 0.275927 | 1,591 | 60 | 82 | 26.516667 | 0.837674 | 0.472659 | 0 | 0 | 0 | 0 | 0.086667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.090909 | 0 | 0.227273 | 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 | 0 | 0 | 1 | 0 |
44a6f0369943db97ab0830abb53adb928e4a9136 | 356 | py | Python | src/pyglottolog/admin_commands/evobib.py | SimonGreenhill/pyglottolog | 1e0aa0cdc5ae35906c763f9219c6db9b976f8d38 | [
"Apache-2.0"
] | 7 | 2019-07-28T16:09:05.000Z | 2021-09-12T20:21:55.000Z | src/pyglottolog/admin_commands/evobib.py | SimonGreenhill/pyglottolog | 1e0aa0cdc5ae35906c763f9219c6db9b976f8d38 | [
"Apache-2.0"
] | 52 | 2019-06-18T05:16:38.000Z | 2022-02-21T11:20:02.000Z | src/pyglottolog/admin_commands/evobib.py | SimonGreenhill/pyglottolog | 1e0aa0cdc5ae35906c763f9219c6db9b976f8d38 | [
"Apache-2.0"
] | 6 | 2019-07-26T17:40:25.000Z | 2021-12-08T00:59:38.000Z | """
"""
from clldutils.clilib import PathType
from pyglottolog.references import evobib
def register(parser):
parser.add_argument(
'bib',
type=PathType(type='file'),
help='path to downloaded evobib-converted.bib')
def run(args): # pragma: no cover
evobib.update(args.bib, args.repo... | 19.777778 | 72 | 0.676966 | 45 | 356 | 5.333333 | 0.666667 | 0.058333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.188202 | 356 | 17 | 73 | 20.941176 | 0.83045 | 0.044944 | 0 | 0 | 0 | 0 | 0.169697 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
44a98b03850d9eb1474c0e0ef2e1403a15713bb9 | 1,198 | py | Python | Chapter 3/latihan03.py | Gadeth/Basic-Python | 470b6e1ccb1da6c0b17801970004bda38e462d19 | [
"Apache-2.0"
] | null | null | null | Chapter 3/latihan03.py | Gadeth/Basic-Python | 470b6e1ccb1da6c0b17801970004bda38e462d19 | [
"Apache-2.0"
] | null | null | null | Chapter 3/latihan03.py | Gadeth/Basic-Python | 470b6e1ccb1da6c0b17801970004bda38e462d19 | [
"Apache-2.0"
] | null | null | null | # import library
import datetime
# input nama user
nama = input("Hallo... nama saya Mr. Kompie, nama Anda siapa? ")
# tampilkan nama user
print("Oh.. nama Anda", nama, ", nama yang bagus sekali.")
# kasih jeda 3 detik
time.sleep(3)
# input tahun lahir
thnLahir = int(input("BTW... " + nama + "kamu lah... | 23.96 | 70 | 0.643573 | 169 | 1,198 | 4.56213 | 0.491124 | 0.046693 | 0.051881 | 0.077821 | 0.178988 | 0.13489 | 0.13489 | 0.070039 | 0 | 0 | 0 | 0.017094 | 0.218698 | 1,198 | 49 | 71 | 24.44898 | 0.806624 | 0.186144 | 0 | 0.166667 | 0 | 0 | 0.495614 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.041667 | 0 | 0.041667 | 0.458333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
44aa0a66e785bf81c7382dde12bd47b1cd507bfb | 155 | py | Python | Baekjoon/Python/10814.py | KHJcode/Algorithm-study | fa08d3c752fcb3557fd45fb394157926afc0de4a | [
"MIT"
] | 2 | 2020-05-23T01:55:38.000Z | 2020-07-07T15:59:00.000Z | Baekjoon/Python/10814.py | KHJcode/Algorithm-study | fa08d3c752fcb3557fd45fb394157926afc0de4a | [
"MIT"
] | null | null | null | Baekjoon/Python/10814.py | KHJcode/Algorithm-study | fa08d3c752fcb3557fd45fb394157926afc0de4a | [
"MIT"
] | null | null | null | n = int(input())
person = []
for i in range(n):
a,b = map(str, input().split())
person.append((int(a),i,b))
for i in sorted(person): print(i[0],i[2]) | 22.142857 | 42 | 0.580645 | 31 | 155 | 2.903226 | 0.580645 | 0.088889 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015385 | 0.16129 | 155 | 7 | 42 | 22.142857 | 0.676923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
44aa2a1d82bec0cc44381f7808cea5fcad7ec790 | 2,888 | py | Python | utils.py | andreloezer/zombie-dice | 0a97f0d14a2c5ada480e416e4a3f3fc1f47f8c30 | [
"MIT"
] | null | null | null | utils.py | andreloezer/zombie-dice | 0a97f0d14a2c5ada480e416e4a3f3fc1f47f8c30 | [
"MIT"
] | null | null | null | utils.py | andreloezer/zombie-dice | 0a97f0d14a2c5ada480e416e4a3f3fc1f47f8c30 | [
"MIT"
] | null | null | null | """Miscellaneous functions goes in here.
"""
from os import system
from config import OS
from strings import UtilsStrings as Strings
def clear_console() -> None:
"""Clear console terminal.
"""
command = "clear"
if OS in ("nt", "dos"):
command = "cls"
system(command)
def char_input() -... | 27.245283 | 111 | 0.61115 | 354 | 2,888 | 4.912429 | 0.353107 | 0.020127 | 0.025877 | 0.041403 | 0.156412 | 0.117309 | 0.078206 | 0.078206 | 0.054054 | 0 | 0 | 0.003955 | 0.299515 | 2,888 | 105 | 112 | 27.504762 | 0.85566 | 0.345914 | 0 | 0.285714 | 0 | 0 | 0.010129 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.107143 | false | 0 | 0.125 | 0 | 0.339286 | 0.089286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
44abe0da4aed5d12f6ff0fc73008b9641dec2d50 | 335 | py | Python | sqltricks/__init__.py | jiyulongxu/sql-tricks | 6eee96849ce09d46dd15ec0f48b6022bd5738fff | [
"Apache-2.0"
] | 1 | 2022-02-21T03:09:26.000Z | 2022-02-21T03:09:26.000Z | sqltricks/__init__.py | jiyulongxu/sql-tricks | 6eee96849ce09d46dd15ec0f48b6022bd5738fff | [
"Apache-2.0"
] | null | null | null | sqltricks/__init__.py | jiyulongxu/sql-tricks | 6eee96849ce09d46dd15ec0f48b6022bd5738fff | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
文档教程
https://sqxccdy.github.io/odpc/sql_build_model.html
"""
from sqltricks.create import *
from sqltricks.fields import *
from sqltricks.insert import *
from sqltricks.query import *
from sqltricks.drop import *
FORMAT = '%(asctime)-15s %(levelname)s::::%(message)s'
logging.basicConfig(f... | 19.705882 | 54 | 0.725373 | 44 | 335 | 5.477273 | 0.659091 | 0.26971 | 0.315353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010101 | 0.113433 | 335 | 16 | 55 | 20.9375 | 0.801347 | 0.238806 | 0 | 0 | 0 | 0 | 0.174797 | 0.113821 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.714286 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 1 | 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 | 1 | 0 | 1 | 0 | 0 | 4 |
44ac65411f95028d1ff96429ecd33acb3965c521 | 1,348 | py | Python | tests/test_analyser/test_sniffer_shpr.py | di-unipi-socc/micro-tosca | 5d5c9361b34eeabaed8955ddc62282607672bd81 | [
"MIT"
] | null | null | null | tests/test_analyser/test_sniffer_shpr.py | di-unipi-socc/micro-tosca | 5d5c9361b34eeabaed8955ddc62282607672bd81 | [
"MIT"
] | 3 | 2019-10-02T13:55:39.000Z | 2021-06-01T22:55:20.000Z | tests/test_analyser/test_sniffer_shpr.py | di-unipi-socc/microFreshener-core | 5d5c9361b34eeabaed8955ddc62282607672bd81 | [
"MIT"
] | null | null | null | from unittest import TestCase
from microfreshener.core.importer import YMLImporter
from microfreshener.core.analyser.sniffer import SharedPersistencySmellSniffer
from microfreshener.core.analyser.smell import SharedPersistencySmell
from microfreshener.core.model.groups import Edge
class TestSharedPersitence(TestCase... | 36.432432 | 78 | 0.714392 | 142 | 1,348 | 6.690141 | 0.34507 | 0.082105 | 0.092632 | 0.096842 | 0.450526 | 0.422105 | 0.309474 | 0.223158 | 0.223158 | 0 | 0 | 0.00546 | 0.184718 | 1,348 | 36 | 79 | 37.444444 | 0.858963 | 0 | 0 | 0.241379 | 0 | 0 | 0.029674 | 0.023739 | 0 | 0 | 0 | 0 | 0.275862 | 1 | 0.137931 | false | 0 | 0.241379 | 0 | 0.413793 | 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 | 0 | 0 | 1 | 0 |
44acf77d849af78689caf76f78bd3a87709f0bd6 | 1,112 | py | Python | problems/dfs/Solution417.py | akalu/cs-problems-python | 9b1bd8e3932be62135a38a77f955ded9a766b654 | [
"MIT"
] | null | null | null | problems/dfs/Solution417.py | akalu/cs-problems-python | 9b1bd8e3932be62135a38a77f955ded9a766b654 | [
"MIT"
] | null | null | null | problems/dfs/Solution417.py | akalu/cs-problems-python | 9b1bd8e3932be62135a38a77f955ded9a766b654 | [
"MIT"
] | null | null | null | """ Given an m x n matrix of non-negative integers representing the height of
each unit cell in a continent, the "Pacific ocean" touches the left and top
edges of the matrix and the "Atlantic ocean" touches the right and bottom
edges.
Water can only flow in four directions (up, down, left, or right) f... | 30.888889 | 97 | 0.566547 | 173 | 1,112 | 3.641619 | 0.485549 | 0.012698 | 0.047619 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067493 | 0.347122 | 1,112 | 35 | 98 | 31.771429 | 0.800275 | 0.883094 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
44ad4566bf3e052d6f2cd5576c859905edc198bd | 9,068 | py | Python | geneal/applications/tsp/travelling_salesman_problem.py | NeveIsa/geneal | 064b0409912088886bf56fe9a729d74dac92a235 | [
"MIT"
] | 47 | 2020-07-10T14:28:52.000Z | 2022-03-25T17:20:52.000Z | geneal/applications/tsp/travelling_salesman_problem.py | NeveIsa/geneal | 064b0409912088886bf56fe9a729d74dac92a235 | [
"MIT"
] | 10 | 2020-08-08T16:35:40.000Z | 2022-03-08T00:07:19.000Z | geneal/applications/tsp/travelling_salesman_problem.py | NeveIsa/geneal | 064b0409912088886bf56fe9a729d74dac92a235 | [
"MIT"
] | 14 | 2020-08-07T20:49:18.000Z | 2022-03-31T17:55:47.000Z | import random
import time
from functools import reduce
import hashlib
from collections import defaultdict
import numpy as np
from numba import njit
from numba.core import types
from numba.typed import Dict
from geneal.applications.tsp.mutation_strategies import MutationStrategies
from geneal.genetic_algorithms import... | 31.929577 | 104 | 0.638619 | 1,089 | 9,068 | 5.115702 | 0.232323 | 0.063184 | 0.01436 | 0.037695 | 0.282714 | 0.225992 | 0.184348 | 0.17986 | 0.156166 | 0.132831 | 0 | 0.010563 | 0.269188 | 9,068 | 283 | 105 | 32.042403 | 0.830089 | 0.177658 | 0 | 0.069182 | 0 | 0 | 0.106451 | 0.0209 | 0 | 0 | 0 | 0 | 0 | 1 | 0.056604 | false | 0 | 0.075472 | 0 | 0.238994 | 0.012579 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
44ae9d732979b2682fbbac20b12b7e914fab8154 | 388 | py | Python | src/377. Combination Sum IV.py | xiaonanln/myleetcode-python | 95d282f21a257f937cd22ef20c3590a69919e307 | [
"Apache-2.0"
] | null | null | null | src/377. Combination Sum IV.py | xiaonanln/myleetcode-python | 95d282f21a257f937cd22ef20c3590a69919e307 | [
"Apache-2.0"
] | null | null | null | src/377. Combination Sum IV.py | xiaonanln/myleetcode-python | 95d282f21a257f937cd22ef20c3590a69919e307 | [
"Apache-2.0"
] | null | null | null | class Solution(object):
def combinationSum4(self, nums, target):
"""
:type nums: List[int]
:type target: int
:rtype: int
"""
dp = [0] * (target + 1)
dp[0] = 1
for i in xrange(1, target+1):
fi = 0
for n in nums:
if i < n: continue
fi += dp[i - n]
dp[i] = fi
return dp[target]
nums =... | 17.636364 | 46 | 0.574742 | 62 | 388 | 3.596774 | 0.451613 | 0.089686 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045455 | 0.262887 | 388 | 22 | 46 | 17.636364 | 0.734266 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
44aee10963b90c303639a9d3405aa32659f7cfd5 | 12,188 | py | Python | src/component/PlaylistDialog.py | renchangjiu/kon-windows | a20f33fc98cd197e1e601b5d97adecabee9176d8 | [
"MIT"
] | 2 | 2020-06-01T00:34:50.000Z | 2020-12-08T14:40:41.000Z | src/component/PlaylistDialog.py | renchangjiu/kon-windows | a20f33fc98cd197e1e601b5d97adecabee9176d8 | [
"MIT"
] | null | null | null | src/component/PlaylistDialog.py | renchangjiu/kon-windows | a20f33fc98cd197e1e601b5d97adecabee9176d8 | [
"MIT"
] | null | null | null | from PyQt5 import QtGui
from PyQt5.QtCore import Qt, QEvent, QModelIndex
from PyQt5.QtGui import QPixmap, QColor, QIcon, QCursor, QPainter, QPen
from PyQt5.QtWidgets import QWidget, QTableWidgetItem, \
QAction, QMenu, QLabel, QWidgetAction, QHBoxLayout
from src.Apps import Apps
from src.model.MusicList import Musi... | 44.808824 | 118 | 0.628159 | 1,318 | 12,188 | 5.694234 | 0.254932 | 0.063957 | 0.017588 | 0.021319 | 0.214657 | 0.164823 | 0.136975 | 0.10553 | 0.10553 | 0.10553 | 0 | 0.025868 | 0.248277 | 12,188 | 271 | 119 | 44.97417 | 0.793277 | 0.065967 | 0 | 0.074074 | 0 | 0.018519 | 0.149894 | 0.1276 | 0 | 0 | 0 | 0 | 0 | 1 | 0.069444 | false | 0.00463 | 0.037037 | 0 | 0.12037 | 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 | 0 | 0 | 1 | 0 |
44b09eface0e025db8dfa1c9489702d2607f4f1d | 8,486 | py | Python | linux/avnav_gui.py | e-sailing/avnav | b3e8df4d6fa122b05309eee09197c716e29b64ec | [
"MIT"
] | null | null | null | linux/avnav_gui.py | e-sailing/avnav | b3e8df4d6fa122b05309eee09197c716e29b64ec | [
"MIT"
] | null | null | null | linux/avnav_gui.py | e-sailing/avnav | b3e8df4d6fa122b05309eee09197c716e29b64ec | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# vim: ts=2 sw=2 et ai
###############################################################################
# Copyright (c) 2012,2014 Andreas Vogel andreas@wellenvogel.net
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and a... | 36.895652 | 168 | 0.600283 | 929 | 8,486 | 5.427341 | 0.307858 | 0.01785 | 0.015867 | 0.013883 | 0.180087 | 0.12257 | 0.081515 | 0.047798 | 0.036692 | 0.036692 | 0 | 0.006312 | 0.27186 | 8,486 | 229 | 169 | 37.056769 | 0.809678 | 0.154018 | 0 | 0.359551 | 0 | 0 | 0.071234 | 0.003147 | 0 | 0 | 0 | 0 | 0 | 1 | 0.101124 | false | 0.039326 | 0.044944 | 0 | 0.219101 | 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 | 0 | 0 | 1 | 0 |
44b0bea0625ce86caee7e87e49ae974396869730 | 2,714 | py | Python | scripts/crawlAll.py | hysds/sciflo | f706288405c8eee59a2f883bab3dcb5229615367 | [
"Apache-2.0"
] | null | null | null | scripts/crawlAll.py | hysds/sciflo | f706288405c8eee59a2f883bab3dcb5229615367 | [
"Apache-2.0"
] | null | null | null | scripts/crawlAll.py | hysds/sciflo | f706288405c8eee59a2f883bab3dcb5229615367 | [
"Apache-2.0"
] | 1 | 2019-02-07T01:08:34.000Z | 2019-02-07T01:08:34.000Z | #!/usr/bin/env python
# -----------------------------------------------------------------------------
# Name: crawlAll.py
# Purpose: Crawl and catalog using crawler config in crawler directory.
#
# Author: Gerald Manipon
#
# Created: Wed Nov 29 18:42:34 2006
# Copyright: (c) 2006, California Insti... | 33.925 | 79 | 0.611643 | 304 | 2,714 | 5.457237 | 0.460526 | 0.0217 | 0.024111 | 0.047016 | 0.162749 | 0.137432 | 0.094033 | 0.094033 | 0.065099 | 0.065099 | 0 | 0.017423 | 0.196389 | 2,714 | 79 | 80 | 34.35443 | 0.743237 | 0.208917 | 0 | 0.140351 | 0 | 0 | 0.154784 | 0.047842 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.070175 | 0.140351 | 0 | 0.140351 | 0.105263 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
44b155e14a6c99695a7fb8ef157cc096fe1beb35 | 8,162 | py | Python | powermeterapatorec3.py | grillbaer/data-logger | f0d5b878e8f4a2f8eafcc8453d8f3b42c210558d | [
"Apache-2.0"
] | 9 | 2018-03-11T20:46:31.000Z | 2022-03-28T13:28:43.000Z | powermeterapatorec3.py | grillbaer/data-logger | f0d5b878e8f4a2f8eafcc8453d8f3b42c210558d | [
"Apache-2.0"
] | null | null | null | powermeterapatorec3.py | grillbaer/data-logger | f0d5b878e8f4a2f8eafcc8453d8f3b42c210558d | [
"Apache-2.0"
] | 1 | 2020-05-03T07:15:08.000Z | 2020-05-03T07:15:08.000Z | """
Communication with APATOR EC3 power meter to get its actual readings.
"""
from __future__ import annotations
__author__ = 'Holger Fleischmann'
__copyright__ = 'Copyright 2021, Holger Fleischmann, Bavaria/Germany'
__license__ = 'Apache License 2.0'
import logging
import time
from typing import NamedTuple, Optiona... | 33.314286 | 115 | 0.636364 | 1,004 | 8,162 | 4.947211 | 0.231076 | 0.034226 | 0.014496 | 0.018321 | 0.151399 | 0.057177 | 0.031005 | 0.017314 | 0.017314 | 0.017314 | 0 | 0.011017 | 0.277138 | 8,162 | 244 | 116 | 33.45082 | 0.830847 | 0.165523 | 0 | 0.11875 | 0 | 0 | 0.042166 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1125 | false | 0 | 0.04375 | 0 | 0.35625 | 0.00625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
44b22136f8f7845ba30e0d616c9b44281b0dd3fc | 913 | py | Python | core/migrations/0009_auto_20190421_1740.py | support-me/support-me | 385e605c5a5506e2e712d007df9c0241ef941dee | [
"Unlicense"
] | null | null | null | core/migrations/0009_auto_20190421_1740.py | support-me/support-me | 385e605c5a5506e2e712d007df9c0241ef941dee | [
"Unlicense"
] | 29 | 2019-04-12T21:08:33.000Z | 2022-02-10T07:46:06.000Z | core/migrations/0009_auto_20190421_1740.py | support-me/support-me | 385e605c5a5506e2e712d007df9c0241ef941dee | [
"Unlicense"
] | null | null | null | # Generated by Django 2.2 on 2019-04-21 21:40
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('core', '0008_auto_20190421_1144'),
]
operations = [
migrations.AlterField(
... | 32.607143 | 161 | 0.661555 | 102 | 913 | 5.77451 | 0.470588 | 0.054329 | 0.071307 | 0.112054 | 0.302207 | 0.302207 | 0.302207 | 0.302207 | 0.302207 | 0.302207 | 0 | 0.042553 | 0.22782 | 913 | 27 | 162 | 33.814815 | 0.792908 | 0.047097 | 0 | 0.285714 | 1 | 0 | 0.124424 | 0.026498 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 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 |
44b2ed7cd64ff69161aa71d32d7a5abf6638b0c2 | 6,939 | py | Python | django/peering_coord/peering_policy.py | netsys-lab/scion-peering-coordinator | cd2fc9e9423242cafe90e71a54f4ad9e763acdae | [
"MIT"
] | null | null | null | django/peering_coord/peering_policy.py | netsys-lab/scion-peering-coordinator | cd2fc9e9423242cafe90e71a54f4ad9e763acdae | [
"MIT"
] | null | null | null | django/peering_coord/peering_policy.py | netsys-lab/scion-peering-coordinator | cd2fc9e9423242cafe90e71a54f4ad9e763acdae | [
"MIT"
] | null | null | null | """Functions for updating links according to peering policies"""
from django.db import transaction
from django.db.models import Q, QuerySet
from peering_coord.api.client_connection import ClientRegistry
from peering_coord.api.peering_pb2 import AsyncError
from peering_coord.models.ixp import VLAN, Interface, Owner
fr... | 40.817647 | 99 | 0.683816 | 978 | 6,939 | 4.616564 | 0.175869 | 0.033666 | 0.034552 | 0.035437 | 0.442082 | 0.407309 | 0.339092 | 0.32093 | 0.245183 | 0.223034 | 0 | 0.000555 | 0.221646 | 6,939 | 169 | 100 | 41.059172 | 0.835401 | 0.213143 | 0 | 0.194175 | 0 | 0 | 0.047059 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038835 | false | 0 | 0.067961 | 0 | 0.126214 | 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 | 0 | 0 | 1 | 0 |
44b55411280b2c91c5d8253412bafa1ca94c9a7f | 33,900 | py | Python | momepy/dimension.py | AleFeli/momepy | fd68bdd2518e2c1cadce41a6059a93cebb2c1864 | [
"MIT"
] | 1 | 2021-06-19T05:41:30.000Z | 2021-06-19T05:41:30.000Z | momepy/dimension.py | AleFeli/momepy | fd68bdd2518e2c1cadce41a6059a93cebb2c1864 | [
"MIT"
] | null | null | null | momepy/dimension.py | AleFeli/momepy | fd68bdd2518e2c1cadce41a6059a93cebb2c1864 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# dimension.py
# definitions of dimension characters
import math
import numpy as np
import pandas as pd
import scipy as sp
from shapely.geometry import LineString, Point, Polygon
from tqdm import tqdm
from .shape import _make_circle
__all__ = [
"Area",
"Perimet... | 33.798604 | 146 | 0.578643 | 3,836 | 33,900 | 5.02633 | 0.125912 | 0.041388 | 0.030808 | 0.025725 | 0.583943 | 0.545822 | 0.494321 | 0.458586 | 0.423733 | 0.388777 | 0 | 0.018534 | 0.323569 | 33,900 | 1,002 | 147 | 33.832335 | 0.820113 | 0.430885 | 0 | 0.434466 | 0 | 0 | 0.034149 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038835 | false | 0 | 0.024272 | 0 | 0.101942 | 0.009709 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
44b618144cd7630733cffae5d1cb9672a7fba58e | 6,430 | py | Python | tests/test_db.py | craymaru/serverless-todo-backend | 5f0bd32b321e783fbdcab2714ccd0cdee30f6156 | [
"MIT"
] | 1 | 2020-12-08T09:16:27.000Z | 2020-12-08T09:16:27.000Z | tests/test_db.py | craymaru/serverless-todo-backend | 5f0bd32b321e783fbdcab2714ccd0cdee30f6156 | [
"MIT"
] | null | null | null | tests/test_db.py | craymaru/serverless-todo-backend | 5f0bd32b321e783fbdcab2714ccd0cdee30f6156 | [
"MIT"
] | null | null | null | import operator
import pytest
from chalice import NotFoundError
import app
from tests.testdata.ddb_items import TESTDATA_DDB_ITEMS
DEFAULT_USERNAME = 'default'
class TestDB:
pass
class TestListAllItems(TestDB):
def test_Return_all_items(self, mock):
"""list_all_items: すべてのアイテムを取得することができる"""
... | 38.502994 | 85 | 0.671851 | 719 | 6,430 | 5.724618 | 0.154381 | 0.056122 | 0.081633 | 0.040087 | 0.685374 | 0.652818 | 0.604956 | 0.587707 | 0.566812 | 0.566812 | 0 | 0.003942 | 0.210886 | 6,430 | 166 | 86 | 38.73494 | 0.806858 | 0.196112 | 0 | 0.524272 | 0 | 0 | 0.060397 | 0 | 0 | 0 | 0 | 0 | 0.106796 | 1 | 0.135922 | false | 0.009709 | 0.048544 | 0 | 0.252427 | 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 | 0 | 0 | 1 | 0 |
44b63f8dd16194a8fc997b6be8fdf43178a1bc65 | 11,651 | py | Python | src/vessel-drift-analysis/scripts/simulations/launch_drift.py | yosoyjay/project-nps-vessel-drift | 1cdc14ef87db31fa03b0c3bdc1d60c332727ef57 | [
"MIT"
] | null | null | null | src/vessel-drift-analysis/scripts/simulations/launch_drift.py | yosoyjay/project-nps-vessel-drift | 1cdc14ef87db31fa03b0c3bdc1d60c332727ef57 | [
"MIT"
] | null | null | null | src/vessel-drift-analysis/scripts/simulations/launch_drift.py | yosoyjay/project-nps-vessel-drift | 1cdc14ef87db31fa03b0c3bdc1d60c332727ef57 | [
"MIT"
] | null | null | null | #!python
"""Launch vessel drift simulations.
Methodology
-----------
For every week with forcing data, simulated vessels are launched from every cell where
a vessel was present in the AIS data.
The drift angle (up to 60 deg.), windage scaling (2% - 10% of 10 m), and left/right
direction is randomly assigned per simul... | 32.912429 | 122 | 0.618488 | 1,490 | 11,651 | 4.618121 | 0.239597 | 0.015114 | 0.030228 | 0.020927 | 0.224967 | 0.182677 | 0.126144 | 0.095771 | 0.083127 | 0.047377 | 0 | 0.029799 | 0.282808 | 11,651 | 353 | 123 | 33.005666 | 0.793562 | 0.167282 | 0 | 0.089494 | 0 | 0.015564 | 0.164349 | 0.100851 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023346 | false | 0.003891 | 0.050584 | 0 | 0.136187 | 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 | 0 | 0 | 1 | 0 |
44b6d6a32049f0dfb679101cd399346994e52f62 | 932 | py | Python | setup.py | bobbypaton/pyX-Struct | c6e7132f010635ebc95aea09cef75247271026de | [
"MIT"
] | 6 | 2018-09-01T21:00:20.000Z | 2022-01-11T11:13:38.000Z | setup.py | bobbypaton/pyX-Struct | c6e7132f010635ebc95aea09cef75247271026de | [
"MIT"
] | null | null | null | setup.py | bobbypaton/pyX-Struct | c6e7132f010635ebc95aea09cef75247271026de | [
"MIT"
] | null | null | null | from setuptools import setup
import io
# read the contents of your README file
from os import path
this_directory = path.abspath(path.dirname(__file__))
with io.open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
name = 'pyxstruct',
packages = ['pyxstruct'],... | 33.285714 | 86 | 0.722103 | 124 | 932 | 5.282258 | 0.677419 | 0.091603 | 0.058015 | 0.091603 | 0.109924 | 0.109924 | 0.109924 | 0 | 0 | 0 | 0 | 0.01107 | 0.127682 | 932 | 27 | 87 | 34.518519 | 0.794588 | 0.0397 | 0 | 0 | 0 | 0.043478 | 0.365471 | 0.029148 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.130435 | 0 | 0.130435 | 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 | 0 | 0 | 1 | 0 |
44ba14a55225e2fca7e6776005ca90c19e46d4ef | 7,317 | py | Python | hypernets/tabular/ensemble/base_ensemble.py | Enpen/Hypernets | 5fbf01412ffaef310855d98f52f8cc169e96246b | [
"Apache-2.0"
] | null | null | null | hypernets/tabular/ensemble/base_ensemble.py | Enpen/Hypernets | 5fbf01412ffaef310855d98f52f8cc169e96246b | [
"Apache-2.0"
] | null | null | null | hypernets/tabular/ensemble/base_ensemble.py | Enpen/Hypernets | 5fbf01412ffaef310855d98f52f8cc169e96246b | [
"Apache-2.0"
] | null | null | null | # -*- coding:utf-8 -*-
__author__ = 'yangjian'
"""
"""
import copy
import pickle
from sklearn.model_selection import StratifiedKFold
from hypernets.utils import fs
class BaseEnsemble:
import numpy as np
def __init__(self, task, estimators, need_fit=False, n_folds=5, method='soft', random_state=9527):
... | 38.109375 | 111 | 0.574962 | 883 | 7,317 | 4.613817 | 0.150623 | 0.099656 | 0.022091 | 0.034364 | 0.425626 | 0.303387 | 0.22975 | 0.163476 | 0.121748 | 0.088856 | 0 | 0.009406 | 0.31707 | 7,317 | 191 | 112 | 38.308901 | 0.805884 | 0.030204 | 0 | 0.228758 | 0 | 0.006536 | 0.068907 | 0.029653 | 0 | 0 | 0 | 0 | 0.058824 | 1 | 0.098039 | false | 0 | 0.03268 | 0.006536 | 0.196078 | 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 | 0 | 0 | 1 | 0 |
44ba63f3647ceeb589ce1842b68940e92b0bb81b | 173 | py | Python | agronet_be/AgronetApp/models/__init__.py | lauraC4MP0/Prueba-github | 291fc266fc0a8efc80ab36dd6eb4bff3e98e7c1f | [
"MIT"
] | 1 | 2021-10-06T00:39:08.000Z | 2021-10-06T00:39:08.000Z | agronet_be/AgronetApp/models/__init__.py | lauraC4MP0/Prueba-github | 291fc266fc0a8efc80ab36dd6eb4bff3e98e7c1f | [
"MIT"
] | null | null | null | agronet_be/AgronetApp/models/__init__.py | lauraC4MP0/Prueba-github | 291fc266fc0a8efc80ab36dd6eb4bff3e98e7c1f | [
"MIT"
] | 1 | 2021-10-03T13:39:31.000Z | 2021-10-03T13:39:31.000Z | from .product import Product
from .departament import Departament
from .city import City
from .orderDetail import OrderDetail
from .order import Order
from .user import User | 28.833333 | 36 | 0.83237 | 24 | 173 | 6 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.132948 | 173 | 6 | 37 | 28.833333 | 0.96 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
44bcca6b59578ac7da93d3743cc3030c283f7d93 | 4,698 | py | Python | apis/betterself/v1/supplements/views.py | jeffshek/betterself | 51468253fc31373eb96e0e82189b9413f3d76ff5 | [
"MIT"
] | 98 | 2017-07-29T14:26:36.000Z | 2022-02-28T04:10:15.000Z | apis/betterself/v1/supplements/views.py | jeffshek/betterself | 51468253fc31373eb96e0e82189b9413f3d76ff5 | [
"MIT"
] | 1,483 | 2017-05-30T00:05:56.000Z | 2022-03-31T12:37:06.000Z | apis/betterself/v1/supplements/views.py | lawrendran/betterself | 51468253fc31373eb96e0e82189b9413f3d76ff5 | [
"MIT"
] | 13 | 2017-11-08T00:02:35.000Z | 2022-02-28T04:10:32.000Z | from django.db.models.query import Prefetch
from rest_framework.generics import ListAPIView, ListCreateAPIView
from apis.betterself.v1.supplements.filters import IngredientCompositionFilter, SupplementFilter, \
UserSupplementStackFilter, UserSupplementStackCompositionFilter
from apis.betterself.v1.supplements.seri... | 43.906542 | 117 | 0.801618 | 407 | 4,698 | 9.051597 | 0.285012 | 0.089577 | 0.034202 | 0.039902 | 0.258686 | 0.198426 | 0.189739 | 0.189739 | 0.189739 | 0.189739 | 0 | 0.000993 | 0.142614 | 4,698 | 106 | 118 | 44.320755 | 0.913605 | 0.030226 | 0 | 0.260274 | 0 | 0 | 0.019743 | 0.00528 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136986 | false | 0 | 0.09589 | 0.123288 | 0.863014 | 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 |
44bccdf59785819826e9ae489afe64a4d019ae2c | 253 | py | Python | mlrun/frameworks/_common/__init__.py | zjzh/mlrun | 2f367b29838222663b1a7c6deeacbe26156071b3 | [
"Apache-2.0"
] | 1 | 2021-02-17T08:12:33.000Z | 2021-02-17T08:12:33.000Z | mlrun/frameworks/_common/__init__.py | zjzh/mlrun | 2f367b29838222663b1a7c6deeacbe26156071b3 | [
"Apache-2.0"
] | null | null | null | mlrun/frameworks/_common/__init__.py | zjzh/mlrun | 2f367b29838222663b1a7c6deeacbe26156071b3 | [
"Apache-2.0"
] | 1 | 2021-08-30T21:43:38.000Z | 2021-08-30T21:43:38.000Z | # flake8: noqa - this is until we take care of the F401 violations with respect to __all__ & sphinx
from .mlrun_interface import MLRunInterface
from .model_handler import ModelHandler
from .types import ExtraDataType, IOSampleType, ModelType, PathType
| 50.6 | 100 | 0.818182 | 34 | 253 | 5.911765 | 0.882353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018433 | 0.142292 | 253 | 4 | 101 | 63.25 | 0.907834 | 0.387352 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
44bdf8f5ecb0e60fa1e48ee58697351e0ea1c854 | 3,456 | py | Python | KMeansClustering/clustering.py | saberzuko/MachineLearningAlgorithms | a7072e7342b0836f195325faed169f5d1de23f76 | [
"MIT"
] | null | null | null | KMeansClustering/clustering.py | saberzuko/MachineLearningAlgorithms | a7072e7342b0836f195325faed169f5d1de23f76 | [
"MIT"
] | null | null | null | KMeansClustering/clustering.py | saberzuko/MachineLearningAlgorithms | a7072e7342b0836f195325faed169f5d1de23f76 | [
"MIT"
] | null | null | null | import numpy as np
from scipy.spatial import distance
import random
def mu_generator(X, K):
# Function to initialize the cluster centers
# The input is the training data X and the number of cluster centers
mu = []; rand_keys = []
for _ in range(K):
rand = random.randint(0, len(X)-1)
# T... | 39.724138 | 97 | 0.640625 | 503 | 3,456 | 4.310139 | 0.272366 | 0.135609 | 0.031365 | 0.017989 | 0.066421 | 0.021218 | 0.021218 | 0 | 0 | 0 | 0 | 0.005263 | 0.285301 | 3,456 | 86 | 98 | 40.186047 | 0.87247 | 0.409722 | 0 | 0.076923 | 0 | 0 | 0.001489 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057692 | false | 0 | 0.057692 | 0 | 0.173077 | 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 | 0 | 0 | 1 | 0 |
44be78e2d92511ba650938e4b2a465810360de31 | 435 | py | Python | app/utils.py | scorpioza/tele2-profit | 99514eb6bce404ce4cf672ea6f5ddf84388d46c1 | [
"MIT"
] | 16 | 2020-06-26T13:20:52.000Z | 2021-01-05T09:35:08.000Z | app/utils.py | scorpioza/tele2-profit | 99514eb6bce404ce4cf672ea6f5ddf84388d46c1 | [
"MIT"
] | 3 | 2020-09-25T18:04:16.000Z | 2020-11-16T15:02:52.000Z | app/utils.py | scorpioza/tele2-profit | 99514eb6bce404ce4cf672ea6f5ddf84388d46c1 | [
"MIT"
] | 5 | 2020-09-26T19:29:41.000Z | 2020-12-29T08:42:21.000Z | import asyncio
import os
from _version import __version__
def _print_version():
print(f'tele2-profit v{__version__} by archie')
def run_main(main):
try:
_print_version()
event_loop = asyncio.get_event_loop()
future = asyncio.ensure_future(main())
event_loop.run_until_complete... | 21.75 | 51 | 0.657471 | 54 | 435 | 4.907407 | 0.574074 | 0.101887 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003067 | 0.250575 | 435 | 19 | 52 | 22.894737 | 0.809816 | 0 | 0 | 0 | 0 | 0 | 0.110345 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0.066667 | 0.2 | 0 | 0.333333 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
44be7e179d9f24df461429aeb0c1ef7aff9ab585 | 3,060 | py | Python | utils/static_common_utils.py | UESTC-Liuxin/CVMI_Sementic_Segmentation | dc5bf6e940cf6961ef65abb6e7ec372f29d55249 | [
"Apache-2.0"
] | null | null | null | utils/static_common_utils.py | UESTC-Liuxin/CVMI_Sementic_Segmentation | dc5bf6e940cf6961ef65abb6e7ec372f29d55249 | [
"Apache-2.0"
] | null | null | null | utils/static_common_utils.py | UESTC-Liuxin/CVMI_Sementic_Segmentation | dc5bf6e940cf6961ef65abb6e7ec372f29d55249 | [
"Apache-2.0"
] | null | null | null | '''
Author: Liu Xin
Date: 2021-11-13 19:11:06
LastEditors: Liu Xin
LastEditTime: 2021-11-25 15:44:12
Description: 静态工具库
FilePath: /CVMI_Sementic_Segmentation/utils/static_common_utils.py
'''
import os
import random
import numpy as np
import torch
import torch.backends.cudnn as cudnn
import warnings
from socket import g... | 27.321429 | 79 | 0.66634 | 414 | 3,060 | 4.775362 | 0.439614 | 0.042489 | 0.027314 | 0.028832 | 0.042994 | 0.028326 | 0.028326 | 0 | 0 | 0 | 0 | 0.015711 | 0.230392 | 3,060 | 112 | 80 | 27.321429 | 0.823779 | 0.285294 | 0 | 0.033333 | 0 | 0 | 0.07604 | 0.012912 | 0 | 0 | 0 | 0 | 0.016667 | 1 | 0.116667 | false | 0.016667 | 0.133333 | 0 | 0.35 | 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 | 0 | 0 | 1 | 0 |
44bf0a5052cbf6a144e0a5b040f0b62cdb2a95c6 | 230 | py | Python | receivers.py | MortalHappiness/mailer | cf7252d97ef42ac31f82e2745723c9d5629ac6a2 | [
"MIT"
] | null | null | null | receivers.py | MortalHappiness/mailer | cf7252d97ef42ac31f82e2745723c9d5629ac6a2 | [
"MIT"
] | null | null | null | receivers.py | MortalHappiness/mailer | cf7252d97ef42ac31f82e2745723c9d5629ac6a2 | [
"MIT"
] | null | null | null | import csv
def get_receivers():
"""
Return a list of receivers here
"""
with open("receivers.csv") as fin:
reader = csv.reader(fin)
receivers = [row[0] for row in reader]
return receivers
| 19.166667 | 46 | 0.591304 | 30 | 230 | 4.5 | 0.633333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00625 | 0.304348 | 230 | 11 | 47 | 20.909091 | 0.8375 | 0.134783 | 0 | 0 | 0 | 0 | 0.071038 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 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 | 0 | 0 | 0 | 0 | 1 | 0 |
44bfddd8311b2ce5f5b9d04ea8832fb97c03d8da | 4,309 | py | Python | anime_downloader/scrapers/gogoanime/gogoanime_scraper.py | Amdrossa/Anime | 9757f7c8d1a094da61e0c0ac38a2a29bf1c21e28 | [
"MIT"
] | 554 | 2020-04-15T20:22:50.000Z | 2022-03-31T11:07:53.000Z | anime_downloader/scrapers/gogoanime/gogoanime_scraper.py | Amdrossa/Anime | 9757f7c8d1a094da61e0c0ac38a2a29bf1c21e28 | [
"MIT"
] | 44 | 2020-04-15T19:26:43.000Z | 2022-03-11T09:59:24.000Z | anime_downloader/scrapers/gogoanime/gogoanime_scraper.py | Amdrossa/Anime | 9757f7c8d1a094da61e0c0ac38a2a29bf1c21e28 | [
"MIT"
] | 61 | 2020-04-16T19:17:04.000Z | 2022-03-27T14:51:54.000Z | import re
from util.Episode import Episode
from bs4 import BeautifulSoup
from extractors.jwplayer_extractor import JWPlayerExtractor
from scrapers.base_scraper import BaseScraper
from util.Color import printer
class GoGoAnimeScraper(BaseScraper):
def __init__(self, url, start_episode, end_episode, session, gui=No... | 38.81982 | 106 | 0.561383 | 489 | 4,309 | 4.695297 | 0.257669 | 0.018293 | 0.019164 | 0.028746 | 0.119338 | 0.093206 | 0.093206 | 0.062718 | 0.062718 | 0.062718 | 0 | 0.008395 | 0.336505 | 4,309 | 110 | 107 | 39.172727 | 0.794683 | 0.006034 | 0 | 0.134831 | 0 | 0 | 0.082243 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078652 | false | 0 | 0.067416 | 0 | 0.258427 | 0.05618 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
44bff82fd79a239bdafb6a54e8fdebc06260a17d | 1,355 | py | Python | mr_dale/config.py | evgeniy-tulyakov/mr-dale | 5a976ca11ba21e83a2adf2f9f4a77833a68da116 | [
"MIT"
] | null | null | null | mr_dale/config.py | evgeniy-tulyakov/mr-dale | 5a976ca11ba21e83a2adf2f9f4a77833a68da116 | [
"MIT"
] | null | null | null | mr_dale/config.py | evgeniy-tulyakov/mr-dale | 5a976ca11ba21e83a2adf2f9f4a77833a68da116 | [
"MIT"
] | null | null | null | '''
Constants necessary for the correct execution of this bot.
here, most of the values of the environment variables are extracted.
'''
from os import getenv
from pathlib import Path
# Base settings
PROJECT_PATH = Path(__file__).resolve().parent
UI_RESOURCES_PATH = PROJECT_PATH / 'ui_resources'
BOT_TOKEN = getenv('... | 23.77193 | 83 | 0.568266 | 132 | 1,355 | 5.621212 | 0.560606 | 0.09434 | 0.076819 | 0.070081 | 0.207547 | 0.118598 | 0 | 0 | 0 | 0 | 0 | 0.001031 | 0.284133 | 1,355 | 56 | 84 | 24.196429 | 0.763918 | 0.129889 | 0 | 0.195122 | 0 | 0.02439 | 0.401709 | 0.130769 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.04878 | 0 | 0.04878 | 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 | 0 | 0 | 1 | 0 |
44c122eb2bc4fddfe34663b5e113bdd4620db9d3 | 1,305 | py | Python | work/plot.py | XUHUAKing/bigdata | 47cdccbd448eacf074c4521d5b40d1205b000fc6 | [
"CC-BY-4.0"
] | 6 | 2018-03-19T03:34:19.000Z | 2021-11-08T01:35:48.000Z | work/plot.py | XUHUAKing/bigdata | 47cdccbd448eacf074c4521d5b40d1205b000fc6 | [
"CC-BY-4.0"
] | null | null | null | work/plot.py | XUHUAKing/bigdata | 47cdccbd448eacf074c4521d5b40d1205b000fc6 | [
"CC-BY-4.0"
] | null | null | null | # needs a parameter to specify which training record to display
import matplotlib as mpl
from mpl_toolkits.mplot3d import Axes3D
import numpy as np
import matplotlib.pyplot as plt
import functions as fn
import sys
#from matplotlib.backends.backend_pdf import PdfPages
tdata, ttarget, tlabel = fn.get_training_data()
i ... | 30.348837 | 98 | 0.691954 | 238 | 1,305 | 3.680672 | 0.37395 | 0.045662 | 0.073059 | 0.034247 | 0.111872 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045455 | 0.123372 | 1,305 | 43 | 99 | 30.348837 | 0.72028 | 0.131034 | 0 | 0 | 0 | 0 | 0.033599 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
44c253f81c7a3412e5a62fbd60011c97050af7d2 | 2,720 | py | Python | tests/test_year_2014.py | l0pht511/jpholiday | 083145737b61fad3420c066968c4329d17dc3baf | [
"MIT"
] | 179 | 2017-10-05T12:41:10.000Z | 2022-03-24T22:18:25.000Z | tests/test_year_2014.py | l0pht511/jpholiday | 083145737b61fad3420c066968c4329d17dc3baf | [
"MIT"
] | 17 | 2018-10-23T00:51:13.000Z | 2021-11-22T11:40:06.000Z | tests/test_year_2014.py | l0pht511/jpholiday | 083145737b61fad3420c066968c4329d17dc3baf | [
"MIT"
] | 17 | 2018-10-19T11:13:07.000Z | 2022-01-29T08:05:56.000Z | # coding: utf-8
import datetime
import unittest
import jpholiday
class TestYear2014(unittest.TestCase):
def test_holiday(self):
"""
2014年祝日
"""
self.assertEqual(jpholiday.is_holiday_name(datetime.date(2014, 1, 1)), '元日')
self.assertEqual(jpholiday.is_holiday_name(datetime.... | 51.320755 | 95 | 0.682353 | 352 | 2,720 | 5.125 | 0.176136 | 0.249446 | 0.226164 | 0.245011 | 0.809313 | 0.809313 | 0.809313 | 0.736142 | 0.511641 | 0.394124 | 0 | 0.095702 | 0.170221 | 2,720 | 52 | 96 | 52.307692 | 0.703589 | 0.015074 | 0 | 0 | 0 | 0 | 0.032963 | 0 | 0 | 0 | 0 | 0 | 0.810811 | 1 | 0.081081 | false | 0 | 0.081081 | 0 | 0.189189 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 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 | 8 |
44c3145c6b5a8cac5b0e2f9068f7547381896e10 | 31,414 | py | Python | python/tests/nexus_helpers.py | arm61/scippneutron | 20283e7b8f8772776978c539f8664f889d1fbded | [
"BSD-3-Clause"
] | null | null | null | python/tests/nexus_helpers.py | arm61/scippneutron | 20283e7b8f8772776978c539f8664f889d1fbded | [
"BSD-3-Clause"
] | null | null | null | python/tests/nexus_helpers.py | arm61/scippneutron | 20283e7b8f8772776978c539f8664f889d1fbded | [
"BSD-3-Clause"
] | null | null | null | from dataclasses import dataclass
from typing import List, Union, Iterator, Optional, Dict, Any, Tuple
import h5py
import numpy as np
from enum import Enum
from contextlib import contextmanager
import json
from scippneutron.file_loading._json_nexus import LoadFromJson, MissingDataset
h5root = Union[h5py.File, h5py.Gro... | 41.773936 | 88 | 0.61046 | 3,706 | 31,414 | 4.886131 | 0.09606 | 0.030373 | 0.035178 | 0.027612 | 0.434725 | 0.357742 | 0.313397 | 0.262591 | 0.21173 | 0.151811 | 0 | 0.00595 | 0.299166 | 31,414 | 751 | 89 | 41.829561 | 0.816543 | 0.068441 | 0 | 0.223729 | 0 | 0 | 0.05033 | 0.008876 | 0 | 0 | 0 | 0 | 0 | 1 | 0.10339 | false | 0.00339 | 0.013559 | 0.00339 | 0.277966 | 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 | 0 | 0 | 1 | 0 |
44c41032c50ef5d1788dcc18837fdc341819e52a | 10,351 | py | Python | pyarpspoofer/arpspoofer.py | bocajspear1/pyarpspoofer | 5612e0c900c070d98743bb8fdd39743a0ce09cf2 | [
"MIT"
] | null | null | null | pyarpspoofer/arpspoofer.py | bocajspear1/pyarpspoofer | 5612e0c900c070d98743bb8fdd39743a0ce09cf2 | [
"MIT"
] | null | null | null | pyarpspoofer/arpspoofer.py | bocajspear1/pyarpspoofer | 5612e0c900c070d98743bb8fdd39743a0ce09cf2 | [
"MIT"
] | null | null | null | """
MIT License
Copyright (c) 2018 Jacob Hartman
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,... | 34.274834 | 155 | 0.589025 | 1,315 | 10,351 | 4.364259 | 0.171863 | 0.035546 | 0.040774 | 0.016728 | 0.369228 | 0.306848 | 0.301795 | 0.268862 | 0.268862 | 0.239763 | 0 | 0.009074 | 0.318617 | 10,351 | 301 | 156 | 34.388704 | 0.804622 | 0.118636 | 0 | 0.386792 | 0 | 0 | 0.036232 | 0 | 0 | 0 | 0.003294 | 0 | 0 | 1 | 0.089623 | false | 0 | 0.037736 | 0.009434 | 0.160377 | 0.042453 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
44c5095346311b6017f0569e809826181a4a55f9 | 526 | py | Python | mac_numbers.py | dmayan-ss/diegoflow | 2225c24f7c5a6b331946c3c0d550bed26e92ee39 | [
"BSD-3-Clause"
] | 22 | 2019-02-24T13:12:23.000Z | 2022-03-08T08:55:18.000Z | mac_numbers.py | dmayan-ss/diegoflow | 2225c24f7c5a6b331946c3c0d550bed26e92ee39 | [
"BSD-3-Clause"
] | 3 | 2017-06-10T13:39:11.000Z | 2018-10-10T22:15:50.000Z | mac_numbers.py | dmayan-ss/diegoflow | 2225c24f7c5a6b331946c3c0d550bed26e92ee39 | [
"BSD-3-Clause"
] | 13 | 2019-03-24T06:03:19.000Z | 2021-10-31T02:27:25.000Z | # Copyright (c) 2017, Manito Networks, LLC
# All rights reserved.
# NOTE: This is updated as we have time, and is by no means comprehensive yet.
mac_prefix = {
"00CDFE":"Apple",
"18AF61":"Apple",
"CC46D6":"Cisco",
"58AC78":"Cisco",
"0050BA":"D-Link",
"00179A":"D-Link",
"1CBDB9":"D-Link",
"9094E4":"D-Link",
"28107B"... | 18.137931 | 78 | 0.657795 | 71 | 526 | 4.859155 | 0.704225 | 0.101449 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130342 | 0.110266 | 526 | 29 | 79 | 18.137931 | 0.606838 | 0.262357 | 0 | 0 | 0 | 0 | 0.623377 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
44c515b10ccba3215103fa7169a17fded5d650d8 | 298 | py | Python | tests/test_app/urls.py | emorozov/django-reversion | 43b732b29b1023d984b3deb73b03c7d691db520d | [
"BSD-3-Clause"
] | 1,735 | 2015-01-01T17:57:11.000Z | 2022-03-28T10:53:27.000Z | tests/test_app/urls.py | emorozov/django-reversion | 43b732b29b1023d984b3deb73b03c7d691db520d | [
"BSD-3-Clause"
] | 554 | 2015-01-02T17:31:31.000Z | 2022-02-22T10:30:04.000Z | tests/test_app/urls.py | emorozov/django-reversion | 43b732b29b1023d984b3deb73b03c7d691db520d | [
"BSD-3-Clause"
] | 368 | 2015-01-02T03:32:18.000Z | 2022-03-31T09:48:31.000Z | from django.urls import path
from test_app import views
urlpatterns = [
path("save-obj/", views.save_obj_view),
path("save-obj-error/", views.save_obj_error_view),
path("create-revision/", views.create_revision_view),
path("revision-mixin/", views.RevisionMixinView.as_view()),
]
| 27.090909 | 63 | 0.724832 | 41 | 298 | 5.04878 | 0.439024 | 0.135266 | 0.10628 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.127517 | 298 | 10 | 64 | 29.8 | 0.796154 | 0 | 0 | 0 | 0 | 0 | 0.184564 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
44c5b067e13fdd1e1ad2cc1a2c99d3c5b3330ac5 | 1,410 | py | Python | stellapy/utils/decorators/restrict_sizeList.py | SStroteich/stella-1 | 104556a07b9736e7c28e6f1bf2f799384732f38b | [
"MIT"
] | 4 | 2021-12-15T08:23:45.000Z | 2022-02-18T15:14:42.000Z | stellapy/utils/decorators/restrict_sizeList.py | SStroteich/stella-1 | 104556a07b9736e7c28e6f1bf2f799384732f38b | [
"MIT"
] | 37 | 2021-07-05T16:41:33.000Z | 2022-03-21T15:58:05.000Z | stellapy/utils/decorators/restrict_sizeList.py | SStroteich/stella-1 | 104556a07b9736e7c28e6f1bf2f799384732f38b | [
"MIT"
] | 7 | 2021-07-05T15:35:55.000Z | 2022-03-09T09:23:42.000Z | #===============================================================
# Restrict size of printed list
#===============================================================
import numpy as np
def restrict_sizeList(input_list, size):
''' Print a long list as [ a b c ... x y z ] '''
# For 1D arrays or list, return [ a b ... | 30 | 98 | 0.458865 | 184 | 1,410 | 3.418478 | 0.353261 | 0.228935 | 0.019078 | 0.019078 | 0.251192 | 0.251192 | 0.120827 | 0 | 0 | 0 | 0 | 0.020243 | 0.299291 | 1,410 | 46 | 99 | 30.652174 | 0.616397 | 0.295745 | 0 | 0.1 | 0 | 0 | 0.051387 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.05 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
44c6da2588473857006929d493bd43cadac15056 | 182 | py | Python | backend/course_application/admin.py | heyImDrew/edupro | 98b8342dda45071da4871bbf73f2ef002fee938f | [
"Apache-2.0"
] | null | null | null | backend/course_application/admin.py | heyImDrew/edupro | 98b8342dda45071da4871bbf73f2ef002fee938f | [
"Apache-2.0"
] | null | null | null | backend/course_application/admin.py | heyImDrew/edupro | 98b8342dda45071da4871bbf73f2ef002fee938f | [
"Apache-2.0"
] | null | null | null | from django.contrib import admin
from .models import *
admin.site.register(Course)
admin.site.register(UserCourse)
admin.site.register(Partition)
admin.site.register(PartitionTask)
| 22.75 | 34 | 0.824176 | 24 | 182 | 6.25 | 0.5 | 0.24 | 0.453333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 182 | 7 | 35 | 26 | 0.887574 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
44cb0ba9c0f8df7004f8672416120408c2f977bc | 350 | py | Python | app/helpers.py | kilonzi/dukaone | 0563f1329f87df17424d6c058b46f6bdede46f2f | [
"MIT"
] | null | null | null | app/helpers.py | kilonzi/dukaone | 0563f1329f87df17424d6c058b46f6bdede46f2f | [
"MIT"
] | null | null | null | app/helpers.py | kilonzi/dukaone | 0563f1329f87df17424d6c058b46f6bdede46f2f | [
"MIT"
] | null | null | null | from db.models import *
def unpack_query_objects(objects) -> dict:
results = []
for object in objects:
results.append(object.to_dict())
return results
def stringify_object(object) -> dict:
str_obj = {}
object_dict = object.to_dict()
for i in object_dict.items():
str_obj[i[0]] =... | 23.333333 | 42 | 0.642857 | 50 | 350 | 4.3 | 0.46 | 0.139535 | 0.111628 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007491 | 0.237143 | 350 | 14 | 43 | 25 | 0.797753 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.083333 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
44cd2971fc2d0fb346116f5807babe8620e40891 | 221 | py | Python | gdsfactory/gdsdiff/sample.py | jorgepadilla19/gdsfactory | 68e1c18257a75d4418279851baea417c8899a165 | [
"MIT"
] | null | null | null | gdsfactory/gdsdiff/sample.py | jorgepadilla19/gdsfactory | 68e1c18257a75d4418279851baea417c8899a165 | [
"MIT"
] | null | null | null | gdsfactory/gdsdiff/sample.py | jorgepadilla19/gdsfactory | 68e1c18257a75d4418279851baea417c8899a165 | [
"MIT"
] | null | null | null | import gdsfactory as gf
from gdsfactory.gdsdiff.gdsdiff import gdsdiff
if __name__ == "__main__":
c1 = gf.components.straight(length=2)
c2 = gf.components.straight(length=3)
c = gdsdiff(c1, c2)
c.show()
| 22.1 | 46 | 0.696833 | 31 | 221 | 4.709677 | 0.580645 | 0.164384 | 0.273973 | 0.356164 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033333 | 0.18552 | 221 | 9 | 47 | 24.555556 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0.036199 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
44cdc0c7246c968a7e2f2abbae018d1456bcdfd9 | 8,239 | py | Python | src/lib/searchio/cmd/reload.py | cgxxv/alfred-searchio | f4a14cbe5350b83d6d962aa993abf01f14b60d33 | [
"MIT"
] | 304 | 2015-01-15T08:18:47.000Z | 2022-03-31T10:41:52.000Z | src/lib/searchio/cmd/reload.py | cgxxv/alfred-searchio | f4a14cbe5350b83d6d962aa993abf01f14b60d33 | [
"MIT"
] | 66 | 2015-03-14T18:10:36.000Z | 2022-03-27T11:33:56.000Z | src/lib/searchio/cmd/reload.py | cgxxv/alfred-searchio | f4a14cbe5350b83d6d962aa993abf01f14b60d33 | [
"MIT"
] | 36 | 2015-04-12T16:50:17.000Z | 2022-03-28T09:53:32.000Z | #!/usr/bin/env python
# encoding: utf-8
#
# Copyright (c) 2016 Dean Jackson <deanishe@deanishe.net>
#
# MIT Licence. See http://opensource.org/licenses/MIT
#
# Created on 2016-12-17
#
"""searchio reload [-h]
Update info.plist from saved searches.
Usage:
searchio reload [--defaults]
searchio -h
Options:
... | 29.320285 | 112 | 0.572157 | 993 | 8,239 | 4.699899 | 0.266868 | 0.02057 | 0.02057 | 0.019284 | 0.281766 | 0.236555 | 0.218556 | 0.192843 | 0.141847 | 0.141847 | 0 | 0.013266 | 0.258891 | 8,239 | 280 | 113 | 29.425 | 0.750573 | 0.115305 | 0 | 0.17619 | 0 | 0.047619 | 0.462771 | 0.090897 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02381 | false | 0 | 0.038095 | 0 | 0.066667 | 0.004762 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
44ce0f9db9fe5919a4a1f3796a0fe0c4e1d331ae | 2,882 | py | Python | lessons/migrations/0005_auto_20180911_1600.py | keeperaft/personalaltwebsite | b8ad2679c2809c316e8f746ffe1b302460f336be | [
"MIT"
] | null | null | null | lessons/migrations/0005_auto_20180911_1600.py | keeperaft/personalaltwebsite | b8ad2679c2809c316e8f746ffe1b302460f336be | [
"MIT"
] | 2 | 2020-06-05T20:35:57.000Z | 2021-06-10T21:24:24.000Z | lessons/migrations/0005_auto_20180911_1600.py | keeperaft/personalaltwebsite | b8ad2679c2809c316e8f746ffe1b302460f336be | [
"MIT"
] | 1 | 2019-04-10T02:03:35.000Z | 2019-04-10T02:03:35.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2018-09-11 07:00
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
import lessons.filefield
class Migration(migrations.Migration):
dependencies = [
('lessons', '0004_flashcard_is_borde... | 45.746032 | 256 | 0.590909 | 295 | 2,882 | 5.644068 | 0.471186 | 0.081081 | 0.105105 | 0.121922 | 0.282282 | 0.207808 | 0.182583 | 0.063664 | 0.063664 | 0 | 0 | 0.018323 | 0.24254 | 2,882 | 62 | 257 | 46.483871 | 0.744388 | 0.023595 | 0 | 0.381818 | 1 | 0 | 0.253646 | 0.01672 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.072727 | 0 | 0.127273 | 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 |
44d06773b5f3d0ff34828b00098d2e28292a0ca8 | 10,308 | py | Python | tests/responses/test_response.py | TeoDV/jj | a58d91ad7b37ba3115daea4890190abede8f3353 | [
"Apache-2.0"
] | 4 | 2020-09-08T08:14:21.000Z | 2022-01-27T19:22:53.000Z | tests/responses/test_response.py | TeoDV/jj | a58d91ad7b37ba3115daea4890190abede8f3353 | [
"Apache-2.0"
] | 19 | 2018-02-13T05:51:25.000Z | 2022-03-27T22:48:11.000Z | tests/responses/test_response.py | TeoDV/jj | a58d91ad7b37ba3115daea4890190abede8f3353 | [
"Apache-2.0"
] | 3 | 2017-11-17T13:25:23.000Z | 2022-02-03T12:57:00.000Z | import os
import sys
if sys.version_info >= (3, 8):
from unittest import IsolatedAsyncioTestCase as TestCase
else:
from unittest import TestCase
import pytest
import jj
from jj import server_version
from jj.apps import create_app
from jj.handlers import default_handler
from jj.matchers import MethodMatcher
f... | 38.898113 | 95 | 0.644257 | 1,222 | 10,308 | 5.279051 | 0.102291 | 0.123237 | 0.121222 | 0.120911 | 0.756007 | 0.746086 | 0.704232 | 0.645326 | 0.537436 | 0.521315 | 0 | 0.007268 | 0.239135 | 10,308 | 264 | 96 | 39.045455 | 0.815249 | 0.00844 | 0 | 0.512315 | 0 | 0 | 0.076765 | 0.00235 | 0 | 0 | 0 | 0 | 0.280788 | 1 | 0.014778 | false | 0 | 0.064039 | 0.004926 | 0.103448 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 2 |
44d22b17f45772c546f11f4444520b63362e9cd5 | 766 | py | Python | slide_09/Exercicio04.py | lordjack/aula_python_slides | 38ad45ac1843fc83c3349addb9d49f7d182a574f | [
"MIT"
] | null | null | null | slide_09/Exercicio04.py | lordjack/aula_python_slides | 38ad45ac1843fc83c3349addb9d49f7d182a574f | [
"MIT"
] | null | null | null | slide_09/Exercicio04.py | lordjack/aula_python_slides | 38ad45ac1843fc83c3349addb9d49f7d182a574f | [
"MIT"
] | null | null | null | '''
Q04 - Faça um programa que leia uma matriz 3x3 de inteiros,
e apresente a Diagonal Principal desta Matriz.
'''
import random
# x = random.uniform(0, 10)
matriz = []
diagonalPrincipal = []
for i in range(0, 3, 1):
linha = []
for j in range(0, 3, 1):
# elemento = int(input("Digite o elemento da posi... | 23.212121 | 76 | 0.571802 | 117 | 766 | 3.74359 | 0.401709 | 0.09589 | 0.109589 | 0.123288 | 0.246575 | 0.246575 | 0.246575 | 0.182648 | 0.182648 | 0.182648 | 0 | 0.050523 | 0.250653 | 766 | 32 | 77 | 23.9375 | 0.712544 | 0.279373 | 0 | 0.5 | 0 | 0 | 0.059041 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.045455 | 0.363636 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
44d2734bfe7281ba6062b53a0dd208cf424d41c5 | 142 | py | Python | servers/apps.py | shubhamdipt/monitoring-dashboard | ae4524f1c179cf735fdc17673865bdbdb463ee3e | [
"MIT"
] | 1 | 2021-08-08T14:40:09.000Z | 2021-08-08T14:40:09.000Z | servers/apps.py | shubhamdipt/monitoring-dashboard | ae4524f1c179cf735fdc17673865bdbdb463ee3e | [
"MIT"
] | null | null | null | servers/apps.py | shubhamdipt/monitoring-dashboard | ae4524f1c179cf735fdc17673865bdbdb463ee3e | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class ServersConfig(AppConfig):
name = 'servers'
def ready(self):
import servers.signals
| 15.777778 | 33 | 0.697183 | 16 | 142 | 6.1875 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.225352 | 142 | 8 | 34 | 17.75 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0.049296 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
44d38b1f211f5c9e46f3fcd73adf617055c70c17 | 4,268 | py | Python | examples/forest_fire_disjunctive.py | kevinmcareavey/pyactualcausality | 51367d768dde3b1b039373db5797efb087003cd4 | [
"MIT"
] | null | null | null | examples/forest_fire_disjunctive.py | kevinmcareavey/pyactualcausality | 51367d768dde3b1b039373db5797efb087003cd4 | [
"MIT"
] | null | null | null | examples/forest_fire_disjunctive.py | kevinmcareavey/pyactualcausality | 51367d768dde3b1b039373db5797efb087003cd4 | [
"MIT"
] | null | null | null | from frozendict import frozendict
from lib.halpern_pearl import Variable, CausalNetwork, CausalSetting, find_actual_causes, CausalFormula, PrimitiveEvent, \
Negation, find_trivial_explanations, EpistemicState, find_nontrivial_explanations, find_explanations, \
find_sufficient_causes
U_L, U_MD = Variable("U_L")... | 56.157895 | 192 | 0.751172 | 576 | 4,268 | 5.307292 | 0.125 | 0.026169 | 0.042525 | 0.035983 | 0.436703 | 0.384037 | 0.266928 | 0.251881 | 0.242395 | 0.168466 | 0 | 0.014635 | 0.119494 | 4,268 | 75 | 193 | 56.906667 | 0.797765 | 0.061621 | 0 | 0.107692 | 0 | 0 | 0.00975 | 0.00675 | 0 | 0 | 0 | 0 | 0.123077 | 1 | 0 | false | 0 | 0.030769 | 0 | 0.030769 | 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 | 0 | 0 | 1 | 0 |
44d405a3b963e1575bfadf95aec209b7044e8452 | 3,152 | py | Python | environments/icds-cas/migrations/nic_to_tcl/couchdb-files-post.py | rohit-dimagi/commcare-cloud | 55576713f3a12acc3f2df4f24c405df9c30143b3 | [
"BSD-3-Clause"
] | null | null | null | environments/icds-cas/migrations/nic_to_tcl/couchdb-files-post.py | rohit-dimagi/commcare-cloud | 55576713f3a12acc3f2df4f24c405df9c30143b3 | [
"BSD-3-Clause"
] | null | null | null | environments/icds-cas/migrations/nic_to_tcl/couchdb-files-post.py | rohit-dimagi/commcare-cloud | 55576713f3a12acc3f2df4f24c405df9c30143b3 | [
"BSD-3-Clause"
] | null | null | null | import getpass
import requests
import argparse
def main():
parser = argparse.ArgumentParser()
parser.add_argument('username')
parser.add_argument('-p', '--password')
args = parser.parse_args()
if not args.password:
args.password = getpass.getpass("Password")
auth = (args.username, a... | 33.178947 | 121 | 0.580901 | 403 | 3,152 | 4.295285 | 0.235732 | 0.031774 | 0.067591 | 0.024263 | 0.284229 | 0.206817 | 0.145581 | 0.080878 | 0.046216 | 0.046216 | 0 | 0.062099 | 0.259201 | 3,152 | 94 | 122 | 33.531915 | 0.679229 | 0 | 0 | 0.101266 | 0 | 0 | 0.232868 | 0.037437 | 0 | 0 | 0 | 0 | 0 | 1 | 0.012658 | false | 0.063291 | 0.037975 | 0 | 0.050633 | 0.101266 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
44d42b43218cec56ddb7aa37023d60517545e56a | 23,816 | py | Python | fee/views.py | masoodazhar/-school-management-system | 6525b3d29d12f03e05d362d81b7c5855806f57d9 | [
"Apache-2.0"
] | 1 | 2022-01-20T10:20:05.000Z | 2022-01-20T10:20:05.000Z | fee/views.py | masoodazhar/-school-management-system | 6525b3d29d12f03e05d362d81b7c5855806f57d9 | [
"Apache-2.0"
] | null | null | null | fee/views.py | masoodazhar/-school-management-system | 6525b3d29d12f03e05d362d81b7c5855806f57d9 | [
"Apache-2.0"
] | 1 | 2022-01-20T10:20:31.000Z | 2022-01-20T10:20:31.000Z | from django.shortcuts import render, redirect
from student.models import Admission
from .forms import SearchChallan
from django.utils import timezone
from django.db.models import Q
from .models import Voucher
from payroll.models import Salary
from django import forms
from django.contrib import messages
from dj... | 41.204152 | 187 | 0.570961 | 2,569 | 23,816 | 5.038147 | 0.087583 | 0.057792 | 0.050684 | 0.02936 | 0.70316 | 0.63996 | 0.589817 | 0.551263 | 0.502666 | 0.486595 | 0 | 0.007044 | 0.314494 | 23,816 | 578 | 188 | 41.204152 | 0.785741 | 0.105097 | 0 | 0.470588 | 0 | 0 | 0.118384 | 0.019932 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020362 | false | 0 | 0.052036 | 0 | 0.104072 | 0.020362 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
44d4708d8f3e8cbb68ded6ad9426b4bdf6c6ba43 | 6,211 | py | Python | interpolation/splines/filter_cubic.py | gboehl/interpolation.py | 25520556804dd104c5931c8a6bedfff65420025f | [
"BSD-2-Clause"
] | null | null | null | interpolation/splines/filter_cubic.py | gboehl/interpolation.py | 25520556804dd104c5931c8a6bedfff65420025f | [
"BSD-2-Clause"
] | null | null | null | interpolation/splines/filter_cubic.py | gboehl/interpolation.py | 25520556804dd104c5931c8a6bedfff65420025f | [
"BSD-2-Clause"
] | null | null | null | from __future__ import division
import numpy as np
import time
from numba import jit, njit
# used by njitted routines (frozen)
basis = np.array([1.0 / 6.0, 2.0 / 3.0, 1.0 / 6.0, 0.0])
@njit(cache=True)
def solve_deriv_interp_1d(bands, coefs):
M = coefs.shape[0] - 2
# Solve interpolating equations
# Fi... | 24.844 | 88 | 0.551924 | 1,045 | 6,211 | 3.186603 | 0.116746 | 0.054655 | 0.031532 | 0.045045 | 0.578078 | 0.478679 | 0.404805 | 0.348048 | 0.241742 | 0.18979 | 0 | 0.062683 | 0.285944 | 6,211 | 249 | 89 | 24.943775 | 0.688162 | 0.085976 | 0 | 0.301887 | 0 | 0 | 0.005659 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.056604 | false | 0 | 0.037736 | 0 | 0.157233 | 0.018868 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
44d48337c78ce2e640508a61a6350b194e4ad2ee | 507 | py | Python | backend/product/urls.py | kmrul/Grocery-Store | a8abc99d66daf7c1dbf42a5bb9b563bda98b9e3c | [
"MIT"
] | null | null | null | backend/product/urls.py | kmrul/Grocery-Store | a8abc99d66daf7c1dbf42a5bb9b563bda98b9e3c | [
"MIT"
] | null | null | null | backend/product/urls.py | kmrul/Grocery-Store | a8abc99d66daf7c1dbf42a5bb9b563bda98b9e3c | [
"MIT"
] | null | null | null | from django.urls import path
from . import views
urlpatterns = [
path('product/', views.apiOverview, name='overview'),
path('product/list/', views.productList, name='product-list'),
path('product/detail/<str:pk>', views.productDetail, name='product-detail'),
path('product/create', views.productCreate, ... | 46.090909 | 80 | 0.706114 | 61 | 507 | 5.868852 | 0.377049 | 0.184358 | 0.083799 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106509 | 507 | 11 | 81 | 46.090909 | 0.790287 | 0 | 0 | 0 | 0 | 0 | 0.354331 | 0.135827 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
44d4c378e92d06b8248254af3ada493cd9a99613 | 1,512 | py | Python | Train.py | jinsuyun/DriavablaMap_Segmentation | 8537f19f007f064ca2ab3a91bd25c714ecb50a48 | [
"BSD-3-Clause"
] | null | null | null | Train.py | jinsuyun/DriavablaMap_Segmentation | 8537f19f007f064ca2ab3a91bd25c714ecb50a48 | [
"BSD-3-Clause"
] | null | null | null | Train.py | jinsuyun/DriavablaMap_Segmentation | 8537f19f007f064ca2ab3a91bd25c714ecb50a48 | [
"BSD-3-Clause"
] | null | null | null | from tensorflow.keras.callbacks import ModelCheckpoint, LearningRateScheduler, TensorBoard
import tensorflow as tf
import Data
import Model
# import myslack
import os
import argparse
from tensorflow.python.client import device_lib
import warnings
warnings.filterwarnings("ignore")
parser = argparse.ArgumentParser(descr... | 25.627119 | 98 | 0.703042 | 215 | 1,512 | 4.804651 | 0.497674 | 0.027106 | 0.030978 | 0.046467 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037125 | 0.162698 | 1,512 | 58 | 99 | 26.068966 | 0.778831 | 0.214286 | 0 | 0 | 0 | 0 | 0.127768 | 0.044293 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025 | false | 0 | 0.2 | 0 | 0.325 | 0.025 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
44d52e44864bf1ce0a5095905d078b5ae85da8b7 | 3,470 | py | Python | ui/custom_pb/custompb.py | magnusjwatson2786/Container-GUI | 42cbe1bb970fbabe5b5fde873425f262e9207d30 | [
"MIT"
] | null | null | null | ui/custom_pb/custompb.py | magnusjwatson2786/Container-GUI | 42cbe1bb970fbabe5b5fde873425f262e9207d30 | [
"MIT"
] | null | null | null | ui/custom_pb/custompb.py | magnusjwatson2786/Container-GUI | 42cbe1bb970fbabe5b5fde873425f262e9207d30 | [
"MIT"
] | null | null | null | from PySide6.QtCore import *
from PySide6.QtGui import *
from PySide6.QtWidgets import *
class CustomPb(QWidget):
def __init__(
self,
value = 0,
progress_width = 2,
# progress_length= 500,
is_rounded = False,
max_value = 100,
progress_color = "#ff79c6",
... | 31.545455 | 86 | 0.583285 | 391 | 3,470 | 5.023018 | 0.286445 | 0.07943 | 0.060591 | 0.032077 | 0.062118 | 0.039715 | 0.039715 | 0.039715 | 0 | 0 | 0 | 0.019907 | 0.319597 | 3,470 | 110 | 87 | 31.545455 | 0.811944 | 0.134582 | 0 | 0.064935 | 0 | 0 | 0.01845 | 0.008386 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051948 | false | 0 | 0.038961 | 0 | 0.103896 | 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 | 0 | 0 | 1 | 0 |
44d52f169921ab9efb57ff8c6c57b8de676e6dfb | 1,301 | py | Python | camhudson/views/index.py | Hudson00/Hudson00.github.io | 75fede08521dc1e10cb2ce29e20c54c93e9e6db6 | [
"MIT"
] | null | null | null | camhudson/views/index.py | Hudson00/Hudson00.github.io | 75fede08521dc1e10cb2ce29e20c54c93e9e6db6 | [
"MIT"
] | null | null | null | camhudson/views/index.py | Hudson00/Hudson00.github.io | 75fede08521dc1e10cb2ce29e20c54c93e9e6db6 | [
"MIT"
] | null | null | null | """Cam Hudson Personal Website app's index.html view.
URLs handled in this file include:
/
"""
from flask import render_template, session
from camhudson.views.utility import create_index_card # Make linter shut up
import camhudson
@camhudson.app.route('/', methods=['GET'])
@camhudson.app.route('/index.html', methods... | 32.525 | 76 | 0.530361 | 138 | 1,301 | 4.913043 | 0.615942 | 0.064897 | 0.088496 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.346656 | 1,301 | 39 | 77 | 33.358974 | 0.797647 | 0.106072 | 0 | 0.15625 | 0 | 0 | 0.316247 | 0.092963 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0 | 0.09375 | 0 | 0.15625 | 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 | 0 | 0 | 1 | 0 |
44d5d7d712b3b2f871108b46b0de197890de0365 | 2,661 | py | Python | ai_services/anomaly_detection/data_preprocessing_examples/oci_data_flow_based_examples/example_code/normalization.py | oracle-samples/oci-data-science-ai-samples | 3128787c1347a17f9dc2194f1a16a500ed08eb8e | [
"UPL-1.0",
"Apache-2.0"
] | null | null | null | ai_services/anomaly_detection/data_preprocessing_examples/oci_data_flow_based_examples/example_code/normalization.py | oracle-samples/oci-data-science-ai-samples | 3128787c1347a17f9dc2194f1a16a500ed08eb8e | [
"UPL-1.0",
"Apache-2.0"
] | null | null | null | ai_services/anomaly_detection/data_preprocessing_examples/oci_data_flow_based_examples/example_code/normalization.py | oracle-samples/oci-data-science-ai-samples | 3128787c1347a17f9dc2194f1a16a500ed08eb8e | [
"UPL-1.0",
"Apache-2.0"
] | 2 | 2022-03-28T07:27:28.000Z | 2022-03-28T21:18:36.000Z | from pyspark.sql import SparkSession
from pyspark.sql import functions as F
import argparse
from pyspark.ml.feature import MinMaxScaler, StandardScaler, VectorAssembler
def extract(row):
return (row.id,) + tuple(row.scaledFeatures.toArray().tolist()[:-1])
def normalize_data(df, scaler_type, columns):
"""
... | 33.2625 | 78 | 0.658023 | 295 | 2,661 | 5.810169 | 0.386441 | 0.029172 | 0.049592 | 0.049008 | 0.10035 | 0.032672 | 0 | 0 | 0 | 0 | 0 | 0.003349 | 0.214581 | 2,661 | 79 | 79 | 33.683544 | 0.816746 | 0.092822 | 0 | 0.034483 | 0 | 0 | 0.084954 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0.068966 | 0.017241 | 0.137931 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
44d71f0a51d5a31acbe4cd401e05ee26f9010239 | 3,051 | py | Python | deep_morphology/models/bert_tagger.py | juditacs/deep-morphology | 090c17e604499a3430ea835a6340fa3abdc6ea83 | [
"MIT"
] | 3 | 2019-10-16T12:25:37.000Z | 2021-01-16T00:31:37.000Z | deep_morphology/models/bert_tagger.py | juditacs/deep-morphology | 090c17e604499a3430ea835a6340fa3abdc6ea83 | [
"MIT"
] | 15 | 2018-09-12T20:26:44.000Z | 2018-11-09T20:10:37.000Z | deep_morphology/models/bert_tagger.py | juditacs/deep-morphology | 090c17e604499a3430ea835a6340fa3abdc6ea83 | [
"MIT"
] | null | null | null | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
#
# Copyright © 2019 Judit Acs <judit@sch.bme.hu>
#
# Distributed under terms of the MIT license.
import torch
import torch.nn as nn
from pytorch_pretrained_bert import BertModel
from deep_morphology.models.base import BaseModel
from deep_morphology.mod... | 36.321429 | 90 | 0.640118 | 402 | 3,051 | 4.646766 | 0.318408 | 0.051392 | 0.041756 | 0.038544 | 0.174518 | 0.110278 | 0.087794 | 0.087794 | 0.087794 | 0.087794 | 0 | 0.010979 | 0.253687 | 3,051 | 83 | 91 | 36.759036 | 0.808959 | 0.054081 | 0 | 0.09375 | 0 | 0 | 0.034746 | 0.009729 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.09375 | 0 | 0.234375 | 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 | 0 | 0 | 1 | 0 |
44d7658584167ad1f72604c07e855eaac8a27727 | 123 | py | Python | CLASESYOBJETOS1.py | Germiprogramer/POO | c84bb9cf7e3bc1a003193375121489aa80daf03c | [
"Apache-2.0"
] | null | null | null | CLASESYOBJETOS1.py | Germiprogramer/POO | c84bb9cf7e3bc1a003193375121489aa80daf03c | [
"Apache-2.0"
] | null | null | null | CLASESYOBJETOS1.py | Germiprogramer/POO | c84bb9cf7e3bc1a003193375121489aa80daf03c | [
"Apache-2.0"
] | null | null | null | class Auto:
marca = ""
modelo = 0
placa = ""
taxi = Auto()
print(taxi.modelo)
#se imprime el modelo únicamente | 15.375 | 32 | 0.617886 | 16 | 123 | 4.75 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010989 | 0.260163 | 123 | 8 | 32 | 15.375 | 0.824176 | 0.252033 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0.666667 | 0.166667 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
44d7838cf86895dbb3bc71349d1a986ae126e5e6 | 4,246 | py | Python | python3/11.py | mn113/adventofcode2020 | 87e3062948444627eb95e1b81e8d1b6db9640ba0 | [
"MIT"
] | null | null | null | python3/11.py | mn113/adventofcode2020 | 87e3062948444627eb95e1b81e8d1b6db9640ba0 | [
"MIT"
] | null | null | null | python3/11.py | mn113/adventofcode2020 | 87e3062948444627eb95e1b81e8d1b6db9640ba0 | [
"MIT"
] | null | null | null | #! /usr/bin/env python3
part = 1
def read_input():
with open('../inputs/input11.txt') as fp:
lines = fp.readlines()
return [line.strip() for line in lines]
class Seat:
def __init__(self, x, y, state):
self.x = x
self.y = y
self.state = state
def __str__(self):
... | 27.217949 | 94 | 0.542393 | 560 | 4,246 | 4.023214 | 0.275 | 0.024412 | 0.04261 | 0.034621 | 0.110963 | 0.091434 | 0.059476 | 0 | 0 | 0 | 0 | 0.02152 | 0.321479 | 4,246 | 155 | 95 | 27.393548 | 0.7605 | 0.18488 | 0 | 0.090909 | 0 | 0 | 0.019203 | 0.00611 | 0 | 0 | 0 | 0 | 0 | 1 | 0.141414 | false | 0 | 0 | 0.060606 | 0.30303 | 0.020202 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
44d7bf8fa8ad6da40c52b2f23d769cd6c11b59ae | 2,667 | py | Python | f5lbaasdriver/test/tempest/services/clients/l7policy_client.py | fsckss/f5-openstack-lbaasv2-driver | 678724d5b1eadad89a774af6d5e073512ba4998c | [
"Apache-2.0"
] | null | null | null | f5lbaasdriver/test/tempest/services/clients/l7policy_client.py | fsckss/f5-openstack-lbaasv2-driver | 678724d5b1eadad89a774af6d5e073512ba4998c | [
"Apache-2.0"
] | null | null | null | f5lbaasdriver/test/tempest/services/clients/l7policy_client.py | fsckss/f5-openstack-lbaasv2-driver | 678724d5b1eadad89a774af6d5e073512ba4998c | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
u"""F5 Networks® LBaaSv2 L7 rules client for tempest tests."""
# Copyright 2016 F5 Networks 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/lic... | 39.220588 | 76 | 0.662542 | 354 | 2,667 | 4.918079 | 0.367232 | 0.041356 | 0.017231 | 0.031591 | 0.445721 | 0.445721 | 0.429064 | 0.412407 | 0.333716 | 0.333716 | 0 | 0.032474 | 0.214848 | 2,667 | 67 | 77 | 39.80597 | 0.798472 | 0.27934 | 0 | 0.487179 | 0 | 0 | 0.101975 | 0.067806 | 0 | 0 | 0 | 0 | 0 | 1 | 0.128205 | false | 0 | 0.076923 | 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 | 0 | 0 | 0 | 0 | 1 | 0 |