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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
865c58fb5c718cde61e92adbf510bf5427d547e3 | 9,324 | py | Python | update_generated.py | xyx208/MacInfoPkg | de768cc31beff0632d186caddc2d2e735412988b | [
"BSD-3-Clause"
] | 1 | 2019-08-22T04:37:45.000Z | 2019-08-22T04:37:45.000Z | update_generated.py | xyx208/MacInfoPkg | de768cc31beff0632d186caddc2d2e735412988b | [
"BSD-3-Clause"
] | null | null | null | update_generated.py | xyx208/MacInfoPkg | de768cc31beff0632d186caddc2d2e735412988b | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
"""
Update autogenerated source files from yaml database.
Copyright (c) 2019, vit9696
"""
from __future__ import print_function
import update_products
import fnmatch
import operator
import os
import unicodedata
import sys
import yaml
def remove_accents(input_str):
nfkd_form = unicodedata.n... | 32.946996 | 121 | 0.601244 | 1,110 | 9,324 | 4.95045 | 0.209009 | 0.0404 | 0.054049 | 0.024022 | 0.305005 | 0.249318 | 0.206915 | 0.187079 | 0.171429 | 0.156142 | 0 | 0.009861 | 0.238631 | 9,324 | 282 | 122 | 33.06383 | 0.764192 | 0.043115 | 0 | 0.242857 | 1 | 0 | 0.355636 | 0.05664 | 0 | 0 | 0.001354 | 0.007092 | 0 | 1 | 0.028571 | false | 0 | 0.038095 | 0 | 0.080952 | 0.238095 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
865edce571df91122f044dfbdaee60f88d4b4640 | 1,791 | py | Python | tombstones/models.py | skioo/django-tombstones | e629572244eead4653f113d7efc44b55b69531be | [
"MIT"
] | 5 | 2017-10-07T04:42:20.000Z | 2021-04-22T03:42:36.000Z | tombstones/models.py | skioo/django-tombstones | e629572244eead4653f113d7efc44b55b69531be | [
"MIT"
] | null | null | null | tombstones/models.py | skioo/django-tombstones | e629572244eead4653f113d7efc44b55b69531be | [
"MIT"
] | null | null | null | from django.contrib.contenttypes.fields import GenericForeignKey, GenericRelation
from django.contrib.contenttypes.models import ContentType
from django.db import models
class Tombstone(models.Model):
created = models.DateTimeField(auto_now_add=True)
content_type = models.ForeignKey(ContentType, on_delete=mod... | 31.982143 | 95 | 0.73981 | 222 | 1,791 | 5.738739 | 0.351351 | 0.094976 | 0.061224 | 0.059655 | 0.154631 | 0.124019 | 0.124019 | 0.065934 | 0.065934 | 0.065934 | 0 | 0 | 0.175879 | 1,791 | 55 | 96 | 32.563636 | 0.863144 | 0.107203 | 0 | 0.117647 | 0 | 0 | 0.0133 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.205882 | false | 0 | 0.088235 | 0.088235 | 0.735294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
86658600e1b816c1713a1c028ec6777c0119d5fd | 5,377 | py | Python | Django-API/halls/views.py | arihant-jain-09/Django-youtube-api | e9d093427418eb86cec136cbe323b436ad39635f | [
"MIT"
] | 2 | 2020-12-03T20:01:02.000Z | 2020-12-04T06:25:25.000Z | Django-API/halls/views.py | arihant-jain-09/Django-youtube-api | e9d093427418eb86cec136cbe323b436ad39635f | [
"MIT"
] | null | null | null | Django-API/halls/views.py | arihant-jain-09/Django-youtube-api | e9d093427418eb86cec136cbe323b436ad39635f | [
"MIT"
] | null | null | null | from django.shortcuts import render,redirect
from django.urls import reverse_lazy,reverse
from django.contrib.auth.forms import UserCreationForm
from django.views.generic import CreateView,DetailView,UpdateView,DeleteView,TemplateView
from django.contrib.auth import authenticate,login
from django.http import HttpRespon... | 38.407143 | 158 | 0.69072 | 667 | 5,377 | 5.428786 | 0.227886 | 0.027617 | 0.028998 | 0.022093 | 0.296051 | 0.240817 | 0.183927 | 0.160729 | 0.160729 | 0.148025 | 0 | 0.006917 | 0.193416 | 5,377 | 139 | 159 | 38.683453 | 0.827992 | 0.090013 | 0 | 0.284483 | 0 | 0.017241 | 0.138963 | 0.018856 | 0 | 0 | 0 | 0 | 0 | 1 | 0.077586 | false | 0.017241 | 0.12069 | 0 | 0.534483 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
8668045370cc9e2b65ef1d64eac622a130f42572 | 577 | py | Python | day2/placement/data/data_maker/7/dm.py | DiamondJack/CTSC2018 | a3a6ed27d61915ce08bcce4160970a9aeea39a0c | [
"Apache-2.0"
] | 2 | 2019-03-22T11:13:53.000Z | 2020-08-28T03:05:02.000Z | day2/placement/data/data_maker/7/dm.py | DiamondJack/CTSC2018 | a3a6ed27d61915ce08bcce4160970a9aeea39a0c | [
"Apache-2.0"
] | null | null | null | day2/placement/data/data_maker/7/dm.py | DiamondJack/CTSC2018 | a3a6ed27d61915ce08bcce4160970a9aeea39a0c | [
"Apache-2.0"
] | null | null | null | from random import randint
import numpy as np
n = [ 500 ]
m = [ n[i] * n[i + 1] for i in range(len(n) - 1) ]
k, v1, v2 = 600, 10, 1000
print('%d %d %d 2' % (np.sum(n), np.sum(m), k))
b = 1
for i in range(len(n) - 1):
for j in range(0, n[i]):
for k in range(0, n[i + 1]):
print('%d %d' % (b + j,... | 26.227273 | 75 | 0.480069 | 122 | 577 | 2.270492 | 0.278689 | 0.202166 | 0.108303 | 0.158845 | 0.34296 | 0.122744 | 0.122744 | 0.122744 | 0 | 0 | 0 | 0.07196 | 0.30156 | 577 | 21 | 76 | 27.47619 | 0.615385 | 0 | 0 | 0 | 0 | 0 | 0.032986 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0.222222 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
866ab9f140c30db40252b178f86986c7638bbd95 | 3,412 | py | Python | TechAdoption/Predict_Model.py | Epeiffer1/TechAdoption | 54dcdf95ba19699f6fc901e92551fb71557d2f23 | [
"MIT"
] | null | null | null | TechAdoption/Predict_Model.py | Epeiffer1/TechAdoption | 54dcdf95ba19699f6fc901e92551fb71557d2f23 | [
"MIT"
] | null | null | null | TechAdoption/Predict_Model.py | Epeiffer1/TechAdoption | 54dcdf95ba19699f6fc901e92551fb71557d2f23 | [
"MIT"
] | 1 | 2020-06-12T18:07:52.000Z | 2020-06-12T18:07:52.000Z | """ Created by: Erin Peiffer, 12 May 2020
Code to predict rates of adoption using Top_Features identified
"""
from Build_Model import (format_magpi, format_dataset, split_train_test, create_random_forest, predict_test_data,
evaluate_fit, list_top_features, plot_top_features, plot_predicted_actual, plot_tree)
from ... | 48.056338 | 204 | 0.763482 | 481 | 3,412 | 5.195426 | 0.330561 | 0.021609 | 0.040816 | 0.022809 | 0.202481 | 0.181673 | 0.181673 | 0.151261 | 0.122449 | 0.090436 | 0 | 0.012179 | 0.109613 | 3,412 | 70 | 205 | 48.742857 | 0.810402 | 0.065944 | 0 | 0.130435 | 0 | 0.043478 | 0.190971 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021739 | false | 0 | 0.304348 | 0 | 0.326087 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
866b2332f4a15a442499fbae78997e2e712962ff | 3,684 | py | Python | contrib/cpp/src/python/pants/contrib/cpp/tasks/cpp_compile.py | StephanErb/pants | a368267b6b4cf50138ba567f582409ed31bf5db9 | [
"Apache-2.0"
] | 94 | 2015-01-15T21:24:20.000Z | 2022-02-16T16:55:43.000Z | contrib/cpp/src/python/pants/contrib/cpp/tasks/cpp_compile.py | StephanErb/pants | a368267b6b4cf50138ba567f582409ed31bf5db9 | [
"Apache-2.0"
] | 5 | 2020-07-18T01:04:43.000Z | 2021-05-10T08:40:56.000Z | contrib/cpp/src/python/pants/contrib/cpp/tasks/cpp_compile.py | StephanErb/pants | a368267b6b4cf50138ba567f582409ed31bf5db9 | [
"Apache-2.0"
] | 47 | 2015-02-25T02:20:07.000Z | 2022-03-21T00:59:16.000Z | # coding=utf-8
# Copyright 2015 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import absolute_import, division, print_function, unicode_literals
import os
from pants.base.build_environment import get_buildroot
from pants.base.workuni... | 38.778947 | 100 | 0.686211 | 497 | 3,684 | 4.929577 | 0.350101 | 0.019592 | 0.032653 | 0.021224 | 0.146939 | 0.099592 | 0.078367 | 0.078367 | 0.048163 | 0.048163 | 0 | 0.003061 | 0.201954 | 3,684 | 94 | 101 | 39.191489 | 0.830272 | 0.181325 | 0 | 0.066667 | 0 | 0 | 0.0779 | 0 | 0 | 0 | 0 | 0.010638 | 0 | 1 | 0.116667 | false | 0 | 0.1 | 0.033333 | 0.3 | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
866fd78a91f992c6b4264ec0b760217934313993 | 4,196 | py | Python | Pyext/test/data/python_includes/head.py | mpartio/ecflow | ea4b89399d1e7b897ff48c59b1e885e6d53cc8d6 | [
"Apache-2.0"
] | null | null | null | Pyext/test/data/python_includes/head.py | mpartio/ecflow | ea4b89399d1e7b897ff48c59b1e885e6d53cc8d6 | [
"Apache-2.0"
] | null | null | null | Pyext/test/data/python_includes/head.py | mpartio/ecflow | ea4b89399d1e7b897ff48c59b1e885e6d53cc8d6 | [
"Apache-2.0"
] | null | null | null | #////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8
# Name :
# Author : Avi
# Revision : $Revision: #10 $
#
# Copyright 2009- ECMWF.
# This software is licensed under the terms of the Apache Licence version 2.0
# which can be obtained at http://www.apache.org/licenses/LICENSE... | 44.168421 | 117 | 0.628217 | 539 | 4,196 | 4.729128 | 0.359926 | 0.131816 | 0.098862 | 0.108278 | 0.274225 | 0.251471 | 0.078462 | 0.0408 | 0.034523 | 0 | 0 | 0.014316 | 0.200906 | 4,196 | 94 | 118 | 44.638298 | 0.745899 | 0 | 0 | 0.09375 | 0 | 0 | 0.200062 | 0.040759 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.015625 | 0.046875 | null | null | 0.21875 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8670c61636ff4061b1b7eac662e7107300442d6c | 15,027 | py | Python | pretrain_G.py | SongANIC/SeqGanANIC | 0ce4c0d03bc785a8c691ae1a35353b8744adcd26 | [
"MIT"
] | null | null | null | pretrain_G.py | SongANIC/SeqGanANIC | 0ce4c0d03bc785a8c691ae1a35353b8744adcd26 | [
"MIT"
] | null | null | null | pretrain_G.py | SongANIC/SeqGanANIC | 0ce4c0d03bc785a8c691ae1a35353b8744adcd26 | [
"MIT"
] | null | null | null | from __future__ import division
import os
import time
import tensorflow as tf
import numpy as np
from tqdm import tqdm
import sys
import pdb
class G_pretrained():
def __init__(self, sess, dataset, conf=None):
self.sess = sess
self.batch_size = conf.batch_size
self.max_iter = conf.max_iter
... | 46.667702 | 126 | 0.626406 | 2,015 | 15,027 | 4.41737 | 0.133499 | 0.023481 | 0.018537 | 0.021346 | 0.481856 | 0.42939 | 0.391417 | 0.349174 | 0.308954 | 0.29008 | 0 | 0.01494 | 0.25168 | 15,027 | 321 | 127 | 46.813084 | 0.776612 | 0.10714 | 0 | 0.288618 | 0 | 0 | 0.047397 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.03252 | null | null | 0.02439 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
86778e5629e34c983d6cff6951808cc194541459 | 452 | py | Python | Functions.py | Tanamo-Inc/Python | 0b851990bba6710e39930f6ab15ec4f82a1c47b0 | [
"Apache-2.0"
] | null | null | null | Functions.py | Tanamo-Inc/Python | 0b851990bba6710e39930f6ab15ec4f82a1c47b0 | [
"Apache-2.0"
] | null | null | null | Functions.py | Tanamo-Inc/Python | 0b851990bba6710e39930f6ab15ec4f82a1c47b0 | [
"Apache-2.0"
] | null | null | null | # A function is a block of organized, reusable code that is used to perform a single, related action.
# Define a function.
def fun():
print("What's a Funtion ?")
# Functions with Arguments.
def funArg(arg1,arg2):
print(arg1," ",arg2)
# return(arg1," ",arg2)
#Functions that returns a value... | 15.586207 | 101 | 0.626106 | 66 | 452 | 4.287879 | 0.530303 | 0.084806 | 0.070671 | 0.106007 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047337 | 0.252212 | 452 | 28 | 102 | 16.142857 | 0.789941 | 0.484513 | 0 | 0 | 0 | 0 | 0.087558 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0 | 0.1 | 0.4 | 0.4 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8677c611a8a7e1f45182bb58aab891ebfbcc9187 | 3,683 | py | Python | pygazebo/msg/image_pb2.py | CryptoCopter/pygazebo | f16704f3b59cb50a1390ef92fde283558fd71f8f | [
"Apache-2.0"
] | null | null | null | pygazebo/msg/image_pb2.py | CryptoCopter/pygazebo | f16704f3b59cb50a1390ef92fde283558fd71f8f | [
"Apache-2.0"
] | null | null | null | pygazebo/msg/image_pb2.py | CryptoCopter/pygazebo | f16704f3b59cb50a1390ef92fde283558fd71f8f | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: image.proto
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf ... | 37.20202 | 256 | 0.746131 | 490 | 3,683 | 5.310204 | 0.242857 | 0.049193 | 0.080323 | 0.072636 | 0.521138 | 0.459646 | 0.459646 | 0.428901 | 0.414297 | 0.414297 | 0 | 0.03375 | 0.131143 | 3,683 | 98 | 257 | 37.581633 | 0.779375 | 0.070595 | 0 | 0.435897 | 1 | 0.012821 | 0.141852 | 0.100821 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.051282 | 0 | 0.051282 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
867b544b152e620a468c6734dc30a21e128b27f3 | 3,293 | py | Python | fid-judaica/freimann/scripts/Tn-GNDID-01.py | judaicalink/judaicalink-generators | 845dbd6886fa82ec45adf16ba08fad9d26169419 | [
"MIT"
] | 1 | 2020-09-20T17:00:05.000Z | 2020-09-20T17:00:05.000Z | fid-judaica/freimann/scripts/Tn-GNDID-01.py | wisslab/judaicalink-generators | 845dbd6886fa82ec45adf16ba08fad9d26169419 | [
"MIT"
] | null | null | null | fid-judaica/freimann/scripts/Tn-GNDID-01.py | wisslab/judaicalink-generators | 845dbd6886fa82ec45adf16ba08fad9d26169419 | [
"MIT"
] | null | null | null | # Maral Dadvar
#This code looks for common authors in Tn authors at UB dataset and the authors extracted from GND with unique occurance and based on the specified occupations.
#10.07.2017
#Ver. 01
import rdflib
from rdflib import Namespace, URIRef, Graph , Literal
from SPARQLWrapper import SPARQLWrapper2, XML , RDF , ... | 29.401786 | 184 | 0.673854 | 481 | 3,293 | 4.588358 | 0.343035 | 0.05981 | 0.047576 | 0.029905 | 0.239239 | 0.20299 | 0.155868 | 0.094246 | 0 | 0 | 0 | 0.03709 | 0.156696 | 3,293 | 111 | 185 | 29.666667 | 0.757652 | 0.090799 | 0 | 0 | 0 | 0.029412 | 0.48994 | 0.047954 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.073529 | null | null | 0.014706 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
867e27f279495f0f2e3f24dd4c7685e302344ffe | 15,600 | py | Python | modules/TCP_generic.py | re4lity/XFLTReaT | e85a3d0babd82baa8ebc40873f1de480fcb5d3e6 | [
"MIT"
] | 1 | 2019-08-19T10:52:00.000Z | 2019-08-19T10:52:00.000Z | modules/TCP_generic.py | re4lity/XFLTReaT | e85a3d0babd82baa8ebc40873f1de480fcb5d3e6 | [
"MIT"
] | null | null | null | modules/TCP_generic.py | re4lity/XFLTReaT | e85a3d0babd82baa8ebc40873f1de480fcb5d3e6 | [
"MIT"
] | null | null | null | # MIT License
# Copyright (c) 2017 Balazs Bucsay
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, ... | 33.333333 | 218 | 0.7125 | 2,158 | 15,600 | 4.999537 | 0.197405 | 0.026694 | 0.026508 | 0.018908 | 0.329039 | 0.262397 | 0.243118 | 0.216146 | 0.195848 | 0.188247 | 0 | 0.014465 | 0.184615 | 15,600 | 468 | 219 | 33.333333 | 0.833726 | 0.188141 | 0 | 0.4375 | 0 | 0 | 0.083419 | 0 | 0 | 0 | 0.000317 | 0 | 0 | 0 | null | null | 0.009375 | 0.046875 | null | null | 0.075 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
867f78d156d0f7b4e2dc986dcb1726b81073e73b | 2,648 | py | Python | webcam_scanner/plugins/api_passwdcheck.py | hobby1999/webcam_scanner | 50a4473eb1e139b87f5a8ffed23d388448198b08 | [
"Apache-2.0"
] | null | null | null | webcam_scanner/plugins/api_passwdcheck.py | hobby1999/webcam_scanner | 50a4473eb1e139b87f5a8ffed23d388448198b08 | [
"Apache-2.0"
] | null | null | null | webcam_scanner/plugins/api_passwdcheck.py | hobby1999/webcam_scanner | 50a4473eb1e139b87f5a8ffed23d388448198b08 | [
"Apache-2.0"
] | null | null | null | from api_common.api_router import router
from func_common.get_currenttime import getcurrenttime
from func_common.filepathforchecksec import get_filepaths
import os
'''
弱口令检测API,不包含暴力枚举破解,只进行收集弱口令检测
'''
@router.get("/checkpasswd",
name="账号密码检查",
description="用于账号密码检查的api,查看是否有弱密码泄露,username为用户名参数,filename为文件参数")
async... | 44.133333 | 104 | 0.591012 | 290 | 2,648 | 5.217241 | 0.3 | 0.052875 | 0.0423 | 0.044944 | 0.235294 | 0.196299 | 0.196299 | 0.136814 | 0.136814 | 0.101785 | 0 | 0.01506 | 0.247734 | 2,648 | 59 | 105 | 44.881356 | 0.744478 | 0 | 0 | 0.037736 | 0 | 0 | 0.118728 | 0.053236 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.396226 | 0.075472 | 0 | 0.132075 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
868379bce23dd55d48c838f5eb98d6c1a8573395 | 1,677 | py | Python | tmp/crstest.py | tuvokki/console | 418efb7743348210e878d397ab56fec9557e8cfb | [
"MIT"
] | null | null | null | tmp/crstest.py | tuvokki/console | 418efb7743348210e878d397ab56fec9557e8cfb | [
"MIT"
] | null | null | null | tmp/crstest.py | tuvokki/console | 418efb7743348210e878d397ab56fec9557e8cfb | [
"MIT"
] | null | null | null | #!/usr/bin/python
# crstest.py
import curses
stdscr = curses.initscr()
# Usually curses applications turn off automatic echoing of keys to the screen, in order to be able to read keys and only display
# them under certain circumstances. This requires calling the noecho() function.
curses.noecho()
# Applications wil... | 39 | 131 | 0.735838 | 279 | 1,677 | 4.405018 | 0.53405 | 0.014646 | 0.016273 | 0.017901 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023512 | 0.188432 | 1,677 | 43 | 132 | 39 | 0.8795 | 0.689326 | 0 | 0 | 0 | 0 | 0.001972 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.055556 | 0.055556 | 0 | 0.055556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
86853a191230ba254849bbce0681d8fce63dc0a5 | 3,172 | py | Python | tools/utils/rerun.py | HelixOS/cts | 1956c3f1525d6b7bf668f1671e7c29cb6fbb9c9a | [
"Apache-2.0"
] | null | null | null | tools/utils/rerun.py | HelixOS/cts | 1956c3f1525d6b7bf668f1671e7c29cb6fbb9c9a | [
"Apache-2.0"
] | null | null | null | tools/utils/rerun.py | HelixOS/cts | 1956c3f1525d6b7bf668f1671e7c29cb6fbb9c9a | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
#
# Copyright (C) 2012 The Android Open Source Project
#
# 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 req... | 35.244444 | 82 | 0.649117 | 354 | 3,172 | 5.782486 | 0.420904 | 0.029311 | 0.014656 | 0.015633 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007101 | 0.245271 | 3,172 | 89 | 83 | 35.640449 | 0.847953 | 0.232976 | 0 | 0.096774 | 0 | 0 | 0.102362 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.016129 | 0.064516 | null | null | 0.080645 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
86858e14cef0d41afd7edc14e8622fa7736176fa | 2,257 | py | Python | aiida/orm/nodes/data/base.py | louisponet/aiida-core | 3214236df66a3792ee57fe38a06c0c3bb65861ab | [
"MIT",
"BSD-3-Clause"
] | 1 | 2016-09-12T10:51:00.000Z | 2016-09-12T10:51:00.000Z | aiida/orm/nodes/data/base.py | louisponet/aiida-core | 3214236df66a3792ee57fe38a06c0c3bb65861ab | [
"MIT",
"BSD-3-Clause"
] | 17 | 2020-03-11T17:04:05.000Z | 2020-05-01T09:34:45.000Z | aiida/orm/nodes/data/base.py | unkcpz/aiida_core | bb92dd56cc1bba142df2c48f1a73ca6b809568dc | [
"MIT",
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
###########################################################################
# Copyright (c), The AiiDA team. All rights reserved. #
# This file is part of the AiiDA code. #
# ... | 34.723077 | 106 | 0.560035 | 256 | 2,257 | 4.773438 | 0.402344 | 0.05892 | 0.0491 | 0.065466 | 0.258592 | 0.258592 | 0.258592 | 0.258592 | 0.258592 | 0.258592 | 0 | 0.001222 | 0.275144 | 2,257 | 64 | 107 | 35.265625 | 0.745721 | 0.350465 | 0 | 0.111111 | 0 | 0 | 0.141524 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.055556 | 0.083333 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8687fdc91dc84b4091ba10cdba6f001674e95060 | 412 | py | Python | tor/ip2as.py | akashlevy/CDN-Measurement | 9d862a9b8de62ebdcfc18daf04bc39b02952f413 | [
"MIT"
] | null | null | null | tor/ip2as.py | akashlevy/CDN-Measurement | 9d862a9b8de62ebdcfc18daf04bc39b02952f413 | [
"MIT"
] | 9 | 2018-05-07T07:25:43.000Z | 2018-05-07T07:46:37.000Z | tor/ip2as.py | akashlevy/CDN-Measurement | 9d862a9b8de62ebdcfc18daf04bc39b02952f413 | [
"MIT"
] | null | null | null | import pyasn
# Initialize module and load IP to ASN database
# the sample database can be downloaded or built - see below
asndb = pyasn.pyasn('ip2asn')
ips = set([line.strip() for line in open('torlist-2017-12-20.txt')])
with open('ip2as.txt','w') as outfile:
for ip in ips:
try:
asn = asndb.lookup(ip)
... | 24.235294 | 68 | 0.63835 | 67 | 412 | 3.925373 | 0.716418 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034483 | 0.225728 | 412 | 16 | 69 | 25.75 | 0.789969 | 0.252427 | 0 | 0 | 0 | 0 | 0.147541 | 0.072131 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1 | null | null | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
868b71b87544229b0e17967c221631444d089997 | 1,257 | py | Python | model/registration_model.py | berpress/woman_shop_ui_tests | f442f88b247b02f23d775e96c5447859ccfec8b8 | [
"Apache-2.0"
] | null | null | null | model/registration_model.py | berpress/woman_shop_ui_tests | f442f88b247b02f23d775e96c5447859ccfec8b8 | [
"Apache-2.0"
] | 9 | 2020-07-05T11:26:17.000Z | 2020-07-26T08:49:13.000Z | model/registration_model.py | berpress/woman_shop_ui_tests | f442f88b247b02f23d775e96c5447859ccfec8b8 | [
"Apache-2.0"
] | 1 | 2020-07-05T09:59:55.000Z | 2020-07-05T09:59:55.000Z | from faker import Faker
class RegistrationUserData:
def __init__(
self,
email=None,
first_name=None,
last_name=None,
password=None,
address=None,
city=None,
state=None,
postal_code=None,
country=None,
mobile_phone=None,
... | 26.744681 | 54 | 0.564041 | 131 | 1,257 | 5.19084 | 0.259542 | 0.066176 | 0.035294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012151 | 0.345267 | 1,257 | 46 | 55 | 27.326087 | 0.814095 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046512 | false | 0.069767 | 0.023256 | 0 | 0.116279 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
869376a90a41983e6f0ee9ff24ef4a1fd994e116 | 1,103 | py | Python | authentik/events/migrations/0002_auto_20200918_2116.py | BeryJu/passbook | 350f0d836580f4411524614f361a76c4f27b8a2d | [
"MIT"
] | 15 | 2020-01-05T09:09:57.000Z | 2020-11-28T05:27:39.000Z | authentik/events/migrations/0002_auto_20200918_2116.py | BeryJu/passbook | 350f0d836580f4411524614f361a76c4f27b8a2d | [
"MIT"
] | 302 | 2020-01-21T08:03:59.000Z | 2020-12-04T05:04:57.000Z | authentik/events/migrations/0002_auto_20200918_2116.py | BeryJu/passbook | 350f0d836580f4411524614f361a76c4f27b8a2d | [
"MIT"
] | 3 | 2020-03-04T08:21:59.000Z | 2020-08-01T20:37:18.000Z | # Generated by Django 3.1.1 on 2020-09-18 21:16
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("authentik_events", "0001_initial"),
]
operations = [
migrations.AlterField(
model_name="event",
name="action",
... | 32.441176 | 71 | 0.488667 | 81 | 1,103 | 6.395062 | 0.62963 | 0.03861 | 0.127413 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0279 | 0.382593 | 1,103 | 33 | 72 | 33.424242 | 0.732746 | 0.040798 | 0 | 0.074074 | 1 | 0 | 0.336174 | 0.079545 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.037037 | 0.037037 | 0 | 0.148148 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
86943db28ce973d07e85c23c8f4e53e12bea92a9 | 9,563 | py | Python | View/UserSubscribeWindow.py | drkying/ruanshe3 | a357298402571e65d16004bed69da68a09ccabdd | [
"MIT"
] | null | null | null | View/UserSubscribeWindow.py | drkying/ruanshe3 | a357298402571e65d16004bed69da68a09ccabdd | [
"MIT"
] | null | null | null | View/UserSubscribeWindow.py | drkying/ruanshe3 | a357298402571e65d16004bed69da68a09ccabdd | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'UserSubscribeWindow.ui'
#
# Created by: PyQt5 UI code generator 5.15.4
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 import ... | 58.668712 | 123 | 0.729164 | 942 | 9,563 | 7.267516 | 0.187898 | 0.089833 | 0.080631 | 0.057844 | 0.465673 | 0.357289 | 0.201285 | 0.182296 | 0.057844 | 0.021911 | 0 | 0.017097 | 0.162083 | 9,563 | 162 | 124 | 59.030864 | 0.837264 | 0.029698 | 0 | 0.094595 | 1 | 0 | 0.084888 | 0.0192 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013514 | false | 0 | 0.013514 | 0 | 0.033784 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
86957aa993b3ba3b9af605f1bf955988ff3a0991 | 4,893 | py | Python | code/image_recognition/just_cam.py | fogitnerd/Adaptive-Optics-Modell | f568f8d14466b9c428373113f068bb304bc2f799 | [
"Apache-2.0"
] | 5 | 2016-06-11T11:36:15.000Z | 2022-03-17T12:46:40.000Z | code/image_recognition/just_cam.py | fogitnerd/Adaptive-Optics-Modell | f568f8d14466b9c428373113f068bb304bc2f799 | [
"Apache-2.0"
] | null | null | null | code/image_recognition/just_cam.py | fogitnerd/Adaptive-Optics-Modell | f568f8d14466b9c428373113f068bb304bc2f799 | [
"Apache-2.0"
] | 1 | 2019-03-10T09:57:40.000Z | 2019-03-10T09:57:40.000Z | __author__ = 'Fabian Gebhart'
# This file "just_cam.py" simply displays the image captured by
# the camera to the user. It will also display the reference
# lines and the number of the found laser points. For more info
# see: https://github.com/fgebhart/adaptive-optics-model
# import the necessary packages
... | 33.513699 | 65 | 0.633763 | 677 | 4,893 | 4.468242 | 0.379616 | 0.036364 | 0.007934 | 0.009256 | 0.171901 | 0.158678 | 0.101818 | 0.101818 | 0.101818 | 0.098512 | 0 | 0.051162 | 0.260985 | 4,893 | 146 | 66 | 33.513699 | 0.785398 | 0.233599 | 0 | 0.083333 | 0 | 0 | 0.034429 | 0 | 0 | 0 | 0.001252 | 0 | 0 | 0 | null | null | 0.011905 | 0.071429 | null | null | 0.011905 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
869861484749e7717a87e341a59a53064f8537e5 | 9,278 | py | Python | mimic3models/length_of_stay/networks/lstm.py | aureus5/mimiciII | 0ce15bb67a90b88dbe96e842dbe05d84b6b8ab59 | [
"MIT"
] | 11 | 2019-10-16T15:34:19.000Z | 2022-03-31T10:50:44.000Z | mimic3models/length_of_stay/networks/lstm.py | aureus5/mimiciII | 0ce15bb67a90b88dbe96e842dbe05d84b6b8ab59 | [
"MIT"
] | null | null | null | mimic3models/length_of_stay/networks/lstm.py | aureus5/mimiciII | 0ce15bb67a90b88dbe96e842dbe05d84b6b8ab59 | [
"MIT"
] | 4 | 2019-05-24T11:50:35.000Z | 2021-02-23T07:01:14.000Z | import random
import numpy as np
import theano
import theano.tensor as T
import lasagne
from lasagne import layers
from lasagne import nonlinearities
from lasagne.nonlinearities import softmax, rectify
from lasagne.objectives import squared_error
from lasagne.init import Orthogonal, Normal
from mimic3models import n... | 39.819742 | 96 | 0.508838 | 1,050 | 9,278 | 4.310476 | 0.201905 | 0.033584 | 0.03734 | 0.016571 | 0.28745 | 0.24061 | 0.223597 | 0.197525 | 0.178524 | 0.178524 | 0 | 0.017045 | 0.392973 | 9,278 | 233 | 97 | 39.819742 | 0.786577 | 0.070597 | 0 | 0.154286 | 0 | 0 | 0.038574 | 0 | 0 | 0 | 0 | 0 | 0.028571 | 0 | null | null | 0 | 0.062857 | null | null | 0.028571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
86987c2d4467a774f660c0712e66331b65e097a6 | 5,063 | py | Python | Week2/driver.py | bashmohandes/AI-Course | ad48748023c5606ab774aa049f3a726caa555cc4 | [
"MIT"
] | 2 | 2018-02-22T10:40:32.000Z | 2018-03-18T16:18:13.000Z | Week2/driver.py | bashmohandes/AI-Course | ad48748023c5606ab774aa049f3a726caa555cc4 | [
"MIT"
] | null | null | null | Week2/driver.py | bashmohandes/AI-Course | ad48748023c5606ab774aa049f3a726caa555cc4 | [
"MIT"
] | 1 | 2018-06-19T03:12:37.000Z | 2018-06-19T03:12:37.000Z | import sys
from collections import deque
from heapq import heapify, heappush, heappop
class Board:
def __init__(self, board=None, l=None, e=None, move=None, parent=None):
if board is not None:
parts = board.split(',')
b = []
for i in range(3):
b.append([... | 24.458937 | 78 | 0.523998 | 667 | 5,063 | 3.845577 | 0.169415 | 0.063158 | 0.031189 | 0.015595 | 0.361793 | 0.325536 | 0.303704 | 0.267836 | 0.259259 | 0.244444 | 0 | 0.01721 | 0.345842 | 5,063 | 206 | 79 | 24.57767 | 0.757246 | 0 | 0 | 0.237179 | 0 | 0 | 0.010863 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.019231 | null | null | 0.00641 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8699c6db2d9be310e0dd7aca467e3a815b0fa2e5 | 8,255 | py | Python | LDA.py | saifuddin778/LDA | adaef9287593dce8b44399d11c15496e1421e84a | [
"MIT"
] | 2 | 2019-02-23T16:04:48.000Z | 2021-06-08T07:47:13.000Z | LDA.py | kk7nc/LDA | adaef9287593dce8b44399d11c15496e1421e84a | [
"MIT"
] | null | null | null | LDA.py | kk7nc/LDA | adaef9287593dce8b44399d11c15496e1421e84a | [
"MIT"
] | 3 | 2017-02-15T09:37:20.000Z | 2020-11-08T15:33:21.000Z | from __future__ import division
import sys
import math
import copy
from time import time
sys.dont_write_bytecode = True
__author__ = "Saifuddin Abdullah"
#local imports
from tools import fmin, Functions
funcs_ = Functions()
"""
Implementation of linear discriminant analysis for binary classification tasks.
Any improv... | 36.526549 | 253 | 0.59576 | 1,116 | 8,255 | 4.267921 | 0.212366 | 0.026454 | 0.006299 | 0.008818 | 0.229687 | 0.156204 | 0.107495 | 0.101617 | 0.074323 | 0.061306 | 0 | 0.003805 | 0.299576 | 8,255 | 225 | 254 | 36.688889 | 0.819958 | 0.173471 | 0 | 0.222222 | 0 | 0 | 0.021771 | 0.003387 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.045752 | null | null | 0.019608 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8699f3ad2db2c0db3156024f75f3b75dd0cc6e46 | 362 | py | Python | src/worker/celery.py | Curt-Park/fastapi-celery-triton | df02fc4869a26f79461a01d843c0ab3eb2ed21ab | [
"MIT"
] | 14 | 2022-03-01T18:08:03.000Z | 2022-03-23T06:26:51.000Z | src/worker/celery.py | Curt-Park/fastapi-celery-triton | df02fc4869a26f79461a01d843c0ab3eb2ed21ab | [
"MIT"
] | null | null | null | src/worker/celery.py | Curt-Park/fastapi-celery-triton | df02fc4869a26f79461a01d843c0ab3eb2ed21ab | [
"MIT"
] | 1 | 2022-03-04T01:32:58.000Z | 2022-03-04T01:32:58.000Z | # -*- coding: utf-8 -*-
"""Celery configurations."""
import os
from celery import Celery
broker = os.environ.get("BROKER_URL", "redis://localhost:6379")
backend = os.environ.get("BACKEND_URL", "redis://localhost:6379")
app = Celery(
__name__,
broker=broker,
backend=backend,
include=["worker.tasks"],... | 18.1 | 65 | 0.679558 | 45 | 362 | 5.311111 | 0.577778 | 0.075314 | 0.100418 | 0.175732 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041935 | 0.143646 | 362 | 19 | 66 | 19.052632 | 0.729032 | 0.124309 | 0 | 0 | 0 | 0 | 0.247588 | 0.141479 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
869a078414d6dbd31bf1ebed4770b1dc81433e2c | 399 | py | Python | setup.py | kazistan/alexa-goingson | e74c49bf283d0d75f41ee16636143d34598b49f8 | [
"MIT"
] | null | null | null | setup.py | kazistan/alexa-goingson | e74c49bf283d0d75f41ee16636143d34598b49f8 | [
"MIT"
] | null | null | null | setup.py | kazistan/alexa-goingson | e74c49bf283d0d75f41ee16636143d34598b49f8 | [
"MIT"
] | null | null | null | from setuptools import setup
setup(name='alexa-goingson',
version='0.1',
description='San Francisco Event Recommendations for Amazon Echo',
url='http://github.com/kazistan/alexa-goingson',
author='Kazdin, Joshua',
author_email='joshuakazdin@gmail.com',
license='MIT',
packages=['baydata'],
install_requires=[
'... | 21 | 67 | 0.709273 | 49 | 399 | 5.714286 | 0.897959 | 0.092857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008475 | 0.112782 | 399 | 19 | 68 | 21 | 0.782486 | 0 | 0 | 0 | 0 | 0 | 0.4625 | 0.055 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.055556 | 0 | 0.055556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
869b67e29e815bd2efe780f501c0203b53b4e7c3 | 528 | py | Python | code/week11/70.py | tensorbytes/coding | 62168eaf1b451c514be5418dc5ebd3aa9dd263f5 | [
"MIT"
] | 2 | 2021-04-13T09:48:35.000Z | 2021-04-13T09:48:44.000Z | code/week11/70.py | tensorbytes/coding | 62168eaf1b451c514be5418dc5ebd3aa9dd263f5 | [
"MIT"
] | null | null | null | code/week11/70.py | tensorbytes/coding | 62168eaf1b451c514be5418dc5ebd3aa9dd263f5 | [
"MIT"
] | null | null | null | """
回溯算法,会提示超时因为时间复杂度为2的N次方
class Solution:
def climbStairs(self, n: int) -> int:
return self.go(n,0)
def go(self,n,cur) -> int:
if cur == n:
return 1
if cur > n:
return 0
return self.go(n,cur + 1) + self.go(n,cur + 2)
"""
"""
从起点递推到终点
"""
class Solu... | 16 | 54 | 0.467803 | 73 | 528 | 3.369863 | 0.315068 | 0.060976 | 0.085366 | 0.219512 | 0.308943 | 0.308943 | 0.308943 | 0.308943 | 0 | 0 | 0 | 0.0347 | 0.399621 | 528 | 32 | 55 | 16.5 | 0.741325 | 0.535985 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
869bc399bcf740420c3202a48ce8fc67d194b5bb | 2,363 | py | Python | public/utils.py | vepakom/SplitLearning_Inference | 0916d409b8f70b5e2b0c4de5c1da4369137b633f | [
"Apache-2.0"
] | 11 | 2021-07-06T17:45:32.000Z | 2022-03-30T02:31:13.000Z | public/utils.py | vepakom/SplitLearning_Inference | 0916d409b8f70b5e2b0c4de5c1da4369137b633f | [
"Apache-2.0"
] | 23 | 2021-06-15T07:55:45.000Z | 2022-03-31T18:03:33.000Z | public/utils.py | vepakom/SplitLearning_Inference | 0916d409b8f70b5e2b0c4de5c1da4369137b633f | [
"Apache-2.0"
] | 5 | 2021-08-20T13:11:06.000Z | 2022-01-10T12:35:20.000Z | import os
from shutil import copytree, copy2
from glob import glob
import torchvision
import torch
from tensorboardX import SummaryWriter
from sklearn import metrics
def copy_source_code(path):
if not os.path.isdir(path):
os.makedirs(path)
denylist = ["./__pycache__/"]
folders = glo... | 34.246377 | 116 | 0.641134 | 308 | 2,363 | 4.701299 | 0.311688 | 0.020718 | 0.055249 | 0.075967 | 0.228591 | 0.228591 | 0.111878 | 0.111878 | 0.111878 | 0.111878 | 0 | 0.007813 | 0.241642 | 2,363 | 68 | 117 | 34.75 | 0.800223 | 0.261109 | 0 | 0.093023 | 0 | 0 | 0.039039 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.209302 | false | 0.046512 | 0.162791 | 0 | 0.395349 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
869d280699fa8d0a7c15aff8750e17a2472f50ca | 558 | py | Python | web/settings/base/apps.py | vitaliyharchenko/django_template | 41fa00cb0b8be6c5cf67b7a334d4340163255160 | [
"MIT"
] | null | null | null | web/settings/base/apps.py | vitaliyharchenko/django_template | 41fa00cb0b8be6c5cf67b7a334d4340163255160 | [
"MIT"
] | 1 | 2018-02-02T20:25:41.000Z | 2018-02-02T20:25:41.000Z | web/settings/base/apps.py | vitaliyharchenko/django_template | 41fa00cb0b8be6c5cf67b7a334d4340163255160 | [
"MIT"
] | null | null | null | INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
# External libraries
# Markdown
'markdownx',
# Bootstrap
'bootstrap4',
# Our apps
'... | 18.6 | 34 | 0.580645 | 55 | 558 | 5.854545 | 0.545455 | 0.242236 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002387 | 0.249104 | 558 | 29 | 35 | 19.241379 | 0.76611 | 0.086022 | 0 | 0 | 0 | 0 | 0.582178 | 0.19604 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
869dd9ba6ee073b8e6379ed87ab26611c05050ad | 3,472 | py | Python | src/wi/utils/decorators.py | cc1-cloud/cc1 | 8113673fa13b6fe195cea99dedab9616aeca3ae8 | [
"Apache-2.0"
] | 11 | 2015-05-06T14:16:54.000Z | 2022-02-08T23:21:31.000Z | src/wi/utils/decorators.py | fortress-shell/cc1 | 8113673fa13b6fe195cea99dedab9616aeca3ae8 | [
"Apache-2.0"
] | 1 | 2015-10-30T21:08:11.000Z | 2015-10-30T21:08:11.000Z | src/wi/utils/decorators.py | fortress-shell/cc1 | 8113673fa13b6fe195cea99dedab9616aeca3ae8 | [
"Apache-2.0"
] | 5 | 2016-02-12T22:01:38.000Z | 2021-12-06T16:56:54.000Z | # -*- coding: utf-8 -*-
# @COPYRIGHT_begin
#
# Copyright [2010-2014] Institute of Nuclear Physics PAN, Krakow, Poland
#
# 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.apac... | 30.45614 | 84 | 0.659562 | 439 | 3,472 | 5.029613 | 0.350797 | 0.027174 | 0.040761 | 0.025815 | 0.446105 | 0.446105 | 0.446105 | 0.431159 | 0.431159 | 0.368659 | 0 | 0.009466 | 0.239343 | 3,472 | 113 | 85 | 30.725664 | 0.826581 | 0.190092 | 0 | 0.384615 | 0 | 0 | 0.040798 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.134615 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
86a1845c52dbd118419a490c602bb85cf890f3f1 | 3,798 | py | Python | tests/test_pypi.py | ronnathaniel/python-semantic-release | 7f372a464f07525d243b141128cab7f7c6bf8c0a | [
"MIT"
] | 1 | 2021-08-02T06:47:06.000Z | 2021-08-02T06:47:06.000Z | tests/test_pypi.py | Toilal/python-semantic-release | da0ab0c62c4ce2fa0d815e5558aeec1a1e23bc89 | [
"MIT"
] | null | null | null | tests/test_pypi.py | Toilal/python-semantic-release | da0ab0c62c4ce2fa0d815e5558aeec1a1e23bc89 | [
"MIT"
] | null | null | null | import os
import tempfile
from unittest import TestCase
from semantic_release import ImproperConfigurationError
from semantic_release.pypi import upload_to_pypi
from . import mock, wrapped_config_get
class PypiTests(TestCase):
@mock.patch("semantic_release.pypi.run")
@mock.patch.dict(
"os.environ",
... | 33.910714 | 94 | 0.593207 | 443 | 3,798 | 4.794582 | 0.167043 | 0.072034 | 0.056497 | 0.063559 | 0.740113 | 0.687382 | 0.652542 | 0.637947 | 0.579567 | 0.579567 | 0 | 0.004261 | 0.258557 | 3,798 | 111 | 95 | 34.216216 | 0.75 | 0 | 0 | 0.484848 | 0 | 0 | 0.23644 | 0.054502 | 0 | 0 | 0 | 0 | 0.090909 | 1 | 0.090909 | false | 0.070707 | 0.060606 | 0 | 0.161616 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
86abcabf054d19c4ac5ca72027d4789b5cd77d83 | 4,153 | py | Python | tempest/api/compute/v3/admin/test_quotas_negative.py | queria/my-tempest | a9cdee0201bb956c7502fd372dab467b056ba67f | [
"Apache-2.0"
] | null | null | null | tempest/api/compute/v3/admin/test_quotas_negative.py | queria/my-tempest | a9cdee0201bb956c7502fd372dab467b056ba67f | [
"Apache-2.0"
] | null | null | null | tempest/api/compute/v3/admin/test_quotas_negative.py | queria/my-tempest | a9cdee0201bb956c7502fd372dab467b056ba67f | [
"Apache-2.0"
] | 1 | 2018-10-09T06:32:04.000Z | 2018-10-09T06:32:04.000Z | # Copyright 2013 OpenStack Foundation
# Copyright 2014 NEC Corporation
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licens... | 46.144444 | 79 | 0.653744 | 514 | 4,153 | 5.050584 | 0.317121 | 0.052388 | 0.064715 | 0.061633 | 0.459553 | 0.459553 | 0.454931 | 0.454931 | 0.454931 | 0.438752 | 0 | 0.006331 | 0.27739 | 4,153 | 89 | 80 | 46.662921 | 0.858714 | 0.285577 | 0 | 0.396226 | 0 | 0 | 0.022101 | 0 | 0 | 0 | 0 | 0.011236 | 0.075472 | 1 | 0.09434 | false | 0 | 0.056604 | 0 | 0.188679 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
86af37b110a685c560f1a52e3d80cb0b6f9a74ca | 1,045 | py | Python | asteroids/bullet.py | lxndrdagreat/game-dev-with-python | 18ae7a4879ab1e3cce933cbdef17b2f8ce2a9c28 | [
"MIT"
] | 2 | 2019-05-15T16:11:28.000Z | 2019-06-06T13:01:51.000Z | asteroids/bullet.py | lxndrdagreat/game-dev-with-python | 18ae7a4879ab1e3cce933cbdef17b2f8ce2a9c28 | [
"MIT"
] | null | null | null | asteroids/bullet.py | lxndrdagreat/game-dev-with-python | 18ae7a4879ab1e3cce933cbdef17b2f8ce2a9c28 | [
"MIT"
] | null | null | null | import arcade
from utils import ThemeColors
from typing import Tuple
import math
class Bullet:
def __init__(self, position: Tuple[int, int], angle: float):
self.x = position[0]
self.y = position[1]
self.angle_radians = round(math.radians(angle), 2)
self.alive = True
... | 29.027778 | 74 | 0.626794 | 140 | 1,045 | 4.564286 | 0.45 | 0.075117 | 0.075117 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013387 | 0.285167 | 1,045 | 35 | 75 | 29.857143 | 0.842035 | 0.142584 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028571 | 0 | 1 | 0.130435 | false | 0 | 0.173913 | 0 | 0.391304 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
86b1cc8a28971de04640c656e378d3e605caf525 | 1,226 | py | Python | src/c3nav/mapdata/migrations/0024_oneway.py | bate/c3nav | 9a86dd3eaeb3a10af3c5fa869575ed1e9300465a | [
"Apache-2.0"
] | 1 | 2021-07-07T06:16:40.000Z | 2021-07-07T06:16:40.000Z | src/c3nav/mapdata/migrations/0024_oneway.py | 0ki/c3nav | 18fdb34b3fbcf7eb4617794750494cfa16428c54 | [
"Apache-2.0"
] | null | null | null | src/c3nav/mapdata/migrations/0024_oneway.py | 0ki/c3nav | 18fdb34b3fbcf7eb4617794750494cfa16428c54 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10.4 on 2016-12-18 00:17
from __future__ import unicode_literals
import c3nav.mapdata.fields
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('mapdata', '0023_escalatorslope'... | 37.151515 | 166 | 0.611746 | 127 | 1,226 | 5.740157 | 0.488189 | 0.090535 | 0.057613 | 0.090535 | 0.219479 | 0.219479 | 0.219479 | 0.219479 | 0.219479 | 0.219479 | 0 | 0.024973 | 0.248777 | 1,226 | 32 | 167 | 38.3125 | 0.766558 | 0.055465 | 0 | 0 | 1 | 0 | 0.1671 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.16 | 0 | 0.28 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
86b67d1dfbf50175ceb38b54bccb023be36579a8 | 3,079 | py | Python | integration_tests/test_indicators.py | lucienve/callattendant | 2155ff97011c01b941364e1134f285c037de0803 | [
"MIT"
] | null | null | null | integration_tests/test_indicators.py | lucienve/callattendant | 2155ff97011c01b941364e1134f285c037de0803 | [
"MIT"
] | null | null | null | integration_tests/test_indicators.py | lucienve/callattendant | 2155ff97011c01b941364e1134f285c037de0803 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# test_indicators.py
#
# Copyright 2020 Bruce Schubert <bruce@emxsys.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restr... | 32.410526 | 101 | 0.71874 | 402 | 3,079 | 5.39801 | 0.410448 | 0.040553 | 0.035945 | 0.02765 | 0.106912 | 0.083871 | 0.023963 | 0 | 0 | 0 | 0 | 0.011943 | 0.184151 | 3,079 | 94 | 102 | 32.755319 | 0.851911 | 0.432283 | 0 | 0.102041 | 0 | 0 | 0.152503 | 0.04482 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.102041 | null | null | 0.102041 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
86ba6e55e626f96aa5685c2d51d5f7dec7b4ecec | 4,341 | py | Python | snapmerge/home/models.py | R4356th/smerge | 2f2a6a4acfe3903ed4f71d90537f7277248e8b59 | [
"MIT"
] | 13 | 2018-07-16T09:59:55.000Z | 2022-01-27T19:07:17.000Z | snapmerge/home/models.py | R4356th/smerge | 2f2a6a4acfe3903ed4f71d90537f7277248e8b59 | [
"MIT"
] | 55 | 2018-07-16T12:17:58.000Z | 2022-03-17T16:10:30.000Z | snapmerge/home/models.py | R4356th/smerge | 2f2a6a4acfe3903ed4f71d90537f7277248e8b59 | [
"MIT"
] | 4 | 2019-10-10T20:16:49.000Z | 2021-03-12T07:15:50.000Z | from django.db import models
from django.forms import ModelForm
from django.utils.translation import ugettext_lazy as _
from django.conf import settings
from django.core.validators import FileExtensionValidator
from .xmltools import analyze_file, include_sync_button
import uuid
def default_color():
return '#076AA... | 34.181102 | 107 | 0.627044 | 473 | 4,341 | 5.572939 | 0.298097 | 0.039833 | 0.02959 | 0.038695 | 0.096358 | 0.096358 | 0.075873 | 0.050076 | 0.050076 | 0.050076 | 0 | 0.007047 | 0.2481 | 4,341 | 126 | 108 | 34.452381 | 0.800551 | 0.055748 | 0 | 0.154639 | 0 | 0 | 0.105057 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.072165 | false | 0.061856 | 0.072165 | 0.030928 | 0.474227 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
86bc2f0b3e9f874045096df1eb02b51a06da9ce5 | 1,022 | py | Python | Example/feature-3.1.0/tools/bin/normalize.py | MukundhMurthy/NucleicNet | fca09d38b9a70d2c402414df7cc06b9dd2824449 | [
"BSD-3-Clause"
] | 1 | 2021-01-30T18:41:53.000Z | 2021-01-30T18:41:53.000Z | Example/feature-3.1.0/tools/bin/normalize.py | MukundhMurthy/NucleicNet | fca09d38b9a70d2c402414df7cc06b9dd2824449 | [
"BSD-3-Clause"
] | null | null | null | Example/feature-3.1.0/tools/bin/normalize.py | MukundhMurthy/NucleicNet | fca09d38b9a70d2c402414df7cc06b9dd2824449 | [
"BSD-3-Clause"
] | null | null | null | #! /usr/bin/env python
# $Id: normalize.py,v 1.1 2004/11/17 09:33:01 mliang Exp $
# normalizes values to 1.0
import sys,os
import getopt
import fileinput
from Numeric import *
from MLab import *
def eusage():
print "Usage: %s [OPTIONS] [FILENAME...]" % os.path.basename(sys.argv[0])
sys.exit()
def myfmt(obj):... | 22.217391 | 77 | 0.62818 | 154 | 1,022 | 4.168831 | 0.538961 | 0.021807 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029448 | 0.202544 | 1,022 | 45 | 78 | 22.711111 | 0.758282 | 0.100783 | 0 | 0.055556 | 0 | 0 | 0.054585 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.138889 | null | null | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
86bc32ca82c2e10b377b9d9f5431c4544dfae88d | 943 | py | Python | setup.py | Lookyloo/PyLookyloo | ea9f099894284f84fb4bc9e0ef80b0ea99b3274d | [
"BSD-3-Clause"
] | 3 | 2020-09-14T05:20:19.000Z | 2021-04-07T17:15:55.000Z | setup.py | Lookyloo/PyLookyloo | ea9f099894284f84fb4bc9e0ef80b0ea99b3274d | [
"BSD-3-Clause"
] | 7 | 2020-11-24T16:17:52.000Z | 2022-01-22T00:34:57.000Z | setup.py | Lookyloo/PyLookyloo | ea9f099894284f84fb4bc9e0ef80b0ea99b3274d | [
"BSD-3-Clause"
] | 2 | 2020-11-24T14:36:55.000Z | 2021-04-12T13:29:04.000Z | # -*- coding: utf-8 -*-
from setuptools import setup # type: ignore
setup(
name='pylookyloo',
version='1.11-dev',
author='Raphaël Vinot',
author_email='raphael.vinot@circl.lu',
maintainer='Raphaël Vinot',
url='https://github.com/Lookyloo/lookyloo/client',
description='Python client for Lo... | 32.517241 | 69 | 0.625663 | 89 | 943 | 6.58427 | 0.786517 | 0.081911 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008219 | 0.225875 | 943 | 28 | 70 | 33.678571 | 0.794521 | 0.036055 | 0 | 0 | 0 | 0 | 0.582781 | 0.024283 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.04 | 0 | 0.04 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
86bdb1bb06335e966a9a1c8147489d94e66acd28 | 6,000 | py | Python | droidConvert.py | digital-preservation/droid-convert | c5aa01d6ff07c1146bae2d1b314e42107e926ae8 | [
"BSD-3-Clause"
] | 2 | 2019-07-09T16:11:49.000Z | 2021-11-24T05:04:09.000Z | droidConvert.py | digital-preservation/droid-convert | c5aa01d6ff07c1146bae2d1b314e42107e926ae8 | [
"BSD-3-Clause"
] | null | null | null | droidConvert.py | digital-preservation/droid-convert | c5aa01d6ff07c1146bae2d1b314e42107e926ae8 | [
"BSD-3-Clause"
] | 5 | 2018-01-19T12:04:00.000Z | 2021-11-24T05:04:02.000Z | import pandas as pd
import os
#This script is to take a DROID csv export and transform it into the structure required for digital transfer to TNA, it will populate default fields where possible. It gives you the option to select whether your metadata has
#descriptions or not and populate the standard columns as ... | 63.829787 | 375 | 0.726333 | 909 | 6,000 | 4.645765 | 0.270627 | 0.056832 | 0.030784 | 0.025574 | 0.307601 | 0.286289 | 0.264504 | 0.249822 | 0.249822 | 0.214776 | 0 | 0.006701 | 0.179167 | 6,000 | 93 | 376 | 64.516129 | 0.850558 | 0.4835 | 0 | 0.537313 | 0 | 0 | 0.433613 | 0.036303 | 0 | 0 | 0 | 0 | 0.044776 | 0 | null | null | 0.014925 | 0.029851 | null | null | 0.029851 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
86c086c22b81705cd8565d65c301aa275e4dd673 | 489 | py | Python | check_db_connection.py | ndo1989/pythoncourse2020 | 23c6842476c4b5c4e2b1c7a32f26171dfa7a5622 | [
"Apache-2.0"
] | null | null | null | check_db_connection.py | ndo1989/pythoncourse2020 | 23c6842476c4b5c4e2b1c7a32f26171dfa7a5622 | [
"Apache-2.0"
] | null | null | null | check_db_connection.py | ndo1989/pythoncourse2020 | 23c6842476c4b5c4e2b1c7a32f26171dfa7a5622 | [
"Apache-2.0"
] | null | null | null | import pymysql.cursors
from pythoncourse2020.fixture.db import DbFixture
from pythoncourse2020.model.group import Group
db = DbFixture(host="127.0.0.1", name="addressbook", user="root", password="")
try:
l = db.get_contact_in_group(Group(id="340"))
for contact in l:
print(item)
print(len(l))
finall... | 22.227273 | 78 | 0.664622 | 68 | 489 | 4.705882 | 0.514706 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042929 | 0.190184 | 489 | 22 | 79 | 22.227273 | 0.765152 | 0.233129 | 0 | 0 | 0 | 0 | 0.07337 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.181818 | 0.272727 | 0 | 0.272727 | 0.181818 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
86c2bb5b1007a5837cb79c9ee505013d3c774a3d | 674 | py | Python | src/main/migrations/0034_activity_gallery.py | shashankmohabia/gymkhana-master | a0d399d781797a2f63fb81a1ae287714213d068b | [
"MIT"
] | 1 | 2018-08-13T09:11:27.000Z | 2018-08-13T09:11:27.000Z | src/main/migrations/0034_activity_gallery.py | shashankmohabia/gymkhana-master | a0d399d781797a2f63fb81a1ae287714213d068b | [
"MIT"
] | null | null | null | src/main/migrations/0034_activity_gallery.py | shashankmohabia/gymkhana-master | a0d399d781797a2f63fb81a1ae287714213d068b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2017-07-06 16:25
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('photologue', '0011_auto_20170625_1315'),
('main', '... | 29.304348 | 186 | 0.666172 | 82 | 674 | 5.292683 | 0.670732 | 0.0553 | 0.064516 | 0.101382 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06968 | 0.212166 | 674 | 22 | 187 | 30.636364 | 0.747646 | 0.10089 | 0 | 0 | 1 | 0 | 0.232172 | 0.084577 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
86c945cf784bbc33a3c9cc78fb8926b7d5f07dcc | 1,117 | py | Python | xp/tests/task_properties.py | druths/xp | a4f66ae3551fc0b5c66ece816a8276bd7b7e3ccf | [
"Apache-2.0"
] | 46 | 2016-03-05T22:56:04.000Z | 2021-12-27T22:25:08.000Z | xp/tests/task_properties.py | druths/xp | a4f66ae3551fc0b5c66ece816a8276bd7b7e3ccf | [
"Apache-2.0"
] | 15 | 2016-03-05T04:19:00.000Z | 2021-01-29T05:00:24.000Z | xp/tests/task_properties.py | druths/xp | a4f66ae3551fc0b5c66ece816a8276bd7b7e3ccf | [
"Apache-2.0"
] | 11 | 2016-02-22T19:38:41.000Z | 2021-11-06T00:55:01.000Z | """
Copyright 2016 Derek Ruths
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... | 29.394737 | 88 | 0.783348 | 171 | 1,117 | 4.988304 | 0.578947 | 0.07034 | 0.030481 | 0.037515 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011364 | 0.133393 | 1,117 | 37 | 89 | 30.189189 | 0.869835 | 0.493286 | 0 | 0 | 0 | 0 | 0.08079 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.142857 | false | 0 | 0.285714 | 0.071429 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
86cda08b49b22160123458fa84d75d6d8189bfb5 | 984 | py | Python | userbot/plugins/alive.py | keshav12-36/user-bot | dd29f1d540a01036141ec0339c9f17b5304bc657 | [
"MIT"
] | 1 | 2021-12-06T06:21:28.000Z | 2021-12-06T06:21:28.000Z | userbot/plugins/alive.py | keshav12-36/user-bot | dd29f1d540a01036141ec0339c9f17b5304bc657 | [
"MIT"
] | null | null | null | userbot/plugins/alive.py | keshav12-36/user-bot | dd29f1d540a01036141ec0339c9f17b5304bc657 | [
"MIT"
] | 5 | 2020-04-23T12:02:55.000Z | 2021-02-15T06:48:02.000Z | """Check if userbot alive. If you change these, you become the gayest gay such that even the gay world will disown you."""
import asyncio
from telethon import events
from telethon.tl.types import ChannelParticipantsAdmins
from platform import uname
from userbot import ALIVE_NAME
from userbot.utils import admin_cm... | 51.789474 | 123 | 0.668699 | 133 | 984 | 4.917293 | 0.639098 | 0.041284 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020699 | 0.214431 | 984 | 18 | 124 | 54.666667 | 0.825356 | 0.117886 | 0 | 0 | 0 | 0.142857 | 0.435832 | 0.050826 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 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 | 1 | 0 | 0 | 0 | 0 | 1 |
86cde1166ae972221b1b0647f5e430abd1cca56b | 4,101 | py | Python | Extended_Methods/Heuristic_2/2_generate_random_pair_from_bg_thresholding.py | heyuan7676/ts_eQTLs | 62b04f5477183f5c0cb60f21264b3147fd8bd82a | [
"CC-BY-4.0"
] | 19 | 2019-10-02T20:50:08.000Z | 2021-07-21T16:49:21.000Z | Extended_Methods/Heuristic_2/2_generate_random_pair_from_bg_thresholding.py | heyuan7676/ts_eQTLs | 62b04f5477183f5c0cb60f21264b3147fd8bd82a | [
"CC-BY-4.0"
] | 2 | 2020-04-07T10:53:35.000Z | 2021-05-15T15:35:51.000Z | Extended_Methods/Heuristic_2/2_generate_random_pair_from_bg_thresholding.py | heyuan7676/ts_eQTLs | 62b04f5477183f5c0cb60f21264b3147fd8bd82a | [
"CC-BY-4.0"
] | 1 | 2020-09-14T11:40:55.000Z | 2020-09-14T11:40:55.000Z | import os
import sys
import pandas as pd
import numpy as np
from GLOBAL_VAR import *
from collections import Counter
def append_df_change_index(gi_dat, mm, nn, mm_l, nn_l):
try:
df_temp = gi_dat.loc[mm_l, nn_l]
except:
return gi_dat
index_array = [[int(mm)] * len(df_temp), [int(nn)] * len(df_temp)... | 31.790698 | 175 | 0.632285 | 652 | 4,101 | 3.705521 | 0.239264 | 0.039321 | 0.029801 | 0.039321 | 0.226407 | 0.226407 | 0.226407 | 0.226407 | 0.226407 | 0.189156 | 0 | 0.016078 | 0.22653 | 4,101 | 128 | 176 | 32.039063 | 0.745586 | 0.043648 | 0 | 0.186813 | 0 | 0 | 0.136643 | 0.103378 | 0 | 0 | 0 | 0 | 0.010989 | 0 | null | null | 0 | 0.065934 | null | null | 0.032967 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
86ceb66d619c1d2e9c7ee79c717a8ffe8bd519ae | 401 | py | Python | face_count/migrations/0010_auto_20200405_1450.py | reibomaru/face_counter | fcee6a6fd3e996a1fbc0bdc6bb8a881afb0284bf | [
"MIT"
] | 3 | 2020-03-11T17:19:02.000Z | 2020-04-29T04:35:35.000Z | face_count/migrations/0010_auto_20200405_1450.py | reibomaru/face_counter | fcee6a6fd3e996a1fbc0bdc6bb8a881afb0284bf | [
"MIT"
] | 48 | 2020-03-12T02:54:35.000Z | 2020-04-08T05:16:48.000Z | face_count/migrations/0010_auto_20200405_1450.py | reibomaru/face_counter | fcee6a6fd3e996a1fbc0bdc6bb8a881afb0284bf | [
"MIT"
] | null | null | null | # Generated by Django 2.1.1 on 2020-04-05 05:50
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('face_count', '0009_auto_20200405_1436'),
]
operations = [
migrations.AlterField(
model_name='usagelist',
name='list_... | 21.105263 | 57 | 0.605985 | 44 | 401 | 5.363636 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106897 | 0.276808 | 401 | 18 | 58 | 22.277778 | 0.706897 | 0.112219 | 0 | 0 | 1 | 0 | 0.161017 | 0.064972 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
86d4231671bb481d911bb7c8030fbaa655cd79d0 | 6,348 | py | Python | Plugins/UnrealEnginePython/Binaries/Win64/Lib/site-packages/tensorflow/contrib/distribute/python/input_ops.py | JustinACoder/H22-GR3-UnrealAI | 361eb9ef1147f8a2991e5f98c4118cd823184adf | [
"MIT"
] | 6 | 2022-02-04T18:12:24.000Z | 2022-03-21T23:57:12.000Z | Lib/site-packages/tensorflow/contrib/distribute/python/input_ops.py | shfkdroal/Robot-Learning-in-Mixed-Adversarial-and-Collaborative-Settings | 1fa4cd6a566c8745f455fc3d2273208f21f88ced | [
"bzip2-1.0.6"
] | null | null | null | Lib/site-packages/tensorflow/contrib/distribute/python/input_ops.py | shfkdroal/Robot-Learning-in-Mixed-Adversarial-and-Collaborative-Settings | 1fa4cd6a566c8745f455fc3d2273208f21f88ced | [
"bzip2-1.0.6"
] | 1 | 2022-02-08T03:53:23.000Z | 2022-02-08T03:53:23.000Z | # Copyright 2018 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by... | 45.021277 | 81 | 0.684783 | 802 | 6,348 | 5.245636 | 0.314214 | 0.031376 | 0.037081 | 0.02377 | 0.195151 | 0.144996 | 0.117899 | 0.100309 | 0.082719 | 0.082719 | 0 | 0.002489 | 0.240391 | 6,348 | 140 | 82 | 45.342857 | 0.869971 | 0.451481 | 0 | 0.26087 | 0 | 0 | 0.102454 | 0.022393 | 0 | 0 | 0 | 0.014286 | 0 | 1 | 0.028986 | false | 0 | 0.130435 | 0 | 0.275362 | 0.014493 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
86dc569e4feaee5c6e72d657b5dd98dd5f50c69c | 13,370 | py | Python | sdk/python/pulumi_azure_native/storsimple/storage_account_credential.py | sebtelko/pulumi-azure-native | 711ec021b5c73da05611c56c8a35adb0ce3244e4 | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_native/storsimple/storage_account_credential.py | sebtelko/pulumi-azure-native | 711ec021b5c73da05611c56c8a35adb0ce3244e4 | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_native/storsimple/storage_account_credential.py | sebtelko/pulumi-azure-native | 711ec021b5c73da05611c56c8a35adb0ce3244e4 | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
from... | 43.129032 | 456 | 0.6546 | 1,468 | 13,370 | 5.649183 | 0.114441 | 0.068974 | 0.050645 | 0.060774 | 0.673339 | 0.570602 | 0.511033 | 0.443989 | 0.395273 | 0.359339 | 0 | 0.006431 | 0.244054 | 13,370 | 309 | 457 | 43.268608 | 0.814089 | 0.207255 | 0 | 0.354167 | 1 | 0 | 0.160906 | 0.076746 | 0 | 0 | 0 | 0 | 0 | 1 | 0.140625 | false | 0.005208 | 0.041667 | 0 | 0.270833 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
86dfc16696edc8e34d65157e8799fc526c6d214d | 308 | py | Python | src/6/6974.py | youngdaLee/Baekjoon | 7d858d557dbbde6603fe4e8af2891c2b0e1940c0 | [
"MIT"
] | 11 | 2020-09-20T15:17:11.000Z | 2022-03-17T12:43:33.000Z | src/6/6974.py | youngdaLee/Baekjoon | 7d858d557dbbde6603fe4e8af2891c2b0e1940c0 | [
"MIT"
] | 3 | 2021-10-30T07:51:36.000Z | 2022-03-09T05:19:23.000Z | src/6/6974.py | youngdaLee/Baekjoon | 7d858d557dbbde6603fe4e8af2891c2b0e1940c0 | [
"MIT"
] | 13 | 2021-01-21T03:19:08.000Z | 2022-03-28T10:44:58.000Z | """
6974. Long Division
작성자: xCrypt0r
언어: Python 3
사용 메모리: 29,088 KB
소요 시간: 72 ms
해결 날짜: 2020년 11월 26일
"""
def main():
n = int(input())
for _ in range(n):
a, b = map(int, [input(), input()])
print(a // b)
print(a % b)
print()
if __name__ == '__main__':
main() | 14 | 43 | 0.512987 | 48 | 308 | 3.104167 | 0.75 | 0.040268 | 0.09396 | 0.161074 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 0.318182 | 308 | 22 | 44 | 14 | 0.609524 | 0.321429 | 0 | 0 | 0 | 0 | 0.039604 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.111111 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
86e1b0f0a24050060792964dcfc918a7a433c67a | 1,841 | py | Python | examples/run_simple_example_levy_walk.py | ComplexNetTSP/CooperativeNetworking | ce74982820ee25c0e68e321976dd03fcfd952d9a | [
"MIT"
] | 12 | 2017-03-23T03:41:29.000Z | 2021-05-29T03:20:52.000Z | examples/run_simple_example_levy_walk.py | ComplexNetTSP/CooperativeNetworking | ce74982820ee25c0e68e321976dd03fcfd952d9a | [
"MIT"
] | null | null | null | examples/run_simple_example_levy_walk.py | ComplexNetTSP/CooperativeNetworking | ce74982820ee25c0e68e321976dd03fcfd952d9a | [
"MIT"
] | 10 | 2016-01-20T15:28:06.000Z | 2021-06-25T13:52:46.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
# -------------------------------------------------------------------------------
# Copyright (c) 2012 Vincent Gauthier.
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), t... | 37.571429 | 81 | 0.61271 | 244 | 1,841 | 4.540984 | 0.577869 | 0.079422 | 0.023466 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027484 | 0.229223 | 1,841 | 49 | 82 | 37.571429 | 0.753347 | 0.682238 | 0 | 0 | 0 | 0 | 0.014235 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.05 | null | null | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
86e51efbd46812b418d01ef123c825d6801b4707 | 7,164 | py | Python | scripts/data_preparation.py | JaeminBest/melgan-neurips | 924cf5c53543589356f90b1f07fc93f752a3108e | [
"MIT"
] | null | null | null | scripts/data_preparation.py | JaeminBest/melgan-neurips | 924cf5c53543589356f90b1f07fc93f752a3108e | [
"MIT"
] | null | null | null | scripts/data_preparation.py | JaeminBest/melgan-neurips | 924cf5c53543589356f90b1f07fc93f752a3108e | [
"MIT"
] | null | null | null | '''
generate final_train.txt
if custom(-c):
download data from s3, fill folder(--folder)
and then generate final_train.txt and final_val.txt
else:
load data from folder(--folder) and then generate final_train(val).txt
'''
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(_... | 33.633803 | 135 | 0.628699 | 988 | 7,164 | 4.407895 | 0.181174 | 0.019288 | 0.026866 | 0.032147 | 0.473708 | 0.428932 | 0.411481 | 0.380253 | 0.364179 | 0.364179 | 0 | 0.007559 | 0.224456 | 7,164 | 212 | 136 | 33.792453 | 0.776278 | 0.075516 | 0 | 0.403727 | 1 | 0 | 0.104801 | 0.023323 | 0 | 0 | 0 | 0 | 0 | 1 | 0.031056 | false | 0 | 0.080745 | 0 | 0.136646 | 0.074534 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
86e92656eb5f31fb0364362f5762d553b679261d | 17,690 | py | Python | twilio/rest/trusthub/v1/trust_products/trust_products_channel_endpoint_assignment.py | BrimmingDev/twilio-python | 3226b5fed92b3c2ce64f03e6b19fc4792ef7647f | [
"MIT"
] | 1,362 | 2015-01-04T10:25:18.000Z | 2022-03-24T10:07:08.000Z | twilio/rest/trusthub/v1/trust_products/trust_products_channel_endpoint_assignment.py | BrimmingDev/twilio-python | 3226b5fed92b3c2ce64f03e6b19fc4792ef7647f | [
"MIT"
] | 299 | 2015-01-30T09:52:39.000Z | 2022-03-31T23:03:02.000Z | env/lib/python3.9/site-packages/twilio/rest/trusthub/v1/trust_products/trust_products_channel_endpoint_assignment.py | giannicrivello/AudioShack_BE | b50ba91b6904ac069fc37c98a691729932297b6a | [
"MIT"
] | 622 | 2015-01-03T04:43:09.000Z | 2022-03-29T14:11:00.000Z | # coding=utf-8
r"""
This code was generated by
\ / _ _ _| _ _
| (_)\/(_)(_|\/| |(/_ v1.0.0
/ /
"""
from twilio.base import deserialize
from twilio.base import values
from twilio.base.instance_context import InstanceContext
from twilio.base.instance_resource import InstanceResource
from twilio.base... | 41.820331 | 150 | 0.696552 | 1,724 | 17,690 | 6.917633 | 0.12239 | 0.085527 | 0.037733 | 0.036894 | 0.696545 | 0.687825 | 0.667701 | 0.644139 | 0.628543 | 0.591649 | 0 | 0.003826 | 0.231656 | 17,690 | 422 | 151 | 41.919431 | 0.873602 | 0.502544 | 0 | 0.366013 | 1 | 0 | 0.129877 | 0.060483 | 0 | 0 | 0 | 0 | 0 | 1 | 0.183007 | false | 0 | 0.039216 | 0 | 0.405229 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
86e97b2cb25cf24fdeabbdbd392ca0f2afdc651c | 5,550 | py | Python | code/models/CoreMetrics.py | ats0stv/Lisibilite | a2ef6141d52f739f7607c1b59e2c4b182388184d | [
"MIT"
] | 4 | 2019-02-04T22:07:46.000Z | 2020-05-17T20:21:14.000Z | code/models/CoreMetrics.py | ats0stv/Lisibilite | a2ef6141d52f739f7607c1b59e2c4b182388184d | [
"MIT"
] | 34 | 2019-01-29T20:18:50.000Z | 2020-07-04T11:25:11.000Z | code/models/CoreMetrics.py | ats0stv/Lisibilite | a2ef6141d52f739f7607c1b59e2c4b182388184d | [
"MIT"
] | 2 | 2019-02-28T00:09:36.000Z | 2020-03-30T05:41:43.000Z | import logging as LOG
from typing import Dict
from common.Constants import (CHARACTERS, COMPLEX_WORDS, EASY_WORDS, SENTENCES,
SYLLABLES, WORDS)
class CoreMetrics:
def __init__(self):
LOG.debug(f"{__name__} init")
self.totalWords: int = 0
self.totalSentences: ... | 36.038961 | 93 | 0.622703 | 565 | 5,550 | 6.081416 | 0.134513 | 0.041909 | 0.062864 | 0.062864 | 0.272992 | 0.250582 | 0.232829 | 0.185099 | 0.112631 | 0.079453 | 0 | 0.001527 | 0.292252 | 5,550 | 153 | 94 | 36.27451 | 0.873218 | 0.205946 | 0 | 0.064103 | 0 | 0 | 0.236327 | 0.068991 | 0 | 0 | 0 | 0 | 0 | 1 | 0.205128 | false | 0 | 0.038462 | 0.012821 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
86ed4d7505b7ee075497c5d1857e24d130d2df4e | 1,112 | py | Python | fastapi_sqlmodel_typer/routes/security.py | tzengwei/fastapi-sqlmodel-typer | 83895ac87306ff0fae6487526c46918f1dff8c44 | [
"Unlicense"
] | 123 | 2021-09-13T18:39:36.000Z | 2022-03-28T05:59:44.000Z | fastapi_sqlmodel_typer/routes/security.py | tzengwei/fastapi-sqlmodel-typer | 83895ac87306ff0fae6487526c46918f1dff8c44 | [
"Unlicense"
] | 11 | 2021-09-15T09:47:35.000Z | 2022-03-14T21:16:17.000Z | fastapi_sqlmodel_typer/routes/security.py | tzengwei/fastapi-sqlmodel-typer | 83895ac87306ff0fae6487526c46918f1dff8c44 | [
"Unlicense"
] | 10 | 2021-09-15T11:07:36.000Z | 2022-03-24T10:25:24.000Z | from datetime import timedelta
from fastapi import APIRouter, Depends, HTTPException, status
from fastapi.security import OAuth2PasswordRequestForm
from ..config import settings
from ..security import (
Token,
User,
authenticate_user,
create_access_token,
get_user,
)
ACCESS_TOKEN_EXPIRE_MINUTES =... | 28.512821 | 78 | 0.735612 | 127 | 1,112 | 6.15748 | 0.409449 | 0.154731 | 0.065217 | 0.092072 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005476 | 0.178957 | 1,112 | 38 | 79 | 29.263158 | 0.851041 | 0 | 0 | 0 | 0 | 0 | 0.080036 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.137931 | 0.172414 | 0 | 0.206897 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
86ede3c4376ad78214490a4f0f9bf23d0ea04bd3 | 885 | py | Python | utils/preprocessing.py | ashishthomaschempolil/Telco-customer-churn | d2a496a002bdeb85340c3c2dba59bb08004c644e | [
"MIT"
] | null | null | null | utils/preprocessing.py | ashishthomaschempolil/Telco-customer-churn | d2a496a002bdeb85340c3c2dba59bb08004c644e | [
"MIT"
] | null | null | null | utils/preprocessing.py | ashishthomaschempolil/Telco-customer-churn | d2a496a002bdeb85340c3c2dba59bb08004c644e | [
"MIT"
] | null | null | null | import pandas as pd
import numpy as np
import get_data as g
class preprocess():
def __init__(self) -> None:
self.col_to_remove = []
self.get_obj_vars = []
self.get_num_vars = []
def read_data(self, file_name:str)->pd.DataFrame:
"""
Method to read data from the ... | 26.029412 | 64 | 0.550282 | 116 | 885 | 4.051724 | 0.37931 | 0.140426 | 0.046809 | 0.080851 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007092 | 0.362712 | 885 | 34 | 65 | 26.029412 | 0.826241 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.214286 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
86ee212dc66427091e8175b1baf73d60cb1b5f5a | 2,960 | py | Python | examples/generic_associations/table_per_association.py | ContextLogic/sqlalchemy | b7adfe5e4d9baa61169ba79aa5ba8f64f0ff7645 | [
"MIT"
] | 8 | 2017-07-18T18:35:10.000Z | 2022-02-01T19:52:57.000Z | examples/generic_associations/table_per_association.py | RetailArchitects/sqlalchemy | 399a5c96b2fd0e0f2f0cdda7766b31e37454eb2e | [
"MIT"
] | null | null | null | examples/generic_associations/table_per_association.py | RetailArchitects/sqlalchemy | 399a5c96b2fd0e0f2f0cdda7766b31e37454eb2e | [
"MIT"
] | 6 | 2017-07-26T08:51:10.000Z | 2021-03-04T10:16:37.000Z | """table_per_association.py
The HasAddresses mixin will provide a new "address_association" table for
each parent class. The "address" table will be shared
for all parents.
This configuration has the advantage that all Address
rows are in one table, so that the definition of "Address"
can be maintained in one place... | 27.924528 | 73 | 0.598649 | 320 | 2,960 | 5.365625 | 0.3625 | 0.041934 | 0.040186 | 0.025626 | 0.046593 | 0.046593 | 0.046593 | 0.046593 | 0 | 0 | 0 | 0.012231 | 0.309459 | 2,960 | 106 | 74 | 27.924528 | 0.827789 | 0.00473 | 0 | 0.166667 | 0 | 0 | 0.086582 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.045455 | null | null | 0.015152 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
86ee7f0b51b6361d9041f072a97198659466fe0e | 3,561 | py | Python | vdoxa/cli/arguments.py | xames3/vdoxa | 8fa945449bb34447ded0c421214c0252ff523d4a | [
"Apache-2.0"
] | 1 | 2020-02-04T08:18:54.000Z | 2020-02-04T08:18:54.000Z | vdoxa/cli/arguments.py | xames3/vdoxa | 8fa945449bb34447ded0c421214c0252ff523d4a | [
"Apache-2.0"
] | null | null | null | vdoxa/cli/arguments.py | xames3/vdoxa | 8fa945449bb34447ded0c421214c0252ff523d4a | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 XAMES3. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agree... | 39.566667 | 78 | 0.570345 | 376 | 3,561 | 5.321809 | 0.420213 | 0.031484 | 0.05947 | 0.065967 | 0.26037 | 0.26037 | 0.215892 | 0.125937 | 0.125937 | 0.125937 | 0 | 0.004499 | 0.313395 | 3,561 | 89 | 79 | 40.011236 | 0.813906 | 0.338669 | 0 | 0.26087 | 0 | 0 | 0.148292 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0.065217 | 0.065217 | 0 | 0.152174 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
86ee8c1074014633f0b7f8a144bf4da15b8ba0c5 | 1,512 | py | Python | Largest Permutation.py | Shaikh-Nabeel/HackerRankAlgorithms | 3d11fd2c45bd045fa320691c8ac1c89acadc6d8a | [
"Apache-2.0"
] | null | null | null | Largest Permutation.py | Shaikh-Nabeel/HackerRankAlgorithms | 3d11fd2c45bd045fa320691c8ac1c89acadc6d8a | [
"Apache-2.0"
] | null | null | null | Largest Permutation.py | Shaikh-Nabeel/HackerRankAlgorithms | 3d11fd2c45bd045fa320691c8ac1c89acadc6d8a | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Problem Statement
You are given an array of N integers which is a permuation of the first N natural numbers. You can swap any two elements
of the array. You can make at most K swaps. What is the lexicographically largest permutation you can make?
Input Format
The first line of the input c... | 28.528302 | 120 | 0.57209 | 217 | 1,512 | 3.930876 | 0.40553 | 0.03517 | 0.046893 | 0.025791 | 0.28136 | 0.229777 | 0.112544 | 0 | 0 | 0 | 0 | 0.005825 | 0.318783 | 1,512 | 52 | 121 | 29.076923 | 0.82233 | 0.027116 | 0 | 0 | 0 | 0 | 0.033877 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.04 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
86f13104d94fc91c54b01de06e3d5cdc06d42c51 | 11,236 | py | Python | systrace/systrace/tracing_controller.py | tingshao/catapult | a8fe19e0c492472a8ed5710be9077e24cc517c5c | [
"BSD-3-Clause"
] | 138 | 2020-12-09T07:08:43.000Z | 2022-03-30T22:32:09.000Z | systrace/systrace/tracing_controller.py | tingshao/catapult | a8fe19e0c492472a8ed5710be9077e24cc517c5c | [
"BSD-3-Clause"
] | 20 | 2020-04-08T13:50:39.000Z | 2022-03-31T01:01:54.000Z | systrace/systrace/tracing_controller.py | tingshao/catapult | a8fe19e0c492472a8ed5710be9077e24cc517c5c | [
"BSD-3-Clause"
] | 43 | 2020-12-11T09:43:14.000Z | 2022-03-08T12:56:30.000Z | #!/usr/bin/env python
# Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
'''Tracing controller class. This class manages
multiple tracing agents and collects data from all of them. It also
manages the clock ... | 36.245161 | 79 | 0.70639 | 1,408 | 11,236 | 5.463778 | 0.216619 | 0.042246 | 0.037177 | 0.025998 | 0.242428 | 0.193683 | 0.154686 | 0.102431 | 0.068634 | 0.046796 | 0 | 0.000692 | 0.228818 | 11,236 | 309 | 80 | 36.36246 | 0.887132 | 0.105198 | 0 | 0.162651 | 0 | 0 | 0.074833 | 0 | 0 | 0 | 0 | 0.003236 | 0.012048 | 0 | null | null | 0 | 0.054217 | null | null | 0.060241 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
86f27b4ee29820318155e11832fe5419632e7554 | 653 | py | Python | app.py | ccolunga/flask_movie_api | e56ecfd2c482290221256fa3e4876090a5618b94 | [
"MIT"
] | null | null | null | app.py | ccolunga/flask_movie_api | e56ecfd2c482290221256fa3e4876090a5618b94 | [
"MIT"
] | null | null | null | app.py | ccolunga/flask_movie_api | e56ecfd2c482290221256fa3e4876090a5618b94 | [
"MIT"
] | null | null | null | from flask import Flask
from flask_bcrypt import Bcrypt
from flask_jwt_extended import JWTManager
from flask_mail import Mail
from database.db import initialize_db
#monkey patch because there are a issue in the flask-restful extension
import flask.scaffold
flask.helpers._endpoint_from_view_func = flask.scaffold._endpo... | 25.115385 | 80 | 0.828484 | 100 | 653 | 5.17 | 0.41 | 0.087041 | 0.061896 | 0.077369 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114855 | 653 | 25 | 81 | 26.12 | 0.894464 | 0.17611 | 0 | 0 | 0 | 0 | 0.031776 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.470588 | 0 | 0.470588 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
86f360b1c06a3f3e5d3accd0fdbde5e28f03c1dd | 2,790 | py | Python | quiz/migrations/0003_auto_20210109_0958.py | Muntasir-Mahmud/Django-GraphQL-Test | f72905ff078d152e460f0e81dbc075df023ee2aa | [
"MIT"
] | null | null | null | quiz/migrations/0003_auto_20210109_0958.py | Muntasir-Mahmud/Django-GraphQL-Test | f72905ff078d152e460f0e81dbc075df023ee2aa | [
"MIT"
] | null | null | null | quiz/migrations/0003_auto_20210109_0958.py | Muntasir-Mahmud/Django-GraphQL-Test | f72905ff078d152e460f0e81dbc075df023ee2aa | [
"MIT"
] | null | null | null | # Generated by Django 3.1.3 on 2021-01-09 03:58
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('quiz', '0002_auto_20210109_0939'),
]
operations = [
migrations.CreateModel(
name='Answer',
... | 44.285714 | 190 | 0.586738 | 282 | 2,790 | 5.648936 | 0.304965 | 0.069052 | 0.05022 | 0.055242 | 0.43189 | 0.41494 | 0.41494 | 0.367232 | 0.287508 | 0.287508 | 0 | 0.025403 | 0.266308 | 2,790 | 62 | 191 | 45 | 0.752809 | 0.016129 | 0 | 0.446429 | 1 | 0 | 0.139628 | 0.008385 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.035714 | 0 | 0.089286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
86f534399a338c03e9d84460d25a3da7d458f3e0 | 2,711 | py | Python | app.py | rajan-blackboxes/dog-breed-classifier | d82b83e8bc20aad7110277253f2f5948b933c84a | [
"MIT"
] | null | null | null | app.py | rajan-blackboxes/dog-breed-classifier | d82b83e8bc20aad7110277253f2f5948b933c84a | [
"MIT"
] | null | null | null | app.py | rajan-blackboxes/dog-breed-classifier | d82b83e8bc20aad7110277253f2f5948b933c84a | [
"MIT"
] | null | null | null | import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import cv2
import torch
import torchvision
from glob import glob
from models import model_transfer, use_cuda
from PIL import Image
import torchvision.transforms as transforms,ToPILImage
# list of class names by index, i.e. a name can be accessed li... | 30.460674 | 87 | 0.702693 | 388 | 2,711 | 4.770619 | 0.430412 | 0.02269 | 0.018368 | 0.023771 | 0.023771 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028455 | 0.183327 | 2,711 | 89 | 88 | 30.460674 | 0.807588 | 0 | 0 | 0 | 0 | 0 | 0.113873 | 0.030728 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.188679 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
86f56c1502add8d197e51a0e262d3b44a398d56a | 1,012 | py | Python | Problems/TwoSum/python/TwoSum.py | amolofos/kata | 55efb173bbe9f38af724dc9d821f2d4cdc774482 | [
"MIT"
] | null | null | null | Problems/TwoSum/python/TwoSum.py | amolofos/kata | 55efb173bbe9f38af724dc9d821f2d4cdc774482 | [
"MIT"
] | null | null | null | Problems/TwoSum/python/TwoSum.py | amolofos/kata | 55efb173bbe9f38af724dc9d821f2d4cdc774482 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -----------------------------------------------------------------------------
# This is based on https://leetcode.com/problems/maximum-subarray/discuss/581559/Python-Super-Easy-99.9-Speed
# -----------------------------------------------------------------------------
from __future__ import prin... | 30.666667 | 109 | 0.464427 | 111 | 1,012 | 4.171171 | 0.504505 | 0.025918 | 0.047516 | 0.056156 | 0.259179 | 0.259179 | 0.159827 | 0.159827 | 0 | 0 | 0 | 0.025641 | 0.267787 | 1,012 | 32 | 110 | 31.625 | 0.59919 | 0.371542 | 0 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.176471 | 0 | 0.588235 | 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 | 1 | 0 | 0 | 1 |
86f85d37b9892e9e11aa9fa76a678e07b88874e3 | 2,669 | py | Python | tests/unit/test_theme.py | mirecl/python-inquirer | dad24db0005698da3014d8224e7e4ca4fd22de02 | [
"MIT"
] | null | null | null | tests/unit/test_theme.py | mirecl/python-inquirer | dad24db0005698da3014d8224e7e4ca4fd22de02 | [
"MIT"
] | null | null | null | tests/unit/test_theme.py | mirecl/python-inquirer | dad24db0005698da3014d8224e7e4ca4fd22de02 | [
"MIT"
] | null | null | null | import json
import unittest
from blessed import Terminal
from inquirer import themes
from inquirer import errors
class ThemeTests(unittest.TestCase):
def setUp(self):
self.term = Terminal()
self.theme_dict = {
'Question': {
'mark_color': 'red',
'bracke... | 32.950617 | 72 | 0.632821 | 309 | 2,669 | 5.249191 | 0.18123 | 0.128237 | 0.138101 | 0.081998 | 0.64365 | 0.435265 | 0.338471 | 0.338471 | 0.324291 | 0.324291 | 0 | 0.008996 | 0.250281 | 2,669 | 80 | 73 | 33.3625 | 0.801599 | 0 | 0 | 0.181818 | 0 | 0 | 0.155114 | 0 | 0 | 0 | 0 | 0 | 0.424242 | 1 | 0.090909 | false | 0.030303 | 0.075758 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
86ff0cd609096b73727f554ac76e85e6299bebcf | 9,295 | py | Python | o3d/gypbuild.py | rwatson/chromium-capsicum | b03da8e897f897c6ad2cda03ceda217b760fd528 | [
"BSD-3-Clause"
] | 11 | 2015-03-20T04:08:08.000Z | 2021-11-15T15:51:36.000Z | o3d/gypbuild.py | rwatson/chromium-capsicum | b03da8e897f897c6ad2cda03ceda217b760fd528 | [
"BSD-3-Clause"
] | null | null | null | o3d/gypbuild.py | rwatson/chromium-capsicum | b03da8e897f897c6ad2cda03ceda217b760fd528 | [
"BSD-3-Clause"
] | null | null | null | #! /usr/bin/env python
# Copyright 2009 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 31.296296 | 75 | 0.605164 | 1,079 | 9,295 | 5.13531 | 0.269694 | 0.037899 | 0.032485 | 0.025988 | 0.302292 | 0.262949 | 0.257354 | 0.232449 | 0.223606 | 0.205198 | 0 | 0.01135 | 0.270145 | 9,295 | 296 | 76 | 31.402027 | 0.805425 | 0.16482 | 0 | 0.295699 | 0 | 0 | 0.178186 | 0.003208 | 0 | 0 | 0 | 0.003378 | 0 | 0 | null | null | 0 | 0.043011 | null | null | 0.080645 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
81013ef7ef131adfec131ac6f657a3856b7e9356 | 6,995 | py | Python | generate_family_file.py | jkjkjkjkjk/pywikibot-core | f3748c95ea694083ae00534973d0d1dd018a5b43 | [
"MIT"
] | null | null | null | generate_family_file.py | jkjkjkjkjk/pywikibot-core | f3748c95ea694083ae00534973d0d1dd018a5b43 | [
"MIT"
] | null | null | null | generate_family_file.py | jkjkjkjkjk/pywikibot-core | f3748c95ea694083ae00534973d0d1dd018a5b43 | [
"MIT"
] | 1 | 2019-01-19T17:57:23.000Z | 2019-01-19T17:57:23.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""
This script generates a family file from a given URL.
Hackish, etc. Regexps, yes. Sorry, jwz.
"""
from __future__ import (absolute_import, division,
print_function, unicode_literals)
#
# (C) Merlijn van Deen, 2010-2013
# (C) Pywikibot team, 2010-201... | 33.151659 | 86 | 0.511365 | 835 | 6,995 | 4.197605 | 0.279042 | 0.032525 | 0.017974 | 0.015692 | 0.16234 | 0.125535 | 0.087019 | 0.087019 | 0.087019 | 0.073324 | 0 | 0.018427 | 0.332809 | 6,995 | 210 | 87 | 33.309524 | 0.732591 | 0.102788 | 0 | 0.230263 | 1 | 0 | 0.297106 | 0.062379 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032895 | false | 0.013158 | 0.059211 | 0 | 0.098684 | 0.144737 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8101a77f7f408c2d57ce906578cb2308124ed161 | 754 | py | Python | basic/chapter5/cars.py | niyiwei/python-study | c7152306d5cd1d1b4813ce94778e81adce2aa14f | [
"Apache-2.0"
] | null | null | null | basic/chapter5/cars.py | niyiwei/python-study | c7152306d5cd1d1b4813ce94778e81adce2aa14f | [
"Apache-2.0"
] | null | null | null | basic/chapter5/cars.py | niyiwei/python-study | c7152306d5cd1d1b4813ce94778e81adce2aa14f | [
"Apache-2.0"
] | null | null | null | cars = ['audi', 'bmw', 'subaru', 'toyoto']
#使用if判断
for car in cars:
if car == 'bmw':
print(car.upper())
else:
print(car)
#多个判断条件 if xx ==xx and xx == xx
#只有要一个满足使用 if xx ==xx or xx == xx
#检查特定值是否包含在列表中 in 'xx' in xxList
#检查特定值是否不包含在列表中 not in | if user not in bannedUsers
car = 'subaru'
print("Is car... | 13.709091 | 53 | 0.574271 | 133 | 754 | 3.255639 | 0.300752 | 0.036952 | 0.036952 | 0.083141 | 0.191686 | 0.191686 | 0.166282 | 0.166282 | 0.166282 | 0.166282 | 0 | 0.060708 | 0.213528 | 754 | 55 | 54 | 13.709091 | 0.669477 | 0.286472 | 0 | 0.606061 | 0 | 0 | 0.226415 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.484848 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
810319968212348f254ecba3d415e54363de3935 | 17,436 | py | Python | colour/colorimetry/tests/test_lightness.py | gutenzwerg/colour | 299eceb57483213e2544d532a6d3727887e49426 | [
"BSD-3-Clause"
] | 6 | 2019-06-18T18:53:29.000Z | 2021-09-10T21:02:45.000Z | colour/colorimetry/tests/test_lightness.py | jedypod/colour | 24c98dc6e8ac041f8a823a9fce83857faaebc367 | [
"BSD-3-Clause"
] | null | null | null | colour/colorimetry/tests/test_lightness.py | jedypod/colour | 24c98dc6e8ac041f8a823a9fce83857faaebc367 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Defines unit tests for :mod:`colour.colorimetry.lightness` module.
"""
import numpy as np
import unittest
from colour.colorimetry import (lightness_Glasser1958, lightness_Wyszecki1963,
intermediate_lightness_function_CIE1976,
... | 32.898113 | 79 | 0.626118 | 1,911 | 17,436 | 5.4809 | 0.093668 | 0.056807 | 0.084399 | 0.091656 | 0.785469 | 0.781841 | 0.685125 | 0.59958 | 0.510025 | 0.480141 | 0 | 0.139931 | 0.269213 | 17,436 | 529 | 80 | 32.960302 | 0.682075 | 0.185478 | 0 | 0.505376 | 0 | 0 | 0.036928 | 0.013312 | 0 | 0 | 0 | 0 | 0.18638 | 1 | 0.089606 | false | 0 | 0.017921 | 0 | 0.132616 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
810348b57d411fad497bdd289d9492c73f7456cf | 869 | py | Python | pandora/models/bookmark.py | mspencer92/pydora | 5794cad9ddcbb53a75fa996efc52bcedb1624896 | [
"MIT"
] | 56 | 2015-03-09T19:10:58.000Z | 2022-01-26T20:30:16.000Z | pandora/models/bookmark.py | mspencer92/pydora | 5794cad9ddcbb53a75fa996efc52bcedb1624896 | [
"MIT"
] | 65 | 2015-03-16T05:47:27.000Z | 2022-02-01T21:07:52.000Z | pandora/models/bookmark.py | mspencer92/pydora | 5794cad9ddcbb53a75fa996efc52bcedb1624896 | [
"MIT"
] | 27 | 2015-06-22T02:39:55.000Z | 2021-03-19T21:49:19.000Z | from ._base import PandoraModel, Field, DateField
class Bookmark(PandoraModel):
music_token = Field("musicToken")
artist_name = Field("artistName")
art_url = Field("artUrl")
bookmark_token = Field("bookmarkToken")
date_created = DateField("dateCreated")
# song only
sample_url = Field("sa... | 26.333333 | 72 | 0.689298 | 100 | 869 | 5.74 | 0.46 | 0.083624 | 0.083624 | 0.062718 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.207135 | 869 | 32 | 73 | 27.15625 | 0.833091 | 0.010357 | 0 | 0 | 0 | 0 | 0.114219 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.045455 | 0.045455 | 0.772727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
810456cee5f1bc7aaac4fc79ba7b03848a021875 | 443 | py | Python | examples/GuessNumberUsingBreak.py | Ellis0817/Introduction-to-Programming-Using-Python | 1882a2a846162d5ff56d4d56c3940b638ef408bd | [
"MIT"
] | null | null | null | examples/GuessNumberUsingBreak.py | Ellis0817/Introduction-to-Programming-Using-Python | 1882a2a846162d5ff56d4d56c3940b638ef408bd | [
"MIT"
] | 4 | 2019-11-07T12:32:19.000Z | 2020-07-19T14:04:44.000Z | examples/GuessNumberUsingBreak.py | Ellis0817/Introduction-to-Programming-Using-Python | 1882a2a846162d5ff56d4d56c3940b638ef408bd | [
"MIT"
] | 5 | 2019-12-04T15:56:55.000Z | 2022-01-14T06:19:18.000Z | import random
#Generate a random number to be guessed
number = random.randint(0, 100)
print("Guess a magic number between 0 and 100")
while True:
#Prompt the user to guess the number
guess = eval(input("Enter your guess: "))
if guess == number:
print("Yes, the number is " + str(number))
... | 23.315789 | 50 | 0.629797 | 65 | 443 | 4.292308 | 0.538462 | 0.096774 | 0.114695 | 0.114695 | 0.136201 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024922 | 0.275395 | 443 | 18 | 51 | 24.611111 | 0.844237 | 0.164786 | 0 | 0 | 1 | 0 | 0.320652 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8108091b9d67c97a1e542cde90447e314b7036cb | 7,716 | py | Python | housekeeper/housekeeper.py | tuenti/housekeeper | 00ccc51ab29ffcbb1ff4ec2cdc948b4db9dea388 | [
"MIT"
] | 1 | 2015-05-18T23:03:47.000Z | 2015-05-18T23:03:47.000Z | housekeeper/housekeeper.py | jsoriano/housekeeper | 00ccc51ab29ffcbb1ff4ec2cdc948b4db9dea388 | [
"MIT"
] | null | null | null | housekeeper/housekeeper.py | jsoriano/housekeeper | 00ccc51ab29ffcbb1ff4ec2cdc948b4db9dea388 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# Copyright (c) 2012 Tuenti Technologies
# See LICENSE for details
import os
import os.path
import signal
import sys
import daemon
try:
import daemon.pidlockfile as pidlockfile
except:
import daemon.pidfile as pidlockfile
import threading
import time
import socket
class MissingKeyException(E... | 30.619048 | 106 | 0.573095 | 826 | 7,716 | 5.239709 | 0.231235 | 0.033272 | 0.024954 | 0.01756 | 0.112061 | 0.064233 | 0.039279 | 0.021719 | 0 | 0 | 0 | 0.005879 | 0.316615 | 7,716 | 251 | 107 | 30.741036 | 0.814906 | 0.027475 | 0 | 0.146341 | 0 | 0 | 0.085634 | 0.021342 | 0 | 0 | 0 | 0.003984 | 0 | 0 | null | null | 0.019512 | 0.053659 | null | null | 0.004878 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
81099c6d36dd969b314364aae44f58bc68c0ee99 | 1,228 | py | Python | LRUCache.py | pflun/learningAlgorithms | 3101e989488dfc8a56f1bf256a1c03a837fe7d97 | [
"MIT"
] | null | null | null | LRUCache.py | pflun/learningAlgorithms | 3101e989488dfc8a56f1bf256a1c03a837fe7d97 | [
"MIT"
] | null | null | null | LRUCache.py | pflun/learningAlgorithms | 3101e989488dfc8a56f1bf256a1c03a837fe7d97 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# https://aaronice.gitbooks.io/lintcode/content/data_structure/lru_cache.html
# https://www.youtube.com/watch?v=q1Njd3NWvlY
# A solution not using OrderedDict: https://discuss.leetcode.com/topic/14591/python-dict-double-linkedlist
# Heap, logn: https://discuss.leetcode.com/topic/45789/python-sol... | 31.487179 | 106 | 0.629479 | 179 | 1,228 | 4.284916 | 0.480447 | 0.082138 | 0.052151 | 0.059974 | 0.073012 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028939 | 0.240228 | 1,228 | 39 | 107 | 31.487179 | 0.79314 | 0.42671 | 0 | 0.074074 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.037037 | null | null | 0.074074 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
810ac3bcb36eef1008b9b0cabd8b036d97509ebe | 2,028 | py | Python | biblary/forms.py | sphuber/biblary | 557b5a577a62e17983765e577d17a45bc72051b8 | [
"MIT"
] | null | null | null | biblary/forms.py | sphuber/biblary | 557b5a577a62e17983765e577d17a45bc72051b8 | [
"MIT"
] | null | null | null | biblary/forms.py | sphuber/biblary | 557b5a577a62e17983765e577d17a45bc72051b8 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Module with form and form field definitions."""
from django import forms
from .bibliography.storage import FileType
__all__ = ('BibliographyUploadFileForm', 'BibliographyUploadEntryForm')
class FileTypeField(forms.TypedChoiceField):
"""Form field that provides a choice of a :class:`bi... | 40.56 | 120 | 0.696746 | 243 | 2,028 | 5.703704 | 0.411523 | 0.036075 | 0.069264 | 0.058442 | 0.088023 | 0.031746 | 0 | 0 | 0 | 0 | 0 | 0.000609 | 0.189842 | 2,028 | 49 | 121 | 41.387755 | 0.84297 | 0.480276 | 0 | 0 | 0 | 0 | 0.128866 | 0.054639 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.111111 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
8110789e40d94b5e52ab12f308d69321075a711b | 669 | py | Python | apps/alvo/models.py | dahn94/django_map | df0a292c954076fc45aa05d75c956e7e531d5d86 | [
"MIT"
] | null | null | null | apps/alvo/models.py | dahn94/django_map | df0a292c954076fc45aa05d75c956e7e531d5d86 | [
"MIT"
] | null | null | null | apps/alvo/models.py | dahn94/django_map | df0a292c954076fc45aa05d75c956e7e531d5d86 | [
"MIT"
] | null | null | null | from django.db import models
import uuid
class Alvo(models.Model):
identificador = models.UUIDField(verbose_name='UUID', default=uuid.uuid4, unique=True, primary_key=True)
nome = models.CharField(max_length=30, verbose_name='Nome do Alvo')
latitude = models.DecimalField(max_digits=10, decimal_places=6, v... | 44.6 | 127 | 0.753363 | 93 | 669 | 5.215054 | 0.548387 | 0.113402 | 0.086598 | 0.11134 | 0.317526 | 0.22268 | 0.22268 | 0.22268 | 0.22268 | 0.22268 | 0 | 0.042589 | 0.122571 | 669 | 14 | 128 | 47.785714 | 0.783646 | 0 | 0 | 0 | 0 | 0 | 0.158445 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.2 | 0.1 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
8112fa382635ae7ef7ca641b08d31d857c41e55a | 1,060 | py | Python | setup.py | plivo/django-countries | ef2829236f25780f80162f6b67cec1fbf84d2a1f | [
"BSD-3-Clause"
] | null | null | null | setup.py | plivo/django-countries | ef2829236f25780f80162f6b67cec1fbf84d2a1f | [
"BSD-3-Clause"
] | null | null | null | setup.py | plivo/django-countries | ef2829236f25780f80162f6b67cec1fbf84d2a1f | [
"BSD-3-Clause"
] | 2 | 2016-06-15T11:39:28.000Z | 2020-11-12T10:19:54.000Z | from setuptools import setup, find_packages
setup(
name='django-countries',
version=__import__('countries').__version__,
description='Provides various Django utilities for a complete list of world countries.',
long_description=open('docs/overview.txt').read(),
# Get more strings from http://www.pyt... | 37.857143 | 92 | 0.670755 | 116 | 1,060 | 5.974138 | 0.741379 | 0.034632 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002361 | 0.200943 | 1,060 | 27 | 93 | 39.259259 | 0.815821 | 0.114151 | 0 | 0 | 0 | 0 | 0.497863 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.08 | 0 | 0.08 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
81158212b3107d0c09fb9b8bb1cd722626482dc8 | 1,769 | py | Python | src/datahub/common/date_range.py | project-origin/datahub-service | 0c3f27ee4fa0381ce3147f1fffef1108f13dc2c2 | [
"MIT"
] | 1 | 2021-04-23T08:19:49.000Z | 2021-04-23T08:19:49.000Z | src/datahub/common/date_range.py | project-origin/datahub-service | 0c3f27ee4fa0381ce3147f1fffef1108f13dc2c2 | [
"MIT"
] | 1 | 2021-02-10T02:28:52.000Z | 2021-02-10T02:28:52.000Z | src/datahub/common/date_range.py | project-origin/datahub-service | 0c3f27ee4fa0381ce3147f1fffef1108f13dc2c2 | [
"MIT"
] | null | null | null | from datetime import datetime
from dateutil.relativedelta import relativedelta
from .models import SummaryResolution
class LabelRange(object):
"""
Generates an ordered list of labels each corresponding to a period
of time (defined by its begin, end, and the "resolution" parameter).
For example, prov... | 27.640625 | 72 | 0.619559 | 194 | 1,769 | 5.57732 | 0.386598 | 0.007394 | 0.02403 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037209 | 0.270774 | 1,769 | 63 | 73 | 28.079365 | 0.80155 | 0.293386 | 0 | 0 | 1 | 0 | 0.024957 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.09375 | false | 0 | 0.09375 | 0.03125 | 0.34375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
811b201f3f9603f6e79a2d1f4a3200d9c7e8042d | 4,728 | py | Python | Data Generation/multichannel_mixture_file_creation.py | furkanarius/Multichannel-Speech-Enhancement-with-Deep-Neural-Networks | 8d6905e0a753af5ff522655810d6d1dac76a7dc1 | [
"MIT"
] | 4 | 2020-10-29T20:59:39.000Z | 2021-09-13T02:32:00.000Z | Data Generation/multichannel_mixture_file_creation.py | furkanarius/Multichannel-Speech-Enhancement-with-Deep-Neural-Networks | 8d6905e0a753af5ff522655810d6d1dac76a7dc1 | [
"MIT"
] | null | null | null | Data Generation/multichannel_mixture_file_creation.py | furkanarius/Multichannel-Speech-Enhancement-with-Deep-Neural-Networks | 8d6905e0a753af5ff522655810d6d1dac76a7dc1 | [
"MIT"
] | null | null | null | '''
This code generates wav files with 4 channels.
It contains noise and audio with randomly selected locations
for room, noise and speech source.
'''
import time
import numpy as np
import pyroomacoustics as pra
from scipy.io import wavfile
import scipy
import os, random
import librosa
import pyloudnorm
from pathlib im... | 37.52381 | 103 | 0.65736 | 732 | 4,728 | 4.002732 | 0.218579 | 0.015017 | 0.014334 | 0.060068 | 0.325597 | 0.27884 | 0.237201 | 0.182253 | 0.179181 | 0.169283 | 0 | 0.02818 | 0.211929 | 4,728 | 125 | 104 | 37.824 | 0.758186 | 0.157572 | 0 | 0.094118 | 1 | 0 | 0.027813 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.011765 | false | 0 | 0.117647 | 0.011765 | 0.141176 | 0.011765 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8120e201eb91e81fdc78192ba6c8a643c641bf4d | 1,310 | py | Python | api/serializers.py | curioswati/e-library | 6d045127759ed8128cda6a0ca6836d9dba84ffca | [
"MIT"
] | null | null | null | api/serializers.py | curioswati/e-library | 6d045127759ed8128cda6a0ca6836d9dba84ffca | [
"MIT"
] | null | null | null | api/serializers.py | curioswati/e-library | 6d045127759ed8128cda6a0ca6836d9dba84ffca | [
"MIT"
] | null | null | null | from flask_marshmallow import Marshmallow
from marshmallow import Schema, post_load
from api.models import Book, Transaction, User
ma = Marshmallow()
class ResponseSchema(Schema):
class Meta:
fields = ('url', )
class BookSchema(ma.SQLAlchemyAutoSchema):
'''
Serializes book from and to DB.
... | 20.793651 | 70 | 0.646565 | 150 | 1,310 | 5.526667 | 0.28 | 0.038601 | 0.115802 | 0.039807 | 0.332931 | 0.332931 | 0.177322 | 0.147165 | 0.147165 | 0.147165 | 0 | 0 | 0.237405 | 1,310 | 62 | 71 | 21.129032 | 0.82983 | 0.072519 | 0 | 0.285714 | 0 | 0 | 0.029085 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085714 | false | 0 | 0.085714 | 0.085714 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
81263e49867e73a153bcc9e179df245494344217 | 2,954 | py | Python | portal/apps/cartelera/views.py | Artis-Physis/utopia-cms | 5cb8d941d0b2df53fddc566a52e9d3baee4a007e | [
"BSD-3-Clause"
] | 8 | 2020-12-15T17:11:08.000Z | 2021-12-13T22:08:33.000Z | portal/apps/cartelera/views.py | Artis-Physis/utopia-cms | 5cb8d941d0b2df53fddc566a52e9d3baee4a007e | [
"BSD-3-Clause"
] | 28 | 2020-12-15T17:34:03.000Z | 2022-02-01T04:09:10.000Z | portal/apps/cartelera/views.py | Artis-Physis/utopia-cms | 5cb8d941d0b2df53fddc566a52e9d3baee4a007e | [
"BSD-3-Clause"
] | 7 | 2020-12-15T19:59:17.000Z | 2021-11-24T16:47:06.000Z | from django.conf import settings
from django.http import HttpResponse
from django.views.decorators.cache import never_cache
from django.contrib.admin.views.decorators import staff_member_required
from django.shortcuts import get_object_or_404, render
from models import Pelicula, ObraTeatro, Evento, Cine, CategoriaEven... | 36.02439 | 119 | 0.745091 | 375 | 2,954 | 5.656 | 0.312 | 0.042433 | 0.071664 | 0.105611 | 0.30363 | 0.235738 | 0.094295 | 0.094295 | 0.052805 | 0 | 0 | 0.00838 | 0.151659 | 2,954 | 81 | 120 | 36.469136 | 0.837989 | 0.109682 | 0 | 0.241379 | 0 | 0 | 0.177171 | 0.11299 | 0 | 0 | 0 | 0.012346 | 0 | 1 | 0.137931 | false | 0 | 0.103448 | 0 | 0.396552 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
812aadbe3b5314a31c397d5408c31f2ffeff619c | 701 | py | Python | v1/teams/migrations/0008_auto_20210219_0551.py | buckyroberts/Website-API | e74d202a41533c7622acbe12c793d047d44012ad | [
"MIT"
] | 64 | 2020-10-02T02:58:06.000Z | 2022-01-29T20:00:50.000Z | v1/teams/migrations/0008_auto_20210219_0551.py | buckyroberts/Website-API | e74d202a41533c7622acbe12c793d047d44012ad | [
"MIT"
] | 93 | 2020-10-04T22:53:46.000Z | 2022-03-05T18:17:46.000Z | v1/teams/migrations/0008_auto_20210219_0551.py | buckyroberts/Website-API | e74d202a41533c7622acbe12c793d047d44012ad | [
"MIT"
] | 21 | 2020-10-11T14:16:13.000Z | 2021-11-09T17:50:25.000Z | # Generated by Django 3.1.6 on 2021-02-19 05:51
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('teams', '0007_slackchannel'),
]
operations = [
migrations.AlterModelOptions(
name='slackchannel... | 29.208333 | 152 | 0.633381 | 74 | 701 | 5.878378 | 0.621622 | 0.055172 | 0.064368 | 0.101149 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035448 | 0.235378 | 701 | 23 | 153 | 30.478261 | 0.776119 | 0.064194 | 0 | 0.117647 | 1 | 0 | 0.201835 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.117647 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8130e751ac769cad6bac41fba9baca8e7c0f61aa | 470 | py | Python | bounties_api/std_bounties/migrations/0011_fulfillment_url.py | tenthirtyone/BountiesAPI | 2bb449a947d987072be24633ba36fbd67c0ab29b | [
"MIT"
] | 45 | 2018-03-24T21:37:59.000Z | 2021-11-12T11:53:04.000Z | bounties_api/std_bounties/migrations/0011_fulfillment_url.py | tenthirtyone/BountiesAPI | 2bb449a947d987072be24633ba36fbd67c0ab29b | [
"MIT"
] | 192 | 2018-03-15T22:42:51.000Z | 2022-02-12T11:42:20.000Z | bounties_api/std_bounties/migrations/0011_fulfillment_url.py | tenthirtyone/BountiesAPI | 2bb449a947d987072be24633ba36fbd67c0ab29b | [
"MIT"
] | 27 | 2018-03-23T17:12:27.000Z | 2021-12-06T02:21:26.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.14 on 2018-08-11 15:29
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('std_bounties', '0010_auto_20180803_0051'),
]
operations = [
migrations.Add... | 22.380952 | 63 | 0.625532 | 53 | 470 | 5.339623 | 0.830189 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106017 | 0.257447 | 470 | 20 | 64 | 23.5 | 0.704871 | 0.146809 | 0 | 0 | 1 | 0 | 0.123116 | 0.057789 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
813612dd9313d72e5a08f7b223bb8efc7d4ef331 | 254 | py | Python | sms/apps/customers/admin.py | vyshakTs/STORE_MANAGEMENT_SYSTEM | b6b82a02c0b512083c35a8656e191436552569a9 | [
"CC0-1.0"
] | null | null | null | sms/apps/customers/admin.py | vyshakTs/STORE_MANAGEMENT_SYSTEM | b6b82a02c0b512083c35a8656e191436552569a9 | [
"CC0-1.0"
] | null | null | null | sms/apps/customers/admin.py | vyshakTs/STORE_MANAGEMENT_SYSTEM | b6b82a02c0b512083c35a8656e191436552569a9 | [
"CC0-1.0"
] | null | null | null | from django.contrib import admin
from .models import CustomerProfile
# Register your models here.
@admin.register(CustomerProfile)
class CustomerProfileAdmin(admin.ModelAdmin):
list_display = [
'user',
'phone_no',
'dob',
] | 19.538462 | 45 | 0.692913 | 26 | 254 | 6.692308 | 0.730769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.212598 | 254 | 13 | 46 | 19.538462 | 0.87 | 0.102362 | 0 | 0 | 0 | 0 | 0.066079 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.444444 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
81389e7df9104d38e47d903e67197304fc70a0f5 | 779 | py | Python | utils/mean_values.py | SivagamiNambi/Pytorch3d | ca27d69bd53a89649490cee66164ba2e733835b5 | [
"Apache-2.0"
] | 162 | 2018-05-18T09:06:45.000Z | 2022-03-02T10:11:55.000Z | utils/mean_values.py | SivagamiNambi/Pytorch3d | ca27d69bd53a89649490cee66164ba2e733835b5 | [
"Apache-2.0"
] | 9 | 2018-09-02T16:39:06.000Z | 2021-11-01T19:18:35.000Z | utils/mean_values.py | SivagamiNambi/Pytorch3d | ca27d69bd53a89649490cee66164ba2e733835b5 | [
"Apache-2.0"
] | 30 | 2018-11-28T13:01:44.000Z | 2022-03-07T14:23:02.000Z | # Source: https://github.com/kenshohara/3D-ResNets-PyTorch/blob/master/mean.py
def get_mean(norm_value=255, dataset='activitynet'):
# Below values are in RGB order
assert dataset in ['activitynet', 'kinetics', 'ucf101']
if dataset == 'activitynet':
return [114.7748/norm_value, 107.7354/norm_value... | 43.277778 | 89 | 0.712452 | 111 | 779 | 4.855856 | 0.54955 | 0.233766 | 0.044527 | 0.074212 | 0.12616 | 0.12616 | 0.12616 | 0 | 0 | 0 | 0 | 0.191424 | 0.161746 | 779 | 18 | 90 | 43.277778 | 0.633997 | 0.228498 | 0 | 0 | 0 | 0 | 0.102178 | 0 | 0 | 0 | 0 | 0 | 0.1 | 1 | 0.2 | false | 0 | 0 | 0.1 | 0.6 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
813eb5785e7564f2575e726b025d14f3c515976a | 3,921 | py | Python | rgdsnatch.py | wcmckee/niketa | 299daf5e7076e771a9db615d8d954c57a2855827 | [
"MIT"
] | null | null | null | rgdsnatch.py | wcmckee/niketa | 299daf5e7076e771a9db615d8d954c57a2855827 | [
"MIT"
] | null | null | null | rgdsnatch.py | wcmckee/niketa | 299daf5e7076e771a9db615d8d954c57a2855827 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# <nbformat>3.0</nbformat>
# <headingcell level=4>
# rgdsnatch: script to get post data from RedditGetsDrawn and post to artcontroldrawsyou
# <codecell>
import os
import random
import requests
import re
import json
import praw
# <codecell>
os.chdir('/home/pi/rgd')
# <codecell>
r = praw.R... | 11.774775 | 88 | 0.6228 | 450 | 3,921 | 5.395556 | 0.3 | 0.025947 | 0.019769 | 0.019769 | 0.096376 | 0.061779 | 0.061779 | 0.061779 | 0.037068 | 0 | 0 | 0.004843 | 0.21015 | 3,921 | 332 | 89 | 11.810241 | 0.779141 | 0.459577 | 0 | 0.08 | 0 | 0 | 0.087456 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.106667 | null | null | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8143aa6b9bb7cb5532354e81e334316f35179c6b | 427 | py | Python | covid_19/users_app/urls.py | MikePolyakov/djanjo_project | 4d80cac9142bacdaa91b5f7be0c7377a365c3db9 | [
"MIT"
] | null | null | null | covid_19/users_app/urls.py | MikePolyakov/djanjo_project | 4d80cac9142bacdaa91b5f7be0c7377a365c3db9 | [
"MIT"
] | 6 | 2021-06-04T23:11:44.000Z | 2022-03-12T00:29:55.000Z | covid_19/users_app/urls.py | id2k1149/django_project | 4d80cac9142bacdaa91b5f7be0c7377a365c3db9 | [
"MIT"
] | null | null | null | from django.urls import path
from users_app import views
from django.contrib.auth.views import LogoutView
app_name = 'users_app'
urlpatterns = [
path('login/', views.UserLoginView.as_view(), name='login'),
path('logout/', LogoutView.as_view(), name='logout'),
path('register/', views.UserCreateView.as_view... | 32.846154 | 82 | 0.723653 | 55 | 427 | 5.454545 | 0.418182 | 0.08 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114754 | 427 | 12 | 83 | 35.583333 | 0.793651 | 0 | 0 | 0 | 0 | 0 | 0.17096 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.1 | 0.3 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
d48dfccd70db8411fec0a456be3448d4557c406e | 756 | py | Python | report.py | w84death/temp-hum-reporter | b971011198e6208cfe4a669f91ff516e1eb9bd3f | [
"MIT"
] | null | null | null | report.py | w84death/temp-hum-reporter | b971011198e6208cfe4a669f91ff516e1eb9bd3f | [
"MIT"
] | null | null | null | report.py | w84death/temp-hum-reporter | b971011198e6208cfe4a669f91ff516e1eb9bd3f | [
"MIT"
] | null | null | null | import microdotphat as dot
import Adafruit_DHT
import time
sensor = Adafruit_DHT.DHT11
pin = 23
dot.clear()
dot.set_rotate180(False)
dot.write_string('Hello_', kerning=False)
dot.show()
time.sleep(3)
dot.write_string(' P1X ', kerning=False)
dot.show()
time.sleep(1)
while True:
dot.write_string('>LOAD<', kerning=F... | 19.384615 | 61 | 0.691799 | 123 | 756 | 4.154472 | 0.373984 | 0.109589 | 0.164384 | 0.223092 | 0.277887 | 0.277887 | 0.113503 | 0 | 0 | 0 | 0 | 0.037559 | 0.154762 | 756 | 38 | 62 | 19.894737 | 0.762128 | 0 | 0 | 0.25 | 0 | 0 | 0.055556 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.09375 | 0 | 0.09375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d48ec33e9e87690a552461b6a90d6145aa4f8134 | 13,198 | py | Python | dcn/dataset/pascal_voc_eval.py | necla-ml/Deformable-ConvNets-py3 | 15f14079aacb6e5ef042c5e3a079db1569294529 | [
"MIT"
] | 1 | 2022-03-20T13:58:58.000Z | 2022-03-20T13:58:58.000Z | dcn/dataset/pascal_voc_eval.py | necla-ml/Deformable-ConvNets-py3 | 15f14079aacb6e5ef042c5e3a079db1569294529 | [
"MIT"
] | null | null | null | dcn/dataset/pascal_voc_eval.py | necla-ml/Deformable-ConvNets-py3 | 15f14079aacb6e5ef042c5e3a079db1569294529 | [
"MIT"
] | 1 | 2022-03-20T13:59:25.000Z | 2022-03-20T13:59:25.000Z | # --------------------------------------------------------
# Deformable Convolutional Networks
# Copyright (c) 2017 Microsoft
# Licensed under The Apache-2.0 License [see LICENSE for details]
# Modified by Haozhi Qi, from py-faster-rcnn (https://github.com/rbgirshick/py-faster-rcnn)
# ----------------------------------... | 36.258242 | 124 | 0.583725 | 1,833 | 13,198 | 4.020185 | 0.18767 | 0.024427 | 0.007328 | 0.008685 | 0.150767 | 0.106663 | 0.073823 | 0.056181 | 0.046411 | 0.046411 | 0 | 0.018882 | 0.289741 | 13,198 | 363 | 125 | 36.358127 | 0.767229 | 0.093272 | 0 | 0.096774 | 0 | 0 | 0.041796 | 0 | 0 | 0 | 0 | 0 | 0.004032 | 0 | null | null | 0 | 0.028226 | null | null | 0.016129 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d48fd940c8c24f307df47785e921d21df062cfa7 | 4,969 | py | Python | spresso/controller/grant/authentication/core.py | lujung/python-spresso | 32e0229abe9e18bbbe487184645d66ed1ed95a05 | [
"MIT"
] | null | null | null | spresso/controller/grant/authentication/core.py | lujung/python-spresso | 32e0229abe9e18bbbe487184645d66ed1ed95a05 | [
"MIT"
] | 1 | 2017-03-01T20:10:56.000Z | 2017-03-01T20:10:56.000Z | spresso/controller/grant/authentication/core.py | lujung/python-spresso | 32e0229abe9e18bbbe487184645d66ed1ed95a05 | [
"MIT"
] | null | null | null | import spresso.controller.grant.authentication.forward
import spresso.controller.grant.authentication.identity_provider
import spresso.controller.grant.authentication.relying_party
from spresso.controller.grant.authentication.config.forward import \
Forward
from spresso.controller.grant.authentication.config.identi... | 43.973451 | 78 | 0.659489 | 482 | 4,969 | 6.585062 | 0.122407 | 0.10397 | 0.110901 | 0.170132 | 0.760555 | 0.694077 | 0.534342 | 0.50063 | 0.316635 | 0.248582 | 0 | 0 | 0.258201 | 4,969 | 112 | 79 | 44.366071 | 0.861096 | 0 | 0 | 0.347368 | 0 | 0 | 0.020527 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.073684 | 0 | 0.315789 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d4908c8a96c609b3ec033130bbcd0271a30b7389 | 416 | py | Python | tests/test_templatetags.py | siht/wagtail-resume | 4992c301fbb8ceb8a71c34655ee24c457d3404df | [
"MIT"
] | 44 | 2019-12-27T16:49:19.000Z | 2022-03-23T08:09:57.000Z | tests/test_templatetags.py | siht/wagtail-resume | 4992c301fbb8ceb8a71c34655ee24c457d3404df | [
"MIT"
] | 44 | 2020-01-20T21:51:39.000Z | 2022-02-11T21:58:53.000Z | tests/test_templatetags.py | siht/wagtail-resume | 4992c301fbb8ceb8a71c34655ee24c457d3404df | [
"MIT"
] | 12 | 2020-02-03T06:39:07.000Z | 2021-07-02T08:57:18.000Z | from wagtail_resume.templatetags.wagtail_resume_extras import space_to_plus
def test_space_to_plus():
font = space_to_plus("Open Sans")
font_url = (
f"https://fonts.googleapis.com/css?family={font}|Roboto+Condensed&display=swap"
)
assert (
font_url
== "https://fonts.googleapis... | 29.714286 | 125 | 0.699519 | 56 | 416 | 4.982143 | 0.571429 | 0.075269 | 0.11828 | 0.164875 | 0.229391 | 0.229391 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173077 | 416 | 13 | 126 | 32 | 0.811047 | 0.069712 | 0 | 0 | 0 | 0.2 | 0.425974 | 0 | 0 | 0 | 0 | 0 | 0.1 | 1 | 0.1 | false | 0 | 0.1 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d498f95da372086cbde8bb3ad1448a5d12ce9c1f | 5,882 | py | Python | db_engine.py | calcorum/paper-domo | 16a661854983236b89865c427837168941ff581d | [
"MIT"
] | null | null | null | db_engine.py | calcorum/paper-domo | 16a661854983236b89865c427837168941ff581d | [
"MIT"
] | null | null | null | db_engine.py | calcorum/paper-domo | 16a661854983236b89865c427837168941ff581d | [
"MIT"
] | null | null | null | import random
from peewee import *
db = SqliteDatabase('pd_test.db')
class Current(Model):
season = IntegerField(default=1)
week = IntegerField(default=1)
packlimit = IntegerField(default=8)
class Meta:
database = db
class Rarity(Model):
value = IntegerField()
name... | 28.553398 | 116 | 0.621387 | 624 | 5,882 | 5.727564 | 0.216346 | 0.170118 | 0.042809 | 0.047846 | 0.175713 | 0.113039 | 0.062955 | 0.039731 | 0.023503 | 0 | 0 | 0.025888 | 0.277627 | 5,882 | 205 | 117 | 28.692683 | 0.815251 | 0 | 0 | 0.290909 | 0 | 0 | 0.04756 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.072727 | false | 0 | 0.012121 | 0.042424 | 0.806061 | 0.006061 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
d49ce357c507623309c86a579690d80a920a909b | 2,334 | py | Python | application/api/admin.py | MickeyPa/soen344 | a9632dc36d23a4eba5bb9c943c9ae75ecc4811bd | [
"MIT"
] | null | null | null | application/api/admin.py | MickeyPa/soen344 | a9632dc36d23a4eba5bb9c943c9ae75ecc4811bd | [
"MIT"
] | null | null | null | application/api/admin.py | MickeyPa/soen344 | a9632dc36d23a4eba5bb9c943c9ae75ecc4811bd | [
"MIT"
] | 2 | 2019-06-04T20:09:14.000Z | 2019-06-04T20:15:32.000Z | '''
This file documents the api routes for admin-related events.
'''
from flask import Flask, Blueprint, redirect, render_template, url_for, session, request, logging
from index import app
from application.services import AdminService
from application.util import *
from passlib.hash import sha256_crypt
from applicati... | 30.311688 | 97 | 0.716367 | 301 | 2,334 | 5.531561 | 0.385382 | 0.021622 | 0.038438 | 0.043243 | 0.096697 | 0.078078 | 0.078078 | 0.078078 | 0.078078 | 0.078078 | 0 | 0.002024 | 0.153385 | 2,334 | 76 | 98 | 30.710526 | 0.840587 | 0.256213 | 0 | 0.217391 | 0 | 0 | 0.184364 | 0.014002 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065217 | false | 0.065217 | 0.152174 | 0.021739 | 0.282609 | 0.065217 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
d4a932ffb641151df00b59bbe961483530d6a1e6 | 982 | py | Python | icontract/__init__.py | dhollman/icontract | d26913369fd41fc4d439cd2226806e46e4fd27a5 | [
"MIT"
] | null | null | null | icontract/__init__.py | dhollman/icontract | d26913369fd41fc4d439cd2226806e46e4fd27a5 | [
"MIT"
] | null | null | null | icontract/__init__.py | dhollman/icontract | d26913369fd41fc4d439cd2226806e46e4fd27a5 | [
"MIT"
] | null | null | null | """Decorate functions with contracts."""
# pylint: disable=invalid-name
# pylint: disable=protected-access
# pylint: disable=wrong-import-position
# We need to explicitly assign the aliases instead of using
# ``from ... import ... as ...`` statements since mypy complains
# that the module icontract lacks these import... | 29.757576 | 87 | 0.806517 | 115 | 982 | 6.747826 | 0.53913 | 0.096649 | 0.06701 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00905 | 0.099796 | 982 | 32 | 88 | 30.6875 | 0.868778 | 0.406314 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3125 | 0 | 0.3125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
d4ab7af055f5fca380c83b7c8ed44c3f6a725ba3 | 2,851 | py | Python | networkapi/grupo/resource/GroupUserGetByIdResource.py | brunodevel/GloboNetworkAPI | ea8eebc0337636f9250e628cc392514934db8edd | [
"Apache-2.0"
] | null | null | null | networkapi/grupo/resource/GroupUserGetByIdResource.py | brunodevel/GloboNetworkAPI | ea8eebc0337636f9250e628cc392514934db8edd | [
"Apache-2.0"
] | null | null | null | networkapi/grupo/resource/GroupUserGetByIdResource.py | brunodevel/GloboNetworkAPI | ea8eebc0337636f9250e628cc392514934db8edd | [
"Apache-2.0"
] | null | null | null | # -*- coding:utf-8 -*-
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "Lic... | 37.513158 | 103 | 0.699754 | 361 | 2,851 | 5.407202 | 0.432133 | 0.040984 | 0.036885 | 0.029201 | 0.063525 | 0.026639 | 0 | 0 | 0 | 0 | 0 | 0.005489 | 0.233251 | 2,851 | 75 | 104 | 38.013333 | 0.887466 | 0.298843 | 0 | 0.057143 | 0 | 0 | 0.093122 | 0.012698 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.257143 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d4ad9d51b03b2c5c7d2c2b01f01e3591b85bd406 | 5,079 | py | Python | tests/conftest.py | rayrrr/vyper | 444666a0a7f89ef97cd6793c7bb23a42bb42f306 | [
"Apache-2.0"
] | 1 | 2018-08-30T22:38:20.000Z | 2018-08-30T22:38:20.000Z | tests/conftest.py | erdnaag/vyper | 22bef3a4b4161db18c7831041e20b917984cff83 | [
"Apache-2.0"
] | null | null | null | tests/conftest.py | erdnaag/vyper | 22bef3a4b4161db18c7831041e20b917984cff83 | [
"Apache-2.0"
] | 1 | 2018-10-25T12:38:57.000Z | 2018-10-25T12:38:57.000Z | import logging
from functools import wraps
import pytest
from eth_tester import EthereumTester
from web3 import Web3
from web3.providers.eth_tester import EthereumTesterProvider
from vyper import compile_lll, compiler, optimizer
from vyper.parser.parser import parse_to_lll
from vyper.parser.parser_utils import LLLnod... | 30.232143 | 98 | 0.706241 | 651 | 5,079 | 5.235023 | 0.253456 | 0.045188 | 0.032864 | 0.035211 | 0.269073 | 0.211268 | 0.170188 | 0.119425 | 0.077465 | 0.077465 | 0 | 0.008118 | 0.199646 | 5,079 | 167 | 99 | 30.413174 | 0.830258 | 0.075802 | 0 | 0.101852 | 0 | 0 | 0.05084 | 0 | 0 | 0 | 0 | 0 | 0.027778 | 1 | 0.203704 | false | 0 | 0.092593 | 0.037037 | 0.490741 | 0.009259 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d4b187a0a4f8315fcbeb7a093589a49326a2c882 | 554 | py | Python | src/runall-wines.py | mknapper1/Pycon2018RepoducibleTutorial | 914f2d3f9f553f519aea906f95abdd7110c874aa | [
"BSD-3-Clause"
] | null | null | null | src/runall-wines.py | mknapper1/Pycon2018RepoducibleTutorial | 914f2d3f9f553f519aea906f95abdd7110c874aa | [
"BSD-3-Clause"
] | null | null | null | src/runall-wines.py | mknapper1/Pycon2018RepoducibleTutorial | 914f2d3f9f553f519aea906f95abdd7110c874aa | [
"BSD-3-Clause"
] | null | null | null | import importlib
# import modules
subset = importlib.import_module('.data.01_subset-data-GBP', 'src')
plotwines = importlib.import_module('.visualization.02_visualize-wines', 'src')
country_sub = importlib.import_module('.data.03_country-subset', 'src')
raw_data = 'data/raw/winemag-data-130k-v2.csv'
country = 'Chile... | 30.777778 | 79 | 0.761733 | 75 | 554 | 5.253333 | 0.426667 | 0.152284 | 0.159898 | 0.126904 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020284 | 0.110108 | 554 | 17 | 80 | 32.588235 | 0.778905 | 0.025271 | 0 | 0 | 0 | 0 | 0.250929 | 0.210037 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
d4bd8ae1f35dda7197167376424059459541b779 | 6,326 | py | Python | parameters_research/neuralNetworkMaster/mlp.py | neuronit/pfa | 6483f23de3ac43ae1121760ab44a2cae1f2cc901 | [
"MIT"
] | null | null | null | parameters_research/neuralNetworkMaster/mlp.py | neuronit/pfa | 6483f23de3ac43ae1121760ab44a2cae1f2cc901 | [
"MIT"
] | null | null | null | parameters_research/neuralNetworkMaster/mlp.py | neuronit/pfa | 6483f23de3ac43ae1121760ab44a2cae1f2cc901 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -----------------------------------------------------------------------------
# Multi-layer perceptron
# Copyright (C) 2011 Nicolas P. Rougier
#
# Distributed under the terms of the BSD License.
# -----------------------------------------------------------------------------
# This is an ... | 33.294737 | 86 | 0.478027 | 739 | 6,326 | 4.05548 | 0.221922 | 0.05005 | 0.022022 | 0.040374 | 0.299299 | 0.190858 | 0.184852 | 0.164164 | 0.142809 | 0.100767 | 0 | 0.032747 | 0.280746 | 6,326 | 189 | 87 | 33.470899 | 0.625934 | 0.236484 | 0 | 0.188119 | 0 | 0 | 0.047653 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.039604 | null | null | 0.069307 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d4bde7457fb071e5bdd7d79ce80c6384984f050d | 875 | py | Python | ylesanded/teema_8/yl02.py | h4n1virus/Python-3-esimesed-sammud | 575a7170703180b6f556f85861bc4c4e0dec4932 | [
"WTFPL"
] | null | null | null | ylesanded/teema_8/yl02.py | h4n1virus/Python-3-esimesed-sammud | 575a7170703180b6f556f85861bc4c4e0dec4932 | [
"WTFPL"
] | null | null | null | ylesanded/teema_8/yl02.py | h4n1virus/Python-3-esimesed-sammud | 575a7170703180b6f556f85861bc4c4e0dec4932 | [
"WTFPL"
] | null | null | null | # Sander Viirmaa
# 19.12.2018
# Ülesanne 08 - 02
class auto:
mark = ' '
aasta = 0
hind = 0
värv = ' '
kiirus = 0
def __init__(self, x, y, z, q, w):
self.mark = x
self.aasta = y
self.hind = z
self.kiirus = q
self.varv = w
def lisa... | 20.348837 | 80 | 0.505143 | 114 | 875 | 3.842105 | 0.482456 | 0.057078 | 0.082192 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075704 | 0.350857 | 875 | 42 | 81 | 20.833333 | 0.695423 | 0.048 | 0 | 0.071429 | 0 | 0.035714 | 0.128335 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0 | 0 | 0.428571 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d4d1c0d92a1329f6cf05e4e08d770be694d8407f | 2,882 | py | Python | tools/test.py | nanit/deep-high-resolution-net.pytorch | 17226df8effda518c47355e85f4733638c20297a | [
"MIT"
] | null | null | null | tools/test.py | nanit/deep-high-resolution-net.pytorch | 17226df8effda518c47355e85f4733638c20297a | [
"MIT"
] | 2 | 2021-09-23T12:59:27.000Z | 2021-11-01T12:21:51.000Z | tools/test.py | nanit/deep-high-resolution-net.pytorch | 17226df8effda518c47355e85f4733638c20297a | [
"MIT"
] | null | null | null | # ------------------------------------------------------------------------------
# pose.pytorch
# Copyright (c) 2018-present Microsoft
# Licensed under The Apache-2.0 License [see LICENSE for details]
# Written by Bin Xiao (Bin.Xiao@microsoft.com)
# ----------------------------------------------------------------------... | 29.111111 | 80 | 0.664122 | 365 | 2,882 | 5.041096 | 0.380822 | 0.03587 | 0.026087 | 0.026087 | 0.092391 | 0.092391 | 0.033696 | 0 | 0 | 0 | 0 | 0.012826 | 0.188411 | 2,882 | 98 | 81 | 29.408163 | 0.773835 | 0.149202 | 0 | 0 | 0 | 0 | 0.042605 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014493 | false | 0 | 0.318841 | 0 | 0.333333 | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
d4d4f22fe6c3fda277e7cb20e225fc7cc689db23 | 395 | py | Python | locations/migrations/0002_auto_20200601_2156.py | PatelKeviin/Locations-API-using-Django-REST-Framework | 80c527722d875b859b5cb127967a58381594e058 | [
"MIT"
] | null | null | null | locations/migrations/0002_auto_20200601_2156.py | PatelKeviin/Locations-API-using-Django-REST-Framework | 80c527722d875b859b5cb127967a58381594e058 | [
"MIT"
] | null | null | null | locations/migrations/0002_auto_20200601_2156.py | PatelKeviin/Locations-API-using-Django-REST-Framework | 80c527722d875b859b5cb127967a58381594e058 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.6 on 2020-06-01 11:56
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('locations', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='location',
name='id',
f... | 20.789474 | 70 | 0.6 | 42 | 395 | 5.571429 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067138 | 0.283544 | 395 | 18 | 71 | 21.944444 | 0.759717 | 0.113924 | 0 | 0 | 1 | 0 | 0.08908 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d4d63eabbb3343ed7f606203150d6a948a2910cf | 1,266 | py | Python | class10/exercises/exercise3.py | twin-bridges/netmiko_course | 31943e4f6f66dbfe523d62d5a2f03285802a8c56 | [
"Apache-2.0"
] | 11 | 2020-09-16T06:53:16.000Z | 2021-08-24T21:27:37.000Z | class10/exercises/exercise3.py | twin-bridges/netmiko_course | 31943e4f6f66dbfe523d62d5a2f03285802a8c56 | [
"Apache-2.0"
] | null | null | null | class10/exercises/exercise3.py | twin-bridges/netmiko_course | 31943e4f6f66dbfe523d62d5a2f03285802a8c56 | [
"Apache-2.0"
] | 5 | 2020-10-18T20:25:59.000Z | 2021-10-20T16:27:00.000Z | import os
import time
from getpass import getpass
from netmiko import ConnectHandler
def read_device(net_connect, sleep=1):
"""Sleep and read channel."""
time.sleep(sleep)
output = net_connect.read_channel()
print(output)
return output
if __name__ == "__main__":
# Code so automated tests wi... | 25.32 | 85 | 0.627172 | 155 | 1,266 | 4.870968 | 0.393548 | 0.15894 | 0.086093 | 0.13245 | 0.275497 | 0.275497 | 0.161589 | 0.090066 | 0 | 0 | 0 | 0.015924 | 0.255924 | 1,266 | 49 | 86 | 25.836735 | 0.785563 | 0.052133 | 0 | 0.171429 | 0 | 0 | 0.148241 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028571 | false | 0.142857 | 0.114286 | 0 | 0.171429 | 0.114286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
d4dd1c209b04ca19eba2c07bd2174f15766a736d | 490 | py | Python | scrapy/apsnypress/scripts/create_hunalign_batch_apsnypress.py | Plkmoi/Multilingual-Parallel-Corpus | b42360e45459d4c9f3236bb19e372c4a4c2e2557 | [
"CC0-1.0"
] | 11 | 2020-08-07T19:08:13.000Z | 2022-02-18T08:49:19.000Z | scrapy/apsnypress/scripts/create_hunalign_batch_apsnypress.py | Plkmoi/Multilingual-Parallel-Corpus | b42360e45459d4c9f3236bb19e372c4a4c2e2557 | [
"CC0-1.0"
] | 90 | 2020-07-09T09:07:20.000Z | 2022-03-23T09:18:09.000Z | scrapy/apsnypress/scripts/create_hunalign_batch_apsnypress.py | Plkmoi/Multilingual-Parallel-Corpus | b42360e45459d4c9f3236bb19e372c4a4c2e2557 | [
"CC0-1.0"
] | 3 | 2020-08-07T19:04:55.000Z | 2021-06-13T07:02:32.000Z | from os import listdir
from os import path
import io
import json
save_apsnypress = io.open('../hunalign_batch_apsnypress.txt','w+', encoding="utf-8")
with open('../data_out.json', 'r') as f:
data_j = json.load(f)
for item in data_j:
if len(item["possible match"]) != 0:
for possible_item in item["possib... | 37.692308 | 157 | 0.638776 | 75 | 490 | 4.026667 | 0.533333 | 0.119205 | 0.07947 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004739 | 0.138776 | 490 | 12 | 158 | 40.833333 | 0.7109 | 0 | 0 | 0 | 0 | 0 | 0.267347 | 0.065306 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.363636 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.