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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6fd0eba463bd70bdc09003afa29ef2e1f06dde61 | 6,795 | py | Python | smores/storage.py | 2087829p/smores | ee3fe29397221d1f59832ffe30a43ae15c12637f | [
"MIT"
] | null | null | null | smores/storage.py | 2087829p/smores | ee3fe29397221d1f59832ffe30a43ae15c12637f | [
"MIT"
] | null | null | null | smores/storage.py | 2087829p/smores | ee3fe29397221d1f59832ffe30a43ae15c12637f | [
"MIT"
] | null | null | null | __author__ = 'tony petrov'
import os
import pickle
import time
import threading
import constants
from concurrent import futures
import Queue
def __abs_path__(fl):
curr_dir = os.path.realpath(os.path.join(os.getcwd(), os.path.dirname(__file__)))
abs_file_path = os.path.join(curr_dir, fl)
return abs_file_p... | 32.826087 | 124 | 0.607211 | 861 | 6,795 | 4.58072 | 0.283391 | 0.028398 | 0.015213 | 0.016227 | 0.149848 | 0.124239 | 0.061359 | 0.061359 | 0.061359 | 0.045639 | 0 | 0.001052 | 0.300809 | 6,795 | 206 | 125 | 32.985437 | 0.829089 | 0.097425 | 0 | 0.222892 | 0 | 0 | 0.121242 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.054217 | null | null | 0.024096 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
6fd3934a5ba0589559139ed945a7ff05f314a125 | 44,998 | py | Python | src/intensio_obfuscator/core/obfuscation/intensio_replace.py | bbhunter/Intensio-Obfuscator | f66a22b50c19793edac673cfd7dc319405205c39 | [
"MIT"
] | 553 | 2019-06-08T17:47:41.000Z | 2022-03-29T03:12:11.000Z | src/intensio_obfuscator/core/obfuscation/intensio_replace.py | bbhunter/Intensio-Obfuscator | f66a22b50c19793edac673cfd7dc319405205c39 | [
"MIT"
] | 69 | 2019-06-08T13:25:47.000Z | 2022-02-15T08:34:07.000Z | src/intensio_obfuscator/core/obfuscation/intensio_replace.py | bbhunter/Intensio-Obfuscator | f66a22b50c19793edac673cfd7dc319405205c39 | [
"MIT"
] | 130 | 2019-06-08T18:44:13.000Z | 2022-03-27T01:00:52.000Z | # -*- coding: utf-8 -*-
# https://github.com/Hnfull/Intensio-Obfuscator
#---------------------------------------------------------- [Lib] -----------------------------------------------------------#
import re
import fileinput
import os
import sys
from progress.bar import Bar
try:
from intensio_obfuscator.core.o... | 51.960739 | 134 | 0.398084 | 3,010 | 44,998 | 5.930897 | 0.132558 | 0.00773 | 0.006274 | 0.007282 | 0.43054 | 0.369931 | 0.331279 | 0.265853 | 0.230674 | 0.196953 | 0 | 0.006939 | 0.526023 | 44,998 | 865 | 135 | 52.020809 | 0.830083 | 0.079892 | 0 | 0.512301 | 0 | 0.018813 | 0.054702 | 0.001454 | 0 | 0 | 0 | 0 | 0 | 1 | 0.007236 | false | 0.004342 | 0.04631 | 0 | 0.065123 | 0.063676 | 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 |
6fd491c27f531b328ce7b13cd94b4f3add3b723e | 383 | py | Python | flask_blog/__init__.py | ronan7796/flask-blog | 45f943d952e79d051ba9509c36d620c519ef7253 | [
"Apache-2.0"
] | null | null | null | flask_blog/__init__.py | ronan7796/flask-blog | 45f943d952e79d051ba9509c36d620c519ef7253 | [
"Apache-2.0"
] | null | null | null | flask_blog/__init__.py | ronan7796/flask-blog | 45f943d952e79d051ba9509c36d620c519ef7253 | [
"Apache-2.0"
] | null | null | null | from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_bcrypt import Bcrypt
app = Flask(__name__)
bcrypt = Bcrypt(app)
app.config['SECRET_KEY'] = 'd615ef94ada5f7bbc48ec5cf0ca2f335e4'
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///si... | 27.357143 | 64 | 0.775457 | 47 | 383 | 6.06383 | 0.446809 | 0.126316 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048048 | 0.130548 | 383 | 13 | 65 | 29.461538 | 0.807808 | 0 | 0 | 0 | 0 | 0 | 0.308108 | 0.235135 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
6fde55600b21064c706468dc8f63c9200ee8d79e | 228 | py | Python | test cases/common/71 ctarget dependency/gen2.py | iinuwa/meson | 7528c69fcca63889d67c1d6c2463c9e9485585a8 | [
"Apache-2.0"
] | 4,047 | 2015-06-18T10:36:48.000Z | 2022-03-31T09:47:02.000Z | test cases/common/71 ctarget dependency/gen2.py | iinuwa/meson | 7528c69fcca63889d67c1d6c2463c9e9485585a8 | [
"Apache-2.0"
] | 8,206 | 2015-06-14T12:20:48.000Z | 2022-03-31T22:50:37.000Z | test cases/common/71 ctarget dependency/gen2.py | iinuwa/meson | 7528c69fcca63889d67c1d6c2463c9e9485585a8 | [
"Apache-2.0"
] | 1,489 | 2015-06-27T04:06:38.000Z | 2022-03-29T10:14:48.000Z | #!/usr/bin/env python3
import sys, os
from glob import glob
files = glob(os.path.join(sys.argv[1], '*.tmp'))
assert len(files) == 1
with open(files[0]) as ifile, open(sys.argv[2], 'w') as ofile:
ofile.write(ifile.read())
| 20.727273 | 62 | 0.657895 | 41 | 228 | 3.658537 | 0.658537 | 0.093333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025641 | 0.144737 | 228 | 10 | 63 | 22.8 | 0.74359 | 0.092105 | 0 | 0 | 0 | 0 | 0.029126 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
6fdfb0c889fa294d6a7e410714865f610e76bd32 | 381 | py | Python | RL tasks/Utils/buffer.py | IJCAI2020-SGES/SGES | 6d56b8f978ac5893664eaec149f5e87cdcf82496 | [
"MIT"
] | 1 | 2020-06-16T06:50:43.000Z | 2020-06-16T06:50:43.000Z | RL tasks/Utils/buffer.py | IJCAI2020-SGES/SGES | 6d56b8f978ac5893664eaec149f5e87cdcf82496 | [
"MIT"
] | null | null | null | RL tasks/Utils/buffer.py | IJCAI2020-SGES/SGES | 6d56b8f978ac5893664eaec149f5e87cdcf82496 | [
"MIT"
] | null | null | null | import numpy as np
class GradBuffer:
def __init__(self, max_size, grad_dim):
self.max_size = max_size
self.ptr = 0
self.size = 0
self.grads = np.zeros((max_size, grad_dim))
def add(self, grad):
self.grads[self.ptr] = grad
self.ptr = (self.ptr + 1) % self.ma... | 20.052632 | 53 | 0.585302 | 58 | 381 | 3.637931 | 0.344828 | 0.199052 | 0.208531 | 0.132701 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014925 | 0.296588 | 381 | 18 | 54 | 21.166667 | 0.772388 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.090909 | 0 | 0.363636 | 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 |
6fe257dfb90a550b0ad231dc41b534108b3f8104 | 23,358 | py | Python | state_of_sparsity/layers/variational_dropout/nn.py | kiss2u/google-research | 2cd66234656f9e2f4218ed90a2d8aa9cf3139093 | [
"Apache-2.0"
] | 7 | 2020-03-15T12:14:07.000Z | 2021-12-01T07:01:09.000Z | state_of_sparsity/layers/variational_dropout/nn.py | Alfaxad/google-research | 2c0043ecd507e75e2df9973a3015daf9253e1467 | [
"Apache-2.0"
] | 25 | 2020-07-25T08:53:09.000Z | 2022-03-12T00:43:02.000Z | state_of_sparsity/layers/variational_dropout/nn.py | Alfaxad/google-research | 2c0043ecd507e75e2df9973a3015daf9253e1467 | [
"Apache-2.0"
] | 4 | 2020-06-15T03:06:53.000Z | 2021-08-06T16:38:33.000Z | # coding=utf-8
# Copyright 2020 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | 39.389545 | 80 | 0.737692 | 3,537 | 23,358 | 4.756291 | 0.124965 | 0.055579 | 0.006182 | 0.011591 | 0.729121 | 0.699459 | 0.683647 | 0.671997 | 0.657136 | 0.648101 | 0 | 0.011305 | 0.200959 | 23,358 | 592 | 81 | 39.456081 | 0.890056 | 0.65408 | 0 | 0.607143 | 0 | 0 | 0.012884 | 0 | 0 | 0 | 0 | 0 | 0.040816 | 1 | 0.05102 | false | 0 | 0.030612 | 0 | 0.132653 | 0.005102 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 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 |
6fe2e29717faf09a12fd9decbcf3ce4acaf4b2c4 | 8,477 | py | Python | tests/test_logging.py | harupy/mlflow-extend | f502732d92e174721cff5c3bff93c96091dc6db7 | [
"MIT"
] | 9 | 2020-02-25T05:29:06.000Z | 2021-11-21T09:32:08.000Z | tests/test_logging.py | harupy/mlflow-extend | f502732d92e174721cff5c3bff93c96091dc6db7 | [
"MIT"
] | 69 | 2020-03-05T12:32:17.000Z | 2022-01-22T12:50:34.000Z | tests/test_logging.py | harupy/mlflow-extend | f502732d92e174721cff5c3bff93c96091dc6db7 | [
"MIT"
] | 3 | 2020-05-18T00:47:16.000Z | 2020-07-04T20:33:40.000Z | import os
import mlflow
import numpy as np
import pandas as pd
import pytest
from matplotlib import pyplot as plt
from plotly import graph_objects as go
from mlflow_extend import logging as lg
from mlflow_extend.testing.utils import (
_get_default_args,
_read_data,
assert_file_exists_in_artifacts,
ass... | 32.478927 | 85 | 0.644332 | 1,271 | 8,477 | 4.017309 | 0.108576 | 0.037211 | 0.082256 | 0.098707 | 0.787897 | 0.700353 | 0.656287 | 0.643557 | 0.57971 | 0.554642 | 0 | 0.013341 | 0.2042 | 8,477 | 260 | 86 | 32.603846 | 0.743552 | 0 | 0 | 0.528497 | 0 | 0 | 0.062404 | 0 | 0 | 0 | 0 | 0 | 0.170984 | 1 | 0.108808 | false | 0 | 0.088083 | 0 | 0.196891 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6fe559c10e86e62d748346963865acdfa63fbd38 | 762 | py | Python | a1p3.py | g-thacker/CIS3389-HW1 | 6b4964f2d0b5ecbe9be4066b557ffac500599694 | [
"MIT"
] | null | null | null | a1p3.py | g-thacker/CIS3389-HW1 | 6b4964f2d0b5ecbe9be4066b557ffac500599694 | [
"MIT"
] | null | null | null | a1p3.py | g-thacker/CIS3389-HW1 | 6b4964f2d0b5ecbe9be4066b557ffac500599694 | [
"MIT"
] | null | null | null | print("####################################################")
print("#FILENAME:\t\ta1p3.py\t\t\t #")
print("#ASSIGNMENT:\t\tHomework Assignment 1 Pt. 3#")
print("#COURSE/SECTION:\tCIS 3389.251\t\t #")
print("#DUE DATE:\t\tWednesday, 12.February 2020#")
print("####################################################\n\... | 30.48 | 67 | 0.53937 | 101 | 762 | 4.069307 | 0.534653 | 0.019465 | 0.136253 | 0.121655 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039695 | 0.14042 | 762 | 24 | 68 | 31.75 | 0.587786 | 0.049869 | 0 | 0.1 | 0 | 0 | 0.596127 | 0.251729 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.65 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
6fe961b629e5647802302c7eb33bec57bbe29eca | 1,958 | py | Python | fastapi_mvc/generators/project/template/{{cookiecutter.folder_name}}/tests/unit/test_wsgi.py | rszamszur/fastapi-mvc | 98670eda3b485cfe25850773dcc1ae7ae5feced9 | [
"MIT"
] | 98 | 2021-12-21T18:45:07.000Z | 2022-03-27T08:48:37.000Z | fastapi_mvc/generators/project/template/{{cookiecutter.folder_name}}/tests/unit/test_wsgi.py | rszamszur/fastapi-mvc | 98670eda3b485cfe25850773dcc1ae7ae5feced9 | [
"MIT"
] | 48 | 2021-12-21T16:06:56.000Z | 2022-03-26T17:28:57.000Z | fastapi_mvc/generators/project/template/{{cookiecutter.folder_name}}/tests/unit/test_wsgi.py | rszamszur/fastapi-mvc | 98670eda3b485cfe25850773dcc1ae7ae5feced9 | [
"MIT"
] | 16 | 2022-01-05T14:21:50.000Z | 2022-02-13T17:55:07.000Z | import mock
import pytest
from gunicorn.app.base import BaseApplication
from gunicorn.errors import ConfigError
from {{cookiecutter.package_name}} import ApplicationLoader
@mock.patch.object(BaseApplication, "run")
def test_wsgi_conf_defaults(run_mock):
app = mock.Mock()
wsgi = ApplicationLoader(app)
asse... | 29.223881 | 71 | 0.622063 | 245 | 1,958 | 4.877551 | 0.293878 | 0.087866 | 0.141423 | 0.140586 | 0.530544 | 0.468619 | 0.294561 | 0.14728 | 0 | 0 | 0 | 0.036891 | 0.224719 | 1,958 | 66 | 72 | 29.666667 | 0.750329 | 0.022983 | 0 | 0.245283 | 0 | 0 | 0.130298 | 0.015175 | 0 | 0 | 0 | 0 | 0.339623 | 0 | null | null | 0 | 0.09434 | 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 |
6ff0c50f98c82135355e5a6e4f3f4d0bb0027524 | 1,051 | py | Python | binance/enum.py | SuperDBJ/python-binance | a10c046f99605cb035b01bead9e8cc5721948579 | [
"MIT"
] | null | null | null | binance/enum.py | SuperDBJ/python-binance | a10c046f99605cb035b01bead9e8cc5721948579 | [
"MIT"
] | null | null | null | binance/enum.py | SuperDBJ/python-binance | a10c046f99605cb035b01bead9e8cc5721948579 | [
"MIT"
] | null | null | null | # ENUM definitions
# Symbol type
SYMBOL_TYPE_SPOT = 'SPOT'
# Order status
ORDER_STATUS_NEW = 'NEW'
ORDER_STATUS_PARTIALLY_FILLED = 'PARTIALLY_FILLED'
ORDER_STATUS_FILLED = 'FILLED'
ORDER_STATUS_CANCELED = 'CANCELED'
ORDER_STATUS_PENDING_CANCEL = 'PENDING_CANCEL'
ORDER_STATUS_REJECTED = 'REJECTED'
ORDER_STATUS_EXPIRED ... | 24.44186 | 62 | 0.772598 | 147 | 1,051 | 5.088435 | 0.455782 | 0.260695 | 0.044118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039088 | 0.123692 | 1,051 | 42 | 63 | 25.02381 | 0.773073 | 0.147479 | 0 | 0 | 0 | 0 | 0.13867 | 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 |
6ff13aee977c08a7f1ce94ecf541691f133ff20f | 1,295 | py | Python | python算法/2.2如何实现队列(数组实现).py | RobinYaoWenbin/Python-CommonCode | 1ee714541f2fd9c8b96d018d3d4eb94f4edc812a | [
"MIT"
] | 12 | 2020-09-28T03:25:03.000Z | 2022-03-20T07:44:09.000Z | python算法/2.2如何实现队列(数组实现).py | RobinYaoWenbin/Python-CommonCode | 1ee714541f2fd9c8b96d018d3d4eb94f4edc812a | [
"MIT"
] | null | null | null | python算法/2.2如何实现队列(数组实现).py | RobinYaoWenbin/Python-CommonCode | 1ee714541f2fd9c8b96d018d3d4eb94f4edc812a | [
"MIT"
] | 21 | 2020-03-19T00:44:35.000Z | 2022-01-30T03:46:18.000Z | # -*- coding: utf-8 -*-
"""
Created on Thu Nov 28 19:34:48 2019
@author: wenbin
"""
"""
实现一个队列的数据结构,使其具有入队列,出队列,查看队列首尾元素,查看队列大小等功能
数组实现队列.
"""
class MyQueue:
def __init__(self):
self.arr = []
self.front = 0 #队尾头
self.rear = 0 #队尾尾
# 判断队列是否为空
def isEmpty(self):
... | 23.545455 | 69 | 0.528958 | 154 | 1,295 | 4.37013 | 0.422078 | 0.080238 | 0.049034 | 0.047548 | 0.213967 | 0.213967 | 0.142645 | 0.142645 | 0.142645 | 0.142645 | 0 | 0.023781 | 0.350579 | 1,295 | 54 | 70 | 23.981481 | 0.776457 | 0.101158 | 0 | 0.205882 | 0 | 0 | 0.122705 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.205882 | false | 0 | 0 | 0.058824 | 0.411765 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6ff7b8f7fc19ab403a199284703a9a187684bb92 | 3,828 | py | Python | hatch/files/setup.py | williamirick/hatch | 704cdcd1a0cd3a621235ac9f5b2b90e7524e3cd3 | [
"Apache-2.0",
"MIT"
] | 2,549 | 2017-09-05T06:44:17.000Z | 2022-03-31T23:21:02.000Z | hatch/files/setup.py | williamirick/hatch | 704cdcd1a0cd3a621235ac9f5b2b90e7524e3cd3 | [
"Apache-2.0",
"MIT"
] | 97 | 2017-06-07T23:14:12.000Z | 2022-03-30T14:22:34.000Z | hatch/files/setup.py | williamirick/hatch | 704cdcd1a0cd3a621235ac9f5b2b90e7524e3cd3 | [
"Apache-2.0",
"MIT"
] | 140 | 2017-06-10T14:16:47.000Z | 2022-03-23T09:25:01.000Z | from hatch.structures import File
from hatch.utils import normalize_package_name
TEMPLATE = """\
#################### Maintained by Hatch ####################
# This file is auto-generated by hatch. If you'd like to customize this file
# please add your changes near the bottom marked for 'USER OVERRIDES'.
# EVERYTHING... | 34.8 | 96 | 0.535789 | 366 | 3,828 | 5.409836 | 0.398907 | 0.072222 | 0.030303 | 0.033333 | 0.033333 | 0.033333 | 0 | 0 | 0 | 0 | 0 | 0.003337 | 0.295455 | 3,828 | 109 | 97 | 35.119266 | 0.730812 | 0.027429 | 0 | 0.021739 | 1 | 0 | 0.527419 | 0.094624 | 0 | 0 | 0 | 0 | 0 | 1 | 0.01087 | false | 0 | 0.043478 | 0 | 0.065217 | 0 | 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 |
6ffc07854972f35f8f7e6040ef68d3cb9c43fc73 | 1,672 | py | Python | imapfw/toolkit.py | paralax/imapfw | 740a4fed1a1de28e4134a115a1dd9c6e90e29ec1 | [
"MIT"
] | 492 | 2015-10-12T18:18:48.000Z | 2022-02-14T11:46:46.000Z | imapfw/toolkit.py | paralax/imapfw | 740a4fed1a1de28e4134a115a1dd9c6e90e29ec1 | [
"MIT"
] | 21 | 2015-11-10T00:49:07.000Z | 2021-12-30T07:51:25.000Z | imapfw/toolkit.py | paralax/imapfw | 740a4fed1a1de28e4134a115a1dd9c6e90e29ec1 | [
"MIT"
] | 40 | 2015-10-15T13:27:31.000Z | 2021-12-30T07:52:24.000Z | # The MIT License (MIT).
# Copyright (c) 2015, Nicolas Sebrecht & contributors.
import os
from threading import Thread
def runHook(hookFunc, *args):
class Hook(object):
def __init__(self):
self._stop = True
def ended(self):
self._stop = False
def stop(self):
... | 23.885714 | 75 | 0.614833 | 199 | 1,672 | 5.080402 | 0.487437 | 0.041543 | 0.023739 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007538 | 0.285885 | 1,672 | 69 | 76 | 24.231884 | 0.839196 | 0.218301 | 0 | 0 | 0 | 0 | 0.022692 | 0 | 0 | 0 | 0 | 0.014493 | 0 | 1 | 0.2 | false | 0 | 0.05 | 0.025 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6ffe39c63a6c9c42ef34409183fa149faa6048f4 | 6,272 | py | Python | Swag/models.py | ComputerScienceHouse/CSH-Swag | 54b83f86d5e2181354093204b4b39805ac8fe7b4 | [
"MIT"
] | 2 | 2017-12-08T18:19:38.000Z | 2018-03-15T19:10:19.000Z | Swag/models.py | devinmatte/CSH-Swag | 54b83f86d5e2181354093204b4b39805ac8fe7b4 | [
"MIT"
] | 10 | 2018-03-05T20:53:29.000Z | 2018-07-24T15:07:19.000Z | Swag/models.py | devinmatte/CSH-Swag | 54b83f86d5e2181354093204b4b39805ac8fe7b4 | [
"MIT"
] | 2 | 2018-04-09T02:15:57.000Z | 2018-09-29T16:00:28.000Z | import datetime
import enum
from Swag import db
class Category(enum.Enum):
Shirts = 1
Sweatshirts = 2
Glassware = 3
Stickers = 4
Misc = 5
class PaymentMethod(enum.Enum):
Cash = 1
Check = 2
Venmo = 3
Paypal = 4
Card = 5
Online = 6
class SizeOptions(enum.Enum):
Stand... | 33.72043 | 105 | 0.638712 | 791 | 6,272 | 4.920354 | 0.149178 | 0.065776 | 0.08222 | 0.052415 | 0.590185 | 0.579908 | 0.56295 | 0.473279 | 0.423176 | 0.423176 | 0 | 0.010228 | 0.236129 | 6,272 | 185 | 106 | 33.902703 | 0.802129 | 0.047672 | 0 | 0.27027 | 0 | 0 | 0.059576 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060811 | false | 0 | 0.02027 | 0 | 0.601351 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6ffff189b69c63ff15eee36122611766393ec8d9 | 1,395 | py | Python | setup.py | BLSQ/geohealthaccess | 9302469481096a2b0d1d5ccc643adf90cac7afa6 | [
"MIT"
] | 8 | 2020-03-30T13:57:49.000Z | 2022-01-12T06:14:15.000Z | setup.py | BLSQ/geohealthaccess | 9302469481096a2b0d1d5ccc643adf90cac7afa6 | [
"MIT"
] | 13 | 2020-10-05T10:28:47.000Z | 2021-11-09T11:23:10.000Z | setup.py | BLSQ/geohealthaccess | 9302469481096a2b0d1d5ccc643adf90cac7afa6 | [
"MIT"
] | 1 | 2020-11-11T16:40:31.000Z | 2020-11-11T16:40:31.000Z | from setuptools import setup, find_packages
setup(
name="geohealthaccess",
version="0.1",
description="Mapping accessibility to health services",
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
... | 25.833333 | 77 | 0.544803 | 112 | 1,395 | 6.714286 | 0.776786 | 0.031915 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007254 | 0.308244 | 1,395 | 53 | 78 | 26.320755 | 0.772021 | 0 | 0 | 0.038462 | 0 | 0 | 0.492473 | 0.059498 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.019231 | 0 | 0.019231 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b50b432cc2b8a79ef97aa9778f6e1c2074e385bd | 604 | py | Python | examples/experiments/__init__.py | onelearn/onelearn | d5befd43d00475b6df735bcbb685ce878131d823 | [
"BSD-3-Clause"
] | 16 | 2020-03-07T14:04:08.000Z | 2021-09-23T01:08:06.000Z | examples/experiments/__init__.py | onelearn/onelearn | d5befd43d00475b6df735bcbb685ce878131d823 | [
"BSD-3-Clause"
] | 31 | 2020-03-05T16:49:15.000Z | 2021-09-29T14:46:20.000Z | examples/experiments/__init__.py | onelearn/onelearn | d5befd43d00475b6df735bcbb685ce878131d823 | [
"BSD-3-Clause"
] | 2 | 2020-09-20T07:43:24.000Z | 2021-03-17T08:32:19.000Z | # Authors: Stephane Gaiffas <stephane.gaiffas@gmail.com>
# License: BSD 3 clause
from .plot import plot_scatter_binary_classif, plot_contour_binary_classif, get_mesh
from .regrets import compute_regrets, plot_regrets
from .online_vs_batch import compute_regrets_and_batch, plot_online_vs_batch
from .n_tree_sensitivity i... | 30.2 | 84 | 0.804636 | 84 | 604 | 5.297619 | 0.488095 | 0.053933 | 0.089888 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001931 | 0.142384 | 604 | 19 | 85 | 31.789474 | 0.857143 | 0.125828 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.294118 | 0 | 0.294118 | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b50b5731f90302ed45b7fa8c15e76cc86885543d | 10,447 | py | Python | pypy/rpython/test/test_rtuple.py | benoitc/pypy | a3e1b12d1d01dc29056b7badc051ffc034297658 | [
"MIT"
] | 1 | 2020-01-21T11:10:51.000Z | 2020-01-21T11:10:51.000Z | pypy/rpython/test/test_rtuple.py | benoitc/pypy | a3e1b12d1d01dc29056b7badc051ffc034297658 | [
"MIT"
] | null | null | null | pypy/rpython/test/test_rtuple.py | benoitc/pypy | a3e1b12d1d01dc29056b7badc051ffc034297658 | [
"MIT"
] | null | null | null | from pypy.translator.translator import TranslationContext
from pypy.rpython.lltypesystem.lltype import *
from pypy.rpython.lltypesystem import rtupletype
from pypy.rpython.ootypesystem import ootype
from pypy.rpython.rint import signed_repr
from pypy.rpython.rbool import bool_repr
from pypy.rpython.test.tool import Bas... | 28.15903 | 96 | 0.460324 | 1,422 | 10,447 | 3.251758 | 0.123066 | 0.109645 | 0.102941 | 0.099265 | 0.441825 | 0.389057 | 0.3484 | 0.304282 | 0.288495 | 0.266869 | 0 | 0.044688 | 0.387384 | 10,447 | 370 | 97 | 28.235135 | 0.677813 | 0.021346 | 0 | 0.318471 | 0 | 0 | 0.01821 | 0 | 0 | 0 | 0 | 0 | 0.16242 | 1 | 0.232484 | false | 0.031847 | 0.038217 | 0.063694 | 0.436306 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b50f0f7ec0507210b5d135b3dd4ca7207837b6f4 | 3,490 | py | Python | blind_news.py | sevenb/blind_news | a50585953550d278dbfc99fc946368998a7b0ec4 | [
"CC0-1.0"
] | 1 | 2016-11-23T03:36:24.000Z | 2016-11-23T03:36:24.000Z | blind_news.py | sevenb/blind_news | a50585953550d278dbfc99fc946368998a7b0ec4 | [
"CC0-1.0"
] | null | null | null | blind_news.py | sevenb/blind_news | a50585953550d278dbfc99fc946368998a7b0ec4 | [
"CC0-1.0"
] | null | null | null |
#!/usr/bin/python
# -*- coding: utf-8 -*-
# *** Just learning python ***
# sample by www.brunoneves.com 01/28/2016
# feel free for modify and improve the code
# Simple sample news for blind using speech recognition.
# Just run the script and using your voice for listen at the google news top 10's that do you want to l... | 24.405594 | 113 | 0.674785 | 475 | 3,490 | 4.850526 | 0.431579 | 0.03125 | 0.019531 | 0.027344 | 0.052083 | 0.028646 | 0 | 0 | 0 | 0 | 0 | 0.012504 | 0.175072 | 3,490 | 142 | 114 | 24.577465 | 0.787774 | 0.159885 | 0 | 0.094118 | 0 | 0 | 0.283362 | 0.045969 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.023529 | null | null | 0.070588 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b510848e1431242f805a47c1225d2d7e06cbc677 | 19,533 | py | Python | Mineshaft Explorer/Mineshaft Explorer.py | Jpiv1212/PersonalProjects | a53c4c4db715b3e9a670df001e273eda31dd06be | [
"MIT"
] | null | null | null | Mineshaft Explorer/Mineshaft Explorer.py | Jpiv1212/PersonalProjects | a53c4c4db715b3e9a670df001e273eda31dd06be | [
"MIT"
] | null | null | null | Mineshaft Explorer/Mineshaft Explorer.py | Jpiv1212/PersonalProjects | a53c4c4db715b3e9a670df001e273eda31dd06be | [
"MIT"
] | null | null | null | from livewires import games, color
from generate4 import *
import pygame,math
screen_width = 620
screen_height = 620
tilesize = 20
games.init(screen_width = screen_width,screen_height = screen_height, fps=50)
shaft123 = games.load_image("hidden\\shaft.png", transparent=False)
tiles = [games.load_image("hidden\\plan... | 41.383475 | 151 | 0.503302 | 2,303 | 19,533 | 4.209726 | 0.09987 | 0.029087 | 0.023724 | 0.024755 | 0.627437 | 0.567612 | 0.474265 | 0.381743 | 0.351006 | 0.305415 | 0 | 0.032221 | 0.372395 | 19,533 | 471 | 152 | 41.471338 | 0.758626 | 0.028516 | 0 | 0.506787 | 1 | 0 | 0.026956 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.040724 | false | 0 | 0.006787 | 0 | 0.085973 | 0 | 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 |
b51719d65d6757cb813eaee8d5d1bb5d72a0f040 | 469 | py | Python | usaspending_api/financial_activities/migrations/0014_remove_financialaccountsbyprogramactivityobjectclass_appropriation_account_balances.py | toolness/usaspending-api | ed9a396e20a52749f01f43494763903cc371f9c2 | [
"CC0-1.0"
] | 1 | 2021-06-17T05:09:00.000Z | 2021-06-17T05:09:00.000Z | usaspending_api/financial_activities/migrations/0014_remove_financialaccountsbyprogramactivityobjectclass_appropriation_account_balances.py | toolness/usaspending-api | ed9a396e20a52749f01f43494763903cc371f9c2 | [
"CC0-1.0"
] | null | null | null | usaspending_api/financial_activities/migrations/0014_remove_financialaccountsbyprogramactivityobjectclass_appropriation_account_balances.py | toolness/usaspending-api | ed9a396e20a52749f01f43494763903cc371f9c2 | [
"CC0-1.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10.1 on 2017-02-09 18:40
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('financial_activities', '0013_auto_20170209_1838'),
]
operations = [
migrations.Remo... | 23.45 | 71 | 0.675906 | 46 | 469 | 6.630435 | 0.826087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 0.226013 | 469 | 19 | 72 | 24.684211 | 0.749311 | 0.144989 | 0 | 0 | 1 | 0 | 0.296482 | 0.246231 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b5175a8ca965b9216a2f0335e5e72c2a865f8f55 | 741 | py | Python | wavepy3/atmos/utils.py | alexrkaufman/WavePy3 | 1f5fc05b7c245975157eb77fab4201e3bd2cca5c | [
"Apache-2.0"
] | 5 | 2020-11-17T11:58:19.000Z | 2021-10-29T21:29:31.000Z | wavepy3/atmos/utils.py | alexrkaufman/WavePy3 | 1f5fc05b7c245975157eb77fab4201e3bd2cca5c | [
"Apache-2.0"
] | 3 | 2020-10-29T23:28:10.000Z | 2020-10-30T17:01:12.000Z | wavepy3/atmos/utils.py | alexrkaufman/wavepy3 | 1f5fc05b7c245975157eb77fab4201e3bd2cca5c | [
"Apache-2.0"
] | 1 | 2021-08-22T19:54:34.000Z | 2021-08-22T19:54:34.000Z | import numpy as np
fft2 = np.fft.fft2
ifft2 = np.fft.ifft2
fftshift = np.fft.fftshift
ifftshift = np.fft.ifftshift
def cart2pol(x, y):
r = np.sqrt(x**2 + y**2)
phi = np.arctan2(y, x)
return (r, phi)
def pol2cart(r, phi):
x = r * np.cos(phi)
y = r * np.sin(phi)
return (x, y)
def ft2(g, d... | 16.466667 | 68 | 0.59919 | 119 | 741 | 3.731092 | 0.394958 | 0.045045 | 0.018018 | 0.085586 | 0.144144 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036765 | 0.265857 | 741 | 44 | 69 | 16.840909 | 0.779412 | 0.279352 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045455 | 0 | 1 | 0.2 | false | 0 | 0.05 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
82ed2df0f536e6a4a2bdfabeab913736b71aac05 | 814 | py | Python | Pacote Dowload/CursoemVideo/ex 043.py | AMF1971/Cursoemvideo-Python | 814ce748ab72e2d6b09a4e15f943bd72b0922f8c | [
"MIT"
] | null | null | null | Pacote Dowload/CursoemVideo/ex 043.py | AMF1971/Cursoemvideo-Python | 814ce748ab72e2d6b09a4e15f943bd72b0922f8c | [
"MIT"
] | null | null | null | Pacote Dowload/CursoemVideo/ex 043.py | AMF1971/Cursoemvideo-Python | 814ce748ab72e2d6b09a4e15f943bd72b0922f8c | [
"MIT"
] | null | null | null | # Desenvolva uma lógica que leia o peso e a altura de uma pessoa, calcule seu Índice de Massa Corporal (IMC)
# e mostre seu status, de acordo com a tabela abaixo:
#
# – IMC abaixo de 18,5: Abaixo do Peso
#
# – Entre 18,5 e 25: Peso Ideal
#
# – 25 até 30: Sobrepeso
#
# – 30 até 40: Obesidade
peso = float(input('Qual é ... | 29.071429 | 108 | 0.658477 | 146 | 814 | 3.69863 | 0.438356 | 0.022222 | 0.096296 | 0.055556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053375 | 0.217445 | 814 | 27 | 109 | 30.148148 | 0.788069 | 0.332924 | 0 | 0 | 0 | 0 | 0.450943 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.428571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
82f0b00770d4e62a0d322d6baf0df24895c3ce67 | 12,511 | py | Python | fle_site/apps/articles/management/commands/check_for_articles_from_email.py | khangmach/fle-home | 42c376bc9aca5a440a09e78973ea1b48a0827e3c | [
"MIT"
] | null | null | null | fle_site/apps/articles/management/commands/check_for_articles_from_email.py | khangmach/fle-home | 42c376bc9aca5a440a09e78973ea1b48a0827e3c | [
"MIT"
] | null | null | null | fle_site/apps/articles/management/commands/check_for_articles_from_email.py | khangmach/fle-home | 42c376bc9aca5a440a09e78973ea1b48a0827e3c | [
"MIT"
] | null | null | null | from base64 import b64decode
from datetime import datetime
from email.parser import FeedParser
from email.utils import parseaddr, parsedate
from optparse import make_option
import socket
import sys
import time
from django.conf import settings
from django.contrib.auth.models import User
from django.contrib.sites.models... | 32.328165 | 143 | 0.571177 | 1,424 | 12,511 | 4.933989 | 0.22823 | 0.014944 | 0.011956 | 0.009109 | 0.205522 | 0.172787 | 0.140336 | 0.116709 | 0.068887 | 0.068887 | 0 | 0.006783 | 0.328351 | 12,511 | 386 | 144 | 32.411917 | 0.829347 | 0.031892 | 0 | 0.269373 | 0 | 0 | 0.130404 | 0.001842 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.02952 | 0.059041 | null | null | 0.00369 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
82f774f43a700d47036c7263e71d147b9d562451 | 677 | py | Python | rolepermissions/templatetags/permission_tags.py | doordash/django-role-permissions | 0dda692e3bae699ff7f35791d9ead9491de7b6a7 | [
"MIT"
] | null | null | null | rolepermissions/templatetags/permission_tags.py | doordash/django-role-permissions | 0dda692e3bae699ff7f35791d9ead9491de7b6a7 | [
"MIT"
] | null | null | null | rolepermissions/templatetags/permission_tags.py | doordash/django-role-permissions | 0dda692e3bae699ff7f35791d9ead9491de7b6a7 | [
"MIT"
] | null | null | null | from __future__ import unicode_literals
from django import template
from rolepermissions.verifications import has_role, has_permission, has_object_permission
register = template.Library()
@register.filter(name='has_role')
def has_role_template_tag(user, role):
role_list = role.split(',')
return has_role(us... | 25.074074 | 89 | 0.768095 | 92 | 677 | 5.358696 | 0.347826 | 0.070994 | 0.077079 | 0.073022 | 0.117647 | 0.117647 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0.131462 | 677 | 26 | 90 | 26.038462 | 0.838435 | 0 | 0 | 0.125 | 0 | 0 | 0.028065 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.1875 | 0.0625 | 0.5625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
82f965e6db979a0cf77f55c94a0553eaf385f85d | 699 | py | Python | v1/models/Task.py | bergran/Tswift-backend | 4ca32d68bc0d5aa72dd2d849ce69ed3fa75f8f0e | [
"MIT"
] | 1 | 2020-04-22T15:27:45.000Z | 2020-04-22T15:27:45.000Z | v1/models/Task.py | bergran/Tswift-backend | 4ca32d68bc0d5aa72dd2d849ce69ed3fa75f8f0e | [
"MIT"
] | 3 | 2020-02-11T22:15:05.000Z | 2021-06-10T20:11:24.000Z | v1/models/Task.py | bergran/Tswift-backend | 4ca32d68bc0d5aa72dd2d849ce69ed3fa75f8f0e | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from django.db import models
from v1.models.Board import Boards
from v1.models.State import States
class Tasks(models.Model):
title = models.CharField(max_length=50)
description = models.CharField(max_length=500)
date_created = models.DateTimeField(auto_now_add=True)
date_mod... | 31.772727 | 76 | 0.731044 | 90 | 699 | 5.544444 | 0.511111 | 0.114228 | 0.048096 | 0.096192 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013629 | 0.160229 | 699 | 21 | 77 | 33.285714 | 0.836457 | 0.030043 | 0 | 0 | 0 | 0 | 0.026627 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.866667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
82fbcc4c5600f6a7113e2374770489e3da721b5d | 426 | py | Python | infra/utils/timer.py | philipmac/nephele2 | 50acba6b7bb00da6209c75e26c8c040ffacbaa1e | [
"CC0-1.0"
] | 1 | 2021-02-26T23:00:10.000Z | 2021-02-26T23:00:10.000Z | infra/utils/timer.py | philipmac/nephele2 | 50acba6b7bb00da6209c75e26c8c040ffacbaa1e | [
"CC0-1.0"
] | 1 | 2020-11-16T01:55:06.000Z | 2020-11-16T01:55:06.000Z | infra/utils/timer.py | philipmac/nephele2 | 50acba6b7bb00da6209c75e26c8c040ffacbaa1e | [
"CC0-1.0"
] | 2 | 2021-08-12T13:59:49.000Z | 2022-01-19T17:16:26.000Z | from threading import Lock
from datetime import datetime, timedelta
lock = Lock()
MINS_GAP = 60
class Timer:
def __init__(self):
self.next_tick = datetime.now()
def ready_to_send(self):
with lock:
if datetime.now() > self.next_tick:
self.next_tick = datetime.now() ... | 22.421053 | 77 | 0.591549 | 51 | 426 | 4.72549 | 0.529412 | 0.099585 | 0.149378 | 0.165975 | 0.190871 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006993 | 0.328639 | 426 | 18 | 78 | 23.666667 | 0.835664 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.5 | 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 |
d2024a2f765f3f54c9317e2ca3bfb3046511f298 | 3,365 | py | Python | vulnerabilities/migrations/0002_add_patched_package.py | bhuvi11/vulnerablecode | 8044a9826568b24397d143e17624299f8008b0e0 | [
"Apache-2.0"
] | 257 | 2017-06-09T09:54:55.000Z | 2022-03-30T19:25:55.000Z | vulnerabilities/migrations/0002_add_patched_package.py | bhuvi11/vulnerablecode | 8044a9826568b24397d143e17624299f8008b0e0 | [
"Apache-2.0"
] | 526 | 2017-06-06T21:54:44.000Z | 2022-03-31T19:11:33.000Z | vulnerabilities/migrations/0002_add_patched_package.py | bhuvi11/vulnerablecode | 8044a9826568b24397d143e17624299f8008b0e0 | [
"Apache-2.0"
] | 105 | 2017-06-27T20:35:29.000Z | 2022-03-30T06:07:04.000Z | # Generated by Django 3.0.13 on 2021-04-04 06:32
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
("vulnerabilities", "0001_initial"),
]
operations = [
migrations.AddField(
model_name="packagere... | 51.769231 | 812 | 0.617831 | 358 | 3,365 | 5.692737 | 0.307263 | 0.095682 | 0.091757 | 0.107949 | 0.259078 | 0.164377 | 0.105986 | 0.105986 | 0.047105 | 0 | 0 | 0.039016 | 0.299257 | 3,365 | 64 | 813 | 52.578125 | 0.825276 | 0.01367 | 0 | 0.396552 | 1 | 0.034483 | 0.527284 | 0.059692 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.034483 | 0 | 0.086207 | 0 | 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 |
d203fba52ae1f1fa5a38648a1779771328ba8d0c | 7,739 | py | Python | headless-chrome/example/pychrome_demo.py | appotry/dockerfile | 137ec7ea2815c78c71650e57c444d1a3c430d32e | [
"MIT"
] | 86 | 2018-03-06T13:36:27.000Z | 2022-03-26T08:44:28.000Z | headless-chrome/example/pychrome_demo.py | fuxin123z/dockerfile | dfd10d6a9fef430200c295b1be6765e020fab9b5 | [
"MIT"
] | null | null | null | headless-chrome/example/pychrome_demo.py | fuxin123z/dockerfile | dfd10d6a9fef430200c295b1be6765e020fab9b5 | [
"MIT"
] | 37 | 2018-02-12T08:52:07.000Z | 2022-03-24T17:59:08.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import threading
import time
import pychrome
from bs4 import BeautifulSoup
class EventHandler(object):
screen_lock = threading.Lock()
def __init__(self, browser, tab):
self.browser = browser
self.tab = tab
self.start_frame = None
... | 31.979339 | 107 | 0.637679 | 932 | 7,739 | 5.143777 | 0.246781 | 0.018773 | 0.032541 | 0.039007 | 0.401126 | 0.370672 | 0.337088 | 0.299541 | 0.244681 | 0.244681 | 0 | 0.011982 | 0.223543 | 7,739 | 241 | 108 | 32.112033 | 0.785821 | 0.151958 | 0 | 0.358974 | 0 | 0 | 0.14266 | 0.050983 | 0 | 0 | 0.000614 | 0 | 0.00641 | 0 | null | null | 0.00641 | 0.025641 | null | null | 0.064103 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d203ff66acb553f8153eda853f6e02165afe108c | 257 | py | Python | 2-1/netstudy/udp_send.py | qumogu/pystudy | 66bd8848ed625265961808a525e6c33c3cc8d8be | [
"Apache-2.0"
] | null | null | null | 2-1/netstudy/udp_send.py | qumogu/pystudy | 66bd8848ed625265961808a525e6c33c3cc8d8be | [
"Apache-2.0"
] | null | null | null | 2-1/netstudy/udp_send.py | qumogu/pystudy | 66bd8848ed625265961808a525e6c33c3cc8d8be | [
"Apache-2.0"
] | null | null | null | import socket
def main():
print("hello python")
upd = socket.socket(socket.AF_INET,socket.SOCK_DGRAM)
msg =
upd.sendto(msg,("192.168.1.101",8080))
upd.close()
print("send successfully")
if __name__ == "__main__":
main()
| 17.133333 | 57 | 0.618677 | 34 | 257 | 4.382353 | 0.705882 | 0.161074 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.07 | 0.22179 | 257 | 14 | 58 | 18.357143 | 0.675 | 0 | 0 | 0 | 0 | 0 | 0.194553 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1 | null | null | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d20891c55e619f097a70ca9825b02fd0deb522ff | 10,045 | py | Python | venv/Lib/site-packages/trio/_core/_generated_run.py | gilbertekalea/booking.com_crawler | 71e52c87cd72a77f80a3e5fc0af0e1a68a5712ae | [
"MIT"
] | 1 | 2019-05-01T08:03:06.000Z | 2019-05-01T08:03:06.000Z | venv/Lib/site-packages/trio/_core/_generated_run.py | gilbertekalea/booking.com_crawler | 71e52c87cd72a77f80a3e5fc0af0e1a68a5712ae | [
"MIT"
] | 5 | 2021-12-15T18:27:41.000Z | 2022-01-05T18:34:02.000Z | venv/Lib/site-packages/trio/_core/_generated_run.py | gilbertekalea/booking.com_crawler | 71e52c87cd72a77f80a3e5fc0af0e1a68a5712ae | [
"MIT"
] | null | null | null | # ***********************************************************
# ******* WARNING: AUTOGENERATED! ALL EDITS WILL BE LOST ******
# *************************************************************
from ._run import GLOBAL_RUN_CONTEXT, _NO_SEND
from ._ki import LOCALS_KEY_KI_PROTECTION_ENABLED
from ._instrumentation import Ins... | 41.508264 | 103 | 0.635241 | 1,304 | 10,045 | 4.785276 | 0.284509 | 0.019231 | 0.023077 | 0.030288 | 0.262019 | 0.234455 | 0.217788 | 0.208173 | 0.208173 | 0.200641 | 0 | 0.000277 | 0.281832 | 10,045 | 241 | 104 | 41.680498 | 0.864708 | 0.434744 | 0 | 0.627451 | 1 | 0 | 0.117021 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.137255 | false | 0 | 0.058824 | 0 | 0.352941 | 0 | 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 |
d209f6c129a752c79396b7d13d1711a77458f8ec | 19,998 | py | Python | dist/Basilisk/fswAlgorithms/cssWlsEst/cssWlsEst.py | ian-cooke/basilisk_mag | a8b1e37c31c1287549d6fd4d71fcaa35b6fc3f14 | [
"0BSD"
] | null | null | null | dist/Basilisk/fswAlgorithms/cssWlsEst/cssWlsEst.py | ian-cooke/basilisk_mag | a8b1e37c31c1287549d6fd4d71fcaa35b6fc3f14 | [
"0BSD"
] | 1 | 2019-03-13T20:52:22.000Z | 2019-03-13T20:52:22.000Z | dist/Basilisk/fswAlgorithms/cssWlsEst/cssWlsEst.py | ian-cooke/basilisk_mag | a8b1e37c31c1287549d6fd4d71fcaa35b6fc3f14 | [
"0BSD"
] | null | null | null | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 3.0.12
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info as _swig_python_version_info
if _swig_python_version_info >= (2, 7, 0):
def swig_im... | 46.615385 | 154 | 0.776228 | 2,020 | 19,998 | 7.012376 | 0.116337 | 0.096364 | 0.036004 | 0.037275 | 0.344441 | 0.177339 | 0.128203 | 0.106671 | 0.07095 | 0.07095 | 0 | 0.001353 | 0.149865 | 19,998 | 428 | 155 | 46.724299 | 0.831833 | 0.014751 | 0 | 0.304582 | 1 | 0 | 0.059666 | 0.004469 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086253 | false | 0.008086 | 0.056604 | 0.051213 | 0.334232 | 0 | 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 |
d20c86ed5a1021e2dbc8bd13160c009cd36dfd85 | 1,464 | py | Python | worker/openweather.py | bkosciow/katon | af7a514ce4636cfe8178d82cddfb67d8486f5b2b | [
"MIT"
] | 2 | 2017-06-07T08:37:38.000Z | 2021-12-23T03:11:30.000Z | worker/openweather.py | bkosciow/doton | af7a514ce4636cfe8178d82cddfb67d8486f5b2b | [
"MIT"
] | null | null | null | worker/openweather.py | bkosciow/doton | af7a514ce4636cfe8178d82cddfb67d8486f5b2b | [
"MIT"
] | null | null | null | import json
from service.openweather import Openweather
from worker.worker import Worker
import datetime
class OpenweatherWorker(Worker):
"""Openweather worker"""
def __init__(self, config, widget):
self.config = config
self.cities = self._parse_cities(json.loads(config['cities']))
sel... | 29.28 | 82 | 0.60724 | 172 | 1,464 | 5.063953 | 0.337209 | 0.075775 | 0.058553 | 0.032147 | 0.068886 | 0.068886 | 0 | 0 | 0 | 0 | 0 | 0.001848 | 0.260929 | 1,464 | 49 | 83 | 29.877551 | 0.803142 | 0.081284 | 0 | 0 | 0 | 0 | 0.032875 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.21875 | false | 0 | 0.125 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d20f5b5bebb62a5faffa494ba9114db63e9361dc | 1,800 | py | Python | mafia_tally/config.py | auscompgeek/mafia-tally | ae9e8165a0298da55d88fe170a07dd810f1d9c9f | [
"MIT"
] | null | null | null | mafia_tally/config.py | auscompgeek/mafia-tally | ae9e8165a0298da55d88fe170a07dd810f1d9c9f | [
"MIT"
] | null | null | null | mafia_tally/config.py | auscompgeek/mafia-tally | ae9e8165a0298da55d88fe170a07dd810f1d9c9f | [
"MIT"
] | null | null | null | import json
import os
from typing import Dict, Set
import werkzeug.security
config_dir = os.path.join(os.path.dirname(__file__), '..', 'config')
get_path = lambda filename: os.path.join(config_dir, filename)
day_config_file = get_path('day.json')
access_token_file = get_path('access_token.txt')
players_file = get_pat... | 20.224719 | 84 | 0.666111 | 273 | 1,800 | 4.131868 | 0.227106 | 0.055851 | 0.039007 | 0.034574 | 0.108156 | 0.046099 | 0.046099 | 0.046099 | 0 | 0 | 0 | 0.01046 | 0.203333 | 1,800 | 88 | 85 | 20.454545 | 0.776151 | 0.012778 | 0 | 0.033898 | 0 | 0 | 0.060845 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.186441 | false | 0.084746 | 0.067797 | 0.016949 | 0.322034 | 0.016949 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d211438b5aee192d3e5f300e823864bd2fb25a97 | 370 | py | Python | PlanningBoard/migrations/0022_auto_20180216_1503.py | insung151/Pwannar | 9f0be39e763dfc709a4b43a2498a95a19bfa435f | [
"MIT"
] | null | null | null | PlanningBoard/migrations/0022_auto_20180216_1503.py | insung151/Pwannar | 9f0be39e763dfc709a4b43a2498a95a19bfa435f | [
"MIT"
] | 4 | 2018-02-14T11:58:51.000Z | 2018-02-14T14:03:16.000Z | PlanningBoard/migrations/0022_auto_20180216_1503.py | insung151/Pwannar | 9f0be39e763dfc709a4b43a2498a95a19bfa435f | [
"MIT"
] | null | null | null | # Generated by Django 2.0.1 on 2018-02-16 06:03
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('PlanningBoard', '0021_comment_planning'),
]
operations = [
migrations.RenameField(
model_name='comment',
old_name='planning'... | 19.473684 | 51 | 0.591892 | 38 | 370 | 5.631579 | 0.789474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073077 | 0.297297 | 370 | 18 | 52 | 20.555556 | 0.75 | 0.121622 | 0 | 0 | 1 | 0 | 0.170279 | 0.065015 | 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 |
d21281306af25e4fe03a7ff988983696dc597aba | 1,216 | py | Python | tests/unit/transforms/test_script.py | cescobarresi/kibitzr | 629f894d8d102657bc2c27edda2eb47ff51f1fa8 | [
"MIT"
] | 1 | 2021-08-07T05:56:35.000Z | 2021-08-07T05:56:35.000Z | tests/unit/transforms/test_script.py | shainesh77/kibitzr | ebcbd76e4618fa3adcdbcedf033e36049f64049e | [
"MIT"
] | null | null | null | tests/unit/transforms/test_script.py | shainesh77/kibitzr | ebcbd76e4618fa3adcdbcedf033e36049f64049e | [
"MIT"
] | null | null | null | from kibitzr.transformer.plain_text import (
python_transform,
bash_transform,
)
def test_bash_transform_sample():
ok, content = bash_transform(
code="sed 's/A/B/g'",
content="ACTGA",
)
assert ok is True
assert content == "BCTGB"
def test_python_transform_sample():
ok, co... | 22.518519 | 67 | 0.623355 | 149 | 1,216 | 4.90604 | 0.342282 | 0.106703 | 0.068399 | 0.090287 | 0.4829 | 0.239398 | 0.106703 | 0.106703 | 0.106703 | 0 | 0 | 0.003344 | 0.262336 | 1,216 | 53 | 68 | 22.943396 | 0.811594 | 0 | 0 | 0.418605 | 0 | 0 | 0.152961 | 0 | 0 | 0 | 0 | 0 | 0.27907 | 1 | 0.116279 | true | 0 | 0.023256 | 0 | 0.139535 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d2171fc84fdd2ed6975c00adcdf7f49be0ad3354 | 303 | py | Python | fep45.py | Lakshmikanthaks/Python-Literate | c62c7d6ae9672c817126862e6107fd76c570917e | [
"Apache-2.0"
] | 1 | 2016-05-29T01:49:27.000Z | 2016-05-29T01:49:27.000Z | fep45.py | Lakshmikanthaks/Python-Literate | c62c7d6ae9672c817126862e6107fd76c570917e | [
"Apache-2.0"
] | null | null | null | fep45.py | Lakshmikanthaks/Python-Literate | c62c7d6ae9672c817126862e6107fd76c570917e | [
"Apache-2.0"
] | null | null | null | def factI(n):
""" Assumes that n is an int > 0
Returns n!"""
result = 1
while n > 1:
result = result * n
n -= 1
return result
def factR(n):
""" Assumes that n is an int > 0
Returns n! """
if n == 1:
return n
else:
return n*factR(n-1)
| 17.823529 | 36 | 0.475248 | 47 | 303 | 3.06383 | 0.361702 | 0.055556 | 0.166667 | 0.180556 | 0.402778 | 0.402778 | 0.402778 | 0.402778 | 0.402778 | 0.402778 | 0 | 0.038674 | 0.40264 | 303 | 16 | 37 | 18.9375 | 0.756906 | 0.260726 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0 | 0 | 0.454545 | 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 |
d21e342c30c78339b110bf46e185f9b014646021 | 2,436 | py | Python | openstack_env/credentials.py | smithsane/openstack-env | 73c1988bb13438ab6afd74e35e3a09610454718b | [
"BSD-3-Clause"
] | null | null | null | openstack_env/credentials.py | smithsane/openstack-env | 73c1988bb13438ab6afd74e35e3a09610454718b | [
"BSD-3-Clause"
] | null | null | null | openstack_env/credentials.py | smithsane/openstack-env | 73c1988bb13438ab6afd74e35e3a09610454718b | [
"BSD-3-Clause"
] | null | null | null | # Copyright (c) 2015, Artem Osadchyi
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Versi... | 30.074074 | 78 | 0.679803 | 310 | 2,436 | 5.170968 | 0.367742 | 0.049906 | 0.03743 | 0.019963 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004934 | 0.251232 | 2,436 | 80 | 79 | 30.45 | 0.873904 | 0.324713 | 0 | 0.12766 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.170213 | false | 0.12766 | 0.06383 | 0.085106 | 0.425532 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d223dd55c915697141261b0c6e281add538c0b05 | 1,487 | py | Python | nsd1803/python/day11/dbconn.py | MrWangwf/nsd1806 | 069e993b0bb64cb21adc2a25aa56f6da674453bc | [
"Apache-2.0"
] | null | null | null | nsd1803/python/day11/dbconn.py | MrWangwf/nsd1806 | 069e993b0bb64cb21adc2a25aa56f6da674453bc | [
"Apache-2.0"
] | null | null | null | nsd1803/python/day11/dbconn.py | MrWangwf/nsd1806 | 069e993b0bb64cb21adc2a25aa56f6da674453bc | [
"Apache-2.0"
] | null | null | null | "MariaDB [(none)]> CREATE DATABASE tarena DEFAULT CHARSET='utf8';"
from sqlalchemy import create_engine
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy import Column, Integer, String, Date, ForeignKey
from sqlalchemy.orm import sessionmaker
engine = create_engine(
'mysql+pymysql://root:ted... | 30.346939 | 66 | 0.702757 | 189 | 1,487 | 5.253968 | 0.396825 | 0.104733 | 0.075529 | 0.066465 | 0.131923 | 0.131923 | 0.04431 | 0 | 0 | 0 | 0 | 0.00811 | 0.170814 | 1,487 | 48 | 67 | 30.979167 | 0.797243 | 0.105582 | 0 | 0.055556 | 0 | 0 | 0.151297 | 0.041787 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.111111 | 0.055556 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d2242978892edf88a07a8185820960e167b61fd4 | 1,698 | py | Python | Example merge conflicts/test3/quicksort.py | kevinamick/Elegit | f92c1d5c7c8197c847c7de69b1f7684b36393c6e | [
"MIT"
] | 28 | 2015-07-08T21:21:46.000Z | 2020-12-30T23:09:50.000Z | Example merge conflicts/test3/quicksort.py | kevinamick/Elegit | f92c1d5c7c8197c847c7de69b1f7684b36393c6e | [
"MIT"
] | 551 | 2015-07-08T20:24:37.000Z | 2021-12-14T21:13:17.000Z | Example merge conflicts/test3/quicksort.py | grahamearley/Elegit | f92c1d5c7c8197c847c7de69b1f7684b36393c6e | [
"MIT"
] | 12 | 2016-05-19T09:26:08.000Z | 2020-09-24T03:04:17.000Z | <<<<<<< HEAD
def switch(myList, one, two):
temp=myList[one]
myList[one]=myList[two]
myList[two]=temp
def sortMyList(myList):
newList = myList.copy()
quicksort(newList, 0, len(newList))
return newList
def divide(myList, start, end):
=======
def quicksort(myList, start, end):
if start < end:... | 25.727273 | 59 | 0.59364 | 205 | 1,698 | 4.917073 | 0.234146 | 0.12004 | 0.083333 | 0.035714 | 0.300595 | 0.300595 | 0.190476 | 0.190476 | 0.113095 | 0.113095 | 0 | 0.065854 | 0.275618 | 1,698 | 65 | 60 | 26.123077 | 0.753659 | 0 | 0 | 0.28 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.02 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d22a4143db3b1d61594cfb63b802e088f7e57a03 | 1,713 | py | Python | test_YTtagger.py | sjyk/deeplens-cv | 8383e6c377a93304534c46e3c9fd7821cc068d98 | [
"MIT"
] | 11 | 2019-10-07T22:06:30.000Z | 2020-08-26T22:10:53.000Z | test_YTtagger.py | sjyk/deeplens-cv | 8383e6c377a93304534c46e3c9fd7821cc068d98 | [
"MIT"
] | 16 | 2019-11-02T00:32:00.000Z | 2022-02-10T00:23:32.000Z | test_YTtagger.py | sjyk/deeplens-cv | 8383e6c377a93304534c46e3c9fd7821cc068d98 | [
"MIT"
] | 9 | 2019-10-07T13:33:13.000Z | 2020-09-27T09:50:58.000Z | import os
import shutil
import time
from deeplens.dataflow.agg import counts
from deeplens.full_manager.condition import Condition
from deeplens.full_manager.full_manager import FullStorageManager
from deeplens.full_manager.full_video_processing import CropSplitter
from deeplens.media.youtube_tagger import YoutubeTagg... | 38.931818 | 176 | 0.691185 | 231 | 1,713 | 5.056277 | 0.493506 | 0.071918 | 0.041096 | 0.059075 | 0.046233 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011863 | 0.163456 | 1,713 | 43 | 177 | 39.837209 | 0.80321 | 0 | 0 | 0 | 0 | 0 | 0.125811 | 0.042802 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060606 | false | 0 | 0.333333 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
d232c40c3a67072e45e4b3a8a460cbdd778fb1d9 | 583 | py | Python | cursoEmVideo/Python/Mundo 1/Exercicios/ex017.py | VictorDG00/Cursos | b1411f3179ef17f128c883b0f5a56c2478de45e8 | [
"MIT"
] | 2 | 2021-02-08T13:34:15.000Z | 2021-02-08T19:43:42.000Z | cursoEmVideo/Python/Mundo 1/Exercicios/ex017.py | VictorDG00/Cursos | b1411f3179ef17f128c883b0f5a56c2478de45e8 | [
"MIT"
] | null | null | null | cursoEmVideo/Python/Mundo 1/Exercicios/ex017.py | VictorDG00/Cursos | b1411f3179ef17f128c883b0f5a56c2478de45e8 | [
"MIT"
] | null | null | null | # faça um programa que leia o comprimento do cateto oposto e do
# cateto adjacente de um triangulo retangulo
# calcule e mostre o comprimento da hipotenusa
import math
x = float(input('Digite o valor do cateto oposto: '))
y = float(input('Digite o valor do cateto adjacente: '))
hip = math.hypot(x,y)
print('A Hipotenus... | 36.4375 | 81 | 0.680961 | 97 | 583 | 4.092784 | 0.443299 | 0.120907 | 0.161209 | 0.171285 | 0.377834 | 0.377834 | 0.377834 | 0.377834 | 0 | 0 | 0 | 0.012397 | 0.169811 | 583 | 15 | 82 | 38.866667 | 0.807851 | 0.255575 | 0 | 0 | 0 | 0 | 0.483721 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0.222222 | 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 |
d234642b3e0d573391c0314943b9943977e1aed6 | 2,596 | py | Python | WebContent/WEB-INF/python/qpid/validator.py | SVADemoAPP/server | ba35190947960c0603d3e642bd4454605686f052 | [
"Apache-2.0"
] | 17 | 2016-09-04T03:34:10.000Z | 2021-11-09T22:29:30.000Z | WebContent/WEB-INF/python/qpid/validator.py | SVADemoAPP/server | ba35190947960c0603d3e642bd4454605686f052 | [
"Apache-2.0"
] | 1 | 2016-07-11T09:32:41.000Z | 2016-07-11T09:32:41.000Z | WebContent/WEB-INF/python/qpid/validator.py | SVADemoAPP/server | ba35190947960c0603d3e642bd4454605686f052 | [
"Apache-2.0"
] | 19 | 2016-07-11T09:23:50.000Z | 2021-11-09T22:29:20.000Z | #
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not... | 24.037037 | 86 | 0.636364 | 394 | 2,596 | 4.101523 | 0.28934 | 0.019802 | 0.040842 | 0.049505 | 0.16151 | 0.056931 | 0.029703 | 0 | 0 | 0 | 0 | 0.00309 | 0.251926 | 2,596 | 107 | 87 | 24.261682 | 0.829042 | 0.289676 | 0 | 0.107692 | 0 | 0 | 0.057534 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.215385 | false | 0 | 0 | 0.030769 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d2365ddc2aadb5df8d10c49d4b5cf61faef8ed5a | 5,861 | py | Python | protobuf/WorkerServerMessage_pb2.py | NickRuiz/mt-serverland | 90cddde90ee9cccc231d7767ac139282433fb1a2 | [
"BSD-3-Clause"
] | 1 | 2015-06-07T14:06:47.000Z | 2015-06-07T14:06:47.000Z | protobuf/WorkerServerMessage_pb2.py | NickRuiz/mt-serverland | 90cddde90ee9cccc231d7767ac139282433fb1a2 | [
"BSD-3-Clause"
] | null | null | null | protobuf/WorkerServerMessage_pb2.py | NickRuiz/mt-serverland | 90cddde90ee9cccc231d7767ac139282433fb1a2 | [
"BSD-3-Clause"
] | null | null | null | # Generated by the protocol buffer compiler. DO NOT EDIT!
from google.protobuf import descriptor
from google.protobuf import message
from google.protobuf import reflection
from google.protobuf import descriptor_pb2
# @@protoc_insertion_point(imports)
DESCRIPTOR = descriptor.FileDescriptor(
name='WorkerServerMessa... | 36.861635 | 551 | 0.752431 | 688 | 5,861 | 6.167151 | 0.184593 | 0.050907 | 0.046665 | 0.076361 | 0.606646 | 0.515202 | 0.472307 | 0.444968 | 0.444968 | 0.444968 | 0 | 0.035504 | 0.130183 | 5,861 | 158 | 552 | 37.094937 | 0.796783 | 0.058693 | 0 | 0.654135 | 1 | 0.007519 | 0.209074 | 0.177677 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.030075 | 0 | 0.082707 | 0 | 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 |
d239470d522fb030ca97471597cb3fc0f632ac74 | 524 | py | Python | src/deepend/layers/dropout.py | Letsmoe/deepend | 3e31ec2737f5abd94fa0b1a68e9fa9a87e4c5e5c | [
"MIT"
] | 1 | 2021-11-14T13:57:19.000Z | 2021-11-14T13:57:19.000Z | src/deepend/layers/dropout.py | Letsmoe/deepend | 3e31ec2737f5abd94fa0b1a68e9fa9a87e4c5e5c | [
"MIT"
] | null | null | null | src/deepend/layers/dropout.py | Letsmoe/deepend | 3e31ec2737f5abd94fa0b1a68e9fa9a87e4c5e5c | [
"MIT"
] | null | null | null | from deepend.layers import *
class Dropout(Layer):
def __init__(self, rate : int, seed : int = 0, **kwargs):
super().__init__(**kwargs)
self.keep_prob = 1 - rate
self.mask = None
self.seed = seed
def forward(self, inputs: np.array) -> np.array:
if self.seed:
np.random.seed(self.seed)
self.mask = (np.... | 29.111111 | 62 | 0.681298 | 80 | 524 | 4.3125 | 0.4125 | 0.092754 | 0.13913 | 0.081159 | 0.115942 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004587 | 0.167939 | 524 | 17 | 63 | 30.823529 | 0.786697 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.071429 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d248dac0a6602adf1afdd6e9e0ed554490018315 | 2,170 | py | Python | redischat/models.py | scarescrow/LongPollChat | d8f3ab06315fd575b63b0d359ebe1f14b50b2b1e | [
"MIT"
] | null | null | null | redischat/models.py | scarescrow/LongPollChat | d8f3ab06315fd575b63b0d359ebe1f14b50b2b1e | [
"MIT"
] | null | null | null | redischat/models.py | scarescrow/LongPollChat | d8f3ab06315fd575b63b0d359ebe1f14b50b2b1e | [
"MIT"
] | null | null | null | from __future__ import unicode_literals
from django.db import models
import redis, json
from threading import Thread
# Create your models here.
class Message:
"""
Class to hold message details for each
incoming message
"""
def __init__(self, payload):
self.sender = payload['sender'... | 32.38806 | 55 | 0.595392 | 245 | 2,170 | 5.204082 | 0.367347 | 0.103529 | 0.12549 | 0.101961 | 0.255686 | 0.222745 | 0.133333 | 0.081569 | 0 | 0 | 0 | 0.000668 | 0.309677 | 2,170 | 67 | 56 | 32.38806 | 0.850467 | 0.11659 | 0 | 0.136364 | 0 | 0 | 0.024773 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.090909 | null | null | 0.022727 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d24c0b78f808c780c0c5d11f2d2150eaeb5a8f12 | 505 | py | Python | win-client/src/external/nanogui/icons/materialicons/util/gen_icon_symbols.py | keshon/samuno | 5662f64df534ba1b21306dba5c32f90fa053ff7c | [
"MIT"
] | 157 | 2016-04-11T04:46:43.000Z | 2021-12-28T06:09:27.000Z | win-client/src/external/nanogui/icons/materialicons/util/gen_icon_symbols.py | keshon/samuno | 5662f64df534ba1b21306dba5c32f90fa053ff7c | [
"MIT"
] | 7 | 2016-10-09T12:54:33.000Z | 2020-05-08T22:25:05.000Z | win-client/src/external/nanogui/icons/materialicons/util/gen_icon_symbols.py | keshon/samuno | 5662f64df534ba1b21306dba5c32f90fa053ff7c | [
"MIT"
] | 26 | 2016-04-11T04:50:33.000Z | 2022-03-09T06:50:56.000Z | import os
success = False
with open("../materialicons.go", "w") as output:
output.write("""package materialicons
import "github.com/shibukawa/nanogui.go"
// generated by util/gen_icon_symbols.py
const (
""")
for line in open("./codepoints").readlines():
name, codepoint = line.split(" ")
out... | 21.956522 | 95 | 0.639604 | 63 | 505 | 5.079365 | 0.650794 | 0.103125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002415 | 0.180198 | 505 | 22 | 96 | 22.954545 | 0.770531 | 0 | 0 | 0 | 1 | 0 | 0.400794 | 0.113095 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 0 | 0.133333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d24e765197fa2726066d0d212d957fae7a6aace7 | 310 | py | Python | blog/forms.py | kwj2020-hub/backend_project_with_django | d38ac8dd63a62b3d4658d76a985f846e38e1862b | [
"MIT"
] | null | null | null | blog/forms.py | kwj2020-hub/backend_project_with_django | d38ac8dd63a62b3d4658d76a985f846e38e1862b | [
"MIT"
] | null | null | null | blog/forms.py | kwj2020-hub/backend_project_with_django | d38ac8dd63a62b3d4658d76a985f846e38e1862b | [
"MIT"
] | null | null | null | from .models import Comment
from django import forms
class CommentForm(forms.ModelForm):
class Meta:
model = Comment
fields = ('content',)
# exclude = ('post', 'author', 'created_at', 'modified_at',)
# 위에서처럼 별도로 필드를 지정해도 되지만 exclude를 써서 몇 개의 필드만 제외하는 방식으로 해도 됩니다.
| 28.181818 | 71 | 0.622581 | 39 | 310 | 4.897436 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.277419 | 310 | 11 | 72 | 28.181818 | 0.852679 | 0.387097 | 0 | 0 | 0 | 0 | 0.037234 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
d2596ae16dc4875c007f58fcd6f7ec8802fa8393 | 2,346 | py | Python | 2021/Day_11/AoCOctopi.py | ArrowThunder/AoC | f4649115fc83b989745c83251a85710e76eb0368 | [
"MIT"
] | 1 | 2021-12-04T12:44:51.000Z | 2021-12-04T12:44:51.000Z | 2021/Day_11/AoCOctopi.py | ArrowThunder/AoC2021 | f4649115fc83b989745c83251a85710e76eb0368 | [
"MIT"
] | null | null | null | 2021/Day_11/AoCOctopi.py | ArrowThunder/AoC2021 | f4649115fc83b989745c83251a85710e76eb0368 | [
"MIT"
] | null | null | null | NUM_ROWS = 10
NUM_COLS = 10
with open('input.txt') as file:
octopi = []
num_flashes = 0
for row in range(NUM_ROWS):
line = file.readline()
octopi.append([])
for col in range(NUM_COLS):
octopi[row].append(int(line[col]))
for step in range(100):
flashes = []
... | 39.1 | 64 | 0.325234 | 243 | 2,346 | 3.09465 | 0.201646 | 0.037234 | 0.047872 | 0.053191 | 0.446809 | 0.446809 | 0.388298 | 0.388298 | 0.303191 | 0.303191 | 0 | 0.052268 | 0.567775 | 2,346 | 60 | 65 | 39.1 | 0.689349 | 0.026854 | 0 | 0.178571 | 0 | 0 | 0.003947 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.017857 | 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 |
d25ce929c57eb96fd17f07bfe16883bc4a249194 | 371 | py | Python | back/app/models/user.py | davidroeca/simple_graphql | a6b2b20b6458b6b2fa9363a542015ab42761bd98 | [
"MIT"
] | null | null | null | back/app/models/user.py | davidroeca/simple_graphql | a6b2b20b6458b6b2fa9363a542015ab42761bd98 | [
"MIT"
] | null | null | null | back/app/models/user.py | davidroeca/simple_graphql | a6b2b20b6458b6b2fa9363a542015ab42761bd98 | [
"MIT"
] | null | null | null | '''Define the user model'''
from sqlalchemy import Column, Integer, String
from .base import Base
class User(Base):
'''User Table'''
__tablename__ = 'user'
id = Column(Integer, primary_key=True)
display_name = Column(String(100), nullable=True)
username = Column(String(300), nullable=False, index=... | 28.538462 | 62 | 0.695418 | 48 | 371 | 5.25 | 0.604167 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029316 | 0.172507 | 371 | 12 | 63 | 30.916667 | 0.791531 | 0.086253 | 0 | 0 | 0 | 0 | 0.012195 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
d267bc868b8d6909715d47b831bf88bd64f49200 | 339 | py | Python | ddtrace/constants.py | skaji/dd-trace-py | f1ce6b778ec782757abb6c6768ab028980231d77 | [
"BSD-3-Clause"
] | null | null | null | ddtrace/constants.py | skaji/dd-trace-py | f1ce6b778ec782757abb6c6768ab028980231d77 | [
"BSD-3-Clause"
] | null | null | null | ddtrace/constants.py | skaji/dd-trace-py | f1ce6b778ec782757abb6c6768ab028980231d77 | [
"BSD-3-Clause"
] | null | null | null | FILTERS_KEY = 'FILTERS'
SAMPLE_RATE_METRIC_KEY = '_sample_rate'
SAMPLING_PRIORITY_KEY = '_sampling_priority_v1'
ANALYTICS_SAMPLE_RATE_KEY = '_dd1.sr.eausr'
ORIGIN_KEY = '_dd.origin'
HOSTNAME_KEY = '_dd.hostname'
ENV_KEY = 'env'
NUMERIC_TAGS = (ANALYTICS_SAMPLE_RATE_KEY, )
MANUAL_DROP_KEY = 'manual.drop'
MANUAL_KEEP_K... | 26.076923 | 47 | 0.79351 | 49 | 339 | 4.918367 | 0.428571 | 0.165975 | 0.157676 | 0.182573 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006536 | 0.097345 | 339 | 12 | 48 | 28.25 | 0.781046 | 0 | 0 | 0 | 0 | 0 | 0.294985 | 0.061947 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
d27b7fdc53d948bdd6bb7604a4aeb1719ff777bf | 1,138 | py | Python | Violent Python/PyPDFMetaGrabber.py | THEMVFFINMAN/Self-Coding-Books | 5f6a2ab1df3d481dcf2b0eecd06c9be0f6b842c9 | [
"MIT"
] | null | null | null | Violent Python/PyPDFMetaGrabber.py | THEMVFFINMAN/Self-Coding-Books | 5f6a2ab1df3d481dcf2b0eecd06c9be0f6b842c9 | [
"MIT"
] | null | null | null | Violent Python/PyPDFMetaGrabber.py | THEMVFFINMAN/Self-Coding-Books | 5f6a2ab1df3d481dcf2b0eecd06c9be0f6b842c9 | [
"MIT"
] | null | null | null | import pyPdf, argparse, os.path, calendar
from pyPdf import PdfFileReader
def printMeta(fileName):
pdfFile = PdfFileReader(file(fileName, 'rb'))
docInfo = pdfFile.getDocumentInfo()
print '\n[*] PDF MetaData For: {0}\n'.format(str(fileName))
for metaItem in docInfo:
if docInfo[metaItem][0] == "D... | 31.611111 | 152 | 0.579086 | 141 | 1,138 | 4.588652 | 0.460993 | 0.069552 | 0.02473 | 0.027821 | 0.092736 | 0.092736 | 0.092736 | 0 | 0 | 0 | 0 | 0.035673 | 0.23638 | 1,138 | 35 | 153 | 32.514286 | 0.708861 | 0 | 0 | 0.142857 | 0 | 0 | 0.116872 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.071429 | null | null | 0.285714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d27b9d6f2333c173362f9abcfafa0343c22f3121 | 808 | py | Python | contact_us/views.py | poya-kob/BiaBegard | b7387d4253dbae0650e61c686752dba342b0342e | [
"MIT"
] | null | null | null | contact_us/views.py | poya-kob/BiaBegard | b7387d4253dbae0650e61c686752dba342b0342e | [
"MIT"
] | null | null | null | contact_us/views.py | poya-kob/BiaBegard | b7387d4253dbae0650e61c686752dba342b0342e | [
"MIT"
] | 1 | 2021-11-07T15:56:04.000Z | 2021-11-07T15:56:04.000Z | from django.shortcuts import render
# Create your views here.
from .forms import CreateContactForm
from .models import ContactUs
def contact_us(request):
contact_form = CreateContactForm(request.POST or None)
if contact_form.is_valid():
full_name = contact_form.cleaned_data.get('full_name')
... | 29.925926 | 109 | 0.715347 | 102 | 808 | 5.441176 | 0.431373 | 0.178378 | 0.12973 | 0.158559 | 0.18018 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.190594 | 808 | 26 | 110 | 31.076923 | 0.848624 | 0.068069 | 0 | 0 | 0 | 0 | 0.090667 | 0.041333 | 0 | 0 | 0 | 0.038462 | 0 | 1 | 0.0625 | false | 0 | 0.1875 | 0 | 0.3125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d27bf4e1782fdd773541320dc3d707e8a3a4d72a | 1,497 | py | Python | HunterAdminApi/api/authentication/auth_module_factory.py | tt9133github/hunter | 7a1be4ae1fbbadff291742f513d47f0921159648 | [
"Apache-2.0"
] | 322 | 2020-01-10T09:08:31.000Z | 2022-01-21T06:43:24.000Z | HunterAdminApi/api/authentication/auth_module_factory.py | tt9133github/hunter | 7a1be4ae1fbbadff291742f513d47f0921159648 | [
"Apache-2.0"
] | 27 | 2020-01-10T10:12:21.000Z | 2022-03-08T23:38:23.000Z | HunterAdminApi/api/authentication/auth_module_factory.py | tt9133github/hunter | 7a1be4ae1fbbadff291742f513d47f0921159648 | [
"Apache-2.0"
] | 128 | 2020-01-10T09:08:14.000Z | 2022-03-18T06:56:01.000Z | #!/ usr/bin/env
# coding=utf-8
#
# Copyright 2019 ztosec & https://sec.zto.com/
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless r... | 27.218182 | 75 | 0.718103 | 194 | 1,497 | 5.35567 | 0.546392 | 0.086622 | 0.12127 | 0.030799 | 0.044273 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009167 | 0.198397 | 1,497 | 55 | 76 | 27.218182 | 0.856667 | 0.505678 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
d28057643f160c414f171ded24062c23fe881ae6 | 517 | py | Python | common/permissions.py | jbbqqf/okapi | 3db29ef1e15685fae304190bd176f75c4e367d03 | [
"BSD-3-Clause"
] | null | null | null | common/permissions.py | jbbqqf/okapi | 3db29ef1e15685fae304190bd176f75c4e367d03 | [
"BSD-3-Clause"
] | null | null | null | common/permissions.py | jbbqqf/okapi | 3db29ef1e15685fae304190bd176f75c4e367d03 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from rest_framework.permissions import (
BasePermission, SAFE_METHODS, IsAdminUser)
class IsAdminOrReadOnly(BasePermission):
"""
Custom permission to only allow owners of an object to edit it.
"""
def has_object_permission(self, request, view, profile):
# Read per... | 27.210526 | 67 | 0.675048 | 62 | 517 | 5.548387 | 0.790323 | 0.063953 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002571 | 0.247582 | 517 | 18 | 68 | 28.722222 | 0.881748 | 0.355899 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
96396a06e31a5e5063762509a9121723a713e6b4 | 18,949 | py | Python | Products/LDAPUserFolder/LDAPUserSatellite.py | eaudeweb/Products.LDAPUserFolder | 3da7155973ac329ffd76f05b060980a29a04a55c | [
"ZPL-2.1"
] | null | null | null | Products/LDAPUserFolder/LDAPUserSatellite.py | eaudeweb/Products.LDAPUserFolder | 3da7155973ac329ffd76f05b060980a29a04a55c | [
"ZPL-2.1"
] | 1 | 2018-10-08T12:49:27.000Z | 2018-10-08T12:49:27.000Z | Products/LDAPUserFolder/LDAPUserSatellite.py | eaudeweb/Products.LDAPUserFolder | 3da7155973ac329ffd76f05b060980a29a04a55c | [
"ZPL-2.1"
] | 1 | 2020-02-12T17:33:25.000Z | 2020-02-12T17:33:25.000Z | ##############################################################################
#
# Copyright (c) 2000-2009 Jens Vagelpohl and Contributors. All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS S... | 34.896869 | 80 | 0.548894 | 1,960 | 18,949 | 5.108673 | 0.183673 | 0.020973 | 0.038949 | 0.045441 | 0.235893 | 0.191052 | 0.12274 | 0.096974 | 0.096974 | 0.096974 | 0 | 0.003084 | 0.33263 | 18,949 | 542 | 81 | 34.961255 | 0.788708 | 0.043116 | 0 | 0.254902 | 0 | 0 | 0.085728 | 0.007399 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.053221 | 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 |
963b0d114b724b777319780e0c0927ea391039da | 15,781 | py | Python | megztinis/megztinis.py | qbilius/autoart | e82f0b28848648600e3e61d188231edd26f215b0 | [
"MIT"
] | 2 | 2022-03-10T04:12:42.000Z | 2022-03-12T02:44:32.000Z | megztinis/megztinis.py | qbilius/autoart | e82f0b28848648600e3e61d188231edd26f215b0 | [
"MIT"
] | null | null | null | megztinis/megztinis.py | qbilius/autoart | e82f0b28848648600e3e61d188231edd26f215b0 | [
"MIT"
] | null | null | null | import sys
import psychopy
from psychopy import visual, core
import numpy as np
import scipy.ndimage
import matplotlib.pyplot as plt
import matplotlib as mpl
from PIL import Image
# import hmax
class Filters(object):
def gabor(self,theta=0, gamma=1, sigma=2, lam=5.6,k=10):
# g = np.exp(-np.pi*((alpha*x)**2... | 37.044601 | 137 | 0.535581 | 2,235 | 15,781 | 3.696197 | 0.188814 | 0.016947 | 0.014647 | 0.016342 | 0.364242 | 0.319937 | 0.275148 | 0.264496 | 0.250696 | 0.245128 | 0 | 0.0371 | 0.325328 | 15,781 | 425 | 138 | 37.131765 | 0.7388 | 0.281858 | 0 | 0.190661 | 0 | 0 | 0.009181 | 0.001872 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.015564 | 0.031128 | null | null | 0.011673 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
963c6c87ecd5e7c3f66e475894725c19778fbab2 | 334 | py | Python | ubuntu.py | epcim/fabfile-toolbox | c5f72978e52579aa098e238874c95f29e9e900ce | [
"MIT"
] | null | null | null | ubuntu.py | epcim/fabfile-toolbox | c5f72978e52579aa098e238874c95f29e9e900ce | [
"MIT"
] | null | null | null | ubuntu.py | epcim/fabfile-toolbox | c5f72978e52579aa098e238874c95f29e9e900ce | [
"MIT"
] | null | null | null | """
Fabfile
Intended to provide scripted interface to take actions on ubuntu servers.
"""
AUTHOR = "epcim@apealive.net"
URL = "http://github.com/epcim/fabfile"
from fabric.api import *
@task
# @runs_once
# def help():
# print """
# """
@task
def cmd(cmd):
run("%s" % (cmd))
@task
def add_repo(args,repo=Non... | 12.846154 | 73 | 0.640719 | 47 | 334 | 4.510638 | 0.787234 | 0.066038 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.191617 | 334 | 25 | 74 | 13.36 | 0.785185 | 0.359281 | 0 | 0.3 | 0 | 0 | 0.253731 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.1 | 0.1 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
964520f11c0141cee1d89f62152380fbcf586567 | 444 | py | Python | posts/migrations/0006_post_status.py | ajmasia/wordplease | 0fcea3783c74f2e2faf48ffd31ce7bed76dfb789 | [
"Unlicense"
] | null | null | null | posts/migrations/0006_post_status.py | ajmasia/wordplease | 0fcea3783c74f2e2faf48ffd31ce7bed76dfb789 | [
"Unlicense"
] | null | null | null | posts/migrations/0006_post_status.py | ajmasia/wordplease | 0fcea3783c74f2e2faf48ffd31ce7bed76dfb789 | [
"Unlicense"
] | null | null | null | # Generated by Django 2.0.6 on 2018-06-17 13:25
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('posts', '0005_auto_20180616_2037'),
]
operations = [
migrations.AddField(
model_name='post',
name='status',
... | 23.368421 | 114 | 0.587838 | 49 | 444 | 5.22449 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.097561 | 0.261261 | 444 | 18 | 115 | 24.666667 | 0.682927 | 0.101351 | 0 | 0 | 1 | 0 | 0.153652 | 0.057935 | 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 |
9648d084c5b18f0ec551f4f8e4d3caf8c77c7734 | 476 | py | Python | tracker/management/commands/testemails.py | AeroNotix/django-timetracker | 0b4c6919bf6807c2a564306133780ee0cc5ba1a7 | [
"BSD-4-Clause"
] | 6 | 2015-03-09T12:27:46.000Z | 2022-03-07T09:56:56.000Z | tracker/management/commands/testemails.py | AeroNotix/django-timetracker | 0b4c6919bf6807c2a564306133780ee0cc5ba1a7 | [
"BSD-4-Clause"
] | 1 | 2017-11-29T13:02:22.000Z | 2019-01-22T17:51:44.000Z | tracker/management/commands/testemails.py | AeroNotix/django-timetracker | 0b4c6919bf6807c2a564306133780ee0cc5ba1a7 | [
"BSD-4-Clause"
] | 6 | 2015-05-07T11:10:05.000Z | 2019-06-21T18:19:53.000Z | '''
Simple module to aid in command-line debugging of notification related issues.
'''
from django.core.management.base import BaseCommand, CommandError
from timetracker.tracker.models import TrackingEntry
class Command(BaseCommand):
'''Django command'''
help = 'Closes the specified poll for voting'
def ... | 29.75 | 78 | 0.714286 | 56 | 476 | 6.035714 | 0.821429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007712 | 0.182773 | 476 | 15 | 79 | 31.733333 | 0.861183 | 0.226891 | 0 | 0 | 0 | 0 | 0.102857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
964a2714729a549a0c14d0e2e0034f162b20857c | 5,532 | py | Python | attention/train.py | mleila/attention | 4a5a3f297fbb3043de996d29b2d1522c9ba27e75 | [
"MIT"
] | null | null | null | attention/train.py | mleila/attention | 4a5a3f297fbb3043de996d29b2d1522c9ba27e75 | [
"MIT"
] | null | null | null | attention/train.py | mleila/attention | 4a5a3f297fbb3043de996d29b2d1522c9ba27e75 | [
"MIT"
] | null | null | null | """This moudle contains training logic."""
import time
from random import random
import torch
from attention.constants import DECODER_INPUT, ENCODER_INPUT, TRAIN, VALID
def save_checkpoint(state, filename):
torch.save(state, filename)
def load_checkpoint(checkpoint, model, optimizer=None):
model.load_stat... | 34.148148 | 98 | 0.631779 | 655 | 5,532 | 5.064122 | 0.207634 | 0.027133 | 0.025324 | 0.028942 | 0.302683 | 0.286403 | 0.27555 | 0.255653 | 0.230329 | 0.230329 | 0 | 0.004516 | 0.279465 | 5,532 | 161 | 99 | 34.360248 | 0.827647 | 0.055134 | 0 | 0.214286 | 0 | 0 | 0.063284 | 0.006946 | 0 | 0 | 0 | 0.012422 | 0 | 1 | 0.0625 | false | 0 | 0.035714 | 0.008929 | 0.142857 | 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 |
96542d652ce3ddd7a85dff33b0ff3725f3af4d7a | 2,008 | py | Python | base/tests/test.py | langdongreen/flaskbase | a5ce3ddc0c1a20b7bb59a9c87359614ef6954054 | [
"MIT"
] | null | null | null | base/tests/test.py | langdongreen/flaskbase | a5ce3ddc0c1a20b7bb59a9c87359614ef6954054 | [
"MIT"
] | null | null | null | base/tests/test.py | langdongreen/flaskbase | a5ce3ddc0c1a20b7bb59a9c87359614ef6954054 | [
"MIT"
] | null | null | null | from base import app,c
import unittest
class baseTestCase(unittest.TestCase):
email = 'email@address'
password = 'password'
admin = '/admin'
login = '/login'
logout = '/logout'
def setUp(self):
'''Setup test variables and remove form CSRF for easy submission'''
app.testing = T... | 27.888889 | 79 | 0.607072 | 252 | 2,008 | 4.746032 | 0.297619 | 0.035117 | 0.040134 | 0.033445 | 0.299331 | 0.23913 | 0.182274 | 0.14214 | 0.14214 | 0.14214 | 0 | 0.002681 | 0.256972 | 2,008 | 71 | 80 | 28.28169 | 0.798928 | 0.123008 | 0 | 0.093023 | 0 | 0 | 0.103188 | 0 | 0 | 0 | 0 | 0 | 0.139535 | 1 | 0.186047 | false | 0.186047 | 0.046512 | 0.023256 | 0.465116 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
965cbaa07b3d601c762602dad6f56eeffad7986d | 2,582 | py | Python | transform_docker/server.py | briglx/AzureConvertJson | 193c0d29b4f3d9ce2612ce612da39a8db25b0b52 | [
"MIT"
] | null | null | null | transform_docker/server.py | briglx/AzureConvertJson | 193c0d29b4f3d9ce2612ce612da39a8db25b0b52 | [
"MIT"
] | null | null | null | transform_docker/server.py | briglx/AzureConvertJson | 193c0d29b4f3d9ce2612ce612da39a8db25b0b52 | [
"MIT"
] | null | null | null | """HTTP Server to transform json to json using liquid formatter."""
import json
import logging
import os
import uuid
from aiohttp import web
from liquid import Liquid, filter_manager
def generate_guid():
"""Generate a UUID string."""
return str(uuid.uuid4())
def convert_quality_filter(quality):
"""Jinj... | 26.895833 | 87 | 0.682029 | 329 | 2,582 | 5.139818 | 0.334347 | 0.070964 | 0.070964 | 0.085157 | 0.145476 | 0.145476 | 0.145476 | 0.053223 | 0 | 0 | 0 | 0.006917 | 0.216112 | 2,582 | 95 | 88 | 27.178947 | 0.828557 | 0.125871 | 0 | 0.037037 | 1 | 0 | 0.168719 | 0.011856 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0.111111 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9660cd7969739ee6d2d3c341ceda3d0565d3278e | 938 | py | Python | examples/healthcare/mimic_unimodal_1.py | mrbeann/MultiBench | 7da0a493b8e2cd857a5c22c0be04748ab7487494 | [
"MIT"
] | null | null | null | examples/healthcare/mimic_unimodal_1.py | mrbeann/MultiBench | 7da0a493b8e2cd857a5c22c0be04748ab7487494 | [
"MIT"
] | null | null | null | examples/healthcare/mimic_unimodal_1.py | mrbeann/MultiBench | 7da0a493b8e2cd857a5c22c0be04748ab7487494 | [
"MIT"
] | null | null | null | import sys
import os
sys.path.append(os.getcwd())
from training_structures.unimodal import train, test
from datasets.mimic.get_data import get_dataloader
from unimodals.common_models import MLP, GRUWithLinear
from torch import nn
import torch
#get dataloader for icd9 classification task 7
traindata, validdata, testdat... | 33.5 | 87 | 0.755864 | 138 | 938 | 5.094203 | 0.478261 | 0.055477 | 0.068279 | 0.073969 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035757 | 0.105544 | 938 | 27 | 88 | 34.740741 | 0.802145 | 0.23774 | 0 | 0 | 0 | 0 | 0.074753 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.411765 | 0 | 0.411765 | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
96640fc3c29068005f8d79f914932fefbab60f33 | 995 | py | Python | weatherapp/main_app/serializers.py | Sh1kataGaNai/WeatherApp | bcd6602db70baf8044df57d42926d654ed00951e | [
"MIT"
] | 3 | 2018-07-02T01:15:47.000Z | 2019-11-28T10:12:22.000Z | weatherapp/main_app/serializers.py | Sh1kataGaNai/WeatherApp | bcd6602db70baf8044df57d42926d654ed00951e | [
"MIT"
] | 3 | 2020-06-05T18:24:06.000Z | 2021-06-10T20:27:26.000Z | weatherapp/main_app/serializers.py | Sh1kataGaNai/WeatherApp | bcd6602db70baf8044df57d42926d654ed00951e | [
"MIT"
] | null | null | null | from rest_framework import serializers
from .models import City, ForecastDate
import datetime
class UserInputCitySerializer(serializers.Serializer):
city_name = serializers.CharField(max_length=200, default='')
iso_country_code = serializers.CharField(max_length=2, default='')
required_date_search = seria... | 28.428571 | 95 | 0.706533 | 107 | 995 | 6.411215 | 0.560748 | 0.058309 | 0.067055 | 0.084548 | 0.116618 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007538 | 0.2 | 995 | 34 | 96 | 29.264706 | 0.854271 | 0 | 0 | 0.090909 | 0 | 0 | 0.065524 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.136364 | 0 | 0.590909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
966abd7d89cd18f5b47df6b966cd6f71287a283c | 621 | py | Python | WebMirror/management/rss_parser_funcs/feed_parse_extractLasciviousImouto.py | fake-name/ReadableWebProxy | ed5c7abe38706acc2684a1e6cd80242a03c5f010 | [
"BSD-3-Clause"
] | 193 | 2016-08-02T22:04:35.000Z | 2022-03-09T20:45:41.000Z | WebMirror/management/rss_parser_funcs/feed_parse_extractLasciviousImouto.py | fake-name/ReadableWebProxy | ed5c7abe38706acc2684a1e6cd80242a03c5f010 | [
"BSD-3-Clause"
] | 533 | 2016-08-23T20:48:23.000Z | 2022-03-28T15:55:13.000Z | WebMirror/management/rss_parser_funcs/feed_parse_extractLasciviousImouto.py | rrosajp/ReadableWebProxy | ed5c7abe38706acc2684a1e6cd80242a03c5f010 | [
"BSD-3-Clause"
] | 19 | 2015-08-13T18:01:08.000Z | 2021-07-12T17:13:09.000Z | def extractLasciviousImouto(item):
"""
"""
vol, chp, frag, postfix = extractVolChapterFragmentPostfix(item['title'].replace('-', '.'))
if not (chp or vol) or 'preview' in item['title'].lower():
return None
if 'The Beast of the 17th District' in item['tags'] or 'the beast of the 17th district' in item['title'].l... | 47.769231 | 129 | 0.716586 | 86 | 621 | 5.162791 | 0.383721 | 0.054054 | 0.067568 | 0.087838 | 0.407658 | 0.322072 | 0.13964 | 0.13964 | 0 | 0 | 0 | 0.011215 | 0.138486 | 621 | 12 | 130 | 51.75 | 0.818692 | 0 | 0 | 0 | 0 | 0 | 0.269608 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
966b03016334c67222a12fe403548a4e9b80bc23 | 721 | py | Python | app/main/views.py | Bnabz/news-mix | 96eb582ef4b375036d0eed1820a93992ad69cd0b | [
"MIT"
] | null | null | null | app/main/views.py | Bnabz/news-mix | 96eb582ef4b375036d0eed1820a93992ad69cd0b | [
"MIT"
] | null | null | null | app/main/views.py | Bnabz/news-mix | 96eb582ef4b375036d0eed1820a93992ad69cd0b | [
"MIT"
] | null | null | null | from flask import render_template,request,redirect,url_for
from . import main
from ..requests import get_sources,get_articles
@main.route('/')
def index():
sources = get_sources()
if sources:
return render_template('index.html', sources=sources)
@main.route('/technology')
def tech_articles():
art... | 28.84 | 62 | 0.739251 | 86 | 721 | 6.023256 | 0.302326 | 0.185328 | 0.15444 | 0.156371 | 0.312741 | 0.312741 | 0.312741 | 0.220077 | 0.220077 | 0 | 0 | 0 | 0.130374 | 721 | 25 | 63 | 28.84 | 0.826156 | 0 | 0 | 0.15 | 0 | 0 | 0.15097 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.15 | 0 | 0.55 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
966d43d7b57067d473637a175a0032cfcd01a094 | 4,904 | py | Python | cowait/tasks/definition.py | ProgHaj/cowait | e95c30faab8caf8b0413de4e1784529a3a06475d | [
"Apache-2.0"
] | null | null | null | cowait/tasks/definition.py | ProgHaj/cowait | e95c30faab8caf8b0413de4e1784529a3a06475d | [
"Apache-2.0"
] | null | null | null | cowait/tasks/definition.py | ProgHaj/cowait | e95c30faab8caf8b0413de4e1784529a3a06475d | [
"Apache-2.0"
] | null | null | null | from __future__ import annotations
from datetime import datetime, timezone
from marshmallow import Schema, fields, post_load
from ..utils import uuid
def generate_task_id(name: str) -> str:
if '.' in name:
dot = name.rfind('.')
name = name[dot+1:]
name = name.replace('.', '-')
name = name... | 32.693333 | 92 | 0.573817 | 551 | 4,904 | 5.016334 | 0.210526 | 0.045586 | 0.036903 | 0.039074 | 0.341534 | 0.317656 | 0.285818 | 0.285818 | 0.285818 | 0.285818 | 0 | 0.000299 | 0.317904 | 4,904 | 149 | 93 | 32.912752 | 0.826009 | 0.274062 | 0 | 0 | 1 | 0 | 0.022384 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065934 | false | 0 | 0.043956 | 0.021978 | 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 |
966e9c3a342ad752bb2b156d09a714eaaed4df8a | 492 | py | Python | configs/settings/loader.py | jirenmaa/twitter-clone | de211a7d73ef455f5759eba69cdceb4b51f5a9b0 | [
"MIT"
] | 5 | 2021-10-12T06:40:51.000Z | 2022-02-23T13:37:40.000Z | configs/settings/loader.py | jirenmaa/twitter-clone | de211a7d73ef455f5759eba69cdceb4b51f5a9b0 | [
"MIT"
] | null | null | null | configs/settings/loader.py | jirenmaa/twitter-clone | de211a7d73ef455f5759eba69cdceb4b51f5a9b0 | [
"MIT"
] | 1 | 2022-02-02T22:36:00.000Z | 2022-02-02T22:36:00.000Z | import os
from pathlib import Path
import dotenv
BASE_DIR = Path(__file__).resolve(strict=True).parent.parent.parent
# read environment variables from .env
dotenv.read_dotenv(dotenv=os.path.join(BASE_DIR, ".envs/.django"))
dotenv.read_dotenv(dotenv=os.path.join(BASE_DIR, ".envs/.postgres"))
# set environment variab... | 30.75 | 78 | 0.794715 | 73 | 492 | 5.109589 | 0.410959 | 0.128686 | 0.085791 | 0.117962 | 0.230563 | 0.230563 | 0.230563 | 0.230563 | 0.230563 | 0.230563 | 0 | 0 | 0.085366 | 492 | 15 | 79 | 32.8 | 0.828889 | 0.126016 | 0 | 0 | 0 | 0 | 0.168618 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
9673c6e73df331e2e996f860fc981dbbeedcc333 | 1,292 | py | Python | Store/views.py | royhzq/djagger-example | 2419b9579fcf9b3ccb60bd9bbe21460cab55bcf6 | [
"MIT"
] | 1 | 2022-02-03T11:42:19.000Z | 2022-02-03T11:42:19.000Z | Store/views.py | royhzq/djagger-example | 2419b9579fcf9b3ccb60bd9bbe21460cab55bcf6 | [
"MIT"
] | null | null | null | Store/views.py | royhzq/djagger-example | 2419b9579fcf9b3ccb60bd9bbe21460cab55bcf6 | [
"MIT"
] | null | null | null | from rest_framework.views import APIView
from rest_framework.response import Response
from .serializers import OrderSerializer
from .schemas import (
InventoryByStatusSchema,
OrderSchema,
OrderIDSchema,
InvalidInputSchema,
NotFoundSchema,
)
class InventoryAPI(APIView):
summary = "Returns toy ... | 21.898305 | 50 | 0.637771 | 119 | 1,292 | 6.823529 | 0.411765 | 0.068966 | 0.041872 | 0.041872 | 0.160099 | 0.086207 | 0 | 0 | 0 | 0 | 0 | 0.022317 | 0.271672 | 1,292 | 59 | 51 | 21.898305 | 0.840595 | 0 | 0 | 0.311111 | 0 | 0 | 0.100541 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088889 | false | 0 | 0.088889 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
96776e1254035c95fd7f188aad9aa39217e068c7 | 1,569 | py | Python | main.py | washingtonian88/WebScraping | 828fae6763fa6a4cc2011e1dbb58b067a5603ce0 | [
"Apache-2.0"
] | null | null | null | main.py | washingtonian88/WebScraping | 828fae6763fa6a4cc2011e1dbb58b067a5603ce0 | [
"Apache-2.0"
] | null | null | null | main.py | washingtonian88/WebScraping | 828fae6763fa6a4cc2011e1dbb58b067a5603ce0 | [
"Apache-2.0"
] | null | null | null | import scrape_functions as sf
import pandas as pd
import numpy as np
import datetime
# Make date vector
dates = pd.date_range(start='2020/09/01',end='2020/10/31',freq='D').to_list()
dates = [x.strftime('%Y%m%d') for x in dates]
# Read in data
df = [sf.pull_dates(date=x) for x in dates]
df = pd.concat(d... | 35.659091 | 82 | 0.608668 | 199 | 1,569 | 4.773869 | 0.407035 | 0.036842 | 0.063158 | 0.023158 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026689 | 0.235819 | 1,569 | 44 | 83 | 35.659091 | 0.765638 | 0 | 0 | 0.058824 | 0 | 0 | 0.12028 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.117647 | 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 |
96859a0682b2c8372be42e07d5cffac57d258dfe | 1,538 | py | Python | Raspberry/recvArds.py | Omaroid/IOT-Fireman | 47e81229007113e75b8fb466b0c0294e354925b2 | [
"MIT"
] | 1 | 2019-02-03T11:02:19.000Z | 2019-02-03T11:02:19.000Z | recvArds.py | Omaroid/IOT-Fireman | 47e81229007113e75b8fb466b0c0294e354925b2 | [
"MIT"
] | null | null | null | recvArds.py | Omaroid/IOT-Fireman | 47e81229007113e75b8fb466b0c0294e354925b2 | [
"MIT"
] | null | null | null | from firebase import firebase
from bluetooth import *
import time
import sys
import os
port = 1
tab =[0,0,0]
firebase=firebase.FirebaseApplication('https://fireman-c4326.firebaseio.com/');
result = firebase.get('/users', None)
def get_data(addr):
sock=BluetoothSocket(RFCOMM)
sock.connect((addr, port))
... | 30.156863 | 130 | 0.542913 | 164 | 1,538 | 5.04878 | 0.457317 | 0.028986 | 0.057971 | 0.15942 | 0.199275 | 0.199275 | 0.135266 | 0 | 0 | 0 | 0 | 0.045889 | 0.319896 | 1,538 | 50 | 131 | 30.76 | 0.745698 | 0.024707 | 0 | 0 | 0 | 0 | 0.188793 | 0.100734 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.128205 | null | null | 0.128205 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
9690a0a78a906c09c49bc9cc34b64212f871851b | 12,996 | py | Python | lulesh/main.py | rohanbasuroy/BLISS | 9c2826f6a2360887fb2fdadad25a7da8fe0d8a60 | [
"MIT"
] | 5 | 2021-06-24T15:47:43.000Z | 2022-03-13T22:35:57.000Z | lulesh/main.py | rohanbasuroy/BLISS | 9c2826f6a2360887fb2fdadad25a7da8fe0d8a60 | [
"MIT"
] | null | null | null | lulesh/main.py | rohanbasuroy/BLISS | 9c2826f6a2360887fb2fdadad25a7da8fe0d8a60 | [
"MIT"
] | 1 | 2021-08-02T01:53:23.000Z | 2021-08-02T01:53:23.000Z | #multiple BOs, kripke
import skopt
from skopt import gp_minimize
from skopt.space import Real, Integer,Categorical
from skopt.utils import use_named_args
from sklearn.gaussian_process.kernels import (RBF, Matern, RationalQuadratic,ExpSineSquared, DotProduct,ConstantKernel,WhiteKernel)
from skopt.learning import Gaussia... | 34.472149 | 145 | 0.608187 | 1,794 | 12,996 | 4.272018 | 0.153289 | 0.032881 | 0.056367 | 0.067328 | 0.571634 | 0.449243 | 0.419233 | 0.412709 | 0.394181 | 0.358951 | 0 | 0.039721 | 0.261927 | 12,996 | 376 | 146 | 34.56383 | 0.759279 | 0.058787 | 0 | 0.468085 | 0 | 0 | 0.047525 | 0.01901 | 0.006079 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.066869 | null | null | 0.027356 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
96934ce517f0ef17ec9c522ad3da8d5ab8e9055a | 1,282 | py | Python | lib/manage.py | cyf0525/reconstruct | ddcc2628e5beceea942e194b5168f812379029e7 | [
"Apache-2.0"
] | null | null | null | lib/manage.py | cyf0525/reconstruct | ddcc2628e5beceea942e194b5168f812379029e7 | [
"Apache-2.0"
] | null | null | null | lib/manage.py | cyf0525/reconstruct | ddcc2628e5beceea942e194b5168f812379029e7 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import json
import conf
class Manage():
def __init__(self,id, name, email, userId):
self.id = id
self.name = name
self.email = email
self.userId = userId
def Create(self):
sql_insert = 'insert into employee' \
'(id,name,email)... | 32.871795 | 98 | 0.534321 | 149 | 1,282 | 4.530201 | 0.395973 | 0.035556 | 0.044444 | 0.097778 | 0.367407 | 0.272593 | 0.272593 | 0.272593 | 0.272593 | 0.195556 | 0 | 0.01 | 0.297972 | 1,282 | 39 | 99 | 32.871795 | 0.74 | 0.067863 | 0 | 0 | 0 | 0 | 0.145378 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.074074 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9696c2020dc88fa206406c9d11401864d973d0c1 | 385 | py | Python | carrentalsystem/crcapp/migrations/0013_auto_20181022_1134.py | ruchaidandev/car-rental-system-ifb299 | 478e955db4a8fe9e2dd434f4fa3e938e9bb32b46 | [
"MIT"
] | 2 | 2020-03-28T20:05:42.000Z | 2021-09-21T13:17:29.000Z | carrentalsystem/crcapp/migrations/0013_auto_20181022_1134.py | ruchaidandev/car-rental-system-ifb299 | 478e955db4a8fe9e2dd434f4fa3e938e9bb32b46 | [
"MIT"
] | null | null | null | carrentalsystem/crcapp/migrations/0013_auto_20181022_1134.py | ruchaidandev/car-rental-system-ifb299 | 478e955db4a8fe9e2dd434f4fa3e938e9bb32b46 | [
"MIT"
] | null | null | null | # Generated by Django 2.1.2 on 2018-10-22 01:34
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('crcapp', '0012_auto_20181022_1133'),
]
operations = [
migrations.AlterField(
model_name='customer',
name='phoneNumbe... | 20.263158 | 47 | 0.6 | 39 | 385 | 5.820513 | 0.820513 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113139 | 0.288312 | 385 | 18 | 48 | 21.388889 | 0.715328 | 0.116883 | 0 | 0 | 1 | 0 | 0.142012 | 0.068047 | 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 |
96973ef077caef5b54f8fb433a50fea5b09de2ca | 5,251 | py | Python | utils/wfuzzbasicauthbrute/wfuzz/framework/fuzzer/filter.py | ismailbozkurt/kubebot | 3558ddc593c861a9805731052c1ac5e71879fdf5 | [
"MIT"
] | 171 | 2017-07-11T08:27:49.000Z | 2022-02-20T17:42:51.000Z | utils/wfuzzbasicauthbrute/wfuzz/framework/fuzzer/filter.py | STEALTH-Z/kubebot | 3558ddc593c861a9805731052c1ac5e71879fdf5 | [
"MIT"
] | 2 | 2017-07-11T17:50:16.000Z | 2019-12-01T21:35:18.000Z | utils/wfuzzbasicauthbrute/wfuzz/framework/fuzzer/filter.py | STEALTH-Z/kubebot | 3558ddc593c861a9805731052c1ac5e71879fdf5 | [
"MIT"
] | 36 | 2017-07-11T08:33:31.000Z | 2022-03-11T04:56:02.000Z | from framework.core.myexception import FuzzException
from threading import Thread
from framework.fuzzer.fuzzobjects import FuzzResult
from framework.utils.myqueue import FuzzQueue
PYPARSING = True
try:
from pyparsing import Word, Group, oneOf, Optional, Suppress, ZeroOrMore, Literal
from pyparsing import Pa... | 29.335196 | 130 | 0.668825 | 693 | 5,251 | 4.962482 | 0.200577 | 0.113987 | 0.060483 | 0.044199 | 0.248037 | 0.165746 | 0.165746 | 0.165746 | 0.103518 | 0.103518 | 0 | 0.017367 | 0.188536 | 5,251 | 178 | 131 | 29.5 | 0.789721 | 0.009522 | 0 | 0.049296 | 0 | 0.014085 | 0.115599 | 0.005578 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.007042 | 0.049296 | null | null | 0.007042 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
969de97b68aaff772f726aba49de9bc51215a767 | 513 | py | Python | flaskproject/__init__.py | josepmartorell/flaskapp | 4a02c550750a1c6e94d1987b3769ca318bb2c8e5 | [
"MIT"
] | null | null | null | flaskproject/__init__.py | josepmartorell/flaskapp | 4a02c550750a1c6e94d1987b3769ca318bb2c8e5 | [
"MIT"
] | null | null | null | flaskproject/__init__.py | josepmartorell/flaskapp | 4a02c550750a1c6e94d1987b3769ca318bb2c8e5 | [
"MIT"
] | null | null | null | """
The flask application package.
"""
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_migrate import Migrate
app = Flask(__name__)
app.config['SECRET_KEY'] = '95371e2f-a487-4e22-a9e2-8b6356b85453'
app.config['SQLALCHEMY_DATABASE_URI'] = 'postgresql://postgres:testing@localhost:5432/flask... | 21.375 | 99 | 0.797271 | 63 | 513 | 6.31746 | 0.52381 | 0.067839 | 0.095477 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.060606 | 0.099415 | 513 | 23 | 100 | 22.304348 | 0.800866 | 0.05848 | 0 | 0 | 0 | 0 | 0.328421 | 0.307368 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 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 |
969e2937079b1652c2b3fc441f428d43d117917c | 607 | py | Python | allauth/socialaccount/migrations/0004_auto_20210811_0926.py | tlkenergy/django-allauth | 1e3319c7a402d1f17d33e6f0a394d63c55f4ad86 | [
"MIT"
] | null | null | null | allauth/socialaccount/migrations/0004_auto_20210811_0926.py | tlkenergy/django-allauth | 1e3319c7a402d1f17d33e6f0a394d63c55f4ad86 | [
"MIT"
] | null | null | null | allauth/socialaccount/migrations/0004_auto_20210811_0926.py | tlkenergy/django-allauth | 1e3319c7a402d1f17d33e6f0a394d63c55f4ad86 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.5 on 2021-08-11 09:26
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('socialaccount', '0003_extra_data_default_dict'),
]
operations = [
migrations.AddField(
model_name='socialaccount',
n... | 26.391304 | 93 | 0.616145 | 56 | 607 | 6.535714 | 0.75 | 0.092896 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046875 | 0.261944 | 607 | 22 | 94 | 27.590909 | 0.770089 | 0.074135 | 0 | 0.125 | 1 | 0 | 0.214286 | 0.05 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
96a7ee6c36c5bc17f0fc7c0bc290daf650f56456 | 6,437 | py | Python | localServer.py | kevinrigney/RPI.LightController | 1117a7ef8480e01448522eab6798ef0c2200b1c2 | [
"MIT"
] | null | null | null | localServer.py | kevinrigney/RPI.LightController | 1117a7ef8480e01448522eab6798ef0c2200b1c2 | [
"MIT"
] | null | null | null | localServer.py | kevinrigney/RPI.LightController | 1117a7ef8480e01448522eab6798ef0c2200b1c2 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# Custom module
import lightCommon as lc
# For communicating with GPIO on Raspberry Pi
import RPi.GPIO as gpio
import socket
import sys,signal,os,time
import struct
from threading import Thread
# Global
lights = []
def handler(signum, frame):
print 'Signal handler called with signal', s... | 30.947115 | 139 | 0.607115 | 879 | 6,437 | 4.318544 | 0.248009 | 0.011855 | 0.02608 | 0.028451 | 0.291886 | 0.273973 | 0.264489 | 0.231296 | 0.187566 | 0.167545 | 0 | 0.002439 | 0.299363 | 6,437 | 207 | 140 | 31.096618 | 0.839246 | 0.166382 | 0 | 0.210526 | 0 | 0 | 0.09473 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.052632 | null | null | 0.192982 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
96abe4915b2f0d6b9df2200481cf3786db8c9372 | 650 | py | Python | tests/test_torch_filter.py | entn-at/filtering | da8edda4c8fb651eb9dbd7b25f7fc8f18b2cc144 | [
"MIT"
] | 37 | 2019-08-14T21:49:04.000Z | 2021-08-03T09:19:54.000Z | tests/test_torch_filter.py | entn-at/filtering | da8edda4c8fb651eb9dbd7b25f7fc8f18b2cc144 | [
"MIT"
] | 2 | 2020-01-08T21:12:14.000Z | 2021-06-18T19:54:48.000Z | tests/test_torch_filter.py | entn-at/filtering | da8edda4c8fb651eb9dbd7b25f7fc8f18b2cc144 | [
"MIT"
] | 5 | 2019-08-29T07:45:50.000Z | 2022-01-04T10:16:03.000Z | import unittest
import os
import numpy as np
import sys
import torch
import matplotlib.pyplot as plt
# Add .. to the PYTHONPATH
sys.path.insert(0, os.path.join(os.path.dirname(__file__), os.pardir))
import lilfilter.filters as F
import lilfilter.torch_filter as T
class TestTorchFilter(unittest.TestCase):
def te... | 21.666667 | 70 | 0.661538 | 96 | 650 | 4.333333 | 0.53125 | 0.028846 | 0.057692 | 0.086538 | 0.100962 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019685 | 0.218462 | 650 | 29 | 71 | 22.413793 | 0.799213 | 0.036923 | 0 | 0 | 0 | 0 | 0.012841 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.380952 | 0 | 0.47619 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
96ad4c52f4130b3cda728a6f6539d2a5ca60b497 | 1,405 | py | Python | FortressOfSolitude/_FortressOfSolitude/urls.py | BDD16/FortressOfSolitude | 51070d3ffa78262d823ae8ccce4f8ae3c7ed83ac | [
"MIT"
] | null | null | null | FortressOfSolitude/_FortressOfSolitude/urls.py | BDD16/FortressOfSolitude | 51070d3ffa78262d823ae8ccce4f8ae3c7ed83ac | [
"MIT"
] | 6 | 2021-07-26T14:07:30.000Z | 2022-01-09T01:06:40.000Z | FortressOfSolitude/_FortressOfSolitude/urls.py | BDD16/FortressOfSolitude | 51070d3ffa78262d823ae8ccce4f8ae3c7ed83ac | [
"MIT"
] | null | null | null | """
DBA 1337_TECH, AUSTIN TEXAS © MAY 2021
Proof of Concept code, No liabilities or warranties expressed or implied.
"""
"""
_FortressOfSolitude URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/topics/http/urls/
Examples:
Functio... | 36.973684 | 85 | 0.727402 | 201 | 1,405 | 5.00995 | 0.402985 | 0.087388 | 0.014896 | 0.023833 | 0.116187 | 0.116187 | 0.074479 | 0 | 0 | 0 | 0 | 0.013548 | 0.159431 | 1,405 | 38 | 86 | 36.973684 | 0.838273 | 0.165836 | 0 | 0 | 0 | 0 | 0.069364 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.454545 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
96af39820d44b07b1bd0acf170a6a4518f81b437 | 1,484 | py | Python | scripts/plaster_cli.py | pymc-labs/plaster | 8535afd78d357c305aa522b30019b1039fa7caab | [
"MIT"
] | null | null | null | scripts/plaster_cli.py | pymc-labs/plaster | 8535afd78d357c305aa522b30019b1039fa7caab | [
"MIT"
] | null | null | null | scripts/plaster_cli.py | pymc-labs/plaster | 8535afd78d357c305aa522b30019b1039fa7caab | [
"MIT"
] | null | null | null | import sys
from plumbum import cli, local
from plaster.tools.zlog import zlog
from plaster.main import assert_env
class CommandError(Exception):
def __init__(self, retcode=None):
self.retcode = retcode
class PlasterCommand(cli.Application):
PROGNAME = "plaster"
if __name__ == "__main__":
try:
... | 34.511628 | 88 | 0.65566 | 154 | 1,484 | 6.181818 | 0.493506 | 0.201681 | 0.056723 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001748 | 0.229111 | 1,484 | 42 | 89 | 35.333333 | 0.83042 | 0.03841 | 0 | 0.0625 | 0 | 0 | 0.248421 | 0.153684 | 0 | 0 | 0 | 0 | 0.0625 | 1 | 0.03125 | false | 0 | 0.15625 | 0 | 0.28125 | 0.03125 | 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 |
96b300e0c304b94b97ff71b534202c0409b0fcbb | 1,710 | py | Python | exercicios/ex058.py | mrcbnu/python-_exercicios | 773da52a227f0e9ecce998cb6b50b3fe167a4f1d | [
"MIT"
] | null | null | null | exercicios/ex058.py | mrcbnu/python-_exercicios | 773da52a227f0e9ecce998cb6b50b3fe167a4f1d | [
"MIT"
] | null | null | null | exercicios/ex058.py | mrcbnu/python-_exercicios | 773da52a227f0e9ecce998cb6b50b3fe167a4f1d | [
"MIT"
] | null | null | null | ###########################################
# EXERCICIO 058 #
###########################################
'''MELHORE O EX028, ONDE O COMPUTADOR VAI PENSAR
EM UM NUMERO ENTRE 0 E 5. SÓ QUE AGORA O JOGADOR
VAI TENTAR ADIVINHAR ATÉ ACERTAR. MOSTRANDO NO
FINAL QUANTOS PALPITES FORAM NECESSARIOS'''... | 36.382979 | 103 | 0.539181 | 254 | 1,710 | 3.629921 | 0.354331 | 0.078091 | 0.02603 | 0.029284 | 0.155098 | 0.109544 | 0.097614 | 0.097614 | 0.097614 | 0.097614 | 0 | 0.0721 | 0.253801 | 1,710 | 46 | 104 | 37.173913 | 0.65047 | 0.122807 | 0 | 0.157895 | 0 | 0.078947 | 0.338119 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 0.052632 | 0.473684 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
96b5409183d558a45f4592ca27778fccfd48b8dd | 6,476 | py | Python | gunnery/core/tests/test_modals.py | timgates42/gunnery | 733a261cae6243a11883a40e18b14f57cf6e47b2 | [
"Apache-2.0"
] | 314 | 2015-01-01T06:17:34.000Z | 2022-03-10T03:34:02.000Z | gunnery/core/tests/test_modals.py | timgates42/gunnery | 733a261cae6243a11883a40e18b14f57cf6e47b2 | [
"Apache-2.0"
] | 20 | 2015-04-03T13:34:59.000Z | 2021-06-10T20:37:25.000Z | gunnery/core/tests/test_modals.py | pkucmus/gunnery | 30fce7f3fd74947621da6e91c1e872f383fc1e71 | [
"Apache-2.0"
] | 57 | 2015-01-07T05:41:34.000Z | 2021-10-31T19:56:50.000Z | from django.core.urlresolvers import reverse
from guardian.shortcuts import assign_perm, get_objects_for_user
from core.models import ServerRole
from core.tests.base import BaseModalTestCase, BaseModalTests, BaseForbiddenModalTests
from core.tests.fixtures import ServerRoleFactory, ApplicationFactory, EnvironmentFactor... | 41.780645 | 106 | 0.668005 | 591 | 6,476 | 7.164129 | 0.159052 | 0.042985 | 0.024563 | 0.032121 | 0.739017 | 0.70052 | 0.626594 | 0.614785 | 0.559991 | 0.496221 | 0 | 0.00277 | 0.21958 | 6,476 | 154 | 107 | 42.051948 | 0.834982 | 0 | 0 | 0.631148 | 0 | 0 | 0.122607 | 0 | 0 | 0 | 0 | 0 | 0.098361 | 1 | 0.122951 | false | 0 | 0.040984 | 0.02459 | 0.434426 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7365858bf696014c7d738a49d339f783406dd413 | 3,203 | py | Python | disenum.py | spicesouls/disenum | 06053b4d112f34844716ea8a95ada42ebc057420 | [
"MIT"
] | 13 | 2021-04-08T11:24:37.000Z | 2022-03-16T23:07:27.000Z | disenum.py | spicesouls/disenum | 06053b4d112f34844716ea8a95ada42ebc057420 | [
"MIT"
] | null | null | null | disenum.py | spicesouls/disenum | 06053b4d112f34844716ea8a95ada42ebc057420 | [
"MIT"
] | 2 | 2021-08-07T12:55:16.000Z | 2021-09-05T14:07:17.000Z | #!/bin/env python3
import argparse
import sys
from colorama import init,Fore,Style,Back
from lib.tokencheck import *
from lib.enum import *
from lib.generation import *
init()
# Banner
banner = f'''{Style.BRIGHT}{Fore.RED}
/-----------------\ {Fore.YELLOW}v1.0
{Fore.YELLOW}DisEnum{Fore.RED}
\----------------... | 34.074468 | 145 | 0.688105 | 427 | 3,203 | 5.135831 | 0.323185 | 0.049248 | 0.055176 | 0.065663 | 0.165071 | 0.124943 | 0.055632 | 0.033744 | 0 | 0 | 0 | 0.00211 | 0.112395 | 3,203 | 93 | 146 | 34.44086 | 0.769258 | 0.041211 | 0 | 0.107692 | 0 | 0.123077 | 0.645172 | 0.16832 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015385 | false | 0 | 0.092308 | 0 | 0.107692 | 0.4 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
736b7229daa549b169079f63a2441d595cb3c420 | 1,836 | py | Python | plmcpi.py | niu541412/plmcpi | 2a76861afb4c2a08d8da2457dd9c53a91554db68 | [
"MIT"
] | null | null | null | plmcpi.py | niu541412/plmcpi | 2a76861afb4c2a08d8da2457dd9c53a91554db68 | [
"MIT"
] | null | null | null | plmcpi.py | niu541412/plmcpi | 2a76861afb4c2a08d8da2457dd9c53a91554db68 | [
"MIT"
] | null | null | null | def mc_pi(n): # Sampling n points to calculate pi.
#import time
import numpy as np
#a = time.time()
m = 0
pi = [None] * n
x = np.random.uniform(-1, 1, n)
y = np.random.uniform(-1, 1, n)
for i in range(0, n):
if (x[i]**2 + y[i]**2) <= 1:
m = m + 1
pi[i] = 4.0 ... | 27 | 93 | 0.497277 | 309 | 1,836 | 2.928803 | 0.288026 | 0.01547 | 0.066298 | 0.070718 | 0.392265 | 0.350276 | 0.311602 | 0.250829 | 0.216575 | 0.216575 | 0 | 0.035016 | 0.331155 | 1,836 | 67 | 94 | 27.402985 | 0.701954 | 0.138344 | 0 | 0.5 | 0 | 0 | 0.051461 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.137931 | null | null | 0.034483 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7373e2c8d68f17e349397d86627bc8de107362ce | 844 | py | Python | invenio_shibboleth/ext.py | mb-wali/invenio-shibboleth | 4c02530884771eed2f43c70c86b5922e7742cd12 | [
"MIT"
] | null | null | null | invenio_shibboleth/ext.py | mb-wali/invenio-shibboleth | 4c02530884771eed2f43c70c86b5922e7742cd12 | [
"MIT"
] | 14 | 2020-03-21T00:19:26.000Z | 2020-10-27T10:46:01.000Z | invenio_shibboleth/ext.py | mb-wali/invenio-shibboleth | 4c02530884771eed2f43c70c86b5922e7742cd12 | [
"MIT"
] | 1 | 2020-12-07T10:11:30.000Z | 2020-12-07T10:11:30.000Z | # -*- coding: utf-8 -*-
#
# Copyright (C) 2019 Esteban J. Garcia Gabancho.
# Copyright (C) 2020 Mojib Wali.
#
# invenio-shibboleth is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.
"""Invenio module that provides SAML integration."""
fr... | 28.133333 | 79 | 0.684834 | 105 | 844 | 5.371429 | 0.628571 | 0.090426 | 0.042553 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013473 | 0.208531 | 844 | 29 | 80 | 29.103448 | 0.830838 | 0.457346 | 0 | 0 | 0 | 0 | 0.074246 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.272727 | 0 | 0.545455 | 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 |
7377386bd19a305beaf320134b52cde51fa4e3df | 4,997 | py | Python | ztp/migrations/0001_initial.py | amigne/ZosTeroPs | d76023faa0cba8ff3f01018ca252969df86dcf60 | [
"MIT"
] | 4 | 2021-03-18T12:29:10.000Z | 2022-01-26T10:03:12.000Z | ztp/migrations/0001_initial.py | amigne/ZosTeroPs | d76023faa0cba8ff3f01018ca252969df86dcf60 | [
"MIT"
] | 7 | 2021-02-06T09:13:57.000Z | 2021-03-19T21:09:59.000Z | ztp/migrations/0001_initial.py | amigne/ZosTeroPs | d76023faa0cba8ff3f01018ca252969df86dcf60 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.6 on 2021-02-10 22:20
import django.core.files.storage
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.Create... | 52.052083 | 238 | 0.58295 | 483 | 4,997 | 5.900621 | 0.229814 | 0.047368 | 0.050526 | 0.067368 | 0.649474 | 0.605263 | 0.605263 | 0.605263 | 0.56807 | 0.56807 | 0 | 0.012699 | 0.259356 | 4,997 | 95 | 239 | 52.6 | 0.757363 | 0.009005 | 0 | 0.556818 | 1 | 0 | 0.195354 | 0.017778 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.090909 | 0 | 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 |
7378e741ed72cdaa5d133299217a4460d1b085c0 | 420 | py | Python | poll/urls.py | ajaykrprajapati/django_ems | 0cc4e487e109344ec63dd7e477b38b1b0a45b747 | [
"MIT"
] | null | null | null | poll/urls.py | ajaykrprajapati/django_ems | 0cc4e487e109344ec63dd7e477b38b1b0a45b747 | [
"MIT"
] | 3 | 2020-06-06T01:24:04.000Z | 2021-06-10T22:34:04.000Z | poll/urls.py | OmarGutierrezMolina/SwaggerHindi | 26cacab3b5901960a409bf3610084f97880a88e5 | [
"MIT"
] | null | null | null | from django.urls import path
from poll.views import *
urlpatterns = [
path('add/', PollView.as_view(), name='poll_add'),
path('<int:id>/edit/', PollView.as_view(), name='poll_edit'),
path('<int:id>/delete/', PollView.as_view(), name='poll_delete'),
path('list/', index, name='polls_list'),
path('<in... | 38.181818 | 69 | 0.645238 | 60 | 420 | 4.35 | 0.366667 | 0.153257 | 0.137931 | 0.206897 | 0.252874 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.128571 | 420 | 11 | 70 | 38.181818 | 0.713115 | 0 | 0 | 0 | 0 | 0 | 0.294537 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
737aabb9d18e07206da8de8732121e8e96684476 | 6,164 | py | Python | GradeScraper/spiders/grades.py | Jacoby5770/Grade | 8a41f1938477445922206c8136d530cca39fa637 | [
"MIT"
] | null | null | null | GradeScraper/spiders/grades.py | Jacoby5770/Grade | 8a41f1938477445922206c8136d530cca39fa637 | [
"MIT"
] | null | null | null | GradeScraper/spiders/grades.py | Jacoby5770/Grade | 8a41f1938477445922206c8136d530cca39fa637 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import scrapy, re
from scrapy_splash import SplashRequest
from GradeScraper.items import GradeData
class GradesSpider(scrapy.Spider):
name = 'grades'
custom_settings = {
'SPLASH_URL': 'http://192.168.99.100:8050/',
'DOWNLOADER_MIDDLEWARES': {
'scrapy_splash.S... | 46.345865 | 516 | 0.565055 | 563 | 6,164 | 6.101243 | 0.367673 | 0.034935 | 0.024454 | 0.019796 | 0.314119 | 0.273945 | 0.24687 | 0.24687 | 0.217176 | 0.1869 | 0 | 0.045476 | 0.307917 | 6,164 | 132 | 517 | 46.69697 | 0.759728 | 0.009409 | 0 | 0.362903 | 0 | 0.056452 | 0.460593 | 0.209241 | 0 | 0 | 0 | 0 | 0.080645 | 0 | null | null | 0.032258 | 0.024194 | null | null | 0.008065 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
737b8620ac090643883f20330d400da0b773cb7c | 647 | py | Python | CREDA_tools/geocoding/geo_run.py | KI-Research-Services/CREDA_tools | 5d2709fa3e1f96fe8315b0e838253dd025f7ff85 | [
"MIT"
] | 1 | 2021-05-17T16:44:27.000Z | 2021-05-17T16:44:27.000Z | CREDA_tools/geocoding/geo_run.py | KI-Research-Services/CREDA_tools | 5d2709fa3e1f96fe8315b0e838253dd025f7ff85 | [
"MIT"
] | null | null | null | CREDA_tools/geocoding/geo_run.py | KI-Research-Services/CREDA_tools | 5d2709fa3e1f96fe8315b0e838253dd025f7ff85 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Thu Aug 6 10:38:46 2020
@author: fisherd
"""
import pandas as pd
from CREDA_tools.geocoding import validators
class Geocoder():
def __init__(self):
self.validator_factory = validators.ValidatorFactory()
def add_geocoding(self, addr_df, validator, geocode... | 29.409091 | 98 | 0.704791 | 83 | 647 | 5.253012 | 0.626506 | 0.041284 | 0.091743 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022901 | 0.190108 | 647 | 22 | 99 | 29.409091 | 0.80916 | 0.117465 | 0 | 0 | 0 | 0 | 0.079787 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.181818 | 0 | 0.545455 | 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 |
737dcd563836bd0238c65ad3fc891bb2fe4e6f45 | 5,432 | py | Python | geocms/tests/test_model_api.py | JeffHeard/terrapyn | 8d883b6c8a729e972c12d6f0c3b2a34ea86dcd88 | [
"Apache-2.0"
] | 1 | 2016-10-27T14:58:04.000Z | 2016-10-27T14:58:04.000Z | geocms/tests/test_model_api.py | JeffHeard/terrapyn | 8d883b6c8a729e972c12d6f0c3b2a34ea86dcd88 | [
"Apache-2.0"
] | null | null | null | geocms/tests/test_model_api.py | JeffHeard/terrapyn | 8d883b6c8a729e972c12d6f0c3b2a34ea86dcd88 | [
"Apache-2.0"
] | null | null | null | import requests
import json
def _pipe_to_file(error_text, filename):
with open(filename, 'w') as x:
x.write(error_text)
return "See http://127.0.0.1:8000/media/{0}".format(filename.split('/')[-1])
def _u(s, x=None):
return 'http://127.0.0.1:8000/terrapyn/api/{0}/{1}'.format(
s,
(... | 35.045161 | 138 | 0.634021 | 668 | 5,432 | 4.991018 | 0.158683 | 0.107978 | 0.070186 | 0.097481 | 0.711458 | 0.681164 | 0.639472 | 0.605579 | 0.605579 | 0.605579 | 0 | 0.011756 | 0.217047 | 5,432 | 154 | 139 | 35.272727 | 0.772161 | 0.010862 | 0 | 0.47619 | 0 | 0 | 0.445936 | 0.202274 | 0 | 0 | 0 | 0 | 0.18254 | 1 | 0.039683 | false | 0 | 0.02381 | 0.007937 | 0.079365 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 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 |
73923d2c27a7f6d1c04cb0bc04740c1d37e9fefa | 6,374 | py | Python | test/unit_tests/example_test_callable.py | hark130/hardy-remix | 62f36797c68ce6ce7b08f472d1535ca320f8ad8e | [
"Apache-2.0"
] | null | null | null | test/unit_tests/example_test_callable.py | hark130/hardy-remix | 62f36797c68ce6ce7b08f472d1535ca320f8ad8e | [
"Apache-2.0"
] | null | null | null | test/unit_tests/example_test_callable.py | hark130/hardy-remix | 62f36797c68ce6ce7b08f472d1535ca320f8ad8e | [
"Apache-2.0"
] | null | null | null | """Template callable unit test module.
Use this module as an example/template to write unit tests for general (see: non-core),
callable (e.g., functions, basic classes) features of Iron Onyx (IRON).
If you decide to separate your test class and Test Cases into separate modules within this
package, ensure the Test Case... | 30.644231 | 96 | 0.655789 | 849 | 6,374 | 4.784452 | 0.293286 | 0.035451 | 0.018956 | 0.027573 | 0.224766 | 0.167651 | 0.149188 | 0.113245 | 0.096012 | 0.069424 | 0 | 0.016787 | 0.261688 | 6,374 | 207 | 97 | 30.792271 | 0.846366 | 0.556636 | 0 | 0.125 | 0 | 0 | 0.042141 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.071429 | 0 | 0.410714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
739542a5697fdde6966ac6f9ff9e574fc3a4fa3b | 1,544 | py | Python | yoda/cmds/user/adduser.py | x0y-gt/yoda | 1936d3cb93f4e7997bafbabeee62aebb875faace | [
"MIT"
] | null | null | null | yoda/cmds/user/adduser.py | x0y-gt/yoda | 1936d3cb93f4e7997bafbabeee62aebb875faace | [
"MIT"
] | null | null | null | yoda/cmds/user/adduser.py | x0y-gt/yoda | 1936d3cb93f4e7997bafbabeee62aebb875faace | [
"MIT"
] | null | null | null | import click
from pathlib import Path
from yoda.main import pass_cmd
@click.command('adduser', short_help='Creates a new user with random password and selected ssh key.')
@click.option('-k', '--key-path', default="~/.ssh/id_rsa.pub")
@click.argument('user_name')
@pass_cmd
def cmd(ctx, key_path, user_name):
"""Create... | 32.851064 | 111 | 0.657383 | 241 | 1,544 | 4.128631 | 0.369295 | 0.064322 | 0.072362 | 0.085427 | 0.290452 | 0.058291 | 0 | 0 | 0 | 0 | 0 | 0.005439 | 0.166451 | 1,544 | 46 | 112 | 33.565217 | 0.767677 | 0.121114 | 0 | 0.15625 | 0 | 0 | 0.346696 | 0.051225 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0.125 | 0.09375 | 0 | 0.15625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
739910bb6303bbae3b94d2c2ccfd6449a6f96f0f | 417 | py | Python | admin_async_upload/fields.py | CorneliusIV/django-admin-async-upload | 2f9eb16ed3f75f95b15c696a85a251f48a36e508 | [
"MIT"
] | 7 | 2020-10-14T18:09:49.000Z | 2022-01-11T12:04:21.000Z | admin_async_upload/fields.py | DataGreed/django-admin-resumable-js | d9f0ea2698dbbfaf53edc1c6002f702322dabadc | [
"MIT"
] | null | null | null | admin_async_upload/fields.py | DataGreed/django-admin-resumable-js | d9f0ea2698dbbfaf53edc1c6002f702322dabadc | [
"MIT"
] | 5 | 2021-02-28T12:27:38.000Z | 2021-11-19T23:00:19.000Z | from django.core.exceptions import ValidationError
from django.forms import fields
from admin_async_upload.widgets import ResumableAdminWidget
class FormResumableFileField(fields.FileField):
widget = ResumableAdminWidget
def to_python(self, data):
if self.required:
if not data or data ==... | 27.8 | 67 | 0.721823 | 46 | 417 | 6.456522 | 0.695652 | 0.06734 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.213429 | 417 | 14 | 68 | 29.785714 | 0.905488 | 0 | 0 | 0 | 0 | 0 | 0.021583 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.3 | 0 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
739a8424a67aa7607e80a08a6d369c53af5b172c | 1,038 | py | Python | tests/locmem/test_initialization.py | AndreMiras/async-caches | d87ffc4d154617acc1622e21db536d9062be8cc4 | [
"BSD-3-Clause"
] | 29 | 2019-07-14T15:07:47.000Z | 2022-03-20T14:41:14.000Z | tests/locmem/test_initialization.py | AndreMiras/async-caches | d87ffc4d154617acc1622e21db536d9062be8cc4 | [
"BSD-3-Clause"
] | 11 | 2019-07-14T03:29:08.000Z | 2021-06-13T11:27:30.000Z | tests/locmem/test_initialization.py | AndreMiras/async-caches | d87ffc4d154617acc1622e21db536d9062be8cc4 | [
"BSD-3-Clause"
] | 4 | 2019-11-03T18:27:41.000Z | 2021-05-19T07:55:33.000Z | import pytest
from caches import Cache
def test_locmem_cache_can_be_initialized_without_net_loc():
Cache("locmem://")
def test_locmem_cache_can_be_initialized_with_net_loc():
Cache("locmem://primary")
def test_locmem_cache_can_be_initialized_with_key_prefix():
Cache("locmem://", key_prefix="test")
... | 23.590909 | 68 | 0.737958 | 144 | 1,038 | 4.923611 | 0.291667 | 0.124118 | 0.12835 | 0.177715 | 0.382228 | 0.382228 | 0.375176 | 0.327221 | 0 | 0 | 0 | 0.007795 | 0.134875 | 1,038 | 43 | 69 | 24.139535 | 0.781737 | 0 | 0 | 0.153846 | 0 | 0 | 0.102119 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 1 | 0.192308 | false | 0 | 0.076923 | 0 | 0.269231 | 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 |
73a168e237d2f094d9b28f0d364273d5201c59b2 | 13,510 | py | Python | src/oci/ocvp/models/create_esxi_host_details.py | ezequielramos/oci-python-sdk | cc4235cf217beaf9feed75760e9ce82610222762 | [
"Apache-2.0",
"BSD-3-Clause"
] | 249 | 2017-09-11T22:06:05.000Z | 2022-03-04T17:09:29.000Z | src/oci/ocvp/models/create_esxi_host_details.py | ezequielramos/oci-python-sdk | cc4235cf217beaf9feed75760e9ce82610222762 | [
"Apache-2.0",
"BSD-3-Clause"
] | 228 | 2017-09-11T23:07:26.000Z | 2022-03-23T10:58:50.000Z | src/oci/ocvp/models/create_esxi_host_details.py | ezequielramos/oci-python-sdk | cc4235cf217beaf9feed75760e9ce82610222762 | [
"Apache-2.0",
"BSD-3-Clause"
] | 224 | 2017-09-27T07:32:43.000Z | 2022-03-25T16:55:42.000Z | # coding: utf-8
# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c... | 37.632312 | 245 | 0.666025 | 1,696 | 13,510 | 5.123231 | 0.139151 | 0.024859 | 0.108758 | 0.042813 | 0.778916 | 0.703763 | 0.658994 | 0.591092 | 0.561399 | 0.561399 | 0 | 0.003199 | 0.259585 | 13,510 | 358 | 246 | 37.73743 | 0.86544 | 0.617543 | 0 | 0.13 | 0 | 0 | 0.139357 | 0.020163 | 0 | 0 | 0 | 0 | 0 | 1 | 0.18 | false | 0 | 0.02 | 0.02 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
73a9c4f622da85822641fc1b632495ef98d592e5 | 331 | py | Python | vulnman/mixins/theme.py | l3l3l/vulnman | f9d520dbf9f6838c459741bb1173a0382d5ecfd6 | [
"MIT"
] | 3 | 2021-12-22T07:02:24.000Z | 2022-01-27T20:19:11.000Z | vulnman/mixins/theme.py | l3l3l/vulnman | f9d520dbf9f6838c459741bb1173a0382d5ecfd6 | [
"MIT"
] | 44 | 2021-12-14T07:24:29.000Z | 2022-03-23T07:01:16.000Z | vulnman/mixins/theme.py | l3l3l/vulnman | f9d520dbf9f6838c459741bb1173a0382d5ecfd6 | [
"MIT"
] | 1 | 2022-01-21T16:29:56.000Z | 2022-01-21T16:29:56.000Z | from django.conf import settings
class ThemeMixin(object):
"""
Mixin that adds a CSS theme to the context
"""
def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
context['css_theme_file'] = "css/themes/%s.min.css" % settings.VULNMAN_CSS_THEME
retu... | 27.583333 | 88 | 0.667674 | 44 | 331 | 4.840909 | 0.659091 | 0.112676 | 0.131455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.217523 | 331 | 11 | 89 | 30.090909 | 0.822394 | 0.126888 | 0 | 0 | 0 | 0 | 0.128205 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
73af4b8de5a207a00c47882a046b72ed01edaf62 | 218 | py | Python | _sadm/plugin/os/configure.py | jrmsdev/pysadm | 0d6b3f0c8d870d83ab499c8d9487ec8e3a89fc37 | [
"BSD-3-Clause"
] | 1 | 2019-10-15T08:37:56.000Z | 2019-10-15T08:37:56.000Z | _sadm/plugin/os/configure.py | jrmsdev/pysadm | 0d6b3f0c8d870d83ab499c8d9487ec8e3a89fc37 | [
"BSD-3-Clause"
] | null | null | null | _sadm/plugin/os/configure.py | jrmsdev/pysadm | 0d6b3f0c8d870d83ab499c8d9487ec8e3a89fc37 | [
"BSD-3-Clause"
] | null | null | null | # Copyright (c) Jeremías Casteglione <jrmsdev@gmail.com>
# See LICENSE file.
__all__ = ['configure']
def configure(env, cfg):
env.settings.merge(cfg, 'os', (
'hostname',
'hostname.file',
'users.home.dir',
))
| 18.166667 | 56 | 0.665138 | 27 | 218 | 5.222222 | 0.814815 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151376 | 218 | 11 | 57 | 19.818182 | 0.762162 | 0.330275 | 0 | 0 | 0 | 0 | 0.321678 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.142857 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
73b310118f9440fa07b16bf9372c97044e4ea21f | 1,073 | py | Python | python_examples/scipy_36_ex2.py | ebressert/ScipyNumpy_book_examples | e7a84ca72d6cd243f1432658d2c4e040fa4dd7d8 | [
"MIT"
] | 31 | 2015-02-10T15:27:23.000Z | 2022-01-11T08:11:10.000Z | python_examples/scipy_36_ex2.py | ebressert/ScipyNumpy_book_examples | e7a84ca72d6cd243f1432658d2c4e040fa4dd7d8 | [
"MIT"
] | null | null | null | python_examples/scipy_36_ex2.py | ebressert/ScipyNumpy_book_examples | e7a84ca72d6cd243f1432658d2c4e040fa4dd7d8 | [
"MIT"
] | 25 | 2015-04-28T16:17:33.000Z | 2021-12-22T19:28:41.000Z | import numpy as np
from scipy.misc import imread, imsave
from glob import glob
# This function allows us to place in the
# brightest pixels per x and y position between
# two images. It is similar to PIL's
# ImageChop.Lighter function.
def chop_lighter(image1, image2):
s1 = np.sum(image1, axis=2)
s2 = np.sum(i... | 27.512821 | 67 | 0.683131 | 178 | 1,073 | 4.095506 | 0.511236 | 0.045267 | 0.041152 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052879 | 0.206897 | 1,073 | 38 | 68 | 28.236842 | 0.80376 | 0.37931 | 0 | 0 | 0 | 0 | 0.041348 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.15 | null | null | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
73b4697e419416a385df0724cc5b8eaecc2ab73e | 265 | py | Python | cooltools/api/__init__.py | gfudenberg/cooltools | 2c5efcfa2810414f5e1cfeba8806b23d626abaa2 | [
"MIT"
] | 39 | 2017-10-15T02:59:32.000Z | 2020-09-15T21:53:56.000Z | cooltools/api/__init__.py | gfudenberg/cooltools | 2c5efcfa2810414f5e1cfeba8806b23d626abaa2 | [
"MIT"
] | 131 | 2017-09-05T15:56:24.000Z | 2020-09-22T13:23:54.000Z | cooltools/api/__init__.py | gfudenberg/cooltools | 2c5efcfa2810414f5e1cfeba8806b23d626abaa2 | [
"MIT"
] | 29 | 2017-04-29T23:06:28.000Z | 2020-08-28T19:14:23.000Z | import importlib
import pathlib
__all__ = [
f.stem
for f in pathlib.Path(__file__).parent.glob("*.py")
if f.is_file() and not f.name == "__init__.py"
]
for _ in __all__:
importlib.import_module("." + _, "cooltools.api")
del pathlib
del importlib
| 17.666667 | 55 | 0.671698 | 38 | 265 | 4.157895 | 0.605263 | 0.189873 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.192453 | 265 | 14 | 56 | 18.928571 | 0.738318 | 0 | 0 | 0 | 0 | 0 | 0.109434 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.363636 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.