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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
408c6bfd39ede5df51f9478f5fec37679da37806 | 9,106 | py | Python | src/backend/tests/test_converters/test_converters_routes.py | rropen/SFM | 48bb1dfa5979e2e142fd652ce653a771c9d8a6df | [
"MIT"
] | 3 | 2021-09-13T18:20:23.000Z | 2022-02-07T16:13:07.000Z | src/backend/tests/test_converters/test_converters_routes.py | rropen/SFM | 48bb1dfa5979e2e142fd652ce653a771c9d8a6df | [
"MIT"
] | 48 | 2021-08-30T14:17:14.000Z | 2022-02-14T14:54:16.000Z | src/backend/tests/test_converters/test_converters_routes.py | rropen/SFM | 48bb1dfa5979e2e142fd652ce653a771c9d8a6df | [
"MIT"
] | 1 | 2021-10-30T12:06:42.000Z | 2021-10-30T12:06:42.000Z | import pytest
from fastapi.testclient import TestClient
from sqlmodel import Session, select
from datetime import datetime
from sfm.models import WorkItem, Project
from tests.test_converters.mock_converter_functions import (
mock_fetch_github_payload,
mock_get_commit_data,
)
# get at "/"
"""
# NOTE: using "se... | 41.770642 | 106 | 0.683176 | 1,243 | 9,106 | 4.827836 | 0.133548 | 0.027995 | 0.068989 | 0.043993 | 0.736711 | 0.732878 | 0.727045 | 0.693384 | 0.693384 | 0.677054 | 0 | 0.03592 | 0.18065 | 9,106 | 217 | 107 | 41.963134 | 0.768396 | 0.243795 | 0 | 0.626866 | 0 | 0 | 0.216541 | 0.137071 | 0 | 0 | 0 | 0 | 0.246269 | 1 | 0.007463 | false | 0 | 0.044776 | 0 | 0.052239 | 0.08209 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
409cf2f3e20b738ced29f790ca3f058e0b316199 | 397 | py | Python | AtCoder/contest 164/D.py | GSri30/Competetive_programming | 0dc1681500a80b6f0979d0dc9f749357ee07bcb8 | [
"MIT"
] | 22 | 2020-01-03T17:32:00.000Z | 2021-11-07T09:31:44.000Z | AtCoder/contest 164/D.py | GSri30/Competetive_programming | 0dc1681500a80b6f0979d0dc9f749357ee07bcb8 | [
"MIT"
] | 10 | 2020-09-30T09:41:18.000Z | 2020-10-11T11:25:09.000Z | AtCoder/contest 164/D.py | GSri30/Competetive_programming | 0dc1681500a80b6f0979d0dc9f749357ee07bcb8 | [
"MIT"
] | 25 | 2019-10-14T19:25:01.000Z | 2021-05-26T08:12:20.000Z | S=list(input())
S.reverse()
N=len(S)
R=[0]*N
R10=[0]*N
m=2019
K=0
R10[0]=1
R[0]=int(S[0])%m
for i in range(1,N):
R10[i]=(R10[i-1]*10)%m
R[i]=(R[i-1]+int(S[i])*R10[i])%m
d={}
for i in range(2019):
d[i]=0
for i in range(N):
d[R[i]]+=1
ans=0
for i in range(2019):
if i == 0:
ans += d[i]
... | 14.178571 | 36 | 0.463476 | 99 | 397 | 1.858586 | 0.252525 | 0.065217 | 0.130435 | 0.23913 | 0.331522 | 0.097826 | 0.097826 | 0 | 0 | 0 | 0 | 0.138614 | 0.236776 | 397 | 27 | 37 | 14.703704 | 0.468647 | 0 | 0 | 0.16 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.04 | 0 | 0 | 1 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
40aaf704872bfcd8b9c441d41e760bf097acfcee | 1,061 | py | Python | armulator/armv6/opcodes/abstract_opcodes/smlalxy.py | matan1008/armulator | 04d24dcec6ab42326018f5e09331e5b4738d6b52 | [
"MIT"
] | 16 | 2018-01-22T14:36:49.000Z | 2021-12-17T15:39:52.000Z | armulator/armv6/opcodes/abstract_opcodes/smlalxy.py | AhmedMounir/armulator | 04d24dcec6ab42326018f5e09331e5b4738d6b52 | [
"MIT"
] | 3 | 2019-02-19T17:51:47.000Z | 2022-03-31T20:45:21.000Z | armulator/armv6/opcodes/abstract_opcodes/smlalxy.py | AhmedMounir/armulator | 04d24dcec6ab42326018f5e09331e5b4738d6b52 | [
"MIT"
] | 4 | 2020-06-18T23:51:03.000Z | 2022-02-09T17:43:13.000Z | from armulator.armv6.opcodes.abstract_opcode import AbstractOpcode
from bitstring import BitArray
class Smlalxy(AbstractOpcode):
def __init__(self, m_high, n_high, m, d_hi, d_lo, n):
super(Smlalxy, self).__init__()
self.m_high = m_high
self.n_high = n_high
self.m = m
self.d... | 42.44 | 105 | 0.633365 | 152 | 1,061 | 4.223684 | 0.269737 | 0.224299 | 0.196262 | 0.233645 | 0.426791 | 0.102804 | 0 | 0 | 0 | 0 | 0 | 0.032622 | 0.248822 | 1,061 | 24 | 106 | 44.208333 | 0.772898 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0.047619 | 0.095238 | 0 | 0.238095 | 0 | 0 | 0 | 0 | null | 1 | 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 | 3 |
40e87c54c3243d287150d7656af41684578a7c0c | 572 | py | Python | netket/machine/__init__.py | yannra/netket | 7adc7ba04ff8e912629952cf4fa0e3f27148c424 | [
"Apache-2.0"
] | null | null | null | netket/machine/__init__.py | yannra/netket | 7adc7ba04ff8e912629952cf4fa0e3f27148c424 | [
"Apache-2.0"
] | 9 | 2022-01-14T10:25:14.000Z | 2022-03-30T10:19:59.000Z | netket/machine/__init__.py | yannra/netket | 7adc7ba04ff8e912629952cf4fa0e3f27148c424 | [
"Apache-2.0"
] | null | null | null | from .abstract_machine import AbstractMachine
from .rbm import RbmSpin, RbmSpinReal, RbmSpinSymm, RbmMultiVal, RbmSpinPhase
from .jastrow import Jastrow, JastrowSymm
from .qgps import QGPSSumSym, QGPSProdSym, BasisSymState
from .qgps import QGPSLinExp, QGPSLin, ProductAnsatz
from ..utils import jax_available, torch_av... | 30.105263 | 77 | 0.809441 | 66 | 572 | 6.924242 | 0.530303 | 0.035011 | 0.061269 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138112 | 572 | 18 | 78 | 31.777778 | 0.926978 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.833333 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
40eaed1b38a1cdc493f93727c786ead2800661ad | 1,644 | py | Python | api/views.py | vincentclaes/babybuddy | 183a30b0a3ca5e43c74dd40d11b58b3f4f02241c | [
"BSD-2-Clause"
] | null | null | null | api/views.py | vincentclaes/babybuddy | 183a30b0a3ca5e43c74dd40d11b58b3f4f02241c | [
"BSD-2-Clause"
] | 5 | 2020-06-05T16:49:14.000Z | 2022-01-13T00:34:19.000Z | api/views.py | niti15/baby | 74c6dab8243a9b69c41e76d1025b5592969bfc20 | [
"BSD-2-Clause"
] | 1 | 2021-07-08T17:59:24.000Z | 2021-07-08T17:59:24.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from rest_framework import viewsets
from core import models
from . import serializers
class ChildViewSet(viewsets.ModelViewSet):
queryset = models.Child.objects.all()
serializer_class = serializers.ChildSerializer
lookup_field = 'slug'
... | 28.344828 | 57 | 0.746959 | 161 | 1,644 | 7.47205 | 0.36646 | 0.133001 | 0.186201 | 0.226101 | 0.239402 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000712 | 0.145377 | 1,644 | 57 | 58 | 28.842105 | 0.855516 | 0.012774 | 0 | 0.108108 | 0 | 0 | 0.055521 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.108108 | 0 | 1 | 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 | 1 | 0 | 0 | 3 |
40fe62186d5868687860961f2a0d5fc67f607196 | 262 | py | Python | example/public-sources/decrypt-pk.py | OrfeasLitos/doc-builder | 855dbc4539887367bcb2f31acc9261327e607fde | [
"MIT"
] | null | null | null | example/public-sources/decrypt-pk.py | OrfeasLitos/doc-builder | 855dbc4539887367bcb2f31acc9261327e607fde | [
"MIT"
] | 3 | 2020-12-13T13:08:57.000Z | 2021-04-20T08:13:46.000Z | example/public-sources/decrypt-pk.py | OrfeasLitos/doc-builder | 855dbc4539887367bcb2f31acc9261327e607fde | [
"MIT"
] | null | null | null | from Cryptodome.Cipher import PKCS1_OAEP
from Cryptodome.PublicKey import RSA
#from textwrap import wrap
ciphertext = b"Not really a ciphertext"
key = RSA.generate(4096)
decrypter = PKCS1_OAEP.new(key)
print('"' + decrypter.decrypt(ciphertext).decode() + '"')
| 26.2 | 57 | 0.767176 | 35 | 262 | 5.685714 | 0.657143 | 0.140704 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025974 | 0.118321 | 262 | 9 | 58 | 29.111111 | 0.835498 | 0.09542 | 0 | 0 | 1 | 0 | 0.105932 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
dc02a1a02cb5d62d62f98614deab851c849382f9 | 51 | py | Python | db/config_template.py | mlehikoi/ruuvi | 319007fc958a852be0ab7ffbb6ae67b596971a41 | [
"MIT"
] | null | null | null | db/config_template.py | mlehikoi/ruuvi | 319007fc958a852be0ab7ffbb6ae67b596971a41 | [
"MIT"
] | null | null | null | db/config_template.py | mlehikoi/ruuvi | 319007fc958a852be0ab7ffbb6ae67b596971a41 | [
"MIT"
] | null | null | null | username=''
password=''
hostname=''
databasename='' | 12.75 | 15 | 0.705882 | 4 | 51 | 9 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 51 | 4 | 15 | 12.75 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.25 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
dc081eb3b20c7d3344ee6827675bbccb48e3c8ef | 161 | py | Python | 03_trees_based_models/solutions/solution_24.py | jparrax/datascience_middle_course | 347dfd6f68fa0f90eac35e8154f3ea469ccbdea2 | [
"CC0-1.0"
] | 2 | 2021-11-10T10:13:25.000Z | 2022-01-12T08:11:59.000Z | 03_trees_based_models/solutions/solution_24.py | jparrax/datascience_middle_course | 347dfd6f68fa0f90eac35e8154f3ea469ccbdea2 | [
"CC0-1.0"
] | 2 | 2022-01-11T19:45:49.000Z | 2022-01-11T20:36:03.000Z | 03_trees_based_models/solutions/solution_24.py | jparrax/datascience_middle_course | 347dfd6f68fa0f90eac35e8154f3ea469ccbdea2 | [
"CC0-1.0"
] | 1 | 2022-01-12T08:12:11.000Z | 2022-01-12T08:12:11.000Z | %%time
from sklearn.pipeline import make_pipeline
clf = make_pipeline(
discretizer, GradientBoostingClassifier(n_estimators=200))
clf.fit(X_train, y_train)
| 23 | 62 | 0.807453 | 21 | 161 | 5.952381 | 0.761905 | 0.192 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020833 | 0.10559 | 161 | 6 | 63 | 26.833333 | 0.847222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.2 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
dc19e91a3a337075316fd7a301d16e7d7d4acbe5 | 95 | py | Python | klsh/__init__.py | tonygrey/klsh | 77dbcd2bdd3f04e4d9add136201afda31c964580 | [
"BSD-3-Clause"
] | 28 | 2015-08-21T07:42:52.000Z | 2022-03-23T23:18:14.000Z | klsh/__init__.py | tonygrey/klsh | 77dbcd2bdd3f04e4d9add136201afda31c964580 | [
"BSD-3-Clause"
] | 2 | 2016-02-04T12:52:28.000Z | 2016-02-19T07:25:25.000Z | klsh/__init__.py | tonygrey/klsh | 77dbcd2bdd3f04e4d9add136201afda31c964580 | [
"BSD-3-Clause"
] | 6 | 2016-02-04T06:18:43.000Z | 2020-05-10T10:42:27.000Z | """Kernelized Locality Sensitive Hashing"""
from .klsh import KernelLSH
__version__ = '0.0.1'
| 19 | 43 | 0.747368 | 12 | 95 | 5.583333 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036145 | 0.126316 | 95 | 4 | 44 | 23.75 | 0.771084 | 0.389474 | 0 | 0 | 0 | 0 | 0.096154 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 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 | 0 | 0 | 0 | 3 |
90624472d3676e2aeb7ff4343ed60599d5dbf50f | 247 | py | Python | BOJ10812.py | INYEONGKIM/BOJ | 5e83d77a92d18b0d20d26645c7cfe4ba3e2d25bc | [
"MIT"
] | 2 | 2019-03-05T15:42:46.000Z | 2019-07-24T15:52:36.000Z | BOJ10812.py | INYEONGKIM/BOJ | 5e83d77a92d18b0d20d26645c7cfe4ba3e2d25bc | [
"MIT"
] | null | null | null | BOJ10812.py | INYEONGKIM/BOJ | 5e83d77a92d18b0d20d26645c7cfe4ba3e2d25bc | [
"MIT"
] | null | null | null | k,n=map(int,input().split());a=[int(i+1) for i in range(k)]
for _ in range(n):
s,e,m=map(int,input().split())
b0=a[:s-1];b1=a[s-1:e];b2=a[e:];a=[]
l=b1[:m-s];r=b1[m-s:];b1=r+l
a=b0+b1+b2
r=""
for i in a:
r+=str(i)+' '
print(r)
| 22.454545 | 59 | 0.497976 | 64 | 247 | 1.90625 | 0.34375 | 0.098361 | 0.180328 | 0.262295 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058252 | 0.165992 | 247 | 10 | 60 | 24.7 | 0.533981 | 0 | 0 | 0 | 0 | 0 | 0.004049 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.1 | 0 | 0 | 1 | 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 | 3 |
90631102522538464fa4f88ac9710a814c49a67e | 1,671 | py | Python | tests/util/test_meta.py | fr3akout/flask_ember | f3b3e28011571b8b58888be4fda4f42af0d4015c | [
"BSD-3-Clause"
] | null | null | null | tests/util/test_meta.py | fr3akout/flask_ember | f3b3e28011571b8b58888be4fda4f42af0d4015c | [
"BSD-3-Clause"
] | null | null | null | tests/util/test_meta.py | fr3akout/flask_ember | f3b3e28011571b8b58888be4fda4f42af0d4015c | [
"BSD-3-Clause"
] | null | null | null | import inspect
import unittest
from flask_ember.util.meta import get_fields, get_class_fields, get_methods
class Parent:
pfield = 1
def pmethod(self):
pass
class Intermediate(Parent):
ifield = 2
tfield = (1, 2)
def imethod(self):
pass
class Child(Intermediate):
cfield =... | 26.52381 | 78 | 0.644524 | 198 | 1,671 | 5.237374 | 0.242424 | 0.052073 | 0.054002 | 0.065574 | 0.252652 | 0.252652 | 0.16972 | 0.081003 | 0.081003 | 0 | 0 | 0.004789 | 0.25015 | 1,671 | 62 | 79 | 26.951613 | 0.822825 | 0 | 0 | 0.071429 | 0 | 0 | 0.030521 | 0 | 0 | 0 | 0 | 0 | 0.214286 | 1 | 0.238095 | false | 0.071429 | 0.071429 | 0.047619 | 0.547619 | 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 | 1 | 0 | 0 | 3 |
9065cb3cec05561f2b6f5dc2d33ec4a02383556c | 4,471 | py | Python | tests/import_export_test.py | mcdobe100/arkouda | 499ecb502da214ee71e9923fda9487c65ec4d616 | [
"MIT"
] | null | null | null | tests/import_export_test.py | mcdobe100/arkouda | 499ecb502da214ee71e9923fda9487c65ec4d616 | [
"MIT"
] | null | null | null | tests/import_export_test.py | mcdobe100/arkouda | 499ecb502da214ee71e9923fda9487c65ec4d616 | [
"MIT"
] | null | null | null | import numpy as np
import pandas as pd
import os
from shutil import rmtree
import glob
import pytest
from base_test import ArkoudaTest
from context import arkouda as ak
class DataFrameTest(ArkoudaTest):
def build_pandas_dataframe(self):
df = pd.DataFrame(data={
'Random_A': np.random.randint(0... | 39.219298 | 107 | 0.642138 | 675 | 4,471 | 4.019259 | 0.125926 | 0.088463 | 0.07077 | 0.041283 | 0.799484 | 0.774788 | 0.755252 | 0.697383 | 0.653889 | 0.626244 | 0 | 0.009673 | 0.213822 | 4,471 | 113 | 108 | 39.566372 | 0.762162 | 0.059718 | 0 | 0.419753 | 0 | 0 | 0.209297 | 0.12348 | 0 | 0 | 0 | 0 | 0.197531 | 1 | 0.08642 | false | 0 | 0.246914 | 0.012346 | 0.382716 | 0.024691 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
906de33575354f513124a9d5a52b4c90f8efcf29 | 230 | py | Python | Components/TyphoonHIL/EPC Inverter/pysunspec modbus/sst.py | missinglpf/EPHCC | 2f0c93b2d7b899f9628781fbaab65033b997b37b | [
"MIT"
] | 11 | 2017-04-25T17:17:02.000Z | 2020-09-14T08:29:28.000Z | Components/TyphoonHIL/EPC Inverter/pysunspec modbus/sst.py | missinglpf/EPHCC | 2f0c93b2d7b899f9628781fbaab65033b997b37b | [
"MIT"
] | 12 | 2017-03-19T04:03:17.000Z | 2018-06-18T17:20:51.000Z | Components/TyphoonHIL/EPC Inverter/pysunspec modbus/sst.py | PowerSystemsHIL/EPHCC | 2f0c93b2d7b899f9628781fbaab65033b997b37b | [
"MIT"
] | 15 | 2017-05-16T07:55:08.000Z | 2021-02-22T19:46:22.000Z | import sunspec
import sunspec.core.client as client
d = client.SunSpecClientDevice(client.RTU, 1, 'COM4', max_count=10)
print(d.models)
d.common.read()
print(d.common)
print(d.common.points)
print(d.common.Opt)
print(d.common.Vr)
| 23 | 67 | 0.769565 | 39 | 230 | 4.512821 | 0.512821 | 0.170455 | 0.272727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018868 | 0.078261 | 230 | 9 | 68 | 25.555556 | 0.811321 | 0 | 0 | 0 | 0 | 0 | 0.017391 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.222222 | 0.555556 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 1 | 0 | 3 |
9072ebe8d89e2a61b4f3d3a26e3b1febc301a7f0 | 340 | py | Python | capytcha_server/models/user.py | fcgomes92/capytcha | fb864ef66994c2ae8f11a4b2128013b7304d1da4 | [
"Apache-2.0"
] | null | null | null | capytcha_server/models/user.py | fcgomes92/capytcha | fb864ef66994c2ae8f11a4b2128013b7304d1da4 | [
"Apache-2.0"
] | null | null | null | capytcha_server/models/user.py | fcgomes92/capytcha | fb864ef66994c2ae8f11a4b2128013b7304d1da4 | [
"Apache-2.0"
] | null | null | null | from pymodm import MongoModel, fields
from pymongo import IndexModel, TEXT
class User(MongoModel):
email = fields.EmailField()
first_name = fields.CharField()
last_name = fields.CharField()
password = fields.CharField()
class Meta:
indexes = [
IndexModel([('email', TEXT)], uni... | 22.666667 | 54 | 0.647059 | 35 | 340 | 6.228571 | 0.6 | 0.206422 | 0.174312 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.247059 | 340 | 14 | 55 | 24.285714 | 0.851563 | 0 | 0 | 0 | 0 | 0 | 0.014706 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.090909 | 0.181818 | 0 | 0.727273 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
90771c8f348ce5f90994cf45d2406ad5f61f1ea1 | 134 | py | Python | Chapter02/Chi_square_test.py | retwal/Predictive | 57c3cb64901b7a0629b70053ecf01dac5be66d6f | [
"MIT"
] | 73 | 2017-10-27T22:44:32.000Z | 2021-12-25T18:37:51.000Z | Chapter02/Chi_square_test.py | retwal/Predictive | 57c3cb64901b7a0629b70053ecf01dac5be66d6f | [
"MIT"
] | 3 | 2018-09-20T21:47:21.000Z | 2021-03-14T05:32:41.000Z | Chapter02/Chi_square_test.py | retwal/Predictive | 57c3cb64901b7a0629b70053ecf01dac5be66d6f | [
"MIT"
] | 72 | 2017-11-06T07:08:01.000Z | 2021-11-25T09:00:28.000Z | from scipy.stats import chisquare
x = [209, 280, 225, 248]
chi_statistic, p_value = chisquare(x)
print(chi_statistic)
print(p_value)
| 19.142857 | 37 | 0.761194 | 22 | 134 | 4.454545 | 0.681818 | 0.204082 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102564 | 0.126866 | 134 | 6 | 38 | 22.333333 | 0.735043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.4 | 1 | 0 | 0 | null | 1 | 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 |
9080501c3adb5653fb62b50309fbc53d0ad1740b | 91 | py | Python | coupons/forms.py | mohammadali-davarzani/myshop | 947828201e893bcaa3c99b1e260e4ae3890012e5 | [
"MIT"
] | 17 | 2017-08-11T03:42:07.000Z | 2020-09-23T15:09:05.000Z | coupons/forms.py | mohammadali-davarzani/myshop | 947828201e893bcaa3c99b1e260e4ae3890012e5 | [
"MIT"
] | 13 | 2020-03-24T18:18:34.000Z | 2022-01-13T02:19:32.000Z | coupons/forms.py | mohammadali-davarzani/myshop | 947828201e893bcaa3c99b1e260e4ae3890012e5 | [
"MIT"
] | 13 | 2017-12-02T06:58:34.000Z | 2022-02-01T14:10:14.000Z | from django import forms
class CouponApplyForm(forms.Form):
code = forms.CharField()
| 15.166667 | 34 | 0.747253 | 11 | 91 | 6.181818 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164835 | 91 | 5 | 35 | 18.2 | 0.894737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 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 | 0 | 0 | 0 | 3 |
9098d59b651cc8460396ee6a03f70472760a5210 | 148 | py | Python | src/timetracking/urls.py | TolgaKara/prodai | a858d39226a072a2a52513d942dd046bb3787da8 | [
"Apache-2.0"
] | null | null | null | src/timetracking/urls.py | TolgaKara/prodai | a858d39226a072a2a52513d942dd046bb3787da8 | [
"Apache-2.0"
] | 7 | 2020-10-09T09:24:28.000Z | 2022-03-12T00:14:07.000Z | src/timetracking/urls.py | TolgaKara/prodai | a858d39226a072a2a52513d942dd046bb3787da8 | [
"Apache-2.0"
] | null | null | null | from django.urls import path, include
from src.timetracking import views
urlpatterns = [
path('', views.timetracking, name='timetracking'),
]
| 18.5 | 54 | 0.736486 | 17 | 148 | 6.411765 | 0.647059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148649 | 148 | 7 | 55 | 21.142857 | 0.865079 | 0 | 0 | 0 | 0 | 0 | 0.081081 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 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 | 0 | 0 | 0 | 3 |
90a3cd8d7743e0b8304d6802f7f3c5cacfa31063 | 73 | py | Python | Configuration/Eras/python/Modifier_run2_CSC_2018_cff.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | Configuration/Eras/python/Modifier_run2_CSC_2018_cff.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | Configuration/Eras/python/Modifier_run2_CSC_2018_cff.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | import FWCore.ParameterSet.Config as cms
run2_CSC_2018 = cms.Modifier()
| 18.25 | 40 | 0.808219 | 11 | 73 | 5.181818 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 0.109589 | 73 | 3 | 41 | 24.333333 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 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 | 0 | 0 | 0 | 3 |
90db407970e8bc414af5b3733a06df4be0a72586 | 130 | py | Python | app/models.py | lealoureiro/audio-downloader-api | 86d89604880e9124bf16768cc497995b452aa24c | [
"MIT"
] | 3 | 2021-07-29T00:33:11.000Z | 2022-02-28T11:32:58.000Z | app/models.py | lealoureiro/audio-downloader-api | 86d89604880e9124bf16768cc497995b452aa24c | [
"MIT"
] | null | null | null | app/models.py | lealoureiro/audio-downloader-api | 86d89604880e9124bf16768cc497995b452aa24c | [
"MIT"
] | null | null | null | from pydantic import BaseModel
class AudioDownloadRequest(BaseModel):
url: str
artist: str
album: str
title: str
| 16.25 | 38 | 0.707692 | 15 | 130 | 6.133333 | 0.733333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.238462 | 130 | 7 | 39 | 18.571429 | 0.929293 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.166667 | 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 | 0 | 0 | 0 | 0 | 0 | 3 |
90db4bd7c1422b220463d091a7d4a3293f915235 | 311 | py | Python | test/mitmproxy/contentviews/test_hex.py | KarlParkinson/mitmproxy | fd5caf40c75ca73c4b767170497abf6a5bf016a0 | [
"MIT"
] | 24,939 | 2015-01-01T17:13:21.000Z | 2022-03-31T17:50:04.000Z | test/mitmproxy/contentviews/test_hex.py | PeterDaveHello/mitmproxy | 4bd7b6c4eadeaca712f63e0e73f20bcf6aadbffb | [
"MIT"
] | 3,655 | 2015-01-02T12:31:43.000Z | 2022-03-31T20:24:57.000Z | test/mitmproxy/contentviews/test_hex.py | PeterDaveHello/mitmproxy | 4bd7b6c4eadeaca712f63e0e73f20bcf6aadbffb | [
"MIT"
] | 3,712 | 2015-01-06T06:47:06.000Z | 2022-03-31T10:33:27.000Z | from mitmproxy.contentviews import hex
from . import full_eval
def test_view_hex():
v = full_eval(hex.ViewHex())
assert v(b"foo")
def test_render_priority():
v = hex.ViewHex()
assert not v.render_priority(b"ascii")
assert v.render_priority(b"\xFF")
assert not v.render_priority(b"")
| 20.733333 | 42 | 0.697749 | 48 | 311 | 4.333333 | 0.416667 | 0.269231 | 0.216346 | 0.230769 | 0.240385 | 0.240385 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180064 | 311 | 14 | 43 | 22.214286 | 0.815686 | 0 | 0 | 0 | 0 | 0 | 0.038585 | 0 | 0 | 0 | 0 | 0 | 0.4 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 1 | 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 | 3 |
90e1f609f0009978e0f8de021f528f64317c5e48 | 185 | py | Python | core/app/api_keys/factories.py | EmixMaxime/mx-home-security | ec6d329a09bb2e0afbbd7e481937893311f02634 | [
"MIT"
] | 2 | 2021-04-29T19:28:59.000Z | 2021-04-29T21:20:32.000Z | core/app/api_keys/factories.py | EmixMaxime/mx-home-security | ec6d329a09bb2e0afbbd7e481937893311f02634 | [
"MIT"
] | 101 | 2020-06-26T19:51:24.000Z | 2021-03-28T09:35:55.000Z | core/app/api_keys/factories.py | mxmaxime/mx-tech-house | f6b66b8390b348e48d4c6ea0da51e409f3845fd6 | [
"MIT"
] | null | null | null | import factory
from faker import Factory
from .models import APIKey
faker = Factory.create()
class ApiKeysFactory(factory.DjangoModelFactory):
class Meta:
model = APIKey
| 16.818182 | 49 | 0.751351 | 21 | 185 | 6.619048 | 0.571429 | 0.18705 | 0.244604 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.189189 | 185 | 10 | 50 | 18.5 | 0.926667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.714286 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
90e4c6fa02585ccbd64d2c31aad8f846b34b1539 | 1,002 | py | Python | Python Crash Course by Eric Matthes/exercise_3_4-7.py | Debo-Republic/Books-Exercises | d8d5971437fce77b3bbf15d340f5933b1826ccf0 | [
"MIT"
] | null | null | null | Python Crash Course by Eric Matthes/exercise_3_4-7.py | Debo-Republic/Books-Exercises | d8d5971437fce77b3bbf15d340f5933b1826ccf0 | [
"MIT"
] | null | null | null | Python Crash Course by Eric Matthes/exercise_3_4-7.py | Debo-Republic/Books-Exercises | d8d5971437fce77b3bbf15d340f5933b1826ccf0 | [
"MIT"
] | null | null | null | guest_list = ["Shantopriyo Bhowmick", "Jordan B Peterson", "Mayuri B Upadhaya", "Deblina Bhowmick", "Sandeep Goswami", "Soumen Goswami"]
print(f"Hi my dear brother{guest_list[0].title()}, Hope your killing it wherever you are. Come join me for a dinner. Meet people i like the most")
print(f"Hi professor {guest_list[1... | 45.545455 | 147 | 0.729541 | 178 | 1,002 | 4.005618 | 0.516854 | 0.227209 | 0.084151 | 0.036466 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011765 | 0.151697 | 1,002 | 21 | 148 | 47.714286 | 0.827059 | 0 | 0 | 0.529412 | 0 | 0.176471 | 0.705102 | 0.078571 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.058824 | 0.529412 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
90e59ed00863d6b146f46d4d3d1eabd2eeae9b38 | 450 | py | Python | source/companion-app/__init__.py | remico/RecordingControl | f157eb674a13ee796e1d36fedc5171f3745670af | [
"BSD-3-Clause"
] | 1 | 2022-01-09T16:17:13.000Z | 2022-01-09T16:17:13.000Z | source/companion-app/__init__.py | remico/YRemote | f157eb674a13ee796e1d36fedc5171f3745670af | [
"BSD-3-Clause"
] | null | null | null | source/companion-app/__init__.py | remico/YRemote | f157eb674a13ee796e1d36fedc5171f3745670af | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# This file is part of "YRemote Companion App" project
#
# Author: Roman Gladyshev <remicollab@gmail.com>
# License: BSD 3-clause "New" or "Revised" License
#
# SPDX-License-Identifier: BSD-3-Clause
# License text is available in the LICENSE file and online:
# http... | 25 | 60 | 0.702222 | 66 | 450 | 4.727273 | 0.787879 | 0.038462 | 0.096154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026247 | 0.153333 | 450 | 17 | 61 | 26.470588 | 0.792651 | 0.82 | 0 | 0 | 0 | 0 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
90e7283c4499a9d20d0ad3b7da6f56c14d8a63f4 | 378 | py | Python | test/link1.py | sergey-serebryakov/mpipe | 5a1804cf64271931f0cd3e4fff3e2b38291212dd | [
"MIT"
] | null | null | null | test/link1.py | sergey-serebryakov/mpipe | 5a1804cf64271931f0cd3e4fff3e2b38291212dd | [
"MIT"
] | null | null | null | test/link1.py | sergey-serebryakov/mpipe | 5a1804cf64271931f0cd3e4fff3e2b38291212dd | [
"MIT"
] | null | null | null | from mpipe import OrderedStage as OStage, Pipeline
def magnify(value):
return value*10
p1 = Pipeline(
OStage(magnify).link(
OStage(magnify).link(
OStage(magnify).link(
OStage(magnify)
)
)
)
)
for val in list(range(10)) + [None]:
p... | 18.9 | 50 | 0.547619 | 43 | 378 | 4.813953 | 0.55814 | 0.251208 | 0.246377 | 0.333333 | 0.309179 | 0.309179 | 0.309179 | 0.309179 | 0 | 0 | 0 | 0.028112 | 0.34127 | 378 | 19 | 51 | 19.894737 | 0.803213 | 0 | 0 | 0.1875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.0625 | 0.0625 | 0.1875 | 0.0625 | 0 | 0 | 0 | null | 1 | 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 | 3 |
90f04e4e43cb798eca65651e3b9fd93f412a5b22 | 394 | py | Python | mox/models/participation.py | trike-city/mox | 299c070433c8f4ee6d93c729567ef3e37631c078 | [
"MIT"
] | null | null | null | mox/models/participation.py | trike-city/mox | 299c070433c8f4ee6d93c729567ef3e37631c078 | [
"MIT"
] | 24 | 2019-07-14T17:16:45.000Z | 2019-08-08T17:24:36.000Z | mox/models/participation.py | trike-city/mox | 299c070433c8f4ee6d93c729567ef3e37631c078 | [
"MIT"
] | null | null | null | class Participation:
def __init__(self, id, tournament_id, player_id):
self.id = id
self.tournament_id = tournament_id
self.player_id = player_id
@staticmethod
def build(attributes):
return Participation(
id=attributes['id'],
tournament_id=attributes[... | 28.142857 | 54 | 0.619289 | 42 | 394 | 5.47619 | 0.285714 | 0.26087 | 0.182609 | 0.173913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.28934 | 394 | 13 | 55 | 30.307692 | 0.821429 | 0 | 0 | 0 | 0 | 0 | 0.060914 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0.083333 | 0.333333 | 0 | 0 | 0 | 0 | null | 1 | 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 | 3 |
292711f68c5f4369fa6b6a9d476fc600a579e192 | 184 | py | Python | .history/gram/email_20201122000309.py | Nyash-Mauro/Instagram-clone | 39f3b660b3bdd59996fa88816712c906d0e3fba5 | [
"MIT"
] | null | null | null | .history/gram/email_20201122000309.py | Nyash-Mauro/Instagram-clone | 39f3b660b3bdd59996fa88816712c906d0e3fba5 | [
"MIT"
] | null | null | null | .history/gram/email_20201122000309.py | Nyash-Mauro/Instagram-clone | 39f3b660b3bdd59996fa88816712c906d0e3fba5 | [
"MIT"
] | null | null | null | from django.core.mail import send_mail
send_mail(
'Welcome to the gram {}',
'Hope you will love it',
'from@example.com',
['to@example.com'],
fail_silently=False,
) | 20.444444 | 38 | 0.646739 | 27 | 184 | 4.296296 | 0.740741 | 0.137931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.211957 | 184 | 9 | 39 | 20.444444 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0.394595 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.125 | 0 | 0.125 | 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 | 0 | 0 | 0 | 0 | 0 | 3 |
293b0baa1e49ebc457ca007978998553139b2db2 | 152 | py | Python | dreamwidgetclient/context_processors.py | dreamplatform/dream-widget-client | 0c062fa373c710edd41a92ebee9b89c3a20bf3b2 | [
"BSD-3-Clause"
] | null | null | null | dreamwidgetclient/context_processors.py | dreamplatform/dream-widget-client | 0c062fa373c710edd41a92ebee9b89c3a20bf3b2 | [
"BSD-3-Clause"
] | null | null | null | dreamwidgetclient/context_processors.py | dreamplatform/dream-widget-client | 0c062fa373c710edd41a92ebee9b89c3a20bf3b2 | [
"BSD-3-Clause"
] | null | null | null |
#encoding=utf-8
from dreamwidgetclient import settings
def dreamwidget(context):
return {
'DREAMWIDGETURL' : settings.DREAMWIDGET_URL,
}
| 13.818182 | 48 | 0.730263 | 15 | 152 | 7.333333 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008065 | 0.184211 | 152 | 10 | 49 | 15.2 | 0.879032 | 0.092105 | 0 | 0 | 0 | 0 | 0.103704 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0.2 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
29411014dc015d7af95255a12cd41c580ef397cd | 1,935 | py | Python | sktime/transformers/series_as_features/tests/test_Padder.py | brettkoonce/sktime | 6336247bad0dac8692aa4b911c267f401dea4163 | [
"BSD-3-Clause"
] | 2 | 2020-10-05T12:17:41.000Z | 2020-10-19T08:57:50.000Z | sktime/transformers/series_as_features/tests/test_Padder.py | brettkoonce/sktime | 6336247bad0dac8692aa4b911c267f401dea4163 | [
"BSD-3-Clause"
] | 2 | 2020-04-20T12:26:42.000Z | 2020-04-22T17:09:14.000Z | sktime/transformers/series_as_features/tests/test_Padder.py | brettkoonce/sktime | 6336247bad0dac8692aa4b911c267f401dea4163 | [
"BSD-3-Clause"
] | 1 | 2022-02-14T18:19:01.000Z | 2022-02-14T18:19:01.000Z | # from sklearn.pipeline import Pipeline
from sktime.datasets.base import _load_dataset
from sktime.transformers.series_as_features.padder import \
PaddingTransformer
# from sklearn.ensemble import RandomForestClassifier
from sktime.utils.data_container import tabularize
# import pandas as pd
def test_padding_tra... | 31.721311 | 74 | 0.729199 | 277 | 1,935 | 4.848375 | 0.256318 | 0.040208 | 0.067014 | 0.089352 | 0.727476 | 0.727476 | 0.706627 | 0.664929 | 0.664929 | 0.664929 | 0 | 0.019558 | 0.180879 | 1,935 | 60 | 75 | 32.25 | 0.82776 | 0.242377 | 0 | 0.586207 | 0 | 0 | 0.047586 | 0 | 0 | 0 | 0 | 0 | 0.103448 | 1 | 0.103448 | false | 0 | 0.103448 | 0 | 0.206897 | 0.034483 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
29614e3837106a73004d132ebfff4622be03bd4a | 173 | py | Python | api/routing.py | Anupam-dagar/DRF-Websocket-Django-Backend | aa7991b2b05f272934a6e25965d4bbb5887cca39 | [
"MIT"
] | 1 | 2020-04-07T02:35:11.000Z | 2020-04-07T02:35:11.000Z | api/routing.py | Anupam-dagar/DRF-Websocket-Django-Backend | aa7991b2b05f272934a6e25965d4bbb5887cca39 | [
"MIT"
] | null | null | null | api/routing.py | Anupam-dagar/DRF-Websocket-Django-Backend | aa7991b2b05f272934a6e25965d4bbb5887cca39 | [
"MIT"
] | null | null | null | from django.urls import re_path
from . import consumers
websocket_urlpatterns = [
re_path(r'ws/collections/(?P<collection_id>\w+)/$', consumers.CollectionConsumer),
]
| 21.625 | 86 | 0.751445 | 22 | 173 | 5.727273 | 0.772727 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115607 | 173 | 7 | 87 | 24.714286 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0.225434 | 0.225434 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 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 | 0 | 0 | 0 | 3 |
296f4c3b7820d542d11bb0583fb3fc352a3168c9 | 223 | py | Python | torch_ecg_bak/torch_ecg/models/unets/__init__.py | wenh06/cinc2021 | 608f39b894f5b0844426a1c476f11b3bbb54ed54 | [
"MIT"
] | 9 | 2021-06-26T03:00:55.000Z | 2022-03-03T13:43:00.000Z | torch_ecg_bak/torch_ecg/models/unets/__init__.py | wenh06/cinc2021 | 608f39b894f5b0844426a1c476f11b3bbb54ed54 | [
"MIT"
] | 1 | 2021-10-01T09:29:30.000Z | 2021-10-02T03:41:55.000Z | torch_ecg_bak/torch_ecg/models/unets/__init__.py | wenh06/cinc2021 | 608f39b894f5b0844426a1c476f11b3bbb54ed54 | [
"MIT"
] | 2 | 2021-04-28T03:13:11.000Z | 2021-05-15T14:15:34.000Z | """
Various UNets for ECG waveform segmentation
"""
from .ecg_subtract_unet import ECG_SUBTRACT_UNET # CPSC2019 unet
from .ecg_unet import ECG_UNET # vanilla unet
__all__ = [
"ECG_SUBTRACT_UNET",
"ECG_UNET",
]
| 17.153846 | 65 | 0.730942 | 30 | 223 | 5 | 0.433333 | 0.22 | 0.3 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021978 | 0.183857 | 223 | 12 | 66 | 18.583333 | 0.802198 | 0.318386 | 0 | 0 | 0 | 0 | 0.174825 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 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 | 0 | 0 | 0 | 3 |
297d27b21e2909d2f217bc416f7082084937b919 | 496 | py | Python | models/layers/activations/other.py | milesgray/ImageFunctions | 35e4423b94149b0ba291eafb0cd98260a70d5f31 | [
"Apache-2.0"
] | null | null | null | models/layers/activations/other.py | milesgray/ImageFunctions | 35e4423b94149b0ba291eafb0cd98260a70d5f31 | [
"Apache-2.0"
] | null | null | null | models/layers/activations/other.py | milesgray/ImageFunctions | 35e4423b94149b0ba291eafb0cd98260a70d5f31 | [
"Apache-2.0"
] | null | null | null | import torch
import torch.nn as nn
import torch.nn.functional as F
from torch import Tensor
from .methods import logcosh, gaussian
from .registry import register
@register("logcosh")
class LogCosh(torch.nn.Module):
def forward(self, x: Tensor) -> Tensor:
return logcosh(x)
@register("gaussian")
class Gau... | 22.545455 | 43 | 0.679435 | 69 | 496 | 4.768116 | 0.347826 | 0.085106 | 0.079027 | 0.097264 | 0.200608 | 0.200608 | 0.200608 | 0 | 0 | 0 | 0 | 0 | 0.205645 | 496 | 22 | 44 | 22.545455 | 0.835025 | 0 | 0 | 0.117647 | 0 | 0 | 0.030181 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.352941 | 0.117647 | 0.764706 | 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 | 1 | 1 | 0 | 0 | 3 |
463b6bd029be6bf56eb99ed867624b9b4f2e6ae7 | 16,914 | py | Python | ecomcat_api/brute_keys.py | andrewraharjo/CAN-Bus-Hack_Prius_Focus | b2a73dfb4a3762d8439acd64d2e1b5d729988b2e | [
"MIT"
] | 34 | 2016-08-05T02:49:04.000Z | 2022-03-12T07:44:44.000Z | ecomcat_api/brute_keys.py | andrewraharjo/CAN-Bus-Hack_Prius_Focus | b2a73dfb4a3762d8439acd64d2e1b5d729988b2e | [
"MIT"
] | null | null | null | ecomcat_api/brute_keys.py | andrewraharjo/CAN-Bus-Hack_Prius_Focus | b2a73dfb4a3762d8439acd64d2e1b5d729988b2e | [
"MIT"
] | 15 | 2016-12-03T03:19:13.000Z | 2021-10-17T04:49:14.000Z | from ctypes import *
import time
import sys
class SFFMessage(Structure):
_fields_ = [("IDH", c_ubyte),
("IDL", c_ubyte),
("data", c_ubyte * 8),
("options", c_ubyte),
("DataLength", c_ubyte),
("TimeStamp", c_uint),
... | 24.764275 | 393 | 0.528379 | 3,248 | 16,914 | 2.706281 | 0.143165 | 0.042776 | 0.059386 | 0.07281 | 0.428669 | 0.362799 | 0.347327 | 0.31752 | 0.280774 | 0.271445 | 0 | 0.324106 | 0.320858 | 16,914 | 682 | 394 | 24.800587 | 0.441107 | 0.070297 | 0 | 0.314721 | 0 | 0.001692 | 0.411808 | 0 | 0 | 0 | 0.022548 | 0 | 0 | 0 | null | null | 0 | 0.005076 | null | null | 0.025381 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4646f3de332dc9077584834a8251b93b2a95b059 | 412 | py | Python | plugins/auth/fps_auth/fixtures.py | jtpio/jupyverse | 2419c7d2cee618b791908f8a63db9f7b18cab78e | [
"MIT"
] | null | null | null | plugins/auth/fps_auth/fixtures.py | jtpio/jupyverse | 2419c7d2cee618b791908f8a63db9f7b18cab78e | [
"MIT"
] | null | null | null | plugins/auth/fps_auth/fixtures.py | jtpio/jupyverse | 2419c7d2cee618b791908f8a63db9f7b18cab78e | [
"MIT"
] | null | null | null | import pytest
from fps_auth.config import AuthConfig, get_auth_config
@pytest.fixture
def auth_mode():
return "token"
@pytest.fixture
def auth_config(auth_mode):
yield AuthConfig.parse_obj({"mode": auth_mode})
@pytest.fixture
def config_override(app, auth_config):
async def override_get_config():
... | 19.619048 | 67 | 0.76699 | 57 | 412 | 5.22807 | 0.368421 | 0.201342 | 0.161074 | 0.134228 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148058 | 412 | 20 | 68 | 20.6 | 0.849003 | 0 | 0 | 0.230769 | 0 | 0 | 0.021845 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.153846 | 0.076923 | 0.538462 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
464900d114a52e8e9325be9fd70ce8235d2031ef | 2,376 | py | Python | tests/api/conftest.py | antalszava/piquasso | 7ebff83145cfab44929114437c250852dff5f9a5 | [
"Apache-2.0"
] | 12 | 2021-09-12T15:51:45.000Z | 2022-03-05T22:25:47.000Z | tests/api/conftest.py | antalszava/piquasso | 7ebff83145cfab44929114437c250852dff5f9a5 | [
"Apache-2.0"
] | 36 | 2021-09-13T08:01:27.000Z | 2022-03-21T11:53:30.000Z | tests/api/conftest.py | antalszava/piquasso | 7ebff83145cfab44929114437c250852dff5f9a5 | [
"Apache-2.0"
] | null | null | null | #
# Copyright 2021 Budapest Quantum Computing Group
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | 24 | 88 | 0.670034 | 270 | 2,376 | 5.774074 | 0.448148 | 0.038486 | 0.061578 | 0.020526 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004505 | 0.252525 | 2,376 | 98 | 89 | 24.244898 | 0.873311 | 0.267677 | 0 | 0.226415 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.245283 | false | 0.075472 | 0.037736 | 0.056604 | 0.622642 | 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 | 1 | 0 | 0 | 3 |
466b01c94c9667eb8ed0573ed1cf9baa19adf637 | 209 | py | Python | Data Types in Python.py | AshishJangra27/Introduction-to-Python-SkillingYou | 9817b9cd1569cd37e3095a797eee35b0bc29f68c | [
"Apache-2.0"
] | 2 | 2021-09-11T15:44:26.000Z | 2021-09-25T17:49:23.000Z | Data Types in Python.py | AshishJangra27/Introduction-to-Python-SkillingYou | 9817b9cd1569cd37e3095a797eee35b0bc29f68c | [
"Apache-2.0"
] | null | null | null | Data Types in Python.py | AshishJangra27/Introduction-to-Python-SkillingYou | 9817b9cd1569cd37e3095a797eee35b0bc29f68c | [
"Apache-2.0"
] | null | null | null |
# Author: Ashish Jangra from Teenage Coder
var_int = 3
var_float = -3.14
var_boolean = False
var_string = "True"
print(type(var_int))
print(type(var_boolean))
print(type(var_string))
print(type(var_float)) | 16.076923 | 42 | 0.751196 | 35 | 209 | 4.257143 | 0.485714 | 0.241611 | 0.322148 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021858 | 0.124402 | 209 | 13 | 43 | 16.076923 | 0.79235 | 0.191388 | 0 | 0 | 0 | 0 | 0.023952 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 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 | 0 | 0 | 0 | 1 | 0 | 3 |
466f34bc2b1b7d1fabc871299cf4c081c3148d05 | 5,740 | py | Python | tests/integrationv2/test_version_negotiation.py | aicas/s2n-tls | 1bfdf86b7b4210bc6f67ef4c075502c8d8968f05 | [
"Apache-2.0"
] | 1 | 2020-02-03T08:21:41.000Z | 2020-02-03T08:21:41.000Z | tests/integrationv2/test_version_negotiation.py | aicas/s2n-tls | 1bfdf86b7b4210bc6f67ef4c075502c8d8968f05 | [
"Apache-2.0"
] | null | null | null | tests/integrationv2/test_version_negotiation.py | aicas/s2n-tls | 1bfdf86b7b4210bc6f67ef4c075502c8d8968f05 | [
"Apache-2.0"
] | 1 | 2020-02-03T08:21:46.000Z | 2020-02-03T08:21:46.000Z | import copy
import pytest
from configuration import available_ports, ALL_TEST_CIPHERS, ALL_TEST_CURVES, ALL_TEST_CERTS
from common import ProviderOptions, Protocols, data_bytes
from fixtures import managed_process
from providers import Provider, S2N, OpenSSL
from utils import invalid_test_parameters, get_parameter_nam... | 49.059829 | 117 | 0.737108 | 743 | 5,740 | 5.496635 | 0.183042 | 0.044564 | 0.043095 | 0.046523 | 0.726249 | 0.710578 | 0.68903 | 0.668952 | 0.668952 | 0.668952 | 0 | 0.015846 | 0.175436 | 5,740 | 116 | 118 | 49.482759 | 0.847031 | 0.118815 | 0 | 0.711111 | 0 | 0 | 0.073084 | 0 | 0 | 0 | 0 | 0 | 0.211111 | 1 | 0.022222 | false | 0 | 0.077778 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
46887ee6dc8e98a97b44c9d929f317078cb6027b | 1,107 | py | Python | robustness_metrics/datasets/__init__.py | goncaloperes/robustness_metrics | 5ee77294432e1265e432b6e84e06e2a5ae2af387 | [
"Apache-2.0"
] | 383 | 2020-09-04T08:25:16.000Z | 2022-03-25T17:39:19.000Z | robustness_metrics/datasets/__init__.py | goncaloperes/robustness_metrics | 5ee77294432e1265e432b6e84e06e2a5ae2af387 | [
"Apache-2.0"
] | 8 | 2020-12-09T16:44:10.000Z | 2022-02-01T10:08:24.000Z | robustness_metrics/datasets/__init__.py | goncaloperes/robustness_metrics | 5ee77294432e1265e432b6e84e06e2a5ae2af387 | [
"Apache-2.0"
] | 23 | 2020-12-07T22:53:31.000Z | 2022-02-21T03:49:46.000Z | # coding=utf-8
# Copyright 2021 The Robustness Metrics Authors.
#
# 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 appli... | 34.59375 | 74 | 0.778681 | 158 | 1,107 | 5.386076 | 0.582278 | 0.070505 | 0.074031 | 0.102233 | 0.224442 | 0.101058 | 0.101058 | 0.101058 | 0 | 0 | 0 | 0.01056 | 0.144535 | 1,107 | 31 | 75 | 35.709677 | 0.888068 | 0.663957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.428571 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
468b9242362729e9677b3b539fcbd870ef5f2504 | 216 | py | Python | ClassicQuestGivers/ClassicQuestGivers/__init__.py | EliasEriksson/ClassicQuestGivers | 5e7ef9861851985a4a43f7e25850aadd3adf7868 | [
"MIT"
] | null | null | null | ClassicQuestGivers/ClassicQuestGivers/__init__.py | EliasEriksson/ClassicQuestGivers | 5e7ef9861851985a4a43f7e25850aadd3adf7868 | [
"MIT"
] | null | null | null | ClassicQuestGivers/ClassicQuestGivers/__init__.py | EliasEriksson/ClassicQuestGivers | 5e7ef9861851985a4a43f7e25850aadd3adf7868 | [
"MIT"
] | null | null | null | from pathlib import Path
"""
Path variables for the project root and database
"""
PROJECT_ROOT = Path(__file__).absolute().parent.parent.parent
DATABASE_ADRESS = f'sqlite:////{str(PROJECT_ROOT.joinpath("db.db"))}'
| 24 | 69 | 0.74537 | 30 | 216 | 5.133333 | 0.666667 | 0.214286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.101852 | 216 | 8 | 70 | 27 | 0.793814 | 0 | 0 | 0 | 0 | 0 | 0.3 | 0.3 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 1 | 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 | 0 | 0 | 0 | 3 |
4690d6557918876e55fbf1878e0424b92b49498e | 169 | py | Python | _solutions/intermediate/operator/operator_numerical_a.py | sages-pl/2022-01-pythonsqlalchemy-aptiv | 1d6d856608e9dbe25b139e8968c48b7f46753b84 | [
"MIT"
] | null | null | null | _solutions/intermediate/operator/operator_numerical_a.py | sages-pl/2022-01-pythonsqlalchemy-aptiv | 1d6d856608e9dbe25b139e8968c48b7f46753b84 | [
"MIT"
] | null | null | null | _solutions/intermediate/operator/operator_numerical_a.py | sages-pl/2022-01-pythonsqlalchemy-aptiv | 1d6d856608e9dbe25b139e8968c48b7f46753b84 | [
"MIT"
] | null | null | null |
@dataclass
class Position:
x: int = 0
y: int = 0
def __matmul__(self, other: tuple[int, int]) -> None:
self.x = other[0]
self.y = other[1]
| 16.9 | 57 | 0.538462 | 25 | 169 | 3.48 | 0.56 | 0.091954 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034783 | 0.319527 | 169 | 9 | 58 | 18.777778 | 0.721739 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.571429 | 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 | 0 | 0 | 1 | 0 | 0 | 3 |
469ba92ca6e3870b5634831fe8ef58ff2326f524 | 1,998 | py | Python | research/MCNN/inference.py | kishorecbe/Tensorflow-Solutions | a158766633bc20ca4289096e4a5454a9e0d04e51 | [
"Apache-2.0"
] | null | null | null | research/MCNN/inference.py | kishorecbe/Tensorflow-Solutions | a158766633bc20ca4289096e4a5454a9e0d04e51 | [
"Apache-2.0"
] | null | null | null | research/MCNN/inference.py | kishorecbe/Tensorflow-Solutions | a158766633bc20ca4289096e4a5454a9e0d04e51 | [
"Apache-2.0"
] | null | null | null | __author__ = 'KKishore'
import tensorflow as tf
from tensorflow.contrib import predictor
tf.logging.set_verbosity(tf.logging.INFO)
base_dir = 'serving/1525715666'
prediction_fn = predictor.from_saved_model(export_dir=base_dir, signature_def_key='serving_default')
output = prediction_fn({
'review': [
'... | 95.142857 | 1,573 | 0.828328 | 282 | 1,998 | 5.815603 | 0.723404 | 0.029268 | 0.046341 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005875 | 0.148148 | 1,998 | 20 | 1,574 | 99.9 | 0.957697 | 0 | 0 | 0 | 0 | 0.076923 | 0.838839 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.076923 | 0.153846 | 0 | 0.153846 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
d3dd60bd5ffffe9a6439f48a42988fb929917a51 | 283 | py | Python | pm2_io_apm_python/features/notifier.py | keymetrics/pm2-io-apm-python | df525a2288a31881ef96036fa289f02a6eaf3bb3 | [
"MIT"
] | 1 | 2022-03-29T23:54:57.000Z | 2022-03-29T23:54:57.000Z | pm2_io_apm_python/features/notifier.py | keymetrics/pm2-io-apm-python | df525a2288a31881ef96036fa289f02a6eaf3bb3 | [
"MIT"
] | 1 | 2020-05-08T11:24:31.000Z | 2020-05-08T11:24:31.000Z | pm2_io_apm_python/features/notifier.py | keymetrics/pm2-io-apm-python | df525a2288a31881ef96036fa289f02a6eaf3bb3 | [
"MIT"
] | null | null | null | class Notifier:
def __init__(self, transporter):
self.transporter = transporter
def log(self, s):
self.transporter.send('logs', s)
def error(self, message, stack):
self.transporter.send('process:exception', {
'message': message,
'stack': stack
})
| 21.769231 | 48 | 0.646643 | 32 | 283 | 5.59375 | 0.46875 | 0.335196 | 0.212291 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.212014 | 283 | 12 | 49 | 23.583333 | 0.802691 | 0 | 0 | 0 | 0 | 0 | 0.116608 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0 | 0 | 0.4 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d3e46703b4c75b27743c05ac8d73607f4f60a2bc | 21 | py | Python | src/clustaar/webhook/constants.py | Clustaar/clustaar.webhook | 81756ea7168e3281e17844829e6d98d89d372e54 | [
"MIT"
] | 4 | 2018-06-08T13:20:33.000Z | 2022-01-03T17:00:13.000Z | src/clustaar/webhook/constants.py | Clustaar/clustaar.webhook | 81756ea7168e3281e17844829e6d98d89d372e54 | [
"MIT"
] | 1 | 2020-08-18T16:10:04.000Z | 2020-08-18T16:10:04.000Z | src/clustaar/webhook/constants.py | Clustaar/clustaar.webhook | 81756ea7168e3281e17844829e6d98d89d372e54 | [
"MIT"
] | 2 | 2018-06-12T06:06:05.000Z | 2021-03-04T16:55:37.000Z | REQUEST_MAX_AGE = 10
| 10.5 | 20 | 0.809524 | 4 | 21 | 3.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 0.142857 | 21 | 1 | 21 | 21 | 0.722222 | 0 | 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 |
d3eb39adbd4502823abfd64eae05e185854ef679 | 1,572 | py | Python | samples/relatives.py | corradosantoro/hephaestus | c40a534e3979cef7e6eeda1206aa93e25fdd55a8 | [
"MIT"
] | null | null | null | samples/relatives.py | corradosantoro/hephaestus | c40a534e3979cef7e6eeda1206aa93e25fdd55a8 | [
"MIT"
] | null | null | null | samples/relatives.py | corradosantoro/hephaestus | c40a534e3979cef7e6eeda1206aa93e25fdd55a8 | [
"MIT"
] | null | null | null | #
#
#
import sys
#sys.path.insert(0, "../lib")
from phidias.Types import *
from phidias.Main import *
from phidias.Lib import *
class parent(Belief): pass
class male(Belief): pass
class female(Belief): pass
class sibling(Goal): pass
class father(Goal): pass
class mother(Goal): pass
class check_parent(Goal): pass
c... | 24.952381 | 56 | 0.725191 | 224 | 1,572 | 5 | 0.214286 | 0.174107 | 0.254464 | 0.15625 | 0.214286 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010497 | 0.090967 | 1,572 | 62 | 57 | 25.354839 | 0.773268 | 0.017812 | 0 | 0 | 0 | 0 | 0.107862 | 0 | 0 | 0 | 0 | 0 | 0.348837 | 1 | 0 | true | 0.348837 | 0.093023 | 0 | 0.44186 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
d3f97a6f69c75ed7e3bebce55bc6694eef3b0976 | 399 | py | Python | kairosdbclient/rest/apirequests/delete_metric.py | FrEaKmAn/kairosdb-python-client | 637eecfb95c415e9ebc8ef871d8f34c75ca1cd0c | [
"MIT"
] | 2 | 2016-06-19T12:26:54.000Z | 2016-10-20T06:58:26.000Z | kairosdbclient/rest/apirequests/delete_metric.py | FrEaKmAn/kairosdb-python-client | 637eecfb95c415e9ebc8ef871d8f34c75ca1cd0c | [
"MIT"
] | 1 | 2016-01-11T17:53:29.000Z | 2016-01-12T01:04:01.000Z | kairosdbclient/rest/apirequests/delete_metric.py | FrEaKmAn/kairosdb-python-client | 637eecfb95c415e9ebc8ef871d8f34c75ca1cd0c | [
"MIT"
] | 3 | 2016-09-02T03:22:53.000Z | 2019-07-03T19:56:13.000Z | from kairosdbclient.rest.apirequests.base import Request
class DeleteMetricRequest(Request):
resource = None
success_status_code = 204
request_method = 'DELETE'
def __init__(self, name):
self.name = name
super(DeleteMetricRequest, self).__init__()
def payload(self):
retur... | 22.166667 | 56 | 0.66416 | 44 | 399 | 5.772727 | 0.636364 | 0.094488 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009967 | 0.245614 | 399 | 18 | 57 | 22.166667 | 0.833887 | 0 | 0 | 0 | 0 | 0 | 0.0375 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.076923 | 0.153846 | 0.769231 | 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 | 1 | 1 | 0 | 0 | 3 |
d3fc201f9753d5e591ed5dcb0116e357171d6652 | 3,251 | py | Python | Pre-Processing/src/audio_processing/Grapher.py | jaquielajoie/Alzheimers_Project | 0abc03dae4a81e390c9b0d1c479627273da9daf1 | [
"Apache-2.0"
] | 5 | 2021-04-17T02:37:56.000Z | 2021-11-14T07:35:44.000Z | Pre-Processing/src/audio_processing/Grapher.py | jaquielajoie/Alzheimers_Project | 0abc03dae4a81e390c9b0d1c479627273da9daf1 | [
"Apache-2.0"
] | null | null | null | Pre-Processing/src/audio_processing/Grapher.py | jaquielajoie/Alzheimers_Project | 0abc03dae4a81e390c9b0d1c479627273da9daf1 | [
"Apache-2.0"
] | null | null | null | import numpy as np
import matplotlib.pyplot as plt
import IPython.display as ipd
import librosa as li
import librosa.display
class Grapher:
def __init__(self, f):
self.f = f
def plot_waveforms(self, x, Fs):
wave_fig, ax_wave = plt.subplots(nrows=2, ncols=2, sharex=False, figsize=(12,8))
... | 36.122222 | 109 | 0.682559 | 559 | 3,251 | 3.747764 | 0.232558 | 0.045823 | 0.038663 | 0.019093 | 0.230072 | 0.186158 | 0.103103 | 0.085919 | 0.085919 | 0.085919 | 0 | 0.025909 | 0.145186 | 3,251 | 89 | 110 | 36.52809 | 0.72796 | 0 | 0 | 0.086957 | 0 | 0 | 0.072084 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217391 | false | 0.086957 | 0.217391 | 0 | 0.521739 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
311a26dcb3880a96f3e37abc591374e0ce5bfd25 | 2,580 | py | Python | pymnn/pip_package/MNN/tools/mnn_fb/AsString.py | xhuan28/MNN | 81df3a48d79cbc0b75251d12934345948866f7be | [
"Apache-2.0"
] | 3 | 2019-12-27T01:10:32.000Z | 2021-05-14T08:10:40.000Z | pymnn/pip_package/MNN/tools/mnn_fb/AsString.py | xhuan28/MNN | 81df3a48d79cbc0b75251d12934345948866f7be | [
"Apache-2.0"
] | 10 | 2019-07-04T01:40:13.000Z | 2019-10-30T02:38:42.000Z | pymnn/pip_package/MNN/tools/mnn_fb/AsString.py | xhuan28/MNN | 81df3a48d79cbc0b75251d12934345948866f7be | [
"Apache-2.0"
] | 1 | 2020-03-10T02:17:47.000Z | 2020-03-10T02:17:47.000Z | # automatically generated by the FlatBuffers compiler, do not modify
# namespace: MNN
import flatbuffers
class AsString(object):
__slots__ = ['_tab']
@classmethod
def GetRootAsAsString(cls, buf, offset):
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
x = AsString()
... | 36.338028 | 149 | 0.683333 | 317 | 2,580 | 5.425868 | 0.246057 | 0.077326 | 0.153488 | 0.142442 | 0.493023 | 0.48314 | 0.449419 | 0.449419 | 0.449419 | 0.449419 | 0 | 0.021027 | 0.207364 | 2,580 | 70 | 150 | 36.857143 | 0.820049 | 0.055814 | 0 | 0.326531 | 1 | 0 | 0.001649 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.326531 | false | 0 | 0.020408 | 0.020408 | 0.653061 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
31212cc5cac84956bd274b971a256a11bfc313fe | 8,452 | py | Python | pycatia/hybrid_shape_interfaces/hybrid_shape_circle_center_axis.py | evereux/catia_python | 08948585899b12587b0415ce3c9191a408b34897 | [
"MIT"
] | 90 | 2019-02-21T10:05:28.000Z | 2022-03-19T01:53:41.000Z | pycatia/hybrid_shape_interfaces/hybrid_shape_circle_center_axis.py | Luanee/pycatia | ea5eef8178f73de12404561c00baf7a7ca30da59 | [
"MIT"
] | 99 | 2019-05-21T08:29:12.000Z | 2022-03-25T09:55:15.000Z | pycatia/hybrid_shape_interfaces/hybrid_shape_circle_center_axis.py | Luanee/pycatia | ea5eef8178f73de12404561c00baf7a7ca30da59 | [
"MIT"
] | 26 | 2019-04-04T06:31:36.000Z | 2022-03-30T07:24:47.000Z | #! usr/bin/python3.6
"""
Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-07-06 14:02:20.222384
.. warning::
The notes denoted "CAA V5 Visual Basic Help" are to be used as reference only.
They are there as a guide as to how the visual basic / catscript function... | 33.808 | 108 | 0.511358 | 768 | 8,452 | 5.52474 | 0.200521 | 0.054443 | 0.080132 | 0.097572 | 0.506246 | 0.471129 | 0.42305 | 0.372142 | 0.353288 | 0.328305 | 0 | 0.035936 | 0.427118 | 8,452 | 249 | 109 | 33.943775 | 0.840355 | 0.627189 | 0 | 0.153846 | 1 | 0 | 0.025419 | 0.025419 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0 | 0.076923 | 0.025641 | 0.589744 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
312e2332c969066378802fbd455f2d88f9492c60 | 121 | py | Python | __tools__/register-from-html.py | metaperl/freegold-focus | 49cf86be57c76b265f711e337f85d8ee2b156301 | [
"MIT"
] | null | null | null | __tools__/register-from-html.py | metaperl/freegold-focus | 49cf86be57c76b265f711e337f85d8ee2b156301 | [
"MIT"
] | null | null | null | __tools__/register-from-html.py | metaperl/freegold-focus | 49cf86be57c76b265f711e337f85d8ee2b156301 | [
"MIT"
] | null | null | null | __author__ = 'admin'
import sys
data = sys.stdin.readlines()
print "Counted", len(data), "lines."
data_as_str = "\n" | 13.444444 | 36 | 0.669421 | 17 | 121 | 4.411765 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157025 | 121 | 9 | 37 | 13.444444 | 0.735294 | 0 | 0 | 0 | 0 | 0 | 0.163934 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.2 | null | null | 0.2 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
313e70b7eab0dc0c5e35f058aaa5063dd87fa4a1 | 251 | py | Python | django_www/www/www/security.py | im6705/csgo_full | 6c50221c5b6441ebf689e3a1cb4978510fab0b27 | [
"Apache-2.0"
] | 4 | 2020-02-26T10:59:15.000Z | 2021-06-02T07:26:12.000Z | django_www/www/www/security.py | im6705/csgo_full | 6c50221c5b6441ebf689e3a1cb4978510fab0b27 | [
"Apache-2.0"
] | null | null | null | django_www/www/www/security.py | im6705/csgo_full | 6c50221c5b6441ebf689e3a1cb4978510fab0b27 | [
"Apache-2.0"
] | 5 | 2020-04-01T15:04:38.000Z | 2020-11-28T13:30:25.000Z | from aip import AipImageCensor
from . import web_socket, api_process, GlobalVar
import json
def check_iamge(image):
client = GlobalVar.get_value('g_baidu_APP')
result = client.faceAudit(image)
return result['result'][0]['res_code'] == 0
| 25.1 | 48 | 0.737052 | 35 | 251 | 5.085714 | 0.742857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00939 | 0.151394 | 251 | 9 | 49 | 27.888889 | 0.826291 | 0 | 0 | 0 | 0 | 0 | 0.099602 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.428571 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
3142c059275f3b3e40b177812e2e3078646ec2c6 | 3,201 | py | Python | src/deepcv/run.py | PaulEmmanuelSotir/DeepCV | 4c0ed68d47dceb713d7f34ca258dad957bcd3611 | [
"MIT"
] | 6 | 2020-04-05T13:12:02.000Z | 2022-03-13T06:27:55.000Z | src/deepcv/run.py | PaulEmmanuelSotir/DeepCV | 4c0ed68d47dceb713d7f34ca258dad957bcd3611 | [
"MIT"
] | null | null | null | src/deepcv/run.py | PaulEmmanuelSotir/DeepCV | 4c0ed68d47dceb713d7f34ca258dad957bcd3611 | [
"MIT"
] | 2 | 2020-04-19T21:10:26.000Z | 2021-04-23T22:19:32.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Application entry point."""
import os
import logging
import functools
from pathlib import Path
from typing import Dict, Union, Any, Optional
from kedro.pipeline import Pipeline
import kedro.io.transformers as transformers
from kedro.framework.context import KedroContext... | 42.118421 | 209 | 0.737582 | 432 | 3,201 | 5.25463 | 0.4375 | 0.024229 | 0.027753 | 0.027753 | 0.031718 | 0.031718 | 0.031718 | 0 | 0 | 0 | 0 | 0.007853 | 0.164636 | 3,201 | 75 | 210 | 42.68 | 0.841062 | 0.375508 | 0 | 0 | 0 | 0 | 0.050562 | 0.011747 | 0 | 0 | 0 | 0.013333 | 0 | 1 | 0.119048 | false | 0 | 0.357143 | 0.047619 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
318fb1c463801f59709d9a01b4550280d7479350 | 1,516 | py | Python | matrix_transition.py | kortaggio/interview-problems | 15ee474bbe7bfa0a869ecb961ed17552df88ec7d | [
"MIT"
] | null | null | null | matrix_transition.py | kortaggio/interview-problems | 15ee474bbe7bfa0a869ecb961ed17552df88ec7d | [
"MIT"
] | null | null | null | matrix_transition.py | kortaggio/interview-problems | 15ee474bbe7bfa0a869ecb961ed17552df88ec7d | [
"MIT"
] | null | null | null | import numpy as np
#
# Your previous Plain Text content is preserved below:
#
#
# N x M Matrix
# Point located at x;y coordinate
#
# After K moves, What is the probability the point is dead
#
# x=1
# y=0
#
initial_matrix = np.array([[1, 2, 3],
[4, 5, 6]])
#
# K=1
# Initial Matrix
#
# M = [[... | 18.487805 | 83 | 0.562005 | 269 | 1,516 | 3.107807 | 0.286245 | 0.057416 | 0.043062 | 0.064593 | 0.285885 | 0.197368 | 0.186603 | 0.186603 | 0.186603 | 0.186603 | 0 | 0.164218 | 0.236807 | 1,516 | 81 | 84 | 18.716049 | 0.558341 | 0.636544 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012346 | 0 | 1 | 0.230769 | false | 0.076923 | 0.076923 | 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 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
31952c5dcf03c14c59d68859821b2e6e3503f7ba | 250 | py | Python | 02_src/clean_data/clean_all_trade_dates.py | Hejinzefinance/Backtest_Simulation_of_Dynamic_Hedge | 529c6c5dcc10dbee4aa28b6db4949efc57f0992a | [
"MIT"
] | null | null | null | 02_src/clean_data/clean_all_trade_dates.py | Hejinzefinance/Backtest_Simulation_of_Dynamic_Hedge | 529c6c5dcc10dbee4aa28b6db4949efc57f0992a | [
"MIT"
] | null | null | null | 02_src/clean_data/clean_all_trade_dates.py | Hejinzefinance/Backtest_Simulation_of_Dynamic_Hedge | 529c6c5dcc10dbee4aa28b6db4949efc57f0992a | [
"MIT"
] | null | null | null | import pandas as pd
import pickle
excel_file = '../data/Wind_data/Wind数据.xlsx'
all_trade_dates = list(pd.read_excel(excel_file,sheet_name='交易日',squeeze=True))
with open('../data/all_trade_dates.pickle', 'wb+') as f:
pickle.dump(all_trade_dates,f) | 41.666667 | 79 | 0.76 | 43 | 250 | 4.162791 | 0.604651 | 0.134078 | 0.217877 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.084 | 250 | 6 | 80 | 41.666667 | 0.781659 | 0 | 0 | 0 | 0 | 0 | 0.258964 | 0.23506 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 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 | 3 |
9ece0a87219bccbfc0c28420148d0a704539f805 | 109 | py | Python | dashboard/app.py | baxpr/dax-opsdashboard | c8146916db1e9382c7ae1e04c8f3021d1d228263 | [
"MIT"
] | null | null | null | dashboard/app.py | baxpr/dax-opsdashboard | c8146916db1e9382c7ae1e04c8f3021d1d228263 | [
"MIT"
] | 1 | 2021-06-24T21:32:13.000Z | 2021-06-24T21:32:13.000Z | dashboard/app.py | baxpr/dax-opsdashboard | c8146916db1e9382c7ae1e04c8f3021d1d228263 | [
"MIT"
] | 1 | 2021-06-23T22:27:22.000Z | 2021-06-23T22:27:22.000Z | import dash
app = dash.Dash(__name__)
server = app.server
app.config.suppress_callback_exceptions = True
| 12.111111 | 46 | 0.779817 | 15 | 109 | 5.266667 | 0.666667 | 0.227848 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137615 | 109 | 8 | 47 | 13.625 | 0.840426 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 1 | 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 |
9ee09423e2acc3c7989aa93f597e8bbe2e9dd397 | 197 | py | Python | plot/plot_mag.py | al-jshen/stm32disc | aa1d83a4df40da150165d05c6900b3c11c756160 | [
"MIT"
] | null | null | null | plot/plot_mag.py | al-jshen/stm32disc | aa1d83a4df40da150165d05c6900b3c11c756160 | [
"MIT"
] | null | null | null | plot/plot_mag.py | al-jshen/stm32disc | aa1d83a4df40da150165d05c6900b3c11c756160 | [
"MIT"
] | null | null | null | import numpy as np
import matplotlib.pyplot as plt
x = np.loadtxt("data.txt", delimiter=",")
plt.scatter(x[:, 3], x[:, 4])
plt.scatter(x[:, 4], x[:, 5])
plt.scatter(x[:, 3], x[:, 5])
plt.show()
| 17.909091 | 41 | 0.593909 | 35 | 197 | 3.342857 | 0.485714 | 0.25641 | 0.282051 | 0.205128 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035503 | 0.142132 | 197 | 10 | 42 | 19.7 | 0.656805 | 0 | 0 | 0 | 0 | 0 | 0.045685 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 1 | 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 | 3 |
9ee79112f2ba3b42f8a0be7c155924f41c549561 | 145 | py | Python | freud_api_crawler/__init__.py | acdh-oeaw/freud_api_crawler | 8e1b07bec1da71cbc5d82c5cd7006a5d1be525aa | [
"MIT"
] | null | null | null | freud_api_crawler/__init__.py | acdh-oeaw/freud_api_crawler | 8e1b07bec1da71cbc5d82c5cd7006a5d1be525aa | [
"MIT"
] | 8 | 2020-12-01T10:39:34.000Z | 2020-12-16T11:27:17.000Z | freud_api_crawler/__init__.py | acdh-oeaw/freud_api_crawler | 8e1b07bec1da71cbc5d82c5cd7006a5d1be525aa | [
"MIT"
] | null | null | null | """Top-level package for Freud API Crawler."""
__author__ = """Peter Andorfer"""
__email__ = 'peter.andorfer@oeaw.ac.at'
__version__ = '0.19.0'
| 24.166667 | 46 | 0.696552 | 20 | 145 | 4.45 | 0.85 | 0.292135 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03125 | 0.117241 | 145 | 5 | 47 | 29 | 0.664063 | 0.275862 | 0 | 0 | 0 | 0 | 0.454545 | 0.252525 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 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 |
9eef3ed05a29e52ddf6618d6cceee0137c68c495 | 2,319 | py | Python | minesweeper/sprites/face.py | zhshize/Elitekollektivet.Minesweeper | 676f644dde11ecdc6503a727202f4867fa00aa0a | [
"MIT"
] | 1 | 2020-10-26T23:23:56.000Z | 2020-10-26T23:23:56.000Z | minesweeper/sprites/face.py | zhshize/Elitekollektivet.Minesweeper | 676f644dde11ecdc6503a727202f4867fa00aa0a | [
"MIT"
] | null | null | null | minesweeper/sprites/face.py | zhshize/Elitekollektivet.Minesweeper | 676f644dde11ecdc6503a727202f4867fa00aa0a | [
"MIT"
] | 1 | 2021-12-19T17:23:30.000Z | 2021-12-19T17:23:30.000Z | from .spritesheet import spritesheet_faces, SpritesheetIndex, SpritesheetBuilder
from pygame import Surface
_face_cache = {}
class FaceSheets:
two_thousand = "2000"
monochrome = "monochrome"
__sheets__ = [
two_thousand,
monochrome
]
def __init__(self, sheet: str):
if str(... | 28.280488 | 92 | 0.646399 | 262 | 2,319 | 5.240458 | 0.21374 | 0.080117 | 0.08303 | 0.076475 | 0.316824 | 0.316824 | 0.316824 | 0.242535 | 0.07866 | 0 | 0 | 0.006246 | 0.240621 | 2,319 | 81 | 93 | 28.62963 | 0.773424 | 0 | 0 | 0.166667 | 0 | 0 | 0.066839 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.266667 | false | 0 | 0.033333 | 0.116667 | 0.616667 | 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 | 1 | 1 | 0 | 0 | 3 |
7314c1177cb5056917b1d4a9fcb10dbee8d5c608 | 225 | py | Python | movies/filters.py | kuter/movies-imdb | f1b312fd9275ec6309b577754f1f831c6986ab92 | [
"Apache-2.0"
] | null | null | null | movies/filters.py | kuter/movies-imdb | f1b312fd9275ec6309b577754f1f831c6986ab92 | [
"Apache-2.0"
] | null | null | null | movies/filters.py | kuter/movies-imdb | f1b312fd9275ec6309b577754f1f831c6986ab92 | [
"Apache-2.0"
] | null | null | null | import django_filters
from .models import Movie
class MovieFilter(django_filters.FilterSet):
title = django_filters.CharFilter(lookup_expr='icontains')
class Meta:
model = Movie
fields = ['title']
| 18.75 | 62 | 0.706667 | 25 | 225 | 6.2 | 0.68 | 0.251613 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.208889 | 225 | 11 | 63 | 20.454545 | 0.870787 | 0 | 0 | 0 | 0 | 0 | 0.062222 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.714286 | 0 | 1 | 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 | 1 | 0 | 0 | 3 |
732aefb7465b24227ac57fb9cf695753865c6457 | 215 | py | Python | pylabeler/ui/toolbuttons/table_toolbutton.py | DrewTChrist/pylabeler | 29397681acddde0a918990dbd019aea2e4f3b904 | [
"CNRI-Python",
"Linux-OpenIB"
] | 1 | 2021-08-23T23:56:47.000Z | 2021-08-23T23:56:47.000Z | pylabeler/ui/toolbuttons/table_toolbutton.py | DrewTChrist/pylabeler | 29397681acddde0a918990dbd019aea2e4f3b904 | [
"CNRI-Python",
"Linux-OpenIB"
] | 33 | 2021-08-06T20:17:51.000Z | 2021-08-20T04:03:37.000Z | pylabeler/ui/toolbuttons/table_toolbutton.py | DrewTChrist/pylabeler | 29397681acddde0a918990dbd019aea2e4f3b904 | [
"CNRI-Python",
"Linux-OpenIB"
] | null | null | null | from pylabeler.ui.toolbuttons.toolbutton import ToolButton
class TableToolButton(ToolButton):
def __init__(self):
super().__init__()
self.html = '<div class="draggable"><table></table></div>'
| 23.888889 | 66 | 0.688372 | 23 | 215 | 6.086957 | 0.695652 | 0.114286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.167442 | 215 | 8 | 67 | 26.875 | 0.782123 | 0 | 0 | 0 | 0 | 0 | 0.204651 | 0.181395 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 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 | 0 | 0 | 1 | 0 | 0 | 3 |
73337410570a13e36f28537194ef5f4c290bb6a6 | 370 | py | Python | python/advanced/modules-packages-methods/1.modules.py | arkhoss/scripting | 6e780b93f94d7a39c44c88787e783e20ee89fab9 | [
"MIT"
] | null | null | null | python/advanced/modules-packages-methods/1.modules.py | arkhoss/scripting | 6e780b93f94d7a39c44c88787e783e20ee89fab9 | [
"MIT"
] | null | null | null | python/advanced/modules-packages-methods/1.modules.py | arkhoss/scripting | 6e780b93f94d7a39c44c88787e783e20ee89fab9 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
#Usage: lambda.py
#Author: David Caballero <d@dcaballero.net>
#Version: 1.0
print("------------------- modules -----------------------")
import prime
prime.PrimeTo(10)
import prime as pr
pr.PrimeTo(10)
from prime import PrimeTo
PrimeTo(10)
import prime
print(dir(prime))
print("---------------... | 15.416667 | 61 | 0.564865 | 43 | 370 | 4.744186 | 0.627907 | 0.161765 | 0.147059 | 0.196078 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027273 | 0.108108 | 370 | 23 | 62 | 16.086957 | 0.590909 | 0.235135 | 0 | 0.181818 | 0 | 0 | 0.369176 | 0.164875 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.363636 | 0 | 0.363636 | 0.272727 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
733e810c4d3d1555b857a552a50ce2f580ae19fc | 16,073 | py | Python | darling_ansible/python_venv/lib/python3.7/site-packages/oci/database/models/create_database_details.py | revnav/sandbox | f9c8422233d093b76821686b6c249417502cf61d | [
"Apache-2.0"
] | null | null | null | darling_ansible/python_venv/lib/python3.7/site-packages/oci/database/models/create_database_details.py | revnav/sandbox | f9c8422233d093b76821686b6c249417502cf61d | [
"Apache-2.0"
] | null | null | null | darling_ansible/python_venv/lib/python3.7/site-packages/oci/database/models/create_database_details.py | revnav/sandbox | f9c8422233d093b76821686b6c249417502cf61d | [
"Apache-2.0"
] | 1 | 2020-06-25T03:12:58.000Z | 2020-06-25T03:12:58.000Z | # coding: utf-8
# Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved.
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c... | 41.5323 | 1,297 | 0.688048 | 1,845 | 16,073 | 5.81626 | 0.172358 | 0.028516 | 0.125804 | 0.054888 | 0.755941 | 0.695275 | 0.633492 | 0.54925 | 0.50452 | 0.495014 | 0 | 0.064815 | 0.240714 | 16,073 | 386 | 1,298 | 41.639896 | 0.814487 | 0.653083 | 0 | 0.086957 | 0 | 0 | 0.119573 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.208696 | false | 0.069565 | 0.017391 | 0.017391 | 0.373913 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
733ebed8bf9e1f770c1fa32340afce86de356644 | 1,720 | py | Python | h5nastran/input.py | EmanueleCannizzaro/h5nastran | a4ac2e8e0600332a553048a79393f96bd090b2ea | [
"MIT",
"BSD-3-Clause"
] | 2 | 2019-09-18T06:37:13.000Z | 2020-05-26T11:58:03.000Z | h5nastran/input.py | EmanueleCannizzaro/h5nastran | a4ac2e8e0600332a553048a79393f96bd090b2ea | [
"MIT",
"BSD-3-Clause"
] | null | null | null | h5nastran/input.py | EmanueleCannizzaro/h5nastran | a4ac2e8e0600332a553048a79393f96bd090b2ea | [
"MIT",
"BSD-3-Clause"
] | 2 | 2018-08-11T16:46:37.000Z | 2022-03-06T18:19:33.000Z | from __future__ import print_function, absolute_import
from six import iteritems, itervalues
from six.moves import range
import tables
import numpy as np
from constraint import Constraint
from coordinate_system import CoordinateSystem
from element import Element
from load import Load
from property import Property
f... | 28.666667 | 66 | 0.643023 | 206 | 1,720 | 5.218447 | 0.296117 | 0.097674 | 0.133023 | 0.167442 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013611 | 0.273837 | 1,720 | 59 | 67 | 29.152542 | 0.847078 | 0.099419 | 0 | 0 | 0 | 0 | 0.003896 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0.02381 | 0.380952 | 0.02381 | 0.52381 | 0.02381 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
7355ed1439378baeaa59a9659dbe23be538ef2c5 | 1,805 | py | Python | jsonPackage/fast_utils.py | Hammer2900/json_help_object | 1154f87a53973d239c3a37d01b52410c2abc9101 | [
"MIT"
] | null | null | null | jsonPackage/fast_utils.py | Hammer2900/json_help_object | 1154f87a53973d239c3a37d01b52410c2abc9101 | [
"MIT"
] | 1 | 2021-03-25T21:48:46.000Z | 2021-03-25T21:48:46.000Z | jsonPackage/fast_utils.py | Hammer2900/json_help_object | 1154f87a53973d239c3a37d01b52410c2abc9101 | [
"MIT"
] | null | null | null | from __future__ import absolute_import
from .main_core import *
from .log_function import *
def jprint(dict_json, indent=6):
print(JsonObjectHelpClass(dict_json).to_print(indent))
def jcolor(dict_json, indent=6):
print(JsonObjectHelpClass(dict_json).to_color(indent))
def jspickle(dict_json, file_name):
... | 21.488095 | 96 | 0.739058 | 231 | 1,805 | 5.47619 | 0.320346 | 0.082213 | 0.128063 | 0.114625 | 0.237154 | 0.143874 | 0.143874 | 0.07747 | 0.07747 | 0 | 0 | 0.002592 | 0.145152 | 1,805 | 83 | 97 | 21.746988 | 0.817239 | 0.080886 | 0 | 0 | 0 | 0 | 0.0025 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.432432 | false | 0.027027 | 0.081081 | 0.108108 | 0.675676 | 0.27027 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
736166105cbc2304e262323ceef510bbed39239a | 3,218 | py | Python | src/rsw/importer.py | BlenderCN-Org/io_scene_rsw | 20901af12b93c2b1711315e96424c28acd3afd10 | [
"MIT"
] | 1 | 2019-07-05T06:00:40.000Z | 2019-07-05T06:00:40.000Z | src/rsw/importer.py | DarthMoulByte/io_scene_rsw | 20901af12b93c2b1711315e96424c28acd3afd10 | [
"MIT"
] | null | null | null | src/rsw/importer.py | DarthMoulByte/io_scene_rsw | 20901af12b93c2b1711315e96424c28acd3afd10 | [
"MIT"
] | 1 | 2019-07-05T06:00:36.000Z | 2019-07-05T06:00:36.000Z | import os
import bpy
import bpy_extras
from mathutils import Vector, Matrix, Quaternion
from bpy.props import StringProperty, BoolProperty, FloatProperty
from ..utils.utils import get_data_path
from ..rsw.reader import RswReader
from ..gnd.importer import GndImportOptions, GndImportOperator
from ..rsm.importer import R... | 41.792208 | 141 | 0.63642 | 382 | 3,218 | 5.180628 | 0.361257 | 0.03234 | 0.040424 | 0.021223 | 0.125316 | 0.061647 | 0.039414 | 0.039414 | 0.039414 | 0 | 0 | 0.002574 | 0.275637 | 3,218 | 76 | 142 | 42.342105 | 0.846418 | 0.122747 | 0 | 0.133333 | 0 | 0 | 0.091427 | 0.008182 | 0 | 0 | 0 | 0.013158 | 0 | 1 | 0.033333 | false | 0 | 0.366667 | 0 | 0.616667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
b4082c0c6bbbb6fb7d830cc0ed3330572b27c83a | 3,964 | py | Python | test/test_constraints.py | jiforcen/orderedweightedpooling | 8cf13f86fcfb132080b5dd56463701f597bf3b60 | [
"MIT"
] | 1 | 2020-01-15T21:17:57.000Z | 2020-01-15T21:17:57.000Z | test/test_constraints.py | jiforcen/orderedweightedpooling | 8cf13f86fcfb132080b5dd56463701f597bf3b60 | [
"MIT"
] | null | null | null | test/test_constraints.py | jiforcen/orderedweightedpooling | 8cf13f86fcfb132080b5dd56463701f597bf3b60 | [
"MIT"
] | 2 | 2020-07-03T01:56:09.000Z | 2021-12-20T20:44:49.000Z | """ Unit test to check the correct behaviour of constraints"""
import unittest
import numpy as np
import keras
from keras.initializers import Constant
from keras.layers import (
MaxPooling2D,
AveragePooling2D,
Input,
Dense,
Flatten,
Activation,
)
from keras.models import Model
from pooling.p... | 42.170213 | 83 | 0.61781 | 501 | 3,964 | 4.678643 | 0.191617 | 0.044369 | 0.051195 | 0.040956 | 0.725683 | 0.718857 | 0.705205 | 0.692406 | 0.692406 | 0.692406 | 0 | 0.021895 | 0.262614 | 3,964 | 93 | 84 | 42.623656 | 0.780021 | 0.041625 | 0 | 0.445783 | 0 | 0 | 0.035828 | 0.019108 | 0 | 0 | 0 | 0 | 0.072289 | 1 | 0.048193 | false | 0 | 0.096386 | 0 | 0.156627 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b40ab2c55da09fc8293c30d8c82ac9ddd2afd531 | 138 | py | Python | examples/reshape_events.py | JcGKitten/FlowIO | 1e8f0389f05564e82c87034a5e717e6ef3a9597e | [
"BSD-3-Clause"
] | null | null | null | examples/reshape_events.py | JcGKitten/FlowIO | 1e8f0389f05564e82c87034a5e717e6ef3a9597e | [
"BSD-3-Clause"
] | null | null | null | examples/reshape_events.py | JcGKitten/FlowIO | 1e8f0389f05564e82c87034a5e717e6ef3a9597e | [
"BSD-3-Clause"
] | null | null | null | import flowio
import numpy
f = flowio.FlowData('fcs_files/data1.fcs')
n = numpy.reshape(f.events, (-1, f.channel_count))
print(n.shape)
| 17.25 | 50 | 0.731884 | 23 | 138 | 4.304348 | 0.695652 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01626 | 0.108696 | 138 | 7 | 51 | 19.714286 | 0.788618 | 0 | 0 | 0 | 0 | 0 | 0.137681 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0.2 | 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 | 0 | 0 | 0 | 3 |
b418557d783b76e32ee69bd8970b0197253d6fd7 | 116 | py | Python | src/roweb/test/readjsontest.py | A-Mazurek/ro-manager | e49b6025b89594e036fdb2b56c8b871717b3b620 | [
"MIT-0",
"MIT"
] | 11 | 2015-01-19T04:21:58.000Z | 2019-02-21T11:54:45.000Z | src/roweb/test/readjsontest.py | A-Mazurek/ro-manager | e49b6025b89594e036fdb2b56c8b871717b3b620 | [
"MIT-0",
"MIT"
] | 1 | 2016-10-18T14:35:36.000Z | 2016-10-25T19:12:05.000Z | src/roweb/test/readjsontest.py | A-Mazurek/ro-manager | e49b6025b89594e036fdb2b56c8b871717b3b620 | [
"MIT-0",
"MIT"
] | 7 | 2015-03-04T17:22:00.000Z | 2022-03-14T15:55:23.000Z | import json
if __name__ == "__main__":
f = open("data/generated.json")
t = f.read()
j = json.loads(t)
| 14.5 | 35 | 0.577586 | 17 | 116 | 3.470588 | 0.764706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 116 | 7 | 36 | 16.571429 | 0.678161 | 0 | 0 | 0 | 1 | 0 | 0.234783 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b45d81990487f2a277dfe307c5150bde5e9e0527 | 74 | py | Python | baseline/custom_module.py | bycxw/mathmodel-A | 71e9907fa07e9f20592082a6d656db97e8464f07 | [
"MIT"
] | null | null | null | baseline/custom_module.py | bycxw/mathmodel-A | 71e9907fa07e9f20592082a6d656db97e8464f07 | [
"MIT"
] | null | null | null | baseline/custom_module.py | bycxw/mathmodel-A | 71e9907fa07e9f20592082a6d656db97e8464f07 | [
"MIT"
] | null | null | null | # coding: utf-8
def boo():
a = '这是导入的自定义模块'
print(a)
return a | 12.333333 | 20 | 0.540541 | 11 | 74 | 3.636364 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019608 | 0.310811 | 74 | 6 | 21 | 12.333333 | 0.764706 | 0.175676 | 0 | 0 | 0 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 0.25 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b4610252ee190c51db989259ab8c4bf9acb0c0ca | 7,152 | py | Python | indigo_drivers/dome_nexdome3/nexdome_simulator_v3/nexdome_simulator_v3_EEPROM_test.py | RusDavies/indigo | f46003ffd0d9f5fd5d3cf1daf8292ca216ad982f | [
"RSA-MD"
] | 83 | 2016-11-02T19:37:05.000Z | 2022-03-25T00:46:48.000Z | indigo_drivers/dome_nexdome3/nexdome_simulator_v3/nexdome_simulator_v3_EEPROM_test.py | RusDavies/indigo | f46003ffd0d9f5fd5d3cf1daf8292ca216ad982f | [
"RSA-MD"
] | 202 | 2016-11-05T10:58:09.000Z | 2022-03-30T23:51:45.000Z | indigo_drivers/dome_nexdome3/nexdome_simulator_v3/nexdome_simulator_v3_EEPROM_test.py | RusDavies/indigo | f46003ffd0d9f5fd5d3cf1daf8292ca216ad982f | [
"RSA-MD"
] | 57 | 2016-12-15T06:43:29.000Z | 2022-03-10T17:53:16.000Z | import serial
from time import sleep
import sys
from sys import platform as _platform
def send_command (serial_port, command, exit_conditon1, exit_conditon2):
print command
serial_port.write("@"+command+"\n")
received = ""
while 0 > received.find(exit_conditon1) and 0 > received.find(exit_cond... | 35.058824 | 84 | 0.607243 | 708 | 7,152 | 5.90678 | 0.153955 | 0.155428 | 0.130081 | 0.155667 | 0.740077 | 0.723099 | 0.637494 | 0.637494 | 0.588714 | 0.588714 | 0 | 0.011377 | 0.299497 | 7,152 | 203 | 85 | 35.231527 | 0.823353 | 0.139262 | 0 | 0.457627 | 0 | 0 | 0.216554 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.033898 | null | null | 0.457627 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
b48abf0c8273f73797320b3a7f2c39f374268d8a | 157 | py | Python | aiocloudflare/api/accounts/storage/kv/namespaces/keys/keys.py | Stewart86/aioCloudflare | 341c0941f8f888a8b7e696e64550bce5da4949e6 | [
"MIT"
] | 2 | 2021-09-14T13:20:55.000Z | 2022-02-24T14:18:24.000Z | aiocloudflare/api/accounts/storage/kv/namespaces/keys/keys.py | Stewart86/aioCloudflare | 341c0941f8f888a8b7e696e64550bce5da4949e6 | [
"MIT"
] | 46 | 2021-09-08T08:39:45.000Z | 2022-03-29T12:31:05.000Z | aiocloudflare/api/accounts/storage/kv/namespaces/keys/keys.py | Stewart86/aioCloudflare | 341c0941f8f888a8b7e696e64550bce5da4949e6 | [
"MIT"
] | 1 | 2021-12-30T23:02:23.000Z | 2021-12-30T23:02:23.000Z | from aiocloudflare.commons.auth import Auth
class Keys(Auth):
_endpoint1 = "accounts"
_endpoint2 = "storage/kv/namespaces"
_endpoint3 = "keys"
| 19.625 | 43 | 0.713376 | 17 | 157 | 6.411765 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023438 | 0.184713 | 157 | 7 | 44 | 22.428571 | 0.828125 | 0 | 0 | 0 | 0 | 0 | 0.210191 | 0.133758 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 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 | 0 | 0 | 1 | 0 | 0 | 3 |
c31b821da697dd8881ede7c3962a6ba20f66ff1b | 3,264 | py | Python | src/hepmc/core/__init__.py | mathisgerdes/monte-carlo-integration | 533d13eeb538fec46f8d5ed00e780153b68ba7d9 | [
"MIT"
] | 2 | 2018-11-15T03:01:03.000Z | 2020-02-25T16:54:02.000Z | src/hepmc/core/__init__.py | mathisgerdes/monte-carlo-integration | 533d13eeb538fec46f8d5ed00e780153b68ba7d9 | [
"MIT"
] | null | null | null | src/hepmc/core/__init__.py | mathisgerdes/monte-carlo-integration | 533d13eeb538fec46f8d5ed00e780153b68ba7d9 | [
"MIT"
] | 1 | 2021-04-15T09:02:00.000Z | 2021-04-15T09:02:00.000Z | """ Module for Monte Carlo integration methods.
The integral for all techniques is performed over the unit hypercube [0, 1]^ndim.
The integrands must return one dimensional values (e.g. floats)
The module contains several Monte Carlo integration methods, each of which
is wrapped in a class. To create an integrator fo... | 44.108108 | 81 | 0.728554 | 491 | 3,264 | 4.816701 | 0.405295 | 0.017759 | 0.010148 | 0.023679 | 0.138689 | 0.104017 | 0.104017 | 0.086258 | 0.023679 | 0.023679 | 0 | 0.019231 | 0.1875 | 3,264 | 73 | 82 | 44.712329 | 0.872549 | 0.921262 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
c34029af86003c405974690d2fce1b807f7119c8 | 603 | py | Python | coder_news/dataUpdate/update_technology.py | shixuan163556/CoderNewsDjango | edc9a12961ce102c211642c45c708d9ac1a30c08 | [
"MIT"
] | 2 | 2019-07-04T15:28:09.000Z | 2019-07-07T13:53:07.000Z | coder_news/dataUpdate/update_technology.py | shixuan163556/CoderNewsDjango | edc9a12961ce102c211642c45c708d9ac1a30c08 | [
"MIT"
] | null | null | null | coder_news/dataUpdate/update_technology.py | shixuan163556/CoderNewsDjango | edc9a12961ce102c211642c45c708d9ac1a30c08 | [
"MIT"
] | null | null | null | import time
from django.http import HttpResponse
from coder_news.dataUpdate.NetworkSecurity import zol, zuori
from coder_news.dataUpdate.TechnologyArticles import appso, igao7, pcbeta, pconline, souhu, souhuArticles, sspaiArticles, sspaiSharingArticles
def update_technology():
# zol.getZol()
# zuori.getZuori(... | 31.736842 | 142 | 0.73466 | 58 | 603 | 7.586207 | 0.637931 | 0.040909 | 0.059091 | 0.104545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00789 | 0.159204 | 603 | 19 | 143 | 31.736842 | 0.859961 | 0.3466 | 0 | 0 | 0 | 0 | 0.013021 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | true | 0 | 0.571429 | 0 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
c3446d4117d1d1e726cdf9229d463c51ee1b81e4 | 26 | py | Python | app/configs/local.py | Shardj/py-gangue | d02e4e0b0c85069cb4ca9c507be77ecaac51dd73 | [
"MIT"
] | null | null | null | app/configs/local.py | Shardj/py-gangue | d02e4e0b0c85069cb4ca9c507be77ecaac51dd73 | [
"MIT"
] | null | null | null | app/configs/local.py | Shardj/py-gangue | d02e4e0b0c85069cb4ca9c507be77ecaac51dd73 | [
"MIT"
] | null | null | null | projectName = "py-gangue"
| 13 | 25 | 0.730769 | 3 | 26 | 6.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115385 | 26 | 1 | 26 | 26 | 0.826087 | 0 | 0 | 0 | 0 | 0 | 0.346154 | 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 |
c3556b194491c88af9870d7973333d7a9a1200b0 | 377 | py | Python | rentomatic/use_cases/storageroom_use_cases.py | keobox/rentomatic | fb9f42822e75bf8b61fa8dfa8bc2767d0dcf2d4d | [
"MIT"
] | 410 | 2016-11-15T06:55:13.000Z | 2022-03-17T16:03:03.000Z | rentomatic/use_cases/storageroom_use_cases.py | keobox/rentomatic | fb9f42822e75bf8b61fa8dfa8bc2767d0dcf2d4d | [
"MIT"
] | 4 | 2017-02-08T09:52:27.000Z | 2019-02-27T23:35:55.000Z | rentomatic/use_cases/storageroom_use_cases.py | keobox/rentomatic | fb9f42822e75bf8b61fa8dfa8bc2767d0dcf2d4d | [
"MIT"
] | 109 | 2016-12-25T14:17:21.000Z | 2022-03-07T05:49:36.000Z | from rentomatic.shared import use_case as uc
from rentomatic.shared import response_object as res
class StorageRoomListUseCase(uc.UseCase):
def __init__(self, repo):
self.repo = repo
def process_request(self, request_object):
domain_storageroom = self.repo.list(filters=request_object.filters... | 29 | 75 | 0.761273 | 47 | 377 | 5.87234 | 0.553191 | 0.086957 | 0.144928 | 0.188406 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169761 | 377 | 12 | 76 | 31.416667 | 0.881789 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
c366dff60e99fff404eeda590957eeee71d97c73 | 295 | py | Python | src/dataicer/_pip.py | trhallam/dataicer | d4e7c88c66290412f4ff03840cc860cce4c6fee8 | [
"MIT"
] | null | null | null | src/dataicer/_pip.py | trhallam/dataicer | d4e7c88c66290412f4ff03840cc860cce4c6fee8 | [
"MIT"
] | null | null | null | src/dataicer/_pip.py | trhallam/dataicer | d4e7c88c66290412f4ff03840cc860cce4c6fee8 | [
"MIT"
] | null | null | null | from typing import List
import subprocess
def get_pip_freeze() -> List[str]:
"""Return the freeze list from pip directly as a list"""
run = subprocess.Popen(["pip", "freeze"], stdout=subprocess.PIPE)
stdout = run.stdout.read().decode().strip().split("\n")
return stdout
| 32.777778 | 70 | 0.664407 | 40 | 295 | 4.85 | 0.6 | 0.092784 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.186441 | 295 | 8 | 71 | 36.875 | 0.808333 | 0.169492 | 0 | 0 | 0 | 0 | 0.047619 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
c37814c5343655ec2ffd8d3d609648255adb6e1e | 3,386 | py | Python | patreon/jsonapi/parser.py | CircuitSacul/patreon-python | 9fd21760e68ee838d153a6cfc2c580ffcc00df40 | [
"Apache-2.0"
] | 100 | 2015-11-30T03:04:00.000Z | 2022-03-16T08:55:49.000Z | patreon/jsonapi/parser.py | CircuitSacul/patreon-python | 9fd21760e68ee838d153a6cfc2c580ffcc00df40 | [
"Apache-2.0"
] | 23 | 2016-06-12T08:00:00.000Z | 2021-08-31T03:39:45.000Z | patreon/jsonapi/parser.py | CircuitSacul/patreon-python | 9fd21760e68ee838d153a6cfc2c580ffcc00df40 | [
"Apache-2.0"
] | 40 | 2015-12-02T03:05:08.000Z | 2022-03-22T08:55:20.000Z | import itertools
class JSONAPIParser(object):
"""This is a reader for JSON API Documents"""
def __init__(self, json_data):
self.json_data = json_data
def data(self):
if isinstance(self.json_data["data"], list):
return [JSONAPIResource(datum, self) for datum in self.json_data["... | 33.196078 | 111 | 0.669226 | 408 | 3,386 | 5.328431 | 0.134804 | 0.125115 | 0.132475 | 0.051518 | 0.368445 | 0.307268 | 0.284269 | 0.25943 | 0.224471 | 0.191352 | 0 | 0 | 0.233018 | 3,386 | 101 | 112 | 33.524752 | 0.83712 | 0.066745 | 0 | 0.376812 | 0 | 0 | 0.028353 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.275362 | false | 0 | 0.014493 | 0.115942 | 0.637681 | 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 | 1 | 1 | 0 | 0 | 3 |
c37937da1f141ec74f049a717bdd312f3175c213 | 1,128 | py | Python | appdaemon/lib/core/component.py | snjoetw/appdaemon_apps | bfc318fac142e324e730d47b008167f738dd411d | [
"MIT"
] | null | null | null | appdaemon/lib/core/component.py | snjoetw/appdaemon_apps | bfc318fac142e324e730d47b008167f738dd411d | [
"MIT"
] | null | null | null | appdaemon/lib/core/component.py | snjoetw/appdaemon_apps | bfc318fac142e324e730d47b008167f738dd411d | [
"MIT"
] | null | null | null | from base_automation import BaseAutomation
from lib.core.app_accessible import AppAccessible
from lib.core.config import Config
from lib.time_wrapper import NowWrapper
class Component(AppAccessible):
_app: BaseAutomation
_config: Config
def __init__(self, app, config):
super().__init__(app)
... | 27.512195 | 106 | 0.68883 | 141 | 1,128 | 5.092199 | 0.283688 | 0.083565 | 0.100279 | 0.083565 | 0.270195 | 0.142061 | 0.075209 | 0 | 0 | 0 | 0 | 0 | 0.215426 | 1,128 | 40 | 107 | 28.2 | 0.811299 | 0 | 0 | 0.16129 | 0 | 0 | 0.103723 | 0.088652 | 0 | 0 | 0 | 0 | 0 | 1 | 0.225806 | false | 0 | 0.129032 | 0.129032 | 0.645161 | 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 | 1 | 1 | 0 | 0 | 3 |
c37bc5072bc87645d2d2aa1d7b71b295de97578f | 796 | py | Python | lib/alerts.py | OllieJC/notifications-govuk-alerts | 6126d5e246055bc04ad2b700e683eb0093c758d7 | [
"MIT"
] | null | null | null | lib/alerts.py | OllieJC/notifications-govuk-alerts | 6126d5e246055bc04ad2b700e683eb0093c758d7 | [
"MIT"
] | null | null | null | lib/alerts.py | OllieJC/notifications-govuk-alerts | 6126d5e246055bc04ad2b700e683eb0093c758d7 | [
"MIT"
] | null | null | null | import yaml
from notifications_utils.serialised_model import SerialisedModelCollection
from lib.alert import Alert
from lib.alert_date import AlertDate
class Alerts(SerialisedModelCollection):
model = Alert
@property
def current(self):
return [alert for alert in self if alert.is_current]
@p... | 24.121212 | 74 | 0.69598 | 103 | 796 | 5.271845 | 0.378641 | 0.081031 | 0.055249 | 0.077348 | 0.248619 | 0.248619 | 0.248619 | 0.248619 | 0.248619 | 0.248619 | 0 | 0 | 0.231156 | 796 | 32 | 75 | 24.875 | 0.887255 | 0 | 0 | 0.173913 | 0 | 0 | 0.007538 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217391 | false | 0 | 0.173913 | 0.173913 | 0.695652 | 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 | 1 | 1 | 0 | 0 | 3 |
5efd8a5829357aaf43f4248ceaa8e8c69a48aafe | 509 | py | Python | scout/build/__init__.py | gmc-norr/scout | ea8eaaa079c63e4033af6216ec08da4a314f9b5c | [
"BSD-3-Clause"
] | null | null | null | scout/build/__init__.py | gmc-norr/scout | ea8eaaa079c63e4033af6216ec08da4a314f9b5c | [
"BSD-3-Clause"
] | null | null | null | scout/build/__init__.py | gmc-norr/scout | ea8eaaa079c63e4033af6216ec08da4a314f9b5c | [
"BSD-3-Clause"
] | null | null | null | from .variant.clnsig import build_clnsig
from .variant.gene import build_gene
from .variant.compound import build_compound
from .variant.genotype import build_genotype
from .variant import build_variant
from .hpo import build_hpo_term
from .institute import build_institute
from .phenotype import build_phenotype
from .... | 29.941176 | 46 | 0.854617 | 74 | 509 | 5.662162 | 0.243243 | 0.341289 | 0.071599 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108055 | 509 | 16 | 47 | 31.8125 | 0.922907 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
6f264bb6744202c1734128fd0daa3629da7ffd29 | 68 | py | Python | xlensing/.ipynb_checkpoints/__init__-checkpoint.py | andrevitorelli/xlensing | 39b429b881cf266740957433030d14adff6364b0 | [
"MIT"
] | null | null | null | xlensing/.ipynb_checkpoints/__init__-checkpoint.py | andrevitorelli/xlensing | 39b429b881cf266740957433030d14adff6364b0 | [
"MIT"
] | 3 | 2021-07-14T12:37:30.000Z | 2021-12-06T23:31:12.000Z | xlensing/.ipynb_checkpoints/__init__-checkpoint.py | andrevitorelli/xlensing | 39b429b881cf266740957433030d14adff6364b0 | [
"MIT"
] | null | null | null | __version__ ='v0.0'
from . import data, utils, fitting, cosmo, model | 34 | 48 | 0.735294 | 10 | 68 | 4.6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033898 | 0.132353 | 68 | 2 | 48 | 34 | 0.745763 | 0 | 0 | 0 | 0 | 0 | 0.057971 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 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 | 0 | 0 | 0 | 3 |
6f4bb75e06a4dd648216b3a7a7bda36fc54ef0b1 | 273 | py | Python | common/schemas/__init__.py | vcokltfre/Raptor | 540d5584a1d91addc018978e0ecbea6b2537ba83 | [
"MIT"
] | 3 | 2021-09-09T14:41:07.000Z | 2021-12-24T14:26:53.000Z | common/schemas/__init__.py | vcokltfre/Raptor | 540d5584a1d91addc018978e0ecbea6b2537ba83 | [
"MIT"
] | null | null | null | common/schemas/__init__.py | vcokltfre/Raptor | 540d5584a1d91addc018978e0ecbea6b2537ba83 | [
"MIT"
] | null | null | null | from typing import Dict, List, Union
from pydantic import BaseModel
from .logging import LoggingModel
class Plugins(BaseModel):
logging: LoggingModel
class ConfigSchema(BaseModel):
prefix: Union[str, List[str]]
levels: Dict[int, int]
plugins: Plugins
| 17.0625 | 36 | 0.739927 | 33 | 273 | 6.121212 | 0.515152 | 0.168317 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.18315 | 273 | 15 | 37 | 18.2 | 0.90583 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
6f5246e27fa787ff885f0e08d70d102576d99eda | 23 | py | Python | main/perl-xml-parser/update.py | RoastVeg/cports | 803c7f07af341eb32f791b6ec1f237edb2764bd5 | [
"BSD-2-Clause"
] | 46 | 2021-06-10T02:27:32.000Z | 2022-03-27T11:33:24.000Z | main/perl-xml-parser/update.py | RoastVeg/cports | 803c7f07af341eb32f791b6ec1f237edb2764bd5 | [
"BSD-2-Clause"
] | 58 | 2021-07-03T13:58:20.000Z | 2022-03-13T16:45:35.000Z | main/perl-xml-parser/update.py | RoastVeg/cports | 803c7f07af341eb32f791b6ec1f237edb2764bd5 | [
"BSD-2-Clause"
] | 6 | 2021-07-04T10:46:40.000Z | 2022-01-09T00:03:59.000Z | pkgname = "XML-Parser"
| 11.5 | 22 | 0.695652 | 3 | 23 | 5.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130435 | 23 | 1 | 23 | 23 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0.434783 | 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 |
6f773a53da01d22e910d3b83f9cd01f1368bcf39 | 167 | py | Python | user/models.py | Yeongmin1992/python_django_fastcampus | 29f23245c29818b906ac17338b9bf47591b58c96 | [
"MIT"
] | null | null | null | user/models.py | Yeongmin1992/python_django_fastcampus | 29f23245c29818b906ac17338b9bf47591b58c96 | [
"MIT"
] | null | null | null | user/models.py | Yeongmin1992/python_django_fastcampus | 29f23245c29818b906ac17338b9bf47591b58c96 | [
"MIT"
] | null | null | null | from django.db import models
class User(models.Model):
name = models.CharField(max_length=20)
# 0: 사용자, 1: 사장님, 2: 배달기사
user_type = models.IntegerField()
| 23.857143 | 42 | 0.688623 | 25 | 167 | 4.52 | 0.84 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037037 | 0.191617 | 167 | 6 | 43 | 27.833333 | 0.8 | 0.137725 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 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 | 0 | 0 | 1 | 0 | 0 | 3 |
488e2697baa44e17664d910d57632304efbfb647 | 1,763 | py | Python | 2020/Day 12 - Rain Risk/2.py | Ashwin-op/Advent_of_Code | 39937379c7cf1c728326af526a71fdd84706a2b8 | [
"MIT"
] | 2 | 2020-12-05T06:36:27.000Z | 2021-07-07T11:10:52.000Z | 2020/Day 12 - Rain Risk/2.py | Ashwin-op/Advent_of_Code | 39937379c7cf1c728326af526a71fdd84706a2b8 | [
"MIT"
] | null | null | null | 2020/Day 12 - Rain Risk/2.py | Ashwin-op/Advent_of_Code | 39937379c7cf1c728326af526a71fdd84706a2b8 | [
"MIT"
] | null | null | null | with open("input.txt") as fp:
instructions = [(line.strip('\n')[0], int(line.strip('\n')[1:]))
for line in fp]
moves = {'E': 1, 'W': -1, 'N': 1, 'S': -1, 'R': 1, 'L': -1}
sides = 'ESWN'
current_direction = 'E'
current_coords = (0, 0)
current_waypoint_offset = (10, 1)
current_waypoint_coords = (... | 41 | 108 | 0.633579 | 217 | 1,763 | 4.870968 | 0.207373 | 0.326395 | 0.417219 | 0.166509 | 0.572375 | 0.496689 | 0.476821 | 0.382214 | 0.17597 | 0.17597 | 0 | 0.038207 | 0.22802 | 1,763 | 42 | 109 | 41.97619 | 0.738428 | 0 | 0 | 0.171429 | 0 | 0 | 0.017584 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.028571 | 0 | 0 | 0 | null | 1 | 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 | 3 |
489955d955624bc413d598ad5d2f1bbe956fdcff | 270 | py | Python | testsuite/texture-overscan/run.py | nburtnyk/oiio | 2c766a26f77cfe43196f9dade9021befdace90fb | [
"BSD-3-Clause"
] | 2 | 2015-02-25T21:54:04.000Z | 2015-07-30T17:59:13.000Z | testsuite/texture-overscan/run.py | sobotka/oiio | 7f1f1d64933a51e1610da22a26f80528e3dd6dd8 | [
"BSD-3-Clause"
] | null | null | null | testsuite/texture-overscan/run.py | sobotka/oiio | 7f1f1d64933a51e1610da22a26f80528e3dd6dd8 | [
"BSD-3-Clause"
] | 2 | 2016-08-22T11:47:04.000Z | 2021-01-04T11:35:39.000Z | #!/usr/bin/python
command = (oiio_app("maketx") + " --filter lanczos3 "
+ parent + "/oiio-images/grid-overscan.exr"
+ " -o grid-overscan.exr ;\n")
command = command + testtex_command ("grid-overscan.exr", "--wrap black")
outputs = [ "out.exr" ]
| 30 | 73 | 0.596296 | 32 | 270 | 4.96875 | 0.65625 | 0.226415 | 0.283019 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004673 | 0.207407 | 270 | 8 | 74 | 33.75 | 0.738318 | 0.059259 | 0 | 0 | 0 | 0 | 0.460317 | 0.119048 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 3 |
48ca6da1d6e4bc561e499890e11a8516661104ef | 5,090 | py | Python | antipetros_discordbot/utility/general_decorator.py | official-antistasi-community/Antipetros_Discord_Bot | 1b5c8b61c09e61cdff671e259f0478d343a50c8d | [
"MIT"
] | null | null | null | antipetros_discordbot/utility/general_decorator.py | official-antistasi-community/Antipetros_Discord_Bot | 1b5c8b61c09e61cdff671e259f0478d343a50c8d | [
"MIT"
] | null | null | null | antipetros_discordbot/utility/general_decorator.py | official-antistasi-community/Antipetros_Discord_Bot | 1b5c8b61c09e61cdff671e259f0478d343a50c8d | [
"MIT"
] | 1 | 2021-02-12T01:10:51.000Z | 2021-02-12T01:10:51.000Z | """
[summary]
[extended_summary]
"""
# region [Imports]
# * Standard Library Imports ---------------------------------------------------------------------------->
import os
import time
from time import process_time_ns, time
from functools import wraps
# * Gid Imports ------------------------------------------------... | 27.967033 | 144 | 0.592141 | 609 | 5,090 | 4.541872 | 0.167488 | 0.057845 | 0.042299 | 0.03073 | 0.718004 | 0.705351 | 0.685828 | 0.668113 | 0.656544 | 0.656544 | 0 | 0.004197 | 0.251081 | 5,090 | 181 | 145 | 28.121547 | 0.721406 | 0.091749 | 0 | 0.704348 | 0 | 0.052174 | 0.173837 | 0.031725 | 0 | 0 | 0 | 0.005525 | 0 | 1 | 0.121739 | false | 0.008696 | 0.06087 | 0 | 0.347826 | 0.052174 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
48e13d4a09824b30b172d4ef3c6ae4b57f69286b | 1,307 | py | Python | src/scenic/simulators/carla/utils/utils.py | BehaviorPredictionTestingPlatform/scenic-1 | a2e0d08d8dd0be06aaf0071058ba337209361328 | [
"BSD-3-Clause"
] | 1 | 2020-12-02T08:40:23.000Z | 2020-12-02T08:40:23.000Z | src/scenic/simulators/carla/utils/utils.py | BehaviorPredictionTestingPlatform/scenic-1 | a2e0d08d8dd0be06aaf0071058ba337209361328 | [
"BSD-3-Clause"
] | null | null | null | src/scenic/simulators/carla/utils/utils.py | BehaviorPredictionTestingPlatform/scenic-1 | a2e0d08d8dd0be06aaf0071058ba337209361328 | [
"BSD-3-Clause"
] | 4 | 2021-08-09T18:21:26.000Z | 2022-03-22T22:20:02.000Z | import carla
import math
from scenic.core.vectors import Vector
from scenic.core.geometry import normalizeAngle
def snapToGround(world, location):
"""Mutates @location to have the same z-coordinate as the nearest waypoint in @world."""
waypoint = world.get_map().get_waypoint(location)
location.z = waypoint.transf... | 25.627451 | 89 | 0.75746 | 185 | 1,307 | 5.340541 | 0.383784 | 0.027328 | 0.02834 | 0.018219 | 0.04251 | 0.04251 | 0 | 0 | 0 | 0 | 0 | 0.013216 | 0.131599 | 1,307 | 50 | 90 | 26.14 | 0.857269 | 0.115532 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03125 | 1 | 0.28125 | false | 0 | 0.125 | 0.125 | 0.71875 | 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 | 1 | 1 | 0 | 0 | 3 |
48e25815206220ee29521987037883ba3b2afb46 | 94 | py | Python | trick_sims/Ball/SIM_ball_L2/RUN_test/input.py | gilbertguoze/trick | f0537efb0fa3cb5c0c84e36b60f055c1d1c60d21 | [
"NASA-1.3"
] | null | null | null | trick_sims/Ball/SIM_ball_L2/RUN_test/input.py | gilbertguoze/trick | f0537efb0fa3cb5c0c84e36b60f055c1d1c60d21 | [
"NASA-1.3"
] | null | null | null | trick_sims/Ball/SIM_ball_L2/RUN_test/input.py | gilbertguoze/trick | f0537efb0fa3cb5c0c84e36b60f055c1d1c60d21 | [
"NASA-1.3"
] | 3 | 2021-06-22T11:02:39.000Z | 2021-10-21T00:58:00.000Z |
execfile("Modified_data/data_record.dr")
trick.sim_services.exec_set_terminate_time(300.0)
| 15.666667 | 49 | 0.829787 | 15 | 94 | 4.8 | 0.933333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044944 | 0.053191 | 94 | 5 | 50 | 18.8 | 0.764045 | 0 | 0 | 0 | 0 | 0 | 0.301075 | 0.301075 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 3 |
48e2773dd27effecd42170660d043c26f32ae01e | 6,217 | py | Python | assets/notebooks/templates/jupyter/pennylane/jupyter-notebook-pennylane-template-2.py | StevenJokess/learning-quantum-computing-course | f2fcb3892345c09db00ce11cac18fb96d7c244db | [
"MIT"
] | 4 | 2020-08-20T12:49:54.000Z | 2021-08-17T02:41:13.000Z | assets/notebooks/templates/jupyter/pennylane/jupyter-notebook-pennylane-template-2.py | 5l1v3r1/learning-quantum-computing-course | f2fcb3892345c09db00ce11cac18fb96d7c244db | [
"MIT"
] | null | null | null | assets/notebooks/templates/jupyter/pennylane/jupyter-notebook-pennylane-template-2.py | 5l1v3r1/learning-quantum-computing-course | f2fcb3892345c09db00ce11cac18fb96d7c244db | [
"MIT"
] | 4 | 2021-01-26T10:52:19.000Z | 2022-03-24T15:25:03.000Z | #!/usr/bin/env python
# coding: utf-8
# # **_Learning Quantum Computing_**
# ***
# <p style="text-align:justify">
# <img src="../../../../imgs/logos/course/banners/notebooks/jpgs/notebook-banner-1.jpg" width="100%" align="left" alt="Learning Quantum Computing Course"/>
# </p>
# ***
# ## **_Course's Lecture Bas... | 26.34322 | 290 | 0.595786 | 788 | 6,217 | 4.609137 | 0.307107 | 0.044053 | 0.036344 | 0.030837 | 0.437775 | 0.39152 | 0.348568 | 0.293778 | 0.273954 | 0.227423 | 0 | 0.018529 | 0.157954 | 6,217 | 235 | 291 | 26.455319 | 0.670105 | 0.912176 | 0 | 0 | 0 | 0 | 0.049689 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
48ecd7214970f4b079e2d126c5167dbb77d58aa8 | 309 | py | Python | app/util/__init__.py | kyoungd/material-stock-finder | 021c5cf09f642b04bc9e136fb95915bda19508cd | [
"MIT"
] | null | null | null | app/util/__init__.py | kyoungd/material-stock-finder | 021c5cf09f642b04bc9e136fb95915bda19508cd | [
"MIT"
] | null | null | null | app/util/__init__.py | kyoungd/material-stock-finder | 021c5cf09f642b04bc9e136fb95915bda19508cd | [
"MIT"
] | null | null | null | from .alpacaUtil import AlpacaAccess, RedisTimeFrame
from .favorites import JsonFavorite
from .allstockanalysis import StockAnalysis
from .allstocks import AllStocks
from .localMinMax import LocalMinMax
from .interval import SetInterval
from .toServer import PushToServer
from .tightMinMax import TightMinMax
| 34.333333 | 52 | 0.864078 | 33 | 309 | 8.090909 | 0.484848 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106796 | 309 | 8 | 53 | 38.625 | 0.967391 | 0 | 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 | 0 | 0 | 0 | 3 |
48fbe02718f7db7f662b988ba336a913f8c03014 | 1,054 | py | Python | test_heap.py | codebox/algorithms | ea4150c94bfd0418f849c9754607f1e156015f1e | [
"MIT"
] | 3 | 2016-10-12T15:39:15.000Z | 2019-10-20T17:33:33.000Z | test_heap.py | codebox/algorithms | ea4150c94bfd0418f849c9754607f1e156015f1e | [
"MIT"
] | null | null | null | test_heap.py | codebox/algorithms | ea4150c94bfd0418f849c9754607f1e156015f1e | [
"MIT"
] | 2 | 2017-06-23T22:04:44.000Z | 2020-03-16T07:55:17.000Z | import unittest
from heap import Heap
class TestHeap(unittest.TestCase):
def test_simple(self):
h = Heap()
h.insert(2)
h.insert(1)
h.insert(3)
self.assertEqual(h.extract_min(), 1)
self.assertEqual(h.extract_min(), 2)
self.assertEqual(h.extract_min(), 3)
... | 27.736842 | 49 | 0.588235 | 141 | 1,054 | 4.212766 | 0.219858 | 0.328283 | 0.350168 | 0.503367 | 0.718855 | 0.631313 | 0.481481 | 0.481481 | 0.360269 | 0.360269 | 0 | 0.031169 | 0.26945 | 1,054 | 37 | 50 | 28.486486 | 0.74026 | 0 | 0 | 0.484848 | 0 | 0 | 0.00759 | 0 | 0 | 0 | 0 | 0 | 0.393939 | 1 | 0.060606 | false | 0 | 0.060606 | 0 | 0.151515 | 0 | 0 | 0 | 0 | null | 1 | 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 | 3 |
5b06eaf37c7ad32f1ab0421c931feed803f6e93e | 8,766 | py | Python | src/python/pants/jvm/goals/coursier_integration_test.py | Eric-Arellano/pants | aaa9756bc4f2cc97bb97851a4295a0de85f374b1 | [
"Apache-2.0"
] | null | null | null | src/python/pants/jvm/goals/coursier_integration_test.py | Eric-Arellano/pants | aaa9756bc4f2cc97bb97851a4295a0de85f374b1 | [
"Apache-2.0"
] | 12 | 2022-01-06T23:20:22.000Z | 2022-03-17T05:06:37.000Z | src/python/pants/jvm/goals/coursier_integration_test.py | Eric-Arellano/pants | aaa9756bc4f2cc97bb97851a4295a0de85f374b1 | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import annotations
from pathlib import Path
from textwrap import dedent
import pytest
from pants.core.target_types import ResourcesGeneratorTarget
from pants.core.target... | 33.976744 | 99 | 0.544832 | 713 | 8,766 | 6.431978 | 0.173913 | 0.037069 | 0.050153 | 0.040122 | 0.763192 | 0.74662 | 0.711949 | 0.695377 | 0.687091 | 0.66594 | 0 | 0.039613 | 0.363564 | 8,766 | 257 | 100 | 34.108949 | 0.782398 | 0.014374 | 0 | 0.528302 | 0 | 0 | 0.119285 | 0.096339 | 0 | 0 | 0 | 0 | 0.069182 | 1 | 0.031447 | false | 0 | 0.113208 | 0.006289 | 0.150943 | 0.025157 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5b133f60609de22cc34fbae4a2317e7f9fcba72b | 1,904 | py | Python | tests/test.py | Sherlocked-Blaire/Lithuanian-house-price-prediction | f966d5a64c492d45addbdb1c338212c5af0f530c | [
"MIT"
] | null | null | null | tests/test.py | Sherlocked-Blaire/Lithuanian-house-price-prediction | f966d5a64c492d45addbdb1c338212c5af0f530c | [
"MIT"
] | null | null | null | tests/test.py | Sherlocked-Blaire/Lithuanian-house-price-prediction | f966d5a64c492d45addbdb1c338212c5af0f530c | [
"MIT"
] | null | null | null | import json
import pytest
from app.app import app as flask_app
from app.app import process_input
@pytest.fixture
def app():
yield flask_app
@pytest.fixture
def client(app):
return app.test_client()
def test_home(app, client):
response = client.get('/')
assert response.status_code == 200
expected ... | 43.272727 | 244 | 0.655462 | 340 | 1,904 | 3.605882 | 0.238235 | 0.051387 | 0.04894 | 0.058728 | 0.698206 | 0.698206 | 0.669657 | 0.607667 | 0.607667 | 0.607667 | 0 | 0.281426 | 0.160189 | 1,904 | 44 | 245 | 43.272727 | 0.485303 | 0 | 0 | 0.421053 | 0 | 0 | 0.061942 | 0 | 0 | 0 | 0 | 0 | 0.184211 | 1 | 0.157895 | false | 0 | 0.105263 | 0.026316 | 0.289474 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d28b2147c2371b21d9e59cbe667bb19e380c0f76 | 9,052 | py | Python | startup/GafferOSL/shaderNameCompatibility.py | ddesmond/gaffer | 4f25df88103b7893df75865ea919fb035f92bac0 | [
"BSD-3-Clause"
] | 561 | 2016-10-18T04:30:48.000Z | 2022-03-30T06:52:04.000Z | startup/GafferOSL/shaderNameCompatibility.py | ddesmond/gaffer | 4f25df88103b7893df75865ea919fb035f92bac0 | [
"BSD-3-Clause"
] | 1,828 | 2016-10-14T19:01:46.000Z | 2022-03-30T16:07:19.000Z | startup/GafferOSL/shaderNameCompatibility.py | ddesmond/gaffer | 4f25df88103b7893df75865ea919fb035f92bac0 | [
"BSD-3-Clause"
] | 120 | 2016-10-18T15:19:13.000Z | 2021-12-20T16:28:23.000Z | ##########################################################################
#
# Copyright (c) 2018, Image Engine Design Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistrib... | 57.656051 | 86 | 0.785683 | 1,143 | 9,052 | 5.83727 | 0.195101 | 0.280276 | 0.057554 | 0.03777 | 0.027578 | 0.020384 | 0.020384 | 0.020384 | 0.020384 | 0.020384 | 0 | 0.01846 | 0.096332 | 9,052 | 156 | 87 | 58.025641 | 0.797188 | 0.227132 | 0 | 0 | 0 | 0 | 0.796413 | 0.757754 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019048 | false | 0 | 0.009524 | 0 | 0.047619 | 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 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d29c5f7b18013f08edb940585071ac7161f8ccc7 | 52 | py | Python | pyproj/__init__.py | smthnspcl/pyproj | 6d6e25999f73da0cd91b6f09502f9781805bd166 | [
"MIT"
] | null | null | null | pyproj/__init__.py | smthnspcl/pyproj | 6d6e25999f73da0cd91b6f09502f9781805bd166 | [
"MIT"
] | null | null | null | pyproj/__init__.py | smthnspcl/pyproj | 6d6e25999f73da0cd91b6f09502f9781805bd166 | [
"MIT"
] | null | null | null | from .Project import Project
__all__ = ["Project"]
| 13 | 28 | 0.730769 | 6 | 52 | 5.666667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 52 | 3 | 29 | 17.333333 | 0.772727 | 0 | 0 | 0 | 0 | 0 | 0.134615 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 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 | 0 | 0 | 0 | 3 |
d2a7c6f6b1e0a522d67433aa76a7e4fb04bbe991 | 898 | py | Python | py365/resources/planner.py | dudil/py365 | 5f350470e3930ff1c1ae09e8cea917fee17836fa | [
"MIT"
] | 1 | 2020-04-16T13:28:29.000Z | 2020-04-16T13:28:29.000Z | py365/resources/planner.py | dudil/py365 | 5f350470e3930ff1c1ae09e8cea917fee17836fa | [
"MIT"
] | 4 | 2020-03-24T17:00:21.000Z | 2021-02-11T09:16:22.000Z | py365/resources/planner.py | dudil/py365 | 5f350470e3930ff1c1ae09e8cea917fee17836fa | [
"MIT"
] | null | null | null | # API Reference
# https://docs.microsoft.com/en-us/graph/api/resources/planner-overview?view=graph-rest-1.0
from py365 import auth, data
from ._base_resource import BaseResource
from .bucket_api import BucketAPI
from .plan_api import PlanAPI
class Planner(BaseResource):
"""
You can use the Planner API in Micr... | 37.416667 | 117 | 0.72049 | 117 | 898 | 5.42735 | 0.521368 | 0.028346 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01087 | 0.180401 | 898 | 23 | 118 | 39.043478 | 0.851902 | 0.242762 | 0 | 0 | 0 | 0 | 0.012066 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.307692 | 0 | 0.769231 | 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 | 1 | 0 | 1 | 0 | 0 | 3 |
d2c29603740b1786073d7e9f2452af6692d1f680 | 1,958 | py | Python | analyze/main.py | supertask/KSUHack | 4eda5eee07015faae173db44bfa576abbb4c9b6b | [
"MIT"
] | null | null | null | analyze/main.py | supertask/KSUHack | 4eda5eee07015faae173db44bfa576abbb4c9b6b | [
"MIT"
] | null | null | null | analyze/main.py | supertask/KSUHack | 4eda5eee07015faae173db44bfa576abbb4c9b6b | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
from student_downloader import StudentDownloader
from student_analyzer import StudentAnalyzer
from constants import Constants
import datetime
def main():
"""Run an example for a studentIDGetter class."""
#downloader = StudentDownloader()
#
# Us... | 38.392157 | 115 | 0.765066 | 229 | 1,958 | 6.200873 | 0.414847 | 0.069718 | 0.133803 | 0.183099 | 0.346479 | 0.346479 | 0.346479 | 0.059155 | 0.059155 | 0.059155 | 0 | 0.099051 | 0.138917 | 1,958 | 50 | 116 | 39.16 | 0.743179 | 0.742594 | 0 | 0 | 0 | 0 | 0.017316 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.454545 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
d2cc430f3515c9816b53a10d212a7ad618c9b402 | 6,794 | py | Python | cloud_snitch/models/host.py | rcbops/FleetDeploymentReporting | aaab76706c8268d3ff3e87c275baee9dd4714314 | [
"Apache-2.0"
] | 1 | 2018-07-11T20:20:21.000Z | 2018-07-11T20:20:21.000Z | cloud_snitch/models/host.py | rcbops/FleetDeploymentReporting | aaab76706c8268d3ff3e87c275baee9dd4714314 | [
"Apache-2.0"
] | 46 | 2018-08-08T19:46:15.000Z | 2019-02-22T20:33:49.000Z | cloud_snitch/models/host.py | rcbops/FleetDeploymentReporting | aaab76706c8268d3ff3e87c275baee9dd4714314 | [
"Apache-2.0"
] | 7 | 2018-06-26T15:27:55.000Z | 2018-12-05T19:41:25.000Z | import logging
from .base import versioned_properties
from .base import SharedVersionedEntity
from .base import VersionedEntity
from .base import VersionedProperty
from .apt import AptPackageEntity
from .configfile import ConfigfileEntity
from .kernelmodule import KernelModuleEntity
from .virtualenv import VirtualenvE... | 36.138298 | 70 | 0.671622 | 632 | 6,794 | 6.985759 | 0.212025 | 0.292639 | 0.266365 | 0.310759 | 0.518686 | 0.320498 | 0.242356 | 0.111891 | 0.093771 | 0.065685 | 0 | 0.000748 | 0.212835 | 6,794 | 187 | 71 | 36.331551 | 0.824794 | 0.037975 | 0 | 0.282051 | 0 | 0 | 0.174615 | 0.011385 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.057692 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 1 | 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 | 3 |
d2da86e2040af733c80058a3fb033cdcca136e10 | 2,640 | py | Python | src/dsw_sdk/common/snapshot.py | ds-wizard/dsw-sdk | 8f9e1b33eed7e0f7a9c267699fef66467d718731 | [
"Apache-2.0"
] | 2 | 2021-05-06T20:28:39.000Z | 2022-01-19T12:03:08.000Z | src/dsw_sdk/common/snapshot.py | ds-wizard/dsw-sdk | 8f9e1b33eed7e0f7a9c267699fef66467d718731 | [
"Apache-2.0"
] | 34 | 2021-06-30T20:23:37.000Z | 2022-02-06T08:40:28.000Z | src/dsw_sdk/common/snapshot.py | ds-wizard/dsw-sdk | 8f9e1b33eed7e0f7a9c267699fef66467d718731 | [
"Apache-2.0"
] | null | null | null | """
Module containing all classes and functions
responsible for dealing with snapshots.
"""
from __future__ import annotations
from typing import Any, Dict, ItemsView
from dsw_sdk.common.attributes import AttributesMixin
class Snapshot:
"""
Snapshot of an object's state in a particular point of time.
F... | 26.138614 | 71 | 0.639394 | 330 | 2,640 | 4.936364 | 0.342424 | 0.029466 | 0.036832 | 0.033149 | 0.113567 | 0.074893 | 0.042971 | 0 | 0 | 0 | 0 | 0.000514 | 0.262879 | 2,640 | 100 | 72 | 26.4 | 0.836588 | 0.370076 | 0 | 0.05 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.075 | 0.125 | 0.575 | 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 | 1 | 1 | 0 | 0 | 3 |
d2ddf00d4ca025a8f8b224a7bc6ee1bfb9b0496d | 428 | py | Python | EmeraldAI/Application/ExecutionScripts/TODO/__Cron_Formalizer.py | MaxMorgenstern/EmeraldAI | 4bbb50f94b656904c428fc28cdbb61e7353e61aa | [
"Apache-2.0"
] | null | null | null | EmeraldAI/Application/ExecutionScripts/TODO/__Cron_Formalizer.py | MaxMorgenstern/EmeraldAI | 4bbb50f94b656904c428fc28cdbb61e7353e61aa | [
"Apache-2.0"
] | null | null | null | EmeraldAI/Application/ExecutionScripts/TODO/__Cron_Formalizer.py | MaxMorgenstern/EmeraldAI | 4bbb50f94b656904c428fc28cdbb61e7353e61aa | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
import sys
from os.path import dirname, abspath
sys.path.append(dirname(dirname(abspath(__file__))))
reload(sys)
sys.setdefaultencoding('utf-8')
# TODO - This process runs as a cronjob and checks the sentence database
# for missing formal and informal versions of sentences.
# ... | 35.666667 | 109 | 0.766355 | 66 | 428 | 4.909091 | 0.727273 | 0.024691 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00542 | 0.13785 | 428 | 11 | 110 | 38.909091 | 0.872629 | 0.635514 | 0 | 0 | 0 | 0 | 0.033113 | 0 | 0 | 0 | 0 | 0.090909 | 0 | 1 | 0 | true | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
96039f72231141e3f7ccdecfcf4422909ca60105 | 5,105 | py | Python | clasificar.py | epaolillo/clasificador-archivos | bcc9f43cdecf9f5cb8ace79277b17c06e153fad5 | [
"MIT"
] | null | null | null | clasificar.py | epaolillo/clasificador-archivos | bcc9f43cdecf9f5cb8ace79277b17c06e153fad5 | [
"MIT"
] | null | null | null | clasificar.py | epaolillo/clasificador-archivos | bcc9f43cdecf9f5cb8ace79277b17c06e153fad5 | [
"MIT"
] | null | null | null | from textar import TextClassifier
tc = TextClassifier(
texts=[
"Para hacer una pizza hace falta harina, tomate, queso y jamón",
"Para hacer unas empanadas necesitamos tapas de empanadas, tomate, jamón y queso",
"Para hacer un daiquiri necesitamos ron, una... | 106.354167 | 181 | 0.230558 | 222 | 5,105 | 5.265766 | 0.441441 | 0.061591 | 0.047049 | 0.015398 | 0.111206 | 0.03935 | 0.03935 | 0 | 0 | 0 | 0 | 0.115051 | 0.729285 | 5,105 | 47 | 182 | 108.617021 | 0.730825 | 0.017042 | 0 | 0 | 0 | 0.027027 | 0.147387 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.027027 | null | null | 0.108108 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.