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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e372ca50f1bbb91d278a5aa868f3b3246267b836 | 4,886 | py | Python | python/tests/pyspark/feature/string_map_test.py | voganrc/mleap | 68cbf375968d9f55acb1d673a4c2390602c0274a | [
"Apache-2.0"
] | 1,401 | 2017-01-07T03:34:44.000Z | 2022-03-31T22:17:58.000Z | python/tests/pyspark/feature/string_map_test.py | liang0/mleap | 41dbde99e389873fc609083cce5d610cea9e9170 | [
"Apache-2.0"
] | 546 | 2016-12-30T19:10:55.000Z | 2022-03-31T16:56:52.000Z | python/tests/pyspark/feature/string_map_test.py | liang0/mleap | 41dbde99e389873fc609083cce5d610cea9e9170 | [
"Apache-2.0"
] | 326 | 2017-01-24T10:35:41.000Z | 2022-03-15T15:53:17.000Z | import os
import tempfile
import unittest
from py4j.protocol import Py4JJavaError
from pyspark.ml import Pipeline
from pyspark.sql import types as t
from mleap.pyspark.feature.string_map import StringMap
from mleap.pyspark.spark_support import SimpleSparkSerializer
from tests.pyspark.lib.assertions import assert_df
f... | 36.192593 | 107 | 0.657388 | 548 | 4,886 | 5.633212 | 0.213504 | 0.024943 | 0.028507 | 0.077098 | 0.484937 | 0.460641 | 0.434726 | 0.434726 | 0.434726 | 0.39391 | 0 | 0.007668 | 0.225952 | 4,886 | 134 | 108 | 36.462687 | 0.808567 | 0 | 0 | 0.380952 | 0 | 0 | 0.068973 | 0.014327 | 0 | 0 | 0 | 0 | 0.114286 | 1 | 0.161905 | false | 0 | 0.095238 | 0.019048 | 0.295238 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e374d42c0a5b986cfc32f92436749b7345991388 | 4,210 | py | Python | stocks.py | nicojapas/algorithmic_trading | 46b2b59253638f15858e44b4ebae39eb222a4619 | [
"MIT"
] | 1 | 2021-03-16T12:11:47.000Z | 2021-03-16T12:11:47.000Z | stocks.py | nicojapas/algorithmic_trading | 46b2b59253638f15858e44b4ebae39eb222a4619 | [
"MIT"
] | null | null | null | stocks.py | nicojapas/algorithmic_trading | 46b2b59253638f15858e44b4ebae39eb222a4619 | [
"MIT"
] | 1 | 2022-01-14T21:48:08.000Z | 2022-01-14T21:48:08.000Z | #!/usr/bin/env python
# coding: utf-8
# In[6]:
import pandas as pd
import io
import requests
import time
import random
# In[3]:
# gets the hidden API keys
api_key = pd.read_csv('secrets.csv').api_key.to_string().split()[1]
# In[124]:
# gets data using user's parameters
def get_data(symbol, interval):
"""... | 24.195402 | 113 | 0.611639 | 555 | 4,210 | 4.56036 | 0.331532 | 0.018965 | 0.047412 | 0.052153 | 0.288424 | 0.288424 | 0.255235 | 0.214935 | 0.214935 | 0.182537 | 0 | 0.015484 | 0.263658 | 4,210 | 173 | 114 | 24.33526 | 0.800968 | 0.499762 | 0 | 0.116279 | 0 | 0.023256 | 0.246273 | 0.029818 | 0 | 0 | 0 | 0 | 0 | 1 | 0.093023 | false | 0 | 0.116279 | 0 | 0.209302 | 0.023256 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e37917c4d561fd8d9c4ecc0de859e1c2d60e6398 | 1,834 | py | Python | statdpwrapper/experiments/exp_without_pp.py | barryZZJ/dp-sniper | 71a3fc06f3fc319b023bde9aad8f05b8c5a47a80 | [
"MIT"
] | 13 | 2021-03-30T15:39:35.000Z | 2022-02-21T08:30:45.000Z | statdpwrapper/experiments/exp_without_pp.py | barryZZJ/dp-sniper | 71a3fc06f3fc319b023bde9aad8f05b8c5a47a80 | [
"MIT"
] | null | null | null | statdpwrapper/experiments/exp_without_pp.py | barryZZJ/dp-sniper | 71a3fc06f3fc319b023bde9aad8f05b8c5a47a80 | [
"MIT"
] | 4 | 2021-06-30T08:37:45.000Z | 2022-03-05T03:21:14.000Z | import os
from dpsniper.utils.my_multiprocessing import initialize_parallel_executor
from dpsniper.utils.paths import get_output_directory, set_output_directory
from statdpwrapper.algorithms_ext import *
from statdpwrapper.experiments.base import run_statdp
from statdpwrapper.experiments.mechanism_config import statd... | 41.681818 | 99 | 0.768811 | 255 | 1,834 | 5.164706 | 0.282353 | 0.069096 | 0.037965 | 0.027335 | 0.110858 | 0.110858 | 0.110858 | 0.110858 | 0 | 0 | 0 | 0 | 0.143402 | 1,834 | 43 | 100 | 42.651163 | 0.83832 | 0.021265 | 0 | 0 | 0 | 0 | 0.096486 | 0.029559 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060606 | false | 0 | 0.181818 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e37a1fef8ba0d57e0296169fc7cb4fee0cc149e2 | 1,134 | py | Python | ants/registration/symimg.py | ncullen93/ANTsPy | a4c990dcd5b7445a45ce7b366ee018c7350e7d9f | [
"Apache-2.0"
] | 3 | 2018-06-07T19:11:47.000Z | 2019-06-10T05:24:06.000Z | ants/registration/symimg.py | ncullen93/ANTsPy | a4c990dcd5b7445a45ce7b366ee018c7350e7d9f | [
"Apache-2.0"
] | null | null | null | ants/registration/symimg.py | ncullen93/ANTsPy | a4c990dcd5b7445a45ce7b366ee018c7350e7d9f | [
"Apache-2.0"
] | 1 | 2019-04-04T06:18:44.000Z | 2019-04-04T06:18:44.000Z |
__all__ = ['symimg']
from tempfile import mktemp
from .reflect_image import reflect_image
from .interface import registration
from .apply_transforms import apply_transforms
from ..core import image_io as iio
def symimg(img, gs=0.25):
"""
Symmetrize an image
Example
-------
>>> import ants
... | 27.658537 | 95 | 0.636684 | 147 | 1,134 | 4.755102 | 0.394558 | 0.107296 | 0.077253 | 0.051502 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032805 | 0.220459 | 1,134 | 40 | 96 | 28.35 | 0.757919 | 0.126984 | 0 | 0 | 0 | 0 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.25 | 0 | 0.35 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e37b5fbe24287ac8297fbe7f44ed3c806e40c97b | 3,775 | py | Python | src/facrecog_core.py | GaussQR/cs305-g01 | 06b1ad9ba2d05e7c76ee10eb053e9d091b070d6d | [
"MIT"
] | null | null | null | src/facrecog_core.py | GaussQR/cs305-g01 | 06b1ad9ba2d05e7c76ee10eb053e9d091b070d6d | [
"MIT"
] | null | null | null | src/facrecog_core.py | GaussQR/cs305-g01 | 06b1ad9ba2d05e7c76ee10eb053e9d091b070d6d | [
"MIT"
] | null | null | null | import dlib
import face_recognition
import glob
import pickle
import cv2
import numpy as np
import os
from PIL import Image,ImageFont, ImageDraw, ImageEnhance
def add_target_faces(path):
faces = {}
for img in glob.glob(path + "/*.jpg"):
print("encoding img...")
f_image = face_recognition.load_image_... | 41.944444 | 115 | 0.614834 | 526 | 3,775 | 4.23384 | 0.292776 | 0.047149 | 0.031432 | 0.03233 | 0.092501 | 0.078132 | 0.03233 | 0 | 0 | 0 | 0 | 0.028441 | 0.245563 | 3,775 | 90 | 116 | 41.944444 | 0.753511 | 0.10702 | 0 | 0.026667 | 0 | 0 | 0.042508 | 0 | 0 | 0 | 0.001223 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.106667 | 0.013333 | 0.226667 | 0.026667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e37d41115e68a3191b6a2c67d0ba9d33fd342473 | 378 | py | Python | pulpo_forms_example/urls.py | pulpocoders/pulpo-forms-examples | 8b9121b8e323b9432d17f7fc0812405668df3b04 | [
"Apache-2.0"
] | 3 | 2015-11-05T00:23:32.000Z | 2017-05-02T15:24:11.000Z | pulpo_forms_example/urls.py | pulpocoders/pulpo-forms-examples | 8b9121b8e323b9432d17f7fc0812405668df3b04 | [
"Apache-2.0"
] | null | null | null | pulpo_forms_example/urls.py | pulpocoders/pulpo-forms-examples | 8b9121b8e323b9432d17f7fc0812405668df3b04 | [
"Apache-2.0"
] | 1 | 2015-08-01T02:03:23.000Z | 2015-08-01T02:03:23.000Z | from django.conf.urls import include, url
from django.contrib import admin
urlpatterns = [
url(r'^example/', include('pulpo_example.urls')),
url(r'^pulpo/', include('pulpo_forms.urls'), name='base'),
url(r'^admin/', include(admin.site.urls)),
url(r'^model_field_form/$',
'pulpo_forms.views.rend... | 29.076923 | 62 | 0.656085 | 50 | 378 | 4.84 | 0.46 | 0.066116 | 0.066116 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153439 | 378 | 12 | 63 | 31.5 | 0.75625 | 0 | 0 | 0 | 0 | 0 | 0.359788 | 0.07672 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e37dccf1196dd3e409502f652bd89e454eb6a2b8 | 2,903 | py | Python | backup_tool/utils.py | tnoff/backup-tool | 114d066b0aeaa9dab9e2594f42a520839587df20 | [
"BSD-2-Clause"
] | null | null | null | backup_tool/utils.py | tnoff/backup-tool | 114d066b0aeaa9dab9e2594f42a520839587df20 | [
"BSD-2-Clause"
] | null | null | null | backup_tool/utils.py | tnoff/backup-tool | 114d066b0aeaa9dab9e2594f42a520839587df20 | [
"BSD-2-Clause"
] | null | null | null | import codecs
from contextlib import contextmanager
import hashlib
import logging
from logging.handlers import RotatingFileHandler
import random
import string
from pathlib import Path
def random_string(length=32, prefix='', suffix=''):
'''
Generate random string
length : Length of string
prefix :... | 31.901099 | 96 | 0.613503 | 338 | 2,903 | 5.159763 | 0.387574 | 0.036697 | 0.020642 | 0.022936 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012165 | 0.292112 | 2,903 | 90 | 97 | 32.255556 | 0.836496 | 0.176369 | 0 | 0.064516 | 0 | 0 | 0.044329 | 0.011734 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064516 | false | 0 | 0.129032 | 0 | 0.241935 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e37f1a70ff938fa436f4a4d3d93cb8fdc066ba63 | 2,201 | py | Python | chatette/parsing/lexing/rule_slot_val.py | ziligy/Chatette | 014c0b0a991bf66cb69fc6a69e0f6c298974eec9 | [
"MIT"
] | 263 | 2018-09-06T14:46:29.000Z | 2022-03-31T08:40:19.000Z | chatette/parsing/lexing/rule_slot_val.py | ziligy/Chatette | 014c0b0a991bf66cb69fc6a69e0f6c298974eec9 | [
"MIT"
] | 50 | 2018-09-06T14:50:18.000Z | 2021-11-16T03:54:27.000Z | chatette/parsing/lexing/rule_slot_val.py | ziligy/Chatette | 014c0b0a991bf66cb69fc6a69e0f6c298974eec9 | [
"MIT"
] | 49 | 2018-09-18T23:15:09.000Z | 2022-03-02T11:23:08.000Z | # coding: utf-8
"""
Module `chatette.parsing.lexing.rule_slot_val`
Contains the definition of the class that represents the lexing rule
to tokenize a slot value being set within a unit rule (only for a slot).
"""
from chatette.parsing.lexing.lexing_rule import LexingRule
from chatette.parsing.lexing import LexicalToke... | 37.948276 | 78 | 0.598364 | 257 | 2,201 | 4.824903 | 0.311284 | 0.064516 | 0.104839 | 0.064516 | 0.385484 | 0.310484 | 0.283871 | 0.159677 | 0.159677 | 0.124194 | 0 | 0.002701 | 0.327124 | 2,201 | 57 | 79 | 38.614035 | 0.834571 | 0.174466 | 0 | 0.351351 | 0 | 0 | 0.055367 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027027 | false | 0 | 0.081081 | 0 | 0.189189 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e37fa4448f670de81c2e240c869389511aaf6b49 | 441 | py | Python | python算法/6.5如何根据已知随机数生成函数计算新的随机数.py | RobinYaoWenbin/Python-CommonCode | 1ee714541f2fd9c8b96d018d3d4eb94f4edc812a | [
"MIT"
] | 12 | 2020-09-28T03:25:03.000Z | 2022-03-20T07:44:09.000Z | python算法/6.5如何根据已知随机数生成函数计算新的随机数.py | RobinYaoWenbin/Python-CommonCode | 1ee714541f2fd9c8b96d018d3d4eb94f4edc812a | [
"MIT"
] | null | null | null | python算法/6.5如何根据已知随机数生成函数计算新的随机数.py | RobinYaoWenbin/Python-CommonCode | 1ee714541f2fd9c8b96d018d3d4eb94f4edc812a | [
"MIT"
] | 21 | 2020-03-19T00:44:35.000Z | 2022-01-30T03:46:18.000Z | # -*- coding: utf-8 -*-
"""
Created on Sun Feb 23 20:28:51 2020
@author: Administrator
"""
"""
已知随机数rand7()产生的随机数是整数1~7的均匀分布,如何构造rand10()函数,使其产生的随机数是整数1-10的均匀分布.
"""
import random
def rand7():
return random.randint(1,7)
def rand10():
x = 0
while True:
x = (rand7() - 1) * 7 + ra... | 16.961538 | 67 | 0.535147 | 54 | 441 | 4.222222 | 0.759259 | 0.017544 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.124183 | 0.306122 | 441 | 26 | 68 | 16.961538 | 0.620915 | 0.185941 | 0 | 0 | 0 | 0 | 0.031621 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.083333 | 0.083333 | 0.416667 | 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 | 0 | 0 | 1 | 0 |
e380169c4e3938481f564cc3fc99e33f8bdaa725 | 26,432 | py | Python | pytropos/internals/values/python_values/python_values.py | helq/pytropos | 497ed5902e6e4912249ca0a46b477f9bfa6ae80a | [
"MIT"
] | 4 | 2019-10-06T18:01:24.000Z | 2020-07-03T05:27:35.000Z | pytropos/internals/values/python_values/python_values.py | helq/pytropos | 497ed5902e6e4912249ca0a46b477f9bfa6ae80a | [
"MIT"
] | 5 | 2021-06-07T15:50:04.000Z | 2021-06-07T15:50:06.000Z | pytropos/internals/values/python_values/python_values.py | helq/pytropos | 497ed5902e6e4912249ca0a46b477f9bfa6ae80a | [
"MIT"
] | null | null | null | from abc import ABC, abstractmethod
from enum import Enum
from functools import partial
# from math import isinf
from typing import Union, Optional, Any
from typing import Callable, Tuple, Dict, List, Set, Type # noqa: F401
from ..builtin_values import Bool, ops_symbols
from ..abstract_value import AbstractValue
from... | 37.019608 | 99 | 0.589967 | 3,229 | 26,432 | 4.64664 | 0.110251 | 0.033591 | 0.013796 | 0.011197 | 0.483271 | 0.429819 | 0.3751 | 0.356638 | 0.304319 | 0.267329 | 0 | 0.005385 | 0.311516 | 26,432 | 713 | 100 | 37.071529 | 0.819101 | 0.183982 | 0 | 0.505133 | 0 | 0 | 0.110787 | 0.009397 | 0 | 0 | 0 | 0.002805 | 0.057495 | 1 | 0.098563 | false | 0.010267 | 0.022587 | 0.004107 | 0.295688 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e3819ef8cd2690861dd5dfa539b9d90716dabcd3 | 2,249 | py | Python | datasets/utils_cifar10.py | jbinas/fortified-networks | 7db626075a019a6a7d8e2cb7d3a97404a1124c69 | [
"MIT"
] | 5 | 2018-10-29T20:21:58.000Z | 2021-11-19T08:58:18.000Z | datasets/utils_cifar10.py | yaya20160101/fortified-networks | 7db626075a019a6a7d8e2cb7d3a97404a1124c69 | [
"MIT"
] | null | null | null | datasets/utils_cifar10.py | yaya20160101/fortified-networks | 7db626075a019a6a7d8e2cb7d3a97404a1124c69 | [
"MIT"
] | 5 | 2018-06-29T00:37:56.000Z | 2021-05-28T04:00:55.000Z | import keras
import tensorflow as tf
import numpy.random as rng
from keras.datasets import cifar10
from keras.utils import np_utils
def data_cifar10(**kwargs):
"""
Preprocess CIFAR10 dataset
:return:
"""
# These values are specific to CIFAR10
img_rows = 32
img_cols = 32
nb_classes = ... | 29.207792 | 74 | 0.678524 | 339 | 2,249 | 4.235988 | 0.300885 | 0.071031 | 0.045961 | 0.033426 | 0.18454 | 0.155292 | 0.155292 | 0.134401 | 0.082173 | 0 | 0 | 0.025773 | 0.223655 | 2,249 | 76 | 75 | 29.592105 | 0.796678 | 0.173855 | 0 | 0 | 0 | 0 | 0.031126 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046512 | false | 0 | 0.116279 | 0 | 0.209302 | 0.069767 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8b4c4b1f780806fe28ac378ba5bc5176a6a833d9 | 763 | py | Python | applications/createEVENT/SimCenterEvent.py | fmckenna/EE-UQ | a1fe96fd000aec933430bda5829c82b5743338c3 | [
"BSD-2-Clause"
] | 1 | 2019-04-30T19:38:17.000Z | 2019-04-30T19:38:17.000Z | applications/createEVENT/SimCenterEvent.py | s-m-amin-ghasemi/EE-UQ | 7eb42d09b59b42fd1256c6d8693cfe46e0b8034b | [
"BSD-2-Clause"
] | 2 | 2018-09-11T01:32:27.000Z | 2018-09-11T23:08:06.000Z | applications/createEVENT/SimCenterEvent.py | s-m-amin-ghasemi/EE-UQ | 7eb42d09b59b42fd1256c6d8693cfe46e0b8034b | [
"BSD-2-Clause"
] | 6 | 2018-05-14T21:45:24.000Z | 2018-10-04T18:13:42.000Z | import sys
from shutil import copyfile
def main():
inputArgs = sys.argv
#First let's process the arguments
argBIM = inputArgs.index("--filenameBIM") + 1
bimFile = inputArgs[argBIM]
argEVENT = inputArgs.index("--filenameEVENT") + 1
eventFile = inputArgs[argEVENT]
argInputFile = inputArg... | 29.346154 | 69 | 0.626474 | 88 | 763 | 5.340909 | 0.5 | 0.153191 | 0.017021 | 0.021277 | 0.097872 | 0.097872 | 0 | 0 | 0 | 0 | 0 | 0.012238 | 0.250328 | 763 | 25 | 70 | 30.52 | 0.809441 | 0.116645 | 0 | 0 | 0 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.105263 | 0 | 0.157895 | 0.105263 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8b4d9675e98a4abeceff47ef0ef4214b548c119b | 259 | py | Python | 2-mouth02/day03/exe03.py | gary-gggggg/gary | d8ba30ea4bc2b662a2d6a87d247f813e5680d63e | [
"Apache-2.0"
] | 4 | 2021-02-01T10:28:11.000Z | 2021-02-01T10:34:40.000Z | 2-mouth02/day03/exe03.py | gary-gggggg/gary | d8ba30ea4bc2b662a2d6a87d247f813e5680d63e | [
"Apache-2.0"
] | null | null | null | 2-mouth02/day03/exe03.py | gary-gggggg/gary | d8ba30ea4bc2b662a2d6a87d247f813e5680d63e | [
"Apache-2.0"
] | null | null | null | title=open("file.txt","w")
title.write("《悯农》\n" )
title.close()
sum=0
while 1:
sentence=open("file.txt","a")
sum+=1
if sum>4:
sentence.close()
break
k =input("请输入句子(包括标点符号):")
sentence.write(f"{k}\n")
sentence.close()
| 17.266667 | 33 | 0.555985 | 39 | 259 | 3.692308 | 0.589744 | 0.111111 | 0.152778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019901 | 0.223938 | 259 | 14 | 34 | 18.5 | 0.696517 | 0 | 0 | 0.153846 | 0 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8b4d9f6ab5c3257761c9eb3fa1e62a13d1f8d05b | 1,635 | py | Python | scanplans/grid_scan.py | st3107/bluesky_scanplans | 2ab126c0b7f4427a10d42cf59ea004770c433383 | [
"BSD-3-Clause"
] | null | null | null | scanplans/grid_scan.py | st3107/bluesky_scanplans | 2ab126c0b7f4427a10d42cf59ea004770c433383 | [
"BSD-3-Clause"
] | null | null | null | scanplans/grid_scan.py | st3107/bluesky_scanplans | 2ab126c0b7f4427a10d42cf59ea004770c433383 | [
"BSD-3-Clause"
] | null | null | null | import bluesky.plan_stubs as bps
import bluesky.plans as bp
from xpdacq.beamtime import _configure_area_det
from xpdacq.glbl import glbl
from xpdacq.xpdacq import open_shutter_stub, close_shutter_stub
from xpdacq.xpdacq_conf import xpd_configuration
def acq_rel_grid_scan(
dets: list,
exposure: float,
wait... | 34.0625 | 76 | 0.688685 | 238 | 1,635 | 4.542017 | 0.394958 | 0.074931 | 0.055504 | 0.025902 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018987 | 0.226911 | 1,635 | 47 | 77 | 34.787234 | 0.836234 | 0.209174 | 0 | 0 | 0 | 0 | 0.035686 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.176471 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8b528bad86c27520698632ef706d6564180389c3 | 10,562 | py | Python | helpers.py | TimHeiszwolf/NBPGravity | b054b189f5493ad8ec094786f16f5525c117a127 | [
"MIT"
] | 1 | 2022-03-08T07:16:53.000Z | 2022-03-08T07:16:53.000Z | helpers.py | TimHeiszwolf/NBPGravity | b054b189f5493ad8ec094786f16f5525c117a127 | [
"MIT"
] | null | null | null | helpers.py | TimHeiszwolf/NBPGravity | b054b189f5493ad8ec094786f16f5525c117a127 | [
"MIT"
] | null | null | null | import numpy as np
import time
import matplotlib.pyplot as plt
import imageio
from scipy.optimize import fsolve
from body import Body
def get_position_from_Kepler(semimajor_axis, eccentricity, inclination, ascending_node, argument_of_periapsis, mean_anomaly, mass_orbit, G=6.67430 * 10**(-11)):
"""
Get the pos... | 44.944681 | 194 | 0.639841 | 1,628 | 10,562 | 4.022113 | 0.235872 | 0.023824 | 0.040623 | 0.040318 | 0.390959 | 0.321014 | 0.246487 | 0.199756 | 0.182804 | 0.170892 | 0 | 0.125369 | 0.197974 | 10,562 | 235 | 195 | 44.944681 | 0.647621 | 0.189074 | 0 | 0 | 0 | 0 | 0.037024 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.072 | false | 0 | 0.056 | 0 | 0.184 | 0.024 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8b569282b5d41a4fb5d9ee37ff203ff019b8b666 | 10,897 | py | Python | opttrack/lib/ui/edit_handlers.py | aisthesis/opttrack | 17e0c7740ea43e0f07166e30d689b106d0319d0b | [
"MIT"
] | null | null | null | opttrack/lib/ui/edit_handlers.py | aisthesis/opttrack | 17e0c7740ea43e0f07166e30d689b106d0319d0b | [
"MIT"
] | 2 | 2016-03-30T02:50:31.000Z | 2016-03-30T16:18:23.000Z | opttrack/lib/ui/edit_handlers.py | aisthesis/opttrack | 17e0c7740ea43e0f07166e30d689b106d0319d0b | [
"MIT"
] | null | null | null | """
Copyright (c) 2015 Marshall Farrier
license http://opensource.org/licenses/MIT
lib/ui/handlers.py
Handlers for edit menu
"""
from bson.codec_options import CodecOptions
import datetime as dt
from functools import partial
import json
from pymongo.errors import BulkWriteError
from ..dbschema import SPREADS
from ... | 37.968641 | 112 | 0.623383 | 1,282 | 10,897 | 5.136505 | 0.205928 | 0.042521 | 0.019742 | 0.027335 | 0.28003 | 0.199696 | 0.145938 | 0.088838 | 0.073956 | 0.073956 | 0 | 0.003746 | 0.240525 | 10,897 | 286 | 113 | 38.101399 | 0.791928 | 0.020189 | 0 | 0.214286 | 0 | 0 | 0.181418 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.134454 | false | 0 | 0.05042 | 0.016807 | 0.289916 | 0.176471 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8b59bcd3a89ce1967c8f1f93333ca68f2476a3f5 | 6,331 | py | Python | BIT_OpenDomain_QA/rerank/utils_rerank.py | rwei1218/transformers | 511e100c650b3f942c432d8f71eee3ea1c0005a8 | [
"Apache-2.0"
] | null | null | null | BIT_OpenDomain_QA/rerank/utils_rerank.py | rwei1218/transformers | 511e100c650b3f942c432d8f71eee3ea1c0005a8 | [
"Apache-2.0"
] | null | null | null | BIT_OpenDomain_QA/rerank/utils_rerank.py | rwei1218/transformers | 511e100c650b3f942c432d8f71eee3ea1c0005a8 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
""" Load Duqa labeled dataset. """
from __future__ import absolute_import, division, print_function
import collections
import json
import logging
import math
from io import open
from tqdm import tqdm
from transformers.tokenization_bert import BasicTokenizer, whitespace_tokenize
logger = log... | 31.655 | 113 | 0.59027 | 774 | 6,331 | 4.583979 | 0.251938 | 0.027058 | 0.027058 | 0.021421 | 0.207723 | 0.171082 | 0.159808 | 0.112176 | 0.063134 | 0.063134 | 0 | 0.003849 | 0.302322 | 6,331 | 199 | 114 | 31.81407 | 0.799411 | 0.18212 | 0 | 0.094017 | 0 | 0 | 0.046695 | 0 | 0 | 0 | 0 | 0 | 0.025641 | 1 | 0.111111 | false | 0 | 0.068376 | 0 | 0.273504 | 0.008547 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8b59f06aa5c12c6a5c23df65ae4eee79a9122e69 | 1,973 | py | Python | LanguageConstructs/DataModel/MetaProgramming/Reflection/attribute_builtins.py | ha-khan/PythonPractice | 31366d0a3380b168b96cf2e90cef3960efee8a7e | [
"MIT"
] | null | null | null | LanguageConstructs/DataModel/MetaProgramming/Reflection/attribute_builtins.py | ha-khan/PythonPractice | 31366d0a3380b168b96cf2e90cef3960efee8a7e | [
"MIT"
] | null | null | null | LanguageConstructs/DataModel/MetaProgramming/Reflection/attribute_builtins.py | ha-khan/PythonPractice | 31366d0a3380b168b96cf2e90cef3960efee8a7e | [
"MIT"
] | null | null | null | from typing import Any
class Orchestrator:
# __class__ Reference to the object's class
#
# __dict__ Mapping that stores the writable attributes of an object or class
#
# __slots__ Attribute that may be defined in a class to limit the attributes its instances can have.
#
#
def __init_... | 25.294872 | 104 | 0.601115 | 236 | 1,973 | 4.677966 | 0.402542 | 0.032609 | 0.021739 | 0.024457 | 0.081522 | 0.052536 | 0.052536 | 0 | 0 | 0 | 0 | 0 | 0.278256 | 1,973 | 77 | 105 | 25.623377 | 0.775281 | 0.303599 | 0 | 0.195122 | 0 | 0 | 0.107576 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.073171 | false | 0.02439 | 0.02439 | 0 | 0.121951 | 0.341463 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8b5b05fdbf74764959912c9444f946a0e9f8ee11 | 3,524 | py | Python | hard-gists/1558831/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 21 | 2019-07-08T08:26:45.000Z | 2022-01-24T23:53:25.000Z | hard-gists/1558831/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 5 | 2019-06-15T14:47:47.000Z | 2022-02-26T05:02:56.000Z | hard-gists/1558831/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 17 | 2019-05-16T03:50:34.000Z | 2021-01-14T14:35:12.000Z | # [h] interpolated nudge dialog
'''a simple RoboFont dialog for the famous "interpolated nudge" script'''
# Interpolated Nudge for RoboFont -- Travis Kochel
# http://tktype.tumblr.com/post/15254264845/interpolated-nudge-for-robofont
# Interpolated Nudge -- Christian Robertson
# http://betatype.com/node/18
from vani... | 31.464286 | 75 | 0.521566 | 365 | 3,524 | 4.668493 | 0.20274 | 0.123239 | 0.109742 | 0.070423 | 0.471831 | 0.465376 | 0.454812 | 0.40669 | 0.225939 | 0.195423 | 0 | 0.038909 | 0.365494 | 3,524 | 111 | 76 | 31.747748 | 0.723166 | 0.090238 | 0 | 0.329412 | 0 | 0 | 0.008143 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.082353 | false | 0 | 0.023529 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8b5d964924108495e0cb8ad5afc9e9b8d784d6b3 | 1,547 | py | Python | django_query_profiler/django/db/backends/database_wrapper_mixin.py | sonej/django-query-profiler | 4afe3694ded26d7ba0b435f5666e990b668d85b5 | [
"BSD-3-Clause"
] | 97 | 2020-03-03T01:20:35.000Z | 2022-03-23T14:06:09.000Z | django_query_profiler/django/db/backends/database_wrapper_mixin.py | sonej/django-query-profiler | 4afe3694ded26d7ba0b435f5666e990b668d85b5 | [
"BSD-3-Clause"
] | 24 | 2020-03-06T17:35:08.000Z | 2022-02-09T20:06:05.000Z | django_query_profiler/django/db/backends/database_wrapper_mixin.py | sonej/django-query-profiler | 4afe3694ded26d7ba0b435f5666e990b668d85b5 | [
"BSD-3-Clause"
] | 9 | 2020-03-22T18:17:09.000Z | 2022-01-31T18:59:11.000Z | """
This module defines a mixin, which can be used by all implementations for all databases.
All the databases have a different hierarchy of DatabaseWrapper, but all of them derive from BaseDatabaseWrapper
"""
from abc import ABC
from typing import Optional
from django.db.backends.base.base import BaseDatabaseWrapper... | 39.666667 | 120 | 0.707822 | 169 | 1,547 | 6.378698 | 0.514793 | 0.096475 | 0.027829 | 0.037106 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.232062 | 1,547 | 38 | 121 | 40.710526 | 0.907407 | 0.188752 | 0 | 0 | 0 | 0 | 0.154412 | 0.017157 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0.217391 | 0 | 0.478261 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8b620f703a95ef7c54125b1554d9a9e0de82f47e | 12,330 | py | Python | lib/rapi/auth/pam.py | regnauld/ganeti | c1d88461a964a5d0d89cd1ba0571429e01f0a1b5 | [
"BSD-2-Clause"
] | 2 | 2018-09-26T10:09:23.000Z | 2018-09-27T07:27:06.000Z | lib/rapi/auth/pam.py | regnauld/ganeti | c1d88461a964a5d0d89cd1ba0571429e01f0a1b5 | [
"BSD-2-Clause"
] | null | null | null | lib/rapi/auth/pam.py | regnauld/ganeti | c1d88461a964a5d0d89cd1ba0571429e01f0a1b5 | [
"BSD-2-Clause"
] | null | null | null | #
#
# Copyright (C) 2015, 2016 Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# 1. Redistributions of source code must retain the above copyright notice,
# this list of condition... | 32.447368 | 79 | 0.701703 | 1,705 | 12,330 | 4.892082 | 0.217009 | 0.008632 | 0.009591 | 0.01079 | 0.211006 | 0.176837 | 0.13068 | 0.09807 | 0.076969 | 0.068097 | 0 | 0.004316 | 0.210706 | 12,330 | 379 | 80 | 32.532982 | 0.852754 | 0.285807 | 0 | 0.148148 | 0 | 0 | 0.093285 | 0.004995 | 0 | 0 | 0 | 0 | 0 | 1 | 0.050926 | false | 0.046296 | 0.041667 | 0 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8b666913019cd3ac664dfb714c512a8beb73daff | 10,601 | py | Python | mssql_backend/mssql_backend.py | Reposoft/trac-mssql | da8d8ae29ef81db39ca2d6af439d88f3d6ecfebd | [
"BSD-3-Clause"
] | 1 | 2021-01-27T00:21:47.000Z | 2021-01-27T00:21:47.000Z | mssql_backend/mssql_backend.py | Reposoft/trac-mssql | da8d8ae29ef81db39ca2d6af439d88f3d6ecfebd | [
"BSD-3-Clause"
] | 1 | 2015-05-11T18:34:46.000Z | 2017-02-12T07:07:06.000Z | mssql_backend/mssql_backend.py | Reposoft/trac-mssql | da8d8ae29ef81db39ca2d6af439d88f3d6ecfebd | [
"BSD-3-Clause"
] | 1 | 2021-01-27T00:21:50.000Z | 2021-01-27T00:21:50.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2013 MATOBA Akihiro <matobaa+trac-hacks@gmail.com>
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution.
from trac.core import *
from trac.config imp... | 31.550595 | 111 | 0.647486 | 1,445 | 10,601 | 4.644983 | 0.221453 | 0.020858 | 0.011919 | 0.009684 | 0.247318 | 0.184595 | 0.170292 | 0.14854 | 0.141091 | 0.116806 | 0 | 0.005618 | 0.210829 | 10,601 | 335 | 112 | 31.644776 | 0.796677 | 0.186963 | 0 | 0.256198 | 0 | 0 | 0.123892 | 0.012268 | 0 | 0 | 0 | 0.002985 | 0 | 1 | 0.128099 | false | 0.041322 | 0.066116 | 0.041322 | 0.285124 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8b668fce877fc1e0332e1fd014c47e5007f994ff | 6,767 | py | Python | CertifiableBayesianInference/BayesKeras/optimizers/adam.py | Hongchenglong/colab | 9cc5c15abde536493cc3f12008e791caa1d00070 | [
"Apache-2.0"
] | null | null | null | CertifiableBayesianInference/BayesKeras/optimizers/adam.py | Hongchenglong/colab | 9cc5c15abde536493cc3f12008e791caa1d00070 | [
"Apache-2.0"
] | null | null | null | CertifiableBayesianInference/BayesKeras/optimizers/adam.py | Hongchenglong/colab | 9cc5c15abde536493cc3f12008e791caa1d00070 | [
"Apache-2.0"
] | null | null | null | #Author: Matthew Wicker
# Impliments the BayesByBackprop optimizer for BayesKeras
import os
import math
import logging
import numpy as np
import tensorflow as tf
import tensorflow_probability as tfp
from tensorflow.keras.models import *
from tensorflow.keras.layers import *
from tqdm import tqdm
from tqdm import tran... | 42.031056 | 114 | 0.612827 | 914 | 6,767 | 4.339168 | 0.181619 | 0.049168 | 0.032274 | 0.027231 | 0.642713 | 0.625567 | 0.579425 | 0.579425 | 0.570852 | 0.555219 | 0 | 0.016132 | 0.276341 | 6,767 | 160 | 115 | 42.29375 | 0.793751 | 0.100783 | 0 | 0.540541 | 0 | 0 | 0.002474 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.063063 | false | 0 | 0.126126 | 0.018018 | 0.243243 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8b68b894928fc1a47949be32739e5721fad32eb5 | 518 | py | Python | voluseg/_tools/evenly_parallelize.py | jingxlim/voluseg | 41429a73a481fbffc3a15457be262ec021304b51 | [
"MIT"
] | 10 | 2019-11-05T18:49:50.000Z | 2022-03-07T04:15:53.000Z | voluseg/_tools/evenly_parallelize.py | jingxlim/voluseg | 41429a73a481fbffc3a15457be262ec021304b51 | [
"MIT"
] | 5 | 2021-02-09T20:32:38.000Z | 2021-03-22T16:53:40.000Z | voluseg/_tools/evenly_parallelize.py | jingxlim/voluseg | 41429a73a481fbffc3a15457be262ec021304b51 | [
"MIT"
] | 3 | 2019-12-09T08:30:18.000Z | 2021-03-22T01:58:44.000Z | def evenly_parallelize(input_list):
'''return evenly partitioned spark resilient distributed dataset (RDD)'''
import numpy as np
from pyspark.sql.session import SparkSession
spark = SparkSession.builder.getOrCreate()
sc = spark.sparkContext
n_input = len(input_list)
n_parts = sc.paralleliz... | 37 | 87 | 0.747104 | 66 | 518 | 5.712121 | 0.590909 | 0.095491 | 0.106101 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002273 | 0.150579 | 518 | 13 | 88 | 39.846154 | 0.854545 | 0.129344 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8b6908539193ed05f7b55115e992b2c27664607d | 3,153 | py | Python | deepplats/models/utils.py | GuillaumeDMMarion/deep-plats | d1f58d9fe07a7e3e7560fd4b425234fd5512da1a | [
"MIT"
] | null | null | null | deepplats/models/utils.py | GuillaumeDMMarion/deep-plats | d1f58d9fe07a7e3e7560fd4b425234fd5512da1a | [
"MIT"
] | null | null | null | deepplats/models/utils.py | GuillaumeDMMarion/deep-plats | d1f58d9fe07a7e3e7560fd4b425234fd5512da1a | [
"MIT"
] | null | null | null | """Model helper module.
"""
from __future__ import annotations
from typing import Union
import numpy as np
import torch
class Scaler:
"""
Standardize features by removing the mean and scaling to unit variance.
Accepts both torch.Tensor and numpy.ndarray.
"""
def __init__(self, astype="float32"):
... | 29.745283 | 79 | 0.598795 | 391 | 3,153 | 4.68798 | 0.255754 | 0.102019 | 0.091653 | 0.124386 | 0.30551 | 0.267867 | 0.223131 | 0.223131 | 0.223131 | 0.223131 | 0 | 0.005245 | 0.274342 | 3,153 | 105 | 80 | 30.028571 | 0.795892 | 0.104345 | 0 | 0.24 | 0 | 0 | 0.019544 | 0 | 0 | 0 | 0 | 0 | 0.013333 | 1 | 0.146667 | false | 0 | 0.053333 | 0 | 0.373333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8b69509f22f3cb70d7f8b98551364109fc2064fa | 1,491 | py | Python | test/utils/test_utils.py | Chick-star/sagemaker-xgboost-container | e06e278b3a34515f79fa73ab770b574b9aafe5f0 | [
"Apache-2.0"
] | 1 | 2021-07-10T15:08:18.000Z | 2021-07-10T15:08:18.000Z | test/utils/test_utils.py | Chick-star/sagemaker-xgboost-container | e06e278b3a34515f79fa73ab770b574b9aafe5f0 | [
"Apache-2.0"
] | null | null | null | test/utils/test_utils.py | Chick-star/sagemaker-xgboost-container | e06e278b3a34515f79fa73ab770b574b9aafe5f0 | [
"Apache-2.0"
] | 1 | 2020-02-07T22:41:34.000Z | 2020-02-07T22:41:34.000Z | # Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the 'License'). You
# may not use this file except in compliance with the License. A copy of
# the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the 'license' file acc... | 35.5 | 84 | 0.7277 | 220 | 1,491 | 4.795455 | 0.509091 | 0.056872 | 0.028436 | 0.043602 | 0.181991 | 0.181991 | 0.181991 | 0.181991 | 0.100474 | 0.100474 | 0 | 0.02437 | 0.17438 | 1,491 | 41 | 85 | 36.365854 | 0.832656 | 0.390342 | 0 | 0 | 0 | 0 | 0.025698 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.166667 | false | 0 | 0.222222 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8b6f0fc1892ec8aa8153dba6ca257fd87d9c6c75 | 4,263 | py | Python | Sketches/THF/3D/playground/SimpleCube.py | sparkslabs/kamaelia_orig | 24b5f855a63421a1f7c6c7a35a7f4629ed955316 | [
"Apache-2.0"
] | 12 | 2015-10-20T10:22:01.000Z | 2021-07-19T10:09:44.000Z | Sketches/THF/3D/playground/SimpleCube.py | sparkslabs/kamaelia_orig | 24b5f855a63421a1f7c6c7a35a7f4629ed955316 | [
"Apache-2.0"
] | 2 | 2015-10-20T10:22:55.000Z | 2017-02-13T11:05:25.000Z | Sketches/THF/3D/playground/SimpleCube.py | sparkslabs/kamaelia_orig | 24b5f855a63421a1f7c6c7a35a7f4629ed955316 | [
"Apache-2.0"
] | 6 | 2015-03-09T12:51:59.000Z | 2020-03-01T13:06:21.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2010 British Broadcasting Corporation and Kamaelia Contributors(1)
#
# (1) Kamaelia Contributors are listed in the AUTHORS file and at
# http://www.kamaelia.org/AUTHORS - please extend this file,
# not this notice.
#
# Licensed under the Apache License... | 31.577778 | 98 | 0.546798 | 605 | 4,263 | 3.821488 | 0.276033 | 0.071799 | 0.067474 | 0.088235 | 0.254758 | 0.246107 | 0.232266 | 0.232266 | 0.208045 | 0.208045 | 0 | 0.09485 | 0.280319 | 4,263 | 134 | 99 | 31.813433 | 0.658735 | 0.356087 | 0 | 0.380952 | 0 | 0 | 0.023748 | 0 | 0 | 0 | 0 | 0.007463 | 0 | 1 | 0.079365 | false | 0.031746 | 0.142857 | 0 | 0.269841 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8b72e1cc46246e65f5c4487e4423aa24c3c70e6e | 8,480 | py | Python | plugins/modules/waf_domain.py | schrej/ansible-collection-cloud | 1fa1d18aaa06178616af17d8240e8fc5d13a370c | [
"Apache-2.0"
] | 16 | 2020-09-22T14:45:52.000Z | 2022-02-11T07:56:38.000Z | plugins/modules/waf_domain.py | schrej/ansible-collection-cloud | 1fa1d18aaa06178616af17d8240e8fc5d13a370c | [
"Apache-2.0"
] | 153 | 2020-08-20T14:00:55.000Z | 2022-03-30T13:48:51.000Z | plugins/modules/waf_domain.py | schrej/ansible-collection-cloud | 1fa1d18aaa06178616af17d8240e8fc5d13a370c | [
"Apache-2.0"
] | 11 | 2020-09-01T12:21:09.000Z | 2021-12-23T09:48:34.000Z | #!/usr/bin/python
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# di... | 33.254902 | 100 | 0.610024 | 964 | 8,480 | 5.186722 | 0.23029 | 0.0468 | 0.0644 | 0.0228 | 0.289 | 0.1712 | 0.1374 | 0.1118 | 0.0982 | 0.0586 | 0 | 0.007965 | 0.304127 | 8,480 | 254 | 101 | 33.385827 | 0.839349 | 0.063443 | 0 | 0.266355 | 0 | 0 | 0.420555 | 0.013367 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018692 | false | 0 | 0.004673 | 0 | 0.056075 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8b75a7eaacdb476c970a5cf2013b558edc778b20 | 10,303 | py | Python | incremental_evaluation_run.py | comrob/ensgendel | 4958d588a30a5bc60c6e7af5abb2b830b1265a25 | [
"BSD-3-Clause"
] | null | null | null | incremental_evaluation_run.py | comrob/ensgendel | 4958d588a30a5bc60c6e7af5abb2b830b1265a25 | [
"BSD-3-Clause"
] | null | null | null | incremental_evaluation_run.py | comrob/ensgendel | 4958d588a30a5bc60c6e7af5abb2b830b1265a25 | [
"BSD-3-Clause"
] | null | null | null | import incremental_evaluation.utils as IE
import incremental_evaluation.scenario_sets as SS
import incremental_evaluation.visualisation_helper as VH
import models.basic_predictor_interfaces
import models.ensgendel_interface
import incremental_evaluation.data_file_helper as DFH
import os
import argparse
SS_MNIST012 = "... | 54.803191 | 119 | 0.625837 | 1,198 | 10,303 | 5.129382 | 0.24374 | 0.035801 | 0.029292 | 0.02441 | 0.225386 | 0.1738 | 0.138649 | 0.118633 | 0.118633 | 0.082343 | 0 | 0.01379 | 0.275066 | 10,303 | 187 | 120 | 55.096257 | 0.808944 | 0.067165 | 0 | 0.085526 | 0 | 0.019737 | 0.194639 | 0.007406 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019737 | false | 0 | 0.052632 | 0.019737 | 0.092105 | 0.032895 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8b76c38f1e29d8bf142d3e3373941067e32aadc6 | 15,792 | py | Python | core/models.py | admariner/madewithwagtail | a43b3263c0f151ece4994fccd561b0575db4979f | [
"MIT"
] | null | null | null | core/models.py | admariner/madewithwagtail | a43b3263c0f151ece4994fccd561b0575db4979f | [
"MIT"
] | null | null | null | core/models.py | admariner/madewithwagtail | a43b3263c0f151ece4994fccd561b0575db4979f | [
"MIT"
] | null | null | null | import os
import re
from bs4 import BeautifulSoup
from django.core.exceptions import ObjectDoesNotExist
from django.core.paginator import EmptyPage, PageNotAnInteger, Paginator
from django.db import models
from django.db.models import Case, Count, Q, Value, When
from django.utils.encoding import python_2_unicode_compa... | 31.967611 | 117 | 0.634435 | 1,806 | 15,792 | 5.378738 | 0.198228 | 0.01853 | 0.021001 | 0.014 | 0.462425 | 0.435454 | 0.394585 | 0.35979 | 0.352172 | 0.323554 | 0 | 0.004542 | 0.261082 | 15,792 | 493 | 118 | 32.032454 | 0.82792 | 0.116135 | 0 | 0.461972 | 0 | 0.002817 | 0.116539 | 0.008914 | 0 | 0 | 0 | 0 | 0 | 1 | 0.070423 | false | 0.002817 | 0.056338 | 0.014085 | 0.405634 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8b790365631a765420b493cba01b292fac4bc258 | 475 | py | Python | ArrangingCoins.py | Jcarlos0828/LeetCode-PracticeResults | 73566a131629038caf2555eaf4999379227ec369 | [
"MIT"
] | 1 | 2019-06-26T22:44:16.000Z | 2019-06-26T22:44:16.000Z | ArrangingCoins.py | Jcarlos0828/LeetCode-PracticeResults | 73566a131629038caf2555eaf4999379227ec369 | [
"MIT"
] | null | null | null | ArrangingCoins.py | Jcarlos0828/LeetCode-PracticeResults | 73566a131629038caf2555eaf4999379227ec369 | [
"MIT"
] | null | null | null | '''
EASY 441. Arranging Coins
You have a total of n coins that you want to form in
a staircase shape, where every k-th row must have exactly k coins.
'''
class Solution:
def arrangeCoins(self, n: int) -> int:
rows = [0]
count = 1
def recur(n, count):
if n - count >= 0:
... | 26.388889 | 66 | 0.511579 | 67 | 475 | 3.626866 | 0.552239 | 0.098765 | 0.135802 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038062 | 0.391579 | 475 | 18 | 67 | 26.388889 | 0.802768 | 0.309474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8b7cf31b94df4dc51935676b554357efa86d4611 | 1,167 | py | Python | stable_projects/predict_phenotypes/Nguyen2020_RNNAD/cbig/Nguyen2020/test_rnn.py | marielacour81/CBIG | 511af756c6ddabbd3a9681ce3514b79ef5aaaf3f | [
"MIT"
] | 6 | 2020-03-03T22:23:07.000Z | 2021-11-27T06:11:02.000Z | stable_projects/predict_phenotypes/Nguyen2020_RNNAD/cbig/Nguyen2020/test_rnn.py | marielacour81/CBIG | 511af756c6ddabbd3a9681ce3514b79ef5aaaf3f | [
"MIT"
] | null | null | null | stable_projects/predict_phenotypes/Nguyen2020_RNNAD/cbig/Nguyen2020/test_rnn.py | marielacour81/CBIG | 511af756c6ddabbd3a9681ce3514b79ef5aaaf3f | [
"MIT"
] | 2 | 2020-05-27T20:24:03.000Z | 2021-04-14T07:51:44.000Z | # Written by Minh Nguyen and CBIG under MIT license:
# https://github.com/ThomasYeoLab/CBIG/blob/master/LICENSE.md
import unittest
import torch
import cbig.Nguyen2020.rnn as rnn
class RnnCellTest(unittest.TestCase):
""" Unit tests for recurrent cells """
def setUp(self):
torch.manual_seed(0)
... | 33.342857 | 73 | 0.658098 | 171 | 1,167 | 4.339181 | 0.368421 | 0.021563 | 0.09434 | 0.091644 | 0.485175 | 0.485175 | 0.485175 | 0.485175 | 0.485175 | 0.485175 | 0 | 0.03208 | 0.225364 | 1,167 | 34 | 74 | 34.323529 | 0.788717 | 0.122536 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.291667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8b7e0f2a1f8d7363c4a7045709aa260449c86b2e | 4,816 | py | Python | mysite/myapp/forms.py | MarkArren/PhotoSocial | bb401f465a464e7cf6a7fac184cef0d40e0a9525 | [
"MIT"
] | null | null | null | mysite/myapp/forms.py | MarkArren/PhotoSocial | bb401f465a464e7cf6a7fac184cef0d40e0a9525 | [
"MIT"
] | null | null | null | mysite/myapp/forms.py | MarkArren/PhotoSocial | bb401f465a464e7cf6a7fac184cef0d40e0a9525 | [
"MIT"
] | null | null | null | from django import forms
from django.forms import ModelForm
from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth.models import User
from django.core.validators import EmailValidator
from . import models
from .models import ProfileModel
from io import BytesIO
from PIL import Image, ExifTags
... | 28.163743 | 135 | 0.706811 | 581 | 4,816 | 5.814114 | 0.306368 | 0.017762 | 0.026643 | 0.020426 | 0.115157 | 0.07164 | 0.052694 | 0.023683 | 0 | 0 | 0 | 0.013277 | 0.171096 | 4,816 | 170 | 136 | 28.329412 | 0.832916 | 0.269103 | 0 | 0.147059 | 0 | 0 | 0.072289 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04902 | false | 0.019608 | 0.098039 | 0 | 0.303922 | 0.039216 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8b80a8a516beaa5b7d7dde65eb8c098754473d58 | 1,442 | py | Python | up/tasks/sparse/models/heads/cls_head.py | ModelTC/EOD | 164bff80486e9ae6a095a97667b365c46ceabd86 | [
"Apache-2.0"
] | 196 | 2021-10-30T05:15:36.000Z | 2022-03-30T18:43:40.000Z | up/tasks/sparse/models/heads/cls_head.py | ModelTC/EOD | 164bff80486e9ae6a095a97667b365c46ceabd86 | [
"Apache-2.0"
] | 12 | 2021-10-30T11:33:28.000Z | 2022-03-31T14:22:58.000Z | up/tasks/sparse/models/heads/cls_head.py | ModelTC/EOD | 164bff80486e9ae6a095a97667b365c46ceabd86 | [
"Apache-2.0"
] | 23 | 2021-11-01T07:26:17.000Z | 2022-03-27T05:55:37.000Z | from up.utils.general.registry_factory import MODULE_ZOO_REGISTRY
from up.tasks.cls.models.heads import BaseClsHead, ConvNeXtHead
__all__ = ['SparseBaseClsHead', 'SparseConvNeXtHead']
@MODULE_ZOO_REGISTRY.register('sparse_base_cls_head')
class SparseBaseClsHead(BaseClsHead):
def __init__(self, num_classes, in_pl... | 36.974359 | 109 | 0.647018 | 177 | 1,442 | 4.881356 | 0.293785 | 0.016204 | 0.104167 | 0.078704 | 0.641204 | 0.569444 | 0.569444 | 0.53125 | 0.53125 | 0.475694 | 0 | 0.003704 | 0.25104 | 1,442 | 38 | 110 | 37.947368 | 0.796296 | 0 | 0 | 0.387097 | 0 | 0 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.129032 | false | 0 | 0.064516 | 0 | 0.322581 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8b8159fcb82d3a08050148abdcf3102b1846cbb7 | 4,753 | py | Python | app/xl/long_runner.py | evgeniyabrosin/anfisa | ac4aef1a816de05ee2a45aa5b220e2baf93574de | [
"Apache-2.0"
] | 8 | 2019-03-26T16:07:46.000Z | 2021-12-30T13:38:06.000Z | app/xl/long_runner.py | evgeniyabrosin/anfisa | ac4aef1a816de05ee2a45aa5b220e2baf93574de | [
"Apache-2.0"
] | 13 | 2018-11-07T19:37:20.000Z | 2022-02-21T17:11:45.000Z | app/xl/long_runner.py | evgeniyabrosin/anfisa | ac4aef1a816de05ee2a45aa5b220e2baf93574de | [
"Apache-2.0"
] | 15 | 2018-10-16T08:15:11.000Z | 2022-02-21T14:07:29.000Z | # Copyright (c) 2019. Partners HealthCare and other members of
# Forome Association
#
# Developed by Sergey Trifonov based on contributions by Joel Krier,
# Michael Bouzinier, Shamil Sunyaev and other members of Division of
# Genetics, Brigham and Women's Hospital
#
# Licensed under the Apache License, Version 2.... | 39.608333 | 77 | 0.564696 | 519 | 4,753 | 5.071291 | 0.33526 | 0.029255 | 0.029255 | 0.029635 | 0.094225 | 0.094225 | 0.094225 | 0.034954 | 0.034954 | 0.034954 | 0 | 0.005438 | 0.34231 | 4,753 | 119 | 78 | 39.941176 | 0.836532 | 0.185777 | 0 | 0.252747 | 0 | 0 | 0.022095 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054945 | false | 0.010989 | 0.054945 | 0.010989 | 0.164835 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8b8201f75514c47ff34e925027bea925196f4d34 | 23,209 | py | Python | cosmos_virtual_assistant_uf.py | Nishit014/COSMOS | 3042377715f6f4b0eb0a75b6b360415a965754df | [
"MIT"
] | 1 | 2021-06-27T11:53:43.000Z | 2021-06-27T11:53:43.000Z | cosmos_virtual_assistant_uf.py | Aayush9027/COSMOS_VIRTUAL_ASSISTANT | d02aa04a66b2acdfeaf9270607059182f54e78a5 | [
"MIT"
] | null | null | null | cosmos_virtual_assistant_uf.py | Aayush9027/COSMOS_VIRTUAL_ASSISTANT | d02aa04a66b2acdfeaf9270607059182f54e78a5 | [
"MIT"
] | 1 | 2021-06-25T12:04:24.000Z | 2021-06-25T12:04:24.000Z | import pyttsx3
import speech_recognition as sr
import os
import subprocess
#from requests import request , session
#from pprint import pprint as pp
import json
import requests
import datetime
from datetime import date
import time
import calendar
import warnings
import random
import wikipedia
import web... | 38.553156 | 186 | 0.550605 | 2,753 | 23,209 | 4.602252 | 0.207047 | 0.051934 | 0.029834 | 0.015627 | 0.334333 | 0.255406 | 0.220521 | 0.197948 | 0.146725 | 0.10513 | 0 | 0.009358 | 0.341592 | 23,209 | 602 | 187 | 38.553156 | 0.819776 | 0.05653 | 0 | 0.251521 | 0 | 0.002028 | 0.316213 | 0.010969 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032454 | false | 0.004057 | 0.048682 | 0 | 0.089249 | 0.01217 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8b849ac15aeae749f8a20c70f9517f14b9a20eb1 | 3,402 | py | Python | features/haralick.py | annaformaniuk/smoke-detection | 217014e9a2a5b9861f4cda3d4c1abce4aca34773 | [
"MIT"
] | 7 | 2019-05-29T07:43:40.000Z | 2022-02-10T07:44:11.000Z | features/haralick.py | annaformaniuk/smoke-detection | 217014e9a2a5b9861f4cda3d4c1abce4aca34773 | [
"MIT"
] | 1 | 2020-06-07T10:50:50.000Z | 2020-06-07T10:50:50.000Z | features/haralick.py | annaformaniuk/smoke-detection | 217014e9a2a5b9861f4cda3d4c1abce4aca34773 | [
"MIT"
] | 4 | 2019-11-26T15:05:03.000Z | 2021-05-10T13:41:15.000Z | # from https://gogul09.github.io/software/texture-recognition
import cv2
import numpy as np
import os
import glob
import mahotas as mt
from sklearn.svm import LinearSVC
from typing import List
import matplotlib.pyplot as plt
import pickle
# load the training dataset
train_path = "../inputs/for_texture_model/train"
tra... | 35.072165 | 77 | 0.581717 | 395 | 3,402 | 4.891139 | 0.374684 | 0.028468 | 0.029503 | 0.020704 | 0.168737 | 0.142857 | 0.111801 | 0.111801 | 0.111801 | 0.111801 | 0 | 0.011479 | 0.334215 | 3,402 | 96 | 78 | 35.4375 | 0.841501 | 0.214874 | 0 | 0.111111 | 0 | 0 | 0.113293 | 0.034743 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.166667 | 0 | 0.222222 | 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 | 0 | 0 | 0 | 0 | 1 | 0 |
8b87afec28b6e06554c41af8512eee6c2652795a | 4,441 | py | Python | asciidoxy/templates/helpers.py | lurch/asciidoxy | 9781ba696637fadbf62f1b7c5da843b0d292007d | [
"Apache-2.0"
] | null | null | null | asciidoxy/templates/helpers.py | lurch/asciidoxy | 9781ba696637fadbf62f1b7c5da843b0d292007d | [
"Apache-2.0"
] | null | null | null | asciidoxy/templates/helpers.py | lurch/asciidoxy | 9781ba696637fadbf62f1b7c5da843b0d292007d | [
"Apache-2.0"
] | null | null | null | # Copyright (C) 2019-2020, TomTom (http://tomtom.com).
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 33.390977 | 99 | 0.611124 | 618 | 4,441 | 4.221683 | 0.218447 | 0.024147 | 0.021081 | 0.02453 | 0.415102 | 0.380222 | 0.380222 | 0.350326 | 0.325029 | 0.302798 | 0 | 0.006657 | 0.255798 | 4,441 | 132 | 100 | 33.643939 | 0.782753 | 0.139383 | 0 | 0.383721 | 0 | 0.011628 | 0.272345 | 0.159043 | 0 | 0 | 0 | 0 | 0 | 1 | 0.104651 | false | 0 | 0.011628 | 0.046512 | 0.267442 | 0.069767 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8b88d9d29f78c551c398e16471317d51e96b8e76 | 2,511 | py | Python | fin_model_course/pltemplates/graphics/model_structure.py | whoopnip/fin-model-course | e6c5ae313bba601c4aca0f334818b61cc0393118 | [
"MIT"
] | 5 | 2020-08-29T15:28:39.000Z | 2021-12-01T16:53:25.000Z | fin_model_course/pltemplates/graphics/model_structure.py | whoopnip/fin-model-course | e6c5ae313bba601c4aca0f334818b61cc0393118 | [
"MIT"
] | 16 | 2020-02-26T16:03:47.000Z | 2021-06-15T15:17:37.000Z | fin_model_course/pltemplates/graphics/model_structure.py | whoopnip/fin-model-course | e6c5ae313bba601c4aca0f334818b61cc0393118 | [
"MIT"
] | 3 | 2021-01-22T19:38:36.000Z | 2021-09-28T08:14:00.000Z | import pyexlatex as pl
import pyexlatex.table as lt
import pyexlatex.presentation as lp
import pyexlatex.graphics as lg
import pyexlatex.layouts as ll
def get_model_structure_graphic() -> lg.TikZPicture:
inputs_block_options = [
'fill=orange!30'
]
model_block_options = [
'fill=blue!50'
... | 29.541176 | 112 | 0.560335 | 286 | 2,511 | 4.646853 | 0.244755 | 0.124154 | 0.094808 | 0.086531 | 0.261099 | 0.100828 | 0.058691 | 0 | 0 | 0 | 0 | 0.040144 | 0.335325 | 2,511 | 84 | 113 | 29.892857 | 0.756141 | 0 | 0 | 0 | 0 | 0 | 0.056949 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014706 | false | 0 | 0.073529 | 0 | 0.102941 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8b89b607196b90b61199e59cb3a2c777f0b348f7 | 1,748 | py | Python | calc.py | V-Perotto/Contador_NomeSobrenome_Decimal | 1e625306254c3f48e4c722e6ad04601f65af4c3c | [
"CC0-1.0"
] | null | null | null | calc.py | V-Perotto/Contador_NomeSobrenome_Decimal | 1e625306254c3f48e4c722e6ad04601f65af4c3c | [
"CC0-1.0"
] | null | null | null | calc.py | V-Perotto/Contador_NomeSobrenome_Decimal | 1e625306254c3f48e4c722e6ad04601f65af4c3c | [
"CC0-1.0"
] | null | null | null | from alfabeto import *
from main import nameSur
# Listas
letras = ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v",
"w", "x", "y", "z", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R",
"S", "T", "U... | 31.214286 | 119 | 0.371854 | 221 | 1,748 | 2.936652 | 0.384615 | 0.115562 | 0.009245 | 0.012327 | 0.080123 | 0.080123 | 0.080123 | 0.080123 | 0.080123 | 0.080123 | 0 | 0.001942 | 0.410755 | 1,748 | 56 | 120 | 31.214286 | 0.628155 | 0.029176 | 0 | 0.04 | 0 | 0 | 0.076151 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.04 | 0 | 0.14 | 0.04 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8b914a0a6371ff8952db67b7eee682b5c44c059b | 569 | py | Python | nengo_ssp/hrr_algebra.py | nsdumont/nengo_ssp | 9530a4618e213fb695b52887772c1309d0f07a0b | [
"MIT"
] | null | null | null | nengo_ssp/hrr_algebra.py | nsdumont/nengo_ssp | 9530a4618e213fb695b52887772c1309d0f07a0b | [
"MIT"
] | null | null | null | nengo_ssp/hrr_algebra.py | nsdumont/nengo_ssp | 9530a4618e213fb695b52887772c1309d0f07a0b | [
"MIT"
] | null | null | null | import numpy as np
from nengo_spa.algebras.hrr_algebra import HrrAlgebra
from nengo.utils.numpy import is_number
class HrrAlgebra(HrrAlgebra):
def fractional_bind(self, A, b):
"""Fractional circular convolution."""
if not is_number(b):
raise ValueError("b must be a scalar.")
re... | 35.5625 | 62 | 0.620387 | 89 | 569 | 3.910112 | 0.460674 | 0.071839 | 0.068966 | 0.057471 | 0.137931 | 0.137931 | 0.137931 | 0.137931 | 0 | 0 | 0 | 0.004684 | 0.249561 | 569 | 16 | 62 | 35.5625 | 0.810304 | 0.056239 | 0 | 0 | 0 | 0 | 0.090226 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.230769 | 0 | 0.615385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8b9247a613a137d9a893fcd8004929a037e3fffd | 2,234 | py | Python | server.py | Xinzhe-Qi/15112-Term-Project | 07a4b78d23629478039667ed4c29287e5e781bf3 | [
"MIT"
] | null | null | null | server.py | Xinzhe-Qi/15112-Term-Project | 07a4b78d23629478039667ed4c29287e5e781bf3 | [
"MIT"
] | null | null | null | server.py | Xinzhe-Qi/15112-Term-Project | 07a4b78d23629478039667ed4c29287e5e781bf3 | [
"MIT"
] | null | null | null | import socket
from _thread import *
import pickle
from board import Board
import time
hostname = socket.gethostname()
ipAddr = socket.gethostbyname(hostname)
print(ipAddr)
server = ipAddr
port = 5556
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
try:
s.bind((server, port))
except socket.error as e:
... | 21.27619 | 86 | 0.499552 | 245 | 2,234 | 4.497959 | 0.408163 | 0.019056 | 0.029946 | 0.029038 | 0.043557 | 0.043557 | 0 | 0 | 0 | 0 | 0 | 0.029261 | 0.388093 | 2,234 | 104 | 87 | 21.480769 | 0.776884 | 0 | 0 | 0.135135 | 0 | 0 | 0.053812 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013514 | false | 0 | 0.067568 | 0 | 0.081081 | 0.108108 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8b98b8d35fd76526fa88fe1c8a30101c9a8baac3 | 9,713 | py | Python | bot/ts/ThreadSafeTSConnection.py | Asnanon/ts-gw2-verifyBot | 4da70450bc53631e61a42d18df36f5aef710cdbe | [
"MIT"
] | null | null | null | bot/ts/ThreadSafeTSConnection.py | Asnanon/ts-gw2-verifyBot | 4da70450bc53631e61a42d18df36f5aef710cdbe | [
"MIT"
] | null | null | null | bot/ts/ThreadSafeTSConnection.py | Asnanon/ts-gw2-verifyBot | 4da70450bc53631e61a42d18df36f5aef710cdbe | [
"MIT"
] | null | null | null | import logging
from threading import RLock
from typing import Callable, Tuple, TypeVar
import schedule
import ts3
from ts3.query import TS3ServerConnection
from bot.config import Config
LOG = logging.getLogger(__name__)
R = TypeVar('R')
def default_exception_handler(ex):
""" prints the trace and returns the e... | 45.176744 | 171 | 0.601153 | 1,146 | 9,713 | 4.961606 | 0.268761 | 0.027436 | 0.033767 | 0.029898 | 0.179036 | 0.142983 | 0.126451 | 0.105698 | 0.083539 | 0.074569 | 0 | 0.006237 | 0.323175 | 9,713 | 214 | 172 | 45.38785 | 0.858686 | 0.29826 | 0 | 0.225564 | 0 | 0 | 0.128452 | 0.004034 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0.037594 | 0.052632 | 0.022556 | 0.24812 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8ba24d39fccf745cf193a9313e6f0347c33e72ba | 1,122 | py | Python | workalendar/europe/georgia.py | macharmi/workalendar | 4f8644484d6ba56c66e4bb82c377aa19eccfc0dc | [
"MIT"
] | null | null | null | workalendar/europe/georgia.py | macharmi/workalendar | 4f8644484d6ba56c66e4bb82c377aa19eccfc0dc | [
"MIT"
] | null | null | null | workalendar/europe/georgia.py | macharmi/workalendar | 4f8644484d6ba56c66e4bb82c377aa19eccfc0dc | [
"MIT"
] | null | null | null | from ..core import OrthodoxCalendar
from ..registry_tools import iso_register
@iso_register('GE')
class Georgia(OrthodoxCalendar):
'Country of Georgia'
"Sources: "
"https://en.wikipedia.org/wiki/Public_holidays_in_Georgia_(country)"
"https://www.officeholidays.com/countries/georgia/2021"
include... | 30.324324 | 72 | 0.646168 | 140 | 1,122 | 4.992857 | 0.564286 | 0.078684 | 0.072961 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039581 | 0.234403 | 1,122 | 36 | 73 | 31.166667 | 0.774156 | 0.016043 | 0 | 0 | 0 | 0 | 0.331551 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.433333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8ba46c9ce685361335be0d77dfae9a2dd018991f | 2,502 | py | Python | sorts.py | zhangxl97/leetcode | aa94228eba86d761ce5c9b6bfb8b2015c1629074 | [
"MIT"
] | 1 | 2020-09-12T10:35:22.000Z | 2020-09-12T10:35:22.000Z | sorts.py | zhangxl97/leetcode | aa94228eba86d761ce5c9b6bfb8b2015c1629074 | [
"MIT"
] | null | null | null | sorts.py | zhangxl97/leetcode | aa94228eba86d761ce5c9b6bfb8b2015c1629074 | [
"MIT"
] | null | null | null | from typing import List
class sort:
def quick(self, nums:List[int]) -> List[int]:
if len(nums) >= 2:
base = nums[-1] # 选取基准值,可以为任何值
left, right = [], []
nums = nums[:-1]
for num in nums:
if num >= base: # 大于等于基准值的数存于right
... | 26.617021 | 68 | 0.406475 | 293 | 2,502 | 3.416382 | 0.228669 | 0.02997 | 0.026973 | 0.01998 | 0.06993 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022642 | 0.470424 | 2,502 | 93 | 69 | 26.903226 | 0.73283 | 0.120703 | 0 | 0.179104 | 0 | 0 | 0.003665 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074627 | false | 0 | 0.014925 | 0 | 0.179104 | 0.044776 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8ba6b11d7fb6854358fc0d437c22f1ff827b55c0 | 6,622 | py | Python | energy_consumption_lstm/data/model.py | DiarmuidKelly/predictors | 9087302ab3cc54463807b0777f341b575a8fcc90 | [
"MIT"
] | null | null | null | energy_consumption_lstm/data/model.py | DiarmuidKelly/predictors | 9087302ab3cc54463807b0777f341b575a8fcc90 | [
"MIT"
] | null | null | null | energy_consumption_lstm/data/model.py | DiarmuidKelly/predictors | 9087302ab3cc54463807b0777f341b575a8fcc90 | [
"MIT"
] | null | null | null | import datetime as dt
import numpy as np
def calculate_ranges(dataset):
arr = np.array(dataset)
mean = np.mean(arr, axis=0)
min = np.min(arr, axis=0)
max = np.max(arr, axis=0)
ranges = np.array((min, mean, max)).T
return ranges
class Record:
def __init__(self):
self.time_date =... | 43.854305 | 123 | 0.643914 | 999 | 6,622 | 3.957958 | 0.103103 | 0.044006 | 0.056651 | 0.05564 | 0.495448 | 0.363935 | 0.221548 | 0.213202 | 0.161609 | 0.143146 | 0 | 0.034631 | 0.228179 | 6,622 | 150 | 124 | 44.146667 | 0.738994 | 0.064029 | 0 | 0.171171 | 0 | 0 | 0.03315 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.162162 | false | 0 | 0.018018 | 0.027027 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8ba816e0011648c0f031c8c0072d0e07ef644345 | 3,639 | py | Python | python ex12.py | IMDCGP105-1819/portfolio-s184286 | e5485f640f341090823bbcaabe287376a048b2c4 | [
"MIT"
] | null | null | null | python ex12.py | IMDCGP105-1819/portfolio-s184286 | e5485f640f341090823bbcaabe287376a048b2c4 | [
"MIT"
] | null | null | null | python ex12.py | IMDCGP105-1819/portfolio-s184286 | e5485f640f341090823bbcaabe287376a048b2c4 | [
"MIT"
] | null | null | null | """
Task 3
Write an application that allows you to calculate the cost of a trip.
Implement a function called hotel_cost that takes one argument, nights, as input. The hotel costs
£70 per night – so return a suitable value.
Implement a function called plane_ticket_cost that accepts a string, city, and a float... | 34.657143 | 183 | 0.687826 | 593 | 3,639 | 4.178752 | 0.252951 | 0.039952 | 0.054479 | 0.01937 | 0.464891 | 0.435835 | 0.424132 | 0.395077 | 0.319613 | 0.284907 | 0 | 0.035727 | 0.230833 | 3,639 | 104 | 184 | 34.990385 | 0.84423 | 0.52377 | 0 | 0 | 0 | 0.02381 | 0.327329 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0 | 0 | 0.095238 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8ba86635b84461a1f0a395b2d0b3f48cfc499bf5 | 7,050 | py | Python | segment_chars.py | indranildchandra/Automatic-Licence-Plate-Recognizer | 12abcf40459f8e2d5d7491aedaed2ee3ea1eb1a7 | [
"Apache-2.0"
] | 1 | 2020-10-12T12:49:05.000Z | 2020-10-12T12:49:05.000Z | segment_chars.py | indranildchandra/Automatic-Licence-Plate-Recognizer | 12abcf40459f8e2d5d7491aedaed2ee3ea1eb1a7 | [
"Apache-2.0"
] | null | null | null | segment_chars.py | indranildchandra/Automatic-Licence-Plate-Recognizer | 12abcf40459f8e2d5d7491aedaed2ee3ea1eb1a7 | [
"Apache-2.0"
] | null | null | null | import pandas as pd
import numpy as np
import cv2
import os
import math
import pickle
from matplotlib import pyplot as plt
from PIL import Image
from matplotlib.pyplot import imshow
# %matplotlib inline
def rotate_image(img):
# gray = cv2.cvtColor(img,cv2.COLOR_BGR2GRAY)
gray = img
edges = cv2.Canny(gray,50,150,ap... | 31.61435 | 141 | 0.699433 | 1,110 | 7,050 | 4.290991 | 0.237838 | 0.070544 | 0.054587 | 0.04535 | 0.279866 | 0.17258 | 0.141088 | 0.119253 | 0.062566 | 0 | 0 | 0.050253 | 0.158865 | 7,050 | 222 | 142 | 31.756757 | 0.752951 | 0.274326 | 0 | 0.152174 | 0 | 0 | 0.002374 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021739 | false | 0 | 0.065217 | 0 | 0.115942 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8bab05cccc2b06bc0e17af38af464fd773e79545 | 5,358 | py | Python | beastx/__main__.py | Mrunal1911/Beast-X | b7b13b3b5db754894a830569909c4b77aa1ff19d | [
"MIT"
] | null | null | null | beastx/__main__.py | Mrunal1911/Beast-X | b7b13b3b5db754894a830569909c4b77aa1ff19d | [
"MIT"
] | null | null | null | beastx/__main__.py | Mrunal1911/Beast-X | b7b13b3b5db754894a830569909c4b77aa1ff19d | [
"MIT"
] | null | null | null | import logging
from pathlib import Path
from sys import argv
import var
import telethon.utils
from telethon import TelegramClient
from telethon import events,Button
import os
from var import Var
from . import beast
from telethon.tl import functions
from beastx.Configs import Config
from telethon.tl.functi... | 28.652406 | 140 | 0.58044 | 635 | 5,358 | 4.833071 | 0.313386 | 0.038775 | 0.031932 | 0.037471 | 0.254806 | 0.203324 | 0.140762 | 0.102313 | 0.07755 | 0.052134 | 0 | 0.003537 | 0.261292 | 5,358 | 186 | 141 | 28.806452 | 0.759727 | 0.067749 | 0 | 0.324074 | 0 | 0 | 0.138139 | 0.035198 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.018519 | 0.212963 | 0 | 0.212963 | 0.027778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8bac89c0e7fe595c62cbe29b2411dd910e49d2c2 | 859 | py | Python | tests/day02/test_day02.py | SebastiaanZ/aoc-2019 | e1fe4630b0f375be0b79398e07e23b9c0196efbb | [
"MIT"
] | 3 | 2019-12-02T19:38:14.000Z | 2020-01-28T00:06:09.000Z | tests/day02/test_day02.py | SebastiaanZ/aoc-2019 | e1fe4630b0f375be0b79398e07e23b9c0196efbb | [
"MIT"
] | 6 | 2020-03-24T17:58:40.000Z | 2022-03-12T00:18:45.000Z | tests/day02/test_day02.py | SebastiaanZ/aoc-2019 | e1fe4630b0f375be0b79398e07e23b9c0196efbb | [
"MIT"
] | null | null | null | import unittest
from solutions.day02.solution import ship_computer
from tests.helpers import Puzzle
class DayTwoTests(unittest.TestCase):
"""Tests for my solutions to Day 1 of the Advent of Code 2019."""
def test_ship_computer_with_example_data(self):
"""Test the ship computer used for day 2 using t... | 37.347826 | 99 | 0.641444 | 125 | 859 | 4.336 | 0.52 | 0.092251 | 0.04059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050794 | 0.266589 | 859 | 22 | 100 | 39.045455 | 0.809524 | 0.264261 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 1 | 0.076923 | false | 0 | 0.230769 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8bacb9d61c16b4122f25721e214182358d00a686 | 24,678 | py | Python | ActiveSuspensions/2DOF Fuzzy Suspension.py | MarcoFerrari128/Portfolio | 82cd81a4235dbd804cd13100b2304a04ca6771b5 | [
"MIT"
] | null | null | null | ActiveSuspensions/2DOF Fuzzy Suspension.py | MarcoFerrari128/Portfolio | 82cd81a4235dbd804cd13100b2304a04ca6771b5 | [
"MIT"
] | null | null | null | ActiveSuspensions/2DOF Fuzzy Suspension.py | MarcoFerrari128/Portfolio | 82cd81a4235dbd804cd13100b2304a04ca6771b5 | [
"MIT"
] | null | null | null | import numpy as np
import matplotlib.pyplot as plt
from scipy.integrate import ode
import FLC
import pyprind
from numpy.linalg import eig
import pandas as pd
def impulse(lenght):
i = 0
Impulse = []
while i < lenght:
if i == 99:
Impulse.append(1)
else:
Impulse.append... | 29.73253 | 82 | 0.56678 | 3,041 | 24,678 | 4.54686 | 0.106544 | 0.02835 | 0.033847 | 0.039343 | 0.496565 | 0.458451 | 0.451508 | 0.450278 | 0.409055 | 0.352354 | 0 | 0.055422 | 0.22279 | 24,678 | 829 | 83 | 29.768396 | 0.665485 | 0.214077 | 0 | 0.400372 | 0 | 0 | 0.067452 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020484 | false | 0.040968 | 0.013035 | 0 | 0.054004 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8bae7f55a261a7c3c248850c794f2efd73be536a | 950 | py | Python | pywatts/modules/wrappers/dl_wrapper.py | KIT-IAI/pyWATTS | 68993bb51ff272c1a98add31e2b537b63e9d0848 | [
"MIT"
] | 30 | 2020-10-04T17:32:58.000Z | 2022-03-18T15:06:39.000Z | pywatts/modules/wrappers/dl_wrapper.py | KIT-IAI/pyWATTS | 68993bb51ff272c1a98add31e2b537b63e9d0848 | [
"MIT"
] | 123 | 2020-10-26T14:42:12.000Z | 2022-03-31T09:15:55.000Z | pywatts/modules/wrappers/dl_wrapper.py | KIT-IAI/pyWATTS | 68993bb51ff272c1a98add31e2b537b63e9d0848 | [
"MIT"
] | 7 | 2020-10-21T15:13:43.000Z | 2022-03-07T15:47:49.000Z | # pylint: disable=W0223
# Pylint cannot handle abstract subclasses of abstract base classes
from abc import ABC
import xarray as xr
from pywatts.modules.wrappers.base_wrapper import BaseWrapper
class DlWrapper(BaseWrapper, ABC):
"""
Super class for deep learning framework wrappers
:param model: The de... | 26.388889 | 80 | 0.656842 | 124 | 950 | 4.870968 | 0.5 | 0.104305 | 0.043046 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005789 | 0.272632 | 950 | 36 | 81 | 26.388889 | 0.868307 | 0.347368 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.166667 | 0 | 0.388889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8bb2c815f8cb9c7313bf196f810ccfc535e6256b | 435 | py | Python | 第4章/program/Chapter_4_compare.py | kingname/SourceCodeOfBook | ab7275108994dca564905818b678bbd2f771c18e | [
"MIT"
] | 274 | 2018-10-01T11:07:25.000Z | 2022-03-17T13:48:45.000Z | 第4章/program/Chapter_4_compare.py | kingname/SourceCodeOfBook | ab7275108994dca564905818b678bbd2f771c18e | [
"MIT"
] | 6 | 2019-02-28T14:18:21.000Z | 2022-03-02T14:57:39.000Z | 第4章/program/Chapter_4_compare.py | kingname/SourceCodeOfBook | ab7275108994dca564905818b678bbd2f771c18e | [
"MIT"
] | 110 | 2018-10-16T06:08:37.000Z | 2022-03-16T08:19:29.000Z | import requests
import time
from multiprocessing.dummy import Pool
def query(url):
requests.get(url)
start = time.time()
for i in range(100):
query('https://baidu.com')
end = time.time()
print(f'单线程循环访问100次百度,耗时:{end - start}')
start = time.time()
url_list = []
for i in range(100):
url_list.append('http... | 18.125 | 40 | 0.682759 | 69 | 435 | 4.26087 | 0.434783 | 0.108844 | 0.088435 | 0.07483 | 0.210884 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037736 | 0.147126 | 435 | 23 | 41 | 18.913043 | 0.754717 | 0 | 0 | 0.333333 | 0 | 0 | 0.211982 | 0.048387 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.166667 | 0 | 0.222222 | 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 | 0 | 0 | 0 | 0 | 1 | 0 |
8bb4b5b36380f83dc59bb259a75e2877488cbe5c | 750 | py | Python | array/max_subarray.py | elenaborisova/LeetCode-Solutions | 98376aab7fd150a724e316357ae5ea46988d9eac | [
"MIT"
] | null | null | null | array/max_subarray.py | elenaborisova/LeetCode-Solutions | 98376aab7fd150a724e316357ae5ea46988d9eac | [
"MIT"
] | null | null | null | array/max_subarray.py | elenaborisova/LeetCode-Solutions | 98376aab7fd150a724e316357ae5ea46988d9eac | [
"MIT"
] | null | null | null | # DP; Time: O(n); Space: O(1)
def max_subarray(nums):
for i in range(1, len(nums)):
if nums[i - 1] > 0:
nums[i] += nums[i - 1]
return max(nums)
# Time: O(n); Space: O(1)
def max_subarray2(nums):
max_sum = nums[0]
curr_sum = nums[0]
for i in range(len(nums)):
if curr_s... | 22.058824 | 57 | 0.52 | 128 | 750 | 2.890625 | 0.257813 | 0.121622 | 0.148649 | 0.12973 | 0.194595 | 0.194595 | 0.102703 | 0.102703 | 0 | 0 | 0 | 0.053846 | 0.306667 | 750 | 33 | 58 | 22.727273 | 0.657692 | 0.186667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0 | 0 | 0.210526 | 0.157895 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8bb4f4ea88058eb0410caa3dc14fb32b876055fc | 4,696 | py | Python | python/trezorlib/cosi.py | Kayuii/trezor-crypto | 6556616681a4e2d7e18817e8692d4f6e041dee01 | [
"MIT"
] | null | null | null | python/trezorlib/cosi.py | Kayuii/trezor-crypto | 6556616681a4e2d7e18817e8692d4f6e041dee01 | [
"MIT"
] | 1 | 2019-02-08T00:22:42.000Z | 2019-02-13T09:41:54.000Z | python/trezorlib/cosi.py | Kayuii/trezor-crypto | 6556616681a4e2d7e18817e8692d4f6e041dee01 | [
"MIT"
] | 2 | 2019-02-07T23:57:09.000Z | 2020-10-21T07:07:27.000Z | # This file is part of the Trezor project.
#
# Copyright (C) 2012-2018 SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
# as published by the Free Software Foundation.
#
# This library is distrib... | 33.784173 | 105 | 0.70379 | 624 | 4,696 | 5.200321 | 0.376603 | 0.024653 | 0.020339 | 0.01171 | 0.0302 | 0.019723 | 0 | 0 | 0 | 0 | 0 | 0.070952 | 0.201661 | 4,696 | 138 | 106 | 34.028986 | 0.794612 | 0.380963 | 0 | 0.081081 | 0 | 0 | 0.028521 | 0 | 0 | 0 | 0 | 0 | 0.013514 | 1 | 0.121622 | false | 0 | 0.054054 | 0.027027 | 0.283784 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8bb52f491af72661c47a685434d4940a457e1a8b | 2,881 | py | Python | workflow/scripts/modifyFastQC.py | StephenRicher/RNA-Flow | 57890772cb95beb390990618eb02f5d6e138312b | [
"MIT"
] | null | null | null | workflow/scripts/modifyFastQC.py | StephenRicher/RNA-Flow | 57890772cb95beb390990618eb02f5d6e138312b | [
"MIT"
] | null | null | null | workflow/scripts/modifyFastQC.py | StephenRicher/RNA-Flow | 57890772cb95beb390990618eb02f5d6e138312b | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
""" Create new FastQC zip directory with a new sample name for multiQC."""
import os
import sys
import logging
import zipfile
import tempfile
import argparse
__version__ = '1.0.0'
def main(zipIn, zipOut, sample, **kwargs):
with tempfile.TemporaryDirectory() as tmpDir:
# Create... | 34.710843 | 94 | 0.637279 | 336 | 2,881 | 5.342262 | 0.404762 | 0.030641 | 0.021727 | 0.017827 | 0.095822 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003259 | 0.254426 | 2,881 | 82 | 95 | 35.134146 | 0.832402 | 0.121138 | 0 | 0.127273 | 0 | 0 | 0.162302 | 0.017857 | 0 | 0 | 0 | 0 | 0 | 1 | 0.036364 | false | 0 | 0.109091 | 0 | 0.163636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8bb84845a4e4ca234bb0e7dc0448fc8b70e6253a | 843 | py | Python | chill/examples/chill/testcases/lu.py | CompOpt4Apps/Artifact-DataDepSimplify | 4fa1bf2bda2902fec50a54ee79ae405a554fc9f4 | [
"MIT"
] | 5 | 2019-05-20T03:35:41.000Z | 2021-09-16T22:22:13.000Z | chill/examples/chill/testcases/lu.py | CompOpt4Apps/Artifact-DataDepSimplify | 4fa1bf2bda2902fec50a54ee79ae405a554fc9f4 | [
"MIT"
] | null | null | null | chill/examples/chill/testcases/lu.py | CompOpt4Apps/Artifact-DataDepSimplify | 4fa1bf2bda2902fec50a54ee79ae405a554fc9f4 | [
"MIT"
] | null | null | null | # LAPACK optimization strategy for LU factorization.
from chill import *
source('lu.c')
procedure('lu')
loop(0)
TJ = 64
original()
tile(1, 3, TJ, 1)
split(1, 2, 'L1-L2>=2') #t2-t4>=2
permute(3, 2, [2,4,3]) # mini-LU
permute(1, 2, [3,4,2]) # other than mini-LU
split(1, 2, 'L2>=L1-1') # seperate MM by t4 >= t2-1
# no... | 17.204082 | 52 | 0.578885 | 175 | 843 | 2.782857 | 0.331429 | 0.041068 | 0.024641 | 0.061602 | 0.065708 | 0 | 0 | 0 | 0 | 0 | 0 | 0.182222 | 0.199288 | 843 | 48 | 53 | 17.5625 | 0.539259 | 0.201661 | 0 | 0 | 0 | 0 | 0.045732 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.026316 | 0 | 0.026316 | 0.026316 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8bb96428aea103e57829628f8aba75da646487e4 | 6,803 | py | Python | scripts/DailyJob/api_data_fetcher.py | SamFangshan/CZ2006CarPark | 663b0370e7d2e0cbe4d0a7391656a731fc7dac52 | [
"MIT"
] | 2 | 2020-02-26T03:28:02.000Z | 2020-04-25T07:03:36.000Z | scripts/DailyJob/api_data_fetcher.py | SamFangshan/CZ2006CarPark | 663b0370e7d2e0cbe4d0a7391656a731fc7dac52 | [
"MIT"
] | null | null | null | scripts/DailyJob/api_data_fetcher.py | SamFangshan/CZ2006CarPark | 663b0370e7d2e0cbe4d0a7391656a731fc7dac52 | [
"MIT"
] | null | null | null | import json
import pandas as pd
import numpy as np
from urllib.request import Request, urlopen
from onemap_converter import OneMapConverter
def load_HDB_carpark():
converter = OneMapConverter('FJIANG003@e.ntu.edu.sg', 'XS4teTdcYz')
# Load HDB Carpark Information
url_HDB_carpark = 'https://data.gov.sg/api/... | 58.646552 | 129 | 0.66456 | 955 | 6,803 | 4.442932 | 0.198953 | 0.134339 | 0.057035 | 0.044073 | 0.559981 | 0.496583 | 0.449446 | 0.331369 | 0.251473 | 0.204337 | 0 | 0.019367 | 0.187858 | 6,803 | 115 | 130 | 59.156522 | 0.748597 | 0.0538 | 0 | 0.080808 | 0 | 0.020202 | 0.245838 | 0.006846 | 0 | 0 | 0 | 0 | 0 | 1 | 0.010101 | false | 0 | 0.050505 | 0 | 0.070707 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8bbca367e9908a584ebeb0ff48984d79eb8c67ba | 859 | py | Python | api_updater.py | jpes707/quiz-api | 18af31b9cdba8927e4e7a38e0bd3623e938cf7dc | [
"MIT"
] | null | null | null | api_updater.py | jpes707/quiz-api | 18af31b9cdba8927e4e7a38e0bd3623e938cf7dc | [
"MIT"
] | null | null | null | api_updater.py | jpes707/quiz-api | 18af31b9cdba8927e4e7a38e0bd3623e938cf7dc | [
"MIT"
] | null | null | null | import os
from mongo_config import questions_collection, client
def get_relative_path(*args):
return os.path.join(os.path.dirname(os.path.abspath(__file__)), *args)
questions_collection.delete_many({}) # clears all questions in MongoDB
question_objects = []
lines = [line[:-1] for line in open(get_relative_path(... | 37.347826 | 99 | 0.733411 | 116 | 859 | 5.215517 | 0.5 | 0.08595 | 0.049587 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008141 | 0.142026 | 859 | 22 | 100 | 39.045455 | 0.812754 | 0.10943 | 0 | 0 | 0 | 0 | 0.076216 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.117647 | 0.058824 | 0.235294 | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8bbcec0ab14f44786258536c11d18bbc453834f6 | 2,429 | py | Python | util.py | AndreasWieg/PC-BIGAN | 0738f9bf56bd30b43eb2db9765ce9bae25ca81f6 | [
"MIT"
] | null | null | null | util.py | AndreasWieg/PC-BIGAN | 0738f9bf56bd30b43eb2db9765ce9bae25ca81f6 | [
"MIT"
] | null | null | null | util.py | AndreasWieg/PC-BIGAN | 0738f9bf56bd30b43eb2db9765ce9bae25ca81f6 | [
"MIT"
] | null | null | null | import numpy as np
import random
from plyfile import PlyData, PlyElement
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
from pyntcloud import PyntCloud
import os
import sys
import re
def shuffle_data(training_data):
np.random.shuffle(training_data)
return training_data
def save_poin... | 37.369231 | 107 | 0.691231 | 340 | 2,429 | 4.741176 | 0.285294 | 0.119107 | 0.056452 | 0.086849 | 0.407568 | 0.372829 | 0.310174 | 0.310174 | 0.254342 | 0.251861 | 0 | 0.009519 | 0.178263 | 2,429 | 64 | 108 | 37.953125 | 0.798096 | 0.02429 | 0 | 0.196429 | 0 | 0 | 0.190034 | 0.132601 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.160714 | 0 | 0.285714 | 0.107143 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8bbd00b53513bf84f5c58a5ce90fbc7b1806da00 | 7,474 | py | Python | seq_to_seq.py | jlibovicky/char-nmt-two-step-decoder | 3fa90c38556f23568f6b88eb98e4bc2193f3b744 | [
"BSD-3-Clause"
] | null | null | null | seq_to_seq.py | jlibovicky/char-nmt-two-step-decoder | 3fa90c38556f23568f6b88eb98e4bc2193f3b744 | [
"BSD-3-Clause"
] | null | null | null | seq_to_seq.py | jlibovicky/char-nmt-two-step-decoder | 3fa90c38556f23568f6b88eb98e4bc2193f3b744 | [
"BSD-3-Clause"
] | null | null | null | """Encoder-decoder model."""
from typing import List, Tuple, Union
import torch
import torch.nn as nn
from encoder import Encoder, VanillaEncoder
from decoder import Decoder, VanillaDecoder
T = torch.Tensor
def compute_attention_entropy(
att_matrix: T, query_mask: T) -> float:
# att matrix is: batch ... | 37.18408 | 77 | 0.596602 | 864 | 7,474 | 4.844907 | 0.190972 | 0.039417 | 0.014333 | 0.0344 | 0.41376 | 0.382704 | 0.323459 | 0.298853 | 0.277114 | 0.277114 | 0 | 0.006729 | 0.323923 | 7,474 | 200 | 78 | 37.37 | 0.82169 | 0.039872 | 0 | 0.320988 | 0 | 0 | 0.021791 | 0.016203 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04321 | false | 0 | 0.030864 | 0 | 0.117284 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8bbe4fd060a6878adde13a88356535b7bfb0e331 | 29,288 | py | Python | tests/utils.py | Ouranosinc/cowbird | 108195ca6abbd58fd75b180f6fa7d40eab0f8ea5 | [
"MIT"
] | 1 | 2021-02-04T18:56:36.000Z | 2021-02-04T18:56:36.000Z | tests/utils.py | Ouranosinc/cowbird | 108195ca6abbd58fd75b180f6fa7d40eab0f8ea5 | [
"MIT"
] | 12 | 2021-02-05T22:01:10.000Z | 2022-03-09T14:23:10.000Z | tests/utils.py | Ouranosinc/cowbird | 108195ca6abbd58fd75b180f6fa7d40eab0f8ea5 | [
"MIT"
] | null | null | null | import functools
import json as json_pkg # avoid conflict name with json argument employed for some function
import os
from distutils.version import LooseVersion
from typing import TYPE_CHECKING
from urllib.parse import urlparse
import mock
import requests
import requests.exceptions
from pyramid.httpexceptions import... | 44.042105 | 120 | 0.651974 | 3,725 | 29,288 | 4.962148 | 0.147919 | 0.024995 | 0.008656 | 0.00844 | 0.237611 | 0.172041 | 0.126866 | 0.094135 | 0.069087 | 0.055886 | 0 | 0.003908 | 0.248703 | 29,288 | 664 | 121 | 44.108434 | 0.836121 | 0.354275 | 0 | 0.148241 | 0 | 0 | 0.108272 | 0.007167 | 0.002513 | 0 | 0 | 0 | 0.030151 | 1 | 0.110553 | false | 0.017588 | 0.057789 | 0.007538 | 0.298995 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8bc1dc764cc3286fa9cb0c9dbac2a3360dc97788 | 764 | py | Python | sqds/jobs/update_guilds.py | abey79/sqds | acab1d9c6d4a010fff9d8e89a5fdd9d94def7c89 | [
"MIT"
] | null | null | null | sqds/jobs/update_guilds.py | abey79/sqds | acab1d9c6d4a010fff9d8e89a5fdd9d94def7c89 | [
"MIT"
] | null | null | null | sqds/jobs/update_guilds.py | abey79/sqds | acab1d9c6d4a010fff9d8e89a5fdd9d94def7c89 | [
"MIT"
] | null | null | null | from django.utils import timezone
from django_extensions.management.jobs import BaseJob
from ..models import Player, Guild
def update_guild(ally_code):
should_execute = False
try:
player = Player.objects.get(ally_code=ally_code)
guild = player.guild;
since_last_update = timezone.now()... | 27.285714 | 70 | 0.704188 | 97 | 764 | 5.309278 | 0.484536 | 0.07767 | 0.046602 | 0.062136 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038655 | 0.221204 | 764 | 27 | 71 | 28.296296 | 0.826891 | 0 | 0 | 0.1 | 0 | 0 | 0.064136 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.15 | 0 | 0.35 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8bc3ea498abafb408b2345871e2adf30ac6a71a4 | 1,907 | py | Python | src/saleor_app/install.py | przlada/saleor-app-framework-python | 3a561c93bf586b4210e7b3c4d2db3408046a9599 | [
"BSD-3-Clause"
] | 20 | 2021-05-18T18:05:25.000Z | 2022-03-02T00:39:15.000Z | src/saleor_app/install.py | przlada/saleor-app-framework-python | 3a561c93bf586b4210e7b3c4d2db3408046a9599 | [
"BSD-3-Clause"
] | 13 | 2021-10-19T19:05:24.000Z | 2022-03-22T13:17:55.000Z | src/saleor_app/install.py | przlada/saleor-app-framework-python | 3a561c93bf586b4210e7b3c4d2db3408046a9599 | [
"BSD-3-Clause"
] | 11 | 2021-06-09T21:24:56.000Z | 2022-03-12T17:33:30.000Z | import logging
import secrets
import string
from typing import Awaitable, Callable, List
from saleor_app.conf import get_settings
from saleor_app.errors import InstallAppError
from saleor_app.graphql import GraphQLError, get_executor, get_saleor_api_url
from saleor_app.mutations import CREATE_WEBHOOK
from saleor_app.s... | 31.783333 | 80 | 0.678553 | 224 | 1,907 | 5.549107 | 0.361607 | 0.040225 | 0.052293 | 0.024135 | 0.054706 | 0.054706 | 0 | 0 | 0 | 0 | 0 | 0.001363 | 0.230729 | 1,907 | 59 | 81 | 32.322034 | 0.845944 | 0 | 0 | 0 | 0 | 0 | 0.133718 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.183673 | 0 | 0.183673 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8bc5033e6745dd8bddb7a355569fc61f7cd99932 | 1,410 | py | Python | tools/other/syn.py | fengjixuchui/geospy | 12ff83372a7e128babd8f16c357672d1495022c8 | [
"MIT"
] | 1 | 2019-11-12T05:53:25.000Z | 2019-11-12T05:53:25.000Z | tools/other/syn.py | fengjixuchui/geospy | 12ff83372a7e128babd8f16c357672d1495022c8 | [
"MIT"
] | null | null | null | tools/other/syn.py | fengjixuchui/geospy | 12ff83372a7e128babd8f16c357672d1495022c8 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import random
import time
from scapy.all import IP, TCP, send
from threading import Thread
# Import modules for SYN flood
import tools.randomData as randomData
def SYN_ATTACK(threads, attack_time, target):
# Finish
global FINISH
FINISH = False
target_ip = target.split(":")[0]
target_port ... | 23.114754 | 78 | 0.668085 | 203 | 1,410 | 4.522167 | 0.394089 | 0.068627 | 0.039216 | 0.071895 | 0.104575 | 0.104575 | 0 | 0 | 0 | 0 | 0 | 0.061366 | 0.179433 | 1,410 | 60 | 79 | 23.5 | 0.732066 | 0.087234 | 0 | 0.047619 | 0 | 0 | 0.128125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.119048 | 0 | 0.166667 | 0.119048 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8bc5c14508eaa101207214cbf9fa6cdfc7a9bf62 | 19,405 | py | Python | NIQ_uncompiled/source_code/check_valid.py | wxhawkins/NestIQ | 3a004d330e2c68b0c7eb0b0676bc4d044e52cbe4 | [
"Apache-2.0"
] | null | null | null | NIQ_uncompiled/source_code/check_valid.py | wxhawkins/NestIQ | 3a004d330e2c68b0c7eb0b0676bc4d044e52cbe4 | [
"Apache-2.0"
] | null | null | null | NIQ_uncompiled/source_code/check_valid.py | wxhawkins/NestIQ | 3a004d330e2c68b0c7eb0b0676bc4d044e52cbe4 | [
"Apache-2.0"
] | null | null | null | import time
import datetime as dt
from pathlib import Path
from tkinter import messagebox
import re
import niq_misc
import math
import traceback
from niq_misc import replace_entry
def check_valid_vertex_file(gui):
"""
Checks user-provided vertex selection file (HTML) for issues that could cause errors wi... | 38.198819 | 171 | 0.588199 | 2,393 | 19,405 | 4.646051 | 0.174676 | 0.040565 | 0.030401 | 0.040925 | 0.385231 | 0.314535 | 0.270462 | 0.227469 | 0.19329 | 0.14454 | 0 | 0.005537 | 0.329915 | 19,405 | 507 | 172 | 38.274162 | 0.849496 | 0.13311 | 0 | 0.37069 | 0 | 0.008621 | 0.269212 | 0.014956 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025862 | false | 0 | 0.025862 | 0 | 0.206897 | 0.005747 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8bcfdd9c7b143588acd04d3d0910371718e911e3 | 2,977 | py | Python | amodem/sampling.py | Matthew-MK/amodem | a75dda9ab0f7445589a036357e604703ccb34726 | [
"MIT"
] | 766 | 2015-01-14T15:48:07.000Z | 2022-03-30T01:19:48.000Z | amodem/sampling.py | Matthew-MK/amodem | a75dda9ab0f7445589a036357e604703ccb34726 | [
"MIT"
] | 42 | 2015-01-02T18:50:11.000Z | 2022-03-11T19:10:35.000Z | amodem/sampling.py | Matthew-MK/amodem | a75dda9ab0f7445589a036357e604703ccb34726 | [
"MIT"
] | 116 | 2015-01-14T20:43:52.000Z | 2022-03-24T13:10:30.000Z | import itertools
import numpy as np
from . import common
class Interpolator:
def __init__(self, resolution=1024, width=128):
self.width = width
self.resolution = resolution
N = resolution * width
u = np.arange(-N, N, dtype=float)
window = np.cos(0.5 * np.pi * u / N) **... | 32.010753 | 75 | 0.555929 | 360 | 2,977 | 4.552778 | 0.363889 | 0.042709 | 0.027456 | 0.015863 | 0.016473 | 0.016473 | 0 | 0 | 0 | 0 | 0 | 0.014308 | 0.342627 | 2,977 | 92 | 76 | 32.358696 | 0.823199 | 0.161572 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030769 | 1 | 0.061538 | false | 0 | 0.046154 | 0 | 0.153846 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8bd1ed48c83c831815502fd8f24e3c648f5c81ee | 3,741 | py | Python | libs/dungeon.py | IdeaBot/explorer | 2cd02cacb2a37f3da3308e79e88f8c26f4401b8e | [
"MIT"
] | null | null | null | libs/dungeon.py | IdeaBot/explorer | 2cd02cacb2a37f3da3308e79e88f8c26f4401b8e | [
"MIT"
] | null | null | null | libs/dungeon.py | IdeaBot/explorer | 2cd02cacb2a37f3da3308e79e88f8c26f4401b8e | [
"MIT"
] | null | null | null | '''
Dungeon object class
created 2019-03-19 by NGnius '''
# import math
import random
DEFAULT_SIZE = 16
WIDTH = 42
ANIMATION_CHAR = '*'
BLANK_CHAR = '.'
PORTAL_CHAR = '0'
class Dungeon():
def __init__(self, size=DEFAULT_SIZE, level=1):
self.WIDTH = WIDTH
self.size = size
self.level = leve... | 35.971154 | 159 | 0.555199 | 509 | 3,741 | 3.917485 | 0.208251 | 0.049649 | 0.024574 | 0.022066 | 0.282849 | 0.219659 | 0.157472 | 0.157472 | 0.125376 | 0.069208 | 0 | 0.027975 | 0.321572 | 3,741 | 103 | 160 | 36.320388 | 0.757683 | 0.083667 | 0 | 0.148148 | 0 | 0 | 0.001465 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.135802 | false | 0 | 0.012346 | 0 | 0.259259 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8bd2af77c54189a911eb6a57a33e86e0c8005dbd | 10,917 | py | Python | scrapyproject/showingspiders/toho_v2.py | gas1121/JapanCinemaStatusSpider | 67c7b963914565589f64dd1bcf18839a4160ea34 | [
"MIT"
] | 2 | 2018-06-07T13:28:03.000Z | 2018-12-10T14:04:53.000Z | scrapyproject/showingspiders/toho_v2.py | gas1121/JapanCinemaStatusSpider | 67c7b963914565589f64dd1bcf18839a4160ea34 | [
"MIT"
] | null | null | null | scrapyproject/showingspiders/toho_v2.py | gas1121/JapanCinemaStatusSpider | 67c7b963914565589f64dd1bcf18839a4160ea34 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import unicodedata
import json
import arrow
import scrapy
from scrapyproject.showingspiders.showing_spider import ShowingSpider
from scrapyproject.items import (ShowingLoader, init_show_booking_loader)
from scrapyproject.utils import TohoUtil
class TohoV2Spider(ShowingSpider):
"""
Toho... | 45.298755 | 79 | 0.646973 | 1,348 | 10,917 | 4.909496 | 0.191395 | 0.053037 | 0.045935 | 0.041251 | 0.381233 | 0.275914 | 0.170444 | 0.130251 | 0.105168 | 0.055606 | 0 | 0.02972 | 0.257214 | 10,917 | 240 | 80 | 45.4875 | 0.78641 | 0.203169 | 0 | 0.1 | 0 | 0 | 0.111494 | 0.031584 | 0 | 0 | 0 | 0 | 0 | 1 | 0.06875 | false | 0 | 0.04375 | 0 | 0.20625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8bd49f53da7caa09d61a988bf0e05ae48ef80b17 | 947 | py | Python | tasks.py | ggrbill/fortran-examples | a790462fa3956a65505d4f529556f81cd5b0de95 | [
"MIT"
] | null | null | null | tasks.py | ggrbill/fortran-examples | a790462fa3956a65505d4f529556f81cd5b0de95 | [
"MIT"
] | null | null | null | tasks.py | ggrbill/fortran-examples | a790462fa3956a65505d4f529556f81cd5b0de95 | [
"MIT"
] | null | null | null | from invoke import task
@task()
def clean(ctx):
"""
Delete 'build' folder.
"""
print("Cleaning!")
ctx.run("rm -Rf build")
@task(
help = {
'cclean': "Call Clean task (Delete 'build' folder) before build again."
}
)
def build(ctx, cclean=False):
"""
Build Fortran95 code.
"""
if cclean:
... | 18.211538 | 74 | 0.583949 | 122 | 947 | 4.508197 | 0.360656 | 0.043636 | 0.092727 | 0.065455 | 0.443636 | 0.443636 | 0.443636 | 0.443636 | 0.443636 | 0.443636 | 0 | 0.022008 | 0.232313 | 947 | 52 | 75 | 18.211538 | 0.734525 | 0.092925 | 0 | 0.540541 | 0 | 0 | 0.462228 | 0.055058 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081081 | false | 0 | 0.027027 | 0 | 0.108108 | 0.081081 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8bd769344a472b553f48b5163b0040a5e6c76aa3 | 4,313 | py | Python | src/advent/year2019/intcode.py | davidism/advent | 761756f179c3547f44ec035880f29f58d80903f8 | [
"BSD-3-Clause"
] | 5 | 2019-12-09T06:02:22.000Z | 2021-12-03T18:02:49.000Z | src/advent/year2019/intcode.py | davidism/advent | 761756f179c3547f44ec035880f29f58d80903f8 | [
"BSD-3-Clause"
] | null | null | null | src/advent/year2019/intcode.py | davidism/advent | 761756f179c3547f44ec035880f29f58d80903f8 | [
"BSD-3-Clause"
] | 2 | 2019-09-19T04:44:33.000Z | 2021-05-09T14:39:58.000Z | from collections import defaultdict
from collections import deque
from typing import Deque
from typing import Dict
from typing import Iterable
from typing import List
from advent.load import read_input
def op(code: int, size: int, write=False):
def wrapper(f):
f.op = code
f.size = size
f.... | 23.828729 | 85 | 0.537909 | 566 | 4,313 | 4.021201 | 0.213781 | 0.045694 | 0.019772 | 0.017575 | 0.137961 | 0.065026 | 0.065026 | 0.04833 | 0.04833 | 0.04833 | 0 | 0.013518 | 0.348249 | 4,313 | 180 | 86 | 23.961111 | 0.796158 | 0 | 0 | 0.126866 | 0 | 0 | 0.003942 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.179104 | false | 0.014925 | 0.052239 | 0.022388 | 0.350746 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8bdc456df221aa9aaf1072900c707aafc646d202 | 3,123 | py | Python | scripts/find_best_fit.py | NERC-CEH/nanofase-calibration | e45da5f0566e345504214018eb4b9c013bab4c57 | [
"BSD-3-Clause"
] | null | null | null | scripts/find_best_fit.py | NERC-CEH/nanofase-calibration | e45da5f0566e345504214018eb4b9c013bab4c57 | [
"BSD-3-Clause"
] | null | null | null | scripts/find_best_fit.py | NERC-CEH/nanofase-calibration | e45da5f0566e345504214018eb4b9c013bab4c57 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
import os
import sys
import argparse
import re
import shutil
import numpy as np
from netCDF4 import Dataset
"""This script is useful for finding the best find from the `optimize.log` file,
the getting the parameters for this fit from logged results"""
# Parse the input arguments
parser = argpar... | 42.780822 | 114 | 0.700288 | 499 | 3,123 | 4.252505 | 0.346693 | 0.01885 | 0.028275 | 0.036758 | 0.110745 | 0.069274 | 0.055137 | 0.04524 | 0.04524 | 0.04524 | 0 | 0.011249 | 0.174512 | 3,123 | 72 | 115 | 43.375 | 0.81187 | 0.23471 | 0 | 0.039216 | 0 | 0 | 0.240931 | 0.065383 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.137255 | 0 | 0.137255 | 0.039216 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8bde4876eb8d22e2a2bf6ea4f21056c49d4893b8 | 347 | py | Python | examples/simple1.py | jimcortez/spotipy_twisted | 49ff2a4a5a5a9b3184b22adbe068eb91a38f3102 | [
"MIT"
] | null | null | null | examples/simple1.py | jimcortez/spotipy_twisted | 49ff2a4a5a5a9b3184b22adbe068eb91a38f3102 | [
"MIT"
] | null | null | null | examples/simple1.py | jimcortez/spotipy_twisted | 49ff2a4a5a5a9b3184b22adbe068eb91a38f3102 | [
"MIT"
] | null | null | null | import spotipy_twisted
birdy_uri = 'spotify:artist:2WX2uTcsvV5OnS0inACecP'
spotify = spotipy_twisted.Spotify()
results = spotify.artist_albums(birdy_uri, album_type='album')
albums = results['items']
while results['next']:
results = spotify.next(results)
albums.extend(results['items'])
for album in albums:... | 20.411765 | 62 | 0.743516 | 42 | 347 | 6 | 0.47619 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013201 | 0.126801 | 347 | 16 | 63 | 21.6875 | 0.818482 | 0 | 0 | 0 | 0 | 0 | 0.17341 | 0.106936 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8bdf0a8fc72d26035fdc4522645b4d01820727b6 | 4,905 | py | Python | arrows/pytorch/seg_utils.py | neal-siekierski/kwiver | 1c97ad72c8b6237cb4b9618665d042be16825005 | [
"BSD-3-Clause"
] | null | null | null | arrows/pytorch/seg_utils.py | neal-siekierski/kwiver | 1c97ad72c8b6237cb4b9618665d042be16825005 | [
"BSD-3-Clause"
] | null | null | null | arrows/pytorch/seg_utils.py | neal-siekierski/kwiver | 1c97ad72c8b6237cb4b9618665d042be16825005 | [
"BSD-3-Clause"
] | null | null | null | # ckwg +28
# Copyright 2018 by Kitware, Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice,
# this list of conditi... | 33.367347 | 80 | 0.626504 | 711 | 4,905 | 4.21519 | 0.345992 | 0.022022 | 0.016016 | 0.014014 | 0.109776 | 0.06006 | 0.06006 | 0.045379 | 0.045379 | 0.045379 | 0 | 0.043307 | 0.275025 | 4,905 | 146 | 81 | 33.59589 | 0.799494 | 0.321916 | 0 | 0.138298 | 0 | 0 | 0.024605 | 0 | 0 | 0 | 0 | 0 | 0.010638 | 1 | 0.053191 | false | 0 | 0.12766 | 0.010638 | 0.265957 | 0.010638 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8bdf61ec1b8d8328f9ce10467e5dc4c43240c500 | 6,421 | py | Python | fdtd/2d/src/fdtd/solver.py | Elena-Torres-Lozano/MCFNL2021 | b60ecda2dc35fe08ce6cf131c45acc0349dce29c | [
"BSD-3-Clause"
] | null | null | null | fdtd/2d/src/fdtd/solver.py | Elena-Torres-Lozano/MCFNL2021 | b60ecda2dc35fe08ce6cf131c45acc0349dce29c | [
"BSD-3-Clause"
] | null | null | null | fdtd/2d/src/fdtd/solver.py | Elena-Torres-Lozano/MCFNL2021 | b60ecda2dc35fe08ce6cf131c45acc0349dce29c | [
"BSD-3-Clause"
] | null | null | null | import math
import numpy as np
import scipy.constants as sp
import copy
import time
X = 0 # Cartesian indices
Y = 1
L = 0 # Lower
U = 1 # Upper
def gaussian(x, delay, spread):
return np.exp( - ((x-delay)**2 / (2*spread**2)) )
def subsId(id):
if id is None:
return -1
else:
return id-1
cl... | 33.973545 | 79 | 0.454914 | 741 | 6,421 | 3.874494 | 0.213225 | 0.033438 | 0.015674 | 0.024382 | 0.129223 | 0.069314 | 0.062696 | 0.048764 | 0.033438 | 0.033438 | 0 | 0.017719 | 0.375954 | 6,421 | 189 | 80 | 33.973545 | 0.698777 | 0.102165 | 0 | 0.116788 | 0 | 0 | 0.057257 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.094891 | false | 0 | 0.036496 | 0.036496 | 0.211679 | 0.014599 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8be140e08c2dfb6a0ad53e343aaf11199164a255 | 487 | py | Python | secret.py | yoyu777/Poll-Bot | db239b42c5c5e1af38a7c0a12b977c38949f0724 | [
"MIT"
] | null | null | null | secret.py | yoyu777/Poll-Bot | db239b42c5c5e1af38a7c0a12b977c38949f0724 | [
"MIT"
] | null | null | null | secret.py | yoyu777/Poll-Bot | db239b42c5c5e1af38a7c0a12b977c38949f0724 | [
"MIT"
] | null | null | null | # Import the Secret Manager client library.
from google.cloud import secretmanager
# Create the Secret Manager client.
secretmanager_client = secretmanager.SecretManagerServiceClient()
def get_discord_token(project_id,secret_id):
latest_secret_version=secretmanager_client.access_secret_version(
name=f'pro... | 34.785714 | 74 | 0.804928 | 61 | 487 | 6.131148 | 0.540984 | 0.104278 | 0.085562 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002326 | 0.117043 | 487 | 14 | 75 | 34.785714 | 0.867442 | 0.154004 | 0 | 0 | 0 | 0 | 0.15122 | 0.139024 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8be594b734f337508a46bc13ebf1d32d3f8e6f53 | 1,663 | py | Python | Bot/extensions/moderation/ban.py | ChrissisCodeXD/Hikari-TestProject | 236c8fc9081172d9edff6d629e5d11c5abe64205 | [
"MIT"
] | null | null | null | Bot/extensions/moderation/ban.py | ChrissisCodeXD/Hikari-TestProject | 236c8fc9081172d9edff6d629e5d11c5abe64205 | [
"MIT"
] | null | null | null | Bot/extensions/moderation/ban.py | ChrissisCodeXD/Hikari-TestProject | 236c8fc9081172d9edff6d629e5d11c5abe64205 | [
"MIT"
] | null | null | null | from imports import *
ban_plugin = lightbulb.Plugin("moderation.ban")
ban_plugin.add_checks(
lightbulb.checks.guild_only,
lightbulb.checks.bot_has_guild_permissions(hikari.Permissions.BAN_MEMBERS),
lightbulb.checks.has_guild_permissions(hikari.Permissions.BAN_MEMBERS),
)
@ban_plugin.command()
@lightbulb... | 33.938776 | 119 | 0.719784 | 219 | 1,663 | 5.351598 | 0.360731 | 0.046075 | 0.048635 | 0.042662 | 0.156997 | 0.12628 | 0.078498 | 0 | 0 | 0 | 0 | 0.000708 | 0.150932 | 1,663 | 48 | 120 | 34.645833 | 0.82932 | 0 | 0 | 0.108108 | 0 | 0 | 0.144919 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054054 | false | 0 | 0.027027 | 0 | 0.081081 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8be760a4114acf5a4db49d05c1ef322eef5d00e1 | 1,779 | py | Python | leetcode/easy/compare-version-numbers.py | rainzhop/cumulus-tank | 09ebc7858ea53630e30606945adfea856a80faa3 | [
"MIT"
] | null | null | null | leetcode/easy/compare-version-numbers.py | rainzhop/cumulus-tank | 09ebc7858ea53630e30606945adfea856a80faa3 | [
"MIT"
] | null | null | null | leetcode/easy/compare-version-numbers.py | rainzhop/cumulus-tank | 09ebc7858ea53630e30606945adfea856a80faa3 | [
"MIT"
] | null | null | null | # https://leetcode.com/problems/compare-version-numbers/
#
# Compare two version numbers version1 and version2.
# If version1 > version2 return 1, if version1 < version2 return -1, otherwise return 0.
#
# You may assume that the version strings are non-empty and contain only digits and the . character.
# The . characte... | 30.152542 | 100 | 0.518269 | 234 | 1,779 | 3.940171 | 0.435897 | 0.045553 | 0.02603 | 0.052061 | 0.18872 | 0.099783 | 0.099783 | 0.099783 | 0.099783 | 0 | 0 | 0.058394 | 0.383924 | 1,779 | 58 | 101 | 30.672414 | 0.782847 | 0.416526 | 0 | 0.514286 | 0 | 0 | 0.006098 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028571 | false | 0 | 0 | 0 | 0.257143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8be7873229c136c3351120aeb123d5e799820294 | 710 | py | Python | utils.py | florenthemmi/ips-by-country | 2f63ec2108ceaae97221de52654753c545733d84 | [
"MIT"
] | 1 | 2021-05-24T06:16:49.000Z | 2021-05-24T06:16:49.000Z | utils.py | florenthemmi/ips-by-country | 2f63ec2108ceaae97221de52654753c545733d84 | [
"MIT"
] | null | null | null | utils.py | florenthemmi/ips-by-country | 2f63ec2108ceaae97221de52654753c545733d84 | [
"MIT"
] | null | null | null | from datetime import datetime
from config import CIDR_MAX_SUBNETS
class IPRange(object):
def __init__(self, data):
self.range_start = data[0]
self.range_end = data[1]
self.total_ips = int(data[2])
self.assign_date = datetime.strptime(data[3], '%d/%m/%y')
self.owner = data[... | 26.296296 | 71 | 0.640845 | 99 | 710 | 4.313131 | 0.424242 | 0.117096 | 0.098361 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009276 | 0.240845 | 710 | 26 | 72 | 27.307692 | 0.782931 | 0 | 0 | 0 | 0 | 0 | 0.021127 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.111111 | 0.055556 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8be7899428e46960e100ad08d01429e3242a6f7d | 4,897 | py | Python | keats_crawler/crawl.py | mannmann2/keats-crawler | 9fc108b75e63bf3dfac0c18ed2f0bec84d003c14 | [
"MIT"
] | 8 | 2021-01-21T19:34:59.000Z | 2022-02-14T23:09:48.000Z | keats_crawler/crawl.py | mannmann2/keats-crawler | 9fc108b75e63bf3dfac0c18ed2f0bec84d003c14 | [
"MIT"
] | null | null | null | keats_crawler/crawl.py | mannmann2/keats-crawler | 9fc108b75e63bf3dfac0c18ed2f0bec84d003c14 | [
"MIT"
] | 1 | 2021-12-27T11:09:44.000Z | 2021-12-27T11:09:44.000Z | """Main module."""
from config import *
import os
import re
from threading import Thread
import requests
from urllib.parse import unquote
from bs4 import BeautifulSoup
from m3u8downloader.main import M3u8Downloader
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
VIDEO_DICT = {}... | 27.357542 | 150 | 0.588115 | 630 | 4,897 | 4.463492 | 0.253968 | 0.025605 | 0.027738 | 0.036273 | 0.321124 | 0.282006 | 0.217994 | 0.198791 | 0.198791 | 0.198791 | 0 | 0.009693 | 0.241576 | 4,897 | 178 | 151 | 27.511236 | 0.747442 | 0.031244 | 0 | 0.088496 | 0 | 0 | 0.151278 | 0.020283 | 0 | 0 | 0 | 0 | 0 | 1 | 0.053097 | false | 0 | 0.088496 | 0 | 0.185841 | 0.097345 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8be7ac2245946060119cdd1d1ac823a02f85034d | 892 | py | Python | bot.py | fangyi-zhou/renamer | ec1215f7afea1c942116a37bdd2a5fcbabee6e94 | [
"Unlicense"
] | null | null | null | bot.py | fangyi-zhou/renamer | ec1215f7afea1c942116a37bdd2a5fcbabee6e94 | [
"Unlicense"
] | null | null | null | bot.py | fangyi-zhou/renamer | ec1215f7afea1c942116a37bdd2a5fcbabee6e94 | [
"Unlicense"
] | null | null | null | import os
import re
import discord
from dotenv import load_dotenv
load_dotenv()
TOKEN = os.getenv("DISCORD_TOKEN")
RENAME_REGEX = re.compile(r"^[Ii]'m (\w+)$")
if TOKEN is None:
raise RuntimeError("Bot TOKEN not set")
client = discord.Client()
@client.event
async def on_ready():
print("We have logged in ... | 21.756098 | 88 | 0.649103 | 123 | 892 | 4.642276 | 0.536585 | 0.035026 | 0.059545 | 0.077058 | 0.210158 | 0.210158 | 0.115587 | 0 | 0 | 0 | 0 | 0.002937 | 0.236547 | 892 | 40 | 89 | 22.3 | 0.835536 | 0 | 0 | 0.071429 | 0 | 0 | 0.161435 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.178571 | 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 | 0 | 0 | 1 | 0 |
8be86bfbc616af693be4c8b1bf95b938750cfb4b | 8,035 | py | Python | market/views.py | morphosis-nitmz/Stock-Bridge-2018 | 5f7d55a5dfeed52e2fa46fd1e2abd6bba80c954a | [
"MIT"
] | 12 | 2019-09-10T02:51:01.000Z | 2022-03-23T07:19:34.000Z | market/views.py | morphosis-nitmz/Stock-Bridge-2018 | 5f7d55a5dfeed52e2fa46fd1e2abd6bba80c954a | [
"MIT"
] | null | null | null | market/views.py | morphosis-nitmz/Stock-Bridge-2018 | 5f7d55a5dfeed52e2fa46fd1e2abd6bba80c954a | [
"MIT"
] | 8 | 2019-06-26T14:16:23.000Z | 2022-01-07T08:48:08.000Z | from datetime import datetime
from decimal import Decimal
from django.conf import settings
from django.contrib.auth import get_user_model
from django.shortcuts import render, redirect
from django.http import HttpResponseRedirect, HttpResponse
from django.views.generic import View, ListView
from django.urls import reve... | 40.994898 | 108 | 0.601369 | 824 | 8,035 | 5.745146 | 0.226942 | 0.035488 | 0.019011 | 0.026616 | 0.362062 | 0.317279 | 0.292353 | 0.278623 | 0.203845 | 0.182932 | 0 | 0.00142 | 0.299067 | 8,035 | 195 | 109 | 41.205128 | 0.839134 | 0.07094 | 0 | 0.335526 | 0 | 0 | 0.079769 | 0.01668 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065789 | false | 0 | 0.111842 | 0.013158 | 0.315789 | 0.006579 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8be87a2381ba6a63956f68b01f8d66e526e6f9d0 | 21,478 | py | Python | library.py | Kladmen228/kurs_work-c- | 6648ca3d4f454aaa429993db80cd2fc6a3ab2bb4 | [
"Apache-2.0"
] | 2 | 2020-07-11T21:12:42.000Z | 2020-07-11T21:49:22.000Z | library.py | Kladmen228/kurs_work-PP | 6648ca3d4f454aaa429993db80cd2fc6a3ab2bb4 | [
"Apache-2.0"
] | null | null | null | library.py | Kladmen228/kurs_work-PP | 6648ca3d4f454aaa429993db80cd2fc6a3ab2bb4 | [
"Apache-2.0"
] | null | null | null | # coding=utf8
import os
from tkinter import messagebox
from tkinter import ttk
from tkinter import *
import tkinter as tk
import database
from tkinter import filedialog
databaseName = 'dataBase.db'
who = 0
currentUserID = 0
currentTable = 0
root = tk.Tk()
root.title("Библиотека")
root.geometry("1750x500")
root.resizab... | 44.193416 | 122 | 0.648524 | 2,887 | 21,478 | 4.723935 | 0.117769 | 0.068778 | 0.037396 | 0.062912 | 0.532483 | 0.485775 | 0.399325 | 0.30591 | 0.27548 | 0.250403 | 0 | 0.047536 | 0.196853 | 21,478 | 485 | 123 | 44.284536 | 0.743072 | 0.004097 | 0 | 0.355505 | 0 | 0 | 0.122054 | 0.000982 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034404 | false | 0.020642 | 0.016055 | 0 | 0.06422 | 0.020642 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8be8ad1bff74a971fe98e6113f758f85c95026e6 | 621 | py | Python | utilities.py | tsilifis/BayesEmbed-mfGP | 61ee75284bac34084ee4d171257023cc4d60c910 | [
"MIT"
] | null | null | null | utilities.py | tsilifis/BayesEmbed-mfGP | 61ee75284bac34084ee4d171257023cc4d60c910 | [
"MIT"
] | null | null | null | utilities.py | tsilifis/BayesEmbed-mfGP | 61ee75284bac34084ee4d171257023cc4d60c910 | [
"MIT"
] | null | null | null | from datetime import datetime
import numpy as np
def add_basis_element(W):
"""
Given a D x d orthonormal matrix W (with d << D), it computes a new vector v that
is orthogonal to all d columns of W and add it as an additional column.
Return : D x (d+1) orthonormal matrix [W v]
"""
dim = W.shape[1]
d = W.sha... | 23 | 83 | 0.621578 | 123 | 621 | 3.105691 | 0.487805 | 0.02356 | 0.015707 | 0.052356 | 0.078534 | 0.078534 | 0 | 0 | 0 | 0 | 0 | 0.010204 | 0.21095 | 621 | 26 | 84 | 23.884615 | 0.769388 | 0.318841 | 0 | 0.133333 | 0 | 0 | 0.039024 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.133333 | 0.066667 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8be92b2b82e61183cec9beb6bacf4eefc2f03ab0 | 4,049 | py | Python | data/LoadingScripts/adapt_tcga.py | Bertinus/causal_cell_embedding | 417b55749130fc7b7832fd3ee4c49feff4a04593 | [
"MIT"
] | null | null | null | data/LoadingScripts/adapt_tcga.py | Bertinus/causal_cell_embedding | 417b55749130fc7b7832fd3ee4c49feff4a04593 | [
"MIT"
] | null | null | null | data/LoadingScripts/adapt_tcga.py | Bertinus/causal_cell_embedding | 417b55749130fc7b7832fd3ee4c49feff4a04593 | [
"MIT"
] | null | null | null | import numpy as np
import pandas as pd
########################################################################################################################
# Load data
########################################################################################################################
print("Adapt TCGA: Loadin... | 46.011364 | 120 | 0.514942 | 358 | 4,049 | 5.586592 | 0.410615 | 0.06 | 0.085 | 0.0425 | 0.156 | 0.114 | 0.038 | 0 | 0 | 0 | 0 | 0.119562 | 0.210916 | 4,049 | 88 | 121 | 46.011364 | 0.506416 | 0.095826 | 0 | 0 | 0 | 0 | 0.35268 | 0.070673 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.039216 | 0 | 0.039216 | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4738887a5abd7d5e02db7c0d3385f50ba3f81899 | 8,290 | py | Python | cli/cli.py | MustafaTheCoder/create-a-cli-tool | 9f7c327927e22b390a58c8c8b599a59cad246f2e | [
"MIT"
] | 3 | 2021-09-27T10:35:24.000Z | 2021-10-02T08:16:46.000Z | cli/cli.py | MustafaTheCoder/create-a-cli-tool | 9f7c327927e22b390a58c8c8b599a59cad246f2e | [
"MIT"
] | 1 | 2021-09-22T15:44:30.000Z | 2021-09-22T15:44:30.000Z | cli/cli.py | MustafaTheCoder/create-a-cli-tool | 9f7c327927e22b390a58c8c8b599a59cad246f2e | [
"MIT"
] | 3 | 2021-09-21T05:19:42.000Z | 2021-10-02T08:16:48.000Z | import asyncio
import sys
from typing import Any, Callable, List, Optional, Union
from .commands import Command
from .commands import CommandGroup as Group
from .errors import *
class CLI:
"""
The CLI class it self, this will represent your cli.
Parameters
-----------
name: :class:`str`
... | 30.932836 | 124 | 0.458987 | 801 | 8,290 | 4.677903 | 0.166042 | 0.038431 | 0.019215 | 0.035228 | 0.559381 | 0.473712 | 0.459301 | 0.443288 | 0.411529 | 0.326128 | 0 | 0.003042 | 0.444873 | 8,290 | 267 | 125 | 31.048689 | 0.811169 | 0.186731 | 0 | 0.545455 | 0 | 0 | 0.05011 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.056818 | false | 0 | 0.034091 | 0 | 0.130682 | 0.034091 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
473f1e1eeb6b340b2ca16fc3da17da150f626195 | 661 | py | Python | setup.py | libre-man/DJFeet | 7517e7930bdc23d22765c64d7351d4011515dcaa | [
"MIT"
] | 2 | 2018-09-29T22:41:28.000Z | 2018-10-02T16:07:11.000Z | setup.py | libre-man/DJFeet | 7517e7930bdc23d22765c64d7351d4011515dcaa | [
"MIT"
] | null | null | null | setup.py | libre-man/DJFeet | 7517e7930bdc23d22765c64d7351d4011515dcaa | [
"MIT"
] | null | null | null | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
config = {
'description': 'A program does that is a DJ by using feedback provided by the dancers.',
'author': 'Thomas Schaper',
'url': 'https://gitlab.com/SilentDiscoAsAService/DJFeet',
'download_url': 'https... | 26.44 | 92 | 0.621785 | 73 | 661 | 5.520548 | 0.69863 | 0.044665 | 0.069479 | 0.084367 | 0.218362 | 0.218362 | 0 | 0 | 0 | 0 | 0 | 0.003876 | 0.219365 | 661 | 24 | 93 | 27.541667 | 0.777132 | 0 | 0 | 0 | 0 | 0 | 0.538578 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.136364 | 0 | 0.136364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
473fc3dd716cb4c46c867f24ed27e15522aed178 | 1,802 | py | Python | tests/post/test_metrics_server.py | ssalaues/metalk8s | cca4a4c64fe9cd4d7b87717aa3fda1642144da4b | [
"Apache-2.0"
] | null | null | null | tests/post/test_metrics_server.py | ssalaues/metalk8s | cca4a4c64fe9cd4d7b87717aa3fda1642144da4b | [
"Apache-2.0"
] | null | null | null | tests/post/test_metrics_server.py | ssalaues/metalk8s | cca4a4c64fe9cd4d7b87717aa3fda1642144da4b | [
"Apache-2.0"
] | null | null | null | import json
import kubernetes.config
import pytest_bdd
import pytest_bdd.parsers
import utils.helper
pytest_bdd.scenarios('features/metrics_server.feature')
@pytest_bdd.when('I wait for metrics-server to be initialized')
def wait_until_initialized(kubeconfig):
client = kubernetes.config.new_client_from_config... | 34 | 78 | 0.712542 | 237 | 1,802 | 5.21519 | 0.451477 | 0.058252 | 0.038835 | 0.040453 | 0.218447 | 0.182848 | 0.182848 | 0.182848 | 0.098706 | 0.098706 | 0 | 0.013468 | 0.175916 | 1,802 | 52 | 79 | 34.653846 | 0.818855 | 0.115427 | 0 | 0.060606 | 0 | 0 | 0.173585 | 0.068553 | 0 | 0 | 0 | 0 | 0.121212 | 1 | 0.090909 | false | 0 | 0.151515 | 0 | 0.242424 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
474625e55d420bbe1645d7c53baf9bb6b0997f55 | 2,615 | py | Python | works/test/dssm/model.py | didazxc/autoflow | 6682102efae90b0af00ba920cd4fa2020694d5f2 | [
"MIT"
] | null | null | null | works/test/dssm/model.py | didazxc/autoflow | 6682102efae90b0af00ba920cd4fa2020694d5f2 | [
"MIT"
] | null | null | null | works/test/dssm/model.py | didazxc/autoflow | 6682102efae90b0af00ba920cd4fa2020694d5f2 | [
"MIT"
] | null | null | null | import torch
from torch import nn
class UserModel(nn.Module):
def __init__(self, filter_sizes, userprofile_size, applist_size, output_size=32, char_embed_size=32,
chars_size=6000, out_channel_size=3):
super().__init__()
# embedding of lines and apps
self.embed = nn.Embedd... | 38.455882 | 104 | 0.636711 | 349 | 2,615 | 4.475645 | 0.226361 | 0.06338 | 0.044814 | 0.028809 | 0.251601 | 0.140845 | 0 | 0 | 0 | 0 | 0 | 0.026248 | 0.256979 | 2,615 | 67 | 105 | 39.029851 | 0.777663 | 0.021797 | 0 | 0.132075 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.09434 | false | 0 | 0.037736 | 0.018868 | 0.226415 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
474a6941a53b9666a0f1df165d06680657ea0def | 3,066 | py | Python | ukol.py | tenhobi/NI-MPI | 5c6c4f5fd28487e807315ce6da33b81f0db4908d | [
"MIT"
] | null | null | null | ukol.py | tenhobi/NI-MPI | 5c6c4f5fd28487e807315ce6da33b81f0db4908d | [
"MIT"
] | null | null | null | ukol.py | tenhobi/NI-MPI | 5c6c4f5fd28487e807315ce6da33b81f0db4908d | [
"MIT"
] | null | null | null | import numpy as np
class Solver:
def __init__(self, matrix, vector, initialVector, precision, gamma):
self.initialVector = initialVector
self.precision = precision
self.matrix = matrix
self.bVector = vector
self.gamma = gamma
# lower triangular part
... | 31.285714 | 119 | 0.628506 | 368 | 3,066 | 5.173913 | 0.293478 | 0.047269 | 0.099265 | 0.089286 | 0.235294 | 0.193277 | 0.168067 | 0.142857 | 0.088235 | 0 | 0 | 0.017444 | 0.25212 | 3,066 | 97 | 120 | 31.608247 | 0.812909 | 0.179713 | 0 | 0.109091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.145455 | false | 0 | 0.018182 | 0 | 0.309091 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
474bb5e6e62ca2caee71dee1fac0a250c57c5dda | 12,491 | py | Python | src/python/dxpy/utils/__init__.py | psung/dx-toolkit | f3a430c5e24184215eb4a9883a179edf07bfa08b | [
"Apache-2.0"
] | null | null | null | src/python/dxpy/utils/__init__.py | psung/dx-toolkit | f3a430c5e24184215eb4a9883a179edf07bfa08b | [
"Apache-2.0"
] | null | null | null | src/python/dxpy/utils/__init__.py | psung/dx-toolkit | f3a430c5e24184215eb4a9883a179edf07bfa08b | [
"Apache-2.0"
] | null | null | null | # Copyright (C) 2013-2014 DNAnexus, Inc.
#
# This file is part of dx-toolkit (DNAnexus platform client libraries).
#
# 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.a... | 39.15674 | 241 | 0.660716 | 1,654 | 12,491 | 4.833736 | 0.296252 | 0.028768 | 0.038274 | 0.021889 | 0.129956 | 0.109819 | 0.089806 | 0.071044 | 0.071044 | 0.071044 | 0 | 0.017179 | 0.2497 | 12,491 | 318 | 242 | 39.279874 | 0.835894 | 0.407173 | 0 | 0.314815 | 0 | 0.006173 | 0.050478 | 0 | 0 | 0 | 0 | 0.003145 | 0 | 1 | 0.123457 | false | 0.012346 | 0.04321 | 0.012346 | 0.271605 | 0.067901 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
474cbd8308c2b1410045a858c934a70c927f171d | 2,946 | py | Python | mkserialisable.py | cedadev/ipython_project | fd9c85c20d3689435684cf4b681dfaab1c0a825b | [
"BSD-3-Clause-Clear"
] | null | null | null | mkserialisable.py | cedadev/ipython_project | fd9c85c20d3689435684cf4b681dfaab1c0a825b | [
"BSD-3-Clause-Clear"
] | null | null | null | mkserialisable.py | cedadev/ipython_project | fd9c85c20d3689435684cf4b681dfaab1c0a825b | [
"BSD-3-Clause-Clear"
] | null | null | null | """Routines to make objects serialisable.
Each of the functions in this module makes a specific type of object
serialisable. In most cases, this module needs to be imported and the function
run in both the serialising and the unserialising environments.
Here's a summary (see function documentation for details):
mk_... | 23.95122 | 79 | 0.67685 | 401 | 2,946 | 4.778055 | 0.291771 | 0.025574 | 0.031315 | 0.015658 | 0.029228 | 0.029228 | 0.029228 | 0 | 0 | 0 | 0 | 0.003089 | 0.230821 | 2,946 | 123 | 80 | 23.95122 | 0.842454 | 0.418873 | 0 | 0.090909 | 0 | 0 | 0.02157 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.145455 | false | 0 | 0.072727 | 0 | 0.345455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
474d5c6d6e9e1b1ea76c41c137dcb55b272f1e24 | 1,769 | py | Python | api_teacher.py | sabertooth9/KUET-Teachers-Web-Scrapper- | 0b1cea4f3e60f440b882bef971a942e42d0ab048 | [
"Apache-2.0"
] | 1 | 2019-12-21T13:35:46.000Z | 2019-12-21T13:35:46.000Z | api_teacher.py | sabertooth9/KUET-Teachers-Web-Scrapper- | 0b1cea4f3e60f440b882bef971a942e42d0ab048 | [
"Apache-2.0"
] | null | null | null | api_teacher.py | sabertooth9/KUET-Teachers-Web-Scrapper- | 0b1cea4f3e60f440b882bef971a942e42d0ab048 | [
"Apache-2.0"
] | null | null | null | from flask import Flask
from flask_restful import Api, Resource, reqparse
from kuet_teacher_data import get_data
app = Flask(__name__)
api = Api(app)
data = get_data()
class Teacher_data(Resource):
def get(self,id="CSE"):
if(id=='ALL' or id=='all'):
return data, 200
for datac in ... | 26.402985 | 71 | 0.544375 | 244 | 1,769 | 3.831967 | 0.204918 | 0.029947 | 0.038503 | 0.04492 | 0.559358 | 0.452406 | 0.362567 | 0.362567 | 0.228877 | 0.168984 | 0 | 0.018806 | 0.308649 | 1,769 | 66 | 72 | 26.80303 | 0.745707 | 0 | 0 | 0.464286 | 0 | 0 | 0.089932 | 0.017534 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.053571 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
474f1702de3c8a82c6ec6ce0f179522a071b3434 | 19,771 | py | Python | simulators/iam_module.py | jason-neal/companion_simulations | b5773e5539011d492b7128d0dd2778041ce50d52 | [
"MIT"
] | 1 | 2018-09-04T19:06:44.000Z | 2018-09-04T19:06:44.000Z | simulators/iam_module.py | jason-neal/companion_simulations | b5773e5539011d492b7128d0dd2778041ce50d52 | [
"MIT"
] | 85 | 2017-03-25T22:37:02.000Z | 2022-03-01T16:49:14.000Z | simulators/iam_module.py | jason-neal/companion_simulations | b5773e5539011d492b7128d0dd2778041ce50d52 | [
"MIT"
] | 1 | 2017-08-18T10:56:39.000Z | 2017-08-18T10:56:39.000Z | import datetime
import logging
import os
import warnings
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
from logutils import BraceMessage as __
from tqdm import tqdm
import simulators
from mingle.models.broadcasted_models import inherent_alpha_model
from mingle.utilities.chisqr import chi_squa... | 45.450575 | 125 | 0.589247 | 2,462 | 19,771 | 4.532494 | 0.164094 | 0.023837 | 0.01631 | 0.010664 | 0.284613 | 0.234698 | 0.203423 | 0.159423 | 0.125818 | 0.125818 | 0 | 0.019843 | 0.296495 | 19,771 | 434 | 126 | 45.5553 | 0.782443 | 0.107177 | 0 | 0.186667 | 0 | 0.01 | 0.098256 | 0.01447 | 0 | 0 | 0 | 0 | 0.056667 | 1 | 0.04 | false | 0 | 0.063333 | 0 | 0.153333 | 0.036667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4752834006b4c7e38581b00b04934cecb3b712df | 4,910 | py | Python | src/etl/transform.py | fmirani/etl_project | 969990143c3075f193565cec309a2f0333038a8b | [
"MIT"
] | null | null | null | src/etl/transform.py | fmirani/etl_project | 969990143c3075f193565cec309a2f0333038a8b | [
"MIT"
] | null | null | null | src/etl/transform.py | fmirani/etl_project | 969990143c3075f193565cec309a2f0333038a8b | [
"MIT"
] | null | null | null | import pandas as pd
from datetime import datetime, timedelta
from bs4 import BeautifulSoup as bs
from etl.logger import get_logger
from etl.main import ETL
logger = get_logger("transform")
def transform_data(service: str, data_file: str) -> pd.DataFrame:
"""
Simple function to guide the request ... | 31.075949 | 87 | 0.57169 | 597 | 4,910 | 4.628141 | 0.289782 | 0.020268 | 0.019906 | 0.021716 | 0.346363 | 0.332609 | 0.307637 | 0.281578 | 0.2519 | 0.217155 | 0 | 0.006213 | 0.311609 | 4,910 | 157 | 88 | 31.273885 | 0.811243 | 0.227495 | 0 | 0.323232 | 0 | 0 | 0.176172 | 0.006211 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030303 | false | 0 | 0.050505 | 0 | 0.131313 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4752de7c01e8d42225f7e14fb6052b77754c4e72 | 3,567 | py | Python | student/urls.py | masoodazhar/-school-management-system | 6525b3d29d12f03e05d362d81b7c5855806f57d9 | [
"Apache-2.0"
] | 1 | 2022-01-20T10:20:05.000Z | 2022-01-20T10:20:05.000Z | student/urls.py | masoodazhar/-school-management-system | 6525b3d29d12f03e05d362d81b7c5855806f57d9 | [
"Apache-2.0"
] | null | null | null | student/urls.py | masoodazhar/-school-management-system | 6525b3d29d12f03e05d362d81b7c5855806f57d9 | [
"Apache-2.0"
] | 1 | 2022-01-20T10:20:31.000Z | 2022-01-20T10:20:31.000Z |
from django.urls import path
from academic.views import SectionCreate, SectionUpdate, SectionDelete
from .views import (
StudentView,
AttendanceMark,
AttendanceSearch,
AttendanceView,
IndividualMarksView,
AdmissionCreate,
AdmissionView,
AdmissionDelete,
AdmissionUpda... | 51.695652 | 140 | 0.724699 | 391 | 3,567 | 6.327366 | 0.199488 | 0.058205 | 0.097009 | 0.038399 | 0.168957 | 0.057397 | 0 | 0 | 0 | 0 | 0 | 0.000322 | 0.130642 | 3,567 | 68 | 141 | 52.455882 | 0.797485 | 0 | 0 | 0 | 0 | 0 | 0.352487 | 0.185249 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.046154 | 0 | 0.046154 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
47534f46ad8c13b23baa8376ad80237dfc62bd3c | 827 | py | Python | wenben_project/reco_sys/server/__init__.py | nameli0722/git- | 29343ef0eec598aa262c59825d567044ef393f44 | [
"MIT"
] | null | null | null | wenben_project/reco_sys/server/__init__.py | nameli0722/git- | 29343ef0eec598aa262c59825d567044ef393f44 | [
"MIT"
] | null | null | null | wenben_project/reco_sys/server/__init__.py | nameli0722/git- | 29343ef0eec598aa262c59825d567044ef393f44 | [
"MIT"
] | null | null | null | import happybase
from settings.default import DefaultConfig
import redis
pool = happybase.ConnectionPool(size=10, host='hadoop-master', port=9090)
# 召回数据
redis_client = redis.StrictRedis(host=DefaultConfig.REDIS_HOST,
port=DefaultConfig.REDIS_PORT,
db=... | 34.458333 | 73 | 0.629988 | 81 | 827 | 6.296296 | 0.481481 | 0.141176 | 0.086275 | 0.101961 | 0.298039 | 0.298039 | 0.298039 | 0.298039 | 0.298039 | 0.298039 | 0 | 0.015517 | 0.29867 | 827 | 24 | 74 | 34.458333 | 0.863793 | 0.031439 | 0 | 0.235294 | 0 | 0 | 0.016291 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.294118 | 0 | 0.294118 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
475a825b4f6b8ec63bbe41abb911aed22f74dd8a | 11,153 | py | Python | idarest/idarest_master.py | sfinktah/idarest75 | ab2549b12e174aaef32ab6c933fe09b1232a8cce | [
"MIT"
] | null | null | null | idarest/idarest_master.py | sfinktah/idarest75 | ab2549b12e174aaef32ab6c933fe09b1232a8cce | [
"MIT"
] | null | null | null | idarest/idarest_master.py | sfinktah/idarest75 | ab2549b12e174aaef32ab6c933fe09b1232a8cce | [
"MIT"
] | null | null | null | import socket
try:
from .idarest_mixins import IdaRestConfiguration
except:
from idarest_mixins import IdaRestConfiguration
# idarest_master_plugin_t.config['master_debug'] = False
# idarest_master_plugin_t.config['master_info'] = False
# idarest_master_plugin_t.config['api_prefix'] = '/ida/api/v1.0'
# ida... | 38.725694 | 151 | 0.56505 | 1,247 | 11,153 | 4.837209 | 0.19567 | 0.118534 | 0.116545 | 0.122679 | 0.363893 | 0.339688 | 0.330736 | 0.288959 | 0.278017 | 0.263428 | 0 | 0.009671 | 0.313907 | 11,153 | 287 | 152 | 38.860627 | 0.77862 | 0.078992 | 0 | 0.202643 | 0 | 0 | 0.147859 | 0.048961 | 0 | 0 | 0 | 0 | 0 | 1 | 0.118943 | false | 0.008811 | 0.07489 | 0.013216 | 0.370044 | 0.0837 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
475b01893fd7ae3f1c364df0596288e775da3bcd | 11,750 | py | Python | wordbot.py | spyth/wordbot | 8213d18fcd7602a5b2bab9c83898b9f29a1cf3d4 | [
"MIT"
] | null | null | null | wordbot.py | spyth/wordbot | 8213d18fcd7602a5b2bab9c83898b9f29a1cf3d4 | [
"MIT"
] | null | null | null | wordbot.py | spyth/wordbot | 8213d18fcd7602a5b2bab9c83898b9f29a1cf3d4 | [
"MIT"
] | null | null | null | import logging
import json
from datetime import datetime
from telegram.ext import (Updater, CommandHandler, MessageHandler, Filters,
Job, CallbackQueryHandler)
from telegram import (ChatAction, ParseMode, InlineKeyboardButton, InlineKeyboardMarkup)
from peewee import fn
import pytz
from word... | 50.213675 | 151 | 0.575149 | 1,267 | 11,750 | 5.148382 | 0.172849 | 0.046911 | 0.045838 | 0.030354 | 0.529664 | 0.458685 | 0.420972 | 0.401349 | 0.39721 | 0.382493 | 0 | 0.006031 | 0.308511 | 11,750 | 233 | 152 | 50.429185 | 0.793969 | 0.017362 | 0 | 0.335025 | 0 | 0.030457 | 0.082763 | 0 | 0.010152 | 0 | 0 | 0 | 0 | 1 | 0.040609 | false | 0.005076 | 0.055838 | 0 | 0.116751 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
475f6eec7136ec2401074e0d2a574922b79ef08a | 1,829 | py | Python | cosPreprints.py | leouieda/cospy | fa0994e5a41896cd17f76fdad08b20bdb4dd112a | [
"MIT"
] | null | null | null | cosPreprints.py | leouieda/cospy | fa0994e5a41896cd17f76fdad08b20bdb4dd112a | [
"MIT"
] | 8 | 2019-06-10T12:56:56.000Z | 2019-07-02T16:49:40.000Z | cosPreprints.py | leouieda/cospy | fa0994e5a41896cd17f76fdad08b20bdb4dd112a | [
"MIT"
] | null | null | null | import os
import sys
import utils
import extras.downloadStats as stats
import extras.downloadManuscript as dm
import extras.unpaywall as up
def main():
# get the configuration parameters from environment variables
cosApiToken = os.environ['cosApiToken'] # for accessing COS API
emailAddress = os.environ['... | 29.983607 | 89 | 0.708037 | 223 | 1,829 | 5.807175 | 0.565022 | 0.021622 | 0.026255 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006882 | 0.205577 | 1,829 | 60 | 90 | 30.483333 | 0.884377 | 0.402406 | 0 | 0 | 0 | 0 | 0.098881 | 0.027985 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0.214286 | 0 | 0.25 | 0.107143 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |