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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ef358fa4e7630a72409eb6ee3de60100962aa436 | 553 | py | Python | src/services/monolithic/hardware_abstraction/pin.py | IAPark/PITherm | a334cb0843b1961997aa90e45671d556be91380f | [
"MIT"
] | null | null | null | src/services/monolithic/hardware_abstraction/pin.py | IAPark/PITherm | a334cb0843b1961997aa90e45671d556be91380f | [
"MIT"
] | null | null | null | src/services/monolithic/hardware_abstraction/pin.py | IAPark/PITherm | a334cb0843b1961997aa90e45671d556be91380f | [
"MIT"
] | null | null | null | import RPi.GPIO as GPIO
class Pin:
def __init__(self, pin_id):
self.pin_id = pin_id
self.state = Off
GPIO.setmode(GPIO.BCM)
def sense(self):
GPIO.setup(self.pin_id, GPIO.IN)
output = GPIO.input(self.pin_id)
self.state = output
return output
def set... | 20.481481 | 41 | 0.584087 | 77 | 553 | 4.051948 | 0.337662 | 0.112179 | 0.173077 | 0.083333 | 0.141026 | 0.141026 | 0 | 0 | 0 | 0 | 0 | 0 | 0.311031 | 553 | 26 | 42 | 21.269231 | 0.818898 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.05 | 0.05 | 0.45 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ef399810f67c8c6294e69631ce59a5bfc6fc474d | 407 | py | Python | signature/signature_examples.py | hughluo/py_metaprogramming | 7370e337c3bab7d541e36cbf58ee3b5b4c9aa909 | [
"MIT"
] | 2 | 2020-02-11T14:20:52.000Z | 2020-02-13T11:08:24.000Z | signature/signature_examples.py | hughluo/py_metaprogramming | 7370e337c3bab7d541e36cbf58ee3b5b4c9aa909 | [
"MIT"
] | null | null | null | signature/signature_examples.py | hughluo/py_metaprogramming | 7370e337c3bab7d541e36cbf58ee3b5b4c9aa909 | [
"MIT"
] | null | null | null | from signature import Structure, add_signature
class SpamTheOldWay:
def __init__(self, name, price):
self.name = name
self.price = price
@add_signature("name", "price")
class Spam(Structure):
pass
if __name__ == "__main__":
spam_0 = Spam(price=0.618, name="wexort")
print(spam_0.nam... | 20.35 | 46 | 0.665848 | 57 | 407 | 4.403509 | 0.403509 | 0.059761 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037152 | 0.206388 | 407 | 19 | 47 | 21.421053 | 0.739938 | 0 | 0 | 0 | 0 | 0 | 0.07371 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0.076923 | 0.076923 | 0 | 0.307692 | 0.153846 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
ef3c0bdd6ccd266d0e643cb7eb26441d96526821 | 3,883 | py | Python | library_test.py | tdd-laboratory/tdd-homework-tsaicharit | 3b196d8735c503a662ac351225253ad62a10a0f7 | [
"Apache-2.0"
] | null | null | null | library_test.py | tdd-laboratory/tdd-homework-tsaicharit | 3b196d8735c503a662ac351225253ad62a10a0f7 | [
"Apache-2.0"
] | null | null | null | library_test.py | tdd-laboratory/tdd-homework-tsaicharit | 3b196d8735c503a662ac351225253ad62a10a0f7 | [
"Apache-2.0"
] | null | null | null | import unittest
import library
NUM_CORPUS = '''
On the 5th of May every year, Mexicans celebrate Cinco de Mayo. This tradition
began in 1845 (the twenty-second anniversary of the Mexican Revolution), and
is the 1st example of a national independence holiday becoming popular in the
Western Hemisphere. (The Fourth of Ju... | 44.125 | 119 | 0.688128 | 607 | 3,883 | 4.273476 | 0.270181 | 0.090208 | 0.09175 | 0.137625 | 0.54549 | 0.53431 | 0.493446 | 0.434464 | 0.396299 | 0.296839 | 0 | 0.143227 | 0.205254 | 3,883 | 87 | 120 | 44.632184 | 0.697343 | 0.219933 | 0 | 0.04 | 0 | 0 | 0.343293 | 0 | 0 | 0 | 0 | 0 | 0.38 | 1 | 0.36 | false | 0 | 0.04 | 0 | 0.42 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ef47e0a687766bed500068ef7bfedba0aeb685c2 | 3,787 | py | Python | gwide/gwideHittable.py | tturowski/gwide | 32ab0168fba15fa1ad904639057d90014448f821 | [
"Apache-2.0"
] | 7 | 2015-11-06T16:18:12.000Z | 2021-04-16T09:43:50.000Z | gwide/gwideHittable.py | tturowski/gwide | 32ab0168fba15fa1ad904639057d90014448f821 | [
"Apache-2.0"
] | null | null | null | gwide/gwideHittable.py | tturowski/gwide | 32ab0168fba15fa1ad904639057d90014448f821 | [
"Apache-2.0"
] | 1 | 2020-06-26T18:58:48.000Z | 2020-06-26T18:58:48.000Z | #!/usr/bin/env python
import os, argparse
from argparse import RawTextHelpFormatter
import gwide.methods as gtm
import gwide.Classes.HittableClass as ghc
def hittable():
## option parser
usage = "For more options type -h"
description = "Downstream analysis on hittables crated by pyReadCounter. Chose type o... | 75.74 | 266 | 0.689464 | 467 | 3,787 | 5.464668 | 0.340471 | 0.064655 | 0.039969 | 0.043103 | 0.12931 | 0.058777 | 0.034483 | 0 | 0 | 0 | 0 | 0 | 0.200158 | 3,787 | 50 | 267 | 75.74 | 0.842522 | 0.06179 | 0 | 0 | 0 | 0.081081 | 0.384529 | 0.006776 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.108108 | null | null | 0.081081 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ef4aa212aa84c6ca653b1e05b356703cf931cee1 | 661 | py | Python | eufy_security_ws_python/model/version.py | bachya/eufy-security-ws-python | ad3af889f9cd46e1edf183b36ac5ceec07beb15e | [
"MIT"
] | 20 | 2021-05-17T15:44:30.000Z | 2021-08-04T01:07:38.000Z | eufy_security_ws_python/model/version.py | bachya/eufy-security-ws-python | ad3af889f9cd46e1edf183b36ac5ceec07beb15e | [
"MIT"
] | 6 | 2021-07-12T18:25:12.000Z | 2022-01-15T16:42:17.000Z | eufy_security_ws_python/model/version.py | bachya/eufy-security-ws-python | ad3af889f9cd46e1edf183b36ac5ceec07beb15e | [
"MIT"
] | null | null | null | """Define utilities related to eufy-websocket-ws versions."""
from dataclasses import dataclass
@dataclass
class VersionInfo:
"""Define the server's version info."""
driver_version: str
server_version: str
min_schema_version: int
max_schema_version: int
@classmethod
def from_message(cls,... | 28.73913 | 62 | 0.662632 | 74 | 661 | 5.743243 | 0.567568 | 0.122353 | 0.075294 | 0.089412 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003937 | 0.231467 | 661 | 22 | 63 | 30.045455 | 0.832677 | 0.199697 | 0 | 0 | 0 | 0 | 0.134503 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.066667 | 0 | 0.533333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
ef5026853f9f08e1c1501e4305c862f1ab1be6bd | 4,670 | py | Python | machine_replacement.py | dsbrown1331/broil | 3c06e15c560db3242c0e331a2b16cc578a843606 | [
"MIT"
] | 1 | 2021-03-29T09:53:53.000Z | 2021-03-29T09:53:53.000Z | machine_replacement.py | dsbrown1331/broil | 3c06e15c560db3242c0e331a2b16cc578a843606 | [
"MIT"
] | 1 | 2020-11-22T15:05:48.000Z | 2020-11-25T00:10:17.000Z | machine_replacement.py | dsbrown1331/broil | 3c06e15c560db3242c0e331a2b16cc578a843606 | [
"MIT"
] | null | null | null | import bayesian_irl
import mdp_worlds
import utils
import mdp
import numpy as np
import scipy
import random
import generate_efficient_frontier
import matplotlib.pyplot as plt
def generate_reward_sample():
#rewards for no-op are gamma distributed
r_noop = []
locs = 1/2
scales = [20, 40, 80,190]
... | 34.087591 | 138 | 0.662313 | 701 | 4,670 | 4.208274 | 0.269615 | 0.026441 | 0.035254 | 0.015254 | 0.267797 | 0.182712 | 0.160339 | 0.160339 | 0.160339 | 0.145424 | 0 | 0.035377 | 0.207066 | 4,670 | 136 | 139 | 34.338235 | 0.761275 | 0.118201 | 0 | 0.021277 | 1 | 0 | 0.10616 | 0.016801 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021277 | false | 0 | 0.095745 | 0 | 0.138298 | 0.170213 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ef50e4e797fb6058ba487fe6931a7788bfc33b0e | 382 | py | Python | example_code/python_scripts/get_most_recent_sentiment_by_symbol.py | khmurakami/pystocktwits_data_utils | 0aa1b550ca654b70a6574095440664a8af9797ba | [
"MIT"
] | 4 | 2021-04-01T04:26:59.000Z | 2022-03-04T03:31:00.000Z | example_code/python_scripts/get_most_recent_sentiment_by_symbol.py | khmurakami/pystocktwits_data_utils | 0aa1b550ca654b70a6574095440664a8af9797ba | [
"MIT"
] | null | null | null | example_code/python_scripts/get_most_recent_sentiment_by_symbol.py | khmurakami/pystocktwits_data_utils | 0aa1b550ca654b70a6574095440664a8af9797ba | [
"MIT"
] | 1 | 2021-10-06T06:27:20.000Z | 2021-10-06T06:27:20.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from pystocktwits_data_utils import PyStockTwitData
from pystocktwits_data_utils.utils import return_json_file
data = PyStockTwitData()
recent_msg = data.get_most_recent_sentiment_by_symbol_id('AAPL')
print(recent_msg)
return_json_file(recent_msg,
"../... | 25.466667 | 82 | 0.78534 | 53 | 382 | 5.207547 | 0.528302 | 0.097826 | 0.144928 | 0.181159 | 0.217391 | 0.217391 | 0 | 0 | 0 | 0 | 0 | 0.002976 | 0.120419 | 382 | 14 | 83 | 27.285714 | 0.818452 | 0.109948 | 0 | 0 | 0 | 0 | 0.195266 | 0.183432 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ef550b3895c81eef829ff53ad8affb42466af60b | 2,189 | py | Python | emmet/abbreviation/tokenizer/tokens.py | jingyuexing/py-emmet | e3b1ecb875e0067fc9ef4f4479c7a8d4646aaa11 | [
"MIT"
] | 29 | 2019-11-12T16:15:15.000Z | 2022-02-06T10:51:25.000Z | emmet/abbreviation/tokenizer/tokens.py | jingyuexing/py-emmet | e3b1ecb875e0067fc9ef4f4479c7a8d4646aaa11 | [
"MIT"
] | 3 | 2020-04-25T11:02:53.000Z | 2021-11-25T10:39:09.000Z | emmet/abbreviation/tokenizer/tokens.py | jingyuexing/py-emmet | e3b1ecb875e0067fc9ef4f4479c7a8d4646aaa11 | [
"MIT"
] | 7 | 2020-04-25T09:42:54.000Z | 2021-02-16T20:29:41.000Z | class Token:
__slots__ = ('start', 'end')
def __init__(self, start: int=None, end: int=None):
self.start = start
self.end = end
@property
def type(self):
"Type of current token"
return self.__class__.__name__
def to_json(self):
return dict([(k, self.__getat... | 27.024691 | 116 | 0.613979 | 260 | 2,189 | 4.7 | 0.215385 | 0.07365 | 0.081015 | 0.104746 | 0.106383 | 0.106383 | 0.106383 | 0.055646 | 0 | 0 | 0 | 0.001211 | 0.245774 | 2,189 | 80 | 117 | 27.3625 | 0.738946 | 0.009593 | 0 | 0.084746 | 0 | 0 | 0.055276 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.186441 | false | 0.016949 | 0 | 0.016949 | 0.542373 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
ef56dc2bc0ca23727f85a9c2e102503929202296 | 2,582 | py | Python | ui/gui.py | AivGitHub/clutcher | 4e4bb6bebe3c807aeaa360abc7da76b977979d7c | [
"MIT"
] | null | null | null | ui/gui.py | AivGitHub/clutcher | 4e4bb6bebe3c807aeaa360abc7da76b977979d7c | [
"MIT"
] | null | null | null | ui/gui.py | AivGitHub/clutcher | 4e4bb6bebe3c807aeaa360abc7da76b977979d7c | [
"MIT"
] | null | null | null | from concurrent.futures import ThreadPoolExecutor
import pathlib
from PyQt5.QtWidgets import QMainWindow, QMessageBox, QFileDialog
import threading
from clutcher import settings
from torrent.structure.torrent import Torrent
from ui.generated import Ui_MainFrame
class MainFrame(QMainWindow, Ui_MainFrame):
def __i... | 33.102564 | 107 | 0.619675 | 281 | 2,582 | 5.55516 | 0.412811 | 0.040359 | 0.024984 | 0.042281 | 0.092249 | 0.092249 | 0.092249 | 0.092249 | 0.092249 | 0.092249 | 0 | 0.00107 | 0.276143 | 2,582 | 77 | 108 | 33.532468 | 0.834136 | 0.041828 | 0 | 0.142857 | 0 | 0 | 0.093522 | 0.019838 | 0 | 0 | 0 | 0.012987 | 0 | 1 | 0.107143 | false | 0.017857 | 0.125 | 0 | 0.267857 | 0.017857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ef5841cb3965f19fe69fc3dac8552b24ccf3764d | 2,741 | py | Python | h/h_api/bulk_api/model/data_body.py | kevinjalbert/h | 0f260bf59847f27eff720eeb3c3b2468571412b2 | [
"BSD-2-Clause"
] | null | null | null | h/h_api/bulk_api/model/data_body.py | kevinjalbert/h | 0f260bf59847f27eff720eeb3c3b2468571412b2 | [
"BSD-2-Clause"
] | null | null | null | h/h_api/bulk_api/model/data_body.py | kevinjalbert/h | 0f260bf59847f27eff720eeb3c3b2468571412b2 | [
"BSD-2-Clause"
] | null | null | null | """Models representing the data modifying payloads."""
from h.h_api.enums import DataType
from h.h_api.model.json_api import JSONAPIData
from h.h_api.schema import Schema
class UpsertBody(JSONAPIData):
data_type = None
query_fields = []
@classmethod
def create(cls, attributes, id_reference):
... | 28.257732 | 85 | 0.6027 | 322 | 2,741 | 5 | 0.270186 | 0.034783 | 0.039752 | 0.01677 | 0.207453 | 0.207453 | 0.175776 | 0.175776 | 0.142857 | 0.084472 | 0 | 0 | 0.277271 | 2,741 | 96 | 86 | 28.552083 | 0.812721 | 0.219993 | 0 | 0.132075 | 0 | 0 | 0.116567 | 0.065972 | 0 | 0 | 0 | 0 | 0 | 1 | 0.113208 | false | 0 | 0.056604 | 0 | 0.528302 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
ef64db586a08e6287c249195d43412594f972437 | 1,452 | py | Python | Part 5 - Association Rule Learning/Section 28 - Apriori/Apriori_Python/apriori.py | xavialex/Machine-Learning-Templates | 7973980637747d0277a90b735db00f0e81fae7a9 | [
"MIT"
] | 1 | 2021-07-02T15:53:22.000Z | 2021-07-02T15:53:22.000Z | Part 5 - Association Rule Learning/Section 28 - Apriori/Apriori_Python/apriori.py | xavialex/Machine-Learning-Templates | 7973980637747d0277a90b735db00f0e81fae7a9 | [
"MIT"
] | null | null | null | Part 5 - Association Rule Learning/Section 28 - Apriori/Apriori_Python/apriori.py | xavialex/Machine-Learning-Templates | 7973980637747d0277a90b735db00f0e81fae7a9 | [
"MIT"
] | null | null | null | # Apriori
# Importing the libraries
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
# Data Preprocessing
dataset = pd.read_csv('Market_Basket_Optimisation.csv', header = None) # Se especifica el header = None para no perder la primera línea
# Conversión del dataset a una lista de listas
transac... | 48.4 | 172 | 0.770661 | 243 | 1,452 | 4.559671 | 0.567901 | 0.027076 | 0.01444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026556 | 0.17011 | 1,452 | 29 | 173 | 50.068966 | 0.892946 | 0.665978 | 0 | 0 | 0 | 0 | 0.063966 | 0.063966 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.363636 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
3226a582325592e0ee759fe217dea0f46370c8d1 | 561 | py | Python | isic/core/models/base.py | ImageMarkup/isic | 607b2b103d0d2a67adb61f8ea88f1461c85ec8f3 | [
"Apache-2.0"
] | null | null | null | isic/core/models/base.py | ImageMarkup/isic | 607b2b103d0d2a67adb61f8ea88f1461c85ec8f3 | [
"Apache-2.0"
] | 18 | 2021-06-10T05:14:34.000Z | 2022-03-22T02:15:59.000Z | isic/core/models/base.py | ImageMarkup/isic | 607b2b103d0d2a67adb61f8ea88f1461c85ec8f3 | [
"Apache-2.0"
] | null | null | null | from django.db import models
from django_extensions.db.fields import CreationDateTimeField
from django_extensions.db.models import TimeStampedModel
class CreationSortedTimeStampedModel(TimeStampedModel):
class Meta(TimeStampedModel.Meta):
abstract = True
ordering = ['-created']
get_latest_... | 26.714286 | 61 | 0.71836 | 68 | 561 | 5.794118 | 0.426471 | 0.060914 | 0.045685 | 0.060914 | 0.076142 | 0.076142 | 0 | 0 | 0 | 0 | 0 | 0.008696 | 0.180036 | 561 | 20 | 62 | 28.05 | 0.847826 | 0.048128 | 0 | 0 | 0 | 0 | 0.092105 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.230769 | 0 | 0.769231 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
32292816ddefb131f18f977a5701bfc65c0eecc4 | 3,866 | py | Python | build/manage.py | abrahamrhoffman/archangel | b1cf21cf6daeebe820704371e594c856a95d6e62 | [
"Apache-2.0"
] | null | null | null | build/manage.py | abrahamrhoffman/archangel | b1cf21cf6daeebe820704371e594c856a95d6e62 | [
"Apache-2.0"
] | null | null | null | build/manage.py | abrahamrhoffman/archangel | b1cf21cf6daeebe820704371e594c856a95d6e62 | [
"Apache-2.0"
] | null | null | null | import configparser
import subprocess
import argparse
import shutil
import base64
import glob
import sys
import os
import promote
class Manage(object):
def __init__(self, image, verbose=False):
self.init_feedback()
self.verbose = verbose
self.devnull = open(os.devnull, "w")
self.... | 30.928 | 70 | 0.535437 | 382 | 3,866 | 5.287958 | 0.251309 | 0.053465 | 0.050495 | 0.047525 | 0.406436 | 0.371782 | 0.208911 | 0.156436 | 0.156436 | 0.156436 | 0 | 0.009604 | 0.326694 | 3,866 | 124 | 71 | 31.177419 | 0.766423 | 0 | 0 | 0.296296 | 0 | 0 | 0.139938 | 0.020176 | 0 | 0 | 0 | 0 | 0 | 1 | 0.092593 | false | 0.055556 | 0.083333 | 0 | 0.185185 | 0.046296 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
322dfd55cfae846f9e87ae758fd5d7305a279e23 | 859 | py | Python | tests/test_mappedPayload.py | gertschreuder/kinesis-consumer | cfd0dc4fb2ae98f4b54838d390cea0488bbbb975 | [
"MIT"
] | null | null | null | tests/test_mappedPayload.py | gertschreuder/kinesis-consumer | cfd0dc4fb2ae98f4b54838d390cea0488bbbb975 | [
"MIT"
] | 1 | 2021-02-10T11:06:38.000Z | 2021-02-10T11:06:38.000Z | tests/test_mappedPayload.py | gertschreuder/kinesis-consumer | cfd0dc4fb2ae98f4b54838d390cea0488bbbb975 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# coding=utf-8
import json
import os
import sys
import unittest
from src.utils.payloadHelper import PayloadHelper
class MappedPayloadTests(unittest.TestCase):
def setUp(self):
pass
def test_hartbeat(self):
script_dir = os.path.dirname(__file__)
rel_path = 'dat... | 23.216216 | 58 | 0.665891 | 102 | 859 | 5.401961 | 0.568627 | 0.072595 | 0.039927 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003077 | 0.243306 | 859 | 36 | 59 | 23.861111 | 0.844615 | 0.039581 | 0 | 0.083333 | 0 | 0 | 0.049818 | 0.040097 | 0 | 0 | 0 | 0 | 0.083333 | 1 | 0.125 | false | 0.083333 | 0.208333 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
322f3ab9bb8c46d4cec387a09278d320f078bf68 | 1,859 | py | Python | api/letterjam/word.py | arnehuang/letterjam | 29bd50059c8c783f12dc52075c14cb440c51ee2a | [
"MIT"
] | null | null | null | api/letterjam/word.py | arnehuang/letterjam | 29bd50059c8c783f12dc52075c14cb440c51ee2a | [
"MIT"
] | null | null | null | api/letterjam/word.py | arnehuang/letterjam | 29bd50059c8c783f12dc52075c14cb440c51ee2a | [
"MIT"
] | null | null | null | import random
import string
from .player import Player
# from flask import current_app
# from flask_socketio import SocketIO, emit
# socketio = SocketIO(current_app)
# logger = current_app.logger
class Word:
def __init__(self, word: str, player: Player, guesser: Player = None):
self.word = word.upper()
... | 33.8 | 125 | 0.62184 | 242 | 1,859 | 4.615702 | 0.338843 | 0.059087 | 0.053715 | 0.039391 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008989 | 0.281872 | 1,859 | 54 | 126 | 34.425926 | 0.827715 | 0.239376 | 0 | 0.054054 | 0 | 0 | 0.019986 | 0 | 0 | 0 | 0 | 0.018519 | 0 | 1 | 0.162162 | false | 0 | 0.081081 | 0.027027 | 0.378378 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
32392e03436c2c8ba2194cda24831e3b90622a29 | 2,371 | py | Python | mass_flask_webui/context_processors.py | mass-project/mass_server | a785629ec9e74edfc039fa33727cc094cc1b7763 | [
"MIT"
] | 8 | 2017-03-15T20:04:23.000Z | 2021-02-11T02:57:58.000Z | mass_flask_webui/context_processors.py | mass-project/mass_server | a785629ec9e74edfc039fa33727cc094cc1b7763 | [
"MIT"
] | 100 | 2016-09-20T14:02:22.000Z | 2019-10-23T00:49:38.000Z | mass_flask_webui/context_processors.py | mass-project/mass_server | a785629ec9e74edfc039fa33727cc094cc1b7763 | [
"MIT"
] | 3 | 2018-01-19T12:57:46.000Z | 2018-12-28T00:53:46.000Z | from flask import current_app, render_template, url_for
from markupsafe import Markup
from mass_flask_core.models import FileSample, IPSample, DomainSample, URISample, ExecutableBinarySample, UserLevel
from mass_flask_webui.config import webui_blueprint
@webui_blueprint.context_processor
def sample_processors():
... | 31.197368 | 115 | 0.664277 | 271 | 2,371 | 5.568266 | 0.250923 | 0.083499 | 0.043075 | 0.059642 | 0.337972 | 0.191518 | 0.098078 | 0.05169 | 0 | 0 | 0 | 0 | 0.243357 | 2,371 | 75 | 116 | 31.613333 | 0.841137 | 0 | 0 | 0.131148 | 0 | 0 | 0.110502 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.163934 | false | 0 | 0.065574 | 0.065574 | 0.540984 | 0.065574 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
324263ed2831f79333c7843933bd12caeedef5a1 | 982 | py | Python | 2018/03/intact.py | jhnesk/advent-of-code | 21a57187ab6f66e5b223ced40ee8c591c51fc360 | [
"Unlicense"
] | null | null | null | 2018/03/intact.py | jhnesk/advent-of-code | 21a57187ab6f66e5b223ced40ee8c591c51fc360 | [
"Unlicense"
] | null | null | null | 2018/03/intact.py | jhnesk/advent-of-code | 21a57187ab6f66e5b223ced40ee8c591c51fc360 | [
"Unlicense"
] | null | null | null | #!/usr/bin/env python3.7
import sys
lines = [claim.rstrip('\n') for claim in open(sys.argv[1])]
canvas = [[0 for x in range(1000)] for y in range(1000)]
for claim in lines:
x = int(claim.split(' ')[2].split(',')[0])
y = int(claim.split(' ')[2].split(',')[1][:-1])
a = int(claim.split(' ')[3].split('x')[0]... | 30.6875 | 59 | 0.510183 | 163 | 982 | 3.07362 | 0.269939 | 0.179641 | 0.207585 | 0.111776 | 0.459082 | 0.459082 | 0.459082 | 0.459082 | 0.459082 | 0.459082 | 0 | 0.046322 | 0.252546 | 982 | 31 | 60 | 31.677419 | 0.63624 | 0.060081 | 0 | 0.56 | 0 | 0 | 0.02063 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.04 | 0 | 0.16 | 0.04 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3248a856e34f81e70134afac68e2093bb3b73cf2 | 376 | py | Python | get_random_quote/migrations/0017_auto_20200525_0235.py | helloprash/birthday | f4cfe0214cb19eb3efaa2d659bd94ace9c5ce7ab | [
"bzip2-1.0.6"
] | null | null | null | get_random_quote/migrations/0017_auto_20200525_0235.py | helloprash/birthday | f4cfe0214cb19eb3efaa2d659bd94ace9c5ce7ab | [
"bzip2-1.0.6"
] | null | null | null | get_random_quote/migrations/0017_auto_20200525_0235.py | helloprash/birthday | f4cfe0214cb19eb3efaa2d659bd94ace9c5ce7ab | [
"bzip2-1.0.6"
] | null | null | null | # Generated by Django 3.0.3 on 2020-05-24 21:05
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('get_random_quote', '0016_auto_20200525_0146'),
]
operations = [
migrations.RenameField(
model_name='quote',
old_name='photo'... | 19.789474 | 56 | 0.598404 | 42 | 376 | 5.142857 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116541 | 0.292553 | 376 | 18 | 57 | 20.888889 | 0.695489 | 0.119681 | 0 | 0 | 1 | 0 | 0.18541 | 0.069909 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
32498c7f0f68f7b9336b207e2fa855abf2b41c58 | 350 | py | Python | selenium_pipeline/screenshot_with_sel.py | Praneethvvs/CircleCi_FastApi | 0aec14fcffcfe7053cf7db688728347feea26f70 | [
"MIT"
] | null | null | null | selenium_pipeline/screenshot_with_sel.py | Praneethvvs/CircleCi_FastApi | 0aec14fcffcfe7053cf7db688728347feea26f70 | [
"MIT"
] | null | null | null | selenium_pipeline/screenshot_with_sel.py | Praneethvvs/CircleCi_FastApi | 0aec14fcffcfe7053cf7db688728347feea26f70 | [
"MIT"
] | null | null | null | from time import sleep
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
from selenium import webdriver
sleep(5)
def screenshot_main():
driver = webdriver.Remote("http://:4444/wd/hub",desired_capabilities=DesiredCapabilities.CHROME)
driver.get("https://python.org")
driver.sav... | 31.818182 | 100 | 0.794286 | 42 | 350 | 6.52381 | 0.642857 | 0.087591 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015823 | 0.097143 | 350 | 11 | 101 | 31.818182 | 0.851266 | 0 | 0 | 0 | 0 | 0 | 0.145299 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
324e47368697745ffcd8cd5a72b2ab4935b044e8 | 758 | py | Python | PiGPIO/migrations/0007_programlog.py | girisandeep/Django-PiGPIO | 8503407288d780957d4fb00689f2619c931da0ce | [
"MIT"
] | 8 | 2019-04-11T17:04:02.000Z | 2021-10-05T03:31:40.000Z | PiGPIO/migrations/0007_programlog.py | girisandeep/Django-PiGPIO | 8503407288d780957d4fb00689f2619c931da0ce | [
"MIT"
] | 3 | 2019-04-10T21:25:42.000Z | 2019-04-16T21:19:13.000Z | PiGPIO/migrations/0007_programlog.py | girisandeep/Django-PiGPIO | 8503407288d780957d4fb00689f2619c931da0ce | [
"MIT"
] | 1 | 2020-10-11T00:02:45.000Z | 2020-10-11T00:02:45.000Z | # Generated by Django 2.1.7 on 2019-03-25 23:17
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('PiGPIO', '0006_program_logging'),
]
operations = [
migrations.CreateModel(
name='ProgramLog',
... | 31.583333 | 114 | 0.610818 | 82 | 758 | 5.52439 | 0.695122 | 0.05298 | 0.06181 | 0.09713 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038801 | 0.251979 | 758 | 23 | 115 | 32.956522 | 0.760141 | 0.059367 | 0 | 0 | 1 | 0 | 0.106892 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.117647 | 0 | 0.294118 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
325c47cae32d290db0fb0bf1d98915d3183ba325 | 4,469 | py | Python | assets/nurses_2/widgets/_root.py | Reverend-Toady/Duck-Builder | 113a1c1032a8fbb004f6a917e606328bb297187b | [
"MIT"
] | 1 | 2022-02-11T17:19:11.000Z | 2022-02-11T17:19:11.000Z | assets/nurses_2/widgets/_root.py | Reverend-Toady/Duck-Builder | 113a1c1032a8fbb004f6a917e606328bb297187b | [
"MIT"
] | null | null | null | assets/nurses_2/widgets/_root.py | Reverend-Toady/Duck-Builder | 113a1c1032a8fbb004f6a917e606328bb297187b | [
"MIT"
] | null | null | null | import numpy as np
from ..colors import Color
from .widget import Widget, overlapping_region
from .widget_data_structures import Point, Size, Rect
class _Root(Widget):
"""
Root widget. Meant to be instantiated by the `App` class. Renders to terminal.
"""
def __init__(self, app, env_out, default_char,... | 29.596026 | 107 | 0.609756 | 570 | 4,469 | 4.584211 | 0.278947 | 0.022962 | 0.026789 | 0.022962 | 0.197474 | 0.088021 | 0.052813 | 0.052813 | 0.029085 | 0 | 0 | 0.009718 | 0.286194 | 4,469 | 150 | 108 | 29.793333 | 0.809404 | 0.162452 | 0 | 0.223404 | 0 | 0 | 0.018207 | 0.013241 | 0 | 0 | 0 | 0 | 0 | 1 | 0.159574 | false | 0 | 0.042553 | 0.106383 | 0.319149 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
3278af30305957ac0787aae83c424871ca629fda | 234 | py | Python | grocercheck/scripts/lazy_coding_scripts/generateCodeForModel.py | andy0liang/GrocerCheck | 1d056fd3fb2fa9bd098722fc715109c5f02df1fc | [
"MIT"
] | null | null | null | grocercheck/scripts/lazy_coding_scripts/generateCodeForModel.py | andy0liang/GrocerCheck | 1d056fd3fb2fa9bd098722fc715109c5f02df1fc | [
"MIT"
] | null | null | null | grocercheck/scripts/lazy_coding_scripts/generateCodeForModel.py | andy0liang/GrocerCheck | 1d056fd3fb2fa9bd098722fc715109c5f02df1fc | [
"MIT"
] | null | null | null | days = ["mon",'tue','wed','thu','fri','sat','sun']
for day in days:
for i in range(0,24):
if(i<10):
i = '0'+str(i)
else:
i = str(i)
print(day+i+' = models.IntegerField(null=True)')
| 23.4 | 56 | 0.452991 | 36 | 234 | 2.944444 | 0.666667 | 0.075472 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037736 | 0.320513 | 234 | 9 | 57 | 26 | 0.628931 | 0 | 0 | 0 | 0 | 0 | 0.235043 | 0.128205 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
32805f4c803a36434603ff6c738e79d17936ded4 | 614 | py | Python | pyaaf/__init__.py | markreidvfx/pyaaf_old | 8d8a71aaefe3bd2bcb941d73e43e383cdfcf6d76 | [
"MIT"
] | 2 | 2015-03-28T08:25:20.000Z | 2015-11-23T01:19:41.000Z | pyaaf/__init__.py | DIT-Tools/pyaaf | f2059dbcaf4cf1be445347e671fca626085a3a70 | [
"MIT"
] | 1 | 2016-10-23T04:06:25.000Z | 2016-10-23T04:06:25.000Z | pyaaf/__init__.py | markreidvfx/pyaaf_old | 8d8a71aaefe3bd2bcb941d73e43e383cdfcf6d76 | [
"MIT"
] | null | null | null | from core import *
import core
def Initialize():
"""
find libcom-api and initialize
"""
import os
import sys
dirname = os.path.dirname(__file__)
ext = '.so'
if sys.platform == 'darwin':
ext = '.dylib'
elif sys.platform.startswith("win"):
ext = '.dll'
... | 19.1875 | 80 | 0.618893 | 79 | 614 | 4.594937 | 0.455696 | 0.055096 | 0.121212 | 0.071625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.260586 | 614 | 32 | 81 | 19.1875 | 0.799559 | 0.04886 | 0 | 0 | 0 | 0 | 0.101933 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.368421 | 0 | 0.473684 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
328400a92bdea4d5a22553f65258b90ef1827eca | 1,248 | py | Python | checkov/terraform/checks/resource/oci/IAMPasswordLength.py | jamesholland-uk/checkov | d73fd4bd7096d48ab3434a92a177bcc55605460a | [
"Apache-2.0"
] | 1 | 2021-02-13T15:24:42.000Z | 2021-02-13T15:24:42.000Z | checkov/terraform/checks/resource/oci/IAMPasswordLength.py | jamesholland-uk/checkov | d73fd4bd7096d48ab3434a92a177bcc55605460a | [
"Apache-2.0"
] | 7 | 2021-04-12T06:54:07.000Z | 2022-03-21T14:04:14.000Z | checkov/terraform/checks/resource/oci/IAMPasswordLength.py | jamesholland-uk/checkov | d73fd4bd7096d48ab3434a92a177bcc55605460a | [
"Apache-2.0"
] | 1 | 2021-12-16T03:09:55.000Z | 2021-12-16T03:09:55.000Z | from checkov.common.models.enums import CheckCategories, CheckResult
from checkov.terraform.checks.resource.base_resource_check import BaseResourceCheck
class IAMPasswordLength(BaseResourceCheck):
def __init__(self):
name = "OCI IAM password policy for local (non-federated) users has a minimum length of 1... | 46.222222 | 110 | 0.689103 | 132 | 1,248 | 6.272727 | 0.462121 | 0.084541 | 0.076087 | 0.060386 | 0.171498 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009375 | 0.230769 | 1,248 | 26 | 111 | 48 | 0.853125 | 0 | 0 | 0.136364 | 0 | 0 | 0.213942 | 0.095353 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0.5 | 0.090909 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
3286f747dd670f85a673ce7bbdf5da097e1d0066 | 353 | py | Python | giggleliu/tba/hgen/setup.py | Lynn-015/Test_01 | 88be712b2d17603f7a3c38836dabe8dbdee2aba3 | [
"MIT"
] | 2 | 2015-11-12T01:11:20.000Z | 2015-11-12T23:32:28.000Z | giggleliu/tba/hgen/setup.py | Lynn-015/Test_01 | 88be712b2d17603f7a3c38836dabe8dbdee2aba3 | [
"MIT"
] | 3 | 2015-10-28T02:25:48.000Z | 2015-11-25T18:21:22.000Z | giggleliu/tba/hgen/setup.py | Lynn-015/NJU_DMRG | 88be712b2d17603f7a3c38836dabe8dbdee2aba3 | [
"MIT"
] | null | null | null | '''
Setup file for Operator and Hamiltonain Generators.
'''
def configuration(parent_package='',top_path=None):
from numpy.distutils.misc_util import Configuration
config=Configuration('hgen',parent_package,top_path)
return config
if __name__ == '__main__':
from numpy.distutils.core import setup
se... | 29.416667 | 56 | 0.767705 | 42 | 353 | 6.142857 | 0.642857 | 0.100775 | 0.124031 | 0.155039 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135977 | 353 | 11 | 57 | 32.090909 | 0.845902 | 0.144476 | 0 | 0 | 0 | 0 | 0.040816 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 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 | 1 | 0 | 0 | 1 |
3287739004e4e3914f28b90e142cdf4566df9f46 | 682 | py | Python | hoodapp/migrations/0014_auto_20220110_1119.py | lizgi/Hood-Watch | ba67e6a113aa137ed1626ea650296f1e8c32084e | [
"MIT"
] | null | null | null | hoodapp/migrations/0014_auto_20220110_1119.py | lizgi/Hood-Watch | ba67e6a113aa137ed1626ea650296f1e8c32084e | [
"MIT"
] | null | null | null | hoodapp/migrations/0014_auto_20220110_1119.py | lizgi/Hood-Watch | ba67e6a113aa137ed1626ea650296f1e8c32084e | [
"MIT"
] | null | null | null | # Generated by Django 3.2.9 on 2022-01-10 08:19
import cloudinary.models
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('hoodapp', '0013_auto_20220110_1102'),
]
operations = [
migrations.AlterModelOptions(
name='post',
o... | 24.357143 | 113 | 0.576246 | 66 | 682 | 5.848485 | 0.712121 | 0.069948 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.07113 | 0.29912 | 682 | 27 | 114 | 25.259259 | 0.736402 | 0.065982 | 0 | 0.238095 | 1 | 0 | 0.113386 | 0.03622 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.095238 | 0 | 0.238095 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3289612db2e2d9764800a2f796c2a53d5345dd7c | 3,953 | py | Python | utils/files_chain.py | syth0le/mat_mod_labs | 9c87e771beb75566bb824e34f4520e8b2ca0a4ce | [
"Apache-2.0"
] | null | null | null | utils/files_chain.py | syth0le/mat_mod_labs | 9c87e771beb75566bb824e34f4520e8b2ca0a4ce | [
"Apache-2.0"
] | null | null | null | utils/files_chain.py | syth0le/mat_mod_labs | 9c87e771beb75566bb824e34f4520e8b2ca0a4ce | [
"Apache-2.0"
] | null | null | null | from abc import ABCMeta, abstractmethod
from typing import Optional
import json
def error_catcher(method):
def wrapper(*args, **kwargs):
try:
return method(*args, **kwargs)
except (AttributeError, ValueError):
return "File error: указан неверный тип файла."
return wrapp... | 26.353333 | 85 | 0.573741 | 460 | 3,953 | 4.665217 | 0.221739 | 0.078751 | 0.071761 | 0.035415 | 0.62069 | 0.589003 | 0.589003 | 0.589003 | 0.589003 | 0.589003 | 0 | 0.004013 | 0.306603 | 3,953 | 149 | 86 | 26.530201 | 0.778913 | 0.074374 | 0 | 0.646465 | 0 | 0 | 0.041931 | 0.02069 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0.020202 | 0.030303 | 0.060606 | 0.494949 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
328e79a2949d894da0128ec09844978719235aed | 6,100 | py | Python | topboard_sdk/api/topboard/update_comment_pb2.py | easyopsapis/easyops-api-python | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | [
"Apache-2.0"
] | 5 | 2019-07-31T04:11:05.000Z | 2021-01-07T03:23:20.000Z | topboard_sdk/api/topboard/update_comment_pb2.py | easyopsapis/easyops-api-python | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | [
"Apache-2.0"
] | null | null | null | topboard_sdk/api/topboard/update_comment_pb2.py | easyopsapis/easyops-api-python | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: update_comment.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.proto... | 42.361111 | 565 | 0.782459 | 746 | 6,100 | 6.044236 | 0.197051 | 0.035485 | 0.041916 | 0.03371 | 0.531825 | 0.475272 | 0.460191 | 0.454646 | 0.446219 | 0.424928 | 0 | 0.031577 | 0.107049 | 6,100 | 143 | 566 | 42.657343 | 0.796218 | 0.053115 | 0 | 0.563025 | 1 | 0.008403 | 0.207871 | 0.162795 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.067227 | 0 | 0.067227 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
32943eb7a49e42cf272741d5fa0b2d7005b7eebc | 3,892 | py | Python | pyunsplash/tests/test_users.py | mmangione/pyunsplash | c79aff3b0800c71b921b2090dac275247d0c88fc | [
"MIT"
] | 40 | 2018-05-22T15:50:10.000Z | 2022-01-31T10:39:05.000Z | pyunsplash/tests/test_users.py | mmangione/pyunsplash | c79aff3b0800c71b921b2090dac275247d0c88fc | [
"MIT"
] | 13 | 2017-09-13T03:37:42.000Z | 2020-10-20T16:04:08.000Z | pyunsplash/tests/test_users.py | mmangione/pyunsplash | c79aff3b0800c71b921b2090dac275247d0c88fc | [
"MIT"
] | 17 | 2017-01-31T17:30:19.000Z | 2022-02-09T21:59:41.000Z | ###############################################################################
# Copyright (c) 2016 Salvatore Ventura <salvoventura@gmail.com>
#
# File: test_users.py
#
# Author: Salvatore Ventura <salvoventura@gmail.com>
# Date: 14 Dec 2016
# Purpose: users unit tests
#
# Revision: 1
# Comment: W... | 42.304348 | 155 | 0.63926 | 455 | 3,892 | 5.268132 | 0.296703 | 0.08761 | 0.085106 | 0.031289 | 0.566959 | 0.519399 | 0.519399 | 0.519399 | 0.519399 | 0.519399 | 0 | 0.004913 | 0.21557 | 3,892 | 91 | 156 | 42.769231 | 0.780216 | 0.218911 | 0 | 0.559322 | 0 | 0 | 0.151016 | 0.043097 | 0 | 0 | 0 | 0.010989 | 0 | 1 | 0.033898 | false | 0 | 0.084746 | 0 | 0.169492 | 0.033898 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
32a043a01c18ab22f51dfcfea5546430c8a221e7 | 2,956 | py | Python | frameworks/pycellchem-2.0/src/RD/WritePNG.py | danielrcardenas/ac-course-2017 | 515512f27b5fd2ff8693eba1b3d8050b1580ec93 | [
"Apache-2.0"
] | null | null | null | frameworks/pycellchem-2.0/src/RD/WritePNG.py | danielrcardenas/ac-course-2017 | 515512f27b5fd2ff8693eba1b3d8050b1580ec93 | [
"Apache-2.0"
] | null | null | null | frameworks/pycellchem-2.0/src/RD/WritePNG.py | danielrcardenas/ac-course-2017 | 515512f27b5fd2ff8693eba1b3d8050b1580ec93 | [
"Apache-2.0"
] | null | null | null | #---------------------------------------------------------------------------
#
# WritePNG.py: writes compressed, true-color RGBA PNG files
#
# RGBA stands for "Red Green Blue Alpha", where alpha is the opacity level
#
# extracted from:
# http://stackoverflow.com/questions/902761/saving-a-numpy-array-as-an-image
#
# Ori... | 33.977011 | 100 | 0.578484 | 437 | 2,956 | 3.828375 | 0.425629 | 0.019127 | 0.019127 | 0.021518 | 0.040646 | 0.040646 | 0 | 0 | 0 | 0 | 0 | 0.057762 | 0.250338 | 2,956 | 86 | 101 | 34.372093 | 0.697202 | 0.302774 | 0 | 0 | 0 | 0 | 0.072643 | 0 | 0 | 0 | 0.019578 | 0 | 0 | 0 | null | null | 0 | 0.057692 | null | null | 0.038462 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
32a3ca63f86d971507f4ce98351d36a7e448c8ff | 298 | py | Python | training_accuracy.py | Supreme-Sector/Hand-Sign-Detection-Application | b5fcf70de8d2964ee97820c226e052553d8790a1 | [
"MIT"
] | null | null | null | training_accuracy.py | Supreme-Sector/Hand-Sign-Detection-Application | b5fcf70de8d2964ee97820c226e052553d8790a1 | [
"MIT"
] | null | null | null | training_accuracy.py | Supreme-Sector/Hand-Sign-Detection-Application | b5fcf70de8d2964ee97820c226e052553d8790a1 | [
"MIT"
] | null | null | null | import data_loader
import network
import _pickle as cPickle
f=open("neural_network.pickle","rb")
net=cPickle.load(f)
f.close()
training_data, test_data=data_loader.load_data()
num_correct = net.evaluate(training_data)
print("{}/{} correct".format(num_correct, len(training_data)))
| 21.285714 | 63 | 0.744966 | 43 | 298 | 4.906977 | 0.511628 | 0.170616 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.120805 | 298 | 13 | 64 | 22.923077 | 0.805344 | 0 | 0 | 0 | 0 | 0 | 0.126316 | 0.073684 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
32a40eb25efd348445dcb201430e59ffaad45eb8 | 399 | py | Python | online_store/apps/products/migrations/0005_alter_productimage_is_main.py | oocemb/Online_store | d01ca5c8956b552eda9bd242544a34fad9d3038f | [
"Apache-2.0"
] | null | null | null | online_store/apps/products/migrations/0005_alter_productimage_is_main.py | oocemb/Online_store | d01ca5c8956b552eda9bd242544a34fad9d3038f | [
"Apache-2.0"
] | null | null | null | online_store/apps/products/migrations/0005_alter_productimage_is_main.py | oocemb/Online_store | d01ca5c8956b552eda9bd242544a34fad9d3038f | [
"Apache-2.0"
] | null | null | null | # Generated by Django 4.0.2 on 2022-02-23 17:14
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('products', '0004_productimage_is_main'),
]
operations = [
migrations.AlterField(
model_name='productimage',
name='is... | 21 | 53 | 0.611529 | 42 | 399 | 5.690476 | 0.785714 | 0.050209 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065972 | 0.278195 | 399 | 18 | 54 | 22.166667 | 0.763889 | 0.112782 | 0 | 0 | 1 | 0 | 0.147727 | 0.071023 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
32a6e9cabc18c1858828b40d9f8f751a2cfd4c5a | 4,024 | py | Python | gcode_gen/assembly.py | tulth/gcode_gen | d6e276f2074d4fe66755b2ae06c5b4d85583c563 | [
"BSD-3-Clause"
] | null | null | null | gcode_gen/assembly.py | tulth/gcode_gen | d6e276f2074d4fe66755b2ae06c5b4d85583c563 | [
"BSD-3-Clause"
] | null | null | null | gcode_gen/assembly.py | tulth/gcode_gen | d6e276f2074d4fe66755b2ae06c5b4d85583c563 | [
"BSD-3-Clause"
] | null | null | null | from functools import partial
from collections.abc import MutableSequence
from . import base_types
from . import tree
from . import transform
from .state import CncState
from . import point as pt
from . import action
class Assembly(tree.Tree, transform.TransformableMixin):
'''tree of assembly items'''
def __i... | 30.484848 | 93 | 0.604622 | 521 | 4,024 | 4.520154 | 0.195777 | 0.053503 | 0.035669 | 0.016985 | 0.301911 | 0.236093 | 0.213163 | 0.213163 | 0.176645 | 0.176645 | 0 | 0.003444 | 0.27833 | 4,024 | 131 | 94 | 30.717557 | 0.807507 | 0.035537 | 0 | 0.265306 | 0 | 0 | 0.019141 | 0 | 0 | 0 | 0 | 0 | 0.010204 | 1 | 0.234694 | false | 0.020408 | 0.081633 | 0.091837 | 0.479592 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
32a7be0b81d470b2a653a9f4951f22c4e18208b6 | 3,604 | py | Python | locallib/catalog/views.py | joseph-njogu/Django_local_lib | b9483edb203fe54bf2ca0f9cec9aa61942c94ff6 | [
"MIT"
] | null | null | null | locallib/catalog/views.py | joseph-njogu/Django_local_lib | b9483edb203fe54bf2ca0f9cec9aa61942c94ff6 | [
"MIT"
] | 14 | 2019-12-06T09:00:39.000Z | 2022-02-10T07:44:58.000Z | locallib/catalog/views.py | joseph-njogu/Django_local_lib | b9483edb203fe54bf2ca0f9cec9aa61942c94ff6 | [
"MIT"
] | 1 | 2020-05-11T17:40:35.000Z | 2020-05-11T17:40:35.000Z |
from django.shortcuts import render
# # from django.shortcuts import get_object_or_404
# from django.http import HttpResponseRedirect
# from django.urls import reverse
import datetime
from django.contrib.auth.decorators import permission_required
from django.views.generic.edit import CreateView, UpdateView, DeleteVi... | 33.37037 | 99 | 0.708102 | 410 | 3,604 | 6.021951 | 0.317073 | 0.036452 | 0.054678 | 0.090725 | 0.2661 | 0.221547 | 0.143783 | 0.089105 | 0.051033 | 0.051033 | 0 | 0.005594 | 0.206437 | 3,604 | 107 | 100 | 33.682243 | 0.857692 | 0.235572 | 0 | 0.377049 | 0 | 0 | 0.151493 | 0.098046 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016393 | false | 0 | 0.131148 | 0 | 0.819672 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
32a839a75bca5ad62cc665037fabe00a3daa4304 | 7,236 | py | Python | dags/landsat_scenes_sync/landsat_scenes_fill_gaps.py | digitalearthafrica/deafrica-airflow | 2993495671dbf3a6f2dd08dd23c44adcee330493 | [
"Apache-2.0"
] | 1 | 2020-12-08T21:38:02.000Z | 2020-12-08T21:38:02.000Z | dags/landsat_scenes_sync/landsat_scenes_fill_gaps.py | digitalearthafrica/deafrica-airflow | 2993495671dbf3a6f2dd08dd23c44adcee330493 | [
"Apache-2.0"
] | 31 | 2020-06-01T22:55:43.000Z | 2021-08-18T01:03:39.000Z | dags/landsat_scenes_sync/landsat_scenes_fill_gaps.py | digitalearthafrica/deafrica-airflow | 2993495671dbf3a6f2dd08dd23c44adcee330493 | [
"Apache-2.0"
] | 2 | 2020-06-01T23:28:37.000Z | 2021-02-26T05:44:52.000Z | """
# Read report and generate messages to fill missing scenes
#### Utility utilization
The DAG can be parameterized with run time configurations `scenes_limit`, which receives a INT as value.
* The option scenes_limit limit the number of scenes to be read from the report,
therefore limit the number of messages to be... | 30.15 | 104 | 0.629215 | 871 | 7,236 | 4.98163 | 0.273249 | 0.027887 | 0.035262 | 0.019359 | 0.117078 | 0.061304 | 0.045633 | 0.01982 | 0 | 0 | 0 | 0.008519 | 0.286208 | 7,236 | 239 | 105 | 30.276151 | 0.831559 | 0.14649 | 0 | 0.074534 | 1 | 0 | 0.161922 | 0.042784 | 0 | 0 | 0 | 0 | 0 | 1 | 0.024845 | false | 0 | 0.10559 | 0 | 0.142857 | 0.006211 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
32abc502d7e420614c96cbba14e7242b8e8daad8 | 1,104 | py | Python | bouncer/api/views/auth/reset_password.py | ikechuku/bouncer_rest_api | ca3f21a68c445fa3023168d2ecd3b38001554779 | [
"MIT"
] | null | null | null | bouncer/api/views/auth/reset_password.py | ikechuku/bouncer_rest_api | ca3f21a68c445fa3023168d2ecd3b38001554779 | [
"MIT"
] | 8 | 2020-06-05T21:35:47.000Z | 2021-09-22T18:42:45.000Z | bouncer/api/views/auth/reset_password.py | ikechuku/demo-jhipster | e0d0806ee75dccf77eb62b31c4d59c0bf1a7a230 | [
"MIT"
] | null | null | null | from rest_framework import status
from rest_framework.response import Response
from rest_framework.views import APIView
import bcrypt
from ...models.user import User
class ResetPassword(APIView):
def post(self, request):
data = request.data
password = data['password']
token = data['toke... | 33.454545 | 103 | 0.638587 | 128 | 1,104 | 5.40625 | 0.5 | 0.034682 | 0.073699 | 0.054913 | 0.083815 | 0.083815 | 0 | 0 | 0 | 0 | 0 | 0.017391 | 0.270833 | 1,104 | 33 | 104 | 33.454545 | 0.842236 | 0.037138 | 0 | 0 | 0 | 0 | 0.146893 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0.363636 | 0.227273 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
0868eba69748f360807b8ec3f674af34c9559cc1 | 1,718 | py | Python | setup.py | Hasenpfote/malloc_tracer | b7bfea35c2b8e0200f720665ed3392acb9b408fb | [
"MIT"
] | 2 | 2019-07-14T01:11:46.000Z | 2019-07-18T00:22:32.000Z | setup.py | Hasenpfote/malloc_tracer | b7bfea35c2b8e0200f720665ed3392acb9b408fb | [
"MIT"
] | null | null | null | setup.py | Hasenpfote/malloc_tracer | b7bfea35c2b8e0200f720665ed3392acb9b408fb | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import re
from setuptools import setup
# Get version without importing, which avoids dependency issues
def get_version():
with open('malloc_tracer/version.py') as version_file:
return re.search(r"""__version__\s+=\s+(['"])(?P<version>.+?)\1""",
... | 35.061224 | 106 | 0.58149 | 174 | 1,718 | 5.574713 | 0.586207 | 0.117526 | 0.154639 | 0.134021 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013688 | 0.277066 | 1,718 | 48 | 107 | 35.791667 | 0.767311 | 0.061118 | 0 | 0 | 0 | 0 | 0.465217 | 0.054658 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051282 | true | 0 | 0.051282 | 0 | 0.153846 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
086f80efc736f18e235744743d21107568908183 | 1,508 | py | Python | conditions/toy_shop.py | MaggieIllustrations/softuni-github-programming | f5695cb14602f3d2974359f6d8734332acc650d3 | [
"MIT"
] | null | null | null | conditions/toy_shop.py | MaggieIllustrations/softuni-github-programming | f5695cb14602f3d2974359f6d8734332acc650d3 | [
"MIT"
] | null | null | null | conditions/toy_shop.py | MaggieIllustrations/softuni-github-programming | f5695cb14602f3d2974359f6d8734332acc650d3 | [
"MIT"
] | 1 | 2022-01-14T17:12:44.000Z | 2022-01-14T17:12:44.000Z | holiday_price = float(input())
puzzle_count = int(input())
dolls_count = int(input())
teddy_bears_count = int(input())
minions_count = int(input())
trucks_count = int(input())
#
total_price_dolls = dolls_count * 3
total_price_puzzles = puzzle_count * 2.6
total_price_teddy_bears = teddy_bears_count * 4.10
to... | 40.756757 | 97 | 0.69695 | 208 | 1,508 | 4.653846 | 0.206731 | 0.18595 | 0.132231 | 0.095041 | 0.456612 | 0.456612 | 0.456612 | 0.456612 | 0.456612 | 0.456612 | 0 | 0.019459 | 0.21618 | 1,508 | 36 | 98 | 41.888889 | 0.799492 | 0 | 0 | 0.428571 | 0 | 0 | 0.103517 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.114286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0872445b3e1cb93babbc3cb298531dadbdf2b9e6 | 2,122 | py | Python | quiz/users/serializers.py | diego-marcelino/valora-quiz | 3218628a857153449dde47ed52d60bc901e9be0b | [
"MIT"
] | null | null | null | quiz/users/serializers.py | diego-marcelino/valora-quiz | 3218628a857153449dde47ed52d60bc901e9be0b | [
"MIT"
] | 3 | 2022-02-28T11:07:18.000Z | 2022-03-02T11:07:20.000Z | quiz/users/serializers.py | diego-marcelino/valora-quiz | 3218628a857153449dde47ed52d60bc901e9be0b | [
"MIT"
] | null | null | null | from django.contrib.auth import authenticate
from django.contrib.auth import get_user_model
from django.utils.translation import gettext_lazy as _
from rest_framework import serializers
from rest_framework.exceptions import AuthenticationFailed
from rest_framework_simplejwt.tokens import RefreshToken
User = get_user... | 31.671642 | 77 | 0.578228 | 198 | 2,122 | 6.055556 | 0.373737 | 0.025021 | 0.042535 | 0.07256 | 0.23603 | 0.145955 | 0.145955 | 0.145955 | 0.145955 | 0.091743 | 0 | 0.008392 | 0.326107 | 2,122 | 66 | 78 | 32.151515 | 0.83007 | 0.091423 | 0 | 0.266667 | 0 | 0 | 0.080127 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044444 | false | 0.133333 | 0.133333 | 0 | 0.377778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
0879463df340e70622cb3032630c4969a07f4bba | 398 | py | Python | frameworks/Python/falcon/app_orjson.py | http4k/FrameworkBenchmarks | ca11af53b90f92a12f987cc9aaf29ccaf3aec7e7 | [
"BSD-3-Clause"
] | 2 | 2019-09-23T16:12:35.000Z | 2020-08-29T05:59:51.000Z | frameworks/Python/falcon/app_orjson.py | http4k/FrameworkBenchmarks | ca11af53b90f92a12f987cc9aaf29ccaf3aec7e7 | [
"BSD-3-Clause"
] | 2 | 2022-02-16T01:18:53.000Z | 2022-02-16T01:19:01.000Z | frameworks/Python/falcon/app_orjson.py | http4k/FrameworkBenchmarks | ca11af53b90f92a12f987cc9aaf29ccaf3aec7e7 | [
"BSD-3-Clause"
] | 1 | 2019-09-23T16:12:41.000Z | 2019-09-23T16:12:41.000Z | #!/usr/bin/env python
import orjson
from falcon import media
from app import wsgi
# custom JSON handler
JSONHandler = media.JSONHandler(dumps=orjson.dumps, loads=orjson.loads)
extra_handlers = {
"application/json": JSONHandler,
"application/json; charset=UTF-8": JSONHandler
}
wsgi.req_options.media_handlers.u... | 26.533333 | 71 | 0.796482 | 53 | 398 | 5.849057 | 0.509434 | 0.125806 | 0.129032 | 0.167742 | 0.251613 | 0.251613 | 0 | 0 | 0 | 0 | 0 | 0.002801 | 0.103015 | 398 | 14 | 72 | 28.428571 | 0.865546 | 0.100503 | 0 | 0 | 0 | 0 | 0.132022 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0882e1f77f2e366c1adcce79f83dc5d3c0fc16a3 | 780 | py | Python | date_time/calendar.py | nayanapardhekar/Python | 55ea0cc1dd69192b25cb71358cd03cc2ce13be0a | [
"MIT"
] | 37 | 2019-04-03T07:19:57.000Z | 2022-01-09T06:18:41.000Z | date_time/calendar.py | nayanapardhekar/Python | 55ea0cc1dd69192b25cb71358cd03cc2ce13be0a | [
"MIT"
] | 16 | 2020-08-11T08:09:42.000Z | 2021-10-30T17:40:48.000Z | date_time/calendar.py | nayanapardhekar/Python | 55ea0cc1dd69192b25cb71358cd03cc2ce13be0a | [
"MIT"
] | 130 | 2019-10-02T14:40:20.000Z | 2022-01-26T17:38:26.000Z | '''
Task
You are given a date. Your task is to find what the day is on that date.
Input Format
A single line of input containing the space separated month, day and year, respectively, in format.
Constraints
* 2000<year<3000
Output Format
Output the correct day in capital letters.
Sample Input
08 05 2015
Sampl... | 19.02439 | 102 | 0.692308 | 134 | 780 | 4.029851 | 0.604478 | 0.022222 | 0.02963 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078864 | 0.187179 | 780 | 40 | 103 | 19.5 | 0.772871 | 0.588462 | 0 | 0 | 0 | 0 | 0.180505 | 0 | 0 | 0 | 0 | 0.025 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
08832f56dfa7468c8daef9896e5ae7f90484bc99 | 327 | py | Python | travel/bean/userwrapper.py | sausage-team/travel-notes | 3c2454ebad7764906c5ff30cbdfe296cb7c64eb4 | [
"MIT"
] | null | null | null | travel/bean/userwrapper.py | sausage-team/travel-notes | 3c2454ebad7764906c5ff30cbdfe296cb7c64eb4 | [
"MIT"
] | null | null | null | travel/bean/userwrapper.py | sausage-team/travel-notes | 3c2454ebad7764906c5ff30cbdfe296cb7c64eb4 | [
"MIT"
] | null | null | null | from core.bean.wrapper import *
class UserWrapper(Wrapper):
filter = ['phone', 'password']
def __init__(self, status=0, data={}):
if isinstance(data, list):
for val in data:
self.remove_key(val)
else:
self.remove_key(data)
super().__init__(status... | 27.25 | 42 | 0.571865 | 38 | 327 | 4.657895 | 0.684211 | 0.112994 | 0.146893 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004386 | 0.302752 | 327 | 12 | 43 | 27.25 | 0.77193 | 0 | 0 | 0 | 0 | 0 | 0.039634 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.1 | 0.1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
088587ab2c2896bd3c3b0a7eaa014f8d0951303b | 445 | py | Python | tests/components/meteo_france/conftest.py | jasperro/core | 26d7b2164e8a971506790ae5af06f31abdf278b5 | [
"Apache-2.0"
] | 7 | 2019-02-07T14:14:12.000Z | 2019-07-28T06:56:10.000Z | tests/components/meteo_france/conftest.py | jasperro/core | 26d7b2164e8a971506790ae5af06f31abdf278b5 | [
"Apache-2.0"
] | 9 | 2022-01-27T06:32:10.000Z | 2022-03-31T07:07:51.000Z | tests/components/meteo_france/conftest.py | jasperro/core | 26d7b2164e8a971506790ae5af06f31abdf278b5 | [
"Apache-2.0"
] | 2 | 2020-04-19T13:35:24.000Z | 2020-04-19T13:35:51.000Z | """Meteo-France generic test utils."""
from unittest.mock import patch
import pytest
@pytest.fixture(autouse=True)
def patch_requests():
"""Stub out services that makes requests."""
patch_client = patch("homeassistant.components.meteo_france.meteofranceClient")
patch_weather_alert = patch(
"homea... | 26.176471 | 83 | 0.746067 | 49 | 445 | 6.591837 | 0.612245 | 0.102167 | 0.099071 | 0.204334 | 0.241486 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.159551 | 445 | 16 | 84 | 27.8125 | 0.863636 | 0.159551 | 0 | 0 | 0 | 0 | 0.325069 | 0.325069 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.2 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
08888176636ddcdc31b6159092c5c99818bc1fa1 | 1,172 | py | Python | scraper/storage_spiders/yensaophuyenvn.py | chongiadung/choinho | d2a216fe7a5064d73cdee3e928a7beef7f511fd1 | [
"MIT"
] | null | null | null | scraper/storage_spiders/yensaophuyenvn.py | chongiadung/choinho | d2a216fe7a5064d73cdee3e928a7beef7f511fd1 | [
"MIT"
] | 10 | 2020-02-11T23:34:28.000Z | 2022-03-11T23:16:12.000Z | scraper/storage_spiders/yensaophuyenvn.py | chongiadung/choinho | d2a216fe7a5064d73cdee3e928a7beef7f511fd1 | [
"MIT"
] | 3 | 2018-08-05T14:54:25.000Z | 2021-06-07T01:49:59.000Z | # Auto generated by generator.py. Delete this line if you make modification.
from scrapy.spiders import Rule
from scrapy.linkextractors import LinkExtractor
XPATH = {
'name' : "//h1[@class='nameprod']",
'price' : "//div[@class='c2']/div[@class='imp'][1]/span[@class='price']",
'category' : "//div[@class='na... | 43.407407 | 217 | 0.625427 | 157 | 1,172 | 4.585987 | 0.484076 | 0.055556 | 0.061111 | 0.069444 | 0.122222 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002865 | 0.106655 | 1,172 | 26 | 218 | 45.076923 | 0.684814 | 0.102389 | 0 | 0 | 1 | 0.043478 | 0.543375 | 0.201144 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.086957 | 0 | 0.086957 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
08900b030a1599b741003280e4cb78236562ae52 | 302 | py | Python | setup.py | pingf/yadashcomp | 6adbc313a580988d215f7e6b087c5927b7bcacf8 | [
"MIT"
] | null | null | null | setup.py | pingf/yadashcomp | 6adbc313a580988d215f7e6b087c5927b7bcacf8 | [
"MIT"
] | null | null | null | setup.py | pingf/yadashcomp | 6adbc313a580988d215f7e6b087c5927b7bcacf8 | [
"MIT"
] | null | null | null | from setuptools import setup
exec (open('yadashcomp/version.py').read())
setup(
name='yadashcomp',
version=__version__,
author='pingf',
packages=['yadashcomp'],
include_package_data=True,
license='MIT',
description='yet another dash components',
install_requires=[]
)
| 20.133333 | 46 | 0.68543 | 32 | 302 | 6.25 | 0.84375 | 0.17 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.175497 | 302 | 14 | 47 | 21.571429 | 0.803213 | 0 | 0 | 0 | 0 | 0 | 0.251656 | 0.069536 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.083333 | 0 | 0.083333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
08909e2af9dd4d10cb92f2ecd76d6a36b87420c1 | 497 | py | Python | play/botos3write.py | mpechner/Security-Camera | bfee31d94ad6cfda0af650134baa954ae5fcee15 | [
"MIT"
] | null | null | null | play/botos3write.py | mpechner/Security-Camera | bfee31d94ad6cfda0af650134baa954ae5fcee15 | [
"MIT"
] | null | null | null | play/botos3write.py | mpechner/Security-Camera | bfee31d94ad6cfda0af650134baa954ae5fcee15 | [
"MIT"
] | null | null | null | import boto3
import os
camera='1'
bucket='mikey.com-security'
path='/mnt/cameraimages/images'
s3 = boto3.resource('s3')
for dirName, subdirList, fileList in os.walk(path):
for fname in fileList:
if len(path) == len(dirName):
finame=fname
else:
finame = '%s/%s'%(dirName[len(... | 26.157895 | 77 | 0.60161 | 64 | 497 | 4.65625 | 0.53125 | 0.04698 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018717 | 0.247485 | 497 | 18 | 78 | 27.611111 | 0.778075 | 0 | 0 | 0 | 0 | 0 | 0.104628 | 0.04829 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.125 | null | null | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
089ea4e9c7c54453be98717535253d195fbd60b3 | 450 | py | Python | web/migrations/0042_auto_20180808_1500.py | ocwc/oerweekapi | 11abae29c15fffc264daf742bda6e9c691df2382 | [
"MIT"
] | null | null | null | web/migrations/0042_auto_20180808_1500.py | ocwc/oerweekapi | 11abae29c15fffc264daf742bda6e9c691df2382 | [
"MIT"
] | 5 | 2020-02-12T00:35:42.000Z | 2022-03-11T23:19:49.000Z | web/migrations/0042_auto_20180808_1500.py | ocwc/oerweekapi | 11abae29c15fffc264daf742bda6e9c691df2382 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.15 on 2018-08-08 15:00
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('web', '0041_auto_20180808_1450'),
]
operations = [
migrations.AlterField(
... | 21.428571 | 49 | 0.615556 | 50 | 450 | 5.34 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106061 | 0.266667 | 450 | 20 | 50 | 22.5 | 0.70303 | 0.153333 | 0 | 0 | 1 | 0 | 0.108466 | 0.060847 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
08a660d9df932db91150b4033b57bc80a1fa429c | 2,139 | py | Python | tests/test_actions.py | pauloromeira/onegram | 8294e237e8b8aa70c783347e42ea03d24098c48e | [
"MIT"
] | 150 | 2018-03-17T20:38:43.000Z | 2020-11-18T14:08:06.000Z | tests/test_actions.py | pauloromeira/onegram | 8294e237e8b8aa70c783347e42ea03d24098c48e | [
"MIT"
] | 14 | 2018-04-08T11:39:59.000Z | 2019-08-10T14:16:23.000Z | tests/test_actions.py | pauloromeira/onegram | 8294e237e8b8aa70c783347e42ea03d24098c48e | [
"MIT"
] | 11 | 2018-03-22T04:34:29.000Z | 2021-06-10T10:55:35.000Z | import pytest
from onegram.exceptions import NotSupportedError
from onegram import follow, unfollow
from onegram import like, unlike
from onegram import comment, uncomment
from onegram import save, unsave
def test_follow(logged, user, cassette):
if logged:
response = follow(user)
assert response... | 29.30137 | 66 | 0.58532 | 222 | 2,139 | 5.572072 | 0.166667 | 0.063056 | 0.103476 | 0.21342 | 0.476152 | 0.370251 | 0.253032 | 0.253032 | 0.253032 | 0.253032 | 0 | 0.001307 | 0.284712 | 2,139 | 72 | 67 | 29.708333 | 0.80719 | 0 | 0 | 0.368421 | 0 | 0 | 0.082281 | 0 | 0 | 0 | 0 | 0 | 0.192982 | 1 | 0.070175 | false | 0 | 0.105263 | 0 | 0.175439 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
08aac6712b0ebaf31f2faac44dbecfa52a15ee0c | 5,791 | py | Python | account/forms.py | nvvu99/news-aggregator | 4722f3b80a9c9e0a06ebec6b90681732a5e873e8 | [
"MIT"
] | null | null | null | account/forms.py | nvvu99/news-aggregator | 4722f3b80a9c9e0a06ebec6b90681732a5e873e8 | [
"MIT"
] | 9 | 2021-04-08T20:35:04.000Z | 2022-03-12T00:37:00.000Z | account/forms.py | nvvu99/news-aggregator | 4722f3b80a9c9e0a06ebec6b90681732a5e873e8 | [
"MIT"
] | null | null | null | from django import forms
from .models import User
from news.models import Category
from django.utils.translation import gettext, gettext_lazy as _
from django.contrib.auth import authenticate, forms as auth_forms
from django.db.models import Q
class LoginForm(forms.Form):
username = forms.CharField(
label... | 30.319372 | 117 | 0.6201 | 603 | 5,791 | 5.711443 | 0.192371 | 0.044715 | 0.047909 | 0.031359 | 0.355981 | 0.283391 | 0.23374 | 0.198316 | 0.103368 | 0.046167 | 0 | 0.001178 | 0.266966 | 5,791 | 190 | 118 | 30.478947 | 0.81013 | 0 | 0 | 0.322368 | 0 | 0 | 0.151615 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.092105 | false | 0.256579 | 0.039474 | 0.026316 | 0.361842 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
08adc9f47afeaefd2bea857f5ba4b8e0bba7a401 | 5,664 | py | Python | tests/unittest/test_autograd.py | yuhonghong66/minpy | 2e44927ad0fbff9295e2acf6db636e588fdc5b42 | [
"Apache-2.0"
] | 1,271 | 2015-11-05T10:53:40.000Z | 2022-02-20T08:33:35.000Z | tests/unittest/test_autograd.py | yuhonghong66/minpy | 2e44927ad0fbff9295e2acf6db636e588fdc5b42 | [
"Apache-2.0"
] | 140 | 2016-04-07T02:55:19.000Z | 2019-08-02T06:01:53.000Z | tests/unittest/test_autograd.py | yuhonghong66/minpy | 2e44927ad0fbff9295e2acf6db636e588fdc5b42 | [
"Apache-2.0"
] | 144 | 2015-11-05T10:53:45.000Z | 2022-03-25T05:38:09.000Z | from __future__ import print_function
import minpy.numpy as mp
import numpy as np
import minpy.dispatch.policy as policy
from minpy.core import convert_args, return_numpy, grad_and_loss, grad, minpy_to_numpy as mn, numpy_to_minpy as nm
import time
# mp.set_policy(policy.OnlyNumPyPolicy())
def test_autograd():
@c... | 34.120482 | 114 | 0.558263 | 911 | 5,664 | 3.308452 | 0.144896 | 0.017916 | 0.038819 | 0.047445 | 0.521566 | 0.446583 | 0.39781 | 0.336762 | 0.288653 | 0.288653 | 0 | 0.040169 | 0.287959 | 5,664 | 165 | 115 | 34.327273 | 0.707166 | 0.080508 | 0 | 0.333333 | 0 | 0 | 0.024682 | 0 | 0 | 0 | 0 | 0 | 0.106061 | 1 | 0.181818 | false | 0 | 0.045455 | 0.106061 | 0.363636 | 0.075758 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
08b0acbb6f8beaeaaadfca51d69c9c0577f2ca2c | 447 | py | Python | Python/python_basic_project.py | Bozmenn/Patika | e3432a2398197412cbc1b44a786d10553cdf8abc | [
"MIT"
] | null | null | null | Python/python_basic_project.py | Bozmenn/Patika | e3432a2398197412cbc1b44a786d10553cdf8abc | [
"MIT"
] | null | null | null | Python/python_basic_project.py | Bozmenn/Patika | e3432a2398197412cbc1b44a786d10553cdf8abc | [
"MIT"
] | null | null | null | #SORU 1_______________________________________________________
l_r=[]
def flatten(l):
for j in l:
if type(j) == list:
flatten(j)
else:
l_r.append(j)
return l_r
x= [[1,"a",["cat"],2],[[[3]],"dog"],4,5]
print(flatten(x))
#SORU 2_________________________________________________________
def rev(l... | 17.88 | 64 | 0.61745 | 67 | 447 | 2.402985 | 0.41791 | 0.037267 | 0.062112 | 0.086957 | 0.236025 | 0.236025 | 0.236025 | 0.236025 | 0.236025 | 0 | 0 | 0.038889 | 0.194631 | 447 | 24 | 65 | 18.625 | 0.408333 | 0.277405 | 0 | 0.222222 | 0 | 0 | 0.021807 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.222222 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
08b6d5e72a291dfa440add70b4233cb7f7e81bcf | 1,240 | py | Python | src/processor.py | OlegDurandin/AuthorStyle | 75288df4ad0f88677645c3af00fbd7c0f7f58822 | [
"MIT"
] | 3 | 2019-09-29T17:10:43.000Z | 2020-09-21T09:58:48.000Z | src/processor.py | OlegDurandin/AuthorStyle | 75288df4ad0f88677645c3af00fbd7c0f7f58822 | [
"MIT"
] | 2 | 2019-07-14T11:14:48.000Z | 2019-07-14T11:16:54.000Z | src/processor.py | OlegDurandin/AuthorStyle | 75288df4ad0f88677645c3af00fbd7c0f7f58822 | [
"MIT"
] | null | null | null | from abc import ABC, abstractmethod
import os
import spacy_udpipe
from .utils import load_pickled_file
from .settings import PATH_TO_RUS_UDPIPE_MODEL
import spacy
def processTag(tag_representation):
res = {}
if len(tag_representation.split('|')) > 0:
for one_subtag in tag_representation.split('|'):
... | 27.555556 | 94 | 0.674194 | 156 | 1,240 | 5.051282 | 0.512821 | 0.045685 | 0.053299 | 0.038071 | 0.050761 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004145 | 0.221774 | 1,240 | 45 | 95 | 27.555556 | 0.812435 | 0.049194 | 0 | 0.121212 | 0 | 0 | 0.083263 | 0.017842 | 0 | 0 | 0 | 0 | 0 | 1 | 0.151515 | false | 0.121212 | 0.181818 | 0 | 0.393939 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
08b9d602501fb13cc2021c43438f30534e5bf695 | 405 | py | Python | setup.py | renatoliveira/monta | e905ac53c645ce9bb6afb8df74e0f6b50e816715 | [
"MIT"
] | null | null | null | setup.py | renatoliveira/monta | e905ac53c645ce9bb6afb8df74e0f6b50e816715 | [
"MIT"
] | 1 | 2018-05-17T16:38:50.000Z | 2018-05-17T16:38:50.000Z | setup.py | renatoliveira/monta | e905ac53c645ce9bb6afb8df74e0f6b50e816715 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
from setuptools import setup
setup(
name='monta',
version='1.2',
description='Disk mounting shortcut for use with dmenu.',
author='Renato Oliveira',
url='https://github.com/renatoliveira/monta',
include_package_data=True,
package_data={
'': [
'monta',
'license.txt'
]
},
scrip... | 16.2 | 58 | 0.679012 | 49 | 405 | 5.55102 | 0.77551 | 0.080882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008746 | 0.153086 | 405 | 24 | 59 | 16.875 | 0.784257 | 0.051852 | 0 | 0 | 0 | 0 | 0.460733 | 0.057592 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.05 | 0 | 0.05 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
08bb5d2062173823a812a88af52a63e13ccb7d2b | 545 | py | Python | extract_unique_tags_es_xyz.py | MikhailKuklin/Scripts-for-Software-of-Computational-Chemistry-and-Physics | 2868d071531cf70071493881f2ec561c029faf5e | [
"MIT"
] | null | null | null | extract_unique_tags_es_xyz.py | MikhailKuklin/Scripts-for-Software-of-Computational-Chemistry-and-Physics | 2868d071531cf70071493881f2ec561c029faf5e | [
"MIT"
] | null | null | null | extract_unique_tags_es_xyz.py | MikhailKuklin/Scripts-for-Software-of-Computational-Chemistry-and-Physics | 2868d071531cf70071493881f2ec561c029faf5e | [
"MIT"
] | null | null | null | # import module and read xyz file
from ase.io import read, write
file=read('last3.xyz', index=":")
# create list of tags
tags = []
for structure in file:
if structure.info['config_type'] not in tags:
tags.append(structure.info['config_type'])
# extract unique tags and energy sigma
dict={}
for i in tags:
... | 19.464286 | 100 | 0.693578 | 85 | 545 | 4.388235 | 0.4 | 0.174263 | 0.152815 | 0.184987 | 0.252011 | 0.252011 | 0.252011 | 0.252011 | 0.252011 | 0.252011 | 0 | 0.002222 | 0.174312 | 545 | 27 | 101 | 20.185185 | 0.826667 | 0.161468 | 0 | 0.153846 | 0 | 0 | 0.14823 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.076923 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
08c5e8339571314215fedb172c2f7675228d9e81 | 600 | py | Python | UnicornHAT/clock.py | gerb030/PiTrials | 0f53fde07954d1155c9d8785126199d9af8591a6 | [
"MIT"
] | null | null | null | UnicornHAT/clock.py | gerb030/PiTrials | 0f53fde07954d1155c9d8785126199d9af8591a6 | [
"MIT"
] | null | null | null | UnicornHAT/clock.py | gerb030/PiTrials | 0f53fde07954d1155c9d8785126199d9af8591a6 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import colorsys
import time
from sys import exit
try:
from PIL import Image, ImageDraw, ImageFont
except ImportError:
exit('This script requires the pillow module\nInstall with: sudo pip install pillow')
FONT = ('/usr/share/fonts/truetype/freefont/FreeSansBold.ttf', 12)
unicornhathd.ro... | 19.354839 | 89 | 0.765 | 83 | 600 | 5.421687 | 0.638554 | 0.04 | 0.053333 | 0.071111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015534 | 0.141667 | 600 | 30 | 90 | 20 | 0.858252 | 0.033333 | 0 | 0 | 0 | 0 | 0.221071 | 0.088083 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.277778 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
08c64f18d800b619fe88c261ff1b7058fbf4c831 | 559 | py | Python | frappe-bench/apps/erpnext/erpnext/patches/v10_0/update_project_in_sle.py | Semicheche/foa_frappe_docker | a186b65d5e807dd4caf049e8aeb3620a799c1225 | [
"MIT"
] | 1 | 2021-04-29T14:55:29.000Z | 2021-04-29T14:55:29.000Z | frappe-bench/apps/erpnext/erpnext/patches/v10_0/update_project_in_sle.py | Semicheche/foa_frappe_docker | a186b65d5e807dd4caf049e8aeb3620a799c1225 | [
"MIT"
] | null | null | null | frappe-bench/apps/erpnext/erpnext/patches/v10_0/update_project_in_sle.py | Semicheche/foa_frappe_docker | a186b65d5e807dd4caf049e8aeb3620a799c1225 | [
"MIT"
] | 1 | 2021-04-29T14:39:01.000Z | 2021-04-29T14:39:01.000Z | # Copyright (c) 2017, Frappe and Contributors
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
import frappe
def execute():
for doctype in ['Sales Invoice', 'Delivery Note', 'Stock Entry']:
frappe.db.sql(""" update
`tabStock Ledger Entry` sle, `tab{0}` parent_do... | 34.9375 | 96 | 0.726297 | 82 | 559 | 4.804878 | 0.621951 | 0.114213 | 0.121827 | 0.081218 | 0.116751 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012903 | 0.168157 | 559 | 15 | 97 | 37.266667 | 0.834409 | 0.177102 | 0 | 0 | 0 | 0 | 0.667396 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
08ccfca0fa4352666f4026e18e8baf6618269eb4 | 1,133 | py | Python | generateList.py | 42ip/animatedStickersDB | 861162907e67a4deae54c92c47f97fbaef7fd6ee | [
"MIT"
] | 4 | 2021-09-17T06:36:35.000Z | 2021-10-30T08:07:47.000Z | generateList.py | 42ip/animatedStickersDB | 861162907e67a4deae54c92c47f97fbaef7fd6ee | [
"MIT"
] | null | null | null | generateList.py | 42ip/animatedStickersDB | 861162907e67a4deae54c92c47f97fbaef7fd6ee | [
"MIT"
] | 3 | 2021-09-18T15:34:58.000Z | 2022-02-13T18:27:53.000Z | import sys,os
arr = []
files = os.listdir(sys.path[0] + '/stickersraw')
st = "{{$a := index .CmdArgs 0 }} \n"
st += "{{$b := cslice "
names = []
for fileName in files:
names.append(fileName.split('.')[0])
names = sorted(names)
n = ""
for name in names:
n += "\"" + name + "\" "
st += n
st += """ }}
{{if or ... | 26.97619 | 119 | 0.492498 | 152 | 1,133 | 3.657895 | 0.460526 | 0.032374 | 0.028777 | 0.039568 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013652 | 0.224184 | 1,133 | 42 | 120 | 26.97619 | 0.618885 | 0 | 0 | 0.146341 | 0 | 0.073171 | 0.724868 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.02439 | 0 | 0.02439 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
08cd8e7ba46af0b3f0629d172f2ed8058ccb4f7e | 17,597 | py | Python | install/data/apps/internalTools/BAMval/BAMvalwrapper.py | inab/openEBench_vre | be75b526d9304770412cb0c0b81f3ed0024a4bb5 | [
"Apache-2.0"
] | 1 | 2020-04-25T17:27:00.000Z | 2020-04-25T17:27:00.000Z | install/data/apps/internalTools/BAMval/BAMvalwrapper.py | inab/openEBench_vre | be75b526d9304770412cb0c0b81f3ed0024a4bb5 | [
"Apache-2.0"
] | 1 | 2021-02-03T17:14:54.000Z | 2021-02-03T17:14:54.000Z | install/data/apps/internalTools/BAMval/BAMvalwrapper.py | inab/openEBench_vre | be75b526d9304770412cb0c0b81f3ed0024a4bb5 | [
"Apache-2.0"
] | 1 | 2021-02-03T17:04:44.000Z | 2021-02-03T17:04:44.000Z | #!/usr/bin/python2.7
import os
import sys
import argparse
import json
import time
import socket # print localhost
import logging
import re
import pprint
import multiprocessing
#import psutil # available memory
import subprocess
import shutil
import glob
import tarfile
import subprocess
import random
out_dir=""
clas... | 35.335341 | 276 | 0.685344 | 2,359 | 17,597 | 4.915218 | 0.133531 | 0.045709 | 0.055714 | 0.029754 | 0.606382 | 0.555239 | 0.522122 | 0.465977 | 0.436912 | 0.408797 | 0 | 0.006836 | 0.177019 | 17,597 | 497 | 277 | 35.406439 | 0.793813 | 0.106666 | 0 | 0.415094 | 0 | 0.009434 | 0.2401 | 0.045606 | 0 | 0 | 0 | 0.002012 | 0 | 0 | null | null | 0 | 0.050314 | null | null | 0.100629 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
08d2e447b1313adfe817f9d12a09e52f9c2670bf | 790 | py | Python | tweezers/ixo/decorators.py | DollSimon/tweezers | 7c9b3d781c53f7728526a8242aa9e1d671f15688 | [
"BSD-2-Clause"
] | null | null | null | tweezers/ixo/decorators.py | DollSimon/tweezers | 7c9b3d781c53f7728526a8242aa9e1d671f15688 | [
"BSD-2-Clause"
] | null | null | null | tweezers/ixo/decorators.py | DollSimon/tweezers | 7c9b3d781c53f7728526a8242aa9e1d671f15688 | [
"BSD-2-Clause"
] | null | null | null | class lazy(object):
"""
Property for the lazy evaluation of Python attributes. In the example below, the ``expensive_computation()`` is only
called when the attribute ``object.my_attribute`` is accessed for the first time.
Example:
Use the ``@lazy`` decorator for a function that returns the res... | 32.916667 | 120 | 0.618987 | 95 | 790 | 4.978947 | 0.505263 | 0.067653 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.302532 | 790 | 24 | 121 | 32.916667 | 0.858439 | 0.579747 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
08d7c9c887435ff27aded708839c5b94ea11c594 | 5,012 | py | Python | Extra/plot_error.py | niefermar/APPIAN-PET-APPIAN | 895fa3aaad7f444d6f4e6f7c698ddace9415664c | [
"MIT"
] | 1 | 2021-04-15T01:46:36.000Z | 2021-04-15T01:46:36.000Z | Extra/plot_error.py | niefermar/APPIAN-PET-APPIAN | 895fa3aaad7f444d6f4e6f7c698ddace9415664c | [
"MIT"
] | null | null | null | Extra/plot_error.py | niefermar/APPIAN-PET-APPIAN | 895fa3aaad7f444d6f4e6f7c698ddace9415664c | [
"MIT"
] | null | null | null | import pandas as pd
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import seaborn as sns
from glob import glob
from re import sub
from sys import argv, exit
from os.path import splitext
import numpy as np
import os
def load(fn):
df=pd.read_csv(fn)
return(df)
def plot(df0, df, tracer) :
ou... | 38.259542 | 184 | 0.61233 | 789 | 5,012 | 3.761724 | 0.209125 | 0.036388 | 0.040431 | 0.028302 | 0.455189 | 0.376348 | 0.338612 | 0.272574 | 0.239218 | 0.239218 | 0 | 0.015381 | 0.143855 | 5,012 | 130 | 185 | 38.553846 | 0.676299 | 0.139266 | 0 | 0.262136 | 0 | 0 | 0.210233 | 0.051628 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.097087 | null | null | 0.029126 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
08dc5dbae054e3fad24c9ec98a9699ea79121ea2 | 4,691 | py | Python | core/migrations/0002_auto_20191215_0201.py | IS-AgroSmart/MVP | b347e7c846a9a29584a6baee0b825381d5bc62a3 | [
"CNRI-Python"
] | null | null | null | core/migrations/0002_auto_20191215_0201.py | IS-AgroSmart/MVP | b347e7c846a9a29584a6baee0b825381d5bc62a3 | [
"CNRI-Python"
] | 140 | 2020-01-21T15:42:29.000Z | 2021-08-21T18:04:19.000Z | core/migrations/0002_auto_20191215_0201.py | IS-AgroSmart/AgroSmart-Web | b347e7c846a9a29584a6baee0b825381d5bc62a3 | [
"CNRI-Python"
] | 1 | 2021-05-03T06:12:35.000Z | 2021-05-03T06:12:35.000Z | # Generated by Django 3.0 on 2019-12-15 02:01
import core.models
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import uuid
class Migration(migrations.Migration):
dependencies = [
('core', '0001_initial'),
]
operations = [
migr... | 46.91 | 333 | 0.586229 | 442 | 4,691 | 6.108597 | 0.251131 | 0.055556 | 0.038889 | 0.031481 | 0.592593 | 0.509259 | 0.414444 | 0.368148 | 0.351852 | 0.306667 | 0 | 0.010681 | 0.261565 | 4,691 | 99 | 334 | 47.383838 | 0.768764 | 0.009166 | 0 | 0.537634 | 1 | 0 | 0.146793 | 0.005166 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.053763 | 0 | 0.086022 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
08e9e25ccc8d09730abda7d2de12a0a4aa3f71ca | 2,222 | py | Python | recipes/Python/543261_grade_keeper/recipe-543261.py | tdiprima/code | 61a74f5f93da087d27c70b2efe779ac6bd2a3b4f | [
"MIT"
] | 2,023 | 2017-07-29T09:34:46.000Z | 2022-03-24T08:00:45.000Z | recipes/Python/543261_grade_keeper/recipe-543261.py | unhacker/code | 73b09edc1b9850c557a79296655f140ce5e853db | [
"MIT"
] | 32 | 2017-09-02T17:20:08.000Z | 2022-02-11T17:49:37.000Z | recipes/Python/543261_grade_keeper/recipe-543261.py | unhacker/code | 73b09edc1b9850c557a79296655f140ce5e853db | [
"MIT"
] | 780 | 2017-07-28T19:23:28.000Z | 2022-03-25T20:39:41.000Z | #! /usr/bin/python
# keep record of grades. Made by Caleb Herbert. 0.1-PUBLIC
# NOTE! All letter answers are to be written in quotes (including dates)!
print """############################################
# Welcome to Gradebook! v 0.1 #
# YOUR LIGHT WEIGHT SCHOOL RECORD MANAGER! #
#######################... | 44.44 | 101 | 0.646265 | 355 | 2,222 | 4.03662 | 0.44507 | 0.025122 | 0.023029 | 0.019539 | 0.043266 | 0.043266 | 0 | 0 | 0 | 0 | 0 | 0.003369 | 0.19847 | 2,222 | 49 | 102 | 45.346939 | 0.801235 | 0.488299 | 0 | 0.148148 | 0 | 0.074074 | 0.557554 | 0.079137 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.185185 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
08ebf37d281e3c628f0168c73bca60f5b9b12421 | 352 | py | Python | reading/migrations/0008_auto_20200401_1324.py | ericrobskyhuntley/vialab.mit.edu | 1318d03b8eeb106c1662052e1caa53290e206ae7 | [
"MIT"
] | null | null | null | reading/migrations/0008_auto_20200401_1324.py | ericrobskyhuntley/vialab.mit.edu | 1318d03b8eeb106c1662052e1caa53290e206ae7 | [
"MIT"
] | null | null | null | reading/migrations/0008_auto_20200401_1324.py | ericrobskyhuntley/vialab.mit.edu | 1318d03b8eeb106c1662052e1caa53290e206ae7 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.4 on 2020-04-01 13:24
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('reading', '0007_auto_20200331_2133'),
]
operations = [
migrations.RenameModel(
old_name='ReadingListMetadata',
new_name='Rea... | 19.555556 | 47 | 0.619318 | 36 | 352 | 5.916667 | 0.861111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121569 | 0.275568 | 352 | 17 | 48 | 20.705882 | 0.713725 | 0.127841 | 0 | 0 | 1 | 0 | 0.209836 | 0.07541 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
08f46bb168f1fd3710a422e46f021af9c097da20 | 306 | py | Python | web_api/yonyou/reqparsers/enum_items.py | zhanghe06/flask_restful | 6ef54f3f7efbbaff6169e963dcf45ab25e11e593 | [
"MIT"
] | 1 | 2020-12-04T03:15:47.000Z | 2020-12-04T03:15:47.000Z | web_api/yonyou/reqparsers/enum_items.py | zhanghe06/flask_restful | 6ef54f3f7efbbaff6169e963dcf45ab25e11e593 | [
"MIT"
] | 1 | 2021-06-01T22:24:27.000Z | 2021-06-01T22:24:27.000Z | web_api/yonyou/reqparsers/enum_items.py | zhanghe06/flask_restful | 6ef54f3f7efbbaff6169e963dcf45ab25e11e593 | [
"MIT"
] | 2 | 2020-12-04T03:16:18.000Z | 2021-09-04T14:10:12.000Z | #!/usr/bin/env python
# encoding: utf-8
"""
@author: zhanghe
@software: PyCharm
@file: enum_items.py
@time: 2018-08-23 15:55
"""
from __future__ import unicode_literals
structure_key_item = 'enum_item'
structure_key_items = 'enum_items'
structure_key_item_cn = '枚举类型'
structure_key_items_cn = '枚举类型'
| 15.3 | 39 | 0.751634 | 46 | 306 | 4.608696 | 0.673913 | 0.226415 | 0.150943 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048507 | 0.124183 | 306 | 19 | 40 | 16.105263 | 0.742537 | 0.382353 | 0 | 0 | 0 | 0 | 0.15 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
08f7991090594295d362afa87d1a6cbab6d3089a | 1,722 | py | Python | generalgui/properties/funcs.py | Mandera/generalgui | 4cc53bc19464d2032d4fb2fee7404cca338c9b5d | [
"MIT"
] | 1 | 2021-03-12T12:48:59.000Z | 2021-03-12T12:48:59.000Z | generalgui/properties/funcs.py | Mandera/generalgui | 4cc53bc19464d2032d4fb2fee7404cca338c9b5d | [
"MIT"
] | null | null | null | generalgui/properties/funcs.py | Mandera/generalgui | 4cc53bc19464d2032d4fb2fee7404cca338c9b5d | [
"MIT"
] | null | null | null | from generallibrary import getBaseClassNames, SigInfo, dict_insert, wrapper_transfer
def set_parent_hook(self, parent, _draw=True):
""" :param generalgui.MethodGrouper self:
:param generalgui.MethodGrouper parent: """
if _draw:
for part in self.get_children(depth=-1, include_self=True, gen=Tru... | 25.701493 | 159 | 0.646341 | 220 | 1,722 | 4.918182 | 0.440909 | 0.046211 | 0.044362 | 0.029575 | 0.048059 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000792 | 0.267131 | 1,722 | 66 | 160 | 26.090909 | 0.856577 | 0.398955 | 0 | 0 | 0 | 0 | 0.019979 | 0 | 0 | 0 | 0 | 0 | 0.045455 | 1 | 0.227273 | false | 0 | 0.045455 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
08f86698f6ed353e9db86ad0607a79c375b47f60 | 8,398 | py | Python | MaxiNet/WorkerServer/tst_driver.py | bramamurthy/P4SwitchesInMaxiNet | b7c941690d46b110b12469a9fb9c23de8e6b965f | [
"MIT"
] | 1 | 2018-05-09T16:57:03.000Z | 2018-05-09T16:57:03.000Z | MaxiNet/WorkerServer/tst_driver.py | bramamurthy/P4SwitchesInMaxiNet | b7c941690d46b110b12469a9fb9c23de8e6b965f | [
"MIT"
] | null | null | null | MaxiNet/WorkerServer/tst_driver.py | bramamurthy/P4SwitchesInMaxiNet | b7c941690d46b110b12469a9fb9c23de8e6b965f | [
"MIT"
] | null | null | null | #!/usr/bin/python2
#
# This is a sample program to emulate P4 Switches in Distributed environment
# using Maxinet. The skeleton application program should be like this
#
import argparse
import atexit
import logging
import os
import signal
import subprocess
import sys
import tempfile
import time
import Pyro4
impor... | 30.649635 | 161 | 0.70362 | 1,271 | 8,398 | 4.504327 | 0.223446 | 0.017118 | 0.020961 | 0.015895 | 0.253624 | 0.232489 | 0.208384 | 0.195459 | 0.172052 | 0.159301 | 0 | 0.014269 | 0.165516 | 8,398 | 273 | 162 | 30.761905 | 0.802654 | 0.212193 | 0 | 0.245614 | 0 | 0 | 0.271609 | 0.018381 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.152047 | null | null | 0.19883 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3e9752872a43a9a5b465db6241f135efd431e689 | 2,533 | py | Python | src/5_expression/GSE64913.py | reemagit/flowcentrality | 1c9216d72212081d803c1c2dd7e3825b54411fee | [
"MIT"
] | 2 | 2020-02-11T03:23:31.000Z | 2020-10-14T11:40:06.000Z | src/5_expression/GSE64913.py | reemagit/flowcentrality | 1c9216d72212081d803c1c2dd7e3825b54411fee | [
"MIT"
] | 3 | 2021-09-08T02:33:39.000Z | 2022-03-12T00:50:10.000Z | src/5_expression/GSE64913.py | reemagit/flowcentrality | 1c9216d72212081d803c1c2dd7e3825b54411fee | [
"MIT"
] | 3 | 2020-02-27T11:14:35.000Z | 2022-02-20T02:59:28.000Z | #!/usr/bin/env python3
"""
Generate GSE64913
"""
__author__ = "Enrico Maiorino"
__version__ = "0.1.0"
__license__ = "MIT"
import logging
import GEOparse
import argparse
import pandas as pd
from funcs import utils
from os.path import join
import numpy as np
#def append_postfix(filename,postfix):
# return "{0}_{2}... | 42.932203 | 116 | 0.697987 | 342 | 2,533 | 4.938596 | 0.380117 | 0.033156 | 0.047365 | 0.058023 | 0.326229 | 0.236827 | 0.097691 | 0.097691 | 0.097691 | 0.097691 | 0 | 0.019935 | 0.148441 | 2,533 | 59 | 117 | 42.932203 | 0.763097 | 0.056455 | 0 | 0.047619 | 1 | 0 | 0.262915 | 0.02016 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02381 | false | 0 | 0.166667 | 0 | 0.190476 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3e9caa565b9c08bac1d24d7731de04360a06e6ae | 987 | py | Python | server/app/tests/users/test_endpoints.py | josenava/meal-calendar | d5182f9b9ee30c02efc8bd22e79bb7a53e778919 | [
"MIT"
] | null | null | null | server/app/tests/users/test_endpoints.py | josenava/meal-calendar | d5182f9b9ee30c02efc8bd22e79bb7a53e778919 | [
"MIT"
] | 5 | 2020-07-24T14:45:31.000Z | 2022-02-27T09:49:55.000Z | server/app/tests/users/test_endpoints.py | josenava/meal-calendar | d5182f9b9ee30c02efc8bd22e79bb7a53e778919 | [
"MIT"
] | null | null | null | import pytest
from fastapi.testclient import TestClient
@pytest.mark.integration
@pytest.mark.usefixtures("test_db_session")
class TestSignupEndpoint:
def test_signup_returns_200(self, client: TestClient):
response = client.post(
"/users/signup",
json={
"email": "fo... | 25.307692 | 72 | 0.533941 | 89 | 987 | 5.752809 | 0.41573 | 0.058594 | 0.087891 | 0.123047 | 0.59375 | 0.59375 | 0.59375 | 0.59375 | 0.59375 | 0.59375 | 0 | 0.031596 | 0.358663 | 987 | 38 | 73 | 25.973684 | 0.777251 | 0 | 0 | 0.516129 | 0 | 0 | 0.167173 | 0 | 0 | 0 | 0 | 0 | 0.096774 | 1 | 0.064516 | false | 0.096774 | 0.064516 | 0 | 0.16129 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
3e9ed84f29e3fa82e9a7884eaf32d33db5d0435d | 5,831 | py | Python | scripts/fitnessMutations/annotate_mutations.py | felixhorns/BCellSelection | e2f693b25d6f2802ee7f362f9aa54420b408a4e3 | [
"MIT"
] | 3 | 2019-05-30T17:34:02.000Z | 2020-03-25T17:14:55.000Z | scripts/fitnessMutations/annotate_mutations.py | felixhorns/BCellSelection | e2f693b25d6f2802ee7f362f9aa54420b408a4e3 | [
"MIT"
] | null | null | null | scripts/fitnessMutations/annotate_mutations.py | felixhorns/BCellSelection | e2f693b25d6f2802ee7f362f9aa54420b408a4e3 | [
"MIT"
] | null | null | null | import sys
import numpy as np
import pandas as pd
from Bio.Seq import Seq
from Bio.Alphabet import generic_dna
from Bio import SeqIO, Align, AlignIO, Phylo
from itertools import izip
def load_tree(f):
t = Phylo.read(f, 'newick')
t.root_with_outgroup("germline")
t.get_nonterminals()[0].branch_length = 0.0
... | 37.863636 | 122 | 0.666438 | 826 | 5,831 | 4.485472 | 0.25908 | 0.02834 | 0.025641 | 0.007557 | 0.11525 | 0.072065 | 0.044265 | 0.044265 | 0.023212 | 0 | 0 | 0.012319 | 0.220374 | 5,831 | 153 | 123 | 38.111111 | 0.802684 | 0.12142 | 0 | 0.016667 | 0 | 0 | 0.082197 | 0.017348 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.058333 | null | null | 0.033333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3e9f889195f0bb2cb830829f99455b921b5f3c64 | 309 | py | Python | gpu_tasker/email_settings_sample.py | cnstark/awesome_gpu_scheduler | 36f4a7232af19c7211cd15be2b0125393802b21d | [
"MIT"
] | 35 | 2020-12-03T02:16:58.000Z | 2022-03-20T15:27:19.000Z | gpu_tasker/email_settings_sample.py | cnstark/awesome_gpu_scheduler | 36f4a7232af19c7211cd15be2b0125393802b21d | [
"MIT"
] | 13 | 2020-12-03T09:56:07.000Z | 2021-05-06T13:43:37.000Z | gpu_tasker/email_settings_sample.py | 378978764/gputasker | f855f1bee351e6ed145eab4bf42175f2b583043f | [
"MIT"
] | 6 | 2020-12-03T07:25:41.000Z | 2022-03-07T12:16:57.000Z | EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST = 'smtp.163.com'
EMAIL_PORT = 465
EMAIL_HOST_USER = 'xxx@163.com'
EMAIL_HOST_PASSWORD = 'xxx'
EMAIL_USE_SSL = True
EMAIL_USE_LOCALTIME = True
DEFAULT_FROM_EMAIL = 'GPUTasker<{}>'.format(EMAIL_HOST_USER)
SERVER_EMAIL = EMAIL_HOST_USER
| 25.75 | 61 | 0.79288 | 47 | 309 | 4.829787 | 0.531915 | 0.198238 | 0.171806 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032143 | 0.093851 | 309 | 11 | 62 | 28.090909 | 0.778571 | 0 | 0 | 0 | 0 | 0 | 0.265372 | 0.139159 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.111111 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
3ea036dc7180ba80dccb1c55c8b70ba993f1703c | 1,823 | py | Python | debug.py | Epsilon-Lee/OpenNMT-V1 | 0286ec114c3820e73a882bf2d5f7c2ce9fc38a82 | [
"MIT"
] | 7 | 2017-09-14T12:05:56.000Z | 2021-11-17T12:32:26.000Z | debug.py | Epsilon-Lee/OpenNMT-V1 | 0286ec114c3820e73a882bf2d5f7c2ce9fc38a82 | [
"MIT"
] | null | null | null | debug.py | Epsilon-Lee/OpenNMT-V1 | 0286ec114c3820e73a882bf2d5f7c2ce9fc38a82 | [
"MIT"
] | 1 | 2017-10-11T09:33:39.000Z | 2017-10-11T09:33:39.000Z | import torch
import torch.nn as nn
import onmt
from onmt.BleuCal import fetch_data
import sys
if torch.cuda.is_available():
torch.cuda.set_device(3)
checkpoint = torch.load('../Models/V1_IWSLT_Models/de2en_30k_bz64_bc5_bleu_26.06_e24.pt')
opt = checkpoint['opt']
# del(checkpoint)
opt.cuda = True
srcDa... | 31.431034 | 97 | 0.680746 | 240 | 1,823 | 5.05 | 0.383333 | 0.061881 | 0.044554 | 0.031353 | 0.285479 | 0.285479 | 0.285479 | 0.285479 | 0.285479 | 0.285479 | 0 | 0.021222 | 0.14701 | 1,823 | 58 | 98 | 31.431034 | 0.758199 | 0.008228 | 0 | 0.217391 | 0 | 0 | 0.162286 | 0.097143 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.108696 | null | null | 0.086957 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3eac0ce2d6e7b7c2f9dfcc8ba7b10233149406f9 | 4,427 | py | Python | FullStackTests.py | stefanos-86/Remember | f08d51213ae4f2d467e365b80b50d0158f7c27ef | [
"MIT"
] | 3 | 2017-11-26T15:41:55.000Z | 2020-02-09T12:27:21.000Z | FullStackTests.py | stefanos-86/Remember | f08d51213ae4f2d467e365b80b50d0158f7c27ef | [
"MIT"
] | null | null | null | FullStackTests.py | stefanos-86/Remember | f08d51213ae4f2d467e365b80b50d0158f7c27ef | [
"MIT"
] | null | null | null | # Test rig to do tests on the completed machinery.
# Runs GDB on one (or all) test core files and compare the test result with what
# is stored in the <test case name>_result.txt file(s).
# This too relies on a convention on the file names linking test cases, expected results, executables and core files.
import argpar... | 36.586777 | 117 | 0.600407 | 533 | 4,427 | 4.812383 | 0.358349 | 0.02807 | 0.016374 | 0.023392 | 0.048343 | 0.032749 | 0.032749 | 0.032749 | 0.032749 | 0.032749 | 0 | 0.003553 | 0.300655 | 4,427 | 120 | 118 | 36.891667 | 0.824935 | 0.067088 | 0 | 0.024691 | 0 | 0 | 0.152941 | 0.018768 | 0 | 0 | 0 | 0 | 0.024691 | 0 | null | null | 0 | 0.074074 | null | null | 0.049383 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3eac9a82986036a1eff34954ec76dfc9ace1e8d1 | 1,615 | py | Python | models/room.py | Kaezon/BoredRPG | d65a19e849c8e42538722f5e3aa96637456c6493 | [
"MIT"
] | null | null | null | models/room.py | Kaezon/BoredRPG | d65a19e849c8e42538722f5e3aa96637456c6493 | [
"MIT"
] | null | null | null | models/room.py | Kaezon/BoredRPG | d65a19e849c8e42538722f5e3aa96637456c6493 | [
"MIT"
] | null | null | null | """
Module containing the Room class
"""
from collections import namedtuple
from entity import Entity
"""
Exit is a namedtuple which describes a unidirectional connection between rooms.
Properties:
direction: Short name string
destination: Room refrence
"""
Exit = namedtuple("Exit", ['direction... | 25.234375 | 80 | 0.56904 | 158 | 1,615 | 5.71519 | 0.35443 | 0.106312 | 0.043189 | 0.06866 | 0.305648 | 0.305648 | 0.305648 | 0.305648 | 0.305648 | 0.305648 | 0 | 0 | 0.346749 | 1,615 | 63 | 81 | 25.634921 | 0.855924 | 0 | 0 | 0.259259 | 0 | 0 | 0.070031 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.074074 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3eb670f27b32b0d138a936410c12cf0639f6160c | 15,075 | py | Python | real_robots/generate_goals.py | GOAL-Robots/real_robots | 6dd5b70bad14426483e2d3ee29b3d8708d34e1ba | [
"MIT"
] | 35 | 2019-08-06T05:05:27.000Z | 2022-02-28T06:27:03.000Z | real_robots/generate_goals.py | GOAL-Robots/real_robots | 6dd5b70bad14426483e2d3ee29b3d8708d34e1ba | [
"MIT"
] | 27 | 2019-08-06T11:18:26.000Z | 2021-11-15T17:49:09.000Z | real_robots/generate_goals.py | GOAL-Robots/real_robots | 6dd5b70bad14426483e2d3ee29b3d8708d34e1ba | [
"MIT"
] | 16 | 2019-08-06T11:19:41.000Z | 2022-02-28T06:27:13.000Z | # -*- coding: utf-8 -*-
"""Console script to generate goals for real_robots"""
import click
import numpy as np
from real_robots.envs import Goal
import gym
import math
basePosition = None
slow = False
render = False
def pairwise_distances(a):
b = a.reshape(a.shape[0], 1, a.shape[1])
return np.sqrt(np.einsu... | 33.952703 | 176 | 0.574859 | 1,870 | 15,075 | 4.504813 | 0.16738 | 0.026116 | 0.019943 | 0.012346 | 0.302469 | 0.269943 | 0.217949 | 0.184829 | 0.162749 | 0.162749 | 0 | 0.031634 | 0.314295 | 15,075 | 443 | 177 | 34.029345 | 0.783303 | 0.068458 | 0 | 0.261765 | 1 | 0 | 0.065445 | 0.006802 | 0 | 0 | 0 | 0.002257 | 0 | 1 | 0.038235 | false | 0 | 0.017647 | 0 | 0.114706 | 0.047059 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3eba9c83ad372025ef5bbe4dcec389cd19020fb8 | 1,983 | py | Python | bin/train_lm.py | mcharnelli/DenoiseSum | 2787ba46a9d7694917433070a7df2a7c3b269b2d | [
"MIT"
] | null | null | null | bin/train_lm.py | mcharnelli/DenoiseSum | 2787ba46a9d7694917433070a7df2a7c3b269b2d | [
"MIT"
] | null | null | null | bin/train_lm.py | mcharnelli/DenoiseSum | 2787ba46a9d7694917433070a7df2a7c3b269b2d | [
"MIT"
] | null | null | null | import argparse
from DenoiseSum import DATA_PATH
from DenoiseSum.LanguageModel.training import train_language_model
if __name__ == '__main__':
parser = argparse.ArgumentParser()
parser.add_argument('--dataset', default='rotten', type=str)
parser.add_argument('--no_instance', default=40, type=int)
pars... | 33.610169 | 85 | 0.732728 | 282 | 1,983 | 4.879433 | 0.258865 | 0.117733 | 0.222384 | 0.116279 | 0.449128 | 0.170058 | 0.052326 | 0 | 0 | 0 | 0 | 0.012586 | 0.118507 | 1,983 | 58 | 86 | 34.189655 | 0.7746 | 0 | 0 | 0.052632 | 0 | 0 | 0.166919 | 0.036813 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.078947 | 0 | 0.078947 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3ebc564611a92dbd71b2d08f07e8f63644f1e4ac | 672 | py | Python | test/test_head.py | zydmayday/pamda | 6740d0294f3bedbeeef3bbc3042a43dceb3239b2 | [
"MIT"
] | 1 | 2022-03-14T07:35:13.000Z | 2022-03-14T07:35:13.000Z | test/test_head.py | zydmayday/pamda | 6740d0294f3bedbeeef3bbc3042a43dceb3239b2 | [
"MIT"
] | 3 | 2022-03-24T02:30:18.000Z | 2022-03-31T07:46:04.000Z | test/test_head.py | zydmayday/pamda | 6740d0294f3bedbeeef3bbc3042a43dceb3239b2 | [
"MIT"
] | null | null | null | import unittest
import ramda as R
"""
https://github.com/ramda/ramda/blob/master/test/head.js
"""
class TestHead(unittest.TestCase):
def test_returns_the_first_element_of_an_ordered_collection(self):
self.assertEqual(1, R.head([1, 2, 3]))
self.assertEqual(2, R.head([2, 3]))
self.assertEqual(3, R.head(... | 24 | 68 | 0.669643 | 99 | 672 | 4.333333 | 0.454545 | 0.104895 | 0.111888 | 0.079254 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015652 | 0.144345 | 672 | 27 | 69 | 24.888889 | 0.730435 | 0 | 0 | 0 | 0 | 0 | 0.027915 | 0 | 0 | 0 | 0 | 0 | 0.529412 | 1 | 0.117647 | false | 0 | 0.117647 | 0 | 0.294118 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3ebca1f4151c0caa2f51fd8ec6d2543025695ab8 | 1,332 | py | Python | exhaust/urls.py | lewiscollard/exhaust | 510a66c97bec00576afe321e6bcff5476681bf8b | [
"WTFPL"
] | null | null | null | exhaust/urls.py | lewiscollard/exhaust | 510a66c97bec00576afe321e6bcff5476681bf8b | [
"WTFPL"
] | 5 | 2021-11-08T06:58:11.000Z | 2022-03-12T14:39:26.000Z | exhaust/urls.py | lewiscollard/exhaust | 510a66c97bec00576afe321e6bcff5476681bf8b | [
"WTFPL"
] | null | null | null | from django.conf import settings
from django.conf.urls.static import static
from django.contrib import admin
from django.contrib.sitemaps.views import sitemap
from django.urls import include, path
from django.views.generic import TemplateView
from markdownx.views import MarkdownifyView
from exhaust.posts.sitemaps impo... | 47.571429 | 110 | 0.750751 | 183 | 1,332 | 5.360656 | 0.409836 | 0.061162 | 0.055046 | 0.079511 | 0.091743 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012831 | 0.122372 | 1,332 | 27 | 111 | 49.333333 | 0.826347 | 0.149399 | 0 | 0 | 0 | 0 | 0.192205 | 0.070859 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.363636 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
3ec30169a9c4e9d16831ae727a8206c5eebacd0f | 459 | py | Python | utils/inter_area.py | edosedgar/mtcnnattack | a880edba7ee525bb61047f7244d64c458b4555b4 | [
"MIT"
] | 68 | 2019-10-16T21:55:53.000Z | 2021-09-29T10:43:25.000Z | utils/inter_area.py | edosedgar/mtcnnattack | a880edba7ee525bb61047f7244d64c458b4555b4 | [
"MIT"
] | 13 | 2019-10-28T16:01:03.000Z | 2021-12-10T08:09:02.000Z | utils/inter_area.py | edosedgar/mtcnnattack | a880edba7ee525bb61047f7244d64c458b4555b4 | [
"MIT"
] | 14 | 2019-10-17T10:01:15.000Z | 2021-12-18T17:37:06.000Z | from __future__ import division, print_function, absolute_import
import tensorflow as tf
import numpy as np
def inter_area_batch(im_inp,h,w,hs,ws):
# Do INTER_AREA resize here
# h, w - input size
# hs, ws - scaled size
whole = im_inp
return tf.clip_by_value(whole,0.,1.)
def resize_area_batch(imgs, hs, ws):
... | 28.6875 | 64 | 0.708061 | 80 | 459 | 3.8 | 0.525 | 0.052632 | 0.092105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005319 | 0.180828 | 459 | 16 | 65 | 28.6875 | 0.803191 | 0.139434 | 0 | 0 | 0 | 0 | 0.028061 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.272727 | 0 | 0.636364 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
3ec84bf8fae20c6497f6201aaa6b06126769e66e | 496 | py | Python | ml_rest_api/api/health/liveness.py | jgbustos/ml-rest-api | 9b3623dff718c20c82c2a86fa920d89d5eca388b | [
"MIT"
] | 15 | 2018-06-27T11:05:20.000Z | 2021-11-01T06:17:33.000Z | ml_rest_api/api/health/liveness.py | jgbustos/ml-rest-api | 9b3623dff718c20c82c2a86fa920d89d5eca388b | [
"MIT"
] | 2 | 2021-12-20T22:26:47.000Z | 2022-01-03T08:26:12.000Z | ml_rest_api/api/health/liveness.py | jgbustos/ml-rest-api | 9b3623dff718c20c82c2a86fa920d89d5eca388b | [
"MIT"
] | 4 | 2020-04-10T07:33:48.000Z | 2021-03-16T12:07:05.000Z | """This module implements the HealthLiveness class."""
from flask_restx import Resource
from ml_rest_api.api.restx import api, FlaskApiReturnType
@api.default_namespace.route("/liveness")
class HealthLiveness(Resource):
"""Implements the /liveness GET method."""
@staticmethod
@api.doc(
responses=... | 23.619048 | 57 | 0.627016 | 49 | 496 | 6.265306 | 0.653061 | 0.084691 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016216 | 0.254032 | 496 | 20 | 58 | 24.8 | 0.813514 | 0.221774 | 0 | 0 | 0 | 0 | 0.059659 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | true | 0 | 0.166667 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3ee4c1a6665ba87d4bfe23a90441f72744ec85e7 | 3,052 | py | Python | cs15211/KthLargestElementinaStream.py | JulyKikuAkita/PythonPrac | 0ba027d9b8bc7c80bc89ce2da3543ce7a49a403c | [
"Apache-2.0"
] | 1 | 2021-07-05T01:53:30.000Z | 2021-07-05T01:53:30.000Z | cs15211/KthLargestElementinaStream.py | JulyKikuAkita/PythonPrac | 0ba027d9b8bc7c80bc89ce2da3543ce7a49a403c | [
"Apache-2.0"
] | null | null | null | cs15211/KthLargestElementinaStream.py | JulyKikuAkita/PythonPrac | 0ba027d9b8bc7c80bc89ce2da3543ce7a49a403c | [
"Apache-2.0"
] | 1 | 2018-01-08T07:14:08.000Z | 2018-01-08T07:14:08.000Z | __source__ = 'https://leetcode.com/problems/kth-largest-element-in-a-stream/'
# Time: O()
# Space: O()
#
# Description: Leetcode # 703. Kth Largest Element in a Stream
#
# Design a class to find the kth largest element in a stream.
# Note that it is the kth largest element in the sorted order, not the kth distinct ele... | 24.031496 | 101 | 0.579292 | 392 | 3,052 | 4.47449 | 0.32398 | 0.04447 | 0.048461 | 0.054162 | 0.187571 | 0.140251 | 0.050171 | 0.050171 | 0.050171 | 0.050171 | 0 | 0.019213 | 0.300786 | 3,052 | 127 | 102 | 24.031496 | 0.802718 | 0.273263 | 0 | 0.168675 | 0 | 0 | 0.887266 | 0.010041 | 0 | 0 | 0 | 0 | 0.012048 | 1 | 0.012048 | false | 0.012048 | 0.012048 | 0 | 0.108434 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3ee4c20c913701926d013dfffa42aa2cb3577e5f | 2,900 | py | Python | examples/nv-hpc-sdk_test.py | owainkenwayucl/gepy | 26b3f135cf2a076923513b3028e866708fddceec | [
"MIT"
] | null | null | null | examples/nv-hpc-sdk_test.py | owainkenwayucl/gepy | 26b3f135cf2a076923513b3028e866708fddceec | [
"MIT"
] | null | null | null | examples/nv-hpc-sdk_test.py | owainkenwayucl/gepy | 26b3f135cf2a076923513b3028e866708fddceec | [
"MIT"
] | null | null | null | #/usr/bin/env python3
# This script does a test of a particular nvidia compiler on Myriad
import sys
import os
import copy
import time
import gepy
import gepy.executor
compiler_module = 'compilers/nvhpc/21.11'
repo = 'https://github.com/UCL-RITS/pi_examples.git'
if (len(sys.argv) > 1):
compiler_module = sys.arg... | 34.117647 | 89 | 0.756897 | 424 | 2,900 | 4.945755 | 0.254717 | 0.089175 | 0.137816 | 0.170243 | 0.546495 | 0.416786 | 0.416786 | 0.290892 | 0.04721 | 0 | 0 | 0.003381 | 0.082069 | 2,900 | 85 | 90 | 34.117647 | 0.784373 | 0.076552 | 0 | 0 | 0 | 0 | 0.176647 | 0.026572 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3eeb3d2448f4465ab55f332793ec1ec9ac0c0272 | 6,034 | py | Python | assignments/assignment2/layers.py | INeedTractorPlz/dlcourse_ai | 52c85f82ed567996667d761cfe2c1f8ab165380b | [
"MIT"
] | 1 | 2019-07-22T09:50:54.000Z | 2019-07-22T09:50:54.000Z | assignments/assignment2/layers.py | INeedTractorPlz/dlcourse_ai | 52c85f82ed567996667d761cfe2c1f8ab165380b | [
"MIT"
] | null | null | null | assignments/assignment2/layers.py | INeedTractorPlz/dlcourse_ai | 52c85f82ed567996667d761cfe2c1f8ab165380b | [
"MIT"
] | 1 | 2020-11-30T18:38:21.000Z | 2020-11-30T18:38:21.000Z | import numpy as np
from math import exp, log
def l2_regularization(W, reg_strength):
"""
Computes L2 regularization loss on weights and its gradient
Arguments:
W, np array - weights
reg_strength - float value
Returns:
loss, single value - l2 regularization loss
gradient, np.ar... | 30.321608 | 93 | 0.596453 | 778 | 6,034 | 4.520566 | 0.226221 | 0.025874 | 0.025874 | 0.018197 | 0.362525 | 0.299119 | 0.23031 | 0.176855 | 0.176855 | 0.123401 | 0 | 0.007597 | 0.301956 | 6,034 | 198 | 94 | 30.474747 | 0.827398 | 0.46006 | 0 | 0.15625 | 0 | 0 | 0.008573 | 0 | 0 | 0 | 0 | 0.030303 | 0 | 1 | 0.1875 | false | 0 | 0.03125 | 0.03125 | 0.421875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3ef95652be59e9b838fc46072ac44dba97320d06 | 249 | py | Python | codes/2/4.py | BigShuang/python-introductory-exercises | 9b8d391ce5fcbd12a654aba1c62a746ddb52a42d | [
"MIT"
] | null | null | null | codes/2/4.py | BigShuang/python-introductory-exercises | 9b8d391ce5fcbd12a654aba1c62a746ddb52a42d | [
"MIT"
] | null | null | null | codes/2/4.py | BigShuang/python-introductory-exercises | 9b8d391ce5fcbd12a654aba1c62a746ddb52a42d | [
"MIT"
] | null | null | null | def get_lcm(a, b):
multiple = a * b
max_v = a
if b > a:
max_v = b
for i in range(max_v, multiple):
if i % a == 0 and i % b == 0:
return i
return multiple
print(get_lcm(6, 8))
print(get_lcm(12, 15))
| 16.6 | 37 | 0.497992 | 46 | 249 | 2.565217 | 0.456522 | 0.152542 | 0.186441 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051613 | 0.37751 | 249 | 14 | 38 | 17.785714 | 0.709677 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.272727 | 0.181818 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3efea0ca959dee424ac6339b9ad48ed87e924fc5 | 4,130 | py | Python | botc/commands/abilities/tb/learn.py | BlueLenz/Blood-on-the-Clocktower-Storyteller-Discord-Bot | 1932c649c81a5a1eab735d7abdee0761c2853940 | [
"MIT"
] | 1 | 2022-02-18T00:42:14.000Z | 2022-02-18T00:42:14.000Z | botc/commands/abilities/tb/learn.py | BlueLenz/Blood-on-the-Clocktower-Storyteller-Discord-Bot | 1932c649c81a5a1eab735d7abdee0761c2853940 | [
"MIT"
] | 1 | 2020-07-07T03:47:44.000Z | 2020-07-07T03:47:44.000Z | botc/commands/abilities/tb/learn.py | BlueLenz/Blood-on-the-Clocktower-Storyteller-Discord-Bot | 1932c649c81a5a1eab735d7abdee0761c2853940 | [
"MIT"
] | 1 | 2022-02-18T00:42:19.000Z | 2022-02-18T00:42:19.000Z | """Learn command"""
import botutils
import discord
import traceback
import json
from discord.ext import commands
from botc import check_if_is_player, check_if_is_night, check_if_dm, RoleCannotUseCommand, \
check_if_player_really_dead, check_if_can_learn, PlayerParser, AbilityForbidden, \
NotAPlayer, BOTCUtils,... | 39.711538 | 121 | 0.635351 | 445 | 4,130 | 5.74382 | 0.310112 | 0.030125 | 0.052034 | 0.031299 | 0.152191 | 0.111894 | 0.111894 | 0.111894 | 0.076682 | 0.044601 | 0 | 0 | 0.255206 | 4,130 | 104 | 122 | 39.711538 | 0.830949 | 0.188136 | 0 | 0.222222 | 0 | 0 | 0.059266 | 0.006899 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0.055556 | 0.083333 | 0 | 0.208333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
4104d7b367f3b2880543f295084e194dc8966fad | 514 | py | Python | applemusicAPI.py | SeanCBlue652/swap-stream-backend | b9bc5fb98f98fc7fdfdf886b7a165e34e174a3bb | [
"MIT"
] | null | null | null | applemusicAPI.py | SeanCBlue652/swap-stream-backend | b9bc5fb98f98fc7fdfdf886b7a165e34e174a3bb | [
"MIT"
] | null | null | null | applemusicAPI.py | SeanCBlue652/swap-stream-backend | b9bc5fb98f98fc7fdfdf886b7a165e34e174a3bb | [
"MIT"
] | 1 | 2022-01-31T19:36:23.000Z | 2022-01-31T19:36:23.000Z | import requests
import json
import jwt
import cryptography
#ploads = {'Authorization': 'Bearer '}
#r = requests.get('https://api.music.apple.com/v1/me/library/playlists')
#print(r.headers)
#print(r.text)
#print(r.json())
import applemusicpy
secret_key = ''
key_id = '74G4697BU4'
team_id = 'QTM38LJQ3P'
am = applemusic... | 24.47619 | 72 | 0.717899 | 71 | 514 | 5.112676 | 0.633803 | 0.049587 | 0.066116 | 0.077135 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02603 | 0.103113 | 514 | 21 | 73 | 24.47619 | 0.761388 | 0.29572 | 0 | 0 | 0 | 0 | 0.192737 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.416667 | 0 | 0.416667 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
4104dd90ae7e3373b5fbc9833e6adfbf8b68f391 | 971 | py | Python | tests/test_utils.py | MerleLiuKun/python-twitter | b3f7d93e006945cbc7baa5852e90ca2b4c93eac4 | [
"MIT"
] | 53 | 2020-08-31T04:23:35.000Z | 2022-03-30T13:20:21.000Z | tests/test_utils.py | MerleLiuKun/python-twitter | b3f7d93e006945cbc7baa5852e90ca2b4c93eac4 | [
"MIT"
] | 99 | 2020-12-13T12:44:44.000Z | 2022-03-29T02:51:13.000Z | tests/test_utils.py | MerleLiuKun/python-twitter | b3f7d93e006945cbc7baa5852e90ca2b4c93eac4 | [
"MIT"
] | 13 | 2020-12-13T12:47:05.000Z | 2021-12-18T07:29:38.000Z | """
Utils tests
"""
import pytest
from pytwitter.error import PyTwitterError
from pytwitter.utils.validators import enf_comma_separated
from pytwitter.utils.convertors import conv_type
def test_comma_separated():
value_is_none = enf_comma_separated(name="none", value="")
assert value_is_none is None
... | 28.558824 | 76 | 0.709578 | 139 | 971 | 4.71223 | 0.302158 | 0.170992 | 0.155725 | 0.160305 | 0.207634 | 0.109924 | 0 | 0 | 0 | 0 | 0 | 0.018564 | 0.167868 | 971 | 33 | 77 | 29.424242 | 0.792079 | 0.022657 | 0 | 0 | 0 | 0 | 0.092949 | 0 | 0 | 0 | 0 | 0 | 0.3 | 1 | 0.1 | false | 0 | 0.2 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
410b32c0a3c9cb94149b03a52d11c9940a8b0248 | 6,045 | py | Python | py/path/svn/testing/svntestbase.py | woodrow/pyoac | b5dc59e6a38e7912db47f26fb23ffa4764a3c0e7 | [
"MIT"
] | 1 | 2019-05-27T00:58:46.000Z | 2019-05-27T00:58:46.000Z | py/path/svn/testing/svntestbase.py | woodrow/pyoac | b5dc59e6a38e7912db47f26fb23ffa4764a3c0e7 | [
"MIT"
] | null | null | null | py/path/svn/testing/svntestbase.py | woodrow/pyoac | b5dc59e6a38e7912db47f26fb23ffa4764a3c0e7 | [
"MIT"
] | null | null | null | import sys
import py
from py import path, test, process
from py.__.path.testing.fscommon import CommonFSTests, setuptestfs
from py.__.path.svn import cache, svncommon
mypath = py.magic.autopath()
repodump = mypath.dirpath('repotest.dump')
def getsvnbin():
svnbin = py.path.local.sysfind('svn')
if svnbin is Non... | 32.5 | 74 | 0.614723 | 761 | 6,045 | 4.785808 | 0.272011 | 0.057111 | 0.039264 | 0.032949 | 0.299286 | 0.248764 | 0.208677 | 0.175728 | 0.148545 | 0.138386 | 0 | 0.011581 | 0.257237 | 6,045 | 185 | 75 | 32.675676 | 0.799555 | 0.185277 | 0 | 0.23622 | 0 | 0 | 0.090045 | 0 | 0 | 0 | 0 | 0 | 0.141732 | 0 | null | null | 0 | 0.03937 | null | null | 0.047244 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
410d5d53780e3bc21f4ddc915dee2f19ff50587a | 3,116 | py | Python | client_handler.py | Walabot-Projects/Walabot-WebSocketServer | 1882ebf873d9e850be8debde5c717ea2f711ad6f | [
"MIT"
] | 2 | 2020-03-07T18:18:42.000Z | 2020-04-08T00:03:35.000Z | client_handler.py | Walabot-Projects/Walabot-WebSocketServer | 1882ebf873d9e850be8debde5c717ea2f711ad6f | [
"MIT"
] | null | null | null | client_handler.py | Walabot-Projects/Walabot-WebSocketServer | 1882ebf873d9e850be8debde5c717ea2f711ad6f | [
"MIT"
] | 2 | 2019-11-20T16:38:52.000Z | 2020-03-07T18:18:44.000Z |
'''
This is a asynchronous function to handle with client requirements.
This client handler is with a strong bond to NewWalabotAppTemplate.py requirements.
Basic functions that must be:
start()
get_data()
stop()
Feel free to add your uwn function just note that you also support client-side commands.
... | 33.869565 | 112 | 0.458601 | 278 | 3,116 | 5.104317 | 0.388489 | 0.054264 | 0.063425 | 0.080338 | 0.131078 | 0.131078 | 0.093023 | 0 | 0 | 0 | 0 | 0 | 0.385751 | 3,116 | 91 | 113 | 34.241758 | 0.741379 | 0.198652 | 0 | 0.254902 | 0 | 0 | 0.105287 | 0 | 0 | 0 | 0 | 0.021978 | 0 | 1 | 0.019608 | false | 0 | 0.137255 | 0 | 0.176471 | 0.117647 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
410e8e7a88088dc5fdd96396899e764965a77fd9 | 2,373 | py | Python | app_settings/config.py | arcticle/app-settings | a84150f8c1b0721d7458276221eead9f55e04ea7 | [
"MIT"
] | null | null | null | app_settings/config.py | arcticle/app-settings | a84150f8c1b0721d7458276221eead9f55e04ea7 | [
"MIT"
] | null | null | null | app_settings/config.py | arcticle/app-settings | a84150f8c1b0721d7458276221eead9f55e04ea7 | [
"MIT"
] | null | null | null | import os, re, collections
from attrdict import AttrDict
from app_settings import file_search
from app_settings import FileFactory
__all__ = ["Config"]
class Config(object):
def __init__(self, files=None, dir=None, default=None, filter=None, **kwargs):
self._validate(files, dir, default)
self._cr... | 31.223684 | 82 | 0.616098 | 292 | 2,373 | 4.732877 | 0.25 | 0.071635 | 0.050651 | 0.030391 | 0.160637 | 0.137482 | 0 | 0 | 0 | 0 | 0 | 0 | 0.282764 | 2,373 | 75 | 83 | 31.64 | 0.811986 | 0 | 0 | 0.1 | 0 | 0 | 0.022756 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 1 | 0.216667 | false | 0 | 0.066667 | 0.066667 | 0.433333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4117d49303a71735361ffbe0c4f9ee5c957c8379 | 671 | py | Python | core/apps/kubeops_api/migrations/0063_auto_20200223_0557.py | r4b3rt/KubeOperator | 1fef19816ada64d8b25f87a5e3356ea5f161d7e5 | [
"Apache-2.0"
] | 3 | 2020-04-05T04:53:24.000Z | 2020-04-05T04:53:34.000Z | core/apps/kubeops_api/migrations/0063_auto_20200223_0557.py | r4b3rt/KubeOperator | 1fef19816ada64d8b25f87a5e3356ea5f161d7e5 | [
"Apache-2.0"
] | 27 | 2021-05-05T02:51:26.000Z | 2022-01-04T21:30:21.000Z | core/apps/kubeops_api/migrations/0063_auto_20200223_0557.py | r4b3rt/KubeOperator | 1fef19816ada64d8b25f87a5e3356ea5f161d7e5 | [
"Apache-2.0"
] | 1 | 2020-11-22T01:15:05.000Z | 2020-11-22T01:15:05.000Z | # Generated by Django 2.2.10 on 2020-02-23 05:57
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0002_userprofile'),
('kubeops_api', '0062_auto_20200221_0510'),
]
operations = [
migrations.AddField(
model_na... | 26.84 | 111 | 0.584203 | 67 | 671 | 5.716418 | 0.716418 | 0.046997 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.079918 | 0.272727 | 671 | 24 | 112 | 27.958333 | 0.704918 | 0.068554 | 0 | 0.111111 | 1 | 0 | 0.205457 | 0.036918 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.055556 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
411826f627e3baa47a8ad114c0578bbce2b68ad6 | 747 | py | Python | tests/detail/jupyter_app/test_format_deployments_info.py | intdata-bsc/idact | 54cb65a711c145351e205970c27c83e6393cccf5 | [
"MIT"
] | 5 | 2018-12-06T15:40:34.000Z | 2019-06-19T11:22:58.000Z | tests/detail/jupyter_app/test_format_deployments_info.py | garstka/idact | b9c8405c94db362c4a51d6bfdf418b14f06f0da1 | [
"MIT"
] | 9 | 2018-12-06T16:35:26.000Z | 2019-04-28T19:01:40.000Z | tests/detail/jupyter_app/test_format_deployments_info.py | intdata-bsc/idact | 54cb65a711c145351e205970c27c83e6393cccf5 | [
"MIT"
] | 2 | 2019-04-28T19:18:58.000Z | 2019-06-17T06:56:28.000Z | from idact.detail.jupyter_app.format_deployments_info import \
format_deployments_info
def test_format_deployments_info():
formatted = format_deployments_info(cluster_name='cluster1')
assert formatted == (
"\nTo access the allocation and notebook deployments from cluster,"
" you can use th... | 39.315789 | 75 | 0.639893 | 87 | 747 | 5.321839 | 0.505747 | 0.146868 | 0.181425 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006885 | 0.222222 | 747 | 18 | 76 | 41.5 | 0.790017 | 0 | 0 | 0 | 0 | 0 | 0.552878 | 0.15261 | 0 | 0 | 0 | 0 | 0.0625 | 1 | 0.0625 | false | 0 | 0.125 | 0 | 0.1875 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4127dde4d191202ece51f2aa3cd114dbf1be4c73 | 387 | py | Python | Models/Subject.py | erikhalperin/Scheduler | 1c24e6a14693260b809e9600c43d3f6df476e6c8 | [
"MIT"
] | 1 | 2020-02-08T15:46:56.000Z | 2020-02-08T15:46:56.000Z | Models/Subject.py | erikhalperin/Scheduler | 1c24e6a14693260b809e9600c43d3f6df476e6c8 | [
"MIT"
] | null | null | null | Models/Subject.py | erikhalperin/Scheduler | 1c24e6a14693260b809e9600c43d3f6df476e6c8 | [
"MIT"
] | null | null | null | import itertools
class Subject:
__id_generator = itertools.count(0, 1)
@staticmethod
def get_all_subjects():
return ['Eng1', 'Eng2', 'Eng3', 'Eng4', 'Alg1', 'Alg2', 'Geo', 'PreC',
'Phys', 'Chem', 'SciE', 'Bio', 'Civ1', 'Civ2', 'Civ3', 'Civ4']
def __init__(self, name: str):
... | 25.8 | 78 | 0.563307 | 46 | 387 | 4.478261 | 0.782609 | 0.106796 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041522 | 0.25323 | 387 | 14 | 79 | 27.642857 | 0.67128 | 0 | 0 | 0 | 0 | 0 | 0.160207 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.1 | 0.1 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
412ab4601806ca0f4cf8d45f2681028dc04b979b | 1,028 | py | Python | hossein/contest/52544/52544.py | mhdehghan/quera-answers | 28dc0a9dbe3697593d7cbe05c9f05db2d3b01790 | [
"MIT"
] | null | null | null | hossein/contest/52544/52544.py | mhdehghan/quera-answers | 28dc0a9dbe3697593d7cbe05c9f05db2d3b01790 | [
"MIT"
] | null | null | null | hossein/contest/52544/52544.py | mhdehghan/quera-answers | 28dc0a9dbe3697593d7cbe05c9f05db2d3b01790 | [
"MIT"
] | null | null | null | # https://quera.ir/problemset/contest/52544
CORNER_ONE = {(0, 0), (0, 1), (0, 2), (0, 6), (0, 7), (0, 8),
(1, 0), (1, 2), (1, 6), (1, 8),
(2, 0), (2, 1), (2, 2), (2, 6), (2, 7), (2, 8),
(6, 0), (6, 1), (6, 2), (6, 6), (6, 7), (6, 8),
(7, 0), (7, 2), (7, 6), (7, 8... | 30.235294 | 61 | 0.402724 | 168 | 1,028 | 2.386905 | 0.190476 | 0.104738 | 0.069825 | 0.067332 | 0.299252 | 0.209476 | 0.109726 | 0.109726 | 0 | 0 | 0 | 0.148206 | 0.376459 | 1,028 | 33 | 62 | 31.151515 | 0.477379 | 0.039883 | 0 | 0.206897 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.103448 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f5b14d9810bcc2f6a37557faaaaaa28aeaebc31a | 1,583 | py | Python | api_v1/migrations/0001_initial.py | crazy-coding/django-rest-swagger-master | 599423e0853888225eca85f4e8f58c2989f44ebe | [
"MIT"
] | 1 | 2020-12-02T07:16:38.000Z | 2020-12-02T07:16:38.000Z | api_v1/migrations/0001_initial.py | up-mikita/django-rest-swagger-master | 599423e0853888225eca85f4e8f58c2989f44ebe | [
"MIT"
] | null | null | null | api_v1/migrations/0001_initial.py | up-mikita/django-rest-swagger-master | 599423e0853888225eca85f4e8f58c2989f44ebe | [
"MIT"
] | 2 | 2020-12-01T08:37:22.000Z | 2020-12-02T07:16:29.000Z | # Generated by Django 3.1.1 on 2020-09-23 07:05
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Group',
fields=[
... | 35.977273 | 120 | 0.552748 | 158 | 1,583 | 5.405063 | 0.449367 | 0.042155 | 0.063232 | 0.084309 | 0.257611 | 0.257611 | 0.185012 | 0.185012 | 0.185012 | 0.185012 | 0 | 0.025501 | 0.30638 | 1,583 | 43 | 121 | 36.813953 | 0.752277 | 0.028427 | 0 | 0.333333 | 1 | 0 | 0.093099 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.027778 | 0.055556 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f5b66219adaa232e35790e5082a02cf3d0db7022 | 276 | py | Python | test/test_images.py | mwang87/SMART_NMR | 32c3411498daedb0b533bf5b7298a9fc48ff3bde | [
"MIT"
] | null | null | null | test/test_images.py | mwang87/SMART_NMR | 32c3411498daedb0b533bf5b7298a9fc48ff3bde | [
"MIT"
] | 2 | 2021-03-09T17:59:08.000Z | 2021-04-29T20:45:11.000Z | test/test_images.py | mwang87/SMART_NMR | 32c3411498daedb0b533bf5b7298a9fc48ff3bde | [
"MIT"
] | null | null | null | import sys
sys.path.insert(0, "..")
import smart_utils
import os
import glob
def test_draw():
test_files = glob.glob("Data/*")
for test_file in test_files:
print(test_file)
smart_utils.draw_nmr(test_file, "{}.png".format(os.path.basename(test_file))) | 23 | 85 | 0.688406 | 43 | 276 | 4.186047 | 0.511628 | 0.177778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004367 | 0.17029 | 276 | 12 | 85 | 23 | 0.781659 | 0 | 0 | 0 | 0 | 0 | 0.050542 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.4 | 0 | 0.5 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
f5b6b4d1521c67a936dad680ca20ef50e4dea7d6 | 479 | py | Python | modneat/modneat_settings.py | katomasahiro10/modpy | 5b9b61530e6dc520e269eb65f27ce281c8d8acec | [
"MIT"
] | null | null | null | modneat/modneat_settings.py | katomasahiro10/modpy | 5b9b61530e6dc520e269eb65f27ce281c8d8acec | [
"MIT"
] | 28 | 2019-10-08T05:27:28.000Z | 2020-06-21T01:36:10.000Z | modneat/modneat_settings.py | katomasahiro10/modneat | 5b9b61530e6dc520e269eb65f27ce281c8d8acec | [
"MIT"
] | null | null | null | # nn parameters
INPUT_NUM = 2
OUTPUT_NUM = 1
NORMAL_NUM_UPPER_LIMIT = 5
NORMAL_NUM_LOWER_LIMIT = 2
MODULATION_NUM_UPPER_LIMIT = 2
MODULATION_NUM_LOWER_LIMIT = 2
NEURON_NUM_UPPER_LIMIT = 5
CONNECTION_NUM_UPPER_LIMIT = 10
CONNECTION_NUM_LOWER_LIMIT = 1
WEIGHT_UPPER_LIMIT = 1.0
WEIGHT_LOWER_LIMIT = -1.0
BIAS_UPPER_L... | 17.740741 | 34 | 0.810021 | 85 | 479 | 4.082353 | 0.270588 | 0.230548 | 0.14121 | 0.138329 | 0.121037 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064748 | 0.129436 | 479 | 26 | 35 | 18.423077 | 0.767386 | 0.02714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f5bb34544cf236c8367a86a6b71df11a4990e0f4 | 703 | py | Python | examples/management/get_user.py | ZygusPatryk/amqpstorm | 0f3ad84a529f12769d34638a88c38f3055cb05cd | [
"MIT"
] | 140 | 2016-06-07T18:53:57.000Z | 2022-03-23T01:50:15.000Z | examples/management/get_user.py | ZygusPatryk/amqpstorm | 0f3ad84a529f12769d34638a88c38f3055cb05cd | [
"MIT"
] | 85 | 2016-04-11T23:32:32.000Z | 2022-03-19T07:21:21.000Z | examples/management/get_user.py | ZygusPatryk/amqpstorm | 0f3ad84a529f12769d34638a88c38f3055cb05cd | [
"MIT"
] | 38 | 2016-04-20T20:21:13.000Z | 2022-03-23T05:31:58.000Z | from amqpstorm import management
if __name__ == '__main__':
# If using a self-signed certificate, change verify=True to point at your CA bundle.
# You can disable certificate verification for testing by passing in verify=False.
API = management.ManagementApi('https://rmq.amqpstorm.io:15671', 'guest',
... | 35.15 | 88 | 0.642959 | 94 | 703 | 4.670213 | 0.648936 | 0.063781 | 0.045558 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01518 | 0.250356 | 703 | 19 | 89 | 37 | 0.817837 | 0.311522 | 0 | 0 | 0 | 0 | 0.208768 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.083333 | 0.083333 | 0 | 0.083333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
f5bd885557e2157ba8121e39a97b0a40f2df3862 | 5,119 | py | Python | tests/test_archive_operations.py | jpenney/pdar | 4454ffa48c187b94822a3ff3877594883ae32c28 | [
"Apache-2.0"
] | 3 | 2016-10-18T02:10:28.000Z | 2018-07-28T03:48:24.000Z | tests/test_archive_operations.py | jpenney/pdar | 4454ffa48c187b94822a3ff3877594883ae32c28 | [
"Apache-2.0"
] | null | null | null | tests/test_archive_operations.py | jpenney/pdar | 4454ffa48c187b94822a3ff3877594883ae32c28 | [
"Apache-2.0"
] | null | null | null | # This file is part of pdar.
#
# Copyright 2011 Jason Penney
#
# 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... | 35.548611 | 75 | 0.648564 | 603 | 5,119 | 5.3466 | 0.28524 | 0.028226 | 0.055831 | 0.039082 | 0.395471 | 0.374069 | 0.360422 | 0.312655 | 0.255893 | 0.162531 | 0 | 0.016498 | 0.265872 | 5,119 | 143 | 76 | 35.797203 | 0.841405 | 0.261184 | 0 | 0.22973 | 0 | 0 | 0.062431 | 0 | 0 | 0 | 0 | 0 | 0.202703 | 1 | 0.202703 | false | 0 | 0.094595 | 0.013514 | 0.351351 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f5be933543bfc02b556e41796175a5fdc744d0f0 | 460 | py | Python | Dataset/Leetcode/valid/56/149.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/valid/56/149.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/valid/56/149.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | class Solution(object):
def XXX(self, intervals):
"""
轻松秒杀,根据结果集合最后一个和新的元素之间关系判断是否要修改
"""
if not intervals: return []
intervals = sorted(intervals)
res = [intervals[0]]
for i in range(1, len(intervals)):
if intervals[i][0] <= res[-1][1]:
... | 28.75 | 71 | 0.493478 | 52 | 460 | 4.365385 | 0.461538 | 0.070485 | 0.044053 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036667 | 0.347826 | 460 | 15 | 72 | 30.666667 | 0.72 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f5ccac6c70985c75a7e12db0298b013761a0aa16 | 1,614 | py | Python | 496_Next-Greater-Element-I.py | Coalin/Daily-LeetCode-Exercise | a064dcdc3a82314be4571d342c4807291a24f69f | [
"MIT"
] | 3 | 2018-07-05T05:51:10.000Z | 2019-05-04T08:35:44.000Z | 496_Next-Greater-Element-I.py | Coalin/Daily-LeetCode-Exercise | a064dcdc3a82314be4571d342c4807291a24f69f | [
"MIT"
] | null | null | null | 496_Next-Greater-Element-I.py | Coalin/Daily-LeetCode-Exercise | a064dcdc3a82314be4571d342c4807291a24f69f | [
"MIT"
] | null | null | null | # Method I:
class Solution:
def nextGreaterElement(self, nums1: List[int], nums2: List[int]) -> List[int]:
res = []
for num in nums1:
index = 0
cur_num_index = 0
while index <= len(nums2)-1:
if nums2[index] == num:
... | 26.459016 | 82 | 0.395291 | 161 | 1,614 | 3.795031 | 0.217391 | 0.07856 | 0.144026 | 0.06874 | 0.337152 | 0.337152 | 0.225859 | 0.225859 | 0.225859 | 0.225859 | 0 | 0.034749 | 0.518587 | 1,614 | 60 | 83 | 26.9 | 0.751609 | 0.032218 | 0 | 0.357143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.