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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0afbd0b55d3be16431920f454df940bc2d5f3f47 | 5,241 | py | Python | chia/util/errors.py | hu12305204/test-chian | b06568a74df1b8536fdeb2fe5a37da63367aaf17 | [
"Apache-2.0"
] | 39 | 2021-08-04T14:49:27.000Z | 2022-03-29T16:30:19.000Z | chia/util/errors.py | jcteng/ext9-blockchain | 46506bc5778e14cbc373de39438b0c6f794a49c5 | [
"Apache-2.0"
] | 30 | 2021-08-19T22:44:31.000Z | 2022-03-29T19:09:26.000Z | chia/util/errors.py | jcteng/ext9-blockchain | 46506bc5778e14cbc373de39438b0c6f794a49c5 | [
"Apache-2.0"
] | 23 | 2021-08-07T07:33:20.000Z | 2022-03-27T11:15:00.000Z | from enum import Enum
from typing import Any, List
class Err(Enum):
# temporary errors. Don't blacklist
DOES_NOT_EXTEND = -1
BAD_HEADER_SIGNATURE = -2
MISSING_FROM_STORAGE = -3
INVALID_PROTOCOL_MESSAGE = -4
SELF_CONNECTION = -5
INVALID_HANDSHAKE = -6
INVALID_ACK = -7
INCOMPATIBLE_P... | 30.294798 | 73 | 0.735165 | 734 | 5,241 | 4.73842 | 0.442779 | 0.015526 | 0.017251 | 0.016389 | 0.050891 | 0.050891 | 0.043128 | 0.043128 | 0.025877 | 0.025877 | 0 | 0.068149 | 0.218851 | 5,241 | 172 | 74 | 30.47093 | 0.781387 | 0.041023 | 0 | 0.04 | 0 | 0 | 0.009167 | 0 | 0 | 0 | 0 | 0 | 0.06 | 1 | 0.02 | false | 0 | 0.013333 | 0 | 0.953333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
e400b1d36f04492473c6f2c36505989f755f060b | 4,910 | py | Python | python/EggNet/EggNet/Torch/extensions.py | marbleton/FPGA_MNIST | 4b4a30e0adca35de9adcad7b3fec08c516260790 | [
"MIT"
] | 7 | 2019-11-13T12:24:36.000Z | 2021-03-31T02:39:35.000Z | python/EggNet/EggNet/Torch/extensions.py | marbleton/FPGA_MNIST | 4b4a30e0adca35de9adcad7b3fec08c516260790 | [
"MIT"
] | 29 | 2019-12-17T22:06:04.000Z | 2022-03-12T00:20:45.000Z | python/EggNet/EggNet/Torch/extensions.py | marbleton/FPGA_MNIST | 4b4a30e0adca35de9adcad7b3fec08c516260790 | [
"MIT"
] | 4 | 2019-10-20T15:12:52.000Z | 2020-10-13T13:36:37.000Z | import numpy as np
import torch
from scipy.signal import convolve2d, correlate2d
from torch.autograd import Function
from torch.nn.modules.module import Module
from torch.nn.parameter import Parameter
import EggNet.NeuralNetwork.Ext.NeuralNetworkExtension as NNExt
class ReLU_FPGA(torch.autograd.Function):
"""
... | 34.335664 | 109 | 0.662118 | 640 | 4,910 | 4.964063 | 0.207813 | 0.040919 | 0.032106 | 0.037771 | 0.545798 | 0.506138 | 0.494806 | 0.494806 | 0.474662 | 0.474662 | 0 | 0.009011 | 0.254175 | 4,910 | 142 | 110 | 34.577465 | 0.858547 | 0.312831 | 0 | 0.328947 | 0 | 0 | 0.004463 | 0 | 0 | 0 | 0 | 0.014085 | 0 | 1 | 0.157895 | false | 0.026316 | 0.092105 | 0.013158 | 0.434211 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e4013f0b5aeba5cc1a0d6ca9c15a2476a0bc331c | 6,277 | py | Python | CNNs/cnn.py | GilianPonte/Deep-Learning | cb9a3c2a628ce4c921c5c8d7078eb26e7df4884a | [
"MIT"
] | null | null | null | CNNs/cnn.py | GilianPonte/Deep-Learning | cb9a3c2a628ce4c921c5c8d7078eb26e7df4884a | [
"MIT"
] | null | null | null | CNNs/cnn.py | GilianPonte/Deep-Learning | cb9a3c2a628ce4c921c5c8d7078eb26e7df4884a | [
"MIT"
] | null | null | null | #Code taken from https://www.tensorflow.org/tutorials/images/classification
from __future__ import absolute_import, division, print_function, unicode_literals
import tensorflow as tf
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Dense, Conv2D, Flatten, Dropout, MaxPooling2D, LeakyR... | 35.463277 | 134 | 0.703839 | 799 | 6,277 | 5.354193 | 0.31164 | 0.015428 | 0.01683 | 0.019869 | 0.286583 | 0.235858 | 0.207574 | 0.207574 | 0.1482 | 0.1482 | 0 | 0.022586 | 0.181775 | 6,277 | 176 | 135 | 35.664773 | 0.810358 | 0.186713 | 0 | 0.248062 | 0 | 0 | 0.081395 | 0.036263 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.085271 | null | null | 0.015504 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e4025a01760a50541f3f15c181a455b7aa6e93e3 | 1,772 | py | Python | dev/Basic/short/scripts/createP.py | gusugusu1018/simmobility-prod | d30a5ba353673f8fd35f4868c26994a0206a40b6 | [
"MIT"
] | 50 | 2018-12-21T08:21:38.000Z | 2022-01-24T09:47:59.000Z | dev/Basic/short/scripts/createP.py | gusugusu1018/simmobility-prod | d30a5ba353673f8fd35f4868c26994a0206a40b6 | [
"MIT"
] | 2 | 2018-12-19T13:42:47.000Z | 2019-05-13T04:11:45.000Z | dev/Basic/short/scripts/createP.py | gusugusu1018/simmobility-prod | d30a5ba353673f8fd35f4868c26994a0206a40b6 | [
"MIT"
] | 27 | 2018-11-28T07:30:34.000Z | 2022-02-05T02:22:26.000Z | #Copyright (c) 2013 Singapore-MIT Alliance for Research and Technology
#Licensed under the terms of the MIT License, as described in the file:
# license.txt (http://opensource.org/licenses/MIT)
import math
import random
from datetime import timedelta, datetime
id = 200
start_time = "05:38:00"
def crea... | 26.447761 | 94 | 0.611738 | 251 | 1,772 | 4.195219 | 0.386454 | 0.045584 | 0.034188 | 0.055081 | 0.066477 | 0.066477 | 0 | 0 | 0 | 0 | 0 | 0.02994 | 0.24605 | 1,772 | 66 | 95 | 26.848485 | 0.758234 | 0.138826 | 0 | 0.041667 | 0 | 0 | 0.088033 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.0625 | null | null | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e40888be26ac97b9d43b6a85efb47dfdbf152115 | 834 | py | Python | ports/www/chromium-legacy/newport/files/patch-tools_gn_build_gen.py | danielfojt/DeltaPorts | 5710b4af4cacca5eb1ac577df304c788c07c4217 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | ports/www/chromium-legacy/newport/files/patch-tools_gn_build_gen.py | danielfojt/DeltaPorts | 5710b4af4cacca5eb1ac577df304c788c07c4217 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | ports/www/chromium-legacy/newport/files/patch-tools_gn_build_gen.py | danielfojt/DeltaPorts | 5710b4af4cacca5eb1ac577df304c788c07c4217 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | --- tools/gn/build/gen.py.orig 2019-09-09 21:59:05 UTC
+++ tools/gn/build/gen.py
@@ -69,6 +69,9 @@ class Platform(object):
def is_aix(self):
return self._platform == 'aix'
+ def is_freebsd(self):
+ return self._platform == 'freebsd'
+
def is_posix(self):
return self._platform in ['linux', 'freebsd... | 33.36 | 79 | 0.619904 | 107 | 834 | 4.728972 | 0.542056 | 0.029644 | 0.083004 | 0.130435 | 0.067194 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048246 | 0.179856 | 834 | 24 | 80 | 34.75 | 0.69152 | 0 | 0 | 0 | 0 | 0 | 0.18705 | 0.058753 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7c0dbd472c3ac51ff3b6bc451a98755be349bff2 | 1,362 | py | Python | mlb_backend/mlbuilder/constants/template_code.py | Joeffison/MachineLearningBuilder | c205e4db23c8897e45847a2e5c0c0e13f976e153 | [
"MIT"
] | 3 | 2018-01-10T11:24:52.000Z | 2021-04-04T21:36:55.000Z | mlb_backend/mlbuilder/constants/template_code.py | Joeffison/MachineLearningBuilder | c205e4db23c8897e45847a2e5c0c0e13f976e153 | [
"MIT"
] | null | null | null | mlb_backend/mlbuilder/constants/template_code.py | Joeffison/MachineLearningBuilder | c205e4db23c8897e45847a2e5c0c0e13f976e153 | [
"MIT"
] | 1 | 2019-03-31T20:39:06.000Z | 2019-03-31T20:39:06.000Z | # -*- coding: utf-8 -*-
template_model_creation = """import pandas as pd
from sklearn.model_selection import train_test_split
{model_import} as ChosenMLAlgorithm
from sklearn.metrics import accuracy_score, confusion_matrix
import pickle
csv_file = "{csv_file}"
model_file = "{model_file}"
predictors = {predictors}
t... | 29.608696 | 116 | 0.739354 | 187 | 1,362 | 5.144385 | 0.42246 | 0.056133 | 0.040541 | 0.037422 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002625 | 0.160793 | 1,362 | 45 | 117 | 30.266667 | 0.83902 | 0.015419 | 0 | 0.121212 | 0 | 0 | 0.947722 | 0.254668 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.212121 | 0 | 0.212121 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7c10c62fbbbd56c34a5c1bab455a7a3aa4252588 | 462 | py | Python | examples/dictknife/library/src/deepmerge01.py | podhmo/dictknife | a172220c1adc8411b69f31646ea2154932d71516 | [
"MIT"
] | 13 | 2018-11-23T15:55:18.000Z | 2021-11-24T02:42:44.000Z | examples/dictknife/library/src/deepmerge01.py | podhmo/dictknife | a172220c1adc8411b69f31646ea2154932d71516 | [
"MIT"
] | 105 | 2017-01-09T02:05:48.000Z | 2021-07-26T03:39:22.000Z | examples/dictknife/library/src/deepmerge01.py | podhmo/dictknife | a172220c1adc8411b69f31646ea2154932d71516 | [
"MIT"
] | 4 | 2017-07-19T12:34:47.000Z | 2019-06-20T10:32:13.000Z | from dictknife import pp
from dictknife import deepmerge
d0 = {
"name": "foo",
"object": {
"x": 1,
"z": 1,
},
"children": [10],
"a": {
"b": {
"x": "y"
}
},
}
d1 = {
"name": "bar",
"object": {
"y": 2,
"z": 3,
},
"childre... | 14 | 36 | 0.313853 | 46 | 462 | 3.152174 | 0.543478 | 0.17931 | 0.262069 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051793 | 0.45671 | 462 | 32 | 37 | 14.4375 | 0.525896 | 0 | 0 | 0.2 | 0 | 0 | 0.121212 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.066667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7c12b89f4109342dbfbb8c1217e53fa7b461b09b | 392 | py | Python | tool/migrations/0014_alter_recruiter_level.py | borislavstoychev/RecrutmentTool | 80cc8db9b653c05dcafe3b79b6da8847111e92f9 | [
"MIT"
] | null | null | null | tool/migrations/0014_alter_recruiter_level.py | borislavstoychev/RecrutmentTool | 80cc8db9b653c05dcafe3b79b6da8847111e92f9 | [
"MIT"
] | null | null | null | tool/migrations/0014_alter_recruiter_level.py | borislavstoychev/RecrutmentTool | 80cc8db9b653c05dcafe3b79b6da8847111e92f9 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.6 on 2021-10-28 11:50
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('tool', '0013_auto_20210917_1621'),
]
operations = [
migrations.AlterField(
model_name='recruiter',
name='level',
... | 20.631579 | 57 | 0.604592 | 41 | 392 | 5.682927 | 0.853659 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113879 | 0.283163 | 392 | 18 | 58 | 21.777778 | 0.715302 | 0.114796 | 0 | 0 | 1 | 0 | 0.118841 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7c132ed5c5aa1a6d822b7af0c8420c9dc88f595b | 415 | py | Python | exe041 - classificando Atletas.py | carlosbandelli/Exercicios_em_Python | 2cd5bd837fdc51932f9605db32366ad0e3871d87 | [
"MIT"
] | null | null | null | exe041 - classificando Atletas.py | carlosbandelli/Exercicios_em_Python | 2cd5bd837fdc51932f9605db32366ad0e3871d87 | [
"MIT"
] | null | null | null | exe041 - classificando Atletas.py | carlosbandelli/Exercicios_em_Python | 2cd5bd837fdc51932f9605db32366ad0e3871d87 | [
"MIT"
] | null | null | null | from datetime import date
atual = date.today().year
nascimento = int(input('Ano de nascimento: '))
idade = atual - nascimento
print(f'O atleta tem {idade} anos.')
if idade <= 9:
print('Classificação: MIRIM')
elif idade <= 14:
print ('Classificação: INFANTIL')
elif idade <= 19:
print('Classificação: JUNIOR')... | 25.9375 | 46 | 0.686747 | 52 | 415 | 5.480769 | 0.634615 | 0.252632 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02029 | 0.168675 | 415 | 15 | 47 | 27.666667 | 0.805797 | 0 | 0 | 0 | 0 | 0 | 0.366265 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.066667 | 0.4 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7c1419a4ac1b9fa455bd3a6f5abb5b35007859a7 | 404 | py | Python | methodmapping/admin.py | MinisterioPublicoRJ/apilabcontas | c01d5c0f1e6705eb8470ba7ba5078c0c172a9570 | [
"MIT"
] | 2 | 2019-06-10T18:34:15.000Z | 2020-04-29T14:23:34.000Z | methodmapping/admin.py | MinisterioPublicoRJ/datalakecadg | c01d5c0f1e6705eb8470ba7ba5078c0c172a9570 | [
"MIT"
] | 5 | 2020-01-09T15:59:16.000Z | 2021-06-10T21:06:13.000Z | methodmapping/admin.py | MinisterioPublicoRJ/datalakecadg | c01d5c0f1e6705eb8470ba7ba5078c0c172a9570 | [
"MIT"
] | null | null | null | from django.contrib import admin
from methodmapping.models import MethodMapping
class MethodMappingAdmin(admin.ModelAdmin):
def get_form(self, request, obj=None, **kwargs):
form = super(MethodMappingAdmin, self).get_form(request, obj, **kwargs)
form.base_fields['uri'].initial = '/user/mpmapas/sta... | 28.857143 | 79 | 0.740099 | 46 | 404 | 6.434783 | 0.630435 | 0.047297 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15099 | 404 | 13 | 80 | 31.076923 | 0.862974 | 0 | 0 | 0 | 0 | 0 | 0.061881 | 0.054455 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
7c206fdc0bde76bd4bc88511dade75ccadcd5adc | 1,593 | py | Python | test/torchaudio_unittest/utils/sox_utils_test.py | adefossez/audio | 19fc580da97baf179395bb257647c5c25b993e42 | [
"BSD-2-Clause"
] | 1 | 2021-04-20T09:04:24.000Z | 2021-04-20T09:04:24.000Z | test/torchaudio_unittest/utils/sox_utils_test.py | adefossez/audio | 19fc580da97baf179395bb257647c5c25b993e42 | [
"BSD-2-Clause"
] | null | null | null | test/torchaudio_unittest/utils/sox_utils_test.py | adefossez/audio | 19fc580da97baf179395bb257647c5c25b993e42 | [
"BSD-2-Clause"
] | 1 | 2019-09-11T08:27:18.000Z | 2019-09-11T08:27:18.000Z | from torchaudio.utils import sox_utils
from torchaudio_unittest.common_utils import (
PytorchTestCase,
skipIfNoExtension,
)
@skipIfNoExtension
class TestSoxUtils(PytorchTestCase):
"""Smoke tests for sox_util module"""
def test_set_seed(self):
"""`set_seed` does not crush"""
sox_utils.... | 31.86 | 81 | 0.666667 | 209 | 1,593 | 4.808612 | 0.325359 | 0.079602 | 0.065672 | 0.044776 | 0.271642 | 0.231841 | 0.115423 | 0.115423 | 0.115423 | 0.115423 | 0 | 0.011609 | 0.242938 | 1,593 | 49 | 82 | 32.510204 | 0.821725 | 0.269303 | 0 | 0 | 0 | 0 | 0.022302 | 0 | 0 | 0 | 0 | 0 | 0.172414 | 1 | 0.241379 | false | 0.034483 | 0.068966 | 0 | 0.344828 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7c24597169e71886f0f9aedec158034435b5de2d | 4,887 | py | Python | utility_fun.py | Avijit20/Deep-Learning-Flower-Image-Classification-Using-PyTorch | b8814bf16c028d932709cf983598f903cbb3558f | [
"MIT"
] | null | null | null | utility_fun.py | Avijit20/Deep-Learning-Flower-Image-Classification-Using-PyTorch | b8814bf16c028d932709cf983598f903cbb3558f | [
"MIT"
] | null | null | null | utility_fun.py | Avijit20/Deep-Learning-Flower-Image-Classification-Using-PyTorch | b8814bf16c028d932709cf983598f903cbb3558f | [
"MIT"
] | null | null | null | import numpy as np
import pandas as pd
import torch
import torchvision
import torch.nn.functional as F
from torchvision import datasets,transforms,models
import matplotlib.pyplot as plt
#from train import get_pretrained_model
from torch import nn,optim
from PIL import Image
#%matplotlib inline
def load_dataset(data_di... | 37.305344 | 87 | 0.607939 | 599 | 4,887 | 4.814691 | 0.288815 | 0.010402 | 0.008669 | 0.01387 | 0.164008 | 0.148752 | 0.14043 | 0.14043 | 0.14043 | 0.14043 | 0 | 0.047025 | 0.295069 | 4,887 | 130 | 88 | 37.592308 | 0.790131 | 0.163904 | 0 | 0.180723 | 0 | 0 | 0.014109 | 0 | 0 | 0 | 0 | 0.015385 | 0 | 1 | 0.060241 | false | 0 | 0.108434 | 0 | 0.228916 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7c2565940fd601e5ad2bff53dee4cf5882e93a55 | 728 | py | Python | flask/test/model_tests/conftest.py | boxwise/boxtribute | b87d3bf52e29cb485d98e669b4b43d1934abf310 | [
"Apache-2.0"
] | 3 | 2020-10-17T06:37:10.000Z | 2021-06-08T16:58:38.000Z | flask/test/model_tests/conftest.py | boxwise/boxtribute | b87d3bf52e29cb485d98e669b4b43d1934abf310 | [
"Apache-2.0"
] | 166 | 2020-10-25T20:45:32.000Z | 2022-03-28T08:18:26.000Z | flask/test/model_tests/conftest.py | boxwise/boxtribute | b87d3bf52e29cb485d98e669b4b43d1934abf310 | [
"Apache-2.0"
] | 4 | 2021-01-01T18:03:57.000Z | 2022-03-10T08:43:23.000Z | import pytest
from boxwise_flask.db import db
from boxwise_flask.models import MODELS
# Imports fixtures into tests
from data import * # noqa: F401,F403
from data.setup_tables import setup_tables
from peewee import SqliteDatabase
@pytest.fixture(autouse=True)
def setup_db_before_test(mocker):
"""Set up database... | 29.12 | 86 | 0.733516 | 101 | 728 | 5.118812 | 0.554455 | 0.06383 | 0.061896 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010221 | 0.193681 | 728 | 24 | 87 | 30.333333 | 0.870528 | 0.315934 | 0 | 0 | 0 | 0 | 0.033473 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.4 | 0 | 0.466667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
7c25eff8c5d6420ad3268044ca6de044f5742b8a | 8,796 | py | Python | tests/utilities/test_tasks.py | elenapalesis/prefect | 424be6b5ed8d3be85064de4b95b5c3d7cb665510 | [
"Apache-2.0"
] | null | null | null | tests/utilities/test_tasks.py | elenapalesis/prefect | 424be6b5ed8d3be85064de4b95b5c3d7cb665510 | [
"Apache-2.0"
] | null | null | null | tests/utilities/test_tasks.py | elenapalesis/prefect | 424be6b5ed8d3be85064de4b95b5c3d7cb665510 | [
"Apache-2.0"
] | null | null | null | import inspect
import pytest
from prefect.core import Flow, Task
from prefect.engine.flow_runner import FlowRunner
from prefect.engine.signals import PAUSE
from prefect.engine.state import Paused, Resume
from prefect.utilities import tasks
class TestTaskDecorator:
def test_task_decorator_can_be_used_without_cal... | 27.064615 | 87 | 0.564688 | 1,120 | 8,796 | 4.215179 | 0.1875 | 0.041517 | 0.02796 | 0.038128 | 0.37831 | 0.316247 | 0.294006 | 0.275154 | 0.231095 | 0.182377 | 0 | 0.018731 | 0.326285 | 8,796 | 324 | 88 | 27.148148 | 0.777928 | 0.047181 | 0 | 0.417021 | 0 | 0 | 0.034437 | 0 | 0 | 0 | 0 | 0 | 0.161702 | 1 | 0.221277 | false | 0.017021 | 0.029787 | 0.042553 | 0.374468 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7c2b9f08999ee4398e94200db2ec38ed10ee71f0 | 238 | py | Python | PBO_18136/latihan_5.1.for-list.py | Darmawan17/PBO | ff346707e912dfb6ea00e49beb200cb8d80a3db4 | [
"MIT"
] | null | null | null | PBO_18136/latihan_5.1.for-list.py | Darmawan17/PBO | ff346707e912dfb6ea00e49beb200cb8d80a3db4 | [
"MIT"
] | null | null | null | PBO_18136/latihan_5.1.for-list.py | Darmawan17/PBO | ff346707e912dfb6ea00e49beb200cb8d80a3db4 | [
"MIT"
] | null | null | null | my_variabel = "hai darmawan"
for variabel_baru in my_variabel:
print("for string: ",variabel_baru)
my_list =["aku", "kamu", "dia"]
my_tuple=(1,5,6,7)
for variabel_baru3 in my_tuple:
print("for list or tuple", variabel_baru3)
| 26.444444 | 46 | 0.701681 | 39 | 238 | 4.051282 | 0.512821 | 0.126582 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03 | 0.159664 | 238 | 8 | 47 | 29.75 | 0.76 | 0 | 0 | 0 | 0 | 0 | 0.214286 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.285714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7c2c1263eabf8a4e6311f7c185012093d0b8e043 | 966 | py | Python | cookbook/cookbook/ingredients/schema.py | wederribas/graphene-django-tutorial | d1734882b6c4fe026b9f3745c1f4bf1879efa229 | [
"MIT"
] | null | null | null | cookbook/cookbook/ingredients/schema.py | wederribas/graphene-django-tutorial | d1734882b6c4fe026b9f3745c1f4bf1879efa229 | [
"MIT"
] | 3 | 2020-02-11T23:06:24.000Z | 2021-06-10T20:45:20.000Z | cookbook/cookbook/ingredients/schema.py | wederribas/graphene-django-tutorial | d1734882b6c4fe026b9f3745c1f4bf1879efa229 | [
"MIT"
] | null | null | null | from graphene import relay, ObjectType
from graphene_django.types import DjangoObjectType
from graphene_django.filter import DjangoFilterConnectionField
from cookbook.ingredients.models import Category, Ingredient
class CategoryNode(DjangoObjectType):
class Meta:
model = Category
filter_fields = ... | 29.272727 | 65 | 0.68323 | 83 | 966 | 7.855422 | 0.39759 | 0.055215 | 0.055215 | 0.092025 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.216356 | 966 | 32 | 66 | 30.1875 | 0.861295 | 0 | 0 | 0.166667 | 0 | 0 | 0.098344 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.541667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
7c2c23ae9777b1ad5f952495c805ec47ad33e1dc | 646 | py | Python | setup.py | cartertemm/tformat | 5a81361ab18d9badf24eb3d15c60f59860403afb | [
"Unlicense"
] | null | null | null | setup.py | cartertemm/tformat | 5a81361ab18d9badf24eb3d15c60f59860403afb | [
"Unlicense"
] | 1 | 2021-09-30T02:43:48.000Z | 2021-09-30T02:43:48.000Z | setup.py | cartertemm/tformat | 5a81361ab18d9badf24eb3d15c60f59860403afb | [
"Unlicense"
] | null | null | null | from setuptools import setup, find_packages
setup(
name="tformat",
version="0.1",
packages=find_packages(),
author="Carter Temm",
author_email="cartertemm@gmail.com",
description="Efficient conversion of timestamps to human-readable equivalents",
long_description=open("readme.md", "r").read(),
long_descriptio... | 29.363636 | 80 | 0.718266 | 75 | 646 | 6.093333 | 0.786667 | 0.052516 | 0.109409 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008865 | 0.126935 | 646 | 22 | 81 | 29.363636 | 0.801418 | 0 | 0 | 0 | 0 | 0 | 0.553323 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.05 | 0 | 0.05 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7c35d2d5e64d2711e33b5f3e9642463d04ef311b | 7,967 | py | Python | app/views/signup.py | uwhvz/uwhvz | 72805d0e55740c3d90251dd4b4e40bf5c9e296d1 | [
"MIT"
] | 2 | 2019-12-15T06:30:37.000Z | 2020-01-26T23:12:27.000Z | app/views/signup.py | uwhvz/uwhvz | 72805d0e55740c3d90251dd4b4e40bf5c9e296d1 | [
"MIT"
] | 37 | 2020-01-22T02:36:32.000Z | 2020-10-06T15:05:37.000Z | app/views/signup.py | uwhvz/uwhvz | 72805d0e55740c3d90251dd4b4e40bf5c9e296d1 | [
"MIT"
] | 2 | 2020-06-24T03:07:36.000Z | 2020-06-24T03:10:46.000Z | from django.conf import settings
from django.contrib import messages
from django.contrib.auth import authenticate, login
from django.contrib.auth.decorators import login_required
from django.http import Http404
from django.shortcuts import redirect, render, get_object_or_404
from django.utils import timezone
from djang... | 42.153439 | 113 | 0.698506 | 955 | 7,967 | 5.603141 | 0.15288 | 0.065035 | 0.047094 | 0.020183 | 0.685106 | 0.660811 | 0.611101 | 0.579518 | 0.520277 | 0.455429 | 0 | 0.003312 | 0.204092 | 7,967 | 188 | 114 | 42.37766 | 0.840561 | 0 | 0 | 0.517483 | 0 | 0 | 0.1333 | 0.018953 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0.06993 | 0.090909 | 0.027972 | 0.41958 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
7c37c27c16b5cd44e5c60394aae9bcc1a787928f | 428 | py | Python | app/main/views.py | lifeng6mail/flask-tutorial | 260f2e78ec244ddf2622555633f830cf7155c5b1 | [
"MIT"
] | 1 | 2021-06-06T00:10:23.000Z | 2021-06-06T00:10:23.000Z | docs/app/main/views.py | lifeng6mail/flask-tutorial | 260f2e78ec244ddf2622555633f830cf7155c5b1 | [
"MIT"
] | null | null | null | docs/app/main/views.py | lifeng6mail/flask-tutorial | 260f2e78ec244ddf2622555633f830cf7155c5b1 | [
"MIT"
] | null | null | null | from flask import render_template
from . import main
from ..models import Article
@main.route('/', methods=['GET', 'POST'])
def index():
articles = Article.query.all()
return render_template('index.html', articles=articles)
@main.route('/article/<title>')
def article(title):
article = Article.query.filt... | 26.75 | 80 | 0.721963 | 55 | 428 | 5.545455 | 0.436364 | 0.137705 | 0.131148 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.123832 | 428 | 15 | 81 | 28.533333 | 0.813333 | 0 | 0 | 0 | 0 | 0 | 0.107477 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.272727 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
7c3aebf6e43a4cfb6acd3cf5eb35dbae0529c327 | 7,994 | py | Python | xnat_dashboards/tests/test_d_formatter.py | XNAT-Dashboards/XNAT-Dashboards | a46b47d72cca5e15b02829ef8eb17ac92806af16 | [
"MIT"
] | null | null | null | xnat_dashboards/tests/test_d_formatter.py | XNAT-Dashboards/XNAT-Dashboards | a46b47d72cca5e15b02829ef8eb17ac92806af16 | [
"MIT"
] | 4 | 2021-11-10T19:09:37.000Z | 2022-03-04T16:07:19.000Z | xnat_dashboards/tests/test_d_formatter.py | XNAT-Dashboards/XNAT-Dashboards | a46b47d72cca5e15b02829ef8eb17ac92806af16 | [
"MIT"
] | 3 | 2020-10-20T06:34:20.000Z | 2021-11-12T15:51:20.000Z | from xnat_dashboards.data_cleaning import data_formatter
from xnat_dashboards.bbrc import data_formatter as data_formatter_b
formatter_object_connected = data_formatter.Formatter()
formatter_object_connected_b = data_formatter_b.Formatter()
def test_get_projects_details():
projects = 1
project_details = for... | 35.6875 | 79 | 0.569927 | 805 | 7,994 | 5.449689 | 0.186335 | 0.065649 | 0.087531 | 0.080009 | 0.599271 | 0.505813 | 0.477547 | 0.44837 | 0.420561 | 0.303852 | 0 | 0.037981 | 0.258944 | 7,994 | 223 | 80 | 35.847534 | 0.702566 | 0 | 0 | 0.273743 | 0 | 0 | 0.277833 | 0.071303 | 0 | 0 | 0 | 0 | 0.150838 | 1 | 0.027933 | false | 0.067039 | 0.011173 | 0 | 0.039106 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
7c402801e39bdb7cc1abf8ebb10ec0262c763359 | 434 | py | Python | distribution.py | pakoito/randomcharacter | 4a3302b5ae157ccebb5e9a7e616315626ad4c614 | [
"MIT"
] | 65 | 2015-02-04T13:50:00.000Z | 2022-03-27T03:32:08.000Z | distribution.py | pakoito/randomcharacter | 4a3302b5ae157ccebb5e9a7e616315626ad4c614 | [
"MIT"
] | 14 | 2015-02-04T04:00:02.000Z | 2021-04-09T13:53:07.000Z | distribution.py | pakoito/randomcharacter | 4a3302b5ae157ccebb5e9a7e616315626ad4c614 | [
"MIT"
] | 39 | 2015-01-28T21:38:09.000Z | 2022-01-04T15:46:47.000Z | import collections
import sys
import character
iterations = int(sys.argv[1])
for msg, gen in [('With Thieves', character.Character),
('Without Thieves', character.LBBCharacter)]:
dist = collections.Counter(gen(testing=True).character_class['name']
for _ in range(iterations)... | 24.111111 | 72 | 0.635945 | 51 | 434 | 5.352941 | 0.568627 | 0.117216 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012346 | 0.253456 | 434 | 17 | 73 | 25.529412 | 0.830247 | 0 | 0 | 0 | 0 | 0 | 0.074074 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.25 | null | null | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7c42992b6659653864f89fe8f799820e5d147e12 | 7,690 | py | Python | sdk/python/pulumi_azure_native/securityinsights/v20190101preview/get_fusion_alert_rule.py | polivbr/pulumi-azure-native | 09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7 | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_native/securityinsights/v20190101preview/get_fusion_alert_rule.py | polivbr/pulumi-azure-native | 09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7 | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_native/securityinsights/v20190101preview/get_fusion_alert_rule.py | polivbr/pulumi-azure-native | 09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7 | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
__... | 35.601852 | 215 | 0.641482 | 878 | 7,690 | 5.341686 | 0.16287 | 0.044136 | 0.047122 | 0.053731 | 0.222388 | 0.106397 | 0.082729 | 0.051386 | 0.021322 | 0.021322 | 0 | 0.001586 | 0.262159 | 7,690 | 215 | 216 | 35.767442 | 0.824991 | 0.137581 | 0 | 0.147887 | 1 | 0 | 0.152102 | 0.043299 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105634 | false | 0 | 0.035211 | 0 | 0.253521 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7c4321391b6be2ab23d047ae8e80b3b915dfae6c | 6,455 | py | Python | mininet/mininet/provision/provision.py | parmentelat/Distrinet | 7533a9d9263d7b14b5e637bb59655427e2dbd822 | [
"MIT"
] | null | null | null | mininet/mininet/provision/provision.py | parmentelat/Distrinet | 7533a9d9263d7b14b5e637bb59655427e2dbd822 | [
"MIT"
] | null | null | null | mininet/mininet/provision/provision.py | parmentelat/Distrinet | 7533a9d9263d7b14b5e637bb59655427e2dbd822 | [
"MIT"
] | null | null | null | from abc import abstractmethod
from time import sleep, time
import boto3
import os
import paramiko
from pathlib import Path
import yaml
import logging
logging.basicConfig(filename='provision.log', filemode='a', format='%(name)s - %(levelname)s - %(message)s')
CONF_FILE = ".distrinet/conf.yml"
class Provision (object... | 37.748538 | 162 | 0.657165 | 729 | 6,455 | 5.735254 | 0.311385 | 0.052619 | 0.047357 | 0.061708 | 0.242765 | 0.242765 | 0.205932 | 0.163597 | 0.126286 | 0.070318 | 0 | 0.001861 | 0.250658 | 6,455 | 170 | 163 | 37.970588 | 0.862518 | 0.297599 | 0 | 0.225806 | 0 | 0 | 0.157153 | 0.048579 | 0 | 0 | 0 | 0.011765 | 0 | 1 | 0.139785 | false | 0.010753 | 0.096774 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7c46a648932ad39cac26f4ff279bb9e6671b7639 | 2,083 | py | Python | conan/recipes/bzip2/1.0.8/conanfile.py | Aetf/salus-ci | 35f6de4d443c22169349b3e0195a491d3f6838c5 | [
"MIT"
] | null | null | null | conan/recipes/bzip2/1.0.8/conanfile.py | Aetf/salus-ci | 35f6de4d443c22169349b3e0195a491d3f6838c5 | [
"MIT"
] | null | null | null | conan/recipes/bzip2/1.0.8/conanfile.py | Aetf/salus-ci | 35f6de4d443c22169349b3e0195a491d3f6838c5 | [
"MIT"
] | null | null | null | import os
from conans import ConanFile, CMake, tools
class Bzip2Conan(ConanFile):
name = "bzip2"
url = "https://github.com/Aetf/salus-ci"
homepage = "http://www.bzip.org"
license = "bzip2-1.0.8"
description = "bzip2 is a free and open-source file compression program that uses the Burrows Wheeler a... | 35.913793 | 117 | 0.649064 | 254 | 2,083 | 5.165354 | 0.42126 | 0.045732 | 0.043445 | 0.035061 | 0.091463 | 0.04878 | 0.04878 | 0 | 0 | 0 | 0 | 0.008547 | 0.213634 | 2,083 | 57 | 118 | 36.54386 | 0.79243 | 0 | 0 | 0.042553 | 0 | 0 | 0.222756 | 0.011522 | 0 | 0 | 0 | 0 | 0 | 1 | 0.170213 | false | 0 | 0.042553 | 0.021277 | 0.510638 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
7c46d0186e6f5dad7cce680caa02d45fce68081c | 854 | py | Python | pix2pix/utils/logger.py | Kajiyu/pix2pix-keras | 912bc3fbaeb7aec696f422b2c285f223f779e152 | [
"MIT"
] | 144 | 2017-05-01T12:49:08.000Z | 2022-01-05T21:42:19.000Z | pix2pix/utils/logger.py | Marcnuth/pix2pix-keras | d233c0fdd15859e20001ce8655e0891aaf06a338 | [
"MIT"
] | 7 | 2017-05-30T21:28:10.000Z | 2020-08-18T06:49:03.000Z | pix2pix/utils/logger.py | Marcnuth/pix2pix-keras | d233c0fdd15859e20001ce8655e0891aaf06a338 | [
"MIT"
] | 56 | 2017-07-13T07:24:51.000Z | 2021-06-05T08:51:21.000Z | import matplotlib.pyplot as plt
import numpy as np
def inverse_normalization(X):
return X * 255.0
def plot_generated_batch(X_full, X_sketch, generator_model, epoch_num, dataset_name, batch_num):
# Generate images
X_gen = generator_model.predict(X_sketch)
X_sketch = inverse_normalization(X_sketch)
... | 29.448276 | 135 | 0.700234 | 135 | 854 | 4.177778 | 0.474074 | 0.062057 | 0.148936 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018841 | 0.192037 | 854 | 28 | 136 | 30.5 | 0.798551 | 0.190867 | 0 | 0 | 1 | 0 | 0.086131 | 0.075912 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.133333 | 0.066667 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7c496be4783f8e7891cbe663fb4311df28ef6308 | 2,843 | py | Python | akshare/stock_feature/stock_em_yjbb.py | jiangrongbo/akshare | e9c54fe83d3aa2d403d44068e96935aad4615561 | [
"MIT"
] | 1 | 2021-08-21T14:50:39.000Z | 2021-08-21T14:50:39.000Z | akshare/stock_feature/stock_em_yjbb.py | jiangrongbo/akshare | e9c54fe83d3aa2d403d44068e96935aad4615561 | [
"MIT"
] | null | null | null | akshare/stock_feature/stock_em_yjbb.py | jiangrongbo/akshare | e9c54fe83d3aa2d403d44068e96935aad4615561 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding:utf-8 -*-
"""
Date: 2021/7/3 10:27
Desc: 东方财富-数据中心-年报季报
东方财富-数据中心-年报季报-业绩快报-业绩报表
http://data.eastmoney.com/bbsj/202003/yjbb.html
"""
import pandas as pd
import requests
from tqdm import tqdm
def stock_em_yjbb(date: str = "20200331") -> pd.DataFrame:
"""
东方财富-数据中心-年报季报-业绩快报-业... | 23.890756 | 84 | 0.459726 | 298 | 2,843 | 4.161074 | 0.399329 | 0.040323 | 0.035484 | 0.025806 | 0.370968 | 0.370968 | 0.370968 | 0.370968 | 0.370968 | 0.370968 | 0 | 0.081421 | 0.356314 | 2,843 | 118 | 85 | 24.09322 | 0.596175 | 0.126275 | 0 | 0.71134 | 0 | 0 | 0.266803 | 0.07377 | 0 | 0 | 0 | 0 | 0 | 1 | 0.010309 | false | 0 | 0.030928 | 0 | 0.051546 | 0.010309 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7c4ba78b9efad725bd978ba6b43d61b4260a1f07 | 30,840 | py | Python | ptCrypt/Asymmetric/DSA.py | 0awawa0/aCrypt | 7c5d07271d524b9e5b03035d63587b69bff5abc7 | [
"MIT"
] | null | null | null | ptCrypt/Asymmetric/DSA.py | 0awawa0/aCrypt | 7c5d07271d524b9e5b03035d63587b69bff5abc7 | [
"MIT"
] | 25 | 2021-12-08T07:20:11.000Z | 2021-12-10T12:07:05.000Z | ptCrypt/Asymmetric/DSA.py | 0awawa0/aCrypt | 7c5d07271d524b9e5b03035d63587b69bff5abc7 | [
"MIT"
] | null | null | null | from ptCrypt.Math import base, primality
import hashlib
import secrets
from ptCrypt.Util.keys import FFC_APPROVED_LENGTHS
def generateProbablePrimes(N: int, L: int, seedLength: int, hashFunction: callable = hashlib.sha256, forceWeak: bool = False) -> tuple:
"""Generates probable primes p and q by algorithm from
... | 29.653846 | 163 | 0.566861 | 3,799 | 30,840 | 4.582522 | 0.10687 | 0.017922 | 0.01999 | 0.018381 | 0.539376 | 0.500775 | 0.462175 | 0.426618 | 0.392843 | 0.350049 | 0 | 0.030615 | 0.357101 | 30,840 | 1,039 | 164 | 29.682387 | 0.84743 | 0.464462 | 0 | 0.512129 | 1 | 0 | 0.00691 | 0 | 0 | 0 | 0.001084 | 0 | 0 | 1 | 0.040431 | false | 0 | 0.010782 | 0 | 0.107817 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7c4e7ea159b686ee006ee7bf58b55e5d2ff6518b | 2,910 | py | Python | chapter6/ctr_interaction.py | arifmudi/Python-Machine-Learning-By-Example-Third-Edition | 7bdc45df2b519e3c0a929b03f0ac6fe30e028382 | [
"MIT"
] | 49 | 2020-03-21T08:37:46.000Z | 2022-02-01T12:48:23.000Z | chapter6/ctr_interaction.py | hmoharrer/Python-Machine-Learning-By-Example-Third-Edition | 7bdc45df2b519e3c0a929b03f0ac6fe30e028382 | [
"MIT"
] | 2 | 2021-03-28T17:25:57.000Z | 2021-04-05T18:14:55.000Z | chapter6/ctr_interaction.py | hmoharrer/Python-Machine-Learning-By-Example-Third-Edition | 7bdc45df2b519e3c0a929b03f0ac6fe30e028382 | [
"MIT"
] | 40 | 2020-05-02T18:30:00.000Z | 2022-02-27T09:15:16.000Z | '''
Source codes for Python Machine Learning By Example 3rd Edition (Packt Publishing)
Chapter 6 Scaling Up Prediction to Terabyte Click Logs
Author: Yuxi (Hayden) Liu (yuxi.liu.ece@gmail.com)
'''
from pyspark.sql import SparkSession
spark = SparkSession\
.builder\
.appName("CTR")\
.getOrCreate()
... | 24.25 | 99 | 0.710997 | 320 | 2,910 | 6.378125 | 0.396875 | 0.169035 | 0.257227 | 0.075943 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015482 | 0.134364 | 2,910 | 119 | 100 | 24.453782 | 0.79476 | 0.064948 | 0 | 0 | 0 | 0 | 0.109513 | 0.009218 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.092308 | 0 | 0.092308 | 0.046154 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7c4f1a7ab487d2c42548c2c86974d3d009eaa4bc | 423 | py | Python | Django2/core/migrations/0002_alter_produto_id.py | GabrielDevSpace/PythonGITstudies | ade009f45c2fa6fece808c7e58cd06d455a77838 | [
"MIT"
] | null | null | null | Django2/core/migrations/0002_alter_produto_id.py | GabrielDevSpace/PythonGITstudies | ade009f45c2fa6fece808c7e58cd06d455a77838 | [
"MIT"
] | null | null | null | Django2/core/migrations/0002_alter_produto_id.py | GabrielDevSpace/PythonGITstudies | ade009f45c2fa6fece808c7e58cd06d455a77838 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.6 on 2022-02-07 17:18
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='produto',
name='id',
field=m... | 22.263158 | 104 | 0.607565 | 48 | 423 | 5.25 | 0.833333 | 0.047619 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067961 | 0.269504 | 423 | 18 | 105 | 23.5 | 0.747573 | 0.106383 | 0 | 0 | 1 | 0 | 0.071809 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7c4f6c2de155c2da7687151984a4365cc56df04c | 351 | py | Python | zentral/contrib/santa/filebeat.py | arubdesu/zentral | ac0fe663f6e1c27f9a9f55a7500a87e6ac7d9190 | [
"Apache-2.0"
] | 634 | 2015-10-30T00:55:40.000Z | 2022-03-31T02:59:00.000Z | zentral/contrib/santa/filebeat.py | arubdesu/zentral | ac0fe663f6e1c27f9a9f55a7500a87e6ac7d9190 | [
"Apache-2.0"
] | 145 | 2015-11-06T00:17:33.000Z | 2022-03-16T13:30:31.000Z | zentral/contrib/santa/filebeat.py | arubdesu/zentral | ac0fe663f6e1c27f9a9f55a7500a87e6ac7d9190 | [
"Apache-2.0"
] | 103 | 2015-11-07T07:08:49.000Z | 2022-03-18T17:34:36.000Z | from django import forms
class SantaLogInputForm(forms.Form):
path = forms.CharField(initial="/var/db/santa/santa.log")
def get_filebeat_input(self):
return {"type": "log",
"paths": [self.cleaned_data["path"]]}
inputs = {"santa_log": {"name": "santa.log",
"fo... | 25.071429 | 61 | 0.603989 | 39 | 351 | 5.307692 | 0.666667 | 0.115942 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.239316 | 351 | 13 | 62 | 27 | 0.775281 | 0 | 0 | 0 | 0 | 0 | 0.202279 | 0.065527 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0.125 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
7c516445aa4c27d9ca28e49ce78ecfbabadeda67 | 807 | py | Python | var/spack/repos/builtin/packages/krb5/package.py | whitfin/spack | aabd2be31a511d0e00c1017f7311a421659319d9 | [
"ECL-2.0",
"Apache-2.0",
"MIT"
] | 3 | 2019-06-27T13:26:50.000Z | 2019-07-01T16:24:54.000Z | var/spack/repos/builtin/packages/krb5/package.py | openbiox/spack | bb6ec7fb40c14b37e094a860e3625af53f633174 | [
"ECL-2.0",
"Apache-2.0",
"MIT"
] | 75 | 2016-07-27T11:43:00.000Z | 2020-12-08T15:56:53.000Z | var/spack/repos/builtin/packages/krb5/package.py | openbiox/spack | bb6ec7fb40c14b37e094a860e3625af53f633174 | [
"ECL-2.0",
"Apache-2.0",
"MIT"
] | 8 | 2015-10-16T13:51:49.000Z | 2021-10-18T13:58:03.000Z | # Copyright 2013-2019 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class Krb5(AutotoolsPackage):
"""Network authentication protocol"""
homepage = "https://ker... | 27.827586 | 73 | 0.64684 | 93 | 807 | 5.55914 | 0.752688 | 0.017408 | 0.061896 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068146 | 0.218092 | 807 | 28 | 74 | 28.821429 | 0.751189 | 0.273854 | 0 | 0 | 0 | 0.066667 | 0.386482 | 0.181976 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.066667 | 0 | 0.533333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
7c609f4aa6498ec9b1cef68723d6f06bf843765b | 4,659 | py | Python | src/visualization-usingCmdArgs.py | richardsm32/visualization-project | 098d76fa0f67b683e608214f1d9cf25daec2da3a | [
"MIT"
] | null | null | null | src/visualization-usingCmdArgs.py | richardsm32/visualization-project | 098d76fa0f67b683e608214f1d9cf25daec2da3a | [
"MIT"
] | null | null | null | src/visualization-usingCmdArgs.py | richardsm32/visualization-project | 098d76fa0f67b683e608214f1d9cf25daec2da3a | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
#/home/mat/anaconda3/envs/qiime2-2019.10/bin python3
#/home/mat/anaconda3/envs/qiime2-2019.10/bin Python3
"""
Foundation of a visualization pipeline using Qiime2 artifact API and
Holoviz tools for interactive data comparison
"""
# Built-in/Generic Imports
import os
import sys
import argparse
#... | 30.854305 | 92 | 0.678257 | 641 | 4,659 | 4.808112 | 0.458658 | 0.020441 | 0.011681 | 0.012654 | 0.044452 | 0.044452 | 0.029526 | 0.029526 | 0.029526 | 0.029526 | 0 | 0.018735 | 0.209487 | 4,659 | 150 | 93 | 31.06 | 0.818083 | 0.19854 | 0 | 0.024691 | 0 | 0 | 0.200498 | 0.018841 | 0 | 0 | 0 | 0 | 0 | 1 | 0.049383 | false | 0 | 0.320988 | 0.012346 | 0.395062 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
7c636b479773e6d106f71190ba3edb13d03d52d9 | 1,167 | py | Python | dosagelib/plugins/q.py | acaranta/dosage | 6e14e8709b3b213fdc07a2106464860e1cb99481 | [
"MIT"
] | null | null | null | dosagelib/plugins/q.py | acaranta/dosage | 6e14e8709b3b213fdc07a2106464860e1cb99481 | [
"MIT"
] | null | null | null | dosagelib/plugins/q.py | acaranta/dosage | 6e14e8709b3b213fdc07a2106464860e1cb99481 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright (C) 2004-2008 Tristan Seligmann and Jonathan Jacobs
# Copyright (C) 2012-2014 Bastian Kleineidam
# Copyright (C) 2015-2020 Tobias Gruetzmacher
from __future__ import absolute_import, division, print_function
from ..scraper import _ParserScraper
from ..helpers import xpath_class
c... | 32.416667 | 64 | 0.66838 | 133 | 1,167 | 5.774436 | 0.533835 | 0.039063 | 0.085938 | 0.089844 | 0.186198 | 0.186198 | 0.186198 | 0.125 | 0 | 0 | 0 | 0.029774 | 0.165381 | 1,167 | 35 | 65 | 33.342857 | 0.758727 | 0.145673 | 0 | 0.130435 | 0 | 0 | 0.350806 | 0.069556 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.130435 | 0 | 1 | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
7c6af809897fbc9e8b5cfa81179949432c71abd5 | 227 | py | Python | sentence-encoding/main.py | dumpmemory/serverless-transformers-on-aws-lambda | d48caab0e07ae8326d4b37ab730faf2cffd02f7d | [
"Apache-2.0"
] | 103 | 2021-07-11T12:50:47.000Z | 2022-03-02T15:34:04.000Z | sentence-encoding/main.py | aniketmaurya/serverless-transformers-on-aws-lambda | 1e606b36a85e60ad9adefd5e080c5f013724fbdc | [
"Apache-2.0"
] | 8 | 2021-07-15T09:14:46.000Z | 2021-07-22T03:44:46.000Z | sentence-encoding/main.py | aniketmaurya/serverless-transformers-on-aws-lambda | 1e606b36a85e60ad9adefd5e080c5f013724fbdc | [
"Apache-2.0"
] | 16 | 2021-07-13T08:58:22.000Z | 2022-02-07T20:31:34.000Z | from sklearn import pipeline
from src.sentence_encoder import SentenceEncoder
pipeline = SentenceEncoder()
def lambda_handler(event, context):
try:
return pipeline(event)
except Exception as e:
raise
| 18.916667 | 48 | 0.731278 | 26 | 227 | 6.307692 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.215859 | 227 | 11 | 49 | 20.636364 | 0.921348 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7c6ba18fe85ba62723b80d78297bc20379c058e0 | 778 | py | Python | migrations/488-reindex-ratings.py | mstriemer/zamboni | 32f95899492d51e78caaf9a08caa28fcfcb2c172 | [
"BSD-3-Clause"
] | null | null | null | migrations/488-reindex-ratings.py | mstriemer/zamboni | 32f95899492d51e78caaf9a08caa28fcfcb2c172 | [
"BSD-3-Clause"
] | null | null | null | migrations/488-reindex-ratings.py | mstriemer/zamboni | 32f95899492d51e78caaf9a08caa28fcfcb2c172 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
from celery import task
from mkt.site.utils import chunked
from mkt.site.decorators import write
from mkt.webapps.models import Webapp
@task
@write
def reindex_reviews(addon_id, **kw):
try:
# Emit post-save signals so ES gets the correct bayesian ratings.
# One review is en... | 27.785714 | 73 | 0.673522 | 118 | 778 | 4.355932 | 0.644068 | 0.040856 | 0.042802 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016502 | 0.22108 | 778 | 27 | 74 | 28.814815 | 0.831683 | 0.22365 | 0 | 0 | 0 | 0 | 0.044723 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.25 | null | null | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7c6cc6d2dff938e04f40b8efc782f765d70dfc62 | 318 | py | Python | selfdrive/car/ford/values.py | shoes22/openpilot | a965de3c96a53b67d106cfa775e3407db82dd0e1 | [
"MIT"
] | 37,508 | 2016-11-30T18:18:49.000Z | 2022-03-31T23:52:00.000Z | selfdrive/car/ford/values.py | shoes22/openpilot | a965de3c96a53b67d106cfa775e3407db82dd0e1 | [
"MIT"
] | 3,719 | 2016-11-30T19:25:03.000Z | 2022-03-31T22:03:56.000Z | selfdrive/car/ford/values.py | shoes22/openpilot | a965de3c96a53b67d106cfa775e3407db82dd0e1 | [
"MIT"
] | 7,859 | 2016-11-30T19:03:05.000Z | 2022-03-31T22:56:37.000Z | # flake8: noqa
from selfdrive.car import dbc_dict
from cereal import car
Ecu = car.CarParams.Ecu
MAX_ANGLE = 87. # make sure we never command the extremes (0xfff) which cause latching fault
class CAR:
FUSION = "FORD FUSION 2018"
DBC = {
CAR.FUSION: dbc_dict('ford_fusion_2018_pt', 'ford_fusion_2018_adas'),
}
| 21.2 | 93 | 0.745283 | 50 | 318 | 4.56 | 0.64 | 0.131579 | 0.184211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.060377 | 0.166667 | 318 | 14 | 94 | 22.714286 | 0.8 | 0.273585 | 0 | 0 | 0 | 0 | 0.245614 | 0.092105 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7c7016084b3b4f9d5fd1b372fc3cee880a7ccff3 | 802 | py | Python | lab/refactoring/decompose_conditional.py | KitsuneNoctus/SPD-2.31-Testing-and-Architecture-HC | 3033b29788a857aca2a4157e959402795e6ebaa7 | [
"MIT"
] | null | null | null | lab/refactoring/decompose_conditional.py | KitsuneNoctus/SPD-2.31-Testing-and-Architecture-HC | 3033b29788a857aca2a4157e959402795e6ebaa7 | [
"MIT"
] | null | null | null | lab/refactoring/decompose_conditional.py | KitsuneNoctus/SPD-2.31-Testing-and-Architecture-HC | 3033b29788a857aca2a4157e959402795e6ebaa7 | [
"MIT"
] | null | null | null | # By Kami Bigdely
# Decompose conditional: You have a complicated conditional(if-then-else) statement. Extract
# methods from the condition, then part, and else part(s).
def make_alert_sound():
print('made alert sound.')
def make_accept_sound():
print('made acceptance sound')
def check_if_toxin(ingredients):... | 30.846154 | 92 | 0.69202 | 107 | 802 | 5.056075 | 0.485981 | 0.055453 | 0.051756 | 0.085028 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.182045 | 802 | 26 | 93 | 30.846154 | 0.824695 | 0.290524 | 0 | 0.222222 | 0 | 0 | 0.258007 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.222222 | 0.444444 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
7c71e6cae47e4f65e63c497742ae56963054f916 | 1,407 | py | Python | tests/test_index.py | sacovo/luxdb | 76f4303b31f6fd6f7fbeac4268bf0c220f584128 | [
"MIT"
] | null | null | null | tests/test_index.py | sacovo/luxdb | 76f4303b31f6fd6f7fbeac4268bf0c220f584128 | [
"MIT"
] | null | null | null | tests/test_index.py | sacovo/luxdb | 76f4303b31f6fd6f7fbeac4268bf0c220f584128 | [
"MIT"
] | null | null | null | from pathlib import Path
from tests import generate_data
import hnswlib
import pytest
from luxdb.index import Index
SPACE = 'l2'
DIM = 12
@pytest.fixture
def index():
space = SPACE
dim = DIM
hnsw_index = hnswlib.Index(space=space, dim=dim)
return Index(hnsw_index)
class TestIndex:
def test_cr... | 22.333333 | 56 | 0.644634 | 195 | 1,407 | 4.435897 | 0.261538 | 0.101734 | 0.080925 | 0.09711 | 0.396532 | 0.219653 | 0.219653 | 0.083237 | 0 | 0 | 0 | 0.036122 | 0.25231 | 1,407 | 62 | 57 | 22.693548 | 0.786122 | 0 | 0 | 0.097561 | 1 | 0 | 0.001421 | 0 | 0 | 0 | 0 | 0 | 0.195122 | 1 | 0.146341 | false | 0 | 0.121951 | 0 | 0.317073 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7c722253784976558e2a63b76223e69fdd0b6d75 | 886 | py | Python | dashboard/migrations/0056_auto_20210917_1213.py | chennisden/otis-web | 57a1de9c1c3baa2cda09d30c59462a528aa3ba00 | [
"MIT"
] | 15 | 2021-08-28T18:18:37.000Z | 2022-03-13T07:48:15.000Z | dashboard/migrations/0056_auto_20210917_1213.py | chennisden/otis-web | 57a1de9c1c3baa2cda09d30c59462a528aa3ba00 | [
"MIT"
] | 65 | 2021-08-20T02:37:27.000Z | 2022-02-07T17:19:23.000Z | dashboard/migrations/0056_auto_20210917_1213.py | chennisden/otis-web | 57a1de9c1c3baa2cda09d30c59462a528aa3ba00 | [
"MIT"
] | 31 | 2020-01-09T02:35:29.000Z | 2022-03-13T07:48:18.000Z | # Generated by Django 3.2.7 on 2021-09-17 16:13
import dashboard.models
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('dashboard', '0055_rename_palaceentry_palacecarving'),
]
operations = [
migrations.AlterField(
model_name... | 35.44 | 259 | 0.67833 | 103 | 886 | 5.699029 | 0.679612 | 0.076661 | 0.085179 | 0.098808 | 0.156729 | 0.156729 | 0 | 0 | 0 | 0 | 0 | 0.030568 | 0.224605 | 886 | 24 | 260 | 36.916667 | 0.823872 | 0.05079 | 0 | 0.333333 | 1 | 0 | 0.280095 | 0.0441 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7c72d7d6946265cec6e62bfa9dc9cb31d4469d80 | 179 | py | Python | jupyter-notebooks/h5-to-csv.py | joaog314/python-projects | 0b9161febe2d3119051ee28843a22af232953537 | [
"MIT"
] | null | null | null | jupyter-notebooks/h5-to-csv.py | joaog314/python-projects | 0b9161febe2d3119051ee28843a22af232953537 | [
"MIT"
] | null | null | null | jupyter-notebooks/h5-to-csv.py | joaog314/python-projects | 0b9161febe2d3119051ee28843a22af232953537 | [
"MIT"
] | null | null | null | import pandas as pd
hdf = pd.HDFStore('signals_data.h5',mode='r')
key = 'logger_data'
df1 = hdf.get(key)
df1.to_csv('signals_data.csv', encoding='utf-8', index=False, sep=',') | 19.888889 | 70 | 0.687151 | 31 | 179 | 3.83871 | 0.741935 | 0.184874 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025157 | 0.111732 | 179 | 9 | 70 | 19.888889 | 0.72327 | 0 | 0 | 0 | 0 | 0 | 0.272222 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7c7a5b7be4df7d2c8b31a478df1b249980dc4fed | 484 | py | Python | start-demos/lesson06/matrixmul.py | Andyliwr/PythonStudyLoad | 24d78da61740e310c33c3769c93a207bf0e665c8 | [
"MIT"
] | 1 | 2018-12-11T07:59:44.000Z | 2018-12-11T07:59:44.000Z | start-demos/lesson06/matrixmul.py | Andyliwr/python-learn | 24d78da61740e310c33c3769c93a207bf0e665c8 | [
"MIT"
] | null | null | null | start-demos/lesson06/matrixmul.py | Andyliwr/python-learn | 24d78da61740e310c33c3769c93a207bf0e665c8 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
#-*-coding:utf-8*-
# 程序实现的功能:计算nxn的矩阵相乘
n = int(input("输入n的值: "))
print("输入矩阵A: ")
a = []
for i in range(n):
a.append([int(x) for x in input().split()])
print("输入矩阵B: ")12
b = []
for i in range(n):
b.append([int(x) for x in input().split()])
c = []
for i in range(n):
c.append([a[i][j] * ... | 22 | 51 | 0.535124 | 90 | 484 | 2.877778 | 0.388889 | 0.108108 | 0.123552 | 0.127413 | 0.339768 | 0.200772 | 0.200772 | 0.200772 | 0 | 0 | 0 | 0.015625 | 0.206612 | 484 | 22 | 52 | 22 | 0.658854 | 0.115702 | 0 | 0.263158 | 0 | 0 | 0.077465 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.368421 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7c7f3f80bd2f4b8506d60d0b980f94e17bf5ea95 | 1,311 | py | Python | 02-django/blog/models.py | Lyainc/do-it-django | 19983ccfea46582bff721468bc58246ea22a669d | [
"MIT"
] | null | null | null | 02-django/blog/models.py | Lyainc/do-it-django | 19983ccfea46582bff721468bc58246ea22a669d | [
"MIT"
] | null | null | null | 02-django/blog/models.py | Lyainc/do-it-django | 19983ccfea46582bff721468bc58246ea22a669d | [
"MIT"
] | null | null | null | from django.db import models
from django.contrib.auth.models import User
import os
# Create your models here.
class Category(models.Model):
name = models.CharField(max_length=50, unique=True)
slug = models.SlugField(max_length=200, unique=True, allow_unicode=True)
def __str__(self):
return self.n... | 29.795455 | 92 | 0.701754 | 186 | 1,311 | 4.741935 | 0.430108 | 0.056689 | 0.061224 | 0.081633 | 0.147392 | 0.056689 | 0 | 0 | 0 | 0 | 0 | 0.010092 | 0.168574 | 1,311 | 43 | 93 | 30.488372 | 0.799083 | 0.018307 | 0 | 0.071429 | 0 | 0 | 0.084112 | 0.016355 | 0 | 0 | 0 | 0 | 0 | 1 | 0.178571 | false | 0 | 0.107143 | 0.178571 | 0.964286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
7c80e837e8ece402e4f101e56915691a65af21bc | 2,506 | py | Python | kairon/api/throttle.py | Shashank411/kairon | 8a3a083136d8cf89359021e49a7610509772ca9b | [
"Apache-2.0"
] | null | null | null | kairon/api/throttle.py | Shashank411/kairon | 8a3a083136d8cf89359021e49a7610509772ca9b | [
"Apache-2.0"
] | 1 | 2021-01-29T22:20:59.000Z | 2021-01-29T22:20:59.000Z | kairon/api/throttle.py | Shashank411/kairon | 8a3a083136d8cf89359021e49a7610509772ca9b | [
"Apache-2.0"
] | null | null | null | from kairon.data_processor.data_objects import Intents, TrainingExamples, ModelTraining
from kairon.api.data_objects import Account, Bot
from kairon.api.models import User
from kairon.exceptions import AppException
from datetime import datetime
from kairon.utils import Utility
def limit_intent(func):
def wrapped(... | 38.553846 | 120 | 0.693136 | 304 | 2,506 | 5.598684 | 0.197368 | 0.096945 | 0.063455 | 0.061692 | 0.56228 | 0.545241 | 0.484136 | 0.364865 | 0.32785 | 0.32785 | 0 | 0.00448 | 0.198324 | 2,506 | 64 | 121 | 39.15625 | 0.842708 | 0 | 0 | 0.408163 | 0 | 0 | 0.094573 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.204082 | false | 0 | 0.122449 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7c8538fb9cf88acd75fd20603c2cabae8e0bde3b | 76,925 | py | Python | ddi_search_engine/Bio/SeqIO/__init__.py | dbmi-pitt/DIKB-Evidence-analytics | 9ffd629db30c41ced224ff2afdf132ce9276ae3f | [
"MIT"
] | 3 | 2015-06-08T17:58:54.000Z | 2022-03-10T18:49:44.000Z | ddi_search_engine/Bio/SeqIO/__init__.py | dbmi-pitt/DIKB-Evidence-analytics | 9ffd629db30c41ced224ff2afdf132ce9276ae3f | [
"MIT"
] | null | null | null | ddi_search_engine/Bio/SeqIO/__init__.py | dbmi-pitt/DIKB-Evidence-analytics | 9ffd629db30c41ced224ff2afdf132ce9276ae3f | [
"MIT"
] | null | null | null | # Copyright 2006-2007 by Peter Cock. All rights reserved.
# This code is part of the Biopython distribution and governed by its
# license. Please see the LICENSE file that should have been included
# as part of this package.
#
#Nice link:
# http://www.ebi.ac.uk/help/formats_frame.html
"""Sequence input/output design... | 49.437661 | 96 | 0.718362 | 7,277 | 76,925 | 7.512024 | 0.372818 | 0.005104 | 0.002634 | 0.004354 | 0.225263 | 0.199945 | 0.181048 | 0.165792 | 0.157633 | 0.143419 | 0 | 0.029079 | 0.211869 | 76,925 | 1,555 | 97 | 49.469453 | 0.872582 | 0.052948 | 0 | 0.242236 | 0 | 0 | 0.261289 | 0.156462 | 0 | 0 | 0 | 0.001929 | 0.139752 | 0 | null | null | 0.003106 | 0.046584 | null | null | 0.086957 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7c8b59a80c5430e24145c02f250f94e62054b0bc | 737 | py | Python | calculator/operations/calculation.py | jharilal/calculator_assignment | dd32ff4c38737748502fa42ec550f10cf8142ad4 | [
"MIT"
] | null | null | null | calculator/operations/calculation.py | jharilal/calculator_assignment | dd32ff4c38737748502fa42ec550f10cf8142ad4 | [
"MIT"
] | null | null | null | calculator/operations/calculation.py | jharilal/calculator_assignment | dd32ff4c38737748502fa42ec550f10cf8142ad4 | [
"MIT"
] | null | null | null | """This is the calculation class / abstraction class"""
class Calculation:
"""Creates the Calculation parent class for the arithmetic subclasses"""
# pylint: disable=bad-option-value, too-few-public-methods
def __init__(self, values: tuple):
"""Constructor Method"""
self.values = Calculati... | 29.48 | 80 | 0.65943 | 89 | 737 | 5.303371 | 0.539326 | 0.069915 | 0.076271 | 0.084746 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.240163 | 737 | 24 | 81 | 30.708333 | 0.842857 | 0.377205 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7c8c9f0f1d0beb59051b3ffc4e19d3eaf529548d | 432 | pyde | Python | mode/examples/Topics/Simulate/SimpleParticleSystem/SimpleParticleSystem.pyde | timgates42/processing.py | 78a237922c2a928b83f4ad579dbf8d32c0099890 | [
"Apache-2.0"
] | 1,224 | 2015-01-01T22:09:23.000Z | 2022-03-29T19:43:56.000Z | mode/examples/Topics/Simulate/SimpleParticleSystem/SimpleParticleSystem.pyde | timgates42/processing.py | 78a237922c2a928b83f4ad579dbf8d32c0099890 | [
"Apache-2.0"
] | 253 | 2015-01-14T03:45:51.000Z | 2022-02-08T01:18:19.000Z | mode/examples/Topics/Simulate/SimpleParticleSystem/SimpleParticleSystem.pyde | timgates42/processing.py | 78a237922c2a928b83f4ad579dbf8d32c0099890 | [
"Apache-2.0"
] | 225 | 2015-01-13T18:38:33.000Z | 2022-03-30T20:27:39.000Z | """
Simple Particle System
by Daniel Shiffman.
Particles are generated each cycle through draw(),
fall with gravity and fade out over time
A ParticleSystem object manages a variable size list
of particles.
"""
from particle_system import ParticleSystem
ps = None
def setup():
global ps
size(640, 360)
... | 18 | 53 | 0.703704 | 59 | 432 | 5.135593 | 0.779661 | 0.092409 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029412 | 0.212963 | 432 | 23 | 54 | 18.782609 | 0.861765 | 0.479167 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.1 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7c8e3e32a892de74c958c76664a9bed5b18e634b | 483 | py | Python | python/p030.py | ericdahl/project-euler | 4757e2c44ca9423471b2938fc1e3dd1796f000b3 | [
"BSD-3-Clause"
] | null | null | null | python/p030.py | ericdahl/project-euler | 4757e2c44ca9423471b2938fc1e3dd1796f000b3 | [
"BSD-3-Clause"
] | 1 | 2016-01-18T02:02:50.000Z | 2016-01-18T02:02:50.000Z | python/p030.py | ericdahl/project-euler | 4757e2c44ca9423471b2938fc1e3dd1796f000b3 | [
"BSD-3-Clause"
] | null | null | null | # there are only three numbers that can be written as the sum of their digits:
# 1634 = 1**4 + 6**4 + 3**4 + 4**4
# 8208
# 9474
#
# as 1 = 1**4 is not a sum, it is not included
# the sum of these numbers is 19316
# find the sum of all the numbers that can be written as the sum of their fifth powers of their digits
... | 26.833333 | 102 | 0.621118 | 103 | 483 | 2.912621 | 0.495146 | 0.08 | 0.106667 | 0.106667 | 0.253333 | 0.253333 | 0.253333 | 0.253333 | 0.253333 | 0.253333 | 0 | 0.110803 | 0.252588 | 483 | 17 | 103 | 28.411765 | 0.720222 | 0.625259 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7c91ffb4aba707e8d8b62232eebf4a8e01255a26 | 304 | py | Python | Dataset/Leetcode/test/88/11.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/test/88/11.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/test/88/11.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | class Solution:
def XXX(self, nums1: List[int], m: int, nums2: List[int], n: int) -> None:
"""
Do not return anything, modify nums1 in-place instead.
"""
j=0
for i in range(m,len(nums1)):
nums1[i]=nums2[j]
j=j+1
nums1.sort()
| 23.384615 | 78 | 0.490132 | 43 | 304 | 3.465116 | 0.651163 | 0.09396 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046632 | 0.365132 | 304 | 12 | 79 | 25.333333 | 0.725389 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7c9954de4b0bf177b7b6f8d9d3c3bbfe80a8db2e | 5,119 | py | Python | workq.py | klmitch/workq | 6b26c7546947bd0b0c98d78cf4653411a1d09c55 | [
"Apache-2.0"
] | 1 | 2016-01-25T06:55:00.000Z | 2016-01-25T06:55:00.000Z | workq.py | klmitch/workq | 6b26c7546947bd0b0c98d78cf4653411a1d09c55 | [
"Apache-2.0"
] | null | null | null | workq.py | klmitch/workq | 6b26c7546947bd0b0c98d78cf4653411a1d09c55 | [
"Apache-2.0"
] | null | null | null | # Copyright 2014 Kevin L. Mitchell
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... | 32.814103 | 78 | 0.568275 | 678 | 5,119 | 4.240413 | 0.283186 | 0.01913 | 0.024348 | 0.022261 | 0.272348 | 0.233739 | 0.198261 | 0.198261 | 0.198261 | 0.170783 | 0 | 0.003067 | 0.362962 | 5,119 | 155 | 79 | 33.025806 | 0.878565 | 0.670248 | 0 | 0.057143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.228571 | false | 0 | 0.057143 | 0 | 0.485714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7c9d8eaf221dd2e729e3b8aa4e0453347d96fb4b | 19,764 | py | Python | code/client/munkilib/admin/munkiimportlib.py | bryanheinz/munki | e704e283c9e7c40fd56286ee13c6498dc10350c0 | [
"Apache-2.0"
] | 4 | 2019-04-22T17:46:11.000Z | 2021-01-13T21:45:15.000Z | code/client/munkilib/admin/munkiimportlib.py | fn10859/munki | d44feba3bab31f4c6a3ba7514736af4d7555ed21 | [
"Apache-2.0"
] | null | null | null | code/client/munkilib/admin/munkiimportlib.py | fn10859/munki | d44feba3bab31f4c6a3ba7514736af4d7555ed21 | [
"Apache-2.0"
] | 2 | 2020-04-13T03:37:15.000Z | 2021-11-19T05:13:01.000Z | # encoding: utf-8
#
# Copyright 2017-2019 Greg Neagle.
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable l... | 39.214286 | 79 | 0.625835 | 2,319 | 19,764 | 5.162139 | 0.147909 | 0.038009 | 0.025395 | 0.022555 | 0.383928 | 0.331301 | 0.278172 | 0.244925 | 0.207418 | 0.184362 | 0 | 0.003537 | 0.28476 | 19,764 | 503 | 80 | 39.292247 | 0.843308 | 0.074884 | 0 | 0.337875 | 0 | 0 | 0.093899 | 0.004164 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.010899 | 0.057221 | null | null | 0.016349 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7c9e27f83df5f3c73ce8417b1e3239ec3b352c49 | 428 | py | Python | tests/tools/openwebtext-to-jsonl.py | adammoody/Megatron-DeepSpeed | 972211163608818fe9e5ba821246f18d0a5dc264 | [
"MIT"
] | 106 | 2021-07-08T18:00:55.000Z | 2022-03-21T06:35:58.000Z | tests/tools/openwebtext-to-jsonl.py | adammoody/Megatron-DeepSpeed | 972211163608818fe9e5ba821246f18d0a5dc264 | [
"MIT"
] | 150 | 2021-07-15T12:26:47.000Z | 2022-03-31T22:21:32.000Z | tests/tools/openwebtext-to-jsonl.py | adammoody/Megatron-DeepSpeed | 972211163608818fe9e5ba821246f18d0a5dc264 | [
"MIT"
] | 43 | 2021-07-06T14:12:49.000Z | 2022-03-14T11:55:32.000Z | #!/usr/bin/env python
# generate a jsonl version of a small slice of a dataset that can be fed to megatron-lm preprocessor
import sys
from datasets import load_dataset
dataset_name = "stas/openwebtext-10k"
# subset to jsonlines
n_samples = 1000
ds = load_dataset(dataset_name, split='train')
ds_small = ds.select(ran... | 26.75 | 100 | 0.773364 | 70 | 428 | 4.585714 | 0.657143 | 0.074766 | 0.11215 | 0.137072 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016043 | 0.126168 | 428 | 15 | 101 | 28.533333 | 0.842246 | 0.324766 | 0 | 0 | 1 | 0 | 0.213287 | 0.101399 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7ca02761c23d2773901d052e0495a5f2ef6431cd | 9,077 | py | Python | rltime/acting/ray_pool.py | frederikschubert/rltime | d1722ffd4cf7b4599655b8d9c64abc243919afc9 | [
"Apache-2.0"
] | 147 | 2019-09-05T10:41:15.000Z | 2021-12-28T23:41:54.000Z | rltime/acting/ray_pool.py | frederikschubert/rltime | d1722ffd4cf7b4599655b8d9c64abc243919afc9 | [
"Apache-2.0"
] | 1 | 2020-10-18T14:55:53.000Z | 2021-11-18T10:41:36.000Z | rltime/acting/ray_pool.py | frederikschubert/rltime | d1722ffd4cf7b4599655b8d9c64abc243919afc9 | [
"Apache-2.0"
] | 11 | 2019-09-08T09:18:28.000Z | 2020-11-30T12:41:37.000Z | import numpy as np
import pickle
import math
from threading import Lock
from collections import OrderedDict
import logging
# Don't assume/require ray or LZ4 to be installed unless using them
try:
import ray
except ImportError:
ray = None
try:
import lz4.frame as lz4_frame
except ImportError:
lz4_frame ... | 40.522321 | 79 | 0.65374 | 1,178 | 9,077 | 4.829372 | 0.26146 | 0.02373 | 0.020039 | 0.021093 | 0.126912 | 0.052206 | 0.036562 | 0.014414 | 0 | 0 | 0 | 0.003391 | 0.285337 | 9,077 | 223 | 80 | 40.704036 | 0.873593 | 0.336895 | 0 | 0.096774 | 0 | 0 | 0.057847 | 0.004719 | 0 | 0 | 0 | 0.013453 | 0.008065 | 1 | 0.08871 | false | 0 | 0.129032 | 0 | 0.258065 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7ca4e5b1bbef685da0262358fa4c0c0cc4e3c64f | 9,296 | py | Python | test/gen_or_seq_attr_test.py | tzlaine/parser | 095aa362d777a480fffef415d27d214cd6ffec4a | [
"BSL-1.0"
] | 7 | 2020-08-29T02:10:20.000Z | 2022-03-29T20:31:59.000Z | test/gen_or_seq_attr_test.py | tzlaine/parser | 095aa362d777a480fffef415d27d214cd6ffec4a | [
"BSL-1.0"
] | 16 | 2020-08-29T21:33:08.000Z | 2022-03-22T03:01:02.000Z | test/gen_or_seq_attr_test.py | tzlaine/parser | 095aa362d777a480fffef415d27d214cd6ffec4a | [
"BSL-1.0"
] | 1 | 2021-09-22T08:15:57.000Z | 2021-09-22T08:15:57.000Z | #!/usr/bin/env python
atoms = ['*char_', 'eps', '-int_']
infix_ops = ['>>', '|']
unary_ops = ['-']
atoms_4 = []
atom_parts = [None, None, None, None]
for i in range(len(atoms)):
atom_parts[0] = atoms[i]
for j in range(len(atoms)):
atom_parts[1] = atoms[j]
for k in range(len(atoms)):
... | 29.141066 | 108 | 0.557659 | 1,369 | 9,296 | 3.567568 | 0.124909 | 0.042588 | 0.040131 | 0.030713 | 0.462121 | 0.383497 | 0.313473 | 0.281532 | 0.265561 | 0.246724 | 0 | 0.020694 | 0.277431 | 9,296 | 318 | 109 | 29.232704 | 0.706417 | 0.019148 | 0 | 0.327068 | 0 | 0 | 0.213431 | 0.027763 | 0 | 0 | 0 | 0 | 0.007519 | 0 | null | null | 0 | 0 | null | null | 0.041353 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7ca561b6e63f5cc37f9893f22a59f61f1f2164ac | 5,976 | py | Python | python/istio_api/broker/dev/service_class_pb2.py | x15zhang/api | 3f247431648a0fd0f76df8255148109da867eb42 | [
"Apache-2.0"
] | 15 | 2018-01-26T22:25:37.000Z | 2022-03-29T14:32:59.000Z | python/istio_api/broker/dev/service_class_pb2.py | x15zhang/api | 3f247431648a0fd0f76df8255148109da867eb42 | [
"Apache-2.0"
] | 5 | 2018-11-09T15:42:43.000Z | 2019-05-10T20:14:17.000Z | python/istio_api/broker/dev/service_class_pb2.py | x15zhang/api | 3f247431648a0fd0f76df8255148109da867eb42 | [
"Apache-2.0"
] | 5 | 2020-07-06T20:11:51.000Z | 2022-01-25T13:26:21.000Z | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: broker/dev/service_class.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import ref... | 34.543353 | 497 | 0.745649 | 754 | 5,976 | 5.649867 | 0.196286 | 0.046479 | 0.049296 | 0.040141 | 0.573944 | 0.516901 | 0.456338 | 0.440376 | 0.440376 | 0.440376 | 0 | 0.03219 | 0.121486 | 5,976 | 172 | 498 | 34.744186 | 0.779238 | 0.061914 | 0 | 0.6 | 1 | 0.006897 | 0.20418 | 0.163273 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.041379 | 0 | 0.041379 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7caebb6319629473075e917d504324dd2305bc81 | 753 | py | Python | cortex/secondary/survey_results.py | dcurrey88/LAMP-cortex | 90aea3f84b7c202eb7f39d2030c8024dd3fc131b | [
"BSD-3-Clause"
] | null | null | null | cortex/secondary/survey_results.py | dcurrey88/LAMP-cortex | 90aea3f84b7c202eb7f39d2030c8024dd3fc131b | [
"BSD-3-Clause"
] | null | null | null | cortex/secondary/survey_results.py | dcurrey88/LAMP-cortex | 90aea3f84b7c202eb7f39d2030c8024dd3fc131b | [
"BSD-3-Clause"
] | null | null | null | from ..feature_types import secondary_feature, log
from ..primary.survey_scores import survey_scores
import numpy as np
@secondary_feature(
name="cortex.survey_results",
dependencies=[survey_scores]
)
def survey_results(**kwargs):
"""
:param id (str): participant id.
:param start (int): start t... | 31.375 | 73 | 0.640106 | 94 | 753 | 5 | 0.446809 | 0.102128 | 0.076596 | 0.080851 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.212483 | 753 | 24 | 74 | 31.375 | 0.79258 | 0.249668 | 0 | 0 | 0 | 0 | 0.113208 | 0.039623 | 0 | 0 | 0 | 0.041667 | 0 | 1 | 0.066667 | false | 0 | 0.2 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7caefa9601f084db64998a658584fd3036e5fe50 | 792 | py | Python | 93-funcao_sortear_somar.py | tainagirotto/exercicios-py | 39107c05a0a8e5230cd48876ad8e1ad6f0a2ff59 | [
"MIT"
] | null | null | null | 93-funcao_sortear_somar.py | tainagirotto/exercicios-py | 39107c05a0a8e5230cd48876ad8e1ad6f0a2ff59 | [
"MIT"
] | null | null | null | 93-funcao_sortear_somar.py | tainagirotto/exercicios-py | 39107c05a0a8e5230cd48876ad8e1ad6f0a2ff59 | [
"MIT"
] | null | null | null | '''
Ex. Python 100: Faça um programa que tenha uma lista chamada números e duas funções chamadas sorteia() e somaPar().
A primeira função vai sortear 5 números e vai colocá-los dentro da lista e a segunda função vai mostrar a soma entre
todos os valores pares sorteados pela função anterior.
'''
from random import randi... | 24.75 | 116 | 0.613636 | 122 | 792 | 3.983607 | 0.540984 | 0.049383 | 0.057613 | 0.045267 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024306 | 0.272727 | 792 | 31 | 117 | 25.548387 | 0.819444 | 0.362374 | 0 | 0.095238 | 0 | 0 | 0.173038 | 0 | 0 | 0 | 0 | 0.032258 | 0 | 1 | 0.095238 | false | 0 | 0.047619 | 0 | 0.142857 | 0.238095 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7cb07fda6422ef943704c231edca50d5c12fa72a | 6,697 | py | Python | app/views.py | duncanmfield/finance-tool | 6c145c8f966cafe435d8676fdd7f22900d6825f6 | [
"MIT"
] | 1 | 2020-07-26T08:09:48.000Z | 2020-07-26T08:09:48.000Z | app/views.py | duncanmfield/finance-tool | 6c145c8f966cafe435d8676fdd7f22900d6825f6 | [
"MIT"
] | 22 | 2020-06-07T17:31:02.000Z | 2021-06-10T20:19:12.000Z | app/views.py | duncanmfield/finance-tool | 6c145c8f966cafe435d8676fdd7f22900d6825f6 | [
"MIT"
] | null | null | null | # -*- encoding: utf-8 -*-
"""
MIT License
Copyright (c) 2019 - present AppSeed.us
"""
from django.contrib.auth.decorators import login_required
from django.contrib.auth.mixins import LoginRequiredMixin
from django.db.models import Sum
from django.shortcuts import render
from django.template import loader
from django.h... | 33.994924 | 101 | 0.706286 | 775 | 6,697 | 5.91871 | 0.24 | 0.031175 | 0.037061 | 0.033137 | 0.370831 | 0.319817 | 0.274471 | 0.274471 | 0.202529 | 0.191847 | 0 | 0.004842 | 0.198148 | 6,697 | 197 | 102 | 33.994924 | 0.849348 | 0.026131 | 0 | 0.288732 | 0 | 0 | 0.07723 | 0.015507 | 0 | 0 | 0 | 0 | 0 | 1 | 0.126761 | false | 0 | 0.126761 | 0.056338 | 0.584507 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
7cb81e8a5973e89308dcb7c3b70ec67fdb79fbe7 | 845 | py | Python | VTdyn/run.py | jessiesrr/evo-epithelium | c3d7409d7889187abfda8c3e708b778afee6461a | [
"MIT"
] | 1 | 2020-06-02T06:37:50.000Z | 2020-06-02T06:37:50.000Z | VTdyn/run.py | jessiesrr/evo-epithelium | c3d7409d7889187abfda8c3e708b778afee6461a | [
"MIT"
] | null | null | null | VTdyn/run.py | jessiesrr/evo-epithelium | c3d7409d7889187abfda8c3e708b778afee6461a | [
"MIT"
] | null | null | null | import numpy as np
import libs.pd_lib as lib #library for simulation routines
import libs.data as data
import libs.plot as vplt #plotting library
from structure.global_constants import *
import structure.initialisation as init
from structure.cell import Tissue, BasicSpringForceNoGrowth
"""run a single voronoi tessella... | 36.73913 | 90 | 0.783432 | 122 | 845 | 5.352459 | 0.508197 | 0.045942 | 0.045942 | 0.058193 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015172 | 0.142012 | 845 | 23 | 91 | 36.73913 | 0.885517 | 0.268639 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4375 | 0 | 0.4375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
7cb821f40565466a65e6cd99befc73c70384a8b6 | 846 | py | Python | gentelella/sensor/migrations/0010_auto_20190701_1841.py | santiagocaballier/django-gentelella | a156aa19a77aac75462b8cd56ad3221b74ae8647 | [
"MIT"
] | null | null | null | gentelella/sensor/migrations/0010_auto_20190701_1841.py | santiagocaballier/django-gentelella | a156aa19a77aac75462b8cd56ad3221b74ae8647 | [
"MIT"
] | 3 | 2020-02-12T00:21:04.000Z | 2021-06-10T21:28:47.000Z | gentelella/sensor/migrations/0010_auto_20190701_1841.py | santiagocaballier/django-gentelella | a156aa19a77aac75462b8cd56ad3221b74ae8647 | [
"MIT"
] | null | null | null | # Generated by Django 2.1 on 2019-07-01 21:41
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('sensor', '0009_auto_20190525_1646'),
]
operations = [
migrations.RenameField(
model_name='alarma',
old_name='valor',
... | 24.882353 | 52 | 0.556738 | 81 | 846 | 5.592593 | 0.518519 | 0.110375 | 0.099338 | 0.13245 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065603 | 0.333333 | 846 | 33 | 53 | 25.636364 | 0.737589 | 0.050827 | 0 | 0.444444 | 1 | 0 | 0.1598 | 0.028714 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.037037 | 0 | 0.148148 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7cbb3652b8116eab085b5db7010de4c4df6139f9 | 2,991 | py | Python | pyqtgraph/canvas/TransformGuiTemplate_pyqt.py | sneakers-the-rat/pyqtgraph | 65ef2a5a60a1a08d0106e819110528b2ca3499a3 | [
"MIT"
] | 150 | 2018-03-27T16:45:37.000Z | 2022-03-30T03:47:56.000Z | pyqtgraph/canvas/TransformGuiTemplate_pyqt.py | sneakers-the-rat/pyqtgraph | 65ef2a5a60a1a08d0106e819110528b2ca3499a3 | [
"MIT"
] | 67 | 2019-11-30T14:45:05.000Z | 2022-03-14T20:26:06.000Z | pyqtgraph/canvas/TransformGuiTemplate_pyqt.py | sneakers-the-rat/pyqtgraph | 65ef2a5a60a1a08d0106e819110528b2ca3499a3 | [
"MIT"
] | 40 | 2018-04-06T19:42:21.000Z | 2022-01-11T00:34:17.000Z | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'pyqtgraph/canvas/TransformGuiTemplate.ui'
#
# Created by: PyQt4 UI code generator 4.11.4
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
_fromUtf8 = QtCore.QString.fromUtf8
except Attribute... | 43.347826 | 96 | 0.718823 | 284 | 2,991 | 7.492958 | 0.320423 | 0.078947 | 0.046992 | 0.052632 | 0.077068 | 0.077068 | 0.077068 | 0.077068 | 0.077068 | 0.077068 | 0 | 0.012107 | 0.171515 | 2,991 | 68 | 97 | 43.985294 | 0.846651 | 0.070545 | 0 | 0.111111 | 1 | 0 | 0.060245 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.092593 | false | 0 | 0.018519 | 0.055556 | 0.185185 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7cbc133b4db3e8fd050984713fa036c20f26bd0a | 14,584 | py | Python | src/plumbum/path/base.py | ownport/playbook | 6d3196ddf68f2c3c3efc4a52e26719c3e5596dca | [
"MIT"
] | 1 | 2018-09-10T10:01:25.000Z | 2018-09-10T10:01:25.000Z | src/plumbum/path/base.py | ownport/playbook | 6d3196ddf68f2c3c3efc4a52e26719c3e5596dca | [
"MIT"
] | null | null | null | src/plumbum/path/base.py | ownport/playbook | 6d3196ddf68f2c3c3efc4a52e26719c3e5596dca | [
"MIT"
] | null | null | null | from __future__ import absolute_import
import itertools
import operator
import os
from plumbum.lib import six
from abc import abstractmethod, abstractproperty
import warnings
from functools import reduce
class FSUser(int):
"""A special object that represents a file-system user. It derives from ``int``, so it be... | 36.921519 | 110 | 0.604498 | 1,813 | 14,584 | 4.740761 | 0.218423 | 0.055381 | 0.021175 | 0.018848 | 0.267016 | 0.229668 | 0.212682 | 0.196626 | 0.183362 | 0.183362 | 0 | 0.001989 | 0.275919 | 14,584 | 394 | 111 | 37.015228 | 0.811932 | 0.430129 | 0 | 0.385281 | 0 | 0 | 0.015233 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.354978 | false | 0.012987 | 0.034632 | 0.095238 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7cbd636cb16e3befc9ae27cb231696634e859a22 | 2,776 | py | Python | tensorflow/contrib/rpc/python/kernel_tests/rpc_op_test_servicer.py | tianyapiaozi/tensorflow | fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a | [
"Apache-2.0"
] | 71 | 2017-05-25T16:02:15.000Z | 2021-06-09T16:08:08.000Z | tensorflow/contrib/rpc/python/kernel_tests/rpc_op_test_servicer.py | shrikunjsarda/tensorflow | 7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae | [
"Apache-2.0"
] | 133 | 2017-04-26T16:49:49.000Z | 2019-10-15T11:39:26.000Z | tensorflow/contrib/rpc/python/kernel_tests/rpc_op_test_servicer.py | shrikunjsarda/tensorflow | 7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae | [
"Apache-2.0"
] | 31 | 2018-09-11T02:17:17.000Z | 2021-12-15T10:33:35.000Z | # Copyright 2018 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | 27.215686 | 79 | 0.692723 | 342 | 2,776 | 5.502924 | 0.409357 | 0.031881 | 0.047821 | 0.063762 | 0.404357 | 0.37779 | 0.37779 | 0.37779 | 0.327843 | 0.327843 | 0 | 0.008578 | 0.202089 | 2,776 | 101 | 80 | 27.485149 | 0.841084 | 0.51513 | 0 | 0.392857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009901 | 0 | 1 | 0.178571 | false | 0 | 0.285714 | 0 | 0.607143 | 0.035714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
7cc77d93e30942b776ed8de4c86a680aafa9a3ce | 1,719 | py | Python | src/reparsec/core/types.py | ethframe/reparsec | 3b1126e66df51d88bc7e76b4edb1f2c88ea1c3fb | [
"MIT"
] | 3 | 2022-01-18T14:42:52.000Z | 2022-02-22T13:40:20.000Z | src/reparsec/core/types.py | ethframe/reparsec | 3b1126e66df51d88bc7e76b4edb1f2c88ea1c3fb | [
"MIT"
] | null | null | null | src/reparsec/core/types.py | ethframe/reparsec | 3b1126e66df51d88bc7e76b4edb1f2c88ea1c3fb | [
"MIT"
] | null | null | null | from typing import Callable, Generic, NamedTuple, Tuple, TypeVar, Union
from typing_extensions import Literal
S = TypeVar("S")
S_contra = TypeVar("S_contra", contravariant=True)
V = TypeVar("V")
V_co = TypeVar("V_co", covariant=True)
class Loc(NamedTuple):
pos: int
line: int
col: int
class Ctx(Generic... | 25.656716 | 72 | 0.614892 | 240 | 1,719 | 4.229167 | 0.216667 | 0.053202 | 0.049261 | 0.035468 | 0.269951 | 0.238424 | 0.238424 | 0.080788 | 0 | 0 | 0 | 0.003155 | 0.262362 | 1,719 | 66 | 73 | 26.045455 | 0.797319 | 0 | 0 | 0.083333 | 0 | 0 | 0.034322 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.145833 | false | 0 | 0.041667 | 0.041667 | 0.541667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
7cc8551db26732d834ab62d94708f9d14f9441ab | 12,459 | py | Python | sdk/python/pulumi_azure_native/authorization/v20180101preview/role_definition.py | sebtelko/pulumi-azure-native | 711ec021b5c73da05611c56c8a35adb0ce3244e4 | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_native/authorization/v20180101preview/role_definition.py | sebtelko/pulumi-azure-native | 711ec021b5c73da05611c56c8a35adb0ce3244e4 | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_native/authorization/v20180101preview/role_definition.py | sebtelko/pulumi-azure-native | 711ec021b5c73da05611c56c8a35adb0ce3244e4 | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | 41.118812 | 418 | 0.64026 | 1,344 | 12,459 | 5.651786 | 0.103423 | 0.095577 | 0.081095 | 0.063718 | 0.700105 | 0.626909 | 0.55911 | 0.461822 | 0.385334 | 0.338204 | 0 | 0.003524 | 0.248415 | 12,459 | 302 | 419 | 41.254967 | 0.807668 | 0.189341 | 0 | 0.395722 | 1 | 0 | 0.1235 | 0.034639 | 0 | 0 | 0 | 0 | 0 | 1 | 0.144385 | false | 0.005348 | 0.037433 | 0 | 0.272727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7cd01c0e780c33eae1a0b056a1f874e98b15b0fa | 577 | py | Python | FullCode/danielCode/try2.py | EdmundGoodman/EES | f50247d4f98fee0cdf815b978e37fe035a35899c | [
"MIT"
] | null | null | null | FullCode/danielCode/try2.py | EdmundGoodman/EES | f50247d4f98fee0cdf815b978e37fe035a35899c | [
"MIT"
] | null | null | null | FullCode/danielCode/try2.py | EdmundGoodman/EES | f50247d4f98fee0cdf815b978e37fe035a35899c | [
"MIT"
] | null | null | null | from robotFunctions import *
import time#
while True:
u,x,y,width,height = robot.getBlocks()
if x is not None:
if x < 260 and x > 150:
print(y)
robot.Stop()
robot.Forward()
time.sleep(0.5)
robot.FlyWheelsOn()
time.sleep... | 25.086957 | 43 | 0.473137 | 66 | 577 | 4.136364 | 0.651515 | 0.098901 | 0.07326 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053254 | 0.414211 | 577 | 22 | 44 | 26.227273 | 0.754438 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.125 | 0 | 0.125 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7cd02d5b00c23c33e386ec018deceecab74cb60f | 4,971 | py | Python | src/scripts/craft_adversarial_examples.py | Kronemeyer/project-athena | 0e79cba1c4d30146326ce7bd311f69f2ee845e80 | [
"MIT"
] | null | null | null | src/scripts/craft_adversarial_examples.py | Kronemeyer/project-athena | 0e79cba1c4d30146326ce7bd311f69f2ee845e80 | [
"MIT"
] | null | null | null | src/scripts/craft_adversarial_examples.py | Kronemeyer/project-athena | 0e79cba1c4d30146326ce7bd311f69f2ee845e80 | [
"MIT"
] | null | null | null | """
A sample to generate adversarial examples.
@author: Ying Meng (y(dot)meng201011(at)gmail(dot)com)
"""
import argparse
import numpy as np
import os
import time
from matplotlib import pyplot as plt
from utils.model import load_lenet
from utils.file import load_from_json
from attacks.attack import generate
import me... | 39.452381 | 98 | 0.621404 | 612 | 4,971 | 4.901961 | 0.272876 | 0.056333 | 0.028333 | 0.018667 | 0.178333 | 0.126667 | 0.082667 | 0.082667 | 0.068 | 0.068 | 0 | 0.005153 | 0.258298 | 4,971 | 125 | 99 | 39.768 | 0.808516 | 0.183665 | 0 | 0.025641 | 1 | 0 | 0.169339 | 0.044088 | 0 | 0 | 0 | 0 | 0 | 1 | 0.012821 | false | 0 | 0.115385 | 0 | 0.128205 | 0.115385 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7cd6e499d3fb639c6a85e7b1d2bf1b8bbd28ee77 | 2,315 | py | Python | webserver.py | jillh510/video_story_arcs | f2c27785d05a6e18b23ce8ae0ee6d0567504082b | [
"MIT"
] | null | null | null | webserver.py | jillh510/video_story_arcs | f2c27785d05a6e18b23ce8ae0ee6d0567504082b | [
"MIT"
] | null | null | null | webserver.py | jillh510/video_story_arcs | f2c27785d05a6e18b23ce8ae0ee6d0567504082b | [
"MIT"
] | null | null | null | """
Copyright (C) 2014, Jill Huchital
"""
# test comment
from flask import Flask
from flask import render_template
from flask import jsonify
from flask import request
from playlists import get_all_playlists, create_playlists, get_all_categories, add_new_category, add_new_topic, get_all_topics
from db import connect_... | 28.9375 | 126 | 0.695896 | 334 | 2,315 | 4.57485 | 0.263473 | 0.039267 | 0.050393 | 0.054974 | 0.284031 | 0.216623 | 0.204188 | 0.175393 | 0.157068 | 0.096859 | 0 | 0.015938 | 0.159827 | 2,315 | 79 | 127 | 29.303797 | 0.769666 | 0.120518 | 0 | 0.072727 | 0 | 0 | 0.179842 | 0.071146 | 0 | 0 | 0 | 0.012658 | 0 | 1 | 0.181818 | false | 0 | 0.109091 | 0.054545 | 0.472727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7cdaa5f3f18c2536177f9e77728b76a6fe291304 | 5,060 | py | Python | geotrek/diving/admin.py | GeotrekCE/Geotrek-admin | efcc7a6c2ccb6aee6b299b22f33f236dd8a23d91 | [
"BSD-2-Clause"
] | 50 | 2016-10-19T23:01:21.000Z | 2022-03-28T08:28:34.000Z | geotrek/diving/admin.py | GeotrekCE/Geotrek-admin | efcc7a6c2ccb6aee6b299b22f33f236dd8a23d91 | [
"BSD-2-Clause"
] | 1,422 | 2016-10-27T10:39:40.000Z | 2022-03-31T13:37:10.000Z | geotrek/diving/admin.py | GeotrekCE/Geotrek-admin | efcc7a6c2ccb6aee6b299b22f33f236dd8a23d91 | [
"BSD-2-Clause"
] | 46 | 2016-10-27T10:59:10.000Z | 2022-03-22T15:55:56.000Z | from django import forms
from django.conf import settings
from django.contrib import admin
from django.core.exceptions import ValidationError
from django.db import transaction
from django.utils.translation import gettext_lazy as _
from geotrek.common.mixins import MergeActionMixin
from .models import (
Practice, D... | 33.071895 | 91 | 0.607708 | 596 | 5,060 | 5.08557 | 0.229866 | 0.04157 | 0.017156 | 0.023755 | 0.660508 | 0.65127 | 0.65127 | 0.65127 | 0.65127 | 0.65127 | 0 | 0.002235 | 0.292688 | 5,060 | 152 | 92 | 33.289474 | 0.844649 | 0.121739 | 0 | 0.558824 | 0 | 0 | 0.073103 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.088235 | 0 | 0.392157 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7cdd899d318f39072c9e030376153ddd24cba649 | 281 | py | Python | ABC062/ABC062b.py | VolgaKurvar/AtCoder | 21acb489f1594bbb1cdc64fbf8421d876b5b476d | [
"Unlicense"
] | null | null | null | ABC062/ABC062b.py | VolgaKurvar/AtCoder | 21acb489f1594bbb1cdc64fbf8421d876b5b476d | [
"Unlicense"
] | null | null | null | ABC062/ABC062b.py | VolgaKurvar/AtCoder | 21acb489f1594bbb1cdc64fbf8421d876b5b476d | [
"Unlicense"
] | null | null | null | # ABC062b
import sys
input = sys.stdin.readline
sys.setrecursionlimit(10**6)
h, w = map(int, input().split())
a = [input().replace('\n', '') for _ in range(h)]
print('#' * (w + 2))
for line in a:
print('#', end='')
print(line, end='')
print('#')
print('#' * (w + 2))
| 18.733333 | 49 | 0.544484 | 41 | 281 | 3.707317 | 0.585366 | 0.078947 | 0.092105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035242 | 0.192171 | 281 | 14 | 50 | 20.071429 | 0.634361 | 0.024911 | 0 | 0.181818 | 0 | 0 | 0.022059 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0.454545 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
7cdde03154f040eae9c2d581bec35736dab023da | 3,493 | py | Python | education/views.py | TolimanStaR/Course-Work | 79dbfcbaef0ae79209295fe8d36b6fd9610e99b8 | [
"MIT"
] | 1 | 2020-03-31T22:09:34.000Z | 2020-03-31T22:09:34.000Z | education/views.py | TolimanStaR/Course-Work | 79dbfcbaef0ae79209295fe8d36b6fd9610e99b8 | [
"MIT"
] | 8 | 2021-03-30T14:20:10.000Z | 2022-03-12T00:52:03.000Z | education/views.py | TolimanStaR/Course-Work | 79dbfcbaef0ae79209295fe8d36b6fd9610e99b8 | [
"MIT"
] | null | null | null | from django.contrib.auth.mixins import LoginRequiredMixin
from django.shortcuts import render, get_object_or_404
from django.contrib import messages
from django.db.models import Count
from django.urls import reverse_lazy
from django.views.generic import FormView, ListView
from django.views.generic.base import Template... | 33.586538 | 112 | 0.695677 | 392 | 3,493 | 6.040816 | 0.242347 | 0.033784 | 0.031672 | 0.038851 | 0.304899 | 0.213682 | 0.183277 | 0.158784 | 0.125845 | 0.125845 | 0 | 0.00287 | 0.202119 | 3,493 | 103 | 113 | 33.912621 | 0.846789 | 0.097624 | 0 | 0.1875 | 0 | 0 | 0.071588 | 0.023863 | 0 | 0 | 0 | 0 | 0 | 1 | 0.109375 | false | 0 | 0.15625 | 0.015625 | 0.609375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
7ce2c19fabdbd2ea9cea8fb81158ca59c1249969 | 12,179 | py | Python | netgrasp/utils/cli.py | jeremyandrews/netgrasp | 4ebc86c7023bc80415211925f972a1a78000bc54 | [
"BSD-2-Clause-FreeBSD"
] | 34 | 2017-05-01T09:55:03.000Z | 2021-02-21T19:40:22.000Z | netgrasp/utils/cli.py | jeremyandrews/netgrasp | 4ebc86c7023bc80415211925f972a1a78000bc54 | [
"BSD-2-Clause-FreeBSD"
] | 23 | 2017-05-29T18:12:09.000Z | 2017-08-13T10:20:12.000Z | netgrasp/utils/cli.py | jeremyandrews/netgrasp | 4ebc86c7023bc80415211925f972a1a78000bc54 | [
"BSD-2-Clause-FreeBSD"
] | 2 | 2017-07-13T22:05:38.000Z | 2019-05-15T15:57:54.000Z | from netgrasp import netgrasp
from netgrasp.database import database
from netgrasp.utils import pretty
def start(ng):
import os
pid = ng.is_running()
if pid:
ng.debugger.critical("Netgrasp is already running with pid %d.", (pid,))
ng.debugger.warning("Starting netgrasp...")
if os.getuid(... | 36.247024 | 276 | 0.604401 | 1,591 | 12,179 | 4.550597 | 0.150849 | 0.051243 | 0.044751 | 0.029834 | 0.513812 | 0.468646 | 0.410773 | 0.380249 | 0.35663 | 0.328729 | 0 | 0.007796 | 0.241728 | 12,179 | 335 | 277 | 36.355224 | 0.776178 | 0.019213 | 0 | 0.440476 | 0 | 0.003968 | 0.2407 | 0.012735 | 0 | 0 | 0 | 0.002985 | 0 | 0 | null | null | 0 | 0.051587 | null | null | 0.039683 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7ce728931d2a6f652acdbdf92c410df4f8281f04 | 3,848 | py | Python | frappe/website/sync.py | gangadharkadam/smrtfrappe | cadc0bee556d10ee814907a128f57e5af7456345 | [
"MIT"
] | null | null | null | frappe/website/sync.py | gangadharkadam/smrtfrappe | cadc0bee556d10ee814907a128f57e5af7456345 | [
"MIT"
] | null | null | null | frappe/website/sync.py | gangadharkadam/smrtfrappe | cadc0bee556d10ee814907a128f57e5af7456345 | [
"MIT"
] | 1 | 2018-03-21T21:08:29.000Z | 2018-03-21T21:08:29.000Z | # Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
# MIT License. See license.txt
from __future__ import unicode_literals
import frappe, os, sys
from frappe.modules import load_doctype_module
from frappe.utils.nestedset import rebuild_tree
from frappe.utils import update_progress_bar
import static... | 28.087591 | 114 | 0.7079 | 560 | 3,848 | 4.675 | 0.258929 | 0.034377 | 0.022918 | 0.017189 | 0.126432 | 0.093583 | 0.051566 | 0.051566 | 0.051566 | 0.02903 | 0 | 0.004685 | 0.167879 | 3,848 | 136 | 115 | 28.294118 | 0.812929 | 0.058992 | 0 | 0.144231 | 0 | 0 | 0.125692 | 0.007752 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.009615 | 0.057692 | null | null | 0.019231 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7ce7c3f2f2ef944abe0707d4719895ffa8695f39 | 2,186 | py | Python | test.py | terrifyzhao/multi_task_lm | b60bfe34a02e5483540062074b24135753c537cd | [
"Apache-2.0"
] | 1 | 2022-02-16T06:34:16.000Z | 2022-02-16T06:34:16.000Z | test.py | terrifyzhao/multi_task_lm | b60bfe34a02e5483540062074b24135753c537cd | [
"Apache-2.0"
] | null | null | null | test.py | terrifyzhao/multi_task_lm | b60bfe34a02e5483540062074b24135753c537cd | [
"Apache-2.0"
] | null | null | null | # import torch
# import torch.nn as nn
# from torch.optim import Adam
# from annlp import fix_seed
#
# fix_seed()
#
#
# class Net(nn.Module):
# def __init__(self, ):
# super(Net, self).__init__()
# self.linear = nn.Linear(8, 2, bias=False)
# self.relu = nn.ReLU()
# # self.weight = nn... | 21.86 | 73 | 0.593779 | 347 | 2,186 | 3.648415 | 0.348703 | 0.031596 | 0.014218 | 0.023697 | 0.14218 | 0.037915 | 0.037915 | 0.037915 | 0 | 0 | 0 | 0.040781 | 0.203568 | 2,186 | 99 | 74 | 22.080808 | 0.686387 | 0.741537 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.25 | 0 | 0.583333 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
7ce80da1a5b648b7d54ba4d121f661ac9ba753af | 745 | py | Python | mypackage/mychildpackage/module_one.py | hylkepostma/python-demo-import-mechanism | 9426d3ee71207b9b36be066c597648c27d7d9b69 | [
"MIT"
] | null | null | null | mypackage/mychildpackage/module_one.py | hylkepostma/python-demo-import-mechanism | 9426d3ee71207b9b36be066c597648c27d7d9b69 | [
"MIT"
] | null | null | null | mypackage/mychildpackage/module_one.py | hylkepostma/python-demo-import-mechanism | 9426d3ee71207b9b36be066c597648c27d7d9b69 | [
"MIT"
] | null | null | null | import sys
import os
if getattr(sys, 'frozen', False):
# running as an executable
print("running as an executable")
bundle_dir = sys._MEIPASS
else:
# running as an .py
print("running as a .py")
bundle_dir = os.path.dirname(os.path.abspath(__file__))
print('running' if __name__ == '__main__' ... | 20.135135 | 87 | 0.65906 | 104 | 745 | 4.423077 | 0.384615 | 0.078261 | 0.071739 | 0.091304 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003322 | 0.191946 | 745 | 36 | 88 | 20.694444 | 0.760797 | 0.056376 | 0 | 0.086957 | 0 | 0 | 0.275714 | 0.035714 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0.043478 | 0.130435 | 0 | 0.26087 | 0.478261 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
7ceebd5e04e5588145193702260e941f87c7d2a8 | 3,557 | py | Python | orcinus/workspace/workspace.py | orcinus-lang/orcinus-bootstrap | 3a4766f05a21ca5d4cd6384d1857ec1ffaa09518 | [
"MIT"
] | null | null | null | orcinus/workspace/workspace.py | orcinus-lang/orcinus-bootstrap | 3a4766f05a21ca5d4cd6384d1857ec1ffaa09518 | [
"MIT"
] | null | null | null | orcinus/workspace/workspace.py | orcinus-lang/orcinus-bootstrap | 3a4766f05a21ca5d4cd6384d1857ec1ffaa09518 | [
"MIT"
] | null | null | null | # Copyright (C) 2019 Vasiliy Sheredeko
#
# This software may be modified and distributed under the terms
# of the MIT license. See the LICENSE file for details.
from __future__ import annotations
import logging
import os
import urllib.parse
from typing import Sequence, Optional
from orcinus.exceptions import Orcinus... | 35.57 | 94 | 0.672477 | 441 | 3,557 | 5.219955 | 0.256236 | 0.052129 | 0.066898 | 0.054735 | 0.370547 | 0.225456 | 0.146394 | 0.146394 | 0.12033 | 0.12033 | 0 | 0.001842 | 0.236716 | 3,557 | 99 | 95 | 35.929293 | 0.846041 | 0.171212 | 0 | 0.155172 | 0 | 0 | 0.052873 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.137931 | false | 0.017241 | 0.172414 | 0 | 0.517241 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
7cf69456fcc2c5d16dd59b1ebc4bae8051791a2d | 1,017 | py | Python | Test/math.py | TwT520Ly/Pytorch-Study | 873fe6f1b5b0289b29b33a76f03c49be774f644b | [
"Apache-2.0"
] | null | null | null | Test/math.py | TwT520Ly/Pytorch-Study | 873fe6f1b5b0289b29b33a76f03c49be774f644b | [
"Apache-2.0"
] | null | null | null | Test/math.py | TwT520Ly/Pytorch-Study | 873fe6f1b5b0289b29b33a76f03c49be774f644b | [
"Apache-2.0"
] | null | null | null | import torch
# same dims && broadcast
x = torch.tensor([[1, 2], [1, 2]])
y = torch.tensor([[2, 1], [1, 2]])
print(x * y)
z = torch.mul(x, y)
print(z)
# only one element
x = torch.tensor([1, 2, 3])
y = 5
print(x * y)
z = torch.mul(x, y)
print(z)
# row or col (broadcast)
x = torch.tensor([1, 2, 3])
y = torch.tensor([2... | 20.34 | 79 | 0.594887 | 205 | 1,017 | 2.95122 | 0.185366 | 0.042975 | 0.104132 | 0.119008 | 0.719008 | 0.657851 | 0.545455 | 0.459504 | 0.383471 | 0.383471 | 0 | 0.060142 | 0.166175 | 1,017 | 50 | 80 | 20.34 | 0.653302 | 0.220256 | 0 | 0.72973 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.027027 | 0 | 0.027027 | 0.351351 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7cfa8420060a017c6df189bcd26cc6316da090bf | 2,843 | py | Python | web/urls.py | xuweijiaFrank/atxserver2 | 4ffc2c4228ff808e836229d7395a3ab049d33278 | [
"MIT"
] | 2 | 2019-06-18T06:27:02.000Z | 2021-09-02T14:49:35.000Z | web/urls.py | xuweijiaFrank/atxserver2 | 4ffc2c4228ff808e836229d7395a3ab049d33278 | [
"MIT"
] | null | null | null | web/urls.py | xuweijiaFrank/atxserver2 | 4ffc2c4228ff808e836229d7395a3ab049d33278 | [
"MIT"
] | null | null | null | # coding: utf-8
#
import os
from .views import LogoutHandler, MainHandler
from .views.base import make_redirect_handler
from .views.device import (AndroidDeviceControlHandler, APIDeviceHandler,
APIDeviceListHandler, APIDevicePropertiesHandler,
APIUserDeviceActiveH... | 46.606557 | 91 | 0.669012 | 265 | 2,843 | 7.158491 | 0.309434 | 0.050079 | 0.04428 | 0.0369 | 0.219821 | 0.144439 | 0.096995 | 0.054823 | 0.054823 | 0 | 0 | 0.008917 | 0.17165 | 2,843 | 60 | 92 | 47.383333 | 0.796603 | 0.159339 | 0 | 0 | 0 | 0 | 0.204315 | 0.104484 | 0 | 0 | 0 | 0.016667 | 0 | 1 | 0 | false | 0 | 0.173913 | 0 | 0.173913 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7cfb92a6203f640a0b067169c64b59f82f90e2a0 | 5,811 | py | Python | compile_lists.py | Michael-E-Rose/NBERSummerInstitutes | 47d141daa9fbc08ab4b2e65d9ab74667222b5eb2 | [
"MIT"
] | null | null | null | compile_lists.py | Michael-E-Rose/NBERSummerInstitutes | 47d141daa9fbc08ab4b2e65d9ab74667222b5eb2 | [
"MIT"
] | null | null | null | compile_lists.py | Michael-E-Rose/NBERSummerInstitutes | 47d141daa9fbc08ab4b2e65d9ab74667222b5eb2 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# Author: Michael E. Rose <michael.ernst.rose@gmail.com>
"""Compiles source files to generate two json objects.
One json dump is sorted by year and then group, the other one by group first
and then by year.
"""
import os
from collections import defaultdict
from glob import glob
from json impo... | 37.733766 | 92 | 0.518327 | 686 | 5,811 | 4.260933 | 0.265306 | 0.040712 | 0.019158 | 0.019158 | 0.236401 | 0.162162 | 0.151215 | 0.131372 | 0.131372 | 0.115635 | 0 | 0.008 | 0.354672 | 5,811 | 153 | 93 | 37.980392 | 0.771467 | 0.121494 | 0 | 0.262712 | 1 | 0 | 0.092396 | 0.013396 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016949 | false | 0.016949 | 0.059322 | 0 | 0.076271 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6b099f32c14d9ba83093b187d2cb6d96d808d1df | 25,672 | py | Python | tests/test_operation2.py | jonasboecquaert/connexion | b561ecfdaacd7606d1398512762b946e2d778c74 | [
"Apache-2.0"
] | 49 | 2021-12-30T16:44:16.000Z | 2022-03-31T19:33:12.000Z | tests/test_operation2.py | jonasboecquaert/connexion | b561ecfdaacd7606d1398512762b946e2d778c74 | [
"Apache-2.0"
] | 221 | 2022-02-07T20:30:28.000Z | 2022-03-31T20:40:12.000Z | tests/test_operation2.py | jonasboecquaert/connexion | b561ecfdaacd7606d1398512762b946e2d778c74 | [
"Apache-2.0"
] | 15 | 2022-02-07T17:20:04.000Z | 2022-03-31T15:14:41.000Z | import copy
import logging
import math
import pathlib
import types
from unittest import mock
import pytest
from connexion.apis.flask_api import Jsonifier
from connexion.exceptions import InvalidSpecification
from connexion.json_schema import resolve_refs
from connexion.middleware.security import SecurityOperation
from... | 48.992366 | 116 | 0.509933 | 2,210 | 25,672 | 5.731674 | 0.1181 | 0.046183 | 0.067735 | 0.033157 | 0.741217 | 0.67064 | 0.655325 | 0.625878 | 0.622878 | 0.610563 | 0 | 0.009181 | 0.372079 | 25,672 | 523 | 117 | 49.086042 | 0.776613 | 0.019866 | 0 | 0.590389 | 0 | 0 | 0.289656 | 0.038621 | 0 | 0 | 0 | 0 | 0.064073 | 1 | 0.038902 | false | 0.01373 | 0.029748 | 0.002288 | 0.073227 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6b0b2a5c08f0d42d4bfe8797c6d7e81c1e1c27db | 11,051 | py | Python | gpsTime.py | mikemoorester/ESM | 548db33e04b6534cf66013501fdbad317a2fc403 | [
"MIT"
] | null | null | null | gpsTime.py | mikemoorester/ESM | 548db33e04b6534cf66013501fdbad317a2fc403 | [
"MIT"
] | null | null | null | gpsTime.py | mikemoorester/ESM | 548db33e04b6534cf66013501fdbad317a2fc403 | [
"MIT"
] | 1 | 2021-04-29T05:08:10.000Z | 2021-04-29T05:08:10.000Z | import numpy as np
from math import modf
import datetime as dt
import calendar
def cal2jd(yr,mn,dy) :
"""
CAL2JD Converts calendar date to Julian date using algorithm
from "Practical Ephemeris Calculations" by Oliver Montenbruck
(Springer-Verlag, 1989). Uses astronomical year for B.C. dates
(2 BC... | 27.836272 | 122 | 0.561216 | 1,726 | 11,051 | 3.578795 | 0.163963 | 0.016999 | 0.026712 | 0.023312 | 0.459608 | 0.44439 | 0.421564 | 0.387729 | 0.383843 | 0.369759 | 0 | 0.090445 | 0.290652 | 11,051 | 396 | 123 | 27.906566 | 0.697538 | 0.140168 | 0 | 0.248175 | 0 | 0 | 0.014614 | 0 | 0 | 0 | 0 | 0.002525 | 0 | 0 | null | null | 0 | 0.029197 | null | null | 0.036496 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6b0c86ff79b6393550a19e42ea01eda98e6fb018 | 1,041 | py | Python | rdmo/core/serializers.py | BlackLotus/rdmo | d8063055f0421b9a218453d55cd32051b2d4ca21 | [
"Apache-2.0"
] | null | null | null | rdmo/core/serializers.py | BlackLotus/rdmo | d8063055f0421b9a218453d55cd32051b2d4ca21 | [
"Apache-2.0"
] | null | null | null | rdmo/core/serializers.py | BlackLotus/rdmo | d8063055f0421b9a218453d55cd32051b2d4ca21 | [
"Apache-2.0"
] | null | null | null | from markdown import markdown as markdown_function
from django.utils.encoding import force_text
from rest_framework import serializers
class RecursiveField(serializers.Serializer):
def to_representation(self, value):
serializer = self.parent.parent.__class__(value, context=self.context)
return ... | 27.394737 | 98 | 0.737752 | 112 | 1,041 | 6.669643 | 0.375 | 0.087015 | 0.084337 | 0.06158 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00237 | 0.189241 | 1,041 | 37 | 99 | 28.135135 | 0.882701 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.136364 | 0.090909 | 0.772727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
6b14e732d5e36c33e44ce1e04c11bdd0b61f38a5 | 2,554 | py | Python | sm2/datasets/cpunish/data.py | jbrockmendel/sm2 | c02a3f9a4fcba35ffc8c852ca5ad8b9d7620f4cf | [
"BSD-3-Clause"
] | 1 | 2021-08-02T13:48:59.000Z | 2021-08-02T13:48:59.000Z | sm2/datasets/cpunish/data.py | jbrockmendel/sm2 | c02a3f9a4fcba35ffc8c852ca5ad8b9d7620f4cf | [
"BSD-3-Clause"
] | 24 | 2018-03-26T00:44:58.000Z | 2018-10-09T17:06:07.000Z | sm2/datasets/cpunish/data.py | jbrockmendel/sm2 | c02a3f9a4fcba35ffc8c852ca5ad8b9d7620f4cf | [
"BSD-3-Clause"
] | null | null | null | """US Capital Punishment dataset."""
from sm2.datasets import utils as du
__docformat__ = 'restructuredtext'
COPYRIGHT = """Used with express permission from the original author,
who retains all rights."""
TITLE = __doc__
SOURCE = """
Jeff Gill's `Generalized Linear Models: A Unified Approach`
http://jgill.wustl.edu... | 30.771084 | 78 | 0.70556 | 357 | 2,554 | 4.966387 | 0.439776 | 0.01692 | 0.025381 | 0.019177 | 0.330513 | 0.282008 | 0.253807 | 0.21207 | 0.169205 | 0.06881 | 0 | 0.025202 | 0.223179 | 2,554 | 82 | 79 | 31.146341 | 0.868448 | 0.184025 | 0 | 0.068182 | 0 | 0 | 0.760521 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068182 | false | 0 | 0.022727 | 0 | 0.159091 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6b1aba4433bfc6815fef5ad0d466c4ff4a070e73 | 2,826 | py | Python | matrixtoolkit/display.py | cujomalainey/matrix-toolkit | a4ae192d86b60a1de9cd850bcb41bc4685e30dfc | [
"MIT"
] | 6 | 2016-02-28T19:26:57.000Z | 2018-02-14T19:03:16.000Z | matrixtoolkit/display.py | cujomalainey/matrix-toolkit | a4ae192d86b60a1de9cd850bcb41bc4685e30dfc | [
"MIT"
] | 3 | 2015-10-29T16:10:34.000Z | 2020-01-07T03:21:59.000Z | matrixtoolkit/display.py | cujomalainey/matrix-toolkit | a4ae192d86b60a1de9cd850bcb41bc4685e30dfc | [
"MIT"
] | null | null | null | from Tkinter import Tk, Label
from PIL import Image, ImageTk, ImageDraw
import threading
class display():
def __init__(self, matrix_height, chain_length, scale=6):
"""
run: function to run once setup is complete
kill: deconstructor once simulation is closed
scale: integer to scale ... | 29.134021 | 79 | 0.539632 | 346 | 2,826 | 4.355491 | 0.33237 | 0.089582 | 0.034506 | 0.069011 | 0.250829 | 0.186463 | 0.066357 | 0.066357 | 0.066357 | 0 | 0 | 0.008547 | 0.33758 | 2,826 | 96 | 80 | 29.4375 | 0.796474 | 0.145435 | 0 | 0.137931 | 0 | 0 | 0.009835 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.172414 | false | 0.051724 | 0.051724 | 0 | 0.241379 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
6b1c42b5c580b7d8afcac08d1da0ea9a90cc4c5f | 2,028 | py | Python | assignment3/src/plot.py | zxybazh/PRML-Assignment | 2b750fecf91d468a2d5638bdfd13f741de013a47 | [
"MIT"
] | 2 | 2017-07-06T06:56:01.000Z | 2017-07-08T14:29:56.000Z | assignment3/src/plot.py | zxybazh/PRML-Assignment | 2b750fecf91d468a2d5638bdfd13f741de013a47 | [
"MIT"
] | null | null | null | assignment3/src/plot.py | zxybazh/PRML-Assignment | 2b750fecf91d468a2d5638bdfd13f741de013a47 | [
"MIT"
] | null | null | null | from dataloader import *
from discriminative_classfier import *
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
import pandas as pd
from matplotlib import style
import random
data_lambda = range(1, 10) + range(10, 105, 5)
for pp in ["", "z", "log", "binarized"]:
e_training = []
e... | 36.872727 | 111 | 0.642998 | 308 | 2,028 | 4.100649 | 0.334416 | 0.049881 | 0.041172 | 0.05384 | 0.326207 | 0.272367 | 0.185273 | 0.074426 | 0.074426 | 0.074426 | 0 | 0.02305 | 0.16568 | 2,028 | 55 | 112 | 36.872727 | 0.723404 | 0.148422 | 0 | 0 | 0 | 0 | 0.204436 | 0.031175 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.210526 | null | null | 0.078947 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6b1f268c8a2473bdb6d1c0ae31afdd434ba2990b | 3,696 | py | Python | src/connectors/redis/base_redis_application.py | jayvdb/sci-pype | 6bff42ea4eb32d35b9f223db312e4cd0d3911100 | [
"Apache-2.0"
] | 114 | 2016-08-01T05:08:32.000Z | 2022-01-12T07:42:37.000Z | src/connectors/redis/base_redis_application.py | jay-johnson/datanode | 0b491332f8b74478c02c9951a997702db1b79d9e | [
"Apache-2.0"
] | 7 | 2021-02-08T20:23:39.000Z | 2022-03-11T23:25:28.000Z | src/connectors/redis/base_redis_application.py | jay-johnson/datanode | 0b491332f8b74478c02c9951a997702db1b79d9e | [
"Apache-2.0"
] | 20 | 2016-08-05T00:09:18.000Z | 2022-01-13T01:12:31.000Z | import json, sys, os
sys.path.append("/opt/src")
from connectors.redis.redis_wrapper import RedisWrapper
class BaseRedisApplication:
def __init__(self, name, redis_address, port, redis_queue, logger, request_key_name=None, response_key_name=None, debug=False):
self.m_name = name
... | 26.589928 | 131 | 0.579004 | 491 | 3,696 | 4.028513 | 0.201629 | 0.123862 | 0.065723 | 0.075834 | 0.351365 | 0.252781 | 0.20273 | 0.137513 | 0.107179 | 0.107179 | 0 | 0.008326 | 0.350108 | 3,696 | 138 | 132 | 26.782609 | 0.815154 | 0.125 | 0 | 0.341772 | 0 | 0 | 0.027674 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.037975 | 0.025316 | null | null | 0.012658 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6b1fcc35acd4e1151b2e1a9b5133fa87b7ed2e95 | 1,038 | py | Python | spider/instances/inst_save.py | Zcyd25/PSpider | 9fd133a15b86e95c0ad687a8c83d6ac9e3c8909f | [
"BSD-2-Clause"
] | 1,894 | 2016-10-17T17:11:18.000Z | 2022-03-30T19:20:04.000Z | spider/instances/inst_save.py | Zcyd25/PSpider | 9fd133a15b86e95c0ad687a8c83d6ac9e3c8909f | [
"BSD-2-Clause"
] | 32 | 2016-11-30T08:47:39.000Z | 2022-02-20T04:46:10.000Z | spider/instances/inst_save.py | Zcyd25/PSpider | 9fd133a15b86e95c0ad687a8c83d6ac9e3c8909f | [
"BSD-2-Clause"
] | 638 | 2016-10-18T01:23:27.000Z | 2022-03-21T07:05:30.000Z | # _*_ coding: utf-8 _*_
"""
inst_save.py by xianhu
"""
class Saver(object):
"""
class of Saver, must include function working()
"""
def working(self, priority: int, url: str, keys: dict, deep: int, item: object) -> (int, object):
"""
working function, must "try-except" and don't chan... | 33.483871 | 115 | 0.627168 | 136 | 1,038 | 4.610294 | 0.426471 | 0.057416 | 0.062201 | 0.090909 | 0.175439 | 0.175439 | 0.175439 | 0.175439 | 0.175439 | 0.175439 | 0 | 0.005208 | 0.260116 | 1,038 | 30 | 116 | 34.6 | 0.811198 | 0.397881 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6b2a755378c877c53b748c35ad1ac94305726aa6 | 320 | py | Python | Toolkits/VCS/mygulamali__repo-mine/mine/settings.py | roscopecoltran/SniperKit-Core | 4600dffe1cddff438b948b6c22f586d052971e04 | [
"MIT"
] | null | null | null | Toolkits/VCS/mygulamali__repo-mine/mine/settings.py | roscopecoltran/SniperKit-Core | 4600dffe1cddff438b948b6c22f586d052971e04 | [
"MIT"
] | null | null | null | Toolkits/VCS/mygulamali__repo-mine/mine/settings.py | roscopecoltran/SniperKit-Core | 4600dffe1cddff438b948b6c22f586d052971e04 | [
"MIT"
] | null | null | null | import os
from dotenv import load_dotenv, find_dotenv
from github import Github
from peewee import SqliteDatabase
load_dotenv(find_dotenv())
DATABASE = SqliteDatabase(os.getenv("DATABASE", None))
GITHUB_CLIENT = Github(os.getenv("GITHUB_API_TOKEN", None))
GITHUB_ORGANIZATION = os.getenv("GITHUB_ORGANIZATION", None)
| 26.666667 | 60 | 0.809375 | 43 | 320 | 5.813953 | 0.372093 | 0.096 | 0.112 | 0.16 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096875 | 320 | 11 | 61 | 29.090909 | 0.865052 | 0 | 0 | 0 | 0 | 0 | 0.134375 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
6b35dabc8c04d77e01664d86a44876092a6b42b8 | 1,638 | py | Python | demo/test.py | sugarflower/caya | 40acc237a1e367c757356e8754d11928b01b3f82 | [
"MIT"
] | null | null | null | demo/test.py | sugarflower/caya | 40acc237a1e367c757356e8754d11928b01b3f82 | [
"MIT"
] | 1 | 2021-11-15T11:38:15.000Z | 2021-11-15T16:16:01.000Z | demo/test.py | sugarflower/caya | 40acc237a1e367c757356e8754d11928b01b3f82 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
from caya.core import *
from caya.font8x8 import *
import random
class myApp(CAYA):
def setup(self):
self.setSize((160,160),(320,320))
self.setTitle("PYG2 Test")
self.setIcon("res/snake.png")
self.img = self.loadImage("res/pic.png")
font = Font(self)
self.img_shake = font.createS... | 23.070423 | 64 | 0.630647 | 275 | 1,638 | 3.716364 | 0.32 | 0.123288 | 0.139922 | 0.178082 | 0.293542 | 0.111546 | 0 | 0 | 0 | 0 | 0 | 0.069444 | 0.164835 | 1,638 | 70 | 65 | 23.4 | 0.677632 | 0.010379 | 0 | 0 | 0 | 0 | 0.098425 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.068182 | 0 | 0.136364 | 0.022727 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6b4215c5a93dccaf7c891c3bc184b65b1f99e7d6 | 2,275 | py | Python | digit_recognizer.py | jackyteoh/digit_recognizer | 95f1681e1c6bc798169957a413d93b2a4a58816f | [
"MIT"
] | null | null | null | digit_recognizer.py | jackyteoh/digit_recognizer | 95f1681e1c6bc798169957a413d93b2a4a58816f | [
"MIT"
] | null | null | null | digit_recognizer.py | jackyteoh/digit_recognizer | 95f1681e1c6bc798169957a413d93b2a4a58816f | [
"MIT"
] | null | null | null | #Jacky Teoh
#Handwritten Digit Recognizer
#50 hidden nodes
#then 100, then 300 once the initial 50 are working
#5 output nodes (0 1 2 3 4)
#train raw and train labels go together
#test raw and test labels go together
#each image in the raw corresponds to each label
# 28x28 pixels = 784 pixels total
# read in images o... | 28.4375 | 106 | 0.723077 | 384 | 2,275 | 4.182292 | 0.346354 | 0.075342 | 0.0467 | 0.052927 | 0.07721 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038337 | 0.185934 | 2,275 | 80 | 107 | 28.4375 | 0.828834 | 0.455385 | 0 | 0.043478 | 0 | 0 | 0.101068 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.021739 | null | null | 0.108696 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6b47ab008e733976d6de219e4a68f2d4ac5dd0d7 | 1,478 | py | Python | bspump/declarative/libraries.py | chinese-soup/BitSwanPump | 6ef71577cc1f166cff80876d28be37c791061bd2 | [
"BSD-3-Clause"
] | 1 | 2020-08-20T12:56:58.000Z | 2020-08-20T12:56:58.000Z | bspump/declarative/libraries.py | chinese-soup/BitSwanPump | 6ef71577cc1f166cff80876d28be37c791061bd2 | [
"BSD-3-Clause"
] | null | null | null | bspump/declarative/libraries.py | chinese-soup/BitSwanPump | 6ef71577cc1f166cff80876d28be37c791061bd2 | [
"BSD-3-Clause"
] | null | null | null | import abc
import os
import aiozk
class DeclarationLibrary(abc.ABC):
@abc.abstractmethod
def read(self, identifier):
"""
:param identifier: identifier of the declaration
:return: loaded declaration or None, if no declaration identified by the identifier found
"""
pass
class FileDeclarationLibrary(Decl... | 24.229508 | 91 | 0.724628 | 174 | 1,478 | 6.028736 | 0.413793 | 0.030505 | 0.031459 | 0.060057 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00081 | 0.165088 | 1,478 | 60 | 92 | 24.633333 | 0.849271 | 0.131935 | 0 | 0.230769 | 0 | 0 | 0.01746 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.128205 | false | 0.051282 | 0.076923 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
8608c46dca72eb340f12914138e211abf554289f | 1,435 | py | Python | api/models.py | sarartur/pentools | 84cf436aaf35ed2ea8b7e2bdcdc790699bbe7295 | [
"MIT"
] | null | null | null | api/models.py | sarartur/pentools | 84cf436aaf35ed2ea8b7e2bdcdc790699bbe7295 | [
"MIT"
] | null | null | null | api/models.py | sarartur/pentools | 84cf436aaf35ed2ea8b7e2bdcdc790699bbe7295 | [
"MIT"
] | null | null | null | from enum import unique
import uuid
from sqlalchemy import Column, Integer, String, DateTime, ForeignKey, Text
from sqlalchemy.orm import relationship
from sqlalchemy.sql.expression import null
from uuid import uuid4
from datetime import datetime
from pytz import timezone
from .database import Base
tz_est = timezone(... | 29.285714 | 74 | 0.735192 | 174 | 1,435 | 5.867816 | 0.356322 | 0.063663 | 0.058766 | 0.073457 | 0.12145 | 0.060725 | 0 | 0 | 0 | 0 | 0 | 0.013201 | 0.155401 | 1,435 | 48 | 75 | 29.895833 | 0.829208 | 0 | 0 | 0.058824 | 0 | 0 | 0.107542 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.264706 | 0 | 0.911765 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
8609a5998981b3aa045e042d64f27e6b2a999186 | 1,258 | py | Python | Algorithms/Python/InterpolationSearch.py | Shaswat-2203/HacktoberfestForBeginners | 39d2862ced151493b93bf13f43d751f95a468198 | [
"MIT"
] | 115 | 2019-10-12T02:30:40.000Z | 2022-03-31T21:42:58.000Z | Algorithms/Python/InterpolationSearch.py | pruvi007/HacktoberfestForBeginners | 97b2122a5a0f548fcecb1a6d582adca92b1968c0 | [
"MIT"
] | 37 | 2019-10-11T18:25:44.000Z | 2021-10-08T06:16:45.000Z | Algorithms/Python/InterpolationSearch.py | pruvi007/HacktoberfestForBeginners | 97b2122a5a0f548fcecb1a6d582adca92b1968c0 | [
"MIT"
] | 481 | 2019-10-11T18:01:47.000Z | 2022-03-25T11:11:02.000Z | """
This is pure python implementation of interpolation search algorithm
"""
"""Pure implementation of interpolation search algorithm in Python
Be careful collection must be ascending sorted, otherwise result will be
unpredictable
"""
def interpolation_search(sorted_collection, item):
left = 0
right = len(sor... | 28.590909 | 79 | 0.550079 | 126 | 1,258 | 5.380952 | 0.285714 | 0.235988 | 0.117994 | 0.103245 | 0.20944 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006402 | 0.379173 | 1,258 | 43 | 80 | 29.255814 | 0.861716 | 0.054054 | 0 | 0.233333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
860b0b84c748fbea31ba2eca247e8b16ce21906a | 54,131 | py | Python | src/wormhole/test/test_machines.py | Rsprt/magic-wormhole | 7315cee9d65826e967ce68ea0c0fddcdde30a72d | [
"MIT"
] | null | null | null | src/wormhole/test/test_machines.py | Rsprt/magic-wormhole | 7315cee9d65826e967ce68ea0c0fddcdde30a72d | [
"MIT"
] | null | null | null | src/wormhole/test/test_machines.py | Rsprt/magic-wormhole | 7315cee9d65826e967ce68ea0c0fddcdde30a72d | [
"MIT"
] | 1 | 2018-11-14T01:57:39.000Z | 2018-11-14T01:57:39.000Z | from __future__ import print_function, unicode_literals
import json
from nacl.secret import SecretBox
from spake2 import SPAKE2_Symmetric
from twisted.trial import unittest
from zope.interface import directlyProvides, implementer
import mock
from .. import (__version__, _allocator, _boss, _code, _input, _key, _list... | 33.642635 | 79 | 0.549205 | 6,245 | 54,131 | 4.619856 | 0.077502 | 0.136737 | 0.163045 | 0.039063 | 0.733146 | 0.676233 | 0.606877 | 0.563689 | 0.539184 | 0.514298 | 0 | 0.021629 | 0.291072 | 54,131 | 1,608 | 80 | 33.663557 | 0.730189 | 0.055938 | 0 | 0.721673 | 0 | 0 | 0.128369 | 0.013937 | 0 | 0 | 0 | 0.000622 | 0.231179 | 1 | 0.068441 | false | 0.001521 | 0.009125 | 0.001521 | 0.102662 | 0.00076 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
860b50f3c977a4aa9f439e42f0019f87d394f3c9 | 2,517 | py | Python | Password Holder/passwordholder.py | KarlofKuwait/Gui-Practice | b1d05da9475ac62630cb30fd7963ed3d99dbd241 | [
"MIT"
] | 1 | 2019-04-06T12:26:27.000Z | 2019-04-06T12:26:27.000Z | Password Holder/passwordholder.py | KarlofKuwait/Gui-Practice | b1d05da9475ac62630cb30fd7963ed3d99dbd241 | [
"MIT"
] | 1 | 2019-04-24T01:28:17.000Z | 2019-04-27T11:28:23.000Z | Password Holder/passwordholder.py | KarlofKuwait/Gui-Practice | b1d05da9475ac62630cb30fd7963ed3d99dbd241 | [
"MIT"
] | 2 | 2019-05-15T06:44:05.000Z | 2019-10-05T07:39:12.000Z | """
Name: Password Manager
Made By: Mads Hermansen
Github: https://github.com/KarlofKuwait
Date: 05/05/2019
"""
import passwordholderfunc as phf
def set_default():
global HOLDER
HOLDER.FindElement("Shortcutkey").Update(SHORTCUT_READ)
HOLDER.FindElement("Usernamekey").Update(USERNAME_READ)
H... | 38.136364 | 115 | 0.55741 | 231 | 2,517 | 5.930736 | 0.285714 | 0.064234 | 0.112409 | 0.091241 | 0.405839 | 0.337956 | 0.121168 | 0 | 0 | 0 | 0 | 0.008121 | 0.315058 | 2,517 | 65 | 116 | 38.723077 | 0.786543 | 0.040922 | 0 | 0.263158 | 0 | 0 | 0.127296 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017544 | false | 0.22807 | 0.017544 | 0 | 0.035088 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
861910c72138622c622236cc6c192f30f08a55f8 | 2,683 | py | Python | presidio_analyzer/presidio_analyzer/nlp_engine/spacy_nlp_engine.py | polarsecurity/presidio | 3591e5be20654304bfec51839284d05cce66980d | [
"MIT"
] | null | null | null | presidio_analyzer/presidio_analyzer/nlp_engine/spacy_nlp_engine.py | polarsecurity/presidio | 3591e5be20654304bfec51839284d05cce66980d | [
"MIT"
] | 1 | 2022-01-27T20:34:16.000Z | 2022-01-27T20:34:16.000Z | presidio_analyzer/presidio_analyzer/nlp_engine/spacy_nlp_engine.py | polarsecurity/presidio | 3591e5be20654304bfec51839284d05cce66980d | [
"MIT"
] | null | null | null | import logging
from typing import Optional, Dict
import spacy
from spacy.language import Language
from spacy.tokens import Doc
from .nlp_engine import NlpArtifacts, NlpEngine
logger = logging.getLogger("presidio-analyzer")
class SpacyNlpEngine(NlpEngine):
"""
SpacyNlpEngine is an abstraction layer over the... | 30.83908 | 100 | 0.628028 | 340 | 2,683 | 4.832353 | 0.311765 | 0.021303 | 0.036519 | 0.038344 | 0.158247 | 0.158247 | 0.135119 | 0.135119 | 0.135119 | 0.135119 | 0 | 0.001033 | 0.27842 | 2,683 | 86 | 101 | 31.197674 | 0.847624 | 0.256057 | 0 | 0 | 0 | 0 | 0.046626 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.142857 | 0.02381 | 0.52381 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
861d189ff7b77b1568f4de77a3f91a9c70410e6e | 5,087 | py | Python | glance/registry/db/models.py | rcbops/glance-buildpackage | 13e52178fb25d6062db6c7fad9df122d279320ab | [
"Apache-2.0"
] | 2 | 2015-09-30T09:43:37.000Z | 2017-06-26T14:36:21.000Z | glance/registry/db/models.py | rcbops/glance-buildpackage | 13e52178fb25d6062db6c7fad9df122d279320ab | [
"Apache-2.0"
] | null | null | null | glance/registry/db/models.py | rcbops/glance-buildpackage | 13e52178fb25d6062db6c7fad9df122d279320ab | [
"Apache-2.0"
] | null | null | null | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compli... | 31.79375 | 79 | 0.681934 | 618 | 5,087 | 5.449838 | 0.333333 | 0.050178 | 0.035629 | 0.030879 | 0.290974 | 0.228622 | 0.168646 | 0.144299 | 0.144299 | 0.109857 | 0 | 0.009735 | 0.212502 | 5,087 | 159 | 80 | 31.993711 | 0.831003 | 0.221349 | 0 | 0.097826 | 0 | 0 | 0.038988 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.141304 | false | 0 | 0.108696 | 0.054348 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
86203692bb3ca91944d0753433c5643a83063303 | 7,703 | py | Python | libweasyl/libweasyl/test/test_text.py | theSeracen/weasyl | c13b4f61f559ce44bfaee027ffc59a1379d25f3e | [
"Apache-2.0"
] | null | null | null | libweasyl/libweasyl/test/test_text.py | theSeracen/weasyl | c13b4f61f559ce44bfaee027ffc59a1379d25f3e | [
"Apache-2.0"
] | 148 | 2021-03-16T07:40:05.000Z | 2022-03-21T08:14:46.000Z | libweasyl/libweasyl/test/test_text.py | TheWug/weasyl | a568a542cc58c11e30621fb672c701531d4306a8 | [
"Apache-2.0"
] | null | null | null | # encoding: utf-8
from lxml.etree import LIBXML_VERSION
import pytest
from libweasyl.text import markdown, markdown_excerpt, markdown_link
libxml_xfail = pytest.mark.xfail(LIBXML_VERSION < (2, 9), reason='libxml2 too old to preserve whitespace')
user_linking_markdown_tests = [
('<~spam>', '<a href="/~spam">spam... | 43.519774 | 162 | 0.650526 | 1,110 | 7,703 | 4.391892 | 0.152252 | 0.083282 | 0.064615 | 0.060923 | 0.64841 | 0.519385 | 0.45559 | 0.382154 | 0.319179 | 0.289641 | 0 | 0.003949 | 0.112294 | 7,703 | 176 | 163 | 43.767045 | 0.705323 | 0.001947 | 0 | 0.102564 | 0 | 0.119658 | 0.467473 | 0.119828 | 0 | 0 | 0 | 0 | 0.247863 | 1 | 0.213675 | false | 0 | 0.025641 | 0 | 0.239316 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8620decaff2fe83f6ca10cf0dd4cbc35d0dec7b7 | 2,357 | py | Python | resources/code/CubeStatsTestGenerator.py | NickNissen/Lab_CubeStats | 7a617cd9e27c9821c3999db9c8c38cdaad53d2c3 | [
"RSA-MD"
] | 1 | 2021-01-18T06:12:29.000Z | 2021-01-18T06:12:29.000Z | resources/code/CubeStatsTestGenerator.py | NickNissen/Lab_CubeStats | 7a617cd9e27c9821c3999db9c8c38cdaad53d2c3 | [
"RSA-MD"
] | null | null | null | resources/code/CubeStatsTestGenerator.py | NickNissen/Lab_CubeStats | 7a617cd9e27c9821c3999db9c8c38cdaad53d2c3 | [
"RSA-MD"
] | 3 | 2019-05-17T22:22:57.000Z | 2022-02-18T03:44:09.000Z | #!/usr/bin/python
#
# This program generates arenas and cubes for the CMPUT 229 CubeStats assignment
#
# Author: Jose Nelson Amaral
# Date: October 26 2011
#
# Known Issues:
# - Only works in dimensions 2 or above
#
# Updated by Taylor Lloyd, July 3, 2012
import sys
import random
DEBUG = 0
dimensions_to_generate = [... | 31.851351 | 80 | 0.577429 | 343 | 2,357 | 3.740525 | 0.262391 | 0.087295 | 0.093531 | 0.119252 | 0.346064 | 0.14887 | 0.100546 | 0.052221 | 0.052221 | 0 | 0 | 0.028419 | 0.283411 | 2,357 | 73 | 81 | 32.287671 | 0.731202 | 0.099279 | 0 | 0.113208 | 1 | 0 | 0.049716 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037736 | false | 0 | 0.037736 | 0 | 0.113208 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8624c082cfa1fc0aef3eea4ee0d51bafb69e47bf | 2,410 | py | Python | tests/builtins/test_print.py | Mariatta/batavia | ac40735c311cae4c9358ba43f477e19bc9c965ad | [
"BSD-3-Clause"
] | 1 | 2021-01-03T00:59:23.000Z | 2021-01-03T00:59:23.000Z | tests/builtins/test_print.py | Mariatta/batavia | ac40735c311cae4c9358ba43f477e19bc9c965ad | [
"BSD-3-Clause"
] | null | null | null | tests/builtins/test_print.py | Mariatta/batavia | ac40735c311cae4c9358ba43f477e19bc9c965ad | [
"BSD-3-Clause"
] | null | null | null | from .. utils import TranspileTestCase, BuiltinFunctionTestCase
class PrintTests(TranspileTestCase):
def test_buffering(self):
self.assertCodeExecution("""
print('1: hello', ' world')
print('2: hello\\n', 'world')
print('3: hello', ' world\\n')
print('4: hel... | 27.701149 | 76 | 0.480498 | 200 | 2,410 | 5.695 | 0.22 | 0.070237 | 0.165935 | 0.084284 | 0.489903 | 0.391572 | 0.342406 | 0.342406 | 0.200176 | 0.200176 | 0 | 0.004614 | 0.370539 | 2,410 | 86 | 77 | 28.023256 | 0.74621 | 0 | 0 | 0.544118 | 0 | 0 | 0.688797 | 0 | 0 | 0 | 0 | 0 | 0.102941 | 1 | 0.102941 | false | 0 | 0.014706 | 0 | 0.176471 | 0.367647 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
862639023cb00aa95466cc771f0405fc702edca0 | 484 | py | Python | scripts/processing/splitIntervals.py | kircherlab/hemoMIPs | 0ec260d5660dc21c0a6d2a2d91208c3eb3153b16 | [
"MIT"
] | 6 | 2018-07-18T11:12:41.000Z | 2020-10-15T16:53:47.000Z | scripts/processing/splitIntervals.py | kircherlab/hemoMIPs | 0ec260d5660dc21c0a6d2a2d91208c3eb3153b16 | [
"MIT"
] | 1 | 2018-08-31T08:12:50.000Z | 2020-01-17T09:33:20.000Z | scripts/processing/splitIntervals.py | kircherlab/hemoMIPs | 0ec260d5660dc21c0a6d2a2d91208c3eb3153b16 | [
"MIT"
] | 4 | 2018-08-02T08:12:12.000Z | 2021-08-12T12:12:00.000Z | #!/bin/env python
import sys
for line in sys.stdin:
chrom,posrange = line.strip().split(":")
start,end = map(int,posrange.split("-"))
if end-start > 300:
csize = end-start
number = (csize/200)+1
nsize = csize/number
hstart,hend = start-50,start+nsize+50
print "%s:%d-%d"%(chrom,hstart... | 23.047619 | 42 | 0.597107 | 74 | 484 | 3.905405 | 0.445946 | 0.138408 | 0.072664 | 0.083045 | 0.204152 | 0.15917 | 0.15917 | 0 | 0 | 0 | 0 | 0.041885 | 0.210744 | 484 | 20 | 43 | 24.2 | 0.71466 | 0.033058 | 0 | 0.133333 | 0 | 0 | 0.055675 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.066667 | null | null | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.