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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
282798301fe62d89dc92c6e1905920362da8011c | 564 | py | Python | addons/website_event_track_live_quiz/controllers/track_live_quiz.py | SHIVJITH/Odoo_Machine_Test | 310497a9872db7844b521e6dab5f7a9f61d365a4 | [
"Apache-2.0"
] | null | null | null | addons/website_event_track_live_quiz/controllers/track_live_quiz.py | SHIVJITH/Odoo_Machine_Test | 310497a9872db7844b521e6dab5f7a9f61d365a4 | [
"Apache-2.0"
] | null | null | null | addons/website_event_track_live_quiz/controllers/track_live_quiz.py | SHIVJITH/Odoo_Machine_Test | 310497a9872db7844b521e6dab5f7a9f61d365a4 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo.addons.website_event_track_live.controllers.track_live import EventTrackLiveController
class EventTrackLiveQuizController(EventTrackLiveController):
def _prepare_track_suggestion_values(self, track, trac... | 43.384615 | 113 | 0.79078 | 67 | 564 | 6.373134 | 0.626866 | 0.140515 | 0.103045 | 0.131148 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002037 | 0.129433 | 564 | 12 | 114 | 47 | 0.867617 | 0.166667 | 0 | 0 | 0 | 0 | 0.047109 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2829cb6a0e893f3f47a265e061c7b3ffa93b9eea | 8,351 | py | Python | bloomberg_functions.py | sophierubin1224/strategy_draft | 410206e5679865ffa25506e733c13b5b03416586 | [
"MIT"
] | null | null | null | bloomberg_functions.py | sophierubin1224/strategy_draft | 410206e5679865ffa25506e733c13b5b03416586 | [
"MIT"
] | null | null | null | bloomberg_functions.py | sophierubin1224/strategy_draft | 410206e5679865ffa25506e733c13b5b03416586 | [
"MIT"
] | 4 | 2021-04-12T23:30:14.000Z | 2021-04-13T13:19:15.000Z | ################################################################################
##### For Bloomberg ------------------------------------------------------------
##### Can't use this if you're on a Mac :(
################################################################################
from __future__ import print_f... | 41.341584 | 81 | 0.544246 | 867 | 8,351 | 5.124567 | 0.364475 | 0.020482 | 0.021607 | 0.038262 | 0.067072 | 0.044564 | 0.034211 | 0.034211 | 0.015755 | 0.015755 | 0 | 0.003188 | 0.323794 | 8,351 | 201 | 82 | 41.547264 | 0.783602 | 0.106454 | 0 | 0.091549 | 0 | 0 | 0.271478 | 0.012743 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014085 | false | 0 | 0.070423 | 0 | 0.119718 | 0.056338 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
282a2f90de76609dae1135f6d1faa97131c57a5d | 3,767 | py | Python | backend/histocat/worker/segmentation/processors/acquisition_processor.py | BodenmillerGroup/histocat-web | c598cd07506febf0b7c209626d4eb869761f2e62 | [
"MIT"
] | 4 | 2021-06-14T15:19:25.000Z | 2022-02-09T13:17:39.000Z | backend/histocat/worker/segmentation/processors/acquisition_processor.py | BodenmillerGroup/histocat-web | c598cd07506febf0b7c209626d4eb869761f2e62 | [
"MIT"
] | null | null | null | backend/histocat/worker/segmentation/processors/acquisition_processor.py | BodenmillerGroup/histocat-web | c598cd07506febf0b7c209626d4eb869761f2e62 | [
"MIT"
] | 1 | 2022-02-09T13:17:41.000Z | 2022-02-09T13:17:41.000Z | import os
from typing import Sequence, Union
import numpy as np
import tifffile
from deepcell.applications import Mesmer
from imctools.io.ometiff.ometiffparser import OmeTiffParser
from skimage import measure
from sqlalchemy.orm import Session
from histocat.core.acquisition import service as acquisition_service
from ... | 38.835052 | 105 | 0.723653 | 452 | 3,767 | 5.807522 | 0.300885 | 0.048 | 0.030476 | 0.013714 | 0.176 | 0.176 | 0.144 | 0.094476 | 0.063238 | 0 | 0 | 0.007079 | 0.17494 | 3,767 | 96 | 106 | 39.239583 | 0.837516 | 0.009026 | 0 | 0.025974 | 0 | 0 | 0.077995 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038961 | false | 0 | 0.168831 | 0 | 0.246753 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
282c0f9d07c95149eb897900350f51bc9e832909 | 9,800 | py | Python | Fractals.py | do-it-for-coffee/fractals | 6050dc72ddeed45aefafed489e07a40ee8d8dc1d | [
"Apache-2.0"
] | null | null | null | Fractals.py | do-it-for-coffee/fractals | 6050dc72ddeed45aefafed489e07a40ee8d8dc1d | [
"Apache-2.0"
] | null | null | null | Fractals.py | do-it-for-coffee/fractals | 6050dc72ddeed45aefafed489e07a40ee8d8dc1d | [
"Apache-2.0"
] | null | null | null | import math
import numpy as np
import random
import os
from PIL import Image
import pyttsx3
class TopError(Exception):
pass
class OddResolutionError(Exception):
pass
class Fractal:
'''
Makes images of the Mandelbrot set given a center coordinate and the
imaginary coordinate of the top row of pi... | 35.507246 | 94 | 0.521429 | 1,115 | 9,800 | 4.469058 | 0.220628 | 0.034116 | 0.033915 | 0.016857 | 0.111981 | 0.067028 | 0.059803 | 0.059803 | 0.059803 | 0.059803 | 0 | 0.016842 | 0.400204 | 9,800 | 275 | 95 | 35.636364 | 0.830725 | 0.169082 | 0 | 0.162791 | 0 | 0 | 0.027223 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046512 | false | 0.023256 | 0.046512 | 0 | 0.162791 | 0.015504 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
282d70a51f36fc140a29300e30c60da47fb2411b | 7,434 | py | Python | detect_deeplabv3plus_ascend.py | jackhanyuan/deeplabv3plus-ascend | 817006a4514257aa8cd07d752b70bbff9709ba9f | [
"Apache-2.0"
] | null | null | null | detect_deeplabv3plus_ascend.py | jackhanyuan/deeplabv3plus-ascend | 817006a4514257aa8cd07d752b70bbff9709ba9f | [
"Apache-2.0"
] | null | null | null | detect_deeplabv3plus_ascend.py | jackhanyuan/deeplabv3plus-ascend | 817006a4514257aa8cd07d752b70bbff9709ba9f | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# by [jackhanyuan](https://github.com/jackhanyuan) 07/03/2022
import argparse
import copy
import glob
import os
import re
import sys
import time
from pathlib import Path
import cv2
import acl
import torch
import numpy as np
from PIL import Image
import torch.nn.functiona... | 34.738318 | 114 | 0.595776 | 1,088 | 7,434 | 3.931985 | 0.240809 | 0.02805 | 0.031791 | 0.01683 | 0.12015 | 0.066854 | 0.034596 | 0.020103 | 0.020103 | 0 | 0 | 0.045543 | 0.24092 | 7,434 | 214 | 115 | 34.738318 | 0.712564 | 0.062012 | 0 | 0.038961 | 0 | 0 | 0.096533 | 0.011078 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051948 | false | 0 | 0.097403 | 0 | 0.207792 | 0.051948 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2834130633642f13cf991cd575cca24813206c77 | 1,670 | py | Python | python/test/environment/test_reset.py | stacyvjong/PandemicSimulator | eca906f5dc8135d7c90a1582b96621235f745c17 | [
"Apache-2.0"
] | null | null | null | python/test/environment/test_reset.py | stacyvjong/PandemicSimulator | eca906f5dc8135d7c90a1582b96621235f745c17 | [
"Apache-2.0"
] | null | null | null | python/test/environment/test_reset.py | stacyvjong/PandemicSimulator | eca906f5dc8135d7c90a1582b96621235f745c17 | [
"Apache-2.0"
] | null | null | null | # Confidential, Copyright 2020, Sony Corporation of America, All rights reserved.
import copy
import numpy as np
from pandemic_simulator.environment import CityRegistry, Home, GroceryStore, Office, School, Hospital, PopulationParams, \
LocationParams
from pandemic_simulator.script_helpers import make_standard_loc... | 36.304348 | 122 | 0.742515 | 221 | 1,670 | 5.371041 | 0.348416 | 0.067397 | 0.060657 | 0.080876 | 0.356361 | 0.227464 | 0.227464 | 0.227464 | 0.156698 | 0.156698 | 0 | 0.025344 | 0.173054 | 1,670 | 45 | 123 | 37.111111 | 0.834178 | 0.047305 | 0 | 0.0625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 1 | 0.03125 | false | 0 | 0.125 | 0 | 0.15625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
28343120a82f0ad353610fd53956f8cb3bf271dc | 1,008 | py | Python | Groups/Group_ID_6/SIFT_and_RESIFT/Code_files/sift.py | sonaldangi12/DataScience | 3d7cd529a96f37c2ef179ee408e2c6d8744d746a | [
"MIT"
] | 5 | 2020-12-13T07:53:22.000Z | 2020-12-20T18:49:27.000Z | Groups/Group_ID_6/SIFT_and_RESIFT/Code_files/sift.py | Gulnaz-Tabassum/DataScience | 1fd771f873a9bc0800458fd7c05e228bb6c4e8a0 | [
"MIT"
] | null | null | null | Groups/Group_ID_6/SIFT_and_RESIFT/Code_files/sift.py | Gulnaz-Tabassum/DataScience | 1fd771f873a9bc0800458fd7c05e228bb6c4e8a0 | [
"MIT"
] | 24 | 2020-12-12T11:23:28.000Z | 2021-10-04T13:09:38.000Z | from libs import *
def SIFT_algo(training_image,training_gray,test_image,test_gray):
#test_gray = cv2.cvtColor(test_image, cv2.COLOR_RGB2GRAY)
#training_gray = cv2.cvtColor(training_image, cv2.COLOR_RGB2GRAY)
# Creating SIFT Object
sift = cv2.SIFT_create()
# Detecting features
... | 56 | 128 | 0.779762 | 127 | 1,008 | 5.834646 | 0.346457 | 0.105263 | 0.080972 | 0.05668 | 0.202429 | 0.140351 | 0.140351 | 0 | 0 | 0 | 0 | 0.017483 | 0.14881 | 1,008 | 18 | 129 | 56 | 0.846154 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.1 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
283446254a407be87bc62c4c4206eacf19fcc853 | 651 | py | Python | Q14__/23_Maximum_Points_You_Can_Obtain_from_Cards/Solution.py | hsclinical/leetcode | 48a57f6a5d5745199c5685cd2c8f5c4fa293e54a | [
"Apache-2.0"
] | null | null | null | Q14__/23_Maximum_Points_You_Can_Obtain_from_Cards/Solution.py | hsclinical/leetcode | 48a57f6a5d5745199c5685cd2c8f5c4fa293e54a | [
"Apache-2.0"
] | null | null | null | Q14__/23_Maximum_Points_You_Can_Obtain_from_Cards/Solution.py | hsclinical/leetcode | 48a57f6a5d5745199c5685cd2c8f5c4fa293e54a | [
"Apache-2.0"
] | null | null | null | from typing import List
class Solution:
def maxScore(self, cardPoints: List[int], k: int) -> int:
if k <= 0:
return 0
else:
numOfCards = len(cardPoints)
totalPart1 = sum(cardPoints) * (k//numOfCards)
k = k%numOfCards
totalPart2... | 32.55 | 79 | 0.506912 | 62 | 651 | 5.322581 | 0.451613 | 0.1 | 0.084848 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028424 | 0.40553 | 651 | 20 | 80 | 32.55 | 0.824289 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.058824 | 0 | 0.294118 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
28349545dacdb38c6ebe53a67d01ff333f29fa0c | 1,192 | py | Python | utils/editResult.py | JasonHippo/Scene_text_detection_and_recognition | c0da141d71b7b888d560296b201aecbbd735b565 | [
"MIT"
] | 4 | 2021-12-27T14:37:33.000Z | 2022-03-30T10:56:57.000Z | utils/editResult.py | JasonHippo/Scene_text_detection_and_recognition | c0da141d71b7b888d560296b201aecbbd735b565 | [
"MIT"
] | null | null | null | utils/editResult.py | JasonHippo/Scene_text_detection_and_recognition | c0da141d71b7b888d560296b201aecbbd735b565 | [
"MIT"
] | null | null | null | import pandas as pd
import argparse
badword = ["!", "$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","?","@","[","/","]","^","_","`","{","|","}","~","の","®"]
if __name__ == "__main__":
parser = argparse.ArgumentParser()
parser.add_argument('--path', help='the path of file')
... | 32.216216 | 141 | 0.428691 | 139 | 1,192 | 3.546763 | 0.42446 | 0.05071 | 0.048682 | 0.040568 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002503 | 0.329698 | 1,192 | 37 | 142 | 32.216216 | 0.613267 | 0 | 0 | 0 | 0 | 0 | 0.089888 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.064516 | 0 | 0.064516 | 0.193548 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2838bf018ab619624c31ab34ebae1fd0c469063d | 13,884 | py | Python | client/forms/reader_form.py | zhmzlzn/Network-Pj-BookReader | 891d395f2db464f4d4e7b84dd03c3cddebbafd30 | [
"MIT"
] | 6 | 2019-11-28T10:47:46.000Z | 2021-11-04T08:22:56.000Z | client/forms/reader_form.py | zhmzlzn/python-BookReader | 891d395f2db464f4d4e7b84dd03c3cddebbafd30 | [
"MIT"
] | null | null | null | client/forms/reader_form.py | zhmzlzn/python-BookReader | 891d395f2db464f4d4e7b84dd03c3cddebbafd30 | [
"MIT"
] | 4 | 2019-12-17T15:29:22.000Z | 2021-05-28T16:39:51.000Z | import tkinter as tk
from tkinter import *
from tkinter import messagebox
from tkinter.simpledialog import askinteger
from protocol.secure_transmission.secure_channel import establish_secure_channel_to_server
from protocol.message_type import MessageType
from protocol.data_conversion.from_byte import deserialize_messag... | 43.118012 | 129 | 0.584054 | 1,592 | 13,884 | 4.978643 | 0.128769 | 0.029145 | 0.044411 | 0.055766 | 0.657835 | 0.621247 | 0.612415 | 0.598158 | 0.56813 | 0.549962 | 0 | 0.009073 | 0.269663 | 13,884 | 322 | 130 | 43.118012 | 0.772584 | 0.038101 | 0 | 0.570896 | 0 | 0 | 0.095331 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.059701 | false | 0 | 0.033582 | 0 | 0.179104 | 0.048507 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2838cb9fb3068b931f43ec405489f94b2abb45c7 | 3,285 | py | Python | akispy/__init__.py | ryanleland/Akispy | dbbb85a1d1b027051e11179289cc9067cb90baf6 | [
"MIT"
] | null | null | null | akispy/__init__.py | ryanleland/Akispy | dbbb85a1d1b027051e11179289cc9067cb90baf6 | [
"MIT"
] | 2 | 2017-05-19T21:59:04.000Z | 2021-06-25T15:28:07.000Z | akispy/__init__.py | ryanleland/Akispy | dbbb85a1d1b027051e11179289cc9067cb90baf6 | [
"MIT"
] | 1 | 2017-05-18T05:23:47.000Z | 2017-05-18T05:23:47.000Z | #!/usr/bin/env python
"""Light weight python client for Akismet API."""
__title__ = 'akispy'
__version__ = '0.2'
__author__ = 'Ryan Leland'
__copyright__ = 'Copyright 2012 Ryan Leland'
import http.client, urllib.request, urllib.parse, urllib.error
class Connection(object):
_key = None
_version = None
... | 30.990566 | 101 | 0.557991 | 356 | 3,285 | 5.008427 | 0.323034 | 0.030286 | 0.042625 | 0.040381 | 0.422883 | 0.379136 | 0.375771 | 0.375771 | 0.326416 | 0.326416 | 0 | 0.009149 | 0.334551 | 3,285 | 105 | 102 | 31.285714 | 0.806496 | 0.192998 | 0 | 0.358491 | 0 | 0 | 0.108066 | 0.012921 | 0 | 0 | 0 | 0 | 0 | 1 | 0.113208 | false | 0 | 0.018868 | 0 | 0.396226 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
283a11f41a96444be50edc2390d31671ac936bd1 | 1,599 | py | Python | scripts/extract_mfcc.py | xavierfav/coala | b791ad6bb5c4f7b8f8f8fa8e0c5bd5b89b0ecbc3 | [
"MIT"
] | 34 | 2020-06-12T15:54:22.000Z | 2021-12-16T08:16:45.000Z | scripts/extract_mfcc.py | xavierfav/ae-w2v-attention | 8039c056ad365769bdf8d77d6292d4f3cfb957a4 | [
"MIT"
] | 3 | 2020-06-22T09:06:27.000Z | 2021-07-10T09:58:30.000Z | scripts/extract_mfcc.py | xavierfav/coala | b791ad6bb5c4f7b8f8f8fa8e0c5bd5b89b0ecbc3 | [
"MIT"
] | 4 | 2020-10-23T03:29:35.000Z | 2021-08-19T09:31:57.000Z | """
This script is used to compute mffc features for target task datasets.
Warning: Need manual editing for switching datasets
"""
import os
import librosa
import soundfile as sf
import numpy as np
from tqdm import tqdm
from pathlib import Path
FILES_LOCATION = '../data/UrbanSound8K/audio'
FILES_LOCATION = '../data/G... | 30.75 | 89 | 0.632896 | 224 | 1,599 | 4.401786 | 0.415179 | 0.030426 | 0.035497 | 0.030426 | 0.083164 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014563 | 0.227017 | 1,599 | 51 | 90 | 31.352941 | 0.783172 | 0.148843 | 0 | 0.0625 | 0 | 0 | 0.136397 | 0.090437 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0 | 0.1875 | 0 | 0.25 | 0.03125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
283bc06264c86314c6694bec3801d78f4ce49fef | 799 | py | Python | tests/test_06_reporting_classes.py | themperek/pyuvm | 12abf6b0a631321c0fcce6ebbc04b8cc9900c6a8 | [
"Apache-2.0"
] | null | null | null | tests/test_06_reporting_classes.py | themperek/pyuvm | 12abf6b0a631321c0fcce6ebbc04b8cc9900c6a8 | [
"Apache-2.0"
] | null | null | null | tests/test_06_reporting_classes.py | themperek/pyuvm | 12abf6b0a631321c0fcce6ebbc04b8cc9900c6a8 | [
"Apache-2.0"
] | null | null | null | import pyuvm_unittest
from pyuvm import *
class s06_reporting_classes_TestCase(pyuvm_unittest.pyuvm_TestCase):
"""Basic test cases."""
def test_object_creation(self):
"""
Test that we actually get a logger in our object.
"""
ro = uvm_report_object('ro')
self.assertTrue... | 34.73913 | 68 | 0.524406 | 84 | 799 | 4.869048 | 0.47619 | 0.117359 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003899 | 0.357947 | 799 | 22 | 69 | 36.318182 | 0.793372 | 0.083855 | 0 | 0 | 0 | 0 | 0.135135 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.066667 | false | 0 | 0.133333 | 0 | 0.266667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
283cfb68139e552afe4cbfabaafdcde926934b65 | 8,429 | py | Python | trinity/sync/header/chain.py | g-r-a-n-t/trinity | f108b6cd34ed9aabfcf9e235badd91597650ecd5 | [
"MIT"
] | 1 | 2021-04-07T07:33:28.000Z | 2021-04-07T07:33:28.000Z | trinity/sync/header/chain.py | g-r-a-n-t/trinity | f108b6cd34ed9aabfcf9e235badd91597650ecd5 | [
"MIT"
] | null | null | null | trinity/sync/header/chain.py | g-r-a-n-t/trinity | f108b6cd34ed9aabfcf9e235badd91597650ecd5 | [
"MIT"
] | null | null | null | import asyncio
from typing import Sequence
from async_service import Service, background_asyncio_service
from eth.abc import BlockHeaderAPI
from eth.exceptions import CheckpointsMustBeCanonical
from eth_typing import BlockNumber
from trinity._utils.pauser import Pauser
from trinity.chains.base import AsyncChainAPI
fr... | 37.629464 | 97 | 0.626409 | 923 | 8,429 | 5.462622 | 0.206934 | 0.0357 | 0.019437 | 0.013883 | 0.308608 | 0.251686 | 0.240976 | 0.209044 | 0.178501 | 0.137445 | 0 | 0.003553 | 0.298849 | 8,429 | 223 | 98 | 37.798206 | 0.849577 | 0.051608 | 0 | 0.297753 | 0 | 0 | 0.096575 | 0.028708 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02809 | false | 0 | 0.123596 | 0 | 0.196629 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
283f0444ed2c9cb2e8181317df155e9ffdbf38c6 | 1,105 | py | Python | scripts/pgmviz.py | anindex/auto_localization | e8acc6fb4a4221115e2d4f9ba87fd077ad741b70 | [
"MIT"
] | 1 | 2020-09-03T14:29:27.000Z | 2020-09-03T14:29:27.000Z | scripts/pgmviz.py | anindex/auto_localization | e8acc6fb4a4221115e2d4f9ba87fd077ad741b70 | [
"MIT"
] | null | null | null | scripts/pgmviz.py | anindex/auto_localization | e8acc6fb4a4221115e2d4f9ba87fd077ad741b70 | [
"MIT"
] | 2 | 2019-09-26T15:20:37.000Z | 2021-07-14T11:00:49.000Z | import re
import numpy
def read_pgm(filename, byteorder='>'):
"""Return image data from a raw PGM file as numpy array.
Format specification: http://netpbm.sourceforge.net/doc/pgm.html
"""
with open(filename, 'rb') as f:
buffer = f.read()
try:
header, width, height, maxval = re.sea... | 34.53125 | 99 | 0.529412 | 138 | 1,105 | 4.152174 | 0.557971 | 0.013962 | 0.020942 | 0.027923 | 0.038394 | 0.038394 | 0.038394 | 0.038394 | 0.038394 | 0.038394 | 0 | 0.007585 | 0.284163 | 1,105 | 31 | 100 | 35.645161 | 0.716814 | 0.107692 | 0 | 0.086957 | 0 | 0 | 0.204124 | 0.162887 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.130435 | 0 | 0.217391 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2841fd174e918cba71310ebfefa31472caa5fe2f | 331 | py | Python | pandoc-starter/MarkTex/marktex/config.py | riciche/SimpleCVReproduction | 4075de39f9c61f1359668a413f6a5d98903fcf97 | [
"Apache-2.0"
] | 923 | 2020-01-11T06:36:53.000Z | 2022-03-31T00:26:57.000Z | pandoc-starter/MarkTex/marktex/config.py | riciche/SimpleCVReproduction | 4075de39f9c61f1359668a413f6a5d98903fcf97 | [
"Apache-2.0"
] | 25 | 2020-02-27T08:35:46.000Z | 2022-01-25T08:54:19.000Z | pandoc-starter/MarkTex/marktex/config.py | riciche/SimpleCVReproduction | 4075de39f9c61f1359668a413f6a5d98903fcf97 | [
"Apache-2.0"
] | 262 | 2020-01-02T02:19:40.000Z | 2022-03-23T04:56:16.000Z | '''Don't change the basic param'''
import os
'''prog path'''
config_path = os.path.split(__file__)[0]
marktemp_path = os.path.join(config_path,"markenv.tex")
'''tools setting'''
image_download_retry_time = 10
# 在尝试重试次数达到上限后,是否等待手动下载该文件放到目录
# wait_manully_if_all_failed = False
# 在tex文件里添加图片的时候,使用相对路径还是绝对路径
give_rele_pa... | 23.642857 | 55 | 0.770393 | 47 | 331 | 5.085106 | 0.808511 | 0.083682 | 0.083682 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010067 | 0.099698 | 331 | 13 | 56 | 25.461538 | 0.791946 | 0.365559 | 0 | 0 | 0 | 0 | 0.065868 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2842d30820f635256f73ae79bc6c16f824dc89f6 | 704 | py | Python | setup.py | jlevy44/Submit-HPC | 83dfd60587fab2c75e02f1c14b688b4bc51aff8c | [
"MIT"
] | 1 | 2020-06-11T00:51:24.000Z | 2020-06-11T00:51:24.000Z | setup.py | jlevy44/Submit-HPC | 83dfd60587fab2c75e02f1c14b688b4bc51aff8c | [
"MIT"
] | null | null | null | setup.py | jlevy44/Submit-HPC | 83dfd60587fab2c75e02f1c14b688b4bc51aff8c | [
"MIT"
] | 1 | 2020-06-19T01:05:07.000Z | 2020-06-19T01:05:07.000Z | from setuptools import setup
with open('README.md','r', encoding='utf-8') as f:
long_description = f.read()
setup(name='submit_hpc',
version='0.1.2',
description='Collection of growing job submission scripts, not to replace workflow specifications.',
url='https://github.com/jlevy44/Submit-HPC',
... | 37.052632 | 106 | 0.666193 | 84 | 704 | 5.416667 | 0.738095 | 0.131868 | 0.083516 | 0.131868 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014035 | 0.190341 | 704 | 18 | 107 | 39.111111 | 0.784211 | 0 | 0 | 0 | 0 | 0 | 0.392045 | 0.086648 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2847498b54c2f788df1761ffd02163a689964021 | 5,924 | py | Python | 128/utility.py | Jeffrey-Ede/Adaptive-Partial-STEM | dc13e64ba3fb8266d39a260780af615b170a3c88 | [
"MIT"
] | 3 | 2020-04-29T21:45:21.000Z | 2021-08-13T16:01:14.000Z | 128/utility.py | Jeffrey-Ede/intelligent-partial-STEM | dc13e64ba3fb8266d39a260780af615b170a3c88 | [
"MIT"
] | null | null | null | 128/utility.py | Jeffrey-Ede/intelligent-partial-STEM | dc13e64ba3fb8266d39a260780af615b170a3c88 | [
"MIT"
] | null | null | null | import tensorflow as tf
import itertools
import numpy as np
FLAGS = tf.flags.FLAGS
def stepped_spiral_actions(theta_incr=np.pi/180):
coverage = FLAGS.num_steps*FLAGS.step_size/FLAGS.img_side**2
start_theta = np.pi/4
start_r = np.sqrt(2)*FLAGS.step_size
start_position = np.ones(... | 33.280899 | 116 | 0.613774 | 796 | 5,924 | 4.420854 | 0.244975 | 0.007673 | 0.029554 | 0.014777 | 0.202614 | 0.124467 | 0.065359 | 0.036374 | 0.036374 | 0.036374 | 0 | 0.017878 | 0.282411 | 5,924 | 178 | 117 | 33.280899 | 0.809927 | 0.217758 | 0 | 0.041237 | 0 | 0 | 0.003675 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.061856 | false | 0.010309 | 0.030928 | 0 | 0.154639 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2847f21bc2086528a4db0c276260fe7ae1c988d5 | 1,336 | py | Python | tests/test_lexer.py | codyd51/camelback | 2dd1269bcbc7ce35fcab1df7dfddce229c51e610 | [
"MIT"
] | 2 | 2018-11-22T16:45:24.000Z | 2018-11-26T16:13:31.000Z | tests/test_lexer.py | codyd51/camelback | 2dd1269bcbc7ce35fcab1df7dfddce229c51e610 | [
"MIT"
] | null | null | null | tests/test_lexer.py | codyd51/camelback | 2dd1269bcbc7ce35fcab1df7dfddce229c51e610 | [
"MIT"
] | null | null | null | import os
import unittest
from camelback.lexer import Lexer
class TestLexer(unittest.TestCase):
SOURCE_CODE_FILE = os.path.join(os.path.dirname(__file__), 'bin', 'snakecase.c')
def test_tokenize_source_code(self):
with open(TestLexer.SOURCE_CODE_FILE) as f:
stream = f.read()
lexe... | 37.111111 | 113 | 0.355539 | 106 | 1,336 | 4.320755 | 0.575472 | 0.017467 | 0.061135 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003654 | 0.385479 | 1,336 | 35 | 114 | 38.171429 | 0.554202 | 0 | 0 | 0.068966 | 0 | 0 | 0.172904 | 0 | 0 | 0 | 0 | 0 | 0.034483 | 1 | 0.034483 | false | 0 | 0.103448 | 0 | 0.206897 | 0.068966 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2848866b78d851fe0130aa00ed413f094e4d8df4 | 6,861 | py | Python | cxphasing/CXResolutionEstimate.py | jbgastineau/cxphasing | a9847a0afb9a981d81f027e75c06c9bb2b531d33 | [
"MIT"
] | 3 | 2018-05-11T16:05:55.000Z | 2021-12-20T08:52:02.000Z | cxphasing/CXResolutionEstimate.py | jbgastineau/cxphasing | a9847a0afb9a981d81f027e75c06c9bb2b531d33 | [
"MIT"
] | null | null | null | cxphasing/CXResolutionEstimate.py | jbgastineau/cxphasing | a9847a0afb9a981d81f027e75c06c9bb2b531d33 | [
"MIT"
] | 2 | 2018-11-14T08:57:10.000Z | 2021-12-20T08:52:06.000Z | """
.. module:: CXResolutionEstimate.py
:platform: Unix
:synopsis: A class for predicting the resolution of a ptychography measurement.
.. moduleauthor:: David Vine <djvine@gmail.com>
"""
import requests
import pdb
import scipy as sp
import numpy as np
import scipy.fftpack as spf
from pylab import *
class Hen... | 27.011811 | 126 | 0.69538 | 1,028 | 6,861 | 4.5 | 0.262646 | 0.025292 | 0.006485 | 0.003891 | 0.118461 | 0.052745 | 0.04626 | 0.030264 | 0.016429 | 0.016429 | 0 | 0.031162 | 0.167468 | 6,861 | 253 | 127 | 27.118577 | 0.778711 | 0.415683 | 0 | 0.161017 | 0 | 0 | 0.076405 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.09322 | false | 0.008475 | 0.050847 | 0.016949 | 0.20339 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2849b9c3dc25b3aa339fd03d7bee0279359be673 | 1,129 | py | Python | Analysis/views_in_dow.py | harrisonxia/Lil-Data | 204467aa740bef10d865925508d7cf007cac19b3 | [
"MIT"
] | 5 | 2018-11-14T03:31:13.000Z | 2022-01-12T04:20:16.000Z | Analysis/views_in_dow.py | harrisonxia/Lil-Data | 204467aa740bef10d865925508d7cf007cac19b3 | [
"MIT"
] | null | null | null | Analysis/views_in_dow.py | harrisonxia/Lil-Data | 204467aa740bef10d865925508d7cf007cac19b3 | [
"MIT"
] | null | null | null | import sys
from pyspark.sql import SparkSession, functions, types
from pyspark.sql.functions import date_format
import json
def views_in_dow():
data_stream = spark.read.json('stream_cleanned')
data_channel = spark.read.json('channel_cleanned')
data_stream.createOrReplaceTempView('data_s')
data_c... | 35.28125 | 154 | 0.723649 | 145 | 1,129 | 5.310345 | 0.427586 | 0.090909 | 0.051948 | 0.049351 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001064 | 0.167405 | 1,129 | 31 | 155 | 36.419355 | 0.818085 | 0.090345 | 0 | 0 | 0 | 0 | 0.166851 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.222222 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
284e0e3fc7904eb4e425103fc8997d9f8ee44f17 | 1,593 | py | Python | cogs/rng.py | Ana-gram/Amanager | 5ceef312125b1c73dea59d37f8f06e22293c8960 | [
"Apache-2.0"
] | 12 | 2021-04-23T18:10:24.000Z | 2021-05-03T13:08:54.000Z | cogs/rng.py | Ana-gram/Amanager | 5ceef312125b1c73dea59d37f8f06e22293c8960 | [
"Apache-2.0"
] | 3 | 2021-04-04T17:47:02.000Z | 2021-11-20T10:59:46.000Z | cogs/rng.py | Margana314/Amanager | 87e241d942ca07f3ed8dfc5e1aebfde6f58bbdac | [
"Apache-2.0"
] | 3 | 2021-04-30T11:07:28.000Z | 2021-05-01T11:35:27.000Z | import discord, random
from discord.ext import commands
from discord_slash import cog_ext
from discord_slash.utils.manage_commands import create_option
class Slash(commands.Cog):
def __init__(self, bot):
self.bot = bot
@cog_ext.cog_slash(name="rng", description="Générer un nombre aléatoire !", options... | 40.846154 | 190 | 0.603264 | 205 | 1,593 | 4.556098 | 0.414634 | 0.034261 | 0.038544 | 0.040685 | 0.111349 | 0.062099 | 0.062099 | 0 | 0 | 0 | 0 | 0.035651 | 0.295669 | 1,593 | 39 | 191 | 40.846154 | 0.796791 | 0 | 0 | 0.171429 | 0 | 0.057143 | 0.265997 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085714 | false | 0 | 0.114286 | 0 | 0.228571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
284ed97a6e7a6cca5b8e4fac818f272a6b8ee59d | 1,538 | py | Python | app.py | dodoche/essaie | 53d22cfec969a8f992f4b5cb473bb41a215975b6 | [
"Apache-2.0"
] | null | null | null | app.py | dodoche/essaie | 53d22cfec969a8f992f4b5cb473bb41a215975b6 | [
"Apache-2.0"
] | null | null | null | app.py | dodoche/essaie | 53d22cfec969a8f992f4b5cb473bb41a215975b6 | [
"Apache-2.0"
] | null | null | null | from flask import Flask
from kubernetes.client.rest import ApiException
from pprint import pprint
from kubernetes import client, config
app = Flask(__name__)
@app.route("/ing")
def ing():
# Configure API key authorization: BearerToken
configuration = kubernetes.client.Configuration()
configuration.api_key... | 48.0625 | 171 | 0.727568 | 202 | 1,538 | 5.405941 | 0.514851 | 0.021978 | 0.034799 | 0.049451 | 0.07326 | 0.07326 | 0.07326 | 0.07326 | 0 | 0 | 0 | 0.016653 | 0.180104 | 1,538 | 31 | 172 | 49.612903 | 0.849326 | 0.382965 | 0 | 0 | 0 | 0 | 0.210638 | 0.08617 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.173913 | 0 | 0.26087 | 0.086957 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
285632d72a4a6ee14ee3a1b9a5965b712d109e62 | 10,286 | py | Python | experiments/utils.py | linshaoxin-maker/taas | 34e11fab167a7beb78fbe6991ff8721dc9208793 | [
"MIT"
] | 4 | 2021-02-28T11:58:18.000Z | 2022-02-03T03:26:45.000Z | experiments/utils.py | linshaoxin-maker/taas | 34e11fab167a7beb78fbe6991ff8721dc9208793 | [
"MIT"
] | null | null | null | experiments/utils.py | linshaoxin-maker/taas | 34e11fab167a7beb78fbe6991ff8721dc9208793 | [
"MIT"
] | null | null | null | import torch
import os
import subprocess as sp
from mlutils.pt.training import TrainerBatch
from mlutils.callbacks import Callback
from os import path
import numpy as np
import json
class WeightedSum:
def __init__(self, name, init, postprocessing=None):
self.name = name
self.v = init
self.... | 33.504886 | 119 | 0.586914 | 1,358 | 10,286 | 4.286451 | 0.196613 | 0.031266 | 0.022677 | 0.008246 | 0.145679 | 0.099639 | 0.073183 | 0.021302 | 0.008246 | 0 | 0 | 0.007711 | 0.281353 | 10,286 | 306 | 120 | 33.614379 | 0.779762 | 0.088859 | 0 | 0.111607 | 0 | 0 | 0.091027 | 0.002801 | 0 | 0 | 0 | 0 | 0.026786 | 1 | 0.125 | false | 0 | 0.0625 | 0.03125 | 0.303571 | 0.008929 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
28573be47f861d148cdbe92b563ea159f2c46f16 | 1,964 | py | Python | libretto/plugin/__init__.py | johnwcchau/libretto | 8b8cde81a978536f1c797e070818188bd2c006e5 | [
"MIT"
] | null | null | null | libretto/plugin/__init__.py | johnwcchau/libretto | 8b8cde81a978536f1c797e070818188bd2c006e5 | [
"MIT"
] | null | null | null | libretto/plugin/__init__.py | johnwcchau/libretto | 8b8cde81a978536f1c797e070818188bd2c006e5 | [
"MIT"
] | null | null | null | import logging
from configparser import ConfigParser
from typing import Callable
__plugins = {}
def plugin_disabled(config, path):
name = '.'.join(path.replace('/', '.').replace('\\', '.').split('.')[:-2])
return config.getboolean(name, "disabled", fallback=False)
def plugin_mjs(config):
from glob impor... | 32.733333 | 82 | 0.588595 | 229 | 1,964 | 4.847162 | 0.340611 | 0.05045 | 0.054054 | 0.064865 | 0.181982 | 0.113514 | 0.113514 | 0 | 0 | 0 | 0 | 0.00336 | 0.242363 | 1,964 | 60 | 83 | 32.733333 | 0.742608 | 0 | 0 | 0.254902 | 0 | 0.019608 | 0.207634 | 0.072265 | 0 | 0 | 0 | 0 | 0 | 1 | 0.098039 | false | 0 | 0.196078 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2858823061844e57eb3d0e1bf225fe8863fd7485 | 30,325 | py | Python | cax/tasks/tsm_mover.py | XENON1T/cax | 06de9290851904695275fd34d7c74e2c9eb7fe59 | [
"0BSD"
] | 2 | 2016-05-19T05:51:15.000Z | 2017-10-13T13:43:00.000Z | cax/tasks/tsm_mover.py | XENON1T/cax | 06de9290851904695275fd34d7c74e2c9eb7fe59 | [
"0BSD"
] | 93 | 2016-03-26T20:34:01.000Z | 2021-03-25T21:41:57.000Z | cax/tasks/tsm_mover.py | XENON1T/cax | 06de9290851904695275fd34d7c74e2c9eb7fe59 | [
"0BSD"
] | 2 | 2017-05-19T03:47:09.000Z | 2018-12-19T18:10:45.000Z | """Handle copying data between sites.
tsm_mover.py contains the necessary classes
to upload and download from tape backup and
syncronize it with the runDB.
Author: Boris Bauermeister
Email: Boris.Bauermeister@fysik.su.se
"""
import datetime
import logging
import os
import time
import hashlib
import ... | 38.679847 | 142 | 0.54526 | 3,523 | 30,325 | 4.453591 | 0.121771 | 0.014978 | 0.027342 | 0.017527 | 0.346845 | 0.264818 | 0.209815 | 0.188783 | 0.173805 | 0.161759 | 0 | 0.011856 | 0.329695 | 30,325 | 783 | 143 | 38.729246 | 0.760024 | 0.068096 | 0 | 0.173989 | 0 | 0.001757 | 0.189507 | 0.030143 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043937 | false | 0.005272 | 0.045694 | 0.001757 | 0.13884 | 0.02109 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
285ae74b0cd6ba7b852c770105e6b5d4523be1ae | 5,310 | py | Python | leetcode_python/Sort/wiggle-sort-ii.py | yennanliu/Python_basics | 6a597442d39468295946cefbfb11d08f61424dc3 | [
"Unlicense"
] | 18 | 2019-08-01T07:45:02.000Z | 2022-03-31T18:05:44.000Z | leetcode_python/Sort/wiggle-sort-ii.py | yennanliu/Python_basics | 6a597442d39468295946cefbfb11d08f61424dc3 | [
"Unlicense"
] | null | null | null | leetcode_python/Sort/wiggle-sort-ii.py | yennanliu/Python_basics | 6a597442d39468295946cefbfb11d08f61424dc3 | [
"Unlicense"
] | 15 | 2019-12-29T08:46:20.000Z | 2022-03-08T14:14:05.000Z | # V0
# V1
# https://www.hrwhisper.me/leetcode-wiggle-sort-ii/
class Solution(object):
def wiggleSort(self, nums):
"""
:type nums: List[int]
:rtype: void Do not return anything, modify nums in-place instead.
"""
temp = sorted(nums)
s, t = (len(nums) + 1) >> 1, len(n... | 34.038462 | 103 | 0.468927 | 690 | 5,310 | 3.531884 | 0.181159 | 0.065654 | 0.063192 | 0.032007 | 0.386951 | 0.281904 | 0.238818 | 0.201888 | 0.201888 | 0.173984 | 0 | 0.030731 | 0.399435 | 5,310 | 156 | 104 | 34.038462 | 0.733459 | 0.184181 | 0 | 0.22 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.11 | false | 0 | 0.01 | 0.02 | 0.26 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
285af3b4261da560e2b691c6b8e6dc0c7a368402 | 517 | py | Python | model/Rules/ZigZag.py | GigliOneiric/ElliotWave | 5d0fc166530a57132dce4e4c00ecb33cb8101aaa | [
"Apache-2.0"
] | null | null | null | model/Rules/ZigZag.py | GigliOneiric/ElliotWave | 5d0fc166530a57132dce4e4c00ecb33cb8101aaa | [
"Apache-2.0"
] | null | null | null | model/Rules/ZigZag.py | GigliOneiric/ElliotWave | 5d0fc166530a57132dce4e4c00ecb33cb8101aaa | [
"Apache-2.0"
] | null | null | null | import config.Text
class ZigZag:
def __init__(self, name: str):
self._name = name
@property
def name(self):
return self._name
@property
def conditions(self):
conditions = {
'wa_b': {
config.Text.waves: ['waveA', 'waveB'],
config... | 21.541667 | 97 | 0.54352 | 56 | 517 | 4.857143 | 0.482143 | 0.147059 | 0.110294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.355899 | 517 | 23 | 98 | 22.478261 | 0.816817 | 0 | 0 | 0.117647 | 0 | 0 | 0.081238 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.058824 | 0.058824 | 0.411765 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
285f254edbac663963266cf598f4a69429de61bf | 4,153 | py | Python | pyautomailer/command_line.py | matteocappello94/pyautomailer | 933c23426d00d32543da3af03fe67a7e8fa38247 | [
"MIT"
] | null | null | null | pyautomailer/command_line.py | matteocappello94/pyautomailer | 933c23426d00d32543da3af03fe67a7e8fa38247 | [
"MIT"
] | 2 | 2018-08-08T07:51:14.000Z | 2018-08-10T14:35:32.000Z | pyautomailer/command_line.py | matteocappello94/pyautomailer | 933c23426d00d32543da3af03fe67a7e8fa38247 | [
"MIT"
] | null | null | null | import argparse
import sys
import logging as log
from pyautomailer import PyAutoMailer, PyAutoMailerMode
def main():
parser = parse_args(sys.argv[1:])
# Auto mailer init.
am = PyAutoMailer(parser.sender,
parser.host,
parser.port,
parser.use... | 36.752212 | 79 | 0.575969 | 472 | 4,153 | 4.938559 | 0.275424 | 0.066066 | 0.051909 | 0.0429 | 0.12441 | 0.06864 | 0 | 0 | 0 | 0 | 0 | 0.000349 | 0.309896 | 4,153 | 112 | 80 | 37.080357 | 0.81298 | 0.073441 | 0 | 0 | 0 | 0 | 0.188837 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.072289 | false | 0.036145 | 0.048193 | 0 | 0.144578 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
286006999e3a7c33bbad8b78611b5c41448309f0 | 4,324 | py | Python | examples/dvrl_asr/dvrl_asr_finetuning.py | SeunghyunSEO/seosh_fairseq | 443b2a8effb6b8fba5758989076cf992470ccb62 | [
"MIT"
] | null | null | null | examples/dvrl_asr/dvrl_asr_finetuning.py | SeunghyunSEO/seosh_fairseq | 443b2a8effb6b8fba5758989076cf992470ccb62 | [
"MIT"
] | 2 | 2022-02-22T08:28:06.000Z | 2022-02-22T09:26:26.000Z | examples/dvrl_asr/dvrl_asr_finetuning.py | SeunghyunSEO/seosh_fairseq | 443b2a8effb6b8fba5758989076cf992470ccb62 | [
"MIT"
] | null | null | null | # Copyright (c) 2017-present, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the license found in the LICENSE file in
# the root directory of this source tree. An additional grant of patent rights
# can be found in the PATENTS file in the same directory.
import logging
import os
import to... | 36.336134 | 132 | 0.698196 | 503 | 4,324 | 5.729622 | 0.33996 | 0.046842 | 0.024983 | 0.029146 | 0.204719 | 0.139486 | 0.112422 | 0.06662 | 0.034004 | 0.034004 | 0 | 0.002697 | 0.228261 | 4,324 | 118 | 133 | 36.644068 | 0.860953 | 0.126272 | 0 | 0.077778 | 0 | 0 | 0.045974 | 0.011959 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
286032d47c652ffe5a80685b84caa53cf8ed1a03 | 2,727 | py | Python | opensource/opencv/write_to_video.py | marciojv/hacks-cognitives-plataforms | 5b43f52d6afde4ad2768ad5b85e376578e2c9b2f | [
"Apache-2.0"
] | 1 | 2021-05-14T18:43:51.000Z | 2021-05-14T18:43:51.000Z | opensource/opencv/write_to_video.py | marciojv/hacks-cognitives-plataforms | 5b43f52d6afde4ad2768ad5b85e376578e2c9b2f | [
"Apache-2.0"
] | null | null | null | opensource/opencv/write_to_video.py | marciojv/hacks-cognitives-plataforms | 5b43f52d6afde4ad2768ad5b85e376578e2c9b2f | [
"Apache-2.0"
] | 9 | 2019-02-04T22:08:08.000Z | 2021-07-17T12:12:12.000Z | # para executar
# python write_to_video.py --output example.avi
# ou
# python write_to_video.py --output example.avi --picamera 1
# python -m pip install imutils
from __future__ import print_function
from imutils.video import VideoStream
import numpy as np
import argparse
import imutils
import time
import cv2
#https:... | 27.826531 | 71 | 0.69527 | 442 | 2,727 | 4.255656 | 0.377828 | 0.025518 | 0.027645 | 0.019139 | 0.038278 | 0.038278 | 0.038278 | 0.038278 | 0 | 0 | 0 | 0.022056 | 0.168684 | 2,727 | 97 | 72 | 28.113402 | 0.807675 | 0.393473 | 0 | 0 | 0 | 0 | 0.155172 | 0 | 0 | 0 | 0.002463 | 0 | 0 | 1 | 0 | false | 0 | 0.137255 | 0 | 0.137255 | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2860ad63802d9b4247cfc5b4ea2a3cd53137c044 | 3,973 | py | Python | src/anaplan_api/Upload.py | pieter-pot/anaplan-api | 1b099cb102f98b114afa0794a40aaf0de19956c1 | [
"BSD-2-Clause"
] | null | null | null | src/anaplan_api/Upload.py | pieter-pot/anaplan-api | 1b099cb102f98b114afa0794a40aaf0de19956c1 | [
"BSD-2-Clause"
] | null | null | null | src/anaplan_api/Upload.py | pieter-pot/anaplan-api | 1b099cb102f98b114afa0794a40aaf0de19956c1 | [
"BSD-2-Clause"
] | null | null | null | # ===============================================================================
# Created: 1 Nov 2021
# @author: Jesse Wilson (Anaplan Asia Pte Ltd)
# Description: Abstract Anaplan Authentication Class
# Input: Username & Password, or SHA keypair
# Output: Anaplan JWT and token expiry time
# ================... | 29.87218 | 106 | 0.686383 | 512 | 3,973 | 5.224609 | 0.265625 | 0.020935 | 0.026168 | 0.028411 | 0.552523 | 0.48785 | 0.403364 | 0.381682 | 0.311028 | 0.311028 | 0 | 0.00489 | 0.176441 | 3,973 | 132 | 107 | 30.098485 | 0.812653 | 0.433929 | 0 | 0.245614 | 0 | 0 | 0.166979 | 0.011257 | 0 | 0 | 0 | 0 | 0 | 1 | 0.122807 | false | 0.017544 | 0.070175 | 0 | 0.350877 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
28631cb627e7dcbf9512e0e9d35ed83e8378693a | 427 | py | Python | startPWM.py | adeept/adeept_alter | 6adf00eb141405fc3abad44965f81ba7797dd962 | [
"MIT"
] | 1 | 2021-12-21T15:50:57.000Z | 2021-12-21T15:50:57.000Z | startPWM.py | adeept/adeept_alter | 6adf00eb141405fc3abad44965f81ba7797dd962 | [
"MIT"
] | 2 | 2021-03-14T22:05:42.000Z | 2021-07-19T22:13:37.000Z | startPWM.py | adeept/adeept_alter | 6adf00eb141405fc3abad44965f81ba7797dd962 | [
"MIT"
] | null | null | null | import Adafruit_PCA9685
pwm = Adafruit_PCA9685.PCA9685()
pwm.set_pwm_freq(50)
initPWM = 320
setPWM = initPWM
ctrlPort = 11
def main():
global setPWM
while 1:
commandInput = input()
if commandInput == 'w':
setPWM += 1
elif commandInput == 's':
setPWM -= 1
pwm.set_pwm(ctrlPort, 0,... | 16.423077 | 35 | 0.651054 | 54 | 427 | 5.037037 | 0.518519 | 0.066176 | 0.099265 | 0.125 | 0.132353 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073846 | 0.238876 | 427 | 26 | 36 | 16.423077 | 0.763077 | 0 | 0 | 0 | 0 | 0 | 0.004963 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.05 | 0 | 0.1 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
28658c7c561044400a64c09359dccf6abba3fb8e | 2,042 | py | Python | get_tracks.py | RamonPuon/Spotipy-Valence-Analysis | 05f48e068097839d3dbd47d06f69608e48d1ac16 | [
"MIT"
] | null | null | null | get_tracks.py | RamonPuon/Spotipy-Valence-Analysis | 05f48e068097839d3dbd47d06f69608e48d1ac16 | [
"MIT"
] | null | null | null | get_tracks.py | RamonPuon/Spotipy-Valence-Analysis | 05f48e068097839d3dbd47d06f69608e48d1ac16 | [
"MIT"
] | null | null | null | #cred.py, python script with my client ID and my client secret
import cred
import spotipy
from spotipy.oauth2 import SpotifyClientCredentials
import pandas as pd
client_credential_manager = SpotifyClientCredentials(client_id= cred.client_ID, client_secret= cred.client_SECRET)
sp = spotipy.Spotify(client_credentials_ma... | 39.269231 | 114 | 0.644466 | 264 | 2,042 | 4.80303 | 0.359848 | 0.031546 | 0.055205 | 0.031546 | 0.217666 | 0.181388 | 0.134069 | 0.088328 | 0.088328 | 0.088328 | 0 | 0.010198 | 0.231636 | 2,042 | 51 | 115 | 40.039216 | 0.79796 | 0.123898 | 0 | 0 | 0 | 0 | 0.112108 | 0.012332 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.117647 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
286a9f1d8d066c57291a41e5d9d48a731a2d4a0c | 541 | py | Python | templates/django/djangoRest/app_dir/user/test/test_user_views.py | david-osas/create-basic-app | 860fc579672855093ad8426fb01d010de4c7cff8 | [
"MIT"
] | 2 | 2020-12-01T11:33:36.000Z | 2020-12-01T12:25:49.000Z | django-rest-framework-boilerplate/app_dir/user/test/test_user_views.py | PiotrZak/lem-golem | 78f91f21b19725fca99c05d8c536330ef2785064 | [
"MIT"
] | 2 | 2020-11-25T14:38:57.000Z | 2020-11-25T22:55:25.000Z | templates/django/djangoRest/app_dir/user/test/test_user_views.py | david-osas/create-basic-app | 860fc579672855093ad8426fb01d010de4c7cff8 | [
"MIT"
] | 2 | 2020-11-26T08:59:50.000Z | 2021-03-30T20:01:06.000Z | from django.test import TestCase
from django.urls import reverse
from rest_framework.test import APIClient
from ...factories import UserFactory
class UserViewTest(TestCase):
def setUp(self):
self.client = APIClient()
self.user = UserFactory()
self.client.force_authenticate(user=self.user)
... | 28.473684 | 54 | 0.698706 | 66 | 541 | 5.636364 | 0.469697 | 0.080645 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006961 | 0.203327 | 541 | 18 | 55 | 30.055556 | 0.856148 | 0 | 0 | 0 | 0 | 0 | 0.018484 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
286dae799942d25528e620a011ce5d17032d1ce7 | 2,336 | py | Python | deep-learning-lab-00/binlogreg.py | BalderOdinson/Deep-Learning-Lab | 70786ff1be40fc829d64a644585c1d5683c76538 | [
"MIT"
] | null | null | null | deep-learning-lab-00/binlogreg.py | BalderOdinson/Deep-Learning-Lab | 70786ff1be40fc829d64a644585c1d5683c76538 | [
"MIT"
] | null | null | null | deep-learning-lab-00/binlogreg.py | BalderOdinson/Deep-Learning-Lab | 70786ff1be40fc829d64a644585c1d5683c76538 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Mon Mar 18 18:38:38 2019
@author: Oshikuru
"""
import numpy as np
import matplotlib.pyplot as plt
import random
import data
import pdb
import IPython
param_delta = 0.5
param_niter = 100
param_lambda = 0.01
def binlogreg_classify(X, w, b):
scores = np.dot(X, w) + b
ret... | 24.851064 | 141 | 0.610445 | 366 | 2,336 | 3.748634 | 0.371585 | 0.01312 | 0.010933 | 0.041545 | 0.135569 | 0.091837 | 0.048105 | 0.023324 | 0 | 0 | 0 | 0.037693 | 0.250428 | 2,336 | 94 | 142 | 24.851064 | 0.74586 | 0.26113 | 0 | 0.046512 | 0 | 0 | 0.017365 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046512 | false | 0 | 0.139535 | 0 | 0.232558 | 0.046512 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
286e9cde8312920eabbf75c1a2872023f23ceb28 | 778 | py | Python | LintCode/1103.py | RENHANFEI/LintCode | d572dee248ba4c2a95b52cd737d76c7297f4e7b4 | [
"CNRI-Python"
] | null | null | null | LintCode/1103.py | RENHANFEI/LintCode | d572dee248ba4c2a95b52cd737d76c7297f4e7b4 | [
"CNRI-Python"
] | null | null | null | LintCode/1103.py | RENHANFEI/LintCode | d572dee248ba4c2a95b52cd737d76c7297f4e7b4 | [
"CNRI-Python"
] | null | null | null | from collections import Counter
class Solution:
"""
@param nums: a list of integers
@return: return a boolean
"""
def isPossible(self, nums):
left = Counter(nums) # record nums not placed
end = Counter() # record subsequences ended with certain num
for num in ... | 25.933333 | 71 | 0.417738 | 83 | 778 | 3.915663 | 0.457831 | 0.129231 | 0.073846 | 0.049231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033163 | 0.496144 | 778 | 29 | 72 | 26.827586 | 0.795918 | 0.159383 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.052632 | 0 | 0.263158 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2870b3250a7dca1e04fe54265450ad0c248653be | 6,745 | py | Python | test/lib/mayaUsd/render/vp2RenderDelegate/testVP2RenderDelegatePointInstanceSelection.py | ika-rporter/maya-usd | 8f216a4fb955fc44c0abda55caa53ed295aaa625 | [
"Apache-2.0"
] | 507 | 2019-07-30T20:05:10.000Z | 2022-03-30T07:38:43.000Z | test/lib/mayaUsd/render/vp2RenderDelegate/testVP2RenderDelegatePointInstanceSelection.py | ika-rporter/maya-usd | 8f216a4fb955fc44c0abda55caa53ed295aaa625 | [
"Apache-2.0"
] | 1,188 | 2019-07-31T11:27:27.000Z | 2022-03-31T21:06:06.000Z | test/lib/mayaUsd/render/vp2RenderDelegate/testVP2RenderDelegatePointInstanceSelection.py | ika-rporter/maya-usd | 8f216a4fb955fc44c0abda55caa53ed295aaa625 | [
"Apache-2.0"
] | 165 | 2019-07-30T22:27:57.000Z | 2022-03-25T07:20:23.000Z | #!/usr/bin/env mayapy
#
# Copyright 2021 Autodesk
#
# 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 a... | 37.265193 | 100 | 0.697999 | 646 | 6,745 | 7.174923 | 0.374613 | 0.023301 | 0.031068 | 0.032362 | 0.281122 | 0.210356 | 0.198274 | 0.155124 | 0.142611 | 0.116289 | 0 | 0.009614 | 0.22891 | 6,745 | 180 | 101 | 37.472222 | 0.881561 | 0.219867 | 0 | 0.3 | 0 | 0 | 0.050873 | 0.024573 | 0 | 0 | 0 | 0 | 0.072727 | 1 | 0.081818 | false | 0 | 0.081818 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2871778d5e8e5178dee6f9e80da7e8ac737d84a0 | 5,443 | py | Python | cy_widgets/strategy/exchange/base.py | cragod/CYWidgets | b1df1e32c363ed9252737d3041a7557b1dc604fe | [
"MIT"
] | 1 | 2021-06-17T02:25:25.000Z | 2021-06-17T02:25:25.000Z | cy_widgets/strategy/exchange/base.py | cragod/CYWidgets | b1df1e32c363ed9252737d3041a7557b1dc604fe | [
"MIT"
] | null | null | null | cy_widgets/strategy/exchange/base.py | cragod/CYWidgets | b1df1e32c363ed9252737d3041a7557b1dc604fe | [
"MIT"
] | 1 | 2021-12-08T06:50:33.000Z | 2021-12-08T06:50:33.000Z | # -*- coding: utf-8 -*-
import numpy as np
import talib as ta
from abc import ABC, abstractproperty, abstractclassmethod, abstractmethod
class BaseExchangeStrategy(ABC):
"""交易策略基类"""
shortable = True # 能否做空
leverage = 1 # 策略杠杆
def __init__(self, *initial_data, **kwargs):
"""支持按字典方式传入参数信息"""... | 35.344156 | 165 | 0.533346 | 612 | 5,443 | 4.501634 | 0.271242 | 0.066788 | 0.094374 | 0.034846 | 0.405082 | 0.377495 | 0.377495 | 0.361525 | 0.351361 | 0.33902 | 0 | 0.032409 | 0.370751 | 5,443 | 153 | 166 | 35.575163 | 0.771971 | 0.182436 | 0 | 0.388235 | 0 | 0 | 0.018393 | 0.006286 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105882 | false | 0 | 0.035294 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2874251d928931a6c2a13448e5d757c4351cb292 | 2,163 | py | Python | examples/quickstart.py | miketlk/omfgp | 6e5a0f52f2688d81bde3e5169a37311c9517fe1d | [
"MIT"
] | null | null | null | examples/quickstart.py | miketlk/omfgp | 6e5a0f52f2688d81bde3e5169a37311c9517fe1d | [
"MIT"
] | null | null | null | examples/quickstart.py | miketlk/omfgp | 6e5a0f52f2688d81bde3e5169a37311c9517fe1d | [
"MIT"
] | 1 | 2021-08-16T10:19:52.000Z | 2021-08-16T10:19:52.000Z | import sys
import omfgp as gp
import time
if gp.USES_USCARD:
import uscard
from machine import Pin
def get_default_reader():
"""Return default smart card reader."""
if gp.USES_USCARD:
return uscard.Reader(name="Smart card reader",
ifaceId=2,
... | 32.283582 | 77 | 0.631993 | 299 | 2,163 | 4.371237 | 0.354515 | 0.053558 | 0.039786 | 0.058148 | 0.142311 | 0.142311 | 0.061209 | 0.061209 | 0 | 0 | 0 | 0.004353 | 0.256588 | 2,163 | 67 | 78 | 32.283582 | 0.808458 | 0.143782 | 0 | 0.045455 | 0 | 0 | 0.123085 | 0.014223 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068182 | false | 0 | 0.113636 | 0 | 0.25 | 0.136364 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
28742e12e6739c290a95e278f025627ff9c82803 | 685 | py | Python | basic/myunittest/test_timeit.py | fplust/python3-cookbook | 0eaca2e3631bb69deaf466c32023bbb2093513da | [
"Apache-2.0"
] | 1 | 2019-07-25T09:09:54.000Z | 2019-07-25T09:09:54.000Z | basic/myunittest/test_timeit.py | fplust/python3-cookbook | 0eaca2e3631bb69deaf466c32023bbb2093513da | [
"Apache-2.0"
] | null | null | null | basic/myunittest/test_timeit.py | fplust/python3-cookbook | 0eaca2e3631bb69deaf466c32023bbb2093513da | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
"""
Topic: 基准测试
Desc :
"""
from timeit import timeit
__author__ = 'Xiong Neng'
class Stock():
# 鼓励使用__slots__提升性能
__slots__ = ["name", "shares", "price"]
def __init__(self, name, shares, price):
self.name = name
self.shares = shares... | 17.125 | 58 | 0.563504 | 82 | 685 | 4.390244 | 0.536585 | 0.055556 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047619 | 0.264234 | 685 | 39 | 59 | 17.564103 | 0.666667 | 0.119708 | 0 | 0 | 0 | 0 | 0.201709 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.130435 | false | 0.043478 | 0.086957 | 0 | 0.304348 | 0.086957 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
28753e72046917448d518c1d4a909cdfe502ee60 | 7,276 | py | Python | tectosaur2/hmatrix/tree.py | tbenthompson/BIE_tutorials | 02cd56ab7e63e36afc4a10db17072076541aab77 | [
"MIT"
] | 15 | 2021-08-31T15:02:45.000Z | 2022-02-11T21:10:01.000Z | tectosaur2/hmatrix/tree.py | tbenthompson/BIE_tutorials | 02cd56ab7e63e36afc4a10db17072076541aab77 | [
"MIT"
] | 79 | 2021-08-29T15:35:39.000Z | 2022-03-25T14:56:42.000Z | tectosaur2/hmatrix/tree.py | tbenthompson/BIE_tutorials | 02cd56ab7e63e36afc4a10db17072076541aab77 | [
"MIT"
] | 3 | 2022-03-12T14:44:41.000Z | 2022-03-21T20:43:20.000Z | from dataclasses import dataclass
from typing import Optional
import matplotlib.pyplot as plt
import numpy as np
@dataclass()
class TreeNode:
idx_start: int
idx_end: int
center: np.ndarray
radius: float
is_leaf: bool
left: Optional["TreeNode"]
right: Optional["TreeNode"]
@dataclass()
cl... | 35.149758 | 94 | 0.665063 | 1,120 | 7,276 | 4.1375 | 0.23125 | 0.021148 | 0.01748 | 0.023306 | 0.255287 | 0.235218 | 0.169184 | 0.129909 | 0.099698 | 0.06107 | 0 | 0.007286 | 0.245465 | 7,276 | 206 | 95 | 35.320388 | 0.836794 | 0.325041 | 0 | 0.085271 | 0 | 0 | 0.006575 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.062016 | false | 0 | 0.031008 | 0.007752 | 0.302326 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2875e4f861693b2c0256a550012c98712e49a11c | 644 | py | Python | 2017/day2/corruptionChecksum.py | madeleine-adams/advent_of_code_2020 | 8f142a91d1a40390aad274c5e0513f50b168d029 | [
"MIT"
] | null | null | null | 2017/day2/corruptionChecksum.py | madeleine-adams/advent_of_code_2020 | 8f142a91d1a40390aad274c5e0513f50b168d029 | [
"MIT"
] | null | null | null | 2017/day2/corruptionChecksum.py | madeleine-adams/advent_of_code_2020 | 8f142a91d1a40390aad274c5e0513f50b168d029 | [
"MIT"
] | null | null | null | file = open('corruptionChecksum_input.txt', 'r')
spreadsheet = file.readlines()
def find_smallest(inputs):
smallest = int(inputs[0])
for value in inputs:
number = int(value)
if number < smallest:
smallest = number
return smallest
def find_largest(inputs):
largest = int(in... | 20.774194 | 48 | 0.636646 | 75 | 644 | 5.4 | 0.373333 | 0.02963 | 0.049383 | 0.064198 | 0.237037 | 0.237037 | 0.237037 | 0.237037 | 0.237037 | 0.237037 | 0 | 0.006383 | 0.270186 | 644 | 30 | 49 | 21.466667 | 0.855319 | 0 | 0 | 0.173913 | 0 | 0 | 0.045031 | 0.043478 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0 | 0 | 0.173913 | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
287609c52314ac1d737c0937fa4d8b3058a4d68f | 3,579 | py | Python | neurst/cli/inspect_checkpoint.py | ishine/neurst | 2ba322393fcfed4261b33f4a657e12bbe321baaa | [
"Apache-2.0"
] | 208 | 2020-11-12T03:56:41.000Z | 2022-03-27T07:01:27.000Z | neurst/cli/inspect_checkpoint.py | ishine/neurst | 2ba322393fcfed4261b33f4a657e12bbe321baaa | [
"Apache-2.0"
] | 16 | 2021-02-20T07:57:03.000Z | 2022-01-27T07:36:31.000Z | neurst/cli/inspect_checkpoint.py | ishine/neurst | 2ba322393fcfed4261b33f4a657e12bbe321baaa | [
"Apache-2.0"
] | 33 | 2020-11-12T04:44:50.000Z | 2022-03-23T09:22:29.000Z | # Copyright 2020 ByteDance 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 or agreed to in writin... | 41.137931 | 103 | 0.658843 | 465 | 3,579 | 4.851613 | 0.305376 | 0.046543 | 0.049645 | 0.037234 | 0.215869 | 0.152039 | 0.152039 | 0.134752 | 0.134752 | 0.134752 | 0 | 0.009304 | 0.249232 | 3,579 | 86 | 104 | 41.616279 | 0.830294 | 0.153954 | 0 | 0.181818 | 0 | 0 | 0.232581 | 0.060717 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015152 | false | 0 | 0.075758 | 0 | 0.090909 | 0.318182 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
28762253888319609860c7b7288acdb032a74ac2 | 1,621 | py | Python | homepage/migrations/0005_professor_test_data.py | oriAdler/ClassRater | a68492ea8eab1475ab604da9d6efc99c73954d4b | [
"MIT"
] | 1 | 2021-04-12T18:05:12.000Z | 2021-04-12T18:05:12.000Z | homepage/migrations/0005_professor_test_data.py | ellaml/ClassRater | d786f9fb4bb51041590e46165badf12a7beef67e | [
"MIT"
] | 103 | 2021-03-09T07:12:20.000Z | 2021-05-23T06:13:21.000Z | homepage/migrations/0005_professor_test_data.py | ellaml/ClassRater | d786f9fb4bb51041590e46165badf12a7beef67e | [
"MIT"
] | 17 | 2021-03-09T07:07:44.000Z | 2021-05-02T16:31:45.000Z | from django.db import migrations, transaction
class Migration(migrations.Migration):
dependencies = [
('homepage', '0001_initial'),
('homepage', '0003_course_test_data'),
('homepage', '0004_followed_courses_test_data'),
]
def generate_data(apps, schema_editor):
... | 33.770833 | 76 | 0.595312 | 161 | 1,621 | 5.801242 | 0.403727 | 0.051392 | 0.068522 | 0.077088 | 0.173448 | 0.062099 | 0 | 0 | 0 | 0 | 0 | 0.050314 | 0.313387 | 1,621 | 47 | 77 | 34.489362 | 0.788859 | 0.120913 | 0 | 0 | 0 | 0 | 0.105608 | 0.037873 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030303 | false | 0 | 0.121212 | 0 | 0.242424 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2876482aeef7877b4183338fac2e85b74a0eaedf | 1,220 | py | Python | scripts/hsvanalyzer.py | acmerobotics/relic-recovery | 4ff05bbf906829aef0a98bc32691e5d0eadc1d8f | [
"MIT"
] | 32 | 2018-01-17T03:00:02.000Z | 2022-01-15T18:30:48.000Z | scripts/hsvanalyzer.py | acmerobotics/relic-recovery | 4ff05bbf906829aef0a98bc32691e5d0eadc1d8f | [
"MIT"
] | 4 | 2017-10-21T20:28:27.000Z | 2018-04-02T05:27:00.000Z | scripts/hsvanalyzer.py | acmerobotics/relic-recovery | 4ff05bbf906829aef0a98bc32691e5d0eadc1d8f | [
"MIT"
] | 7 | 2018-02-21T00:59:20.000Z | 2021-01-21T21:52:17.000Z | import cv2
import numpy as np
from matplotlib import pyplot as plt
from util import resize_min_dim, smart_hsv_range
IMAGE_FILENAME = '/Users/ryanbrott/Desktop/36.jpg'
MIN_DIMENSION = 480
# LOWER_HSV, UPPER_HSV = (170, 80, 0), (7, 255, 255)
LOWER_HSV, UPPER_HSV = (175, 80, 80), (22, 255, 255)
image = cv2.imread(IMAGE_... | 23.461538 | 76 | 0.705738 | 217 | 1,220 | 3.834101 | 0.35023 | 0.072115 | 0.079327 | 0.086538 | 0.110577 | 0.110577 | 0 | 0 | 0 | 0 | 0 | 0.074723 | 0.111475 | 1,220 | 51 | 77 | 23.921569 | 0.692804 | 0.040984 | 0 | 0 | 0 | 0 | 0.060788 | 0.026541 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2878821e6aef46d6ef7a165e5a576c9bd3a04754 | 922 | py | Python | GithubRepositoryStatistics-Python3/Repository.py | SmileZXLee/GithubRepositoryStatistics | 62eeddd715aecf268c48b39aa596f1168a3c2661 | [
"MIT"
] | 1 | 2020-07-15T14:12:53.000Z | 2020-07-15T14:12:53.000Z | GithubRepositoryStatistics-Python3/Repository.py | SmileZXLee/GithubRepositoryStatistics | 62eeddd715aecf268c48b39aa596f1168a3c2661 | [
"MIT"
] | null | null | null | GithubRepositoryStatistics-Python3/Repository.py | SmileZXLee/GithubRepositoryStatistics | 62eeddd715aecf268c48b39aa596f1168a3c2661 | [
"MIT"
] | null | null | null | #coding=utf-8
__author__ = 'zxlee'
__github__ = 'https://github.com/SmileZXLee/GithubRepositoryStatistics'
class Repository :
def __init__(self,brief,url,language,star_count,fork_count,star_url,fork_url,is_fork):
#仓库介绍
self.brief = brief.replace('\r','').replace('\n','').replace('\t','').strip()
#仓库url
... | 26.342857 | 87 | 0.627983 | 117 | 922 | 4.649573 | 0.367521 | 0.115809 | 0.095588 | 0.051471 | 0.128676 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005579 | 0.222343 | 922 | 34 | 88 | 27.117647 | 0.753138 | 0.08243 | 0 | 0.095238 | 0 | 0 | 0.095923 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0 | 0 | 0.095238 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
287c433b713a1b08f3c14e17afb0adcebbc1cab6 | 3,242 | py | Python | src/www/__init__.py | jbrezmorf/codecritic | 190df65f2f12667469b55abed48a45de5dc18965 | [
"MIT"
] | null | null | null | src/www/__init__.py | jbrezmorf/codecritic | 190df65f2f12667469b55abed48a45de5dc18965 | [
"MIT"
] | 20 | 2019-05-26T12:13:19.000Z | 2020-09-09T16:37:09.000Z | src/www/__init__.py | jbrezmorf/codecritic | 190df65f2f12667469b55abed48a45de5dc18965 | [
"MIT"
] | 1 | 2020-04-13T09:02:48.000Z | 2020-04-13T09:02:48.000Z | #!/bin/python3
# author: Jan Hybs
import enum
import pathlib
from bson import objectid
from flask import Flask, redirect, session, render_template, url_for
import flask.json
from flask_cors import CORS
from loguru import logger
from entities.crates import ICrate
from env import Env
from functools import wraps
def ... | 25.936 | 82 | 0.612585 | 381 | 3,242 | 5.091864 | 0.341207 | 0.021649 | 0.03866 | 0.015464 | 0.163402 | 0.163402 | 0.135567 | 0.135567 | 0.116495 | 0.070103 | 0 | 0.001717 | 0.281616 | 3,242 | 124 | 83 | 26.145161 | 0.831258 | 0.165022 | 0 | 0.298701 | 0 | 0 | 0.046486 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12987 | false | 0 | 0.168831 | 0.012987 | 0.584416 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
287d78c0342acb7571ce49d00f17612456b0c4a2 | 18,740 | py | Python | pages/getAltData.py | ngocuong0105/ts_webapp | 4399862ead6eb2d0c993d36fffe14967984ad4b2 | [
"MIT"
] | null | null | null | pages/getAltData.py | ngocuong0105/ts_webapp | 4399862ead6eb2d0c993d36fffe14967984ad4b2 | [
"MIT"
] | null | null | null | pages/getAltData.py | ngocuong0105/ts_webapp | 4399862ead6eb2d0c993d36fffe14967984ad4b2 | [
"MIT"
] | null | null | null | import base64
from collections import deque
from io import BytesIO
import os
import time
from PIL import Image
import pandas as pd
from pandas.core.arrays import boolean
import praw
import requests
import streamlit as st
import datetime
import pytesseract
pytesseract.pytesseract.tesseract_cmd ='context/tesseract'
impo... | 44.513064 | 143 | 0.596265 | 2,293 | 18,740 | 4.708242 | 0.169647 | 0.015006 | 0.023342 | 0.013338 | 0.373379 | 0.361708 | 0.318729 | 0.271397 | 0.245924 | 0.2387 | 0 | 0.009618 | 0.295411 | 18,740 | 421 | 144 | 44.513064 | 0.80771 | 0.097652 | 0 | 0.271028 | 0 | 0.015576 | 0.147579 | 0.015496 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043614 | false | 0.034268 | 0.049844 | 0 | 0.133956 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
287e24f0cb26f8666ac36c1761cfbf6bd7afe7ac | 252 | py | Python | PythonFiles/classes2.py | IamVaibhavsar/Python_Files | 283d73929a3e11955c71499407c4f8bff56e4273 | [
"MIT"
] | null | null | null | PythonFiles/classes2.py | IamVaibhavsar/Python_Files | 283d73929a3e11955c71499407c4f8bff56e4273 | [
"MIT"
] | null | null | null | PythonFiles/classes2.py | IamVaibhavsar/Python_Files | 283d73929a3e11955c71499407c4f8bff56e4273 | [
"MIT"
] | 1 | 2019-07-26T15:25:21.000Z | 2019-07-26T15:25:21.000Z | class Student:
def __init__(self,name,major,gpa):
self.name=name
self.major=major
self.gpa=gpa
def on_honor_roll (self):
if self.gpa>=8.5:
return True
else:
return False | 22.909091 | 39 | 0.519841 | 32 | 252 | 3.90625 | 0.5625 | 0.128 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013072 | 0.392857 | 252 | 11 | 40 | 22.909091 | 0.803922 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
28815fa52327ea951a0284d87cd467c55924b39e | 761 | py | Python | 540. Single Element in a Sorted Array.py | Into-Y0u/Github-Baby | 5e4e6b02f49c2c99533289be9d49911006cad919 | [
"MIT"
] | 2 | 2022-01-25T04:30:26.000Z | 2022-01-25T10:36:15.000Z | 540. Single Element in a Sorted Array.py | Into-Y0u/Leetcode-Baby | 681ad4df01ee908f76d888aa4ccc10f04c03c56f | [
"MIT"
] | null | null | null | 540. Single Element in a Sorted Array.py | Into-Y0u/Leetcode-Baby | 681ad4df01ee908f76d888aa4ccc10f04c03c56f | [
"MIT"
] | null | null | null | class Solution:
def singleNonDuplicate(self, nums: List[int]) -> int:
if len(nums) == 1:
return nums[0]
start = 0
end = len(nums) - 1
while start <= end:
mid = start + ((end - start) // 2)
# Check if mid is the single number
if start < ... | 34.590909 | 90 | 0.442838 | 93 | 761 | 3.623656 | 0.354839 | 0.145401 | 0.097923 | 0.077151 | 0.163205 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0311 | 0.450723 | 761 | 21 | 91 | 36.238095 | 0.77512 | 0.13929 | 0 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2881d51b1365029af80a4c7b248cb3bb598a7958 | 3,466 | py | Python | frispy/throw_data.py | carrino/FrisPy | db9e59f465ee25d1c037d580c37da8f35b930b50 | [
"MIT"
] | null | null | null | frispy/throw_data.py | carrino/FrisPy | db9e59f465ee25d1c037d580c37da8f35b930b50 | [
"MIT"
] | null | null | null | frispy/throw_data.py | carrino/FrisPy | db9e59f465ee25d1c037d580c37da8f35b930b50 | [
"MIT"
] | null | null | null | # Copyright (c) 2021 John Carrino
import struct
from dataclasses import dataclass
import numpy as np
from scipy.spatial.transform import Rotation
@dataclass
class ThrowData:
NUM_POINTS = 2000
SENSORS_GRAVITY_STANDARD = 9.80665
SENSORS_DPS_TO_RADS = 0.017453293
OUTPUT_SCALE_FACTOR_400G = (SENSORS_GRAVI... | 35.731959 | 124 | 0.638777 | 400 | 3,466 | 5.435 | 0.2675 | 0.035419 | 0.054738 | 0.025299 | 0.283349 | 0.23827 | 0.218951 | 0.188592 | 0.188592 | 0.188592 | 0 | 0.036595 | 0.25101 | 3,466 | 96 | 125 | 36.104167 | 0.800847 | 0.008944 | 0 | 0.1625 | 0 | 0 | 0.003205 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0875 | false | 0 | 0.05 | 0 | 0.425 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
288275f551eb96263ac0a6a9893bc8305effff9d | 7,754 | py | Python | test/test_hankelutils.py | hlatkydavid/vnmrjpy | 48707a1000dc87e646e37c8bd686e695bd31a61e | [
"MIT"
] | null | null | null | test/test_hankelutils.py | hlatkydavid/vnmrjpy | 48707a1000dc87e646e37c8bd686e695bd31a61e | [
"MIT"
] | null | null | null | test/test_hankelutils.py | hlatkydavid/vnmrjpy | 48707a1000dc87e646e37c8bd686e695bd31a61e | [
"MIT"
] | null | null | null | import unittest
import vnmrjpy as vj
import numpy as np
import matplotlib.pyplot as plt
import time
#import cupy as cp
RP={'rcvrs':4,'filter_size':(11,7),'virtualcoilboost':False}
PLOTTING = False
class Test_hankelutils(unittest.TestCase):
def test_lvl2_hankel_average(self):
#rp={'rcvrs':4,'filter_s... | 39.969072 | 79 | 0.596595 | 1,042 | 7,754 | 4.314779 | 0.119962 | 0.044484 | 0.032028 | 0.05605 | 0.741103 | 0.686165 | 0.615436 | 0.597865 | 0.572286 | 0.559164 | 0 | 0.069173 | 0.22814 | 7,754 | 193 | 80 | 40.176166 | 0.682038 | 0.049007 | 0 | 0.442748 | 0 | 0 | 0.159994 | 0 | 0 | 0 | 0 | 0 | 0.114504 | 1 | 0.053435 | false | 0 | 0.038168 | 0 | 0.099237 | 0.061069 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
28878c846aed485a7bc9a73365300409e1defb8b | 672 | py | Python | leetcode/editor/cn/FindKPairsWithSmallestSums.py | huangge1199/leet-code-python | 5d01bbb6f12a495ea7ea0a90b5b3b4aa92bcc2f7 | [
"Apache-2.0"
] | 1 | 2022-02-12T13:55:41.000Z | 2022-02-12T13:55:41.000Z | leetcode/editor/cn/FindKPairsWithSmallestSums.py | huangge1199/leet-code-python | 5d01bbb6f12a495ea7ea0a90b5b3b4aa92bcc2f7 | [
"Apache-2.0"
] | null | null | null | leetcode/editor/cn/FindKPairsWithSmallestSums.py | huangge1199/leet-code-python | 5d01bbb6f12a495ea7ea0a90b5b3b4aa92bcc2f7 | [
"Apache-2.0"
] | null | null | null | # 373:查找和最小的 K 对数字
# leetcode submit region begin(Prohibit modification and deletion)
from heapq import heappop, heappush
from typing import List
class Solution:
def kSmallestPairs(self, nums1: List[int], nums2: List[int], k: int) -> List[List[int]]:
m, n = len(nums1), len(nums2)
ans = []
... | 33.6 | 92 | 0.578869 | 98 | 672 | 3.959184 | 0.459184 | 0.054124 | 0.085052 | 0.159794 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037422 | 0.284226 | 672 | 19 | 93 | 35.368421 | 0.769231 | 0.214286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
288bed12c190fb35b526a110b53eefe990c1f7a5 | 2,505 | py | Python | urls.py | Shakil-1501/Quizdjango | 5e201d0f05ce2a49d36484009ff6032821365bc6 | [
"MIT"
] | null | null | null | urls.py | Shakil-1501/Quizdjango | 5e201d0f05ce2a49d36484009ff6032821365bc6 | [
"MIT"
] | null | null | null | urls.py | Shakil-1501/Quizdjango | 5e201d0f05ce2a49d36484009ff6032821365bc6 | [
"MIT"
] | null | null | null | # Core Django imports.
from django.urls import path
from django.shortcuts import redirect, render
# LMS app imports
from lms.views.course.course_views import (
CourseListView,fetch_questions,compute_stats,display_lp,Edit_quiz,preview_quiz,fetch_questions_oneatatime,compute_html,enter_comment,quiz_lp
)
... | 22.567568 | 145 | 0.621956 | 267 | 2,505 | 5.651685 | 0.247191 | 0.037111 | 0.046388 | 0.037773 | 0.037111 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003202 | 0.251896 | 2,505 | 110 | 146 | 22.772727 | 0.802028 | 0.113373 | 0 | 0.196721 | 0 | 0 | 0.187769 | 0.05829 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.114754 | 0 | 0.114754 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2893612d9bb5f812e7e498a10ba625355b7d1dee | 1,794 | py | Python | clientV4.py | sekranmert/AWS-Arduino-SmartHomeSystem | 80f4b6a5871fccb3bfc065d3fac5ba09feec525a | [
"MIT"
] | 1 | 2021-06-24T14:24:39.000Z | 2021-06-24T14:24:39.000Z | clientV4.py | sekranmert/AWS-Arduino-SmartHomeSystem | 80f4b6a5871fccb3bfc065d3fac5ba09feec525a | [
"MIT"
] | null | null | null | clientV4.py | sekranmert/AWS-Arduino-SmartHomeSystem | 80f4b6a5871fccb3bfc065d3fac5ba09feec525a | [
"MIT"
] | null | null | null | import socket
import threading
helpMessage = '-q -- close connection\n-l -- list of connected devices\n-t -- server time \n-s "arduino/client ""reciever name" "message" -- send message (messages can be max 100 character) \nif reciever is an arduino board it can be controlled by this messsage:\n -s arduino "arduino ... | 32.618182 | 312 | 0.545151 | 203 | 1,794 | 4.807882 | 0.453202 | 0.040984 | 0.018443 | 0.012295 | 0.055328 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031614 | 0.329989 | 1,794 | 54 | 313 | 33.222222 | 0.780366 | 0.018952 | 0 | 0.222222 | 0 | 0.022222 | 0.272941 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044444 | false | 0 | 0.044444 | 0 | 0.088889 | 0.133333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
289396e6e160ca17355478e692561082d33da8f2 | 3,885 | py | Python | data_loader/data_loaders.py | ChunpingQiu/Sen2LCZ_CNN | 5576567da658f945321280f37ff8d9bf46dd1818 | [
"MIT"
] | null | null | null | data_loader/data_loaders.py | ChunpingQiu/Sen2LCZ_CNN | 5576567da658f945321280f37ff8d9bf46dd1818 | [
"MIT"
] | null | null | null | data_loader/data_loaders.py | ChunpingQiu/Sen2LCZ_CNN | 5576567da658f945321280f37ff8d9bf46dd1818 | [
"MIT"
] | 1 | 2021-08-19T03:35:05.000Z | 2021-08-19T03:35:05.000Z | from torchvision import datasets, transforms
from base import BaseDataLoader
from torch.utils.data import Dataset, DataLoader
import pandas as pd
import torch
from skimage import io#, transform
import numpy as np
class MnistDataLoader(BaseDataLoader):
"""
MNIST data loading demo using BaseDataLoader
"""
... | 32.647059 | 121 | 0.621107 | 477 | 3,885 | 4.867925 | 0.289308 | 0.05168 | 0.028424 | 0.028424 | 0.368648 | 0.326443 | 0.326443 | 0.296296 | 0.296296 | 0.296296 | 0 | 0.020422 | 0.256371 | 3,885 | 118 | 122 | 32.923729 | 0.783316 | 0.200257 | 0 | 0.16129 | 0 | 0 | 0.021783 | 0 | 0 | 0 | 0 | 0 | 0.032258 | 1 | 0.129032 | false | 0 | 0.112903 | 0.016129 | 0.387097 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
28957d205b560942a43fe20af3ee47c7d8d34a15 | 591 | py | Python | eval_predictions.py | uporwal/sigir-2019-ecom-challenge | bffa7f99930321ad5d86e0cddd3c9ddfb98ba3d2 | [
"MIT"
] | 7 | 2019-06-05T01:42:54.000Z | 2020-07-31T04:31:47.000Z | eval_predictions.py | uporwal/sigir-2019-ecom-challenge | bffa7f99930321ad5d86e0cddd3c9ddfb98ba3d2 | [
"MIT"
] | 5 | 2019-06-09T15:11:47.000Z | 2019-06-28T18:35:48.000Z | eval_predictions.py | uporwal/sigir-2019-ecom-challenge | bffa7f99930321ad5d86e0cddd3c9ddfb98ba3d2 | [
"MIT"
] | 5 | 2019-06-04T17:06:33.000Z | 2021-01-15T11:14:43.000Z | import evaluation_script
import argparse
parser = argparse.ArgumentParser(description='Evaluation script used in the eBay SIGIR 2019 eCommerce Search Challenge.')
parser.add_argument('-g', '--ground-truth-file', required=True, help="Ground truth file")
parser.add_argument('-p', '--prediction-file', required=True, help... | 45.461538 | 121 | 0.781726 | 79 | 591 | 5.708861 | 0.481013 | 0.10643 | 0.113082 | 0.088692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007339 | 0.077834 | 591 | 12 | 122 | 49.25 | 0.820183 | 0 | 0 | 0 | 0 | 0 | 0.296108 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
289d03fd3a78072e9344f01958c2c279a5179efe | 9,092 | py | Python | modules/Manager.py | jurajkula/IBT | 7b09f6d331433bfbf3e7955754a36b69b332bb4e | [
"MIT"
] | 3 | 2019-05-16T18:54:49.000Z | 2019-10-21T11:12:50.000Z | modules/Manager.py | jurajkula/IBT | 7b09f6d331433bfbf3e7955754a36b69b332bb4e | [
"MIT"
] | null | null | null | modules/Manager.py | jurajkula/IBT | 7b09f6d331433bfbf3e7955754a36b69b332bb4e | [
"MIT"
] | null | null | null | import os
import time
from os import mkdir
from os.path import isdir
from threading import Lock
import cv2
import imutils
from modules.Camera import Detect
from modules.Camera.CameraHandler import CameraHandler
from modules.Config import Config
from modules.Fusion import Fusion
from modules.Logger.Logger import Logge... | 34.439394 | 114 | 0.478883 | 799 | 9,092 | 5.438048 | 0.20025 | 0.069965 | 0.017722 | 0.041427 | 0.409206 | 0.364327 | 0.364327 | 0.339241 | 0.339241 | 0.339241 | 0 | 0.019642 | 0.428839 | 9,092 | 263 | 115 | 34.570342 | 0.817061 | 0.010339 | 0 | 0.5311 | 0 | 0 | 0.023574 | 0.002446 | 0 | 0 | 0.000445 | 0 | 0 | 1 | 0.033493 | false | 0.004785 | 0.062201 | 0.004785 | 0.114833 | 0.004785 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
289e8099349c64172c6b2bf0ba568b861c6f1152 | 5,809 | py | Python | train.py | okwrtdsh/3D-ResNets-PyTorch | f36a32ea8b283524d1d102937c49689b1f475b5f | [
"MIT"
] | null | null | null | train.py | okwrtdsh/3D-ResNets-PyTorch | f36a32ea8b283524d1d102937c49689b1f475b5f | [
"MIT"
] | null | null | null | train.py | okwrtdsh/3D-ResNets-PyTorch | f36a32ea8b283524d1d102937c49689b1f475b5f | [
"MIT"
] | null | null | null | import torch
from torch.autograd import Variable
import time
import os
import sys
import numpy as np
from utils import AverageMeter, calculate_accuracy, save_gif, accuracy
from models.binarized_modules import binarizef
def train_epoch(epoch, data_loader, model, criterion, optimizer, opt,
epoch_logger... | 36.30625 | 88 | 0.484249 | 665 | 5,809 | 4.088722 | 0.215038 | 0.03972 | 0.015447 | 0.014711 | 0.365943 | 0.365943 | 0.314454 | 0.290916 | 0.273262 | 0.26039 | 0 | 0.026594 | 0.36564 | 5,809 | 159 | 89 | 36.534591 | 0.711262 | 0.119125 | 0 | 0.346457 | 0 | 0 | 0.143222 | 0.018442 | 0 | 0 | 0 | 0 | 0.007874 | 1 | 0.007874 | false | 0 | 0.062992 | 0 | 0.070866 | 0.03937 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
289fb47f080457beca96ad6fa33ec1f46323cf2b | 6,506 | py | Python | commands/misc/settings.py | ii-Python/Prism | a404a61ddb16d045aa29d81908ce4ad80b24e24d | [
"MIT"
] | 6 | 2020-09-28T13:19:37.000Z | 2021-07-13T10:37:22.000Z | commands/misc/settings.py | BenjaminGotBanned/Prism | a404a61ddb16d045aa29d81908ce4ad80b24e24d | [
"MIT"
] | 2 | 2020-10-06T17:59:40.000Z | 2020-10-06T20:12:39.000Z | commands/misc/settings.py | BenjaminGotBanned/Prism | a404a61ddb16d045aa29d81908ce4ad80b24e24d | [
"MIT"
] | 3 | 2021-01-05T13:33:58.000Z | 2021-07-13T10:37:37.000Z | # Modules
import discord
from datetime import date
from discord import Embed
from json import loads, dumps
from assets.prism import Tools
from discord.ext import commands
# Main Command Class
class Settings(commands.Cog):
def __init__(self, bot):
self.bot = bot
self.desc = "Changes server settin... | 29.306306 | 196 | 0.527206 | 765 | 6,506 | 4.418301 | 0.215686 | 0.039053 | 0.049704 | 0.063905 | 0.365089 | 0.365089 | 0.345562 | 0.238462 | 0.215976 | 0.197041 | 0 | 0.004392 | 0.335075 | 6,506 | 221 | 197 | 29.438914 | 0.776699 | 0.005841 | 0 | 0.234783 | 0 | 0.017391 | 0.23979 | 0.008045 | 0 | 0 | 0.002475 | 0 | 0 | 1 | 0.017391 | false | 0 | 0.052174 | 0 | 0.182609 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
28a230764b88abf38e3cb6d2f0cf4df9e3778896 | 970 | py | Python | core/test.py | awesome-archive/muzero-pytorch | 2ff4ea145097050031d6026f0aa1a97de72d702d | [
"MIT"
] | null | null | null | core/test.py | awesome-archive/muzero-pytorch | 2ff4ea145097050031d6026f0aa1a97de72d702d | [
"MIT"
] | null | null | null | core/test.py | awesome-archive/muzero-pytorch | 2ff4ea145097050031d6026f0aa1a97de72d702d | [
"MIT"
] | null | null | null | import torch
from .mcts import MCTS, Node
from .utils import select_action
def test(config, model, episodes, device, render):
model.to(device)
model.eval()
test_reward = 0
env = config.new_game()
with torch.no_grad():
for ep_i in range(episodes):
done = False
ep_r... | 31.290323 | 93 | 0.565979 | 115 | 970 | 4.643478 | 0.486957 | 0.05618 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00774 | 0.334021 | 970 | 30 | 94 | 32.333333 | 0.818885 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.12 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
953703edf77bdad68e1e40c1a564d92c76b7a5a5 | 1,824 | pyde | Python | listing_70/listing_70.pyde | tiranderel/2019-fall-polytech-cs | 67f0482a0f143381f9b494a4348d6436ce8f8c1e | [
"MIT"
] | null | null | null | listing_70/listing_70.pyde | tiranderel/2019-fall-polytech-cs | 67f0482a0f143381f9b494a4348d6436ce8f8c1e | [
"MIT"
] | null | null | null | listing_70/listing_70.pyde | tiranderel/2019-fall-polytech-cs | 67f0482a0f143381f9b494a4348d6436ce8f8c1e | [
"MIT"
] | null | null | null | import math
class MySuperBall:
x=0
y=0
radius=0
speed=0
counter=0
previousBall=None
vector = 1
def render (self):
noStroke ()
fill (200 , 100)
ellipse (self.x,self.y,self.radius , self.radius )
stroke (10)
strokeWeight (2)
... | 26.057143 | 75 | 0.533991 | 218 | 1,824 | 4.37156 | 0.330275 | 0.113326 | 0.028332 | 0.03148 | 0.054565 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05348 | 0.354167 | 1,824 | 69 | 76 | 26.434783 | 0.755518 | 0 | 0 | 0.065574 | 0 | 0 | 0.010826 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.098361 | false | 0 | 0.016393 | 0 | 0.245902 | 0.016393 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
953906e1815512ae7854e463509fe51bfa7374f8 | 1,340 | py | Python | src/carim_discord_bot/discord_client/member_count.py | schana/carim-discord-bot | c1f5e868404744667156af7ad6d244939998b5a2 | [
"Apache-2.0"
] | 14 | 2020-04-06T17:58:09.000Z | 2022-02-28T13:29:35.000Z | src/carim_discord_bot/discord_client/member_count.py | schana/carim-discord-bot | c1f5e868404744667156af7ad6d244939998b5a2 | [
"Apache-2.0"
] | 48 | 2020-04-05T11:24:10.000Z | 2021-03-10T08:12:19.000Z | src/carim_discord_bot/discord_client/member_count.py | schana/carim-discord-bot | c1f5e868404744667156af7ad6d244939998b5a2 | [
"Apache-2.0"
] | 12 | 2020-03-31T15:08:56.000Z | 2021-09-07T17:54:49.000Z | import asyncio
import logging
import discord
from carim_discord_bot import managed_service, config
from carim_discord_bot.discord_client import discord_service
log = logging.getLogger(__name__)
class MemberCountService(managed_service.ManagedService):
async def handle_message(self, message: managed_service.Mes... | 31.162791 | 102 | 0.698507 | 159 | 1,340 | 5.597484 | 0.327044 | 0.123596 | 0.121348 | 0.074157 | 0.189888 | 0.159551 | 0.080899 | 0 | 0 | 0 | 0 | 0.003887 | 0.23209 | 1,340 | 42 | 103 | 31.904762 | 0.86103 | 0 | 0 | 0 | 0 | 0 | 0.049254 | 0.021642 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032258 | false | 0.032258 | 0.16129 | 0 | 0.290323 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
953acd7416847beb9014f4f513c188884ed30577 | 567 | py | Python | GAPullTest.py | wrashi/GAReport | b58fb1ef8a8984761ba417879aa52c4100c61a0b | [
"Unlicense"
] | null | null | null | GAPullTest.py | wrashi/GAReport | b58fb1ef8a8984761ba417879aa52c4100c61a0b | [
"Unlicense"
] | null | null | null | GAPullTest.py | wrashi/GAReport | b58fb1ef8a8984761ba417879aa52c4100c61a0b | [
"Unlicense"
] | null | null | null | #!/usr/bin/env python3
from GAReport import GAReport
VIEW_ID = 'PutViewIDHere'
DIMENSIONS = ["Page", ]
METRICS = ["Pageviews", "Unique Pageviews", "Avg. Time on Page", "Entrances", "Bounce Rate", "% Exit", "Page Value"]
# Use these instructions for creating single and multiple filters: https://developers.google.com... | 43.615385 | 153 | 0.75485 | 71 | 567 | 6 | 0.760563 | 0.028169 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005871 | 0.098765 | 567 | 13 | 154 | 43.615385 | 0.827789 | 0.301587 | 0 | 0 | 0 | 0 | 0.329949 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
953ca9b5b1450ae6da266d252be6ca5bb7c74e70 | 14,525 | py | Python | model.py | coolEphemeroptera/AESRC2020 | b64cdeeaaf74e8c1a741930b3a47dc8dcadca8de | [
"Apache-2.0"
] | 35 | 2020-09-26T13:40:16.000Z | 2022-03-22T19:42:20.000Z | model.py | coolEphemeroptera/ARNet | b64cdeeaaf74e8c1a741930b3a47dc8dcadca8de | [
"Apache-2.0"
] | 4 | 2021-04-10T13:05:52.000Z | 2022-03-14T03:22:32.000Z | model.py | coolEphemeroptera/ARNet | b64cdeeaaf74e8c1a741930b3a47dc8dcadca8de | [
"Apache-2.0"
] | 7 | 2020-09-26T15:52:45.000Z | 2021-06-11T05:05:23.000Z | from resnet import resnet18_,resnet34_,resnet50_,resnet101_, resnet152_
from keras.layers import Input, Dense, Lambda,Dropout,Conv2D,Activation,Bidirectional,GlobalAveragePooling1D,\
BatchNormalization,Reshape
from keras_layer_normalization import LayerNormalization
from keras.layers.cudnn_recurrent import CuDN... | 34.748804 | 112 | 0.497969 | 1,571 | 14,525 | 4.360917 | 0.16168 | 0.016348 | 0.014304 | 0.010217 | 0.370311 | 0.316158 | 0.257773 | 0.237921 | 0.207561 | 0.173113 | 0 | 0.021699 | 0.336867 | 14,525 | 417 | 113 | 34.832134 | 0.689576 | 0.064441 | 0 | 0.269625 | 0 | 0 | 0.07716 | 0.010955 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05802 | false | 0 | 0.040956 | 0.023891 | 0.156997 | 0.013652 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
953e8e8b09e196ff5d7362c6a2eeb02c08425111 | 15,517 | py | Python | blackjack.py | hackerboy9/blackjack | 1346642e353719ab68c0dc3573aa33b688431bf8 | [
"MIT"
] | null | null | null | blackjack.py | hackerboy9/blackjack | 1346642e353719ab68c0dc3573aa33b688431bf8 | [
"MIT"
] | 1 | 2020-10-25T10:16:37.000Z | 2020-10-25T10:16:37.000Z | blackjack.py | hackerboy9/blackjack | 1346642e353719ab68c0dc3573aa33b688431bf8 | [
"MIT"
] | 2 | 2017-07-16T08:00:29.000Z | 2020-10-06T14:48:18.000Z | from collections import MutableMapping, MutableSet, namedtuple
from operator import itemgetter
class Node(namedtuple("Node", "value, left, right, red")):
__slots__ = ()
def size(self):
"""
Recursively find size of a tree. Slow.
"""
if self is NULL:
return 0
... | 29.783109 | 82 | 0.566475 | 2,053 | 15,517 | 4.204579 | 0.166098 | 0.024096 | 0.014018 | 0.015639 | 0.361214 | 0.29437 | 0.237373 | 0.199722 | 0.143652 | 0.135079 | 0 | 0.00946 | 0.339176 | 15,517 | 520 | 83 | 29.840385 | 0.832358 | 0.268802 | 0 | 0.367273 | 0 | 0 | 0.017792 | 0 | 0 | 0 | 0 | 0 | 0.072727 | 1 | 0.181818 | false | 0 | 0.010909 | 0.025455 | 0.330909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
954332209f4c21416110fe7a318ebf31b6100c2e | 3,566 | py | Python | Terminal_Bot.py | Data-Alchemy/Unix_Automation | 3d5ee450e1b19f79509960f6d117c16fb8aa5313 | [
"Apache-2.0"
] | null | null | null | Terminal_Bot.py | Data-Alchemy/Unix_Automation | 3d5ee450e1b19f79509960f6d117c16fb8aa5313 | [
"Apache-2.0"
] | null | null | null | Terminal_Bot.py | Data-Alchemy/Unix_Automation | 3d5ee450e1b19f79509960f6d117c16fb8aa5313 | [
"Apache-2.0"
] | null | null | null | import paramiko,time,sys,json,os,pandas
########################################################################################################################
################################################### parms #############################################################
proxy = None
Port = 22
Username = open... | 37.93617 | 160 | 0.615536 | 435 | 3,566 | 4.914943 | 0.298851 | 0.029467 | 0.039757 | 0.037886 | 0.54116 | 0.498129 | 0.480355 | 0.480355 | 0.480355 | 0.480355 | 0 | 0.010218 | 0.176669 | 3,566 | 93 | 161 | 38.344086 | 0.717643 | 0.191531 | 0 | 0.463768 | 0 | 0 | 0.007573 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0.043478 | 0.014493 | 0 | 0.057971 | 0.028986 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
95433e555cbe86270b9f0c26744b230b46b56f5a | 825 | py | Python | pnnl/models/__init__.py | rkini-pnnl/volttron-GS | 60055438446a060176381468757ad0ec339f2371 | [
"BSD-3-Clause"
] | 1 | 2021-08-05T04:01:55.000Z | 2021-08-05T04:01:55.000Z | pnnl/models/__init__.py | kevinatkinson-pnnl/volttron-GS | 479c614a6f7cd779fcc208e8e35d27d0961a16f8 | [
"BSD-3-Clause"
] | null | null | null | pnnl/models/__init__.py | kevinatkinson-pnnl/volttron-GS | 479c614a6f7cd779fcc208e8e35d27d0961a16f8 | [
"BSD-3-Clause"
] | null | null | null | import importlib
import logging
from volttron.platform.agent import utils
_log = logging.getLogger(__name__)
utils.setup_logging()
__version__ = "0.1"
__all__ = ['Model']
class Model(object):
def __init__(self, config, **kwargs):
base_module = "volttron.pnnl.models."
try:
model_type ... | 29.464286 | 73 | 0.65697 | 102 | 825 | 4.941176 | 0.5 | 0.107143 | 0.051587 | 0.075397 | 0.126984 | 0.126984 | 0 | 0 | 0 | 0 | 0 | 0.00317 | 0.235152 | 825 | 27 | 74 | 30.555556 | 0.795563 | 0 | 0 | 0 | 0 | 0 | 0.08 | 0.025455 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.181818 | 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 | 0 | 0 | 0 | 0 | 1 | 0 |
95446537feef632a16bbea1d71d8483703929711 | 826 | py | Python | src/cli.py | thisistrivial/cr-draft | 25defcf03466b044c28ad42661536e27b6df1222 | [
"MIT"
] | null | null | null | src/cli.py | thisistrivial/cr-draft | 25defcf03466b044c28ad42661536e27b6df1222 | [
"MIT"
] | null | null | null | src/cli.py | thisistrivial/cr-draft | 25defcf03466b044c28ad42661536e27b6df1222 | [
"MIT"
] | null | null | null |
import draft
import os
def run():
picks = [[],[]]
pairs = draft.pairs()
for player in range(1, 3):
os.system("clear")
pre = "[Player %d]: " % player
input(pre + "(Enter when ready) ")
pair = 0
while pair < 4:
pick = input(pre + "%s (1), %s (2) " %
(draft.get_name(pairs[playe... | 22.944444 | 69 | 0.521792 | 117 | 826 | 3.65812 | 0.324786 | 0.098131 | 0.11215 | 0.149533 | 0.514019 | 0.411215 | 0.411215 | 0.280374 | 0.280374 | 0.280374 | 0 | 0.037099 | 0.282082 | 826 | 35 | 70 | 23.6 | 0.684654 | 0 | 0 | 0.269231 | 0 | 0 | 0.112727 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0.076923 | 0 | 0.115385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
954b661a558c8d594bb41be0460c68998860e06c | 4,712 | py | Python | plaso/parsers/winreg_plugins/usbstor.py | Defense-Cyber-Crime-Center/plaso | 4f3a85fbea10637c1cdbf0cde9fc539fdcea9c47 | [
"Apache-2.0"
] | 2 | 2016-02-18T12:46:29.000Z | 2022-03-13T03:04:59.000Z | plaso/parsers/winreg_plugins/usbstor.py | Defense-Cyber-Crime-Center/plaso | 4f3a85fbea10637c1cdbf0cde9fc539fdcea9c47 | [
"Apache-2.0"
] | null | null | null | plaso/parsers/winreg_plugins/usbstor.py | Defense-Cyber-Crime-Center/plaso | 4f3a85fbea10637c1cdbf0cde9fc539fdcea9c47 | [
"Apache-2.0"
] | 6 | 2016-12-18T08:05:36.000Z | 2021-04-06T14:19:11.000Z | # -*- coding: utf-8 -*-
"""File containing a Windows Registry plugin to parse the USBStor key."""
import logging
from plaso.events import windows_events
from plaso.lib import eventdata
from plaso.parsers import winreg
from plaso.parsers.winreg_plugins import interface
__author__ = 'David Nides (david.nides@gmail.co... | 39.266667 | 79 | 0.695034 | 587 | 4,712 | 5.32368 | 0.301533 | 0.03584 | 0.04608 | 0.03456 | 0.33664 | 0.2896 | 0.22656 | 0.21056 | 0.21056 | 0.21056 | 0 | 0.006006 | 0.222623 | 4,712 | 119 | 80 | 39.596639 | 0.84712 | 0.182301 | 0 | 0.213333 | 0 | 0 | 0.125625 | 0.022123 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013333 | false | 0 | 0.066667 | 0 | 0.16 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9550103d22b0d4fa16de9bf491fa914c8ddf64fb | 4,877 | py | Python | musicbot/modules/default/helpmsg.py | oKidd/PrendeMusic | b66d54d93ed36587193c20b71201c4447d80ad85 | [
"MIT"
] | 5 | 2018-09-07T12:17:27.000Z | 2019-12-06T02:35:26.000Z | musicbot/modules/default/helpmsg.py | oKidd/PrendeMusic | b66d54d93ed36587193c20b71201c4447d80ad85 | [
"MIT"
] | null | null | null | musicbot/modules/default/helpmsg.py | oKidd/PrendeMusic | b66d54d93ed36587193c20b71201c4447d80ad85 | [
"MIT"
] | 2 | 2020-04-25T00:35:17.000Z | 2021-05-13T22:20:19.000Z | from collections import defaultdict
from discord.ext.commands import Cog, command
from discord.utils import get
from ...utils import check_restricted
from ... import exceptions
from ... import messagemanager
class Help(Cog):
async def get_cmd(self, name, bot, user, list_all_cmds=False):
cmd = bot.get_comm... | 44.743119 | 204 | 0.568792 | 615 | 4,877 | 4.398374 | 0.243902 | 0.031054 | 0.028466 | 0.017745 | 0.275416 | 0.262107 | 0.182625 | 0.051017 | 0.038447 | 0.038447 | 0 | 0.004239 | 0.322739 | 4,877 | 109 | 205 | 44.743119 | 0.814714 | 0.017634 | 0 | 0.08 | 0 | 0 | 0.138127 | 0.005203 | 0.013333 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.08 | 0 | 0.133333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
95515f6c6551928915064695c2fceeeba21d268c | 8,710 | py | Python | flatpak_update.py | willsALMANJ/flatpak_update | 84a8f59a11952a5daf57a18f0426b676f3a707c2 | [
"0BSD"
] | 1 | 2020-06-12T07:51:32.000Z | 2020-06-12T07:51:32.000Z | flatpak_update.py | willsALMANJ/flatpak_update | 84a8f59a11952a5daf57a18f0426b676f3a707c2 | [
"0BSD"
] | null | null | null | flatpak_update.py | willsALMANJ/flatpak_update | 84a8f59a11952a5daf57a18f0426b676f3a707c2 | [
"0BSD"
] | null | null | null | "Update a Flatpak repository for new versions of components"
import argparse
import asyncio
import datetime
from functools import total_ordering
import hashlib
from itertools import zip_longest
import json
from pathlib import Path
import re
import httpx
import jinja2
import yaml
GITHUB_DATE_FORMAT = "%Y-%m-%dT%H:%M:... | 30.138408 | 83 | 0.62721 | 1,101 | 8,710 | 4.782925 | 0.237057 | 0.0188 | 0.014622 | 0.011394 | 0.22161 | 0.172427 | 0.121534 | 0.096088 | 0.096088 | 0.075199 | 0 | 0.013073 | 0.253502 | 8,710 | 288 | 84 | 30.243056 | 0.796832 | 0.050402 | 0 | 0.129032 | 0 | 0 | 0.173235 | 0.013692 | 0 | 0 | 0 | 0 | 0 | 1 | 0.069124 | false | 0 | 0.0553 | 0.023041 | 0.221198 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
955231e63fbff36ad8601f161f98440ad3a247cb | 1,746 | py | Python | base/env/test_processStrategy.py | stevenchen521/quant_ml | f7d5efc49c934724f97fcafacc560f4a35b24551 | [
"MIT"
] | 5 | 2019-02-14T03:12:22.000Z | 2022-01-24T18:43:07.000Z | base/env/test_processStrategy.py | stevenchen521/quant_ml | f7d5efc49c934724f97fcafacc560f4a35b24551 | [
"MIT"
] | null | null | null | base/env/test_processStrategy.py | stevenchen521/quant_ml | f7d5efc49c934724f97fcafacc560f4a35b24551 | [
"MIT"
] | 2 | 2019-11-13T18:56:13.000Z | 2021-12-31T01:25:22.000Z | from unittest import TestCase
import base.env.pre_process as pre_process
import pandas as pd
from sklearn.preprocessing import MinMaxScaler
from helper.util import get_attribute
from base.env.pre_process_conf import active_stragery, get_strategy_analyze
import base.env.pre_process
class TestProcessStrategy(TestCase)... | 38.8 | 143 | 0.708477 | 205 | 1,746 | 5.746341 | 0.292683 | 0.08489 | 0.072156 | 0.071307 | 0.217317 | 0.118846 | 0.118846 | 0.118846 | 0.118846 | 0.118846 | 0 | 0.012186 | 0.201031 | 1,746 | 44 | 144 | 39.681818 | 0.832258 | 0.151775 | 0 | 0 | 0 | 0 | 0.023035 | 0 | 0 | 0 | 0 | 0 | 0.269231 | 1 | 0.153846 | false | 0 | 0.269231 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
955351f42a772eb848c0ae2b75d5d28ba1ff2a00 | 3,033 | py | Python | mir3/lib/knn.py | pymir3/pymir3 | c1bcca66a5ef1ff0ebd6373e3820e72dee6b0b70 | [
"MIT"
] | 12 | 2015-08-03T12:41:11.000Z | 2020-08-18T07:55:23.000Z | mir3/lib/knn.py | pymir3/pymir3 | c1bcca66a5ef1ff0ebd6373e3820e72dee6b0b70 | [
"MIT"
] | 1 | 2015-05-27T18:47:20.000Z | 2015-05-27T18:47:20.000Z | mir3/lib/knn.py | pymir3/pymir3 | c1bcca66a5ef1ff0ebd6373e3820e72dee6b0b70 | [
"MIT"
] | 3 | 2016-03-18T03:30:02.000Z | 2018-07-05T02:29:16.000Z | import numpy
import numpy.linalg
def distance_sum(inputs, references):
"""Sum of all distances between inputs and references
Each element should be in a row!
"""
norms = numpy.zeros(inputs.shape[0])
for i in xrange(references.shape[0]):
norms += numpy.apply_along_axis(numpy.linalg.norm, 1... | 31.59375 | 81 | 0.567755 | 428 | 3,033 | 3.978972 | 0.203271 | 0.071051 | 0.063418 | 0.042278 | 0.604815 | 0.590135 | 0.57017 | 0.536113 | 0.512625 | 0.445684 | 0 | 0.032524 | 0.280251 | 3,033 | 95 | 82 | 31.926316 | 0.747595 | 0.231124 | 0 | 0.555556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.037037 | 0 | 0.259259 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9554b36b01a4be87039a97f47f4d8ef14a97ffe2 | 2,440 | py | Python | nasafree/views.py | luanmalaquias/projeto_api_nasa_django | 3441c404da821b4177571814014e89b0cff6a6b7 | [
"MIT"
] | null | null | null | nasafree/views.py | luanmalaquias/projeto_api_nasa_django | 3441c404da821b4177571814014e89b0cff6a6b7 | [
"MIT"
] | null | null | null | nasafree/views.py | luanmalaquias/projeto_api_nasa_django | 3441c404da821b4177571814014e89b0cff6a6b7 | [
"MIT"
] | null | null | null | from django.shortcuts import redirect, render
from .models import *
from datetime import date
from brain import ipfunc
def home(request):
dados = Apod.getObjectOrRequest()
buscaData = request.POST.get('data')
if request.method == 'POST':
dados = Apod.getObjectOrRequest(str(buscaData))
ret... | 34.366197 | 93 | 0.685246 | 287 | 2,440 | 5.783972 | 0.278746 | 0.079518 | 0.125904 | 0.159036 | 0.448795 | 0.371084 | 0.344578 | 0.344578 | 0.263253 | 0.237349 | 0 | 0.010924 | 0.17459 | 2,440 | 71 | 94 | 34.366197 | 0.813307 | 0 | 0 | 0.203704 | 0 | 0 | 0.142974 | 0.038099 | 0 | 0 | 0 | 0 | 0 | 1 | 0.185185 | false | 0 | 0.074074 | 0.074074 | 0.462963 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9558fc73a95bcd6653e042be3bc2a2e8ae6c004c | 4,758 | py | Python | dotenv.py | ross-urban/django-dotenv | 16cbf7bb78571174bc5376c95c85b213857cb9f9 | [
"MIT"
] | null | null | null | dotenv.py | ross-urban/django-dotenv | 16cbf7bb78571174bc5376c95c85b213857cb9f9 | [
"MIT"
] | null | null | null | dotenv.py | ross-urban/django-dotenv | 16cbf7bb78571174bc5376c95c85b213857cb9f9 | [
"MIT"
] | 1 | 2021-02-16T15:37:18.000Z | 2021-02-16T15:37:18.000Z | import os
import re
import sys
import warnings
__version__ = '1.4.3'
line_re = re.compile(r"""
^
(?:export\s+)? # optional export
([\w\.]+) # key
(?:\s*=\s*|:\s+?) # separator
( # optional value begin
'(?:\'|[^'])*' # single quoted value
| ... | 31.72 | 78 | 0.481084 | 512 | 4,758 | 4.429688 | 0.351563 | 0.021164 | 0.013228 | 0.010582 | 0.032628 | 0.015873 | 0.015873 | 0.015873 | 0 | 0 | 0 | 0.008794 | 0.40248 | 4,758 | 149 | 79 | 31.932886 | 0.788955 | 0.151114 | 0 | 0.113208 | 0 | 0 | 0.227854 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028302 | false | 0 | 0.037736 | 0 | 0.084906 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
955b60084410969a08f97fe22aa1d69988088bf0 | 16,755 | py | Python | PsychoPy3 Experiments/ContrastDetection.py | mrhunsaker/ContrastDetection | bb058460c5f90119316d0637885cd47f7ca2a307 | [
"MIT"
] | null | null | null | PsychoPy3 Experiments/ContrastDetection.py | mrhunsaker/ContrastDetection | bb058460c5f90119316d0637885cd47f7ca2a307 | [
"MIT"
] | null | null | null | PsychoPy3 Experiments/ContrastDetection.py | mrhunsaker/ContrastDetection | bb058460c5f90119316d0637885cd47f7ca2a307 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
This experiment was created using PsychoPy3 Experiment Builder (v2020.2.4post1),
on October 27, 2020, at 14:06
If you publish work using this script the most relevant publication is:
Peirce J, Gray JR, Simpson S, MacAskill M, Höchenberger R, Sogo H, Kastman E, ... | 43.861257 | 102 | 0.66607 | 2,053 | 16,755 | 5.412567 | 0.246469 | 0.014399 | 0.009899 | 0.017999 | 0.466163 | 0.431515 | 0.394258 | 0.306875 | 0.292837 | 0.285187 | 0 | 0.016972 | 0.233363 | 16,755 | 381 | 103 | 43.976378 | 0.848112 | 0.308803 | 0 | 0.262357 | 0 | 0.003802 | 0.070823 | 0.005421 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.041825 | 0 | 0.041825 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
955dce71570249e6e13d912ac4f316735729f8a7 | 1,765 | py | Python | BB/conf.py | poco0317/BarinadeBot-Rewrite | 4f34246178ab2ee0fd4c0a79fff5a43adbed134c | [
"MIT"
] | 2 | 2021-05-06T09:07:44.000Z | 2021-05-11T23:45:38.000Z | BB/conf.py | poco0317/BarinadeBot-Rewrite | 4f34246178ab2ee0fd4c0a79fff5a43adbed134c | [
"MIT"
] | null | null | null | BB/conf.py | poco0317/BarinadeBot-Rewrite | 4f34246178ab2ee0fd4c0a79fff5a43adbed134c | [
"MIT"
] | null | null | null | import configparser
import os
import shutil
import traceback
class Conf:
def __init__(self, conf):
self.options = conf
config = configparser.ConfigParser(interpolation=None)
if not config.read(conf, encoding='utf-8'):
print("I had to remake the config file from default.... | 41.046512 | 155 | 0.602833 | 214 | 1,765 | 4.883178 | 0.504673 | 0.062201 | 0.03445 | 0.042105 | 0.049761 | 0.049761 | 0 | 0 | 0 | 0 | 0 | 0.004819 | 0.294618 | 1,765 | 43 | 156 | 41.046512 | 0.834538 | 0.07762 | 0 | 0.111111 | 0 | 0.055556 | 0.203931 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027778 | false | 0.027778 | 0.111111 | 0 | 0.305556 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9562440f3dc7a8e571a4195021e3f9febc5d8b84 | 3,042 | py | Python | tutorials/mechanisms/tutorial_convenience_inhibition.py | AQ18/skimpy | 435fc50244f2ca815bbb39d525a82a4692f5c0ac | [
"Apache-2.0"
] | 13 | 2020-11-05T10:59:13.000Z | 2022-03-21T01:38:31.000Z | tutorials/mechanisms/tutorial_convenience_inhibition.py | AQ18/skimpy | 435fc50244f2ca815bbb39d525a82a4692f5c0ac | [
"Apache-2.0"
] | 4 | 2022-01-27T10:23:40.000Z | 2022-03-10T18:16:06.000Z | tutorials/mechanisms/tutorial_convenience_inhibition.py | AQ18/skimpy | 435fc50244f2ca815bbb39d525a82a4692f5c0ac | [
"Apache-2.0"
] | 6 | 2020-08-04T17:01:33.000Z | 2022-03-21T01:38:32.000Z | # -*- coding: utf-8 -*-
"""
.. module:: skimpy
:platform: Unix, Windows
:synopsis: Simple Kinetic Models in Python
.. moduleauthor:: SKiMPy team
[---------]
Copyright 2017 Laboratory of Computational Systems Biotechnology (LCSB),
Ecole Polytechnique Federale de Lausanne (EPFL), Switzerland
Licensed under the ... | 29.25 | 87 | 0.610782 | 352 | 3,042 | 5.139205 | 0.46875 | 0.049751 | 0.035379 | 0.05749 | 0.091211 | 0.091211 | 0.043118 | 0.043118 | 0.043118 | 0.043118 | 0 | 0.037431 | 0.288626 | 3,042 | 103 | 88 | 29.533981 | 0.798521 | 0.347469 | 0 | 0.12766 | 0 | 0 | 0.02444 | 0.012729 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.06383 | 0 | 0.06383 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9564a1cacc7687a8261fe339aaf329a5f5fa587d | 825 | py | Python | advanced-python/05_advanced_classes_and_objects/enums.py | alexprodan99/python-workspace | 8c805afc29fafe3916759d1cf07e597f945b8b45 | [
"MIT"
] | null | null | null | advanced-python/05_advanced_classes_and_objects/enums.py | alexprodan99/python-workspace | 8c805afc29fafe3916759d1cf07e597f945b8b45 | [
"MIT"
] | null | null | null | advanced-python/05_advanced_classes_and_objects/enums.py | alexprodan99/python-workspace | 8c805afc29fafe3916759d1cf07e597f945b8b45 | [
"MIT"
] | null | null | null |
from enum import Enum, unique, auto
@unique
class Fruit(Enum):
APPLE = 1
BANANA = 2
ORANGE = 3
# if you don't care what value to put you can use auto => basically it will get last value used + 1 (if auto is for first item it will be 0 + 1 = 1)
PEAR = auto()
def main():
print(Fruit.APPLE) # F... | 27.5 | 152 | 0.641212 | 126 | 825 | 4.111111 | 0.444444 | 0.135135 | 0.086873 | 0.07722 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016051 | 0.244848 | 825 | 30 | 153 | 27.5 | 0.815409 | 0.385455 | 0 | 0 | 0 | 0 | 0.028169 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.05 | 0 | 0.35 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9566a5fe7dd2b6c92ef1c6e1f73143b039776af9 | 3,313 | py | Python | detector/detector.py | suhendaragung20/Object-Detection-Metrics | e756c9ba20ff1e89143c64e6d38288d2a8680f0e | [
"MIT"
] | null | null | null | detector/detector.py | suhendaragung20/Object-Detection-Metrics | e756c9ba20ff1e89143c64e6d38288d2a8680f0e | [
"MIT"
] | null | null | null | detector/detector.py | suhendaragung20/Object-Detection-Metrics | e756c9ba20ff1e89143c64e6d38288d2a8680f0e | [
"MIT"
] | null | null | null |
# Import packages
import os
import cv2
import numpy as np
import tensorflow as tf
import sys
from imutils.object_detection import non_max_suppression
# This is needed since the notebook is stored in the object_detection folder.
sys.path.append("..")
# Import utilites
from utils import label_map_util
class detec... | 37.224719 | 107 | 0.690915 | 443 | 3,313 | 4.941309 | 0.367946 | 0.083143 | 0.065783 | 0.047967 | 0.150297 | 0.087711 | 0.087711 | 0.057561 | 0 | 0 | 0 | 0.00399 | 0.243586 | 3,313 | 88 | 108 | 37.647727 | 0.869513 | 0.331422 | 0 | 0 | 0 | 0 | 0.070288 | 0.017344 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054054 | false | 0 | 0.216216 | 0 | 0.324324 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9566fa933abad53d06086af6a6e451a81990671d | 2,977 | py | Python | test_scripts/test_residual_solver_dynamic.py | JoZimmer/ParOptBeam | 50d15d8d822a2718f2932807e06c4a7e02f866a3 | [
"BSD-3-Clause"
] | 1 | 2021-04-09T14:08:20.000Z | 2021-04-09T14:08:20.000Z | test_scripts/test_residual_solver_dynamic.py | JoZimmer/ParOptBeam | 50d15d8d822a2718f2932807e06c4a7e02f866a3 | [
"BSD-3-Clause"
] | 2 | 2021-04-28T15:05:01.000Z | 2021-11-10T15:12:56.000Z | test_scripts/test_residual_solver_dynamic.py | JoZimmer/ParOptBeam | 50d15d8d822a2718f2932807e06c4a7e02f866a3 | [
"BSD-3-Clause"
] | 2 | 2021-02-01T08:49:45.000Z | 2021-08-10T02:07:36.000Z | import numpy as np
import matplotlib.pyplot as plt
from cycler import cycler
from source.solving_strategies.strategies.residual_based_newton_raphson_solver import ResidualBasedNewtonRaphsonSolver
from source.solving_strategies.strategies.residual_based_picard_solver import ResidualBasedPicardSolver
from source.model.s... | 34.616279 | 118 | 0.566006 | 361 | 2,977 | 4.432133 | 0.382271 | 0.0325 | 0.03375 | 0.04 | 0.14875 | 0.14875 | 0.145 | 0.0825 | 0.0825 | 0.0825 | 0 | 0.056867 | 0.30299 | 2,977 | 85 | 119 | 35.023529 | 0.714217 | 0 | 0 | 0.056338 | 0 | 0 | 0.170306 | 0.035942 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014085 | false | 0 | 0.084507 | 0 | 0.098592 | 0.014085 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9569b1f581ecb174ee905898df207343952c8b6e | 1,483 | py | Python | webeditor/app/attrdict.py | lshen1120/web-editor | 170ac96b47bf957a3a42a99092e45e88e584c49a | [
"Apache-2.0"
] | 4 | 2018-07-25T03:57:08.000Z | 2018-07-25T06:34:59.000Z | webeditor/app/attrdict.py | lshen1120/web-editor | 170ac96b47bf957a3a42a99092e45e88e584c49a | [
"Apache-2.0"
] | null | null | null | webeditor/app/attrdict.py | lshen1120/web-editor | 170ac96b47bf957a3a42a99092e45e88e584c49a | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding:utf-8 -*-
import copy
class AttrDict(dict):
def __init__(self, seq=None, **kwargs):
dict.__init__(self, seq or {}, **kwargs)
def __getattr__(self, name):
return self.get(name, self.get("__default", None))
def __setattr__(self, name, value):
self... | 26.017544 | 68 | 0.574511 | 216 | 1,483 | 3.689815 | 0.236111 | 0.090339 | 0.025094 | 0.056462 | 0.40527 | 0.395232 | 0.395232 | 0.252196 | 0.158093 | 0.115433 | 0 | 0.017117 | 0.251517 | 1,483 | 56 | 69 | 26.482143 | 0.700901 | 0.027647 | 0 | 0.125 | 0 | 0 | 0.158554 | 0 | 0 | 0 | 0 | 0 | 0.275 | 1 | 0.2 | false | 0 | 0.025 | 0.05 | 0.325 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
956a1d409e8bf27f1eb1d39023f7ad436c2f2c6c | 16,034 | py | Python | EVeP/EVeP.py | amandaortega/EVeP | 4bca562c814210b1d835e9be63ab80385c93320b | [
"MIT"
] | null | null | null | EVeP/EVeP.py | amandaortega/EVeP | 4bca562c814210b1d835e9be63ab80385c93320b | [
"MIT"
] | null | null | null | EVeP/EVeP.py | amandaortega/EVeP | 4bca562c814210b1d835e9be63ab80385c93320b | [
"MIT"
] | null | null | null | """
Author: Amanda Ortega de Castro Ayres
Created in: September 19, 2019
Python version: 3.6
"""
from Least_SRMTL import Least_SRMTL
import libmr
from matplotlib import pyplot, cm
from matplotlib.patches import Circle
from mpl_toolkits.mplot3d import Axes3D, art3d
import numpy as np
import numpy.matlib
impo... | 40.489899 | 247 | 0.591493 | 2,404 | 16,034 | 3.823211 | 0.1302 | 0.018932 | 0.012186 | 0.019584 | 0.428463 | 0.331738 | 0.262431 | 0.245675 | 0.216951 | 0.178 | 0 | 0.020068 | 0.288325 | 16,034 | 396 | 248 | 40.489899 | 0.785383 | 0.167893 | 0 | 0.156489 | 0 | 0 | 0.00483 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.091603 | false | 0 | 0.030534 | 0 | 0.183206 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
956c1145058b098a2e217c047220f62e14dea6e3 | 5,375 | py | Python | bigml/modelfields.py | alanponce/python | 9423b4c4968b81ee14cef1ab6cd62d23dfa8bd26 | [
"Apache-2.0"
] | 1 | 2021-06-20T11:51:22.000Z | 2021-06-20T11:51:22.000Z | bigml/modelfields.py | alanponce/python | 9423b4c4968b81ee14cef1ab6cd62d23dfa8bd26 | [
"Apache-2.0"
] | null | null | null | bigml/modelfields.py | alanponce/python | 9423b4c4968b81ee14cef1ab6cd62d23dfa8bd26 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
#!/usr/bin/env python
#
# Copyright 2013-2016 BigML
#
# 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 requi... | 37.852113 | 77 | 0.596279 | 666 | 5,375 | 4.681682 | 0.303303 | 0.037524 | 0.038486 | 0.016357 | 0.091405 | 0.082425 | 0.082425 | 0.073765 | 0.053239 | 0.053239 | 0 | 0.004979 | 0.327442 | 5,375 | 141 | 78 | 38.120567 | 0.857538 | 0.292279 | 0 | 0.144737 | 0 | 0 | 0.048668 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078947 | false | 0 | 0.039474 | 0 | 0.184211 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
957446e0b2daddda7b2cb6fdb76915dc45c186cf | 1,188 | py | Python | test.py | Ericqle/Senior-Design-Project | aa8e2134b26aef151d3736d306a4fbc9fe69790e | [
"MIT"
] | null | null | null | test.py | Ericqle/Senior-Design-Project | aa8e2134b26aef151d3736d306a4fbc9fe69790e | [
"MIT"
] | null | null | null | test.py | Ericqle/Senior-Design-Project | aa8e2134b26aef151d3736d306a4fbc9fe69790e | [
"MIT"
] | null | null | null | from draw_control import DrawControl
if __name__ == '__main__':
zotter = DrawControl()
test = input("track, rail, pen, hor, ver, diag: ")
while(test):
if test == "track":
dir_in = input('dir step: ')
dir = dir_in.split(" ")
zotter.track.spin_fixed_step(int(dir[... | 29.7 | 84 | 0.505051 | 149 | 1,188 | 3.845638 | 0.295302 | 0.08377 | 0.052356 | 0.068063 | 0.581152 | 0.499127 | 0.474695 | 0.474695 | 0.247819 | 0.247819 | 0 | 0.017767 | 0.3367 | 1,188 | 40 | 85 | 29.7 | 0.709391 | 0 | 0 | 0.366667 | 0 | 0 | 0.140454 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.033333 | 0 | 0.033333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
957893734aaf183904dce73b5e054520162c5d69 | 11,838 | py | Python | flask_jquery/app.py | lmj0328/SocialMediaReport | 555aa3551844b5ee67bcf9296d574fd99977982d | [
"MIT"
] | 1 | 2021-02-28T05:01:37.000Z | 2021-02-28T05:01:37.000Z | flask_jquery/app.py | lmj0328/SocialMediaReport | 555aa3551844b5ee67bcf9296d574fd99977982d | [
"MIT"
] | null | null | null | flask_jquery/app.py | lmj0328/SocialMediaReport | 555aa3551844b5ee67bcf9296d574fd99977982d | [
"MIT"
] | 1 | 2020-03-12T02:08:10.000Z | 2020-03-12T02:08:10.000Z | from flask import Flask, render_template, request, jsonify
from flask import request
from flask import Response
from flask import url_for
from flask import jsonify
import GetOldTweets3 as got
import pandas as pd
import datetime
import numpy as np
import requests
import json
from pyquery import PyQuery as pq
app = Fla... | 41.391608 | 755 | 0.598496 | 1,307 | 11,838 | 5.224943 | 0.258608 | 0.033973 | 0.014351 | 0.018451 | 0.181286 | 0.104993 | 0.0924 | 0.057842 | 0.026065 | 0 | 0 | 0.042922 | 0.273779 | 11,838 | 285 | 756 | 41.536842 | 0.751425 | 0.08912 | 0 | 0.077253 | 0 | 0.004292 | 0.192361 | 0.0184 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017167 | false | 0 | 0.051502 | 0.004292 | 0.107296 | 0.012876 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
957ac7e6d29caaecedbbbd4e6c92497096862e51 | 10,072 | py | Python | croisee/croisee/models.py | fiee/croisee | 922a163b627855468aac84e0c56ea51082424732 | [
"BSD-3-Clause"
] | 6 | 2017-09-06T02:03:36.000Z | 2021-07-11T15:06:29.000Z | croisee/croisee/models.py | fiee/croisee | 922a163b627855468aac84e0c56ea51082424732 | [
"BSD-3-Clause"
] | null | null | null | croisee/croisee/models.py | fiee/croisee | 922a163b627855468aac84e0c56ea51082424732 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from __future__ import absolute_import
import unicodedata
import re, os
import logging
from django.utils.translation import ugettext_lazy as _
from django.db import models
from django.template.loader import render_to_string
from djang... | 43.601732 | 196 | 0.642276 | 1,216 | 10,072 | 5.151316 | 0.254934 | 0.034483 | 0.024904 | 0.016284 | 0.239783 | 0.203863 | 0.155013 | 0.121009 | 0.108876 | 0.099298 | 0 | 0.007054 | 0.225874 | 10,072 | 230 | 197 | 43.791304 | 0.796332 | 0.062748 | 0 | 0.169591 | 0 | 0.005848 | 0.199423 | 0 | 0 | 0 | 0 | 0.004348 | 0 | 1 | 0.070175 | false | 0 | 0.064327 | 0.040936 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
957b9b53b7b5837fb4e6e2e80f7b80d9f1347ef1 | 5,372 | py | Python | tests/views/userprofile/forms_test.py | BMeu/Aerarium | 119946cead727ef68b5ecea339990d982c006391 | [
"MIT"
] | null | null | null | tests/views/userprofile/forms_test.py | BMeu/Aerarium | 119946cead727ef68b5ecea339990d982c006391 | [
"MIT"
] | 139 | 2018-12-26T07:54:31.000Z | 2021-06-01T23:14:45.000Z | tests/views/userprofile/forms_test.py | BMeu/Aerarium | 119946cead727ef68b5ecea339990d982c006391 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from unittest import TestCase
from flask_login import login_user
from flask_wtf import FlaskForm
from wtforms import StringField
from wtforms import ValidationError
from app import create_app
from app import db
from app.configuration import TestConfiguration
from app.localization import get_l... | 27.690722 | 92 | 0.625838 | 568 | 5,372 | 5.815141 | 0.195423 | 0.025431 | 0.025431 | 0.020587 | 0.677566 | 0.64941 | 0.617923 | 0.617923 | 0.518619 | 0.496821 | 0 | 0.000263 | 0.292628 | 5,372 | 193 | 93 | 27.834197 | 0.868947 | 0.205324 | 0 | 0.670213 | 0 | 0 | 0.055155 | 0 | 0 | 0 | 0 | 0 | 0.095745 | 1 | 0.117021 | false | 0 | 0.12766 | 0 | 0.308511 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
957eae3da3f74babe3abba60f328832ad8f0ef04 | 948 | py | Python | userprofile/migrations/0001_initial.py | jmickela/stalkexchange | 2182fcdfb716dbe3c227c83ac52c567331cc9e73 | [
"Apache-2.0"
] | null | null | null | userprofile/migrations/0001_initial.py | jmickela/stalkexchange | 2182fcdfb716dbe3c227c83ac52c567331cc9e73 | [
"Apache-2.0"
] | 10 | 2020-06-05T17:05:48.000Z | 2022-03-11T23:13:08.000Z | userprofile/migrations/0001_initial.py | jmickela/stalkexchange | 2182fcdfb716dbe3c227c83ac52c567331cc9e73 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations = [
migrations.Create... | 36.461538 | 157 | 0.635021 | 103 | 948 | 5.650485 | 0.61165 | 0.075601 | 0.054983 | 0.072165 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002762 | 0.236287 | 948 | 25 | 158 | 37.92 | 0.801105 | 0.022152 | 0 | 0 | 0 | 0 | 0.115676 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.157895 | 0 | 0.315789 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
957f17448a40b5f7a9697897e18e53b84546771d | 1,244 | py | Python | DML.py | WellingtonFSouza1/SGI | 89746bc1d9745931fd9b451e575b92c8197fcc65 | [
"Apache-2.0"
] | null | null | null | DML.py | WellingtonFSouza1/SGI | 89746bc1d9745931fd9b451e575b92c8197fcc65 | [
"Apache-2.0"
] | null | null | null | DML.py | WellingtonFSouza1/SGI | 89746bc1d9745931fd9b451e575b92c8197fcc65 | [
"Apache-2.0"
] | null | null | null | import pymysql
conexao = pymysql.connect(
host='localhost',
user='root',
password='admin1234',
db='ex_01')
cursor = conexao.cursor(pymysql.cursors.DictCursor)
def select(fields, tables, where=None):
global cursor
query = 'SELECT ' + fields + ' FROM ' + tables
if where:
... | 18.848485 | 90 | 0.568328 | 128 | 1,244 | 5.5 | 0.375 | 0.09233 | 0.102273 | 0.098011 | 0.285511 | 0.105114 | 0 | 0 | 0 | 0 | 0 | 0.008121 | 0.307074 | 1,244 | 65 | 91 | 19.138462 | 0.808585 | 0 | 0 | 0.263158 | 0 | 0 | 0.120441 | 0 | 0.026316 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0.026316 | 0.026316 | 0 | 0.236842 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9582a4c6372ffccedd8c93f53707273fd3fe596d | 4,597 | py | Python | src/__main__.py | BennyWestsyde/FakeNewsDetection | 8b171f2c93d0849e13c9ea6d94b784caf037a3bb | [
"BSD-3-Clause"
] | null | null | null | src/__main__.py | BennyWestsyde/FakeNewsDetection | 8b171f2c93d0849e13c9ea6d94b784caf037a3bb | [
"BSD-3-Clause"
] | 16 | 2021-04-29T14:22:46.000Z | 2021-05-21T04:02:02.000Z | src/__main__.py | BennyWestsyde/FakeNewsDetection | 8b171f2c93d0849e13c9ea6d94b784caf037a3bb | [
"BSD-3-Clause"
] | 2 | 2021-04-09T16:39:45.000Z | 2021-05-02T19:39:32.000Z | """Class to handle iterating through tweets in real time."""
import json
import os
import pandas as pd
# Said this was unused.
# from bluebird import BlueBird
from bluebird.scraper import BlueBird
from sentiment import PoliticalClassification
from train import TrainingML
col_names32 = "created_at,id,id_str,full_tex... | 32.146853 | 450 | 0.591255 | 584 | 4,597 | 4.47089 | 0.263699 | 0.067407 | 0.04481 | 0.043661 | 0.543853 | 0.513596 | 0.513596 | 0.500574 | 0.469935 | 0.469935 | 0 | 0.006126 | 0.289754 | 4,597 | 142 | 451 | 32.373239 | 0.793568 | 0.091799 | 0 | 0.605505 | 0 | 0.009174 | 0.228764 | 0.116313 | 0 | 0 | 0 | 0 | 0 | 1 | 0.036697 | false | 0 | 0.055046 | 0 | 0.091743 | 0.045872 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9583cbd4d2fe5cf7c96a5c027ce0ed71ff87cf28 | 6,344 | py | Python | test_trustpaylib.py | beezz/trustpaylib | a56d12d6ff97ad02034d85940ec09abbfe9eba76 | [
"BSD-3-Clause"
] | null | null | null | test_trustpaylib.py | beezz/trustpaylib | a56d12d6ff97ad02034d85940ec09abbfe9eba76 | [
"BSD-3-Clause"
] | null | null | null | test_trustpaylib.py | beezz/trustpaylib | a56d12d6ff97ad02034d85940ec09abbfe9eba76 | [
"BSD-3-Clause"
] | 1 | 2016-05-27T07:12:47.000Z | 2016-05-27T07:12:47.000Z | # -*- coding: utf-8 -*-
# vim:fenc=utf-8
import pytest
import trustpaylib
try:
unicode
py3 = False
except NameError:
py3 = True
unicode = lambda s: s
class TestTrustPayCore:
secret_key = "abcd1234"
aid = "9876543210"
pay_request = trustpaylib.build_pay_request(
AID=aid,
... | 29.784038 | 75 | 0.576135 | 658 | 6,344 | 5.335866 | 0.170213 | 0.104813 | 0.034178 | 0.059242 | 0.578468 | 0.520649 | 0.454856 | 0.424665 | 0.424665 | 0.389348 | 0 | 0.060136 | 0.328972 | 6,344 | 212 | 76 | 29.924528 | 0.764623 | 0.005675 | 0 | 0.413978 | 0 | 0 | 0.06138 | 0.020301 | 0 | 0 | 0 | 0 | 0.11828 | 1 | 0.043011 | false | 0 | 0.010753 | 0 | 0.075269 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9584860203f1962d57d77ed27e2fa1c1d418bbe7 | 606 | py | Python | Day 01/AdventOfCode01.py | KelvinFurtado/Advent-of-Code-2020 | 7aab4d542507222ef6aaef699d16cc1e2936e1d5 | [
"MIT"
] | null | null | null | Day 01/AdventOfCode01.py | KelvinFurtado/Advent-of-Code-2020 | 7aab4d542507222ef6aaef699d16cc1e2936e1d5 | [
"MIT"
] | null | null | null | Day 01/AdventOfCode01.py | KelvinFurtado/Advent-of-Code-2020 | 7aab4d542507222ef6aaef699d16cc1e2936e1d5 | [
"MIT"
] | null | null | null | inputfile = open('inputDay01.txt', 'r')
values = [int(i) for i in inputfile.readlines()]
#PART1
def aoc01(numbers, value):
for x in numbers:
if value - x in numbers:
return x * (value - x)
#PART2
def aoc02(numbers, value):
num1, num2 = None, None
for x in numbers:
n = value - x
... | 25.25 | 48 | 0.531353 | 82 | 606 | 3.926829 | 0.353659 | 0.139752 | 0.093168 | 0.080745 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075758 | 0.346535 | 606 | 24 | 49 | 25.25 | 0.737374 | 0.016502 | 0 | 0.105263 | 0 | 0 | 0.045378 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0 | 0 | 0.210526 | 0.105263 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9584cb7682c9b757f9f395cf4af9a536e43da394 | 1,686 | py | Python | src/backend/api/views/auth_views.py | zackramjan/motuz | 892252eb50acbd8135bf9df9872df5e4cfe6277b | [
"MIT"
] | 84 | 2019-05-10T14:56:48.000Z | 2022-03-19T17:07:24.000Z | src/backend/api/views/auth_views.py | zackramjan/motuz | 892252eb50acbd8135bf9df9872df5e4cfe6277b | [
"MIT"
] | 226 | 2019-05-28T21:59:22.000Z | 2022-03-09T10:58:24.000Z | src/backend/api/views/auth_views.py | zackramjan/motuz | 892252eb50acbd8135bf9df9872df5e4cfe6277b | [
"MIT"
] | 16 | 2019-09-27T01:35:49.000Z | 2022-03-08T16:18:50.000Z | import logging
from flask import request
from flask_restplus import Resource, Namespace, fields
from ..managers import auth_manager
from ..managers.auth_manager import token_required
from ..exceptions import HTTP_EXCEPTION
api = Namespace('auth', description='Authentication related operations')
dto = api.model('au... | 29.068966 | 81 | 0.641163 | 213 | 1,686 | 4.995305 | 0.319249 | 0.06203 | 0.067669 | 0.050752 | 0.464286 | 0.440789 | 0.316729 | 0.316729 | 0.316729 | 0.316729 | 0 | 0.01414 | 0.244958 | 1,686 | 57 | 82 | 29.578947 | 0.821681 | 0.069988 | 0 | 0.5 | 0 | 0 | 0.076031 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0.02381 | 0.142857 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9587650c0783fa597913cbb4c287026be8eb0512 | 938 | py | Python | src/crud-redmine/client/kafka_client.py | LeoNog96/IntegradorRedmine | bb5477caa9088665b3d18e26530609ba831517d9 | [
"MIT"
] | null | null | null | src/crud-redmine/client/kafka_client.py | LeoNog96/IntegradorRedmine | bb5477caa9088665b3d18e26530609ba831517d9 | [
"MIT"
] | null | null | null | src/crud-redmine/client/kafka_client.py | LeoNog96/IntegradorRedmine | bb5477caa9088665b3d18e26530609ba831517d9 | [
"MIT"
] | null | null | null | from kafka import KafkaConsumer, KafkaProducer
import json
class Producer:
producer = None
producer_topic = None
def __init__(self, server, topic):
self.producer = KafkaProducer (
bootstrap_servers=[server],
value_serializer=lambda x: json.dumps(x).encode('utf-8') ... | 24.684211 | 88 | 0.60661 | 98 | 938 | 5.520408 | 0.428571 | 0.072089 | 0.044362 | 0.05915 | 0.12939 | 0.12939 | 0.12939 | 0.12939 | 0 | 0 | 0 | 0.003063 | 0.303838 | 938 | 38 | 89 | 24.684211 | 0.825421 | 0 | 0 | 0.148148 | 0 | 0 | 0.036209 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.148148 | false | 0 | 0.074074 | 0.037037 | 0.481481 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
958794f84d8fee2575a58b5c2e83f3a77dc04ee4 | 2,038 | py | Python | remove_empty_csv's.py | asadrazaa1/emails-extraction | bb2b7b9f4caa9f62a81e6d9588c1c652d074dfde | [
"Unlicense"
] | null | null | null | remove_empty_csv's.py | asadrazaa1/emails-extraction | bb2b7b9f4caa9f62a81e6d9588c1c652d074dfde | [
"Unlicense"
] | null | null | null | remove_empty_csv's.py | asadrazaa1/emails-extraction | bb2b7b9f4caa9f62a81e6d9588c1c652d074dfde | [
"Unlicense"
] | null | null | null | import psycopg2
import sys
from nltk.tokenize import sent_tokenize
import re
import csv
import os
# pmid {16300001 - 16400000}
try:
# starting_pmid = 16300001
# intermediate_pmid = 16400000
starting_pmid = 100001
intermediate_pmid = 200000
ending_pmid = 32078260
while 1:
if interme... | 33.966667 | 112 | 0.552993 | 228 | 2,038 | 4.798246 | 0.342105 | 0.120658 | 0.021938 | 0.032907 | 0.427788 | 0.427788 | 0.427788 | 0.427788 | 0.191956 | 0.191956 | 0 | 0.072539 | 0.337095 | 2,038 | 59 | 113 | 34.542373 | 0.737232 | 0.157017 | 0 | 0.205882 | 0 | 0 | 0.129543 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.176471 | 0 | 0.176471 | 0.147059 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9587f1170fd14bbc3fde52488cf4748e36a462f2 | 439 | py | Python | src/core.py | unior-nlp-research-group/Ghigliottina | d78cf54cb7412301dd35ef3f3d6419a0350fe3af | [
"Apache-2.0"
] | 2 | 2021-01-21T11:20:57.000Z | 2021-01-21T17:51:07.000Z | src/core.py | unior-nlp-research-group/Ghigliottina | d78cf54cb7412301dd35ef3f3d6419a0350fe3af | [
"Apache-2.0"
] | null | null | null | src/core.py | unior-nlp-research-group/Ghigliottina | d78cf54cb7412301dd35ef3f3d6419a0350fe3af | [
"Apache-2.0"
] | null | null | null | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
import utility
###################
## main
###################
if __name__=='__main__':
import argparse
parser = argparse.ArgumentParser()
parser.add_argument("-m", "--model", help="the path to the model file")
args = parser.parse_args()
p... | 23.105263 | 79 | 0.603645 | 46 | 439 | 5.521739 | 0.717391 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005587 | 0.18451 | 439 | 18 | 80 | 24.388889 | 0.703911 | 0.111617 | 0 | 0 | 0 | 0 | 0.198847 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.222222 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
958823c46f3203892c3a9a7227ee987c3b6cf53a | 3,412 | py | Python | volcengine_ml_platform/datasets/image_dataset.py | volc-mlplatform/ml-platform-sdk-python | 2d85e23c10a1f3c008da0f1a8ea59c277c750233 | [
"MIT"
] | 11 | 2021-09-08T09:20:54.000Z | 2022-02-18T06:45:47.000Z | volcengine_ml_platform/datasets/image_dataset.py | volc-mlplatform/ml-platform-sdk-python | 2d85e23c10a1f3c008da0f1a8ea59c277c750233 | [
"MIT"
] | 1 | 2021-09-24T03:21:07.000Z | 2021-09-24T06:32:26.000Z | volcengine_ml_platform/datasets/image_dataset.py | volc-mlplatform/ml-platform-sdk-python | 2d85e23c10a1f3c008da0f1a8ea59c277c750233 | [
"MIT"
] | 4 | 2021-09-23T07:54:06.000Z | 2021-11-27T09:40:55.000Z | import json
from collections.abc import Callable
from typing import Optional
import numpy as np
from PIL import Image
from volcengine_ml_platform.datasets.dataset import _Dataset
from volcengine_ml_platform.io.tos_dataset import TorchTOSDataset
class ImageDataset(_Dataset):
"""
ImageDataset创建函数 ``ImageDatas... | 32.188679 | 84 | 0.586166 | 373 | 3,412 | 5.174263 | 0.300268 | 0.055959 | 0.018653 | 0.02487 | 0.136788 | 0.136788 | 0.065285 | 0.042487 | 0.042487 | 0 | 0 | 0.006427 | 0.315944 | 3,412 | 105 | 85 | 32.495238 | 0.82048 | 0.177902 | 0 | 0.033898 | 0 | 0 | 0.051343 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.084746 | false | 0 | 0.118644 | 0.016949 | 0.288136 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |