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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8d60c377538ddae6447654f6c37f24bae517225c | 3,629 | py | Python | convert.py | Ellen7ions/bin2mem | 51e3216cbf5e78547751968ef1619a925f2f55ef | [
"MIT"
] | 3 | 2021-05-18T13:07:39.000Z | 2021-05-24T12:46:43.000Z | convert.py | Ellen7ions/bin2mem | 51e3216cbf5e78547751968ef1619a925f2f55ef | [
"MIT"
] | null | null | null | convert.py | Ellen7ions/bin2mem | 51e3216cbf5e78547751968ef1619a925f2f55ef | [
"MIT"
] | null | null | null | import os, sys
import json
class Config:
def __init__(self, config_path='./config.json'):
super(Config, self).__init__()
self.config_path = config_path
self.bin2mem_path = None
self.init_configs(json.load(open(config_path)))
def init_configs(self, json_data):
self.bin... | 28.801587 | 92 | 0.590245 | 491 | 3,629 | 4.04888 | 0.160896 | 0.076459 | 0.06841 | 0.052314 | 0.399396 | 0.312374 | 0.234406 | 0.13833 | 0.091549 | 0 | 0 | 0.003882 | 0.290163 | 3,629 | 125 | 93 | 29.032 | 0.767857 | 0.018187 | 0 | 0.135417 | 0 | 0.010417 | 0.155143 | 0.051433 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15625 | false | 0.03125 | 0.020833 | 0 | 0.21875 | 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 |
8d61a4b35ddf035024fe7d951c745cb83a2a9d4d | 3,161 | py | Python | stats.py | DisinfoResearch/TwitterCollector | 183b6761cca54b5db5b98a2f9f86bd8bcc98a7cb | [
"MIT"
] | null | null | null | stats.py | DisinfoResearch/TwitterCollector | 183b6761cca54b5db5b98a2f9f86bd8bcc98a7cb | [
"MIT"
] | null | null | null | stats.py | DisinfoResearch/TwitterCollector | 183b6761cca54b5db5b98a2f9f86bd8bcc98a7cb | [
"MIT"
] | null | null | null | #!/bin/python3
# Copyright (C) 2021, Michigan State University.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy,... | 45.157143 | 326 | 0.726669 | 479 | 3,161 | 4.716075 | 0.425887 | 0.038955 | 0.017264 | 0.014166 | 0.068172 | 0.030102 | 0 | 0 | 0 | 0 | 0 | 0.003709 | 0.147105 | 3,161 | 70 | 327 | 45.157143 | 0.834199 | 0.382158 | 0 | 0.057143 | 0 | 0 | 0.297255 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085714 | false | 0 | 0.171429 | 0 | 0.285714 | 0.057143 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8d61d1b5d6b0de975b9d576cfadcd886cc44204a | 10,970 | py | Python | Scratch/lstm.py | imadtoubal/MultimodalDeepfakeDetection | 46539e16c988ee9fdfb714893788bbbf72836595 | [
"MIT"
] | 2 | 2022-03-12T09:18:13.000Z | 2022-03-23T08:29:10.000Z | Scratch/lstm.py | imadtoubal/MultimodalDeepfakeDetection | 46539e16c988ee9fdfb714893788bbbf72836595 | [
"MIT"
] | null | null | null | Scratch/lstm.py | imadtoubal/MultimodalDeepfakeDetection | 46539e16c988ee9fdfb714893788bbbf72836595 | [
"MIT"
] | null | null | null | import torch
from torch import nn
import torch.nn.functional as F
import torch.optim as optim
from preprocess import *
from torch.utils.data import Dataset, DataLoader
from blazeface import BlazeFace
import os
import cv2
import numpy as np
from matplotlib import pyplot as plt
import random
import pickle
... | 34.388715 | 116 | 0.591978 | 1,424 | 10,970 | 4.375 | 0.249298 | 0.026966 | 0.020225 | 0.011236 | 0.241894 | 0.199037 | 0.158909 | 0.158909 | 0.150241 | 0.124238 | 0 | 0.025695 | 0.301094 | 10,970 | 318 | 117 | 34.496855 | 0.786879 | 0.149772 | 0 | 0.160377 | 0 | 0.009434 | 0.056292 | 0.012472 | 0 | 0 | 0.000449 | 0 | 0 | 1 | 0.075472 | false | 0 | 0.061321 | 0.018868 | 0.20283 | 0.042453 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8d63217e5fdc8f7f711034a43dd2b7d398591281 | 18,373 | py | Python | analysis/plot/python/plot_groups/estimator.py | leozz37/makani | c94d5c2b600b98002f932e80a313a06b9285cc1b | [
"Apache-2.0"
] | 1,178 | 2020-09-10T17:15:42.000Z | 2022-03-31T14:59:35.000Z | analysis/plot/python/plot_groups/estimator.py | leozz37/makani | c94d5c2b600b98002f932e80a313a06b9285cc1b | [
"Apache-2.0"
] | 1 | 2020-05-22T05:22:35.000Z | 2020-05-22T05:22:35.000Z | analysis/plot/python/plot_groups/estimator.py | leozz37/makani | c94d5c2b600b98002f932e80a313a06b9285cc1b | [
"Apache-2.0"
] | 107 | 2020-09-10T17:29:30.000Z | 2022-03-18T09:00:14.000Z | # Copyright 2020 Makani Technologies LLC
#
# 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... | 46.047619 | 80 | 0.56828 | 2,764 | 18,373 | 3.654486 | 0.122287 | 0.043065 | 0.057915 | 0.04851 | 0.581725 | 0.537373 | 0.50302 | 0.422631 | 0.362142 | 0.31185 | 0 | 0.011304 | 0.19594 | 18,373 | 398 | 81 | 46.163317 | 0.672443 | 0.052795 | 0 | 0.236196 | 0 | 0 | 0.254317 | 0 | 0 | 0 | 0 | 0.002513 | 0 | 1 | 0.113497 | false | 0.003067 | 0.027607 | 0 | 0.147239 | 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 |
8d638991d71730377e930b6afff8fce13cde7b4a | 4,453 | py | Python | siptrackdlib/objectregistry.py | sii/siptrackd | f124f750c5c826156c31ae8699e90ff95a964a02 | [
"Apache-2.0"
] | null | null | null | siptrackdlib/objectregistry.py | sii/siptrackd | f124f750c5c826156c31ae8699e90ff95a964a02 | [
"Apache-2.0"
] | 14 | 2016-03-18T13:28:16.000Z | 2019-06-02T21:11:29.000Z | siptrackdlib/objectregistry.py | sii/siptrackd | f124f750c5c826156c31ae8699e90ff95a964a02 | [
"Apache-2.0"
] | 7 | 2016-03-18T13:04:54.000Z | 2021-06-22T10:39:04.000Z | from siptrackdlib import errors
from siptrackdlib import log
class ObjectClass(object):
"""A class definition in the object registry.
Stores a reference to the class itself and also a list of valid child
classes (class_ids).
"""
def __init__(self, class_reference):
self.class_reference = c... | 37.108333 | 88 | 0.650348 | 588 | 4,453 | 4.746599 | 0.207483 | 0.047653 | 0.097456 | 0.040846 | 0.347187 | 0.244357 | 0.209961 | 0.194554 | 0.166607 | 0.166607 | 0 | 0.000935 | 0.279362 | 4,453 | 119 | 89 | 37.420168 | 0.868806 | 0.292387 | 0 | 0.275362 | 0 | 0 | 0.031789 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173913 | false | 0 | 0.028986 | 0 | 0.42029 | 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 |
8d66576529e5704ad9e6b2d90cc87687907b8c91 | 1,139 | py | Python | src/kol/request/CombatRequest.py | ZJ/pykol | c0523a4a4d09bcdf16f8c86c78da96914e961076 | [
"BSD-3-Clause"
] | 1 | 2016-05-08T13:26:56.000Z | 2016-05-08T13:26:56.000Z | src/kol/request/CombatRequest.py | ZJ/pykol | c0523a4a4d09bcdf16f8c86c78da96914e961076 | [
"BSD-3-Clause"
] | null | null | null | src/kol/request/CombatRequest.py | ZJ/pykol | c0523a4a4d09bcdf16f8c86c78da96914e961076 | [
"BSD-3-Clause"
] | null | null | null | from GenericAdventuringRequest import GenericAdventuringRequest
class CombatRequest(GenericAdventuringRequest):
"""
A request used for a single round of combat. The user may attack, use an item or skill, or
attempt to run away.
"""
# What follows are a list of available actions.
ATTACK = 0
USE_ITEM = 1
USE_S... | 32.542857 | 92 | 0.72432 | 155 | 1,139 | 5.212903 | 0.432258 | 0.111386 | 0.10396 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004269 | 0.177349 | 1,139 | 34 | 93 | 33.5 | 0.858058 | 0.381036 | 0 | 0 | 0 | 0 | 0.113737 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.052632 | 0 | 0.368421 | 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 |
8d6a85cb3cf62644daa8bec049af6d5de6f147e2 | 632 | py | Python | src/modules/dates/searchDates.py | leonardoleyva/api-agenda-uas | 697740a0a3feebb2ada01133db020fcf5127e1de | [
"MIT"
] | 1 | 2022-03-13T02:28:29.000Z | 2022-03-13T02:28:29.000Z | src/modules/dates/searchDates.py | leonardoleyva/api-agenda-uas | 697740a0a3feebb2ada01133db020fcf5127e1de | [
"MIT"
] | null | null | null | src/modules/dates/searchDates.py | leonardoleyva/api-agenda-uas | 697740a0a3feebb2ada01133db020fcf5127e1de | [
"MIT"
] | null | null | null | from .date import Date
from ..response import handleResponse
from datetime import datetime
def searchDates():
req = Date().searchAll()
message = "Listado de citas" if req['status'] == True else "No se pudo conseguir el listado de citas, inténtelo más tarde"
dateToday = datetime.now().isoformat().split('... | 27.478261 | 126 | 0.643987 | 77 | 632 | 5.272727 | 0.545455 | 0.044335 | 0.068966 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004057 | 0.219937 | 632 | 22 | 127 | 28.727273 | 0.819473 | 0 | 0 | 0 | 0 | 0 | 0.161392 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.2 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8d6cc5852312640c236532b7026c1ac08efbc30f | 13,148 | py | Python | core/views/misc.py | ditttu/gymkhana-Nominations | 2a0e993c1b8362c456a9369b0b549d1c809a21df | [
"MIT"
] | 3 | 2018-02-27T13:48:28.000Z | 2018-03-03T21:57:50.000Z | core/views/misc.py | ditttu/gymkhana-Nominations | 2a0e993c1b8362c456a9369b0b549d1c809a21df | [
"MIT"
] | 6 | 2020-02-12T00:07:46.000Z | 2022-03-11T23:25:59.000Z | core/views/misc.py | ditttu/gymkhana-Nominations | 2a0e993c1b8362c456a9369b0b549d1c809a21df | [
"MIT"
] | 1 | 2019-03-26T20:19:57.000Z | 2019-03-26T20:19:57.000Z | from django.contrib.auth.decorators import login_required
from django.core.exceptions import ObjectDoesNotExist
from django.core.urlresolvers import reverse, reverse_lazy
from django.http import HttpResponseRedirect
from django.shortcuts import render,HttpResponse
from django.views.generic.edit import CreateView, Updat... | 34.783069 | 179 | 0.6601 | 1,537 | 13,148 | 5.446975 | 0.127521 | 0.015767 | 0.027234 | 0.038462 | 0.579312 | 0.535834 | 0.508958 | 0.484711 | 0.477186 | 0.449833 | 0 | 0.00068 | 0.217143 | 13,148 | 377 | 180 | 34.875332 | 0.812688 | 0.040843 | 0 | 0.503788 | 0 | 0 | 0.082776 | 0.002122 | 0.007576 | 0 | 0 | 0 | 0 | 1 | 0.075758 | false | 0.003788 | 0.056818 | 0 | 0.287879 | 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 |
8d6deeb2db5e44e12af11dde00260d1e8aae607e | 29,706 | py | Python | make_paper_plots.py | mjbasso/asymptotic_formulae_examples | a1ba177426bf82e2a58e7b54e1874b088a86595f | [
"MIT"
] | 1 | 2021-08-06T14:58:51.000Z | 2021-08-06T14:58:51.000Z | make_paper_plots.py | mjbasso/asymptotic_formulae_examples | a1ba177426bf82e2a58e7b54e1874b088a86595f | [
"MIT"
] | null | null | null | make_paper_plots.py | mjbasso/asymptotic_formulae_examples | a1ba177426bf82e2a58e7b54e1874b088a86595f | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import logging
import os
import pickle
import time
from os.path import join as pjoin
import matplotlib.pyplot as plt
import numpy as np
import scipy
from matplotlib import rc
from scipy.optimize import least_squares
import asymptotic_formulae
from asymptotic_formulae import GaussZ0
from asympto... | 46.85489 | 272 | 0.523564 | 4,117 | 29,706 | 3.672334 | 0.111732 | 0.006548 | 0.017263 | 0.013096 | 0.650175 | 0.592169 | 0.556783 | 0.512335 | 0.485085 | 0.472849 | 0 | 0.070525 | 0.286878 | 29,706 | 633 | 273 | 46.92891 | 0.643174 | 0.098869 | 0 | 0.408034 | 0 | 0.021142 | 0.126919 | 0.026866 | 0 | 0 | 0 | 0 | 0.016913 | 1 | 0.048626 | false | 0.004228 | 0.035941 | 0.012685 | 0.112051 | 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 |
8d783ab1b46b55a24509d554110a68bdbb340935 | 11,660 | py | Python | montecarlo/mcpy/monte_carlo.py | v-asatha/EconML | eb9ac829e93abbc8a163ab09d905b40370b21b1a | [
"MIT"
] | null | null | null | montecarlo/mcpy/monte_carlo.py | v-asatha/EconML | eb9ac829e93abbc8a163ab09d905b40370b21b1a | [
"MIT"
] | null | null | null | montecarlo/mcpy/monte_carlo.py | v-asatha/EconML | eb9ac829e93abbc8a163ab09d905b40370b21b1a | [
"MIT"
] | null | null | null | # Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
import os
import sys
import numpy as np
from joblib import Parallel, delayed
import joblib
import argparse
import importlib
from itertools import product
import collections
from copy import deepcopy
from mcpy.utils import fi... | 48.786611 | 154 | 0.660806 | 1,521 | 11,660 | 4.879684 | 0.186719 | 0.057936 | 0.029103 | 0.021827 | 0.405416 | 0.361223 | 0.246834 | 0.223255 | 0.20062 | 0.147265 | 0 | 0.001823 | 0.247427 | 11,660 | 238 | 155 | 48.991597 | 0.843989 | 0.357204 | 0 | 0.136752 | 0 | 0.008547 | 0.151813 | 0.003178 | 0.034188 | 0 | 0 | 0 | 0.111111 | 1 | 0.059829 | false | 0 | 0.102564 | 0 | 0.222222 | 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 |
8d7ad5ef06de97e8b617443c00cdb60123831b97 | 5,845 | py | Python | MusicGame.py | kfparri/MusicGame | f2914cae7a68585ca1a569c78ac13f68c1adb827 | [
"MIT"
] | null | null | null | MusicGame.py | kfparri/MusicGame | f2914cae7a68585ca1a569c78ac13f68c1adb827 | [
"MIT"
] | null | null | null | MusicGame.py | kfparri/MusicGame | f2914cae7a68585ca1a569c78ac13f68c1adb827 | [
"MIT"
] | null | null | null | #------------------------------------------------------------------------------------------------------
# File Name: MusicGame.py
# Author: Kyle Parrish
# Date: 7/4/2014
# Description: This is a simple program that I wrote for the raspberry pi so that my daughter can
# play with. It is a simple pro... | 34.791667 | 134 | 0.609239 | 753 | 5,845 | 4.64409 | 0.410359 | 0.028024 | 0.010295 | 0.016014 | 0.199028 | 0.136975 | 0.107235 | 0.107235 | 0.09551 | 0.034887 | 0 | 0.047729 | 0.257998 | 5,845 | 167 | 135 | 35 | 0.758589 | 0.441574 | 0 | 0.206897 | 0 | 0 | 0.140713 | 0.135084 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045977 | false | 0 | 0.045977 | 0 | 0.126437 | 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 |
8d7e6b625734d32d6eb3ec106401a004caa7962c | 5,763 | py | Python | DeepLearning/DeepLearning/07_Deep_LeeYS/Week_1/4. Single-Layer NN/4) Neural Network.py | ghost9023/DeepLearningPythonStudy | 4d319c8729472cc5f490935854441a2d4b4e8818 | [
"MIT"
] | 1 | 2019-06-27T04:05:59.000Z | 2019-06-27T04:05:59.000Z | DeepLearning/DeepLearning/07_Deep_LeeYS/Week_1/4. Single-Layer NN/4) Neural Network.py | ghost9023/DeepLearningPythonStudy | 4d319c8729472cc5f490935854441a2d4b4e8818 | [
"MIT"
] | null | null | null | DeepLearning/DeepLearning/07_Deep_LeeYS/Week_1/4. Single-Layer NN/4) Neural Network.py | ghost9023/DeepLearningPythonStudy | 4d319c8729472cc5f490935854441a2d4b4e8818 | [
"MIT"
] | null | null | null | #4) 신경망 구현하기
##########KEYWORD###############
################################
#신경망은 입력층에서 출력층으로 기본적으로 한 방향으로 흐른다. 한 싸이클이 끝나면 역전파 알고리즘을 통해
#계속 학습으 진행하지만 역전파 알고리즘과 같은 고급 알고리즘은 다음장에서..
#한 방향으로만 정보가 전방으로 전달되는 신경망을 피드포워드 신경망(Feed Forward NN)이라고 한다.
#기본적으로 신경망은 입력층에서 데이터 입력을 받은 뒤 은닉층에서 데이터를 학습하고 출력층으로 결과를 내보낸다.
#입력... | 36.707006 | 120 | 0.640986 | 1,238 | 5,763 | 2.974152 | 0.519386 | 0.010864 | 0.013036 | 0.014666 | 0.048886 | 0.022542 | 0.006518 | 0 | 0 | 0 | 0 | 0.058905 | 0.248829 | 5,763 | 156 | 121 | 36.942308 | 0.791638 | 0.757418 | 0 | 0.195122 | 0 | 0 | 0.019093 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.146341 | false | 0 | 0.04878 | 0.073171 | 0.341463 | 0.02439 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8d7eb5aaefc17250eb9787e23ab1f5200d2d65f8 | 466 | py | Python | label_gen.py | avasid/gaze_detection | dbb76a2b3f3eedff5801b53bc95b3a95bc715bc5 | [
"MIT"
] | 1 | 2020-02-07T21:34:10.000Z | 2020-02-07T21:34:10.000Z | label_gen.py | avasid/gaze_detection | dbb76a2b3f3eedff5801b53bc95b3a95bc715bc5 | [
"MIT"
] | 8 | 2020-11-13T18:37:12.000Z | 2022-03-12T00:14:04.000Z | label_gen.py | avasid/gaze_detection | dbb76a2b3f3eedff5801b53bc95b3a95bc715bc5 | [
"MIT"
] | null | null | null | import os
import pandas as pd
dictt = {}
i = 0
for label in ['down', 'up', 'left', 'right']:
img_lst = os.listdir("./data/img_data/" + label + "/")
temp_label = [0] * 4
temp_label[i] = 1
for img in img_lst:
print(label + " " + img)
dictt[img] = temp_label
i += 1
label_df = pd.Dat... | 23.3 | 86 | 0.592275 | 73 | 466 | 3.616438 | 0.424658 | 0.106061 | 0.075758 | 0.113636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016438 | 0.216738 | 466 | 19 | 87 | 24.526316 | 0.706849 | 0 | 0 | 0 | 0 | 0 | 0.148069 | 0.045064 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 0 | 0.133333 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8d7fb31d8d0c397a081d7685e96fa1bf8414f9a6 | 2,398 | py | Python | rubik_race/rubiks_race/solver_test.py | ZengLawrence/rubiks_race | 3d78484f0a68c7e483953cea68130f1edde2739a | [
"MIT"
] | null | null | null | rubik_race/rubiks_race/solver_test.py | ZengLawrence/rubiks_race | 3d78484f0a68c7e483953cea68130f1edde2739a | [
"MIT"
] | null | null | null | rubik_race/rubiks_race/solver_test.py | ZengLawrence/rubiks_race | 3d78484f0a68c7e483953cea68130f1edde2739a | [
"MIT"
] | null | null | null | '''
Created on Jun 27, 2017
@author: lawrencezeng
'''
import unittest
from rubiks_race import solver
class Test(unittest.TestCase):
def setUp(self):
self.initial_position = [
['g', 'g', 'y', 'r', 'r' ],
['w', 'g', 'w', 'w', 'y' ],
['g', 'o', ' '... | 31.142857 | 96 | 0.27648 | 221 | 2,398 | 2.900452 | 0.20362 | 0.018721 | 0.028081 | 0.024961 | 0.355694 | 0.355694 | 0.355694 | 0.355694 | 0.355694 | 0.355694 | 0 | 0.018257 | 0.497498 | 2,398 | 76 | 97 | 31.552632 | 0.513693 | 0.038365 | 0 | 0.576271 | 0 | 0 | 0.05483 | 0 | 0 | 0 | 0 | 0 | 0.033898 | 1 | 0.067797 | false | 0 | 0.033898 | 0.016949 | 0.135593 | 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 |
8d80488b5bce65f6332a7212b2c16986023812ef | 1,625 | py | Python | wagtail_translation/migrations/0001_initial.py | patroqueeet/wagtail2-translation | 6a7ad4eea5d900c8640f965ebf7a442dd7bc7e74 | [
"MIT"
] | null | null | null | wagtail_translation/migrations/0001_initial.py | patroqueeet/wagtail2-translation | 6a7ad4eea5d900c8640f965ebf7a442dd7bc7e74 | [
"MIT"
] | null | null | null | wagtail_translation/migrations/0001_initial.py | patroqueeet/wagtail2-translation | 6a7ad4eea5d900c8640f965ebf7a442dd7bc7e74 | [
"MIT"
] | 1 | 2021-01-08T19:25:46.000Z | 2021-01-08T19:25:46.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from modeltranslation import settings as mt_settings
from modeltranslation.utils import build_localized_fieldname, get_translation_fields
from django.db import migrations, models
def url_path_fix(apps, schema_editor):
# cannot use apps.get_model her... | 37.790698 | 84 | 0.715692 | 204 | 1,625 | 5.490196 | 0.504902 | 0.05625 | 0.061607 | 0.044643 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005456 | 0.210462 | 1,625 | 42 | 85 | 38.690476 | 0.867498 | 0.312 | 0 | 0 | 0 | 0 | 0.099265 | 0.022059 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.227273 | 0 | 0.409091 | 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 |
8d8293dd05c195d7acdf3af64d74eb27c71ed3fc | 99,195 | py | Python | WORC/WORC.py | MStarmans91/WORC | b6b8fc2ccb7d443a69b5ca20b1d6efb65b3f0fc7 | [
"ECL-2.0",
"Apache-2.0"
] | 47 | 2018-01-28T14:08:15.000Z | 2022-03-24T16:10:07.000Z | WORC/WORC.py | JZK00/WORC | 14e8099835eccb35d49b52b97c0be64ecca3809c | [
"ECL-2.0",
"Apache-2.0"
] | 13 | 2018-08-28T13:32:57.000Z | 2020-10-26T16:35:59.000Z | WORC/WORC.py | JZK00/WORC | 14e8099835eccb35d49b52b97c0be64ecca3809c | [
"ECL-2.0",
"Apache-2.0"
] | 16 | 2017-11-13T10:53:36.000Z | 2022-03-18T17:02:04.000Z | #!/usr/bin/env python
# Copyright 2016-2021 Biomedical Imaging Group Rotterdam, Departments of
# Medical Informatics and Radiology, Erasmus MC, Rotterdam, The Netherlands
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obt... | 53.822572 | 228 | 0.559897 | 9,626 | 99,195 | 5.562331 | 0.098587 | 0.027081 | 0.025718 | 0.019722 | 0.537643 | 0.455316 | 0.388884 | 0.346656 | 0.297387 | 0.257662 | 0 | 0.009288 | 0.330289 | 99,195 | 1,842 | 229 | 53.851792 | 0.796694 | 0.133091 | 0 | 0.313372 | 0 | 0.001641 | 0.193925 | 0.0444 | 0 | 0 | 0 | 0.000543 | 0 | 1 | 0.013126 | false | 0.00082 | 0.014766 | 0 | 0.030353 | 0.010664 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8d86c9a6526d8d524710fa780972b087a3f46ac3 | 7,715 | py | Python | causal_rl/environments/multi_typed.py | vluzko/causal_rl | 92ee221bdf1932fa83955441baabb5e28b78ab9d | [
"MIT"
] | 2 | 2021-04-02T12:06:13.000Z | 2022-02-09T06:57:26.000Z | causal_rl/environments/multi_typed.py | vluzko/causal_rl | 92ee221bdf1932fa83955441baabb5e28b78ab9d | [
"MIT"
] | 11 | 2020-12-28T14:51:31.000Z | 2021-03-29T19:53:24.000Z | causal_rl/environments/multi_typed.py | vluzko/causal_rl | 92ee221bdf1932fa83955441baabb5e28b78ab9d | [
"MIT"
] | null | null | null | import numpy as np
import matplotlib as mpl
import matplotlib.pyplot as plt
from gym import Env
from scipy.spatial import distance
from typing import Optional, Tuple, Any
from causal_rl.environments import CausalEnv
class MultiTyped(CausalEnv):
"""A simulation of balls bouncing with gravity and elastic collisio... | 36.738095 | 106 | 0.568762 | 1,083 | 7,715 | 3.950139 | 0.196676 | 0.035063 | 0.051426 | 0.015428 | 0.417017 | 0.372137 | 0.335905 | 0.320477 | 0.284245 | 0.259467 | 0 | 0.030557 | 0.287362 | 7,715 | 209 | 107 | 36.913876 | 0.747545 | 0.10512 | 0 | 0.205674 | 0 | 0 | 0.009571 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085106 | false | 0 | 0.056738 | 0.014184 | 0.234043 | 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 |
8d88e96d4a71ca08ce8d66eee14e65dd7c02396c | 3,189 | py | Python | bin/makeReport.py | oxfordmmm/SARS-CoV2_workflows | a84cb0a7142684414b2f285dd27cc2ea287eecb9 | [
"MIT"
] | null | null | null | bin/makeReport.py | oxfordmmm/SARS-CoV2_workflows | a84cb0a7142684414b2f285dd27cc2ea287eecb9 | [
"MIT"
] | null | null | null | bin/makeReport.py | oxfordmmm/SARS-CoV2_workflows | a84cb0a7142684414b2f285dd27cc2ea287eecb9 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import pandas as pd
import sys
import json
from Bio import SeqIO
sample_name=sys.argv[1]
pango=pd.read_csv('pango.csv')
nextclade=pd.read_csv('nextclade.tsv', sep='\t')
aln2type=pd.read_csv('aln2type.csv')
pango['sampleName']=sample_name
nextclade['sampleName']=sample_name
aln2type['sampleName... | 35.831461 | 90 | 0.756977 | 423 | 3,189 | 5.541371 | 0.304965 | 0.059727 | 0.03285 | 0.043515 | 0.195392 | 0.042662 | 0 | 0 | 0 | 0 | 0 | 0.017028 | 0.060834 | 3,189 | 88 | 91 | 36.238636 | 0.765609 | 0.070869 | 0 | 0 | 0 | 0 | 0.303862 | 0.077575 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015873 | false | 0 | 0.063492 | 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 |
8d8a5d72d65e690dc4c82341ed975187662e4c48 | 1,484 | py | Python | webhooks/statuscake/alerta_statuscake.py | frekel/alerta-contrib | d8f5c93a4ea735085b3689c2c852ecae94924d08 | [
"MIT"
] | 114 | 2015-02-05T00:22:16.000Z | 2021-11-25T13:02:44.000Z | webhooks/statuscake/alerta_statuscake.py | NeilOrley/alerta-contrib | 69d271ef9fe6542727ec4aa39fc8e0f797f1e8b1 | [
"MIT"
] | 245 | 2016-01-09T22:29:09.000Z | 2022-03-16T10:37:02.000Z | webhooks/statuscake/alerta_statuscake.py | NeilOrley/alerta-contrib | 69d271ef9fe6542727ec4aa39fc8e0f797f1e8b1 | [
"MIT"
] | 193 | 2015-01-30T21:22:49.000Z | 2022-03-28T05:37:14.000Z | from alerta.models.alert import Alert
from alerta.webhooks import WebhookBase
from alerta.exceptions import RejectException
import os
import hashlib
class StatusCakeWebhook(WebhookBase):
def incoming(self, query_string, payload):
alert_severity = os.environ.get('STATUSCAKE_DEFAULT_ALERT_SEVERITY', 'major'... | 35.333333 | 85 | 0.624663 | 147 | 1,484 | 6.176871 | 0.517007 | 0.099119 | 0.039648 | 0.072687 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000937 | 0.280997 | 1,484 | 41 | 86 | 36.195122 | 0.850047 | 0.065364 | 0 | 0 | 0 | 0 | 0.150289 | 0.023844 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0 | 0.15625 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8d8b51eaca246cacfde939fcbc4a16b39dba720e | 3,738 | py | Python | ironic_discoverd/main.py | enovance/ironic-discoverd | d3df6178ca5c95943c93ff80723c86b7080bca0b | [
"Apache-2.0"
] | null | null | null | ironic_discoverd/main.py | enovance/ironic-discoverd | d3df6178ca5c95943c93ff80723c86b7080bca0b | [
"Apache-2.0"
] | null | null | null | ironic_discoverd/main.py | enovance/ironic-discoverd | d3df6178ca5c95943c93ff80723c86b7080bca0b | [
"Apache-2.0"
] | null | null | null | # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the... | 31.411765 | 75 | 0.688604 | 470 | 3,738 | 5.393617 | 0.393617 | 0.023669 | 0.037475 | 0.04931 | 0.257199 | 0.223274 | 0.161736 | 0.131755 | 0.087574 | 0.087574 | 0 | 0.007757 | 0.206795 | 3,738 | 118 | 76 | 31.677966 | 0.847218 | 0.150348 | 0 | 0.259259 | 0 | 0 | 0.206264 | 0.026574 | 0 | 0 | 0 | 0.008475 | 0 | 1 | 0.061728 | false | 0 | 0.135802 | 0 | 0.271605 | 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 |
8d8c7b2102958e3a921b5b5a1f32ed6750cd5ff4 | 964 | py | Python | config_translator.py | Charahiro-tan/Jurubot_Translator | d0d0db137f3ddfe06d7cd9457d22c418bdeff94c | [
"MIT"
] | 1 | 2021-07-26T11:14:05.000Z | 2021-07-26T11:14:05.000Z | config_translator.py | Charahiro-tan/Jurubot_Translator | d0d0db137f3ddfe06d7cd9457d22c418bdeff94c | [
"MIT"
] | null | null | null | config_translator.py | Charahiro-tan/Jurubot_Translator | d0d0db137f3ddfe06d7cd9457d22c418bdeff94c | [
"MIT"
] | null | null | null | ##################################################
# 翻訳の設定
# 変更した設定は次回起動時から適用されます
##################################################
# []でくくってある項目は""でくくって,で区切ることでいくつも設定できます。
# 無視するユーザー
ignore_user = ["Nightbot","Streamelements","Moobot"]
# 翻訳する前に削除するワード。正規表現対応。
# URLや同じ言葉の繰り返しなどはデフォルトで削除してますので足りなかったら追加してください。
del_wor... | 22.418605 | 61 | 0.692946 | 82 | 964 | 8.036585 | 0.792683 | 0.045524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004603 | 0.098548 | 964 | 43 | 62 | 22.418605 | 0.752589 | 0.590249 | 0 | 0 | 0 | 0 | 0.195652 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8d8cd77924dc533eeabb54595050045f0fb725d3 | 1,489 | py | Python | wxcloudrun/dao.py | lubupang/resume_flask1 | 1ea18e88c0b667e92710096f57973a77d19e8fc6 | [
"MIT"
] | null | null | null | wxcloudrun/dao.py | lubupang/resume_flask1 | 1ea18e88c0b667e92710096f57973a77d19e8fc6 | [
"MIT"
] | null | null | null | wxcloudrun/dao.py | lubupang/resume_flask1 | 1ea18e88c0b667e92710096f57973a77d19e8fc6 | [
"MIT"
] | null | null | null | import logging
from sqlalchemy.exc import OperationalError
from wxcloudrun import db
from wxcloudrun.model import Counters
# 初始化日志
logger = logging.getLogger('log')
logger.info("aaaaaaa")
def query_counterbyid(id):
"""
根据ID查询Counter实体
:param id: Counter的ID
:return: Counter实体
"""
logger.info(... | 22.560606 | 65 | 0.633983 | 158 | 1,489 | 5.917722 | 0.316456 | 0.064171 | 0.102674 | 0.106952 | 0.281283 | 0.281283 | 0.24385 | 0.24385 | 0.175401 | 0.121925 | 0 | 0 | 0.257891 | 1,489 | 65 | 66 | 22.907692 | 0.846154 | 0.117529 | 0 | 0.405405 | 0 | 0 | 0.115166 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.108108 | false | 0 | 0.108108 | 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 |
8d8db8eca4cacfeb8ce07aa8011f8a4b558400b4 | 7,411 | py | Python | src/bpp/tests/tests_legacy/test_views/test_raporty.py | iplweb/django-bpp | 85f183a99d8d5027ae4772efac1e4a9f21675849 | [
"BSD-3-Clause"
] | 1 | 2017-04-27T19:50:02.000Z | 2017-04-27T19:50:02.000Z | src/bpp/tests/tests_legacy/test_views/test_raporty.py | mpasternak/django-bpp | 434338821d5ad1aaee598f6327151aba0af66f5e | [
"BSD-3-Clause"
] | 41 | 2019-11-07T00:07:02.000Z | 2022-02-27T22:09:39.000Z | src/bpp/tests/tests_legacy/test_views/test_raporty.py | iplweb/bpp | f027415cc3faf1ca79082bf7bacd4be35b1a6fdf | [
"BSD-3-Clause"
] | null | null | null | # -*- encoding: utf-8 -*-
import os
import sys
import uuid
import pytest
from django.apps import apps
from django.contrib.auth.models import Group
from django.core.files.base import ContentFile
try:
from django.core.urlresolvers import reverse
except ImportError:
from django.urls import reverse
from django.db... | 32.221739 | 95 | 0.643233 | 868 | 7,411 | 5.366359 | 0.268433 | 0.017175 | 0.027909 | 0.034779 | 0.335552 | 0.284242 | 0.256548 | 0.198583 | 0.162731 | 0.14255 | 0 | 0.018029 | 0.244097 | 7,411 | 229 | 96 | 32.362445 | 0.813459 | 0.028336 | 0 | 0.296512 | 0 | 0 | 0.105088 | 0.014596 | 0 | 0 | 0 | 0 | 0.098837 | 1 | 0.116279 | false | 0.005814 | 0.127907 | 0 | 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 |
8d8ebb77655b687ce95045239bb38a91c19a2901 | 1,192 | py | Python | manager_app/serializers/carousel_serializers.py | syz247179876/e_mall | f94e39e091e098242342f532ae371b8ff127542f | [
"Apache-2.0"
] | 7 | 2021-04-10T13:20:56.000Z | 2022-03-29T15:00:29.000Z | manager_app/serializers/carousel_serializers.py | syz247179876/E_mall | f94e39e091e098242342f532ae371b8ff127542f | [
"Apache-2.0"
] | 9 | 2021-05-11T03:53:31.000Z | 2022-03-12T00:58:03.000Z | manager_app/serializers/carousel_serializers.py | syz247179876/E_mall | f94e39e091e098242342f532ae371b8ff127542f | [
"Apache-2.0"
] | 2 | 2020-11-24T08:59:22.000Z | 2020-11-24T14:10:59.000Z | # -*- coding: utf-8 -*-
# @Time : 2021/4/6 下午9:21
# @Author : 司云中
# @File : carousel_serializers.py
# @Software: Pycharm
from rest_framework import serializers
from Emall.exceptions import DataFormatError
from shop_app.models.commodity_models import Carousel
class ManagerCarouselSerializer(serializers.ModelSeriali... | 27.090909 | 97 | 0.654362 | 136 | 1,192 | 5.625 | 0.544118 | 0.058824 | 0.05098 | 0.078431 | 0.16732 | 0.16732 | 0.088889 | 0 | 0 | 0 | 0 | 0.010549 | 0.204698 | 1,192 | 43 | 98 | 27.72093 | 0.796414 | 0.11745 | 0 | 0.181818 | 0 | 0 | 0.047758 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136364 | false | 0 | 0.136364 | 0 | 0.590909 | 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 |
8d9135e1864bf2b1336ddc05e72617edb4057d7b | 7,312 | py | Python | xfbin/structure/nud.py | SutandoTsukai181/xfbin_lib | 8e2c56f354bfd868f9162f816cc528e6f830cdbc | [
"MIT"
] | 3 | 2021-07-20T09:13:13.000Z | 2021-09-06T18:08:15.000Z | xfbin/structure/nud.py | SutandoTsukai181/xfbin_lib | 8e2c56f354bfd868f9162f816cc528e6f830cdbc | [
"MIT"
] | 1 | 2021-09-06T18:07:48.000Z | 2021-09-06T18:07:48.000Z | xfbin/structure/nud.py | SutandoTsukai181/xfbin_lib | 8e2c56f354bfd868f9162f816cc528e6f830cdbc | [
"MIT"
] | null | null | null | from itertools import chain
from typing import List, Tuple
from .br.br_nud import *
class Nud:
name: str # chunk name
mesh_groups: List['NudMeshGroup']
def init_data(self, name, br_nud: BrNud):
self.name = name
self.bounding_sphere = br_nud.boundingSphere
self.mesh_groups = lis... | 32.642857 | 117 | 0.607358 | 922 | 7,312 | 4.67679 | 0.172451 | 0.025046 | 0.02551 | 0.024119 | 0.14077 | 0.124072 | 0.099258 | 0.091837 | 0.087199 | 0.030148 | 0 | 0.013725 | 0.292533 | 7,312 | 223 | 118 | 32.789238 | 0.819834 | 0.00971 | 0 | 0.071429 | 0 | 0 | 0.006632 | 0 | 0 | 0 | 0.002211 | 0 | 0 | 1 | 0.095238 | false | 0.005952 | 0.017857 | 0.029762 | 0.327381 | 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 |
8d93c9fb2121a519402ceb1deef23ae520c7fdfe | 1,717 | py | Python | utils/event_store_rebuilder_for_segments.py | initialed85/eds-cctv-system | fcdb7e7e23327bf3a901d23d506b3915833027d1 | [
"MIT"
] | null | null | null | utils/event_store_rebuilder_for_segments.py | initialed85/eds-cctv-system | fcdb7e7e23327bf3a901d23d506b3915833027d1 | [
"MIT"
] | null | null | null | utils/event_store_rebuilder_for_segments.py | initialed85/eds-cctv-system | fcdb7e7e23327bf3a901d23d506b3915833027d1 | [
"MIT"
] | null | null | null | import datetime
from pathlib import Path
from typing import Optional, Tuple
from .common import _IMAGE_SUFFIXES, _PERMITTED_EXTENSIONS, PathDetails, rebuild_event_store
def parse_path(path: Path, tzinfo: datetime.tzinfo) -> Optional[PathDetails]:
if path.suffix.lower() not in _PERMITTED_EXTENSIONS:
retur... | 28.616667 | 92 | 0.663366 | 220 | 1,717 | 4.936364 | 0.381818 | 0.064457 | 0.031308 | 0.007366 | 0.053407 | 0.01105 | 0 | 0 | 0 | 0 | 0 | 0.008035 | 0.202679 | 1,717 | 59 | 93 | 29.101695 | 0.785245 | 0 | 0 | 0 | 0 | 0 | 0.092021 | 0.012231 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046512 | false | 0 | 0.139535 | 0.023256 | 0.255814 | 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 |
8d94db8d2bb9acc8dbec349c6766ca408545196a | 599 | py | Python | python/distance/HaversineDistanceInMiles.py | jigneshoo7/AlgoBook | 8aecc9698447c0ee561a1c90d5c5ab87c4a07b79 | [
"MIT"
] | 191 | 2020-09-28T10:00:20.000Z | 2022-03-06T14:36:55.000Z | python/distance/HaversineDistanceInMiles.py | jigneshoo7/AlgoBook | 8aecc9698447c0ee561a1c90d5c5ab87c4a07b79 | [
"MIT"
] | 210 | 2020-09-28T10:06:36.000Z | 2022-03-05T03:44:24.000Z | python/distance/HaversineDistanceInMiles.py | jigneshoo7/AlgoBook | 8aecc9698447c0ee561a1c90d5c5ab87c4a07b79 | [
"MIT"
] | 320 | 2020-09-28T09:56:14.000Z | 2022-02-12T16:45:57.000Z | import math
def distanceInMilesOrKilos(milesOrKilos,originLat,originLon,destinationLat,destinationLon):
radius = 3959 if milesOrKilos == "miles" else 6371
lat1 = originLat
lat2 = destinationLat
lon1 = originLon
lon2 = destinationLon
dlat = math.radians(lat2 - lat1)
dlon = mat... | 33.277778 | 153 | 0.651085 | 77 | 599 | 5.064935 | 0.415584 | 0.112821 | 0.076923 | 0.061538 | 0.071795 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053533 | 0.220367 | 599 | 18 | 154 | 33.277778 | 0.781585 | 0 | 0 | 0 | 0 | 0 | 0.008333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.076923 | 0 | 0.230769 | 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 |
8d95a5da0117840ab07b75457380a92375c5347d | 8,837 | py | Python | i2i/util.py | thorwhalen/i2i | f967aaba28793029e3fe643c5e17ae9bc7a77732 | [
"Apache-2.0"
] | 1 | 2019-08-29T01:35:12.000Z | 2019-08-29T01:35:12.000Z | i2i/util.py | thorwhalen/i2i | f967aaba28793029e3fe643c5e17ae9bc7a77732 | [
"Apache-2.0"
] | null | null | null | i2i/util.py | thorwhalen/i2i | f967aaba28793029e3fe643c5e17ae9bc7a77732 | [
"Apache-2.0"
] | null | null | null | from __future__ import division
import inspect
import types
from functools import wraps
function_type = type(lambda x: x) # using this instead of callable() because classes are callable, for instance
class NoDefault(object):
def __repr__(self):
return 'no_default'
no_default = NoDefault()
class imd... | 34.928854 | 119 | 0.629965 | 1,203 | 8,837 | 4.362427 | 0.176226 | 0.011433 | 0.020579 | 0.025152 | 0.420732 | 0.393293 | 0.38205 | 0.34718 | 0.329078 | 0.308308 | 0 | 0.004092 | 0.253367 | 8,837 | 252 | 120 | 35.06746 | 0.7913 | 0.452303 | 0 | 0.162162 | 0 | 0 | 0.036962 | 0.004958 | 0 | 0 | 0 | 0 | 0 | 1 | 0.144144 | false | 0 | 0.054054 | 0.045045 | 0.486486 | 0.009009 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8d99f51b98aee394d6e4b4f62dcc6cdca1b6db1f | 10,131 | py | Python | tutorials/seq2seq_sated/seq2seq_sated_meminf.py | rizwandel/ml_privacy_meter | 5dc4c300eadccceadd0e664a7e46099f65728628 | [
"MIT"
] | 294 | 2020-04-13T18:32:45.000Z | 2022-03-31T10:32:34.000Z | tutorials/seq2seq_sated/seq2seq_sated_meminf.py | kypomon/ml_privacy_meter | c0324e8f74cbd0cde0643a7854fa66eab47bbe53 | [
"MIT"
] | 26 | 2020-04-29T19:56:21.000Z | 2022-03-31T10:42:24.000Z | tutorials/seq2seq_sated/seq2seq_sated_meminf.py | kypomon/ml_privacy_meter | c0324e8f74cbd0cde0643a7854fa66eab47bbe53 | [
"MIT"
] | 50 | 2020-04-16T02:16:24.000Z | 2022-03-16T00:37:40.000Z | import os
import sys
from collections import defaultdict
import tensorflow as tf
import tensorflow.keras.backend as K
import numpy as np
import scipy.stats as ss
import matplotlib.pyplot as plt
from sklearn.metrics import roc_curve
from sklearn.linear_model import LogisticRegression
from utils import process_texts, ... | 35.672535 | 113 | 0.660251 | 1,490 | 10,131 | 4.160403 | 0.168456 | 0.027101 | 0.03678 | 0.01468 | 0.334731 | 0.267462 | 0.200032 | 0.188901 | 0.144862 | 0.144862 | 0 | 0.013208 | 0.222782 | 10,131 | 283 | 114 | 35.798587 | 0.774067 | 0.099398 | 0 | 0.094444 | 0 | 0 | 0.046003 | 0.007593 | 0 | 0 | 0 | 0 | 0.005556 | 1 | 0.05 | false | 0 | 0.061111 | 0 | 0.15 | 0.011111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8d9d264830cab7159205ed06b41898abec3b84f4 | 2,685 | py | Python | app/recipe/tests/test_tags_api.py | MohamedAbdelmagid/django-recipe-api | 229d3a7cff483b3cad76c70aefde6a51250b9bc8 | [
"MIT"
] | null | null | null | app/recipe/tests/test_tags_api.py | MohamedAbdelmagid/django-recipe-api | 229d3a7cff483b3cad76c70aefde6a51250b9bc8 | [
"MIT"
] | null | null | null | app/recipe/tests/test_tags_api.py | MohamedAbdelmagid/django-recipe-api | 229d3a7cff483b3cad76c70aefde6a51250b9bc8 | [
"MIT"
] | null | null | null | from django.test import TestCase
from django.urls import reverse
from django.contrib.auth import get_user_model
from rest_framework.test import APIClient
from rest_framework import status
from core.models import Tag
from recipe.serializers import TagSerializer
TAGS_URL = reverse("recipe:tag-list")
class PublicTag... | 32.349398 | 85 | 0.672998 | 335 | 2,685 | 5.259701 | 0.298507 | 0.045403 | 0.07832 | 0.045403 | 0.397276 | 0.397276 | 0.266742 | 0.187855 | 0.187855 | 0.187855 | 0 | 0.008503 | 0.211546 | 2,685 | 82 | 86 | 32.743902 | 0.823807 | 0.100186 | 0 | 0.18 | 0 | 0 | 0.059022 | 0 | 0 | 0 | 0 | 0 | 0.18 | 1 | 0.14 | false | 0.04 | 0.14 | 0 | 0.32 | 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 |
8d9d7d5c7ee0f28e0c8877291fb904e2d8ace2db | 5,736 | py | Python | dtlpy/entities/annotation_definitions/cube_3d.py | dataloop-ai/dtlpy | 2c73831da54686e047ab6aefd8f12a8e53ea97c2 | [
"Apache-2.0"
] | 10 | 2020-05-21T06:25:35.000Z | 2022-01-07T20:34:03.000Z | dtlpy/entities/annotation_definitions/cube_3d.py | dataloop-ai/dtlpy | 2c73831da54686e047ab6aefd8f12a8e53ea97c2 | [
"Apache-2.0"
] | 22 | 2019-11-17T17:25:16.000Z | 2022-03-10T15:14:28.000Z | dtlpy/entities/annotation_definitions/cube_3d.py | dataloop-ai/dtlpy | 2c73831da54686e047ab6aefd8f12a8e53ea97c2 | [
"Apache-2.0"
] | 8 | 2020-03-05T16:23:55.000Z | 2021-12-27T11:10:42.000Z | import numpy as np
# import open3d as o3d
from . import BaseAnnotationDefinition
# from scipy.spatial.transform import Rotation as R
import logging
logger = logging.getLogger(name=__name__)
class Cube3d(BaseAnnotationDefinition):
"""
Cube annotation object
"""
type = "cube_3d"
def __init__(s... | 38.496644 | 135 | 0.544107 | 712 | 5,736 | 4.286517 | 0.259831 | 0.076671 | 0.07536 | 0.028834 | 0.116645 | 0.112385 | 0.092726 | 0.086501 | 0.086501 | 0.086501 | 0 | 0.044337 | 0.31189 | 5,736 | 148 | 136 | 38.756757 | 0.728908 | 0.415795 | 0 | 0 | 0 | 0 | 0.095253 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.097222 | false | 0 | 0.083333 | 0.013889 | 0.291667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8d9e1079bef17b6514de9131ede3ab7099ea53a4 | 3,702 | py | Python | my_module/tools.py | roki18d/sphinx_autogen-apidoc | 67ad9c716c909d89bcd813a5fa871df8850e4fd5 | [
"Apache-2.0"
] | null | null | null | my_module/tools.py | roki18d/sphinx_autogen-apidoc | 67ad9c716c909d89bcd813a5fa871df8850e4fd5 | [
"Apache-2.0"
] | null | null | null | my_module/tools.py | roki18d/sphinx_autogen-apidoc | 67ad9c716c909d89bcd813a5fa871df8850e4fd5 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
from my_module.exceptions import InvalidArgumentsError
class SimpleCalculator(object):
"""SimpleCalculator
SimpleCalculator is a simple calculator.
Attributes:
operator (str):
String that represents operation type.
Acceptable va... | 30.85 | 92 | 0.562939 | 387 | 3,702 | 5.22739 | 0.335917 | 0.039545 | 0.027187 | 0.037074 | 0.255067 | 0.119624 | 0.119624 | 0.119624 | 0.081068 | 0 | 0 | 0.028527 | 0.308752 | 3,702 | 119 | 93 | 31.109244 | 0.762016 | 0.218801 | 0 | 0.216667 | 0 | 0 | 0.119497 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.116667 | false | 0 | 0.033333 | 0 | 0.266667 | 0.116667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8da38969800ff2540723920b2ba94670badb3561 | 12,114 | py | Python | PCA_ResNet50.py | liuyingbin19222/HSI_svm_pca_resNet50 | cd95d21c81e93f8b873183f10f52416f71a93d07 | [
"Apache-2.0"
] | 12 | 2020-03-13T02:39:53.000Z | 2022-02-21T03:28:33.000Z | PCA_ResNet50.py | liuyingbin19222/HSI_svm_pca_resNet50 | cd95d21c81e93f8b873183f10f52416f71a93d07 | [
"Apache-2.0"
] | 14 | 2020-02-17T12:31:08.000Z | 2022-02-10T01:07:05.000Z | PCA_ResNet50.py | liuyingbin19222/HSI_svm_pca_resNet50 | cd95d21c81e93f8b873183f10f52416f71a93d07 | [
"Apache-2.0"
] | 3 | 2020-09-06T08:19:15.000Z | 2021-03-08T10:15:40.000Z | import keras
from keras.layers import Conv2D, Conv3D, Flatten, Dense, Reshape, BatchNormalization
from keras.layers import Dropout, Input
from keras.models import Model
from keras.optimizers import Adam
from keras.callbacks import ModelCheckpoint
from keras.utils import np_utils
from sklearn.decomposition impo... | 34.123944 | 159 | 0.630097 | 1,654 | 12,114 | 4.480048 | 0.195889 | 0.014575 | 0.017004 | 0.017274 | 0.517949 | 0.457895 | 0.434953 | 0.394332 | 0.348448 | 0.320378 | 0 | 0.045421 | 0.223956 | 12,114 | 354 | 160 | 34.220339 | 0.742793 | 0.140499 | 0 | 0.235602 | 0 | 0 | 0.056077 | 0.009482 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052356 | false | 0 | 0.183246 | 0.005236 | 0.282723 | 0.010471 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8da4e24daba79cfc5a237fbfd0bd61228b6bdc1d | 754 | py | Python | tests/test_data/utest/setup.py | gordonmessmer/pyp2rpm | 60145ba6fa49ad5bb29eeffa5765e10ba8417f03 | [
"MIT"
] | 114 | 2015-07-13T12:38:27.000Z | 2022-03-23T15:05:11.000Z | tests/test_data/utest/setup.py | gordonmessmer/pyp2rpm | 60145ba6fa49ad5bb29eeffa5765e10ba8417f03 | [
"MIT"
] | 426 | 2015-07-13T12:09:38.000Z | 2022-01-07T16:41:32.000Z | tests/test_data/utest/setup.py | Mattlk13/pyp2rpm | f9ced95877d88c96b77b2b8c510dc4ceaa10504a | [
"MIT"
] | 51 | 2015-07-14T13:11:29.000Z | 2022-03-31T07:27:32.000Z | #!/usr/bin/env python3
from setuptools import setup, find_packages
requirements = ["pyp2rpm~=3.3.1"]
setup(
name="utest",
version="0.1.0",
description="Micro test module",
license="GPLv2+",
author="pyp2rpm Developers",
author_email='bkabrda@redhat.com, rkuska@redhat.com, mcyprian@redhat.com, ... | 30.16 | 99 | 0.66313 | 87 | 754 | 5.678161 | 0.689655 | 0.072874 | 0.101215 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022876 | 0.188329 | 754 | 24 | 100 | 31.416667 | 0.784314 | 0.027851 | 0 | 0 | 0 | 0.05 | 0.493169 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.05 | 0 | 0.05 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8da621c7d046b3bbba97fe0075833d24a4276a49 | 4,235 | py | Python | abstract_nas/train/preprocess.py | dumpmemory/google-research | bc87d010ab9086b6e92c3f075410fa6e1f27251b | [
"Apache-2.0"
] | null | null | null | abstract_nas/train/preprocess.py | dumpmemory/google-research | bc87d010ab9086b6e92c3f075410fa6e1f27251b | [
"Apache-2.0"
] | null | null | null | abstract_nas/train/preprocess.py | dumpmemory/google-research | bc87d010ab9086b6e92c3f075410fa6e1f27251b | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# Copyright 2022 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | 32.576923 | 79 | 0.633058 | 568 | 4,235 | 4.536972 | 0.323944 | 0.041909 | 0.025223 | 0.029104 | 0.235933 | 0.223516 | 0.185487 | 0.133489 | 0.089251 | 0.089251 | 0 | 0.034547 | 0.241322 | 4,235 | 129 | 80 | 32.829457 | 0.767507 | 0.273436 | 0 | 0.246753 | 0 | 0 | 0.256461 | 0.104705 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064935 | false | 0 | 0.090909 | 0 | 0.220779 | 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 |
8da70610f3402c8b44d3fbdf21a05f4f563b016b | 488 | py | Python | hidb/wrapper.py | sk-ip/hidb | 1394000992c016607e7af15095f058cd9cce007b | [
"MIT"
] | null | null | null | hidb/wrapper.py | sk-ip/hidb | 1394000992c016607e7af15095f058cd9cce007b | [
"MIT"
] | null | null | null | hidb/wrapper.py | sk-ip/hidb | 1394000992c016607e7af15095f058cd9cce007b | [
"MIT"
] | null | null | null | from datetime import datetime
class fileWrapper(object):
def __init__(self):
self.data = {}
self.keys = set()
# JSON data size 16KB in Bytes
self.max_data_size = 16384
# Max database size 1GB in Bytes
self.max_database_size = 1073741824
self.current_database... | 24.4 | 53 | 0.622951 | 60 | 488 | 4.833333 | 0.466667 | 0.082759 | 0.075862 | 0.096552 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055233 | 0.295082 | 488 | 19 | 54 | 25.684211 | 0.787791 | 0.120902 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.076923 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8da8f86888f2ee041a3f2312c9709ef180e420d0 | 4,504 | py | Python | ion-channel-models/compare.py | sanmitraghosh/fickleheart-method-tutorials | d5ee910258a2656951201d4ada2a412804013bd5 | [
"BSD-3-Clause"
] | null | null | null | ion-channel-models/compare.py | sanmitraghosh/fickleheart-method-tutorials | d5ee910258a2656951201d4ada2a412804013bd5 | [
"BSD-3-Clause"
] | null | null | null | ion-channel-models/compare.py | sanmitraghosh/fickleheart-method-tutorials | d5ee910258a2656951201d4ada2a412804013bd5 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
from __future__ import print_function
import sys
sys.path.append('./method')
import os
import numpy as np
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import model as m
"""
Run fit.
"""
predict_list = ['sinewave', 'staircase', 'activation', 'ap']
try:
which_pred... | 31.277778 | 78 | 0.690941 | 699 | 4,504 | 4.213162 | 0.287554 | 0.036672 | 0.006791 | 0.009508 | 0.247199 | 0.179966 | 0.166384 | 0.149406 | 0.065195 | 0.027165 | 0 | 0.0214 | 0.159636 | 4,504 | 143 | 79 | 31.496504 | 0.756671 | 0.062389 | 0 | 0.074074 | 0 | 0 | 0.115036 | 0.023628 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0.027778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8da906c8ad76ecde7a1bd94e5017709b02a7ce8e | 7,752 | py | Python | examples/services/classifier_service.py | bbbdragon/python-pype | f0618150cb4d2fae1f959127453fb6eca8db84e5 | [
"MIT"
] | 8 | 2019-07-12T03:28:10.000Z | 2019-07-19T20:34:45.000Z | examples/services/classifier_service.py | bbbdragon/python-pype | f0618150cb4d2fae1f959127453fb6eca8db84e5 | [
"MIT"
] | null | null | null | examples/services/classifier_service.py | bbbdragon/python-pype | f0618150cb4d2fae1f959127453fb6eca8db84e5 | [
"MIT"
] | null | null | null | '''
python3 classifier_service.py data.csv
This service runs a scikit-learn classifier on data provided by the csv file data.csv.
The idea of this is a simple spam detector. In the file, you will see a number, 1 or
-1, followed by a pipe, followed by a piece of text. The text is designed to be a
subject email, and... | 36.739336 | 172 | 0.68434 | 1,238 | 7,752 | 4.238288 | 0.267367 | 0.007433 | 0.013341 | 0.006861 | 0.112255 | 0.080046 | 0.041166 | 0.014866 | 0.014866 | 0.014866 | 0 | 0.010645 | 0.236584 | 7,752 | 210 | 173 | 36.914286 | 0.875972 | 0.563983 | 0 | 0.046512 | 0 | 0 | 0.081237 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046512 | false | 0 | 0.27907 | 0 | 0.372093 | 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 |
8da9192128d87d058ba7b763d377c653bfe2eb10 | 2,657 | py | Python | ida_plugin/uefi_analyser.py | fengjixuchui/UEFI_RETool | 72c5d54c1dab9f58a48294196bca5ce957f6fb24 | [
"MIT"
] | 240 | 2019-03-12T21:28:06.000Z | 2021-02-09T16:20:09.000Z | ida_plugin/uefi_analyser.py | fengjixuchui/UEFI_RETool | 72c5d54c1dab9f58a48294196bca5ce957f6fb24 | [
"MIT"
] | 10 | 2019-09-09T08:38:35.000Z | 2020-11-30T15:19:30.000Z | ida_plugin/uefi_analyser.py | fengjixuchui/UEFI_RETool | 72c5d54c1dab9f58a48294196bca5ce957f6fb24 | [
"MIT"
] | 53 | 2019-03-16T06:54:18.000Z | 2020-12-23T06:16:38.000Z | # SPDX-License-Identifier: MIT
import os
import idaapi
import idautils
from PyQt5 import QtWidgets
from uefi_analyser import dep_browser, dep_graph, prot_explorer, ui
AUTHOR = "yeggor"
VERSION = "1.2.0"
NAME = "UEFI_RETool"
WANTED_HOTKEY = "Ctrl+Alt+U"
HELP = "This plugin performs automatic analysis of the input UE... | 26.04902 | 73 | 0.616861 | 320 | 2,657 | 4.915625 | 0.359375 | 0.030515 | 0.044501 | 0.038144 | 0.154482 | 0.143039 | 0.143039 | 0.143039 | 0.143039 | 0.143039 | 0 | 0.002087 | 0.27851 | 2,657 | 101 | 74 | 26.306931 | 0.818466 | 0.010538 | 0 | 0.194805 | 0 | 0 | 0.176247 | 0.041112 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.012987 | 0.103896 | 0.012987 | 0.402597 | 0.103896 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8daa3414a09b9f3c7c95225a1a7fdf929b8d3dfe | 440 | py | Python | BPt/default/options/samplers.py | sahahn/ABCD_ML | a8b1c48c33f3fdc046c8922964f1c456273238da | [
"MIT"
] | 1 | 2019-09-25T23:23:49.000Z | 2019-09-25T23:23:49.000Z | BPt/default/options/samplers.py | sahahn/ABCD_ML | a8b1c48c33f3fdc046c8922964f1c456273238da | [
"MIT"
] | 1 | 2020-04-20T20:53:27.000Z | 2020-04-20T20:53:27.000Z | BPt/default/options/samplers.py | sahahn/ABCD_ML | a8b1c48c33f3fdc046c8922964f1c456273238da | [
"MIT"
] | 1 | 2019-06-21T14:44:40.000Z | 2019-06-21T14:44:40.000Z | from ..helpers import get_obj_and_params, all_from_objects
from ...extensions.samplers import OverSampler
SAMPLERS = {
'oversample': (OverSampler, ['default']),
}
def get_sampler_and_params(obj_str, extra_params, params, **kwargs):
obj, extra_obj_params, obj_params =\
get_obj_and_params(obj_str, SAM... | 25.882353 | 68 | 0.756818 | 60 | 440 | 5.133333 | 0.35 | 0.116883 | 0.058442 | 0.097403 | 0.168831 | 0.168831 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138636 | 440 | 17 | 69 | 25.882353 | 0.812665 | 0 | 0 | 0 | 0 | 0 | 0.038549 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | 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 |
a5c0fa60cac177d2865547e53143112bdfdc7111 | 1,008 | py | Python | testing.py | madjabal/morphine | 2c76b10a7276936042913d609ad773fbc08b0887 | [
"MIT"
] | 15 | 2017-03-11T18:25:04.000Z | 2022-03-31T19:54:31.000Z | testing.py | madjabal/morphine | 2c76b10a7276936042913d609ad773fbc08b0887 | [
"MIT"
] | 2 | 2018-10-17T15:08:36.000Z | 2021-06-08T13:34:56.000Z | testing.py | madjabal/morphine | 2c76b10a7276936042913d609ad773fbc08b0887 | [
"MIT"
] | 2 | 2018-07-25T15:15:54.000Z | 2019-06-14T11:16:41.000Z | # Python modules
import time
from datetime import timedelta
def consistency(func, args, expected, n=10**4):
"""Analyze and report on the consistency of a function."""
print('\n[CONSISTENCY TEST] {0}'.format(func.__doc__.format(*args)))
def show(num, den, t, p, end='\r'):
print('{3}|{4:.3f}: {0}/{... | 30.545455 | 108 | 0.558532 | 154 | 1,008 | 3.623377 | 0.422078 | 0.071685 | 0.057348 | 0.02509 | 0.103943 | 0.103943 | 0 | 0 | 0 | 0 | 0 | 0.027211 | 0.270833 | 1,008 | 33 | 109 | 30.545455 | 0.731973 | 0.126984 | 0 | 0.083333 | 0 | 0 | 0.062069 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.083333 | 0 | 0.25 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a5c112fb1800922ae32e15c8c2c3119937a66895 | 520 | py | Python | misc/python/fibonacci.py | saranshbht/codes-and-more-codes | 0bd2e46ca613b3b81e1196d393902e86a43aa353 | [
"MIT"
] | null | null | null | misc/python/fibonacci.py | saranshbht/codes-and-more-codes | 0bd2e46ca613b3b81e1196d393902e86a43aa353 | [
"MIT"
] | null | null | null | misc/python/fibonacci.py | saranshbht/codes-and-more-codes | 0bd2e46ca613b3b81e1196d393902e86a43aa353 | [
"MIT"
] | null | null | null | from itertools import permutations
from collections import Counter
import time
print(time.time())
s=["dgajkhdjkjfkl","ahfjkh","jfskoj","hfakljfio","fjfjir","jiosj","jiojf","jriosj","jiorjf","jhhhhaskgasjdfljjriof"]
t=10
while t>0:
S=s[10-t]
c=dict(Counter(S))
Cperm=list(permutations(c.values()))
flag= False
for i... | 18.571429 | 117 | 0.646154 | 82 | 520 | 4.097561 | 0.536585 | 0.017857 | 0.077381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020785 | 0.167308 | 520 | 27 | 118 | 19.259259 | 0.755196 | 0 | 0 | 0.173913 | 0 | 0 | 0.178846 | 0.040385 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.130435 | 0 | 0.130435 | 0.173913 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a5c6922a61844f38e222e52aacc04701fb1c3022 | 4,953 | py | Python | main.py | rodrigobercinimartins/export-import-por-mesorregiao-brasil | 73b8126e593eec63ae29eb81a2967f566ec93bc9 | [
"MIT"
] | 1 | 2020-04-06T17:55:04.000Z | 2020-04-06T17:55:04.000Z | main.py | rodrigobercini/export-import-por-mesorregiao-brasil | 73b8126e593eec63ae29eb81a2967f566ec93bc9 | [
"MIT"
] | null | null | null | main.py | rodrigobercini/export-import-por-mesorregiao-brasil | 73b8126e593eec63ae29eb81a2967f566ec93bc9 | [
"MIT"
] | null | null | null | import pandas as pd
import os
import ssl
# I'm getting SSL certificates issues when downloading files from MDIC.
# The code below is a hack to get around this issue.
try:
_create_unverified_https_context = ssl._create_unverified_context
except AttributeError:
pass
else:
ssl._create_default_https_context =... | 43.447368 | 173 | 0.657985 | 639 | 4,953 | 4.749609 | 0.250391 | 0.049423 | 0.032619 | 0.028007 | 0.333114 | 0.283031 | 0.224053 | 0.203624 | 0.16771 | 0.153213 | 0 | 0.004512 | 0.239249 | 4,953 | 114 | 174 | 43.447368 | 0.800955 | 0.030688 | 0 | 0.130952 | 0 | 0 | 0.201334 | 0.065652 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0.011905 | 0.059524 | 0.011905 | 0.214286 | 0.059524 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a5ca6ea7872c55e908f6afc4233961e95a90159a | 1,366 | py | Python | sendUAV/recevier.py | RobEn-AAST/AI-UAVC | 732683fd5821d492b772cc5f966e86aed164a68c | [
"MIT"
] | 16 | 2022-02-05T15:51:13.000Z | 2022-02-05T17:38:54.000Z | sendUAV/recevier.py | RobEn-AAST/AI-UAVC | 732683fd5821d492b772cc5f966e86aed164a68c | [
"MIT"
] | null | null | null | sendUAV/recevier.py | RobEn-AAST/AI-UAVC | 732683fd5821d492b772cc5f966e86aed164a68c | [
"MIT"
] | null | null | null | from socket import socket, AF_INET, SOCK_STREAM, IPPROTO_TCP
import struct
import pickle
class ServerSock(socket):
def __init__(self, PORT):
super().__init__(AF_INET, SOCK_STREAM, IPPROTO_TCP)
self.bind(("", PORT))
self.listen()
def getMessage(self):
payload_size = str... | 29.695652 | 82 | 0.51757 | 144 | 1,366 | 4.645833 | 0.458333 | 0.06278 | 0.076233 | 0.047833 | 0.137519 | 0.077728 | 0 | 0 | 0 | 0 | 0 | 0.016726 | 0.387262 | 1,366 | 45 | 83 | 30.355556 | 0.782557 | 0.033675 | 0 | 0.114286 | 0 | 0 | 0.012898 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057143 | false | 0 | 0.114286 | 0 | 0.257143 | 0.028571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a5cb7a30978758aaea2edade994cdb342894093c | 21,620 | py | Python | pedal/questions/loader.py | acbart/python-analysis | 3cd2cc22d50a414ae6b62c74d2643be4742238d4 | [
"MIT"
] | 14 | 2019-08-22T03:40:23.000Z | 2022-03-13T00:30:53.000Z | pedal/questions/loader.py | pedal-edu/pedal | 3cd2cc22d50a414ae6b62c74d2643be4742238d4 | [
"MIT"
] | 74 | 2019-09-12T04:35:56.000Z | 2022-01-26T19:21:32.000Z | pedal/questions/loader.py | acbart/python-analysis | 3cd2cc22d50a414ae6b62c74d2643be4742238d4 | [
"MIT"
] | 2 | 2021-01-11T06:34:00.000Z | 2021-07-21T12:48:07.000Z | """
instructions: blah blah blah
settings:
tifa:
enabled: True
unit test by function (bool): Whether to test each function entirely before moving onto the
next one, or to first check that all functions have been defined, and then
checking their parameters, etc. Defaults to True.... | 35.913621 | 118 | 0.592091 | 2,311 | 21,620 | 5.340113 | 0.144526 | 0.05348 | 0.02593 | 0.035005 | 0.27988 | 0.197148 | 0.141318 | 0.092699 | 0.073252 | 0.063366 | 0 | 0.005806 | 0.306892 | 21,620 | 601 | 119 | 35.973378 | 0.817751 | 0.222433 | 0 | 0.121311 | 0 | 0 | 0.181779 | 0.032472 | 0 | 0 | 0 | 0.004992 | 0 | 1 | 0.072131 | false | 0.009836 | 0.016393 | 0 | 0.12459 | 0.036066 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a5cc7ebfb0f671bb1d1aeac6021cc68675439a1a | 8,732 | py | Python | VM/fetchLoop.py | djtech-dev/PyVM | 1edda436ce7073d0cecbf16f5cab2509895d953c | [
"MIT"
] | 75 | 2017-09-22T22:36:13.000Z | 2022-03-20T16:18:27.000Z | VM/fetchLoop.py | djtech-dev/PyVM | 1edda436ce7073d0cecbf16f5cab2509895d953c | [
"MIT"
] | 7 | 2019-05-10T19:15:08.000Z | 2021-08-24T16:03:34.000Z | VM/fetchLoop.py | djtech-dev/PyVM | 1edda436ce7073d0cecbf16f5cab2509895d953c | [
"MIT"
] | 14 | 2018-07-02T02:49:46.000Z | 2022-02-22T15:24:47.000Z | import enum
from .ELF import ELF32, enums
from .util import SegmentRegs, MissingOpcodeError
from .CPU import CPU32
import logging
logger = logging.getLogger(__name__)
class FetchLoopMixin:
_attrs_ = 'eip', 'mem', 'reg.ebx', 'fmt', 'instr', 'sizes', 'default_mode'
def execute_opcode(self: CPU32) -> None:
... | 33.328244 | 135 | 0.535502 | 1,048 | 8,732 | 4.307252 | 0.232824 | 0.031015 | 0.017723 | 0.01595 | 0.452813 | 0.39167 | 0.33097 | 0.286221 | 0.213558 | 0.180771 | 0 | 0.022735 | 0.365323 | 8,732 | 261 | 136 | 33.455939 | 0.791772 | 0.091732 | 0 | 0.389189 | 0 | 0.021622 | 0.07201 | 0.002672 | 0 | 0 | 0.008651 | 0 | 0 | 1 | 0.032432 | false | 0 | 0.027027 | 0.005405 | 0.183784 | 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 |
a5cef8d918f7406a1dd78059cb13a600f918323a | 5,897 | py | Python | mlpy/regression/logistic_regression.py | SNUDerek/MLPy | 0d47a8ef8522a663716cda6a831855e6482069ba | [
"MIT"
] | 1 | 2019-05-10T10:39:12.000Z | 2019-05-10T10:39:12.000Z | mlpy/regression/logistic_regression.py | SNUDerek/MLPy | 0d47a8ef8522a663716cda6a831855e6482069ba | [
"MIT"
] | null | null | null | mlpy/regression/logistic_regression.py | SNUDerek/MLPy | 0d47a8ef8522a663716cda6a831855e6482069ba | [
"MIT"
] | null | null | null | import numpy as np
from ..tools import batchGenerator
# LOGISTIC REGRESSION
# for (binary) categorical data
class LogisticRegression():
'''
Logistic regression with Gradient Descent
binary Logistic regression
Parameters
----------
epochs : int
maximum epochs of gradient descent
lr... | 32.944134 | 89 | 0.587248 | 776 | 5,897 | 4.377577 | 0.289948 | 0.035325 | 0.017663 | 0.011775 | 0.162496 | 0.119517 | 0.119517 | 0.0995 | 0.078304 | 0.078304 | 0 | 0.017794 | 0.323385 | 5,897 | 178 | 90 | 33.129213 | 0.833584 | 0.420892 | 0 | 0.202899 | 0 | 0 | 0.016448 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0.028986 | 0 | 0.202899 | 0.057971 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a5d2df25221764ec5395b74a6c3cb30a216ee3ff | 12,269 | py | Python | server.py | satriabw/Tugas_Sisdis | b1e152f35834e52806071b9b1424b114dce65148 | [
"MIT"
] | null | null | null | server.py | satriabw/Tugas_Sisdis | b1e152f35834e52806071b9b1424b114dce65148 | [
"MIT"
] | null | null | null | server.py | satriabw/Tugas_Sisdis | b1e152f35834e52806071b9b1424b114dce65148 | [
"MIT"
] | null | null | null | # coding: utf-8
from random import randint
from urllib.parse import parse_qs
import socket
import sys
import json
import traceback
import os
import base64
import yaml
import datetime
import requests
import re
class Route:
def __init__(self):
self._route = []
def route(self, method, path, handler):
... | 31.060759 | 136 | 0.605102 | 1,530 | 12,269 | 4.764706 | 0.179739 | 0.018519 | 0.036214 | 0.037723 | 0.340055 | 0.274074 | 0.274074 | 0.21893 | 0.185322 | 0.16749 | 0 | 0.013786 | 0.249165 | 12,269 | 395 | 137 | 31.060759 | 0.777573 | 0.017116 | 0 | 0.279365 | 0 | 0.003175 | 0.164937 | 0.015689 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0.003175 | 0.038095 | 0.015873 | 0.231746 | 0.019048 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a5d9baaf2337daeafdfe9b9a22db73d38a684f6f | 576 | py | Python | functions-and-keda/src/python-function-publisher/QueueTrigger/__init__.py | emctl/samples | 569f81035a6c214d4cda3687173e24003f17f95e | [
"MIT"
] | 3 | 2021-11-16T11:24:27.000Z | 2021-11-21T17:11:24.000Z | functions-and-keda/src/python-function-publisher/QueueTrigger/__init__.py | emctl/samples | 569f81035a6c214d4cda3687173e24003f17f95e | [
"MIT"
] | 7 | 2021-09-01T06:50:41.000Z | 2021-09-03T23:12:07.000Z | functions-and-keda/src/python-function-publisher/QueueTrigger/__init__.py | emctl/samples | 569f81035a6c214d4cda3687173e24003f17f95e | [
"MIT"
] | 4 | 2021-02-05T17:30:28.000Z | 2021-08-16T21:26:55.000Z | import logging
import requests
import json
import azure.functions as func
dapr_url = "http://localhost:3500/v1.0"
def main(msg: func.QueueMessage):
logging.info(f"Python queue-triggered function received a message!")
message = msg.get_body().decode('utf-8')
logging.info(f"Message: {message}")
# Publ... | 28.8 | 72 | 0.697917 | 83 | 576 | 4.795181 | 0.566265 | 0.110553 | 0.120603 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014523 | 0.163194 | 576 | 19 | 73 | 30.315789 | 0.811203 | 0.027778 | 0 | 0 | 0 | 0 | 0.383513 | 0.084229 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.285714 | 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 |
a5dac3d6ca2b3d760f8736d068bcd1c838b5581c | 2,618 | py | Python | tests/unit/test_upstream_dataset.py | ianbakst/tamr-client | ae7a6190a2251d31f973f9d5a7170ac5dc097f97 | [
"Apache-2.0"
] | 9 | 2019-08-13T11:07:06.000Z | 2022-01-14T18:15:13.000Z | tests/unit/test_upstream_dataset.py | ianbakst/tamr-client | ae7a6190a2251d31f973f9d5a7170ac5dc097f97 | [
"Apache-2.0"
] | 166 | 2019-08-09T18:51:05.000Z | 2021-12-02T15:24:15.000Z | tests/unit/test_upstream_dataset.py | ianbakst/tamr-client | ae7a6190a2251d31f973f9d5a7170ac5dc097f97 | [
"Apache-2.0"
] | 21 | 2019-08-12T15:37:31.000Z | 2021-06-15T14:06:23.000Z | import responses
from tamr_unify_client import Client
from tamr_unify_client.auth import UsernamePasswordAuth
@responses.activate
def test_upstream_dataset():
dataset_json = {
"id": "unify://unified-data/v1/datasets/12",
"name": "Project_1_unified_dataset_dedup_features",
"description": ... | 34.906667 | 109 | 0.615737 | 285 | 2,618 | 5.424561 | 0.326316 | 0.071151 | 0.051746 | 0.058215 | 0.402975 | 0.298189 | 0.085382 | 0 | 0 | 0 | 0 | 0.061286 | 0.233384 | 2,618 | 74 | 110 | 35.378378 | 0.709018 | 0 | 0 | 0.15873 | 0 | 0 | 0.377005 | 0.162338 | 0 | 0 | 0 | 0 | 0.047619 | 1 | 0.015873 | false | 0.031746 | 0.047619 | 0 | 0.063492 | 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 |
a5daeaca530d32aa4078eb1a40a959857dd7e442 | 14,531 | py | Python | pmaf/sequence/_multiple/_multiple.py | mmtechslv/PhyloMAF | bab43dd4a4d2812951b1fdf4f1abb83edb79ea88 | [
"BSD-3-Clause"
] | 1 | 2021-07-02T06:24:17.000Z | 2021-07-02T06:24:17.000Z | pmaf/sequence/_multiple/_multiple.py | mmtechslv/PhyloMAF | bab43dd4a4d2812951b1fdf4f1abb83edb79ea88 | [
"BSD-3-Clause"
] | 1 | 2021-06-28T12:02:46.000Z | 2021-06-28T12:02:46.000Z | pmaf/sequence/_multiple/_multiple.py | mmtechslv/PhyloMAF | bab43dd4a4d2812951b1fdf4f1abb83edb79ea88 | [
"BSD-3-Clause"
] | null | null | null | import warnings
warnings.simplefilter("ignore", category=FutureWarning)
from skbio import TabularMSA
from skbio.sequence import GrammaredSequence
from io import StringIO, IOBase
from shutil import copyfileobj
import copy
import numpy as np
from pmaf.internal.io._seq import SequenceIO
from pmaf.sequence._sequence._nucl... | 33.871795 | 91 | 0.566719 | 1,515 | 14,531 | 5.228383 | 0.155776 | 0.019694 | 0.016412 | 0.0101 | 0.14733 | 0.093801 | 0.056054 | 0.048731 | 0.040399 | 0.020452 | 0 | 0.001149 | 0.341064 | 14,531 | 428 | 92 | 33.950935 | 0.82611 | 0.19627 | 0 | 0.199234 | 0 | 0 | 0.088363 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.091954 | false | 0 | 0.057471 | 0 | 0.229885 | 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 |
a5db8882e50338e2cfe3830ff393ba99f5232ba1 | 1,498 | py | Python | arvore_derivacao.py | rjribeiro/trabalho-formais | 358de668cc256c696fdc4b426a69cf5a3d17b511 | [
"MIT"
] | 3 | 2018-04-28T15:55:50.000Z | 2018-05-11T22:57:20.000Z | arvore_derivacao.py | rjribeiro/trabalho-formais | 358de668cc256c696fdc4b426a69cf5a3d17b511 | [
"MIT"
] | null | null | null | arvore_derivacao.py | rjribeiro/trabalho-formais | 358de668cc256c696fdc4b426a69cf5a3d17b511 | [
"MIT"
] | null | null | null |
class ArvoreDerivacao:
def __init__(self, conteudo, esquerda=None, direita=None):
self._conteudo = conteudo
self._esquerda = esquerda
self._direita = direita
self.children = [self._esquerda, self._direita]
@property
def conteudo(self):
return self._conteudo
def... | 27.740741 | 85 | 0.579439 | 160 | 1,498 | 5.19375 | 0.31875 | 0.101083 | 0.045728 | 0.040915 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002918 | 0.313752 | 1,498 | 53 | 86 | 28.264151 | 0.805447 | 0.138852 | 0 | 0.235294 | 0 | 0 | 0.035774 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0 | 0.029412 | 0.235294 | 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 |
a5dca4db049c83c9e0aaf82c2743e38347886e01 | 1,404 | py | Python | src/test.py | biqar/hypergraph-study | 04b54117eb8f684a72259b27b03162efb4c18cd0 | [
"MIT"
] | 2 | 2021-12-24T12:02:48.000Z | 2021-12-25T00:00:22.000Z | src/test.py | biqar/hypergraph-study | 04b54117eb8f684a72259b27b03162efb4c18cd0 | [
"MIT"
] | null | null | null | src/test.py | biqar/hypergraph-study | 04b54117eb8f684a72259b27b03162efb4c18cd0 | [
"MIT"
] | 1 | 2021-07-19T02:05:13.000Z | 2021-07-19T02:05:13.000Z | import re
import sys
from operator import add
from pyspark.sql import SparkSession
def computeContribs(urls, rank):
"""Calculates URL contributions to the rank of other URLs."""
num_urls = len(urls)
for url in urls:
yield (url, rank / num_urls)
def parseNeighbors(urls):
"""Parses a urls pai... | 29.25 | 92 | 0.608262 | 185 | 1,404 | 4.562162 | 0.513514 | 0.0391 | 0.049763 | 0.040284 | 0.049763 | 0.049763 | 0 | 0 | 0 | 0 | 0 | 0.003906 | 0.270655 | 1,404 | 47 | 93 | 29.87234 | 0.820313 | 0.19302 | 0 | 0 | 0 | 0 | 0.191585 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0 | 0.137931 | 0 | 0.206897 | 0.137931 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a5df0a5e25ad5c8a611b093330f6ecc81a28362f | 1,312 | py | Python | wagtail_lightadmin/wagtail_hooks.py | leukeleu/wagtail_lightadmin | 6aa465e2673f4eb8865f7b4dc6cd2c7c41ed71a5 | [
"MIT"
] | 4 | 2019-02-22T14:07:26.000Z | 2020-04-20T05:33:39.000Z | wagtail_lightadmin/wagtail_hooks.py | leukeleu/wagtail_lightadmin | 6aa465e2673f4eb8865f7b4dc6cd2c7c41ed71a5 | [
"MIT"
] | 1 | 2019-05-18T08:04:32.000Z | 2019-05-20T13:39:14.000Z | wagtail_lightadmin/wagtail_hooks.py | leukeleu/wagtail_lightadmin | 6aa465e2673f4eb8865f7b4dc6cd2c7c41ed71a5 | [
"MIT"
] | 2 | 2017-06-06T09:34:53.000Z | 2019-09-10T16:16:12.000Z | from __future__ import absolute_import, unicode_literals
from django.conf import settings
from django.templatetags.static import static
from django.utils.html import format_html
from django.utils.module_loading import import_string
from wagtail.core import hooks
@hooks.register('insert_editor_css')
def editor_css()... | 26.24 | 65 | 0.641768 | 159 | 1,312 | 5.100629 | 0.396226 | 0.049322 | 0.070284 | 0.092478 | 0.252774 | 0.219482 | 0.219482 | 0.219482 | 0.128237 | 0.128237 | 0 | 0.00782 | 0.220274 | 1,312 | 49 | 66 | 26.77551 | 0.784946 | 0.057165 | 0 | 0.16129 | 0 | 0 | 0.251497 | 0.148703 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096774 | false | 0 | 0.225806 | 0.064516 | 0.419355 | 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 |
a5e4666915212b8f6b0b15dc2449a686ce496e42 | 5,633 | py | Python | stackdriver/restapi.py | MarkMarine/stackdriver-client-python | 7e5e5806d02fcf4b8633d19adbce6d64f3082083 | [
"Apache-2.0"
] | null | null | null | stackdriver/restapi.py | MarkMarine/stackdriver-client-python | 7e5e5806d02fcf4b8633d19adbce6d64f3082083 | [
"Apache-2.0"
] | null | null | null | stackdriver/restapi.py | MarkMarine/stackdriver-client-python | 7e5e5806d02fcf4b8633d19adbce6d64f3082083 | [
"Apache-2.0"
] | null | null | null | """
restapi - base for calling rest resources
Stackdriver Public API, Copyright Stackdriver 2014
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF license... | 35.427673 | 164 | 0.680987 | 714 | 5,633 | 5.205882 | 0.27591 | 0.034974 | 0.020178 | 0.023675 | 0.256121 | 0.240517 | 0.240517 | 0.226527 | 0.20339 | 0.192628 | 0 | 0.002322 | 0.235399 | 5,633 | 158 | 165 | 35.651899 | 0.860692 | 0.312445 | 0 | 0.238636 | 0 | 0 | 0.044908 | 0.005613 | 0 | 0 | 0 | 0 | 0 | 1 | 0.147727 | false | 0.022727 | 0.056818 | 0.034091 | 0.340909 | 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 |
a5e7acf2b322f72151a720e8d6b6a7577bf377de | 13,896 | py | Python | ventana_perceptron.py | musicbiker/ANNT | 301f1090925c8937f0fd3b4955ec68ff772022ce | [
"MIT"
] | null | null | null | ventana_perceptron.py | musicbiker/ANNT | 301f1090925c8937f0fd3b4955ec68ff772022ce | [
"MIT"
] | null | null | null | ventana_perceptron.py | musicbiker/ANNT | 301f1090925c8937f0fd3b4955ec68ff772022ce | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Wed Dec 11 15:05:41 2019
@author: jrodriguez119
"""
import tkinter as tk
from tkinter import ttk
import crearcapas
import perceptron_multicapa
from threading import Thread
import sys
from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg, NavigationToolbar2... | 40.750733 | 151 | 0.573258 | 1,594 | 13,896 | 4.937265 | 0.235257 | 0.015248 | 0.027954 | 0.033037 | 0.310165 | 0.250445 | 0.149301 | 0.115121 | 0.10953 | 0.020839 | 0 | 0.031192 | 0.307858 | 13,896 | 340 | 152 | 40.870588 | 0.787066 | 0.062608 | 0 | 0.172691 | 0 | 0 | 0.143286 | 0.004031 | 0 | 0 | 0 | 0.002941 | 0 | 1 | 0.052209 | false | 0.004016 | 0.048193 | 0 | 0.15261 | 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 |
a5ea06e0a07718613f62378639588110228f7035 | 728 | py | Python | secu/tests/user_post_test.py | wancy86/tornado-seed | bea842f4ba6b23dda53ec9ae9f1349e1d2b54fd3 | [
"MIT"
] | null | null | null | secu/tests/user_post_test.py | wancy86/tornado-seed | bea842f4ba6b23dda53ec9ae9f1349e1d2b54fd3 | [
"MIT"
] | null | null | null | secu/tests/user_post_test.py | wancy86/tornado-seed | bea842f4ba6b23dda53ec9ae9f1349e1d2b54fd3 | [
"MIT"
] | null | null | null | import requests
from ..base.test import BaseTestCase, AuthorizedTestCase
import uuid
import common
class T(AuthorizedTestCase):
@property
def path(self):
return '/service/secu/user'
def setUp(self):
super().setUp()
self.data = {
'username': 'myao',
... | 26.962963 | 59 | 0.542582 | 70 | 728 | 5.6 | 0.7 | 0.045918 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.060484 | 0.318681 | 728 | 27 | 60 | 26.962963 | 0.729839 | 0 | 0 | 0 | 0 | 0 | 0.152205 | 0 | 0 | 0 | 0 | 0 | 0.086957 | 1 | 0.130435 | false | 0 | 0.173913 | 0.043478 | 0.391304 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a5ef7047358651b5620e1896751f01c69ce61941 | 6,404 | py | Python | products_and_services_client/models/monthly_price.py | pitzer42/opbk-br-quickstart | b3f86b2e5f82a6090aaefb563614e174a452383c | [
"MIT"
] | 2 | 2021-02-07T23:58:36.000Z | 2021-02-08T01:03:25.000Z | products_and_services_client/models/monthly_price.py | pitzer42/opbk-br-quickstart | b3f86b2e5f82a6090aaefb563614e174a452383c | [
"MIT"
] | null | null | null | products_and_services_client/models/monthly_price.py | pitzer42/opbk-br-quickstart | b3f86b2e5f82a6090aaefb563614e174a452383c | [
"MIT"
] | null | null | null | # coding: utf-8
"""
API's OpenData do Open Banking Brasil
As API's descritas neste documento são referentes as API's da fase OpenData do Open Banking Brasil. # noqa: E501
OpenAPI spec version: 1.0.0-rc5.2
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.gi... | 32.841026 | 392 | 0.600562 | 767 | 6,404 | 4.920469 | 0.238592 | 0.044515 | 0.076312 | 0.069952 | 0.45416 | 0.398516 | 0.380763 | 0.222311 | 0.172231 | 0.172231 | 0 | 0.029405 | 0.304341 | 6,404 | 194 | 393 | 33.010309 | 0.817733 | 0.394441 | 0 | 0.065934 | 0 | 0 | 0.108908 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.032967 | 0 | 0.32967 | 0.021978 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a5f31b512ae3b988c292e1211f6d15cfb61624fc | 839 | py | Python | suppy/simulator/atomics/divergence_atomic.py | bmaris98/suppy | 8450c6d25ffa492cdedfbbb4c111d22e7f2788a7 | [
"BSD-3-Clause"
] | null | null | null | suppy/simulator/atomics/divergence_atomic.py | bmaris98/suppy | 8450c6d25ffa492cdedfbbb4c111d22e7f2788a7 | [
"BSD-3-Clause"
] | null | null | null | suppy/simulator/atomics/divergence_atomic.py | bmaris98/suppy | 8450c6d25ffa492cdedfbbb4c111d22e7f2788a7 | [
"BSD-3-Clause"
] | null | null | null | from suppy.utils.stats_constants import DIVERGENCE, TYPE
from typing import Any, Dict
from suppy.simulator.atomics.atomic import Atomic
class DivergenceAtomic(Atomic):
def __init__(self, uid: str, seh, name: str):
Atomic.__init__(self, uid, seh, name, 0, 0)
def get_stats(self) -> Dict[str, Any]:
... | 31.074074 | 56 | 0.647199 | 108 | 839 | 4.75 | 0.435185 | 0.116959 | 0.042885 | 0.066277 | 0.230019 | 0.230019 | 0.230019 | 0.230019 | 0.230019 | 0.230019 | 0 | 0.004926 | 0.274136 | 839 | 27 | 57 | 31.074074 | 0.837438 | 0 | 0 | 0.190476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.190476 | false | 0 | 0.142857 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a5f7a4ecfa05bf78a585981771c76de8e093cf7a | 5,180 | py | Python | database/BuildDatabase.py | chanzuckerberg/scoreboard | 7ebf783819d0f5b4dd54092201f709b8644c85a4 | [
"MIT"
] | 8 | 2017-11-28T22:36:37.000Z | 2020-10-20T06:46:19.000Z | database/BuildDatabase.py | chanzuckerberg/scoreboard | 7ebf783819d0f5b4dd54092201f709b8644c85a4 | [
"MIT"
] | 25 | 2017-12-27T19:05:41.000Z | 2022-03-15T18:35:22.000Z | database/BuildDatabase.py | chanzuckerberg/scoreboard | 7ebf783819d0f5b4dd54092201f709b8644c85a4 | [
"MIT"
] | 1 | 2018-04-23T11:16:41.000Z | 2018-04-23T11:16:41.000Z | from sqlalchemy import create_engine
from sqlalchemy import Column, Integer, Boolean, String, DateTime, ForeignKey
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.dialects.postgresql import JSONB
from sqlalchemy.orm import sessionmaker
from sqlalchemy.sql import func
import datetime
import os
im... | 37 | 121 | 0.72471 | 610 | 5,180 | 5.898361 | 0.196721 | 0.108394 | 0.04169 | 0.069483 | 0.392996 | 0.348249 | 0.348249 | 0.315175 | 0.315175 | 0.286826 | 0 | 0.000917 | 0.157915 | 5,180 | 139 | 122 | 37.266187 | 0.823934 | 0.004633 | 0 | 0.210526 | 0 | 0 | 0.111866 | 0.025636 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.035088 | 0.078947 | 0 | 0.684211 | 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 |
a5fbd11dbc9a0e80007cdb92a40b5c8dd7191ce7 | 8,387 | py | Python | packages/w3af/w3af/core/data/url/HTTPRequest.py | ZooAtmosphereGroup/HelloPackages | 0ccffd33bf927b13d28c8f715ed35004c33465d9 | [
"Apache-2.0"
] | null | null | null | packages/w3af/w3af/core/data/url/HTTPRequest.py | ZooAtmosphereGroup/HelloPackages | 0ccffd33bf927b13d28c8f715ed35004c33465d9 | [
"Apache-2.0"
] | null | null | null | packages/w3af/w3af/core/data/url/HTTPRequest.py | ZooAtmosphereGroup/HelloPackages | 0ccffd33bf927b13d28c8f715ed35004c33465d9 | [
"Apache-2.0"
] | null | null | null | """
HTTPRequest.py
Copyright 2010 Andres Riancho
This file is part of w3af, http://w3af.org/ .
w3af is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation version 2 of the License.
w3af is distributed in the hope that... | 34.514403 | 99 | 0.623465 | 1,009 | 8,387 | 4.982161 | 0.224975 | 0.043963 | 0.021484 | 0.015914 | 0.109011 | 0.042968 | 0.02228 | 0.02228 | 0.02228 | 0.02228 | 0 | 0.005393 | 0.292476 | 8,387 | 242 | 100 | 34.657025 | 0.841759 | 0.193871 | 0 | 0.065789 | 0 | 0.006579 | 0.053868 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.144737 | false | 0 | 0.052632 | 0.052632 | 0.296053 | 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 |
a5ff1935416c4a799dc3631e3b180db7559793bf | 817 | py | Python | moldesign/_notebooks/nbscripts/gen_toc.py | Autodesk/molecular-design-toolkit | 5f45a47fea21d3603899a6366cb163024f0e2ec4 | [
"Apache-2.0"
] | 147 | 2016-07-15T18:53:55.000Z | 2022-01-30T04:36:39.000Z | moldesign/_notebooks/nbscripts/gen_toc.py | cherishyli/molecular-design-toolkit | 5f45a47fea21d3603899a6366cb163024f0e2ec4 | [
"Apache-2.0"
] | 151 | 2016-07-15T21:35:11.000Z | 2019-10-10T08:57:29.000Z | moldesign/_notebooks/nbscripts/gen_toc.py | cherishyli/molecular-design-toolkit | 5f45a47fea21d3603899a6366cb163024f0e2ec4 | [
"Apache-2.0"
] | 33 | 2016-08-02T00:04:51.000Z | 2021-09-02T10:05:04.000Z | #!/usr/bin/env python
from __future__ import print_function
import sys, os
from nbformat import v4
def parse_line(line):
if not line.startswith('#'):
return None
ilevel = 0
for char in line:
if char == '#': ilevel += 1
else: break
name = line[ilevel:].strip()
return ileve... | 19.452381 | 85 | 0.532436 | 101 | 817 | 4.148515 | 0.534653 | 0.042959 | 0.062053 | 0.071599 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010638 | 0.30967 | 817 | 41 | 86 | 19.926829 | 0.73227 | 0.02448 | 0 | 0 | 0 | 0 | 0.091371 | 0.027919 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.130435 | 0 | 0.26087 | 0.130435 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
570168b655cd4c5fe01f67c0408794d1cfd928aa | 2,306 | py | Python | tests/test_persona.py | holnburger/persine | cb26d1e275f7ed7e1048bc1e6b66b71386c3e602 | [
"MIT"
] | 84 | 2020-12-20T20:39:19.000Z | 2022-02-02T01:01:12.000Z | tests/test_persona.py | holnburger/persine | cb26d1e275f7ed7e1048bc1e6b66b71386c3e602 | [
"MIT"
] | 1 | 2020-12-25T01:07:09.000Z | 2020-12-25T04:05:19.000Z | tests/test_persona.py | holnburger/persine | cb26d1e275f7ed7e1048bc1e6b66b71386c3e602 | [
"MIT"
] | 9 | 2020-12-23T03:10:35.000Z | 2021-09-08T14:44:18.000Z | import pytest
from persine import Persona
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from unittest.mock import Mock
@pytest.fixture
def engine():
def launch_chrome(user_data_dir):
options = Options()
options.add_argument("--headless")
return webdr... | 26.204545 | 77 | 0.598439 | 262 | 2,306 | 5.164122 | 0.232824 | 0.076866 | 0.070214 | 0.077605 | 0.54915 | 0.470806 | 0.379157 | 0.322986 | 0.283814 | 0.283814 | 0 | 0.011689 | 0.258023 | 2,306 | 87 | 78 | 26.505747 | 0.779077 | 0 | 0 | 0.376812 | 0 | 0 | 0.167823 | 0 | 0 | 0 | 0 | 0 | 0.173913 | 1 | 0.101449 | false | 0 | 0.072464 | 0 | 0.202899 | 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 |
57018df18d3cbc94d73679782950464b4f793c17 | 26,556 | py | Python | inference.py | QuPengfei/learnable-triangulation-pytorch | 861d9ccf8b06bd2f130697cd40b7ac57d7f7d9f2 | [
"MIT"
] | null | null | null | inference.py | QuPengfei/learnable-triangulation-pytorch | 861d9ccf8b06bd2f130697cd40b7ac57d7f7d9f2 | [
"MIT"
] | null | null | null | inference.py | QuPengfei/learnable-triangulation-pytorch | 861d9ccf8b06bd2f130697cd40b7ac57d7f7d9f2 | [
"MIT"
] | null | null | null | import torch
import numpy as np
import cv2
import os
import h5py
from collections import defaultdict
from mvn.models.triangulation import RANSACTriangulationNet, AlgebraicTriangulationNet, VolumetricTriangulationNet
from mvn.models.loss import KeypointsMSELoss, KeypointsMSESmoothLoss, KeypointsMAELoss, KeypointsL2Loss... | 42.018987 | 185 | 0.640496 | 3,313 | 26,556 | 4.907335 | 0.121944 | 0.019929 | 0.016607 | 0.008857 | 0.604502 | 0.548838 | 0.505228 | 0.484254 | 0.477673 | 0.458851 | 0 | 0.02905 | 0.231322 | 26,556 | 631 | 186 | 42.085578 | 0.767403 | 0.07102 | 0 | 0.483801 | 0 | 0.006479 | 0.10244 | 0.022158 | 0 | 0 | 0 | 0.001585 | 0.012959 | 1 | 0.047516 | false | 0 | 0.030238 | 0.00432 | 0.114471 | 0.006479 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
57028ca06deb47d996805621dce315dc63a9dc8f | 4,846 | py | Python | survol/sources_types/Linux/tcp_sockets.py | AugustinMascarelli/survol | 7a822900e82d1e6f016dba014af5741558b78f15 | [
"BSD-3-Clause"
] | null | null | null | survol/sources_types/Linux/tcp_sockets.py | AugustinMascarelli/survol | 7a822900e82d1e6f016dba014af5741558b78f15 | [
"BSD-3-Clause"
] | null | null | null | survol/sources_types/Linux/tcp_sockets.py | AugustinMascarelli/survol | 7a822900e82d1e6f016dba014af5741558b78f15 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
"""
TCP Linux sockets with netstat
"""
import re
import sys
import socket
import lib_util
import lib_common
from lib_properties import pc
from sources_types import addr as survol_addr
# Many advantages compared to psutil:
# The Python module psutil is not needed
# psutil gives only sockets ... | 38.460317 | 98 | 0.577383 | 621 | 4,846 | 4.429952 | 0.362319 | 0.031261 | 0.038168 | 0.023264 | 0.211923 | 0.138495 | 0.115231 | 0.08615 | 0.077063 | 0.077063 | 0 | 0.12024 | 0.311804 | 4,846 | 125 | 99 | 38.768 | 0.704648 | 0.60648 | 0 | 0.08 | 0 | 0 | 0.035541 | 0 | 0 | 0 | 0 | 0.008 | 0 | 1 | 0.02 | false | 0 | 0.14 | 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 |
57033e68edf1bc714421c03684cc8349a3a89d3f | 5,832 | py | Python | models.py | JiaMingLin/residual_adapters | a3d32b4fb6c3c252f5adc1ad178b026a111c1a08 | [
"Apache-2.0"
] | 137 | 2018-03-22T15:45:30.000Z | 2022-03-17T09:39:07.000Z | models.py | JiaMingLin/residual_adapters | a3d32b4fb6c3c252f5adc1ad178b026a111c1a08 | [
"Apache-2.0"
] | 5 | 2018-09-25T19:44:34.000Z | 2020-12-19T11:26:41.000Z | models.py | JiaMingLin/residual_adapters | a3d32b4fb6c3c252f5adc1ad178b026a111c1a08 | [
"Apache-2.0"
] | 40 | 2018-04-04T12:36:54.000Z | 2022-02-19T05:46:36.000Z | # models.py
# created by Sylvestre-Alvise Rebuffi [srebuffi@robots.ox.ac.uk]
# Copyright © The University of Oxford, 2017-2020
# This code is made available under the Apache v2.0 licence, see LICENSE.txt for details
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.autograd import Variable... | 39.945205 | 133 | 0.627743 | 837 | 5,832 | 4.201912 | 0.185185 | 0.045778 | 0.035826 | 0.021894 | 0.372477 | 0.287745 | 0.194484 | 0.141882 | 0.106625 | 0.077339 | 0 | 0.03175 | 0.249314 | 5,832 | 145 | 134 | 40.22069 | 0.771357 | 0.041152 | 0 | 0.196581 | 0 | 0 | 0.017192 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.102564 | false | 0 | 0.059829 | 0.017094 | 0.282051 | 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 |
57053e08159134b657dc6dde4b49efc028c6a0a2 | 2,196 | py | Python | main.py | GauravP2001/courseSniperBot | c3e05d2890f10177ee847a961b957d5e63e7d0ec | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | main.py | GauravP2001/courseSniperBot | c3e05d2890f10177ee847a961b957d5e63e7d0ec | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | main.py | GauravP2001/courseSniperBot | c3e05d2890f10177ee847a961b957d5e63e7d0ec | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | import discord
import os
import requests
import asyncio
import psycopg2
import logging
from apscheduler.schedulers.asyncio import AsyncIOScheduler
from discord.ext import commands
logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(name)s - %(levelname)s - %(message)s',
datefmt=f"%m/%d... | 28.519481 | 105 | 0.658015 | 276 | 2,196 | 5.17029 | 0.460145 | 0.049054 | 0.025228 | 0.025228 | 0.199019 | 0.199019 | 0.199019 | 0.199019 | 0.065872 | 0 | 0 | 0.012521 | 0.199909 | 2,196 | 76 | 106 | 28.894737 | 0.799659 | 0.142987 | 0 | 0 | 0 | 0.02 | 0.235326 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.16 | 0 | 0.18 | 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 |
57075fadbef4087df6eac236abcbc48b853a6d54 | 619 | py | Python | Python_Exercicios/Mundo2/Condições em Python (if..elif)/python_038.py | jbauermanncode/Curso_Em_Video_Python | 330c207d7bed4e663fe1b9ab433ab57a9828b7f1 | [
"MIT"
] | null | null | null | Python_Exercicios/Mundo2/Condições em Python (if..elif)/python_038.py | jbauermanncode/Curso_Em_Video_Python | 330c207d7bed4e663fe1b9ab433ab57a9828b7f1 | [
"MIT"
] | null | null | null | Python_Exercicios/Mundo2/Condições em Python (if..elif)/python_038.py | jbauermanncode/Curso_Em_Video_Python | 330c207d7bed4e663fe1b9ab433ab57a9828b7f1 | [
"MIT"
] | null | null | null | '''
Escreva um programa que leia dois números inteiros e compare- os, mostrando na tela uma mensagem:
- O primeiro valor é maior
- O segundo valor é maior
- não existe valor maior, os dois são iguais
'''
# Ler dois números inteiros
n1 = int(input('Informe o primeiro número: '))
n2 = int(input('In... | 22.925926 | 101 | 0.663974 | 95 | 619 | 4.284211 | 0.442105 | 0.054054 | 0.093366 | 0.078624 | 0.14742 | 0.14742 | 0.14742 | 0.14742 | 0 | 0 | 0 | 0.025105 | 0.227787 | 619 | 27 | 102 | 22.925926 | 0.82636 | 0.455574 | 0 | 0 | 0 | 0 | 0.386364 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.3 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
57088093d1d0b3cfd26c3d3201f0bca2db2decb3 | 324 | py | Python | ABS/ABC085C.py | fumiyanll23/AtCoder | 362ca9fcacb5415c1458bc8dee5326ba2cc70b65 | [
"MIT"
] | null | null | null | ABS/ABC085C.py | fumiyanll23/AtCoder | 362ca9fcacb5415c1458bc8dee5326ba2cc70b65 | [
"MIT"
] | null | null | null | ABS/ABC085C.py | fumiyanll23/AtCoder | 362ca9fcacb5415c1458bc8dee5326ba2cc70b65 | [
"MIT"
] | null | null | null | def main():
# input
N, Y = map(int, input().split())
# compute
for i in range(N+1):
for j in range(N+1):
if 10000*i+5000*j+1000*(N-i-j)==Y and N-i-j>=0:
print(i, j, N-i-j)
exit()
# output
print(-1, -1, -1)
if __name__ == '__main__':
mai... | 18 | 59 | 0.435185 | 53 | 324 | 2.509434 | 0.471698 | 0.06015 | 0.067669 | 0.135338 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.093596 | 0.373457 | 324 | 17 | 60 | 19.058824 | 0.561576 | 0.061728 | 0 | 0 | 0 | 0 | 0.026667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.1 | 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 |
5708df6ade016849aefe1a0044ec7ee2d375c82f | 10,853 | py | Python | testing/test_pulse_prop.py | ibegleris/w-fopo | e44b83b8ec54d01bb34b89805378a2b0659dfe6f | [
"BSD-3-Clause"
] | null | null | null | testing/test_pulse_prop.py | ibegleris/w-fopo | e44b83b8ec54d01bb34b89805378a2b0659dfe6f | [
"BSD-3-Clause"
] | null | null | null | testing/test_pulse_prop.py | ibegleris/w-fopo | e44b83b8ec54d01bb34b89805378a2b0659dfe6f | [
"BSD-3-Clause"
] | null | null | null | import sys
sys.path.append('src')
from functions import *
import numpy as np
from numpy.testing import assert_allclose
"-----------------------Full soliton--------------------------------------------"
def get_Qs(nm, gama,fv, a_vec, dnerr, index, master_index,lamda, n2):
if nm == 1:
D = loadmat('loading_dat... | 36.056478 | 105 | 0.540404 | 1,815 | 10,853 | 3.074931 | 0.140496 | 0.037628 | 0.034402 | 0.028669 | 0.60491 | 0.590396 | 0.572478 | 0.566386 | 0.56119 | 0.508869 | 0 | 0.057186 | 0.268497 | 10,853 | 301 | 106 | 36.056478 | 0.645799 | 0.042385 | 0 | 0.339623 | 0 | 0 | 0.052882 | 0.029494 | 0 | 0 | 0 | 0 | 0.09434 | 1 | 0.099057 | false | 0.018868 | 0.018868 | 0 | 0.141509 | 0.009434 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
570a3a32cbbdc85ab026871552208d720276a1d7 | 1,089 | py | Python | download.py | wujushan/AndroidHeatMap | 1d6ecff8d810ffd63ba84f56c1a44ee5e7770c59 | [
"Apache-2.0"
] | 1 | 2019-06-13T16:05:36.000Z | 2019-06-13T16:05:36.000Z | download.py | wujushan/AndroidHeatMap | 1d6ecff8d810ffd63ba84f56c1a44ee5e7770c59 | [
"Apache-2.0"
] | null | null | null | download.py | wujushan/AndroidHeatMap | 1d6ecff8d810ffd63ba84f56c1a44ee5e7770c59 | [
"Apache-2.0"
] | null | null | null | import os
import requests
def download(url):
download_path = '/root/AndroidHeatMap/download/'
if not os.path.exists(download_path):
os.mkdir(download_path)
all_content = requests.get(url).text
file_line = all_content.split("\n")
if file_line[0] != "#EXTM3U":
raise BaseExceptio... | 34.03125 | 113 | 0.575758 | 129 | 1,089 | 4.651163 | 0.51938 | 0.066667 | 0.043333 | 0.046667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.07672 | 0.305785 | 1,089 | 31 | 114 | 35.129032 | 0.716931 | 0 | 0 | 0.071429 | 0 | 0 | 0.188246 | 0.027548 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0.071429 | 0 | 0.107143 | 0.035714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
570a7fbde091be0d15c77144e4caa11f184860d3 | 4,945 | py | Python | tests/watermarks_test.py | yujialuo/erdos | 7a631b55895f1a473b0f4d38a0d6053851e65b5d | [
"Apache-2.0"
] | null | null | null | tests/watermarks_test.py | yujialuo/erdos | 7a631b55895f1a473b0f4d38a0d6053851e65b5d | [
"Apache-2.0"
] | null | null | null | tests/watermarks_test.py | yujialuo/erdos | 7a631b55895f1a473b0f4d38a0d6053851e65b5d | [
"Apache-2.0"
] | null | null | null | from collections import defaultdict
from time import sleep
from absl import app
from absl import flags
import erdos.graph
from erdos.op import Op
from erdos.utils import frequency
from erdos.message import Message
from erdos.data_stream import DataStream
from erdos.timestamp import Timestamp
from erdos.message import... | 37.462121 | 90 | 0.658038 | 603 | 4,945 | 5.207297 | 0.242123 | 0.052548 | 0.019108 | 0.014331 | 0.264331 | 0.229299 | 0.1 | 0.078981 | 0.078981 | 0.078981 | 0 | 0.005087 | 0.244692 | 4,945 | 131 | 91 | 37.748092 | 0.835609 | 0.272801 | 0 | 0.194805 | 0 | 0 | 0.04091 | 0 | 0 | 0 | 0 | 0 | 0.051948 | 1 | 0.168831 | false | 0 | 0.142857 | 0 | 0.38961 | 0.012987 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
570a9547e24dbd1a28701e76c97396c34016c792 | 1,436 | py | Python | test/test_shop/views.py | blakelockley/django-base-shop | 455a2f4465e90cde57719ac29dc090b14f0bd324 | [
"MIT"
] | 1 | 2020-01-12T04:05:42.000Z | 2020-01-12T04:05:42.000Z | test/test_shop/views.py | blakelockley/django-base-shop | 455a2f4465e90cde57719ac29dc090b14f0bd324 | [
"MIT"
] | 14 | 2020-03-24T18:11:07.000Z | 2022-03-12T00:15:20.000Z | test/test_shop/views.py | blakelockley/django-base-shop | 455a2f4465e90cde57719ac29dc090b14f0bd324 | [
"MIT"
] | null | null | null | from django.http import HttpResponse
from django_base_shop.models import ShippingTag
from .models import ConcreteCart, ConcreteProduct
def index(request):
return HttpResponse(b"Hello world")
def check_cart(request):
cart = request.cart
if not cart.is_persisted:
return HttpResponse(b"None")
... | 24.338983 | 85 | 0.660167 | 184 | 1,436 | 5.043478 | 0.353261 | 0.135776 | 0.102371 | 0.054957 | 0.43319 | 0.43319 | 0.359914 | 0.204741 | 0.140086 | 0.140086 | 0 | 0.009778 | 0.216574 | 1,436 | 58 | 86 | 24.758621 | 0.815111 | 0 | 0 | 0.27027 | 0 | 0 | 0.162256 | 0.041783 | 0 | 0 | 0 | 0 | 0 | 1 | 0.135135 | false | 0 | 0.081081 | 0.027027 | 0.405405 | 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 |
570cfc314b92388cc92855fea7600f5e8b1e443e | 11,600 | py | Python | q3/q3/drivers/ui/pyqt5.py | virtimus/makaronLab | 10b9be7d7d65d3da6219f929ea7070dd5fed3a81 | [
"0BSD"
] | 2 | 2021-03-16T05:48:36.000Z | 2021-10-11T01:55:48.000Z | q3/q3/drivers/ui/pyqt5.py | virtimus/makaronLab | 10b9be7d7d65d3da6219f929ea7070dd5fed3a81 | [
"0BSD"
] | null | null | null | q3/q3/drivers/ui/pyqt5.py | virtimus/makaronLab | 10b9be7d7d65d3da6219f929ea7070dd5fed3a81 | [
"0BSD"
] | 1 | 2021-03-16T05:48:39.000Z | 2021-03-16T05:48:39.000Z |
# PYQT
import sys
#from ...TabPanel import TabPanel
import sip
from q3.ui.engine import qtw,qtc,qtg
from ... import consts, prop, direction
from ...ui import orientation, colors
from ...moduletype import ModuleType
from ...nodeiotype import NodeIoType
from ...q3vector import Q3Vector
from ...EventSignal import E... | 34.017595 | 141 | 0.617931 | 1,199 | 11,600 | 5.899083 | 0.253545 | 0.0205 | 0.046656 | 0.055139 | 0.231019 | 0.165418 | 0.146755 | 0.045808 | 0.009897 | 0 | 0 | 0.021635 | 0.262845 | 11,600 | 340 | 142 | 34.117647 | 0.80552 | 0.071379 | 0 | 0.192893 | 0 | 0.005076 | 0.021793 | 0 | 0 | 0 | 0 | 0.002941 | 0 | 1 | 0.167513 | false | 0.015228 | 0.081218 | 0.015228 | 0.406091 | 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 |
570eadcaa613e66d764e81bda74fc4c5ac38c715 | 2,538 | py | Python | 2. ExaminingBivariateandMultivariateRelationships/2. scatter_plots.py | michaelbwalker/Data-Cleaning-and-Exploration-with-Machine-Learning | 9de44e5ad2e8d197b0a3c1b362b0377339278bd2 | [
"MIT"
] | 7 | 2021-10-02T03:19:59.000Z | 2022-03-21T21:24:14.000Z | 2. ExaminingBivariateandMultivariateRelationships/2. scatter_plots.py | michaelbwalker/Data-Cleaning-and-Exploration-with-Machine-Learning | 9de44e5ad2e8d197b0a3c1b362b0377339278bd2 | [
"MIT"
] | null | null | null | 2. ExaminingBivariateandMultivariateRelationships/2. scatter_plots.py | michaelbwalker/Data-Cleaning-and-Exploration-with-Machine-Learning | 9de44e5ad2e8d197b0a3c1b362b0377339278bd2 | [
"MIT"
] | 6 | 2021-08-30T02:58:02.000Z | 2022-02-01T07:46:49.000Z | # import pandas, matplotlib, and seaborn
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
pd.set_option('display.width', 53)
pd.set_option('display.max_columns', 5)
pd.set_option('display.max_rows', 200)
pd.options.display.float_format = '{:,.0f}'.format
covidtotals = pd.read... | 39.046154 | 130 | 0.754137 | 403 | 2,538 | 4.657568 | 0.330025 | 0.018647 | 0.017581 | 0.028769 | 0.256793 | 0.198189 | 0.161961 | 0.10016 | 0.10016 | 0.051145 | 0 | 0.027214 | 0.087864 | 2,538 | 64 | 131 | 39.65625 | 0.783585 | 0.090623 | 0 | 0.211538 | 0 | 0 | 0.300608 | 0.011295 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.076923 | 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 |
570f7be4fc6a73c331b26ffda6ddfc47a075df88 | 1,252 | py | Python | minifyoperation.py | seece/cbpp | b6771c7933fa07444e660eafda6f06cf60edce01 | [
"MIT"
] | null | null | null | minifyoperation.py | seece/cbpp | b6771c7933fa07444e660eafda6f06cf60edce01 | [
"MIT"
] | null | null | null | minifyoperation.py | seece/cbpp | b6771c7933fa07444e660eafda6f06cf60edce01 | [
"MIT"
] | null | null | null | import re
from util import *
from operation import Operation, OperationResult
class Replacement:
def __init__(self, regex, substitution):
self.regex = regex
self.substitution = substitution
class MinifyOperation(Operation):
def __init__(self):
self.inMultilineComment = False
pass
def apply(self, line, sta... | 24.076923 | 122 | 0.626997 | 166 | 1,252 | 4.680723 | 0.379518 | 0.030888 | 0.046332 | 0.046332 | 0.105534 | 0.105534 | 0.105534 | 0 | 0 | 0 | 0 | 0.006776 | 0.17492 | 1,252 | 51 | 123 | 24.54902 | 0.745402 | 0.014377 | 0 | 0.055556 | 0 | 0 | 0.094968 | 0.073052 | 0 | 0 | 0 | 0 | 0 | 1 | 0.138889 | false | 0.027778 | 0.083333 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
570fe23611397bcc46c1ab733771a0e34fdc4ba4 | 1,302 | py | Python | ep004_helper.py | jpch89/effectivepython | 97ba297bf987f346219bf8de5198c0817f5146e0 | [
"MIT"
] | null | null | null | ep004_helper.py | jpch89/effectivepython | 97ba297bf987f346219bf8de5198c0817f5146e0 | [
"MIT"
] | null | null | null | ep004_helper.py | jpch89/effectivepython | 97ba297bf987f346219bf8de5198c0817f5146e0 | [
"MIT"
] | null | null | null | from urllib.parse import parse_qs
# 解析查询字符串 query string
my_values = parse_qs('red=5&blue=0&green=',
keep_blank_values=True)
# print(repr(my_values)) # 原书写法
print(my_values) # 返回的是字典,直接这样写就行了
# >>>
# {'red': ['5'], 'blue': ['0'], 'green': ['']}
# 查询字符串中的参数可能有:多个值和空白 blank 值。
# 有些参数则没有出现。
# 使用 g... | 23.25 | 48 | 0.609831 | 192 | 1,302 | 4.041667 | 0.333333 | 0.123711 | 0.127577 | 0.072165 | 0.275773 | 0.046392 | 0.046392 | 0 | 0 | 0 | 0 | 0.029245 | 0.185868 | 1,302 | 55 | 49 | 23.672727 | 0.70283 | 0.264977 | 0 | 0.133333 | 0 | 0 | 0.130203 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0 | 0.033333 | 0 | 0.1 | 0.3 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5712c5f2bba3745161134c95e4c1fe8d35033684 | 5,808 | py | Python | sc_cost_meter/utils.py | zaro0508/lambda-sc-cost-meter | 2e10fa102af983f61a352ae633651fc3eaf64b19 | [
"Apache-2.0"
] | null | null | null | sc_cost_meter/utils.py | zaro0508/lambda-sc-cost-meter | 2e10fa102af983f61a352ae633651fc3eaf64b19 | [
"Apache-2.0"
] | null | null | null | sc_cost_meter/utils.py | zaro0508/lambda-sc-cost-meter | 2e10fa102af983f61a352ae633651fc3eaf64b19 | [
"Apache-2.0"
] | null | null | null | import boto3
import logging
import os
from datetime import datetime
log = logging.getLogger(__name__)
log.setLevel(logging.DEBUG)
def get_ec2_client():
return boto3.client('ec2')
def get_ssm_client():
return boto3.client('ssm')
def get_ce_client():
return boto3.client('ce')
def get_meteringmarketplace_clien... | 31.394595 | 89 | 0.719697 | 760 | 5,808 | 5.261842 | 0.214474 | 0.050013 | 0.042761 | 0.051763 | 0.385096 | 0.357839 | 0.27857 | 0.27857 | 0.256564 | 0.256564 | 0 | 0.003421 | 0.194731 | 5,808 | 184 | 90 | 31.565217 | 0.851614 | 0.292355 | 0 | 0.252033 | 0 | 0 | 0.17182 | 0.0399 | 0 | 0 | 0 | 0.005435 | 0 | 1 | 0.089431 | false | 0 | 0.03252 | 0.04065 | 0.203252 | 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 |
5714de071955ec101c9d0bd2f8b9cad2f55c7b5c | 8,000 | py | Python | source/metadata.py | sanmik/brain-network-viz | 9c881e49c14c94e3f7ef4b7776d98c930716ee91 | [
"MIT"
] | 5 | 2017-09-01T14:05:03.000Z | 2019-07-13T07:52:49.000Z | source/metadata.py | sanmik/brain-network-viz | 9c881e49c14c94e3f7ef4b7776d98c930716ee91 | [
"MIT"
] | null | null | null | source/metadata.py | sanmik/brain-network-viz | 9c881e49c14c94e3f7ef4b7776d98c930716ee91 | [
"MIT"
] | 1 | 2017-09-01T14:05:03.000Z | 2017-09-01T14:05:03.000Z | # Library Imports
from itertools import islice
import csv
# Local Module Imports
import config
class Metadata(object):
"""
Base class for maintaining metadata (properties and their attributes) about
Node and Edge objects. This base class handles parsing and storing the CSV
data, and providing accessor method... | 33.057851 | 79 | 0.58775 | 1,061 | 8,000 | 4.303487 | 0.223374 | 0.036137 | 0.009855 | 0.024091 | 0.307709 | 0.272887 | 0.246605 | 0.229523 | 0.184845 | 0.154183 | 0 | 0.006065 | 0.278625 | 8,000 | 241 | 80 | 33.195021 | 0.785133 | 0.511875 | 0 | 0.028986 | 0 | 0 | 0.010601 | 0 | 0 | 0 | 0 | 0.008299 | 0.014493 | 1 | 0.15942 | false | 0 | 0.043478 | 0 | 0.376812 | 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 |
571574f8dd7e9bd961d512815c9fd6535e05f1d8 | 20,165 | py | Python | src/src_python/antares_xpansion/driver.py | pelefebvre/antares-xpansion | c62ed1a982e970325dec6007eb57a9c6288ef0c7 | [
"Apache-2.0"
] | null | null | null | src/src_python/antares_xpansion/driver.py | pelefebvre/antares-xpansion | c62ed1a982e970325dec6007eb57a9c6288ef0c7 | [
"Apache-2.0"
] | null | null | null | src/src_python/antares_xpansion/driver.py | pelefebvre/antares-xpansion | c62ed1a982e970325dec6007eb57a9c6288ef0c7 | [
"Apache-2.0"
] | 1 | 2021-05-27T13:06:26.000Z | 2021-05-27T13:06:26.000Z | """
Class to control the execution of the optimization session
"""
import shutil
import configparser
import glob
import os
import subprocess
import sys
from pathlib import Path
from antares_xpansion.input_checker import check_candidates_file
from antares_xpansion.input_checker import check_settings_file
from ant... | 41.069246 | 129 | 0.579965 | 2,326 | 20,165 | 4.865864 | 0.125967 | 0.079519 | 0.024739 | 0.028274 | 0.436296 | 0.379042 | 0.363668 | 0.324439 | 0.276992 | 0.237144 | 0 | 0.003246 | 0.312571 | 20,165 | 490 | 130 | 41.153061 | 0.81323 | 0.161716 | 0 | 0.272109 | 0 | 0 | 0.086957 | 0.008759 | 0 | 0 | 0 | 0 | 0.040816 | 1 | 0.098639 | false | 0 | 0.034014 | 0 | 0.214286 | 0.085034 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
57199578121fb89b3db3e976c4737dd3dcc14bf5 | 2,258 | py | Python | lambdas/get_users.py | charvi-a/320-S20-Track1 | ac97504fc1fdedb1c311773b015570eeea8a8663 | [
"BSD-3-Clause"
] | 9 | 2019-12-30T16:32:22.000Z | 2020-03-03T20:14:47.000Z | lambdas/get_users.py | charvi-a/320-S20-Track1 | ac97504fc1fdedb1c311773b015570eeea8a8663 | [
"BSD-3-Clause"
] | 283 | 2020-02-03T15:16:03.000Z | 2020-05-05T03:18:59.000Z | lambdas/get_users.py | charvi-a/320-S20-Track1 | ac97504fc1fdedb1c311773b015570eeea8a8663 | [
"BSD-3-Clause"
] | 3 | 2020-04-16T15:23:29.000Z | 2020-05-12T00:38:41.000Z | from package.query_db import query
from package.lambda_exception import LambdaException
def handler(event, context):
is_admin = event['is_admin']
is_supporter = event['is_supporter']
is_student = event['is_student']
if is_admin == "" and is_supporter == "" and is_student == "":
get_users_sql ... | 34.738462 | 171 | 0.574402 | 261 | 2,258 | 4.662835 | 0.226054 | 0.09203 | 0.029581 | 0.023007 | 0.266228 | 0.09696 | 0.09696 | 0.09696 | 0.09696 | 0.09696 | 0 | 0.001926 | 0.310009 | 2,258 | 64 | 172 | 35.28125 | 0.779204 | 0 | 0 | 0.25 | 0 | 0.019231 | 0.211249 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019231 | false | 0 | 0.038462 | 0 | 0.076923 | 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 |
571ab14954af261729cb1d3fc0d5e206657e96fa | 705 | py | Python | leetCode/swap_nodes_in_pairs.py | yskang/AlgorithmPracticeWithPython | f7129bd1924a7961489198f0ee052d2cd1e9cf40 | [
"MIT"
] | null | null | null | leetCode/swap_nodes_in_pairs.py | yskang/AlgorithmPracticeWithPython | f7129bd1924a7961489198f0ee052d2cd1e9cf40 | [
"MIT"
] | 1 | 2019-11-04T06:44:04.000Z | 2019-11-04T06:46:55.000Z | leetCode/swap_nodes_in_pairs.py | yskang/AlgorithmPractice | 31b76e38b4c2f1e3e29fb029587662a745437912 | [
"MIT"
] | null | null | null | # Title: Swap Nodes in Pairs
# Link: https://leetcode.com/problems/swap-nodes-in-pairs
class ListNode:
def __init__(self, val=0, next=None):
self.val = val
self.next = next
class Problem:
def swap_pairs(self, head: ListNode) -> ListNode:
pre, pre.next = self, head
while pre.nex... | 22.741935 | 61 | 0.58156 | 97 | 705 | 4.082474 | 0.371134 | 0.088384 | 0.055556 | 0.080808 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00998 | 0.289362 | 705 | 31 | 62 | 22.741935 | 0.780439 | 0.116312 | 0 | 0 | 0 | 0 | 0.012882 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.190476 | false | 0 | 0 | 0 | 0.380952 | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
571ac253ee844d994243e9c2e1443c9c4aa20002 | 16,967 | py | Python | detect_actions.py | CTewan/ACAM_Demo | b76cf4ce1289b8c311dbad1588f299ff67f7eaf3 | [
"MIT"
] | null | null | null | detect_actions.py | CTewan/ACAM_Demo | b76cf4ce1289b8c311dbad1588f299ff67f7eaf3 | [
"MIT"
] | null | null | null | detect_actions.py | CTewan/ACAM_Demo | b76cf4ce1289b8c311dbad1588f299ff67f7eaf3 | [
"MIT"
] | null | null | null | import numpy as np
import cv2
import imageio
import tensorflow as tf
import json
import csv
import os
import sys
sys.path.append("object_detection")
sys.path.append("object_detection/deep_sort")
sys.path.append("action_detection")
import argparse
import object_detection.object_detector as obj
import action_detection... | 38.386878 | 145 | 0.590263 | 2,166 | 16,967 | 4.309326 | 0.17036 | 0.031819 | 0.024427 | 0.013499 | 0.269124 | 0.195093 | 0.152025 | 0.136276 | 0.136276 | 0.115063 | 0 | 0.025602 | 0.304768 | 16,967 | 441 | 146 | 38.473923 | 0.765683 | 0.114045 | 0 | 0.192727 | 0 | 0 | 0.075996 | 0.015488 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021818 | false | 0.007273 | 0.043636 | 0 | 0.094545 | 0.043636 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
571af6febfc1dc4cb09b37f0fb44cc848ccf1059 | 5,556 | py | Python | tests/test_parametric_shapes/test_SweepMixedShape.py | RemDelaporteMathurin/paramak | 10552f1b89820dd0f7a08e4a126834877e3106b4 | [
"MIT"
] | null | null | null | tests/test_parametric_shapes/test_SweepMixedShape.py | RemDelaporteMathurin/paramak | 10552f1b89820dd0f7a08e4a126834877e3106b4 | [
"MIT"
] | null | null | null | tests/test_parametric_shapes/test_SweepMixedShape.py | RemDelaporteMathurin/paramak | 10552f1b89820dd0f7a08e4a126834877e3106b4 | [
"MIT"
] | null | null | null | import os
import unittest
from pathlib import Path
import pytest
from paramak import SweepMixedShape
class test_object_properties(unittest.TestCase):
def test_solid_construction(self):
"""checks that a SweepMixedShape solid can be created"""
test_shape = SweepMixedShape(
points=[
... | 29.089005 | 89 | 0.430166 | 508 | 5,556 | 4.519685 | 0.187008 | 0.04878 | 0.073171 | 0.04878 | 0.634146 | 0.576655 | 0.541812 | 0.541812 | 0.541812 | 0.526132 | 0 | 0.098446 | 0.444204 | 5,556 | 190 | 90 | 29.242105 | 0.645078 | 0.079374 | 0 | 0.660131 | 0 | 0 | 0.068092 | 0 | 0 | 0 | 0 | 0 | 0.045752 | 1 | 0.052288 | false | 0 | 0.03268 | 0 | 0.091503 | 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 |
571dbed119712d82f6343f841d5c39a1d78ee427 | 996 | py | Python | run_rnn.py | iqbaalmuhmd/CNNnumpyTest | eaecf5bc53a7b5c932a82d38cc6ca2a40430af4b | [
"MIT"
] | 332 | 2017-06-13T10:40:05.000Z | 2022-03-11T15:10:02.000Z | run_rnn.py | iqbaalmuhmd/CNNnumpyTest | eaecf5bc53a7b5c932a82d38cc6ca2a40430af4b | [
"MIT"
] | 9 | 2017-06-16T02:36:06.000Z | 2021-05-09T06:01:34.000Z | run_rnn.py | iqbaalmuhmd/CNNnumpyTest | eaecf5bc53a7b5c932a82d38cc6ca2a40430af4b | [
"MIT"
] | 105 | 2017-06-15T06:40:44.000Z | 2022-03-09T06:38:59.000Z | import numpy as np
from deepnet.nnet import RNN
from deepnet.solver import sgd_rnn
def text_to_inputs(path):
"""
Converts the given text into X and y vectors
X : contains the index of all the characters in the text vocab
y : y[i] contains the index of next character for X[i] in the text vocab
"""
... | 27.666667 | 79 | 0.625502 | 179 | 996 | 3.240223 | 0.307263 | 0.082759 | 0.124138 | 0.077586 | 0.298276 | 0.298276 | 0.298276 | 0.212069 | 0.1 | 0.1 | 0 | 0.009485 | 0.259036 | 996 | 35 | 80 | 28.457143 | 0.776423 | 0.180723 | 0 | 0 | 0 | 0 | 0.026515 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.157895 | 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 |
571ddbe314e19b402b88195037ee31e371ecdddf | 5,421 | py | Python | lcclassifier/experiments/attnstats.py | oscarpimentel/astro-lightcurves-classifier | f697b43e22bd8c92c1b9df514be8565c736dd7cc | [
"MIT"
] | 1 | 2021-12-31T18:00:08.000Z | 2021-12-31T18:00:08.000Z | lcclassifier/experiments/attnstats.py | oscarpimentel/astro-lightcurves-classifier | f697b43e22bd8c92c1b9df514be8565c736dd7cc | [
"MIT"
] | null | null | null | lcclassifier/experiments/attnstats.py | oscarpimentel/astro-lightcurves-classifier | f697b43e22bd8c92c1b9df514be8565c736dd7cc | [
"MIT"
] | null | null | null | from __future__ import print_function
from __future__ import division
from . import _C
import torch
from fuzzytorch.utils import TDictHolder, tensor_to_numpy, minibatch_dict_collate
import numpy as np
from fuzzytools.progress_bars import ProgressBar, ProgressBarMulti
import fuzzytools.files as files
import fuzzytools.... | 35.431373 | 147 | 0.65855 | 861 | 5,421 | 3.876887 | 0.212544 | 0.068904 | 0.030557 | 0.023966 | 0.180647 | 0.146195 | 0.11444 | 0.094068 | 0.038346 | 0.020971 | 0 | 0.00627 | 0.146836 | 5,421 | 153 | 148 | 35.431373 | 0.715459 | 0.110312 | 0 | 0.02459 | 0 | 0 | 0.121212 | 0.072193 | 0 | 0 | 0 | 0 | 0.032787 | 1 | 0.02459 | false | 0 | 0.131148 | 0.008197 | 0.196721 | 0.008197 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
571ea096124b732422144c10209f4cc5cb3c06c7 | 1,473 | py | Python | get_item_by_key.py | flyco2016/my_python_module_project | 6e1ac7f074f7b57403d7b7c6adadab17a26fc27d | [
"Apache-2.0"
] | null | null | null | get_item_by_key.py | flyco2016/my_python_module_project | 6e1ac7f074f7b57403d7b7c6adadab17a26fc27d | [
"Apache-2.0"
] | 1 | 2019-01-04T06:37:06.000Z | 2019-01-04T06:37:06.000Z | get_item_by_key.py | flyco2016/my_python_module_project | 6e1ac7f074f7b57403d7b7c6adadab17a26fc27d | [
"Apache-2.0"
] | null | null | null | # 处理嵌套的根据键取值
def getItemByKey(obj, key, result=None):
if isinstance(obj, dict):
for k in obj:
if key == k:
if isinstance(result, list):
if isinstance(obj[k], list):
result.extend(obj[k])
else:
... | 33.477273 | 81 | 0.491514 | 172 | 1,473 | 4.133721 | 0.284884 | 0.045007 | 0.063291 | 0.061885 | 0.067511 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011173 | 0.392396 | 1,473 | 44 | 82 | 33.477273 | 0.78324 | 0.006789 | 0 | 0.157895 | 0 | 0 | 0.012312 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.026316 | 0 | 0.184211 | 0.026316 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
571f77622a48c2fb03cc44698429e534d7932593 | 7,166 | py | Python | calories.py | davidsvaughn/har-pytorch | 334733a1e870637c9077d16fc15e0b1954a6dfc5 | [
"MIT"
] | 5 | 2020-09-17T12:17:13.000Z | 2022-02-28T08:07:49.000Z | calories.py | davidsvaughn/har-pytorch | 334733a1e870637c9077d16fc15e0b1954a6dfc5 | [
"MIT"
] | null | null | null | calories.py | davidsvaughn/har-pytorch | 334733a1e870637c9077d16fc15e0b1954a6dfc5 | [
"MIT"
] | null | null | null | import numpy as np
import pandas as pd
import json
from datetime import datetime
import psycopg2
import functools
import requests
##############################################################
## https://www.exrx.net/Calculators/WalkRunMETs
## https://www.cdc.gov/growthcharts/clinical_charts.htm
## https://help.fitbit... | 30.887931 | 110 | 0.558889 | 1,099 | 7,166 | 3.561419 | 0.272975 | 0.022994 | 0.011242 | 0.018396 | 0.169647 | 0.164027 | 0.123659 | 0.106285 | 0.106285 | 0.106285 | 0 | 0.048942 | 0.241557 | 7,166 | 232 | 111 | 30.887931 | 0.671205 | 0.144711 | 0 | 0.202312 | 0 | 0.00578 | 0.087707 | 0.013209 | 0 | 0 | 0 | 0 | 0 | 1 | 0.098266 | false | 0.011561 | 0.040462 | 0.00578 | 0.254335 | 0.017341 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5721e5bf810d647e593fd1d82e6a86cb2fa7e570 | 14,744 | py | Python | alphad3m/alphad3m/metalearning/grammar_builder.py | VIDA-NYU/alphad3m | db40193a448300d87442c451f9da17fa5cb845fd | [
"Apache-2.0"
] | null | null | null | alphad3m/alphad3m/metalearning/grammar_builder.py | VIDA-NYU/alphad3m | db40193a448300d87442c451f9da17fa5cb845fd | [
"Apache-2.0"
] | null | null | null | alphad3m/alphad3m/metalearning/grammar_builder.py | VIDA-NYU/alphad3m | db40193a448300d87442c451f9da17fa5cb845fd | [
"Apache-2.0"
] | null | null | null | import logging
import numpy as np
from scipy import stats
from collections import OrderedDict
from alphad3m.metalearning.resource_builder import load_metalearningdb
from alphad3m.metalearning.dataset_similarity import get_similar_datasets
from alphad3m.primitive_loader import load_primitives_by_name, load_primitives_by... | 48.983389 | 165 | 0.686788 | 1,690 | 14,744 | 5.756213 | 0.16213 | 0.027138 | 0.02097 | 0.035053 | 0.282072 | 0.190687 | 0.122944 | 0.094058 | 0.08933 | 0.056435 | 0 | 0.004397 | 0.213375 | 14,744 | 300 | 166 | 49.146667 | 0.834196 | 0.064433 | 0 | 0.079295 | 0 | 0 | 0.167308 | 0.068302 | 0 | 0 | 0 | 0.003333 | 0 | 1 | 0.044053 | false | 0 | 0.039648 | 0 | 0.132159 | 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 |
5723328e5cd271a82c8d25b908bc2b420246795d | 4,512 | py | Python | deap_learning.py | fzjcdt/Genetic-CNN | 6bd53f3f429434557b7fbf1122020259d910f618 | [
"Apache-2.0"
] | 2 | 2019-10-08T08:27:41.000Z | 2021-12-02T07:37:27.000Z | deap_learning.py | fzjcdt/Genetic-CNN | 6bd53f3f429434557b7fbf1122020259d910f618 | [
"Apache-2.0"
] | null | null | null | deap_learning.py | fzjcdt/Genetic-CNN | 6bd53f3f429434557b7fbf1122020259d910f618 | [
"Apache-2.0"
] | null | null | null | from deap import base, creator, tools
import random
"""
每个individual是一个list,包含10个元素,需要演化到元素和最小
"""
# ****************************Types********************************
# def create(name, base, **kargs):
# Creates a new class named *name* inheriting from *base*
# A negative weight element corresponds to the minimization... | 33.176471 | 89 | 0.629876 | 516 | 4,512 | 5.48062 | 0.408915 | 0.037129 | 0.002122 | 0.019095 | 0.029703 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014245 | 0.222074 | 4,512 | 135 | 90 | 33.422222 | 0.791453 | 0.407801 | 0 | 0.047619 | 0 | 0 | 0.038747 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.047619 | 0.02381 | 0.142857 | 0.02381 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
57262781980201cf7735ba35e8965dd0cb76ade8 | 1,674 | py | Python | pacman/utils/replay_buffer.py | i-rme/openai-pacman | 4a80ed023ed2bdf031990147acbbeea904b9fc8e | [
"MIT"
] | 2 | 2020-01-26T23:06:57.000Z | 2021-04-12T08:36:55.000Z | pacman/utils/replay_buffer.py | i-rme/openai-pacman | 4a80ed023ed2bdf031990147acbbeea904b9fc8e | [
"MIT"
] | null | null | null | pacman/utils/replay_buffer.py | i-rme/openai-pacman | 4a80ed023ed2bdf031990147acbbeea904b9fc8e | [
"MIT"
] | null | null | null | from collections import deque
import random
import numpy as np
class ReplayBuffer:
'''
construct a buffer object that stores the past
moves and samples a set of subsamples
'''
def __init__(self, buffer_size):
self.buffer_size = buffer_size
self.count = 0
self.buffer = deque... | 27.442623 | 93 | 0.548387 | 214 | 1,674 | 4.186916 | 0.364486 | 0.111607 | 0.046875 | 0.040179 | 0.196429 | 0.069196 | 0.069196 | 0.069196 | 0.069196 | 0.069196 | 0 | 0.021858 | 0.344086 | 1,674 | 61 | 94 | 27.442623 | 0.794171 | 0.299881 | 0 | 0.206897 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.172414 | false | 0 | 0.103448 | 0.034483 | 0.37931 | 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 |
5726ab8f943f02dfa0eee1936447786383a1ce72 | 9,126 | py | Python | tests/entities/test_creature.py | Flame753/ARPG | f931d3437a83995b43bdddc68cb5ba89922dc259 | [
"MIT"
] | null | null | null | tests/entities/test_creature.py | Flame753/ARPG | f931d3437a83995b43bdddc68cb5ba89922dc259 | [
"MIT"
] | null | null | null | tests/entities/test_creature.py | Flame753/ARPG | f931d3437a83995b43bdddc68cb5ba89922dc259 | [
"MIT"
] | null | null | null | # Standard library imports
from pprint import pprint
import unittest
# Local application imports
from context import entities
from entities import creatures
from entities import items
from entities import currency
from entities import slots
class TestCreature(unittest.TestCase):
def setUp(self):
self.d... | 36.504 | 107 | 0.655928 | 1,013 | 9,126 | 5.743337 | 0.126357 | 0.056721 | 0.039704 | 0.065315 | 0.638192 | 0.599691 | 0.538329 | 0.474046 | 0.415091 | 0.355105 | 0 | 0.004676 | 0.250055 | 9,126 | 250 | 108 | 36.504 | 0.845412 | 0.071225 | 0 | 0.527778 | 0 | 0 | 0.014777 | 0 | 0 | 0 | 0 | 0 | 0.261111 | 1 | 0.072222 | false | 0 | 0.038889 | 0 | 0.122222 | 0.005556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
572995aff10ad23755f80a0359fa3ca259ee111e | 199 | py | Python | testfiles/benchmarks/send_multiple.py | marcolamartina/PASTEL | 8e1e0fd086a26b7c50f15fe87ffe5dbd007cf925 | [
"MIT"
] | null | null | null | testfiles/benchmarks/send_multiple.py | marcolamartina/PASTEL | 8e1e0fd086a26b7c50f15fe87ffe5dbd007cf925 | [
"MIT"
] | null | null | null | testfiles/benchmarks/send_multiple.py | marcolamartina/PASTEL | 8e1e0fd086a26b7c50f15fe87ffe5dbd007cf925 | [
"MIT"
] | 1 | 2020-07-08T11:23:22.000Z | 2020-07-08T11:23:22.000Z | import binascii
from pwn import *
def send(r,num):
r.sendline(str(num))
port = 1234
server = '127.0.0.1'
sleep(1)
for i in range(10000):
r = remote(server, port)
send(r,i)
r.close()
| 15.307692 | 28 | 0.623116 | 36 | 199 | 3.444444 | 0.666667 | 0.080645 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102564 | 0.21608 | 199 | 12 | 29 | 16.583333 | 0.692308 | 0 | 0 | 0 | 0 | 0 | 0.045455 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.181818 | 0 | 0.272727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
573671e14e06512a6056d7ef96ce655d220e4a19 | 2,857 | py | Python | Run_exphydro_distributed_type1_pso.py | sopanpatil/exp-hydro | 7295dddc4df1028f669a223e1b631a4a91669515 | [
"MIT"
] | 11 | 2016-11-25T13:05:26.000Z | 2022-03-25T03:24:16.000Z | Run_exphydro_distributed_type1_pso.py | sopanpatil/exp-hydro | 7295dddc4df1028f669a223e1b631a4a91669515 | [
"MIT"
] | null | null | null | Run_exphydro_distributed_type1_pso.py | sopanpatil/exp-hydro | 7295dddc4df1028f669a223e1b631a4a91669515 | [
"MIT"
] | 6 | 2017-03-28T12:06:00.000Z | 2021-09-16T17:50:34.000Z | #!/usr/bin/env python
# Programmer(s): Sopan Patil.
""" MAIN PROGRAM FILE
Run this file to optimise the model parameters of the spatially distributed
version of EXP-HYDRO model using Particle Swarm Optimisation (PSO) algorithm.
Type 1 Model:
- This type of distributed model is pixel based (i.e., all sub-components
h... | 35.7125 | 119 | 0.716136 | 374 | 2,857 | 5.419786 | 0.47861 | 0.0296 | 0.049334 | 0.022694 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010036 | 0.128106 | 2,857 | 79 | 120 | 36.164557 | 0.803693 | 0.476024 | 0 | 0 | 0 | 0 | 0.142176 | 0.068308 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.241379 | 0 | 0.241379 | 0.103448 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5738d01ad1ed866e8e47c9a1f5dadbf2cfce3611 | 11,104 | py | Python | multi_input_multi_output/train.py | alt113/CS591-Multimodal-Spring2021 | f28bade729818aa51fd131e86f1ba2271cca8947 | [
"MIT"
] | null | null | null | multi_input_multi_output/train.py | alt113/CS591-Multimodal-Spring2021 | f28bade729818aa51fd131e86f1ba2271cca8947 | [
"MIT"
] | 1 | 2021-05-03T18:59:43.000Z | 2021-05-03T19:04:19.000Z | multi_input_multi_output/train.py | alt113/CS591-Multimodal-Spring2021 | f28bade729818aa51fd131e86f1ba2271cca8947 | [
"MIT"
] | null | null | null | import os
from multi_input_multi_output.models import MultiNet
from shared_weights.helpers import config, utils
from shared_weights.helpers.siamese_network import create_encoder
from data.data_tf import fat_dataset
import tensorflow as tf
from tensorflow import keras
# ----------------------
def flatten_model(mode... | 40.525547 | 132 | 0.665616 | 1,296 | 11,104 | 5.462191 | 0.200617 | 0.038847 | 0.015821 | 0.016104 | 0.409521 | 0.340726 | 0.307388 | 0.284503 | 0.25173 | 0.207656 | 0 | 0.011048 | 0.23379 | 11,104 | 273 | 133 | 40.673993 | 0.820992 | 0.173811 | 0 | 0.125654 | 0 | 0 | 0.055132 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.036649 | false | 0 | 0.036649 | 0.005236 | 0.109948 | 0.073298 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
573a1fa313f96c01ab6df0ada017abeca301701e | 856 | py | Python | tools/rebuild_caches.py | newbdoc/lookyloo | 53a8952fccaf9ae42fa582d3475283babd55d08a | [
"BSD-3-Clause"
] | 148 | 2020-06-14T06:55:42.000Z | 2022-03-19T05:37:02.000Z | tools/rebuild_caches.py | newbdoc/lookyloo | 53a8952fccaf9ae42fa582d3475283babd55d08a | [
"BSD-3-Clause"
] | 261 | 2020-06-16T22:29:27.000Z | 2022-03-31T10:40:52.000Z | tools/rebuild_caches.py | newbdoc/lookyloo | 53a8952fccaf9ae42fa582d3475283babd55d08a | [
"BSD-3-Clause"
] | 27 | 2020-06-08T12:28:33.000Z | 2022-02-15T18:50:50.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import argparse
import logging
from lookyloo.lookyloo import Indexing, Lookyloo
logging.basicConfig(format='%(asctime)s %(name)s %(levelname)s:%(message)s',
level=logging.INFO)
def main():
parser = argparse.ArgumentParser(description='Rebuild t... | 25.939394 | 168 | 0.684579 | 106 | 856 | 5.358491 | 0.632075 | 0.056338 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005797 | 0.193925 | 856 | 32 | 169 | 26.75 | 0.817391 | 0.107477 | 0 | 0 | 0 | 0 | 0.241787 | 0.032852 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.157895 | 0 | 0.210526 | 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 |
573b50d93fdcd613c5e4eb9cd5d3608413327c07 | 633 | py | Python | src/game.py | LuisMarques99/Number-Guesser-Terminal | 6abfac23268022f7ce3776a20d1d6f550955d6c8 | [
"MIT"
] | null | null | null | src/game.py | LuisMarques99/Number-Guesser-Terminal | 6abfac23268022f7ce3776a20d1d6f550955d6c8 | [
"MIT"
] | null | null | null | src/game.py | LuisMarques99/Number-Guesser-Terminal | 6abfac23268022f7ce3776a20d1d6f550955d6c8 | [
"MIT"
] | null | null | null | from random import randrange
def main():
MIN = 1
MAX = 100
NUMBER = randrange(MIN, MAX + 1)
guesses = 9
print(f"Guess a number from {MIN} to {MAX}.\nYou have {guesses} chances. Start now!\n")
while guesses > 0:
guess = input(f"Guess ({guesses}): ")
guesses -= 1
try:
guess = int(guess)
if guess == ... | 21.827586 | 90 | 0.624013 | 94 | 633 | 4.117021 | 0.542553 | 0.031008 | 0.067183 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01833 | 0.224329 | 633 | 29 | 91 | 21.827586 | 0.769857 | 0 | 0 | 0 | 0 | 0.043478 | 0.361199 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.043478 | 0 | 0.086957 | 0.217391 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
573b7032640a85abec559a72d8a9edcb24834621 | 378 | py | Python | Data Structures and Algorithms/HackerRank Algo Solutions/EASY PROBLEMS/Arrays.py | akkik04/Python-DataStructures-and-Algorithms | 8db63173218e5a9205dbb325935c71fec93b695c | [
"MIT"
] | 1 | 2022-01-22T18:19:07.000Z | 2022-01-22T18:19:07.000Z | Data Structures and Algorithms/HackerRank Algo Solutions/EASY PROBLEMS/Arrays.py | akkik04/Python-DataStructures-and-Algorithms | 8db63173218e5a9205dbb325935c71fec93b695c | [
"MIT"
] | null | null | null | Data Structures and Algorithms/HackerRank Algo Solutions/EASY PROBLEMS/Arrays.py | akkik04/Python-DataStructures-and-Algorithms | 8db63173218e5a9205dbb325935c71fec93b695c | [
"MIT"
] | null | null | null | # ARRAYS-DS HACKERANK SOLUTION:
# creating a function to reverse the array.
def reverseArray(arr):
# reversing the array.
reversed = arr[::-1]
# returning the reversed array.
return reversed
# receiving input.
arr_count = int(input().strip())
arr = list(map(int, input().rstrip().spl... | 22.235294 | 47 | 0.653439 | 46 | 378 | 5.347826 | 0.673913 | 0.065041 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00339 | 0.219577 | 378 | 17 | 48 | 22.235294 | 0.830508 | 0.42328 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.333333 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
574587d505f7c19dabd0452d40b6544e75b9a682 | 10,136 | py | Python | processing_scripts/database_update/pokedex_entry.py | CorentG/Pokecube-Issues-and-Wiki | 690af5d8499561f65f761fd49fbf5fc2bc85c4c3 | [
"MIT"
] | 24 | 2019-02-02T20:37:53.000Z | 2022-02-09T13:51:41.000Z | processing_scripts/database_update/pokedex_entry.py | CorentG/Pokecube-Issues-and-Wiki | 690af5d8499561f65f761fd49fbf5fc2bc85c4c3 | [
"MIT"
] | 671 | 2018-08-20T08:46:35.000Z | 2022-03-26T00:11:43.000Z | processing_scripts/database_update/pokedex_entry.py | CorentG/Pokecube-Issues-and-Wiki | 690af5d8499561f65f761fd49fbf5fc2bc85c4c3 | [
"MIT"
] | 68 | 2018-09-25T21:03:40.000Z | 2022-02-25T19:59:51.000Z | import csv_loader
import moves_names
def getSingle(name, data, file, value):
return data.get_info(name,value, expected_file=file, use_names_map=True)[file][0]
def getExpYield(name, data):
return int(getSingle(name, data,"pokemon" ,"base_experience"))
def getHeight(name, data):
return int(getSingle(name, d... | 37.128205 | 120 | 0.530979 | 1,159 | 10,136 | 4.505608 | 0.178602 | 0.056683 | 0.029299 | 0.025852 | 0.384719 | 0.325163 | 0.290885 | 0.238414 | 0.21486 | 0.196476 | 0 | 0.011726 | 0.343725 | 10,136 | 272 | 121 | 37.264706 | 0.773301 | 0.070837 | 0 | 0.259912 | 0 | 0 | 0.10299 | 0 | 0 | 0 | 0 | 0.003676 | 0 | 1 | 0.07489 | false | 0.026432 | 0.008811 | 0.030837 | 0.162996 | 0.022026 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5746c4fc2776ee414b40d5372100f22e8a3258f4 | 25,539 | py | Python | tests/test_add.py | open-contracting/kingfisher-views | 7887610a144493f2ccd0d9a22cf43157dc180479 | [
"BSD-3-Clause"
] | 2 | 2019-02-19T16:15:19.000Z | 2020-07-25T04:05:45.000Z | tests/test_add.py | open-contracting/kingfisher-views | 7887610a144493f2ccd0d9a22cf43157dc180479 | [
"BSD-3-Clause"
] | 142 | 2019-03-11T15:14:22.000Z | 2020-11-11T19:26:09.000Z | tests/test_add.py | open-contracting/kingfisher-views | 7887610a144493f2ccd0d9a22cf43157dc180479 | [
"BSD-3-Clause"
] | 5 | 2019-04-11T14:11:10.000Z | 2020-07-30T22:45:59.000Z | import datetime
import decimal
from unittest.mock import patch
import pytest
from click.testing import CliRunner
from psycopg2 import sql
from manage import SUMMARIES, cli, construct_where_fragment
from tests import assert_bad_argument, assert_log_records, assert_log_running, fixture, noop
command = 'add'
TABLES = ... | 40.092622 | 118 | 0.539958 | 2,582 | 25,539 | 5.113478 | 0.139814 | 0.025903 | 0.02863 | 0.027342 | 0.655912 | 0.588578 | 0.567068 | 0.527304 | 0.510187 | 0.500568 | 0 | 0.030244 | 0.360429 | 25,539 | 636 | 119 | 40.15566 | 0.77807 | 0.075179 | 0 | 0.590747 | 0 | 0.003559 | 0.449877 | 0.132487 | 0 | 0 | 0 | 0 | 0.119217 | 1 | 0.012456 | false | 0 | 0.014235 | 0 | 0.02847 | 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 |