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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0e7e4e0f155b2835108b6060f60696cde95359f4 | 1,271 | py | Python | config/flaskconfig.py | brianrice2/pitchfork | 07978a5ab7b0fccf23f2e9ded11b99a39ce59410 | [
"MIT"
] | 1 | 2021-04-07T00:37:19.000Z | 2021-04-07T00:37:19.000Z | config/flaskconfig.py | brianrice2/pitchfork | 07978a5ab7b0fccf23f2e9ded11b99a39ce59410 | [
"MIT"
] | 2 | 2021-04-07T21:42:31.000Z | 2021-05-21T23:07:32.000Z | config/flaskconfig.py | brianrice2/pitchfork | 07978a5ab7b0fccf23f2e9ded11b99a39ce59410 | [
"MIT"
] | 1 | 2021-06-16T01:24:44.000Z | 2021-06-16T01:24:44.000Z | import os
DEBUG = True
LOGGING_CONFIG = "config/logging/local.conf"
PIPELINE_CONFIG = "config/pipeline.yaml"
HOST = "0.0.0.0"
PORT = 5000
APP_NAME = "pitchfork"
SQLALCHEMY_TRACK_MODIFICATIONS = True
SQLALCHEMY_ECHO = False # If True, SQL queries will be echoed/printed
MAX_ROWS_SHOW = 1000
# Some artists/albums have l... | 32.589744 | 100 | 0.734854 | 183 | 1,271 | 4.874317 | 0.431694 | 0.060538 | 0.080717 | 0.095291 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016651 | 0.149489 | 1,271 | 38 | 101 | 33.447368 | 0.808511 | 0.158143 | 0 | 0 | 0 | 0 | 0.24507 | 0.138028 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.060606 | 0.030303 | 0 | 0.030303 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0e92fa34da468aaa42b0c31ca85d2372a658c5dd | 1,460 | py | Python | test/selenium/src/lib/rest_services/control_rest_service.py | j0gurt/ggrc-core | 84662dc85aa8864c907eabe70b8efccf92298a1f | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | test/selenium/src/lib/rest_services/control_rest_service.py | j0gurt/ggrc-core | 84662dc85aa8864c907eabe70b8efccf92298a1f | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | test/selenium/src/lib/rest_services/control_rest_service.py | j0gurt/ggrc-core | 84662dc85aa8864c907eabe70b8efccf92298a1f | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # Copyright (C) 2018 Google Inc.
# Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
"""REST service for Control app entities."""
from lib import decorator
from lib.entities import app_entity
from lib.rest import base_rest_service, rest_convert
class ControlRestService(base_rest_service.Obj... | 30.416667 | 78 | 0.732877 | 181 | 1,460 | 5.657459 | 0.370166 | 0.064453 | 0.041016 | 0.041016 | 0.19043 | 0.19043 | 0.152344 | 0 | 0 | 0 | 0 | 0.004946 | 0.169178 | 1,460 | 47 | 79 | 31.06383 | 0.839242 | 0.229452 | 0 | 0.142857 | 0 | 0 | 0.005515 | 0 | 0 | 0 | 0 | 0 | 0.321429 | 1 | 0.142857 | false | 0 | 0.107143 | 0 | 0.535714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0e939853e0b77693f52ffb379ddef1641d71929d | 658 | py | Python | Leetcoding-Actions/Explore-Monthly-Challenges/2021-03/10_integer_to_roman.py | shoaibur/SWE | 1e114a2750f2df5d6c50b48c8e439224894d65da | [
"MIT"
] | 1 | 2020-11-14T18:28:13.000Z | 2020-11-14T18:28:13.000Z | Leetcoding-Actions/Explore-Monthly-Challenges/2021-03/10_integer_to_roman.py | shoaibur/SWE | 1e114a2750f2df5d6c50b48c8e439224894d65da | [
"MIT"
] | null | null | null | Leetcoding-Actions/Explore-Monthly-Challenges/2021-03/10_integer_to_roman.py | shoaibur/SWE | 1e114a2750f2df5d6c50b48c8e439224894d65da | [
"MIT"
] | null | null | null | class Solution:
def intToRoman(self, num: int) -> str:
'''
T: O(1) and S: O(1)
'''
int2rom = {1000:'M',
900:'CM',
500:'D',
400:'CD',
100:'C',
90:'XC',
50:'L',
... | 26.32 | 46 | 0.285714 | 58 | 658 | 3.241379 | 0.793103 | 0.021277 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119565 | 0.580547 | 658 | 24 | 47 | 27.416667 | 0.561594 | 0.028875 | 0 | 0 | 0 | 0 | 0.030894 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0 | 0 | 0.15 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0e97d4a00ce7e39832b6227898e881565f95f6af | 6,042 | py | Python | python-sc2/test/benchmark_distance_two_points.py | manaccac/sc2_bot | 3aa8b3711378b71fd0a44662cdd7148846e39530 | [
"MIT"
] | 9 | 2020-04-28T12:12:23.000Z | 2022-03-14T03:45:45.000Z | python-sc2/test/benchmark_distance_two_points.py | manaccac/sc2_bot | 3aa8b3711378b71fd0a44662cdd7148846e39530 | [
"MIT"
] | 5 | 2021-03-30T05:10:49.000Z | 2022-01-13T04:32:05.000Z | python-sc2/test/benchmark_distance_two_points.py | manaccac/sc2_bot | 3aa8b3711378b71fd0a44662cdd7148846e39530 | [
"MIT"
] | 4 | 2020-04-28T12:14:58.000Z | 2022-02-22T07:15:28.000Z | import sys, os
sys.path.append(os.path.join(os.path.dirname(__file__), ".."))
import time
import math
import random
import numpy as np
import scipy as sp
from scipy.spatial import distance as scipydistance
# from numba import jit, njit, vectorize, float64, int64
from sc2.position import Point2
import pytest
from hy... | 31.46875 | 113 | 0.723932 | 907 | 6,042 | 4.549063 | 0.153252 | 0.019389 | 0.021813 | 0.029084 | 0.70286 | 0.664081 | 0.566166 | 0.513572 | 0.439893 | 0.351672 | 0 | 0.04084 | 0.157067 | 6,042 | 191 | 114 | 31.633508 | 0.769291 | 0.488249 | 0 | 0.149254 | 0 | 0 | 0.001328 | 0 | 0 | 0 | 0 | 0 | 0.119403 | 1 | 0.253731 | false | 0 | 0.179104 | 0.059701 | 0.58209 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0ea4dcd78936057e462aadb005ba6ffcf7b6cb04 | 2,823 | py | Python | Assignment 2/wiki.py | tejasparab1994/CS-6200-Information-Retrieval | b704a11e14429384ee9a9f7a8fc923e23ec22994 | [
"MIT"
] | null | null | null | Assignment 2/wiki.py | tejasparab1994/CS-6200-Information-Retrieval | b704a11e14429384ee9a9f7a8fc923e23ec22994 | [
"MIT"
] | null | null | null | Assignment 2/wiki.py | tejasparab1994/CS-6200-Information-Retrieval | b704a11e14429384ee9a9f7a8fc923e23ec22994 | [
"MIT"
] | null | null | null | import urllib.request
from bs4 import BeautifulSoup
from collections import OrderedDict
import re
import time
counter = 0
def crawl_all(start_url):
# time.sleep(1)
seed = urllib.request.urlopen(start_url).read()
soup = BeautifulSoup(seed, "html.parser")
file = open("depth1"+".txt", 'a')
search_lin... | 26.138889 | 141 | 0.599008 | 359 | 2,823 | 4.590529 | 0.275766 | 0.048544 | 0.024272 | 0.023665 | 0.272451 | 0.23301 | 0.23301 | 0.14199 | 0.14199 | 0.092233 | 0 | 0.012389 | 0.285158 | 2,823 | 108 | 142 | 26.138889 | 0.804262 | 0 | 0 | 0.211765 | 0 | 0 | 0.074759 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.058824 | null | null | 0.035294 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
0eac9622b6eca9d040a102e7ed9e89d9fa16dcb4 | 637 | py | Python | analisis-de-algoritmos/algoritmos/binarySearch.py | pabagan/Knowledgebase | 91c2dcabfc158cab538c2ae5a3b86e4d084042d0 | [
"MIT"
] | 2 | 2017-11-07T15:08:33.000Z | 2018-08-22T22:40:56.000Z | analisis-de-algoritmos/algoritmos/binarySearch.py | pabagan/knowledgebase | 91c2dcabfc158cab538c2ae5a3b86e4d084042d0 | [
"MIT"
] | null | null | null | analisis-de-algoritmos/algoritmos/binarySearch.py | pabagan/knowledgebase | 91c2dcabfc158cab538c2ae5a3b86e4d084042d0 | [
"MIT"
] | null | null | null | #
# The Binary Search
#
# cretid: https://interactivepython.org/runestone/static/pythonds/SortSearch/TheBinarySearch.html
def binary_search(vector, item):
inicio = 0
fin = len(vector)-1
encontrado = False
while inicio<=fin and not encontrado:
medio = (inicio + fin)//2
if vector[medio... | 24.5 | 97 | 0.587127 | 76 | 637 | 4.881579 | 0.539474 | 0.12938 | 0.091644 | 0.134771 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.049774 | 0.306122 | 637 | 25 | 98 | 25.48 | 0.789593 | 0.178964 | 0 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0eade9975cbb120c32de3ddb41ee4f2526813684 | 6,400 | py | Python | tests/units/test_safe_build.py | sbrunato/eodag | 70aa45515b7b7c11326419abcf616979e7b6e024 | [
"Apache-2.0"
] | 149 | 2019-12-13T21:12:36.000Z | 2022-03-26T09:56:31.000Z | tests/units/test_safe_build.py | sbrunato/eodag | 70aa45515b7b7c11326419abcf616979e7b6e024 | [
"Apache-2.0"
] | 200 | 2020-06-18T17:30:58.000Z | 2022-03-30T09:54:59.000Z | tests/units/test_safe_build.py | sbrunato/eodag | 70aa45515b7b7c11326419abcf616979e7b6e024 | [
"Apache-2.0"
] | 23 | 2019-12-12T14:36:49.000Z | 2022-03-29T07:11:28.000Z | # -*- coding: utf-8 -*-
# Copyright 2021, CS GROUP - France, http://www.c-s.fr
#
# This file is part of EODAG project
# https://www.github.com/CS-SI/EODAG
#
# 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... | 35.164835 | 96 | 0.635313 | 834 | 6,400 | 4.630695 | 0.213429 | 0.031072 | 0.05593 | 0.034956 | 0.68436 | 0.675039 | 0.663128 | 0.647333 | 0.638011 | 0.638011 | 0 | 0.01291 | 0.261719 | 6,400 | 181 | 97 | 35.359116 | 0.804444 | 0.167969 | 0 | 0.567797 | 0 | 0 | 0.10174 | 0.022882 | 0 | 0 | 0 | 0 | 0.084746 | 1 | 0.067797 | false | 0 | 0.059322 | 0.025424 | 0.161017 | 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 |
7ec151557c75fae3aa6d144e0cd5d237378d17da | 288 | py | Python | app/bin/main.py | michaelneuder/connect_four | de2a1d7296ffddaee4282b722775225cdfbe6304 | [
"MIT"
] | 2 | 2017-08-07T23:27:19.000Z | 2017-08-07T23:35:13.000Z | app/bin/main.py | michaelneuder/connect_four | de2a1d7296ffddaee4282b722775225cdfbe6304 | [
"MIT"
] | null | null | null | app/bin/main.py | michaelneuder/connect_four | de2a1d7296ffddaee4282b722775225cdfbe6304 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
from PyQt5.QtWidgets import QApplication
from main_window import main_window
def main():
connect_four_app = QApplication([])
main_window_cf = main_window()
main_window_cf.show()
exit(connect_four_app.exec_())
if __name__ == '__main__':
main()
| 22.153846 | 40 | 0.725694 | 39 | 288 | 4.846154 | 0.538462 | 0.26455 | 0.148148 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008299 | 0.163194 | 288 | 12 | 41 | 24 | 0.775934 | 0.072917 | 0 | 0 | 0 | 0 | 0.030075 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.333333 | 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 |
7ec3aee3549b191321ea978075fbfbbcd94aa6f4 | 1,965 | py | Python | credentials_test.py | cinston/Password-locker | 1621979472816d23877692d43e8561bffe399275 | [
"Unlicense"
] | null | null | null | credentials_test.py | cinston/Password-locker | 1621979472816d23877692d43e8561bffe399275 | [
"Unlicense"
] | null | null | null | credentials_test.py | cinston/Password-locker | 1621979472816d23877692d43e8561bffe399275 | [
"Unlicense"
] | null | null | null | from unittest
from credentials import Credentials
import pyperclip
class TestCredentials(TestCase):
"""
Defines test cases for the credentials class behaviours.
Args:
TestCase: A class that helps create the test cases.
"""
def setUp(self):
"""
Method that runs befor... | 30.230769 | 85 | 0.629517 | 232 | 1,965 | 5.133621 | 0.331897 | 0.047019 | 0.073887 | 0.047019 | 0.352645 | 0.22754 | 0.208228 | 0.157851 | 0.157851 | 0.085642 | 0 | 0.006998 | 0.272774 | 1,965 | 65 | 86 | 30.230769 | 0.826452 | 0 | 0 | 0.107143 | 0 | 0 | 0.084074 | 0 | 0 | 0 | 0 | 0 | 0.25 | 0 | null | null | 0.035714 | 0.071429 | 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 |
7ec8d9e7b4b23d3cd7957fe63f972aa996ccada3 | 11,169 | py | Python | english/simulation_scripts/stable_fluids_python_simple.py | bartdavids/machine-learning-and-simulation | 4a4ca74e2252fa8311112e38b46ed46da3c105e2 | [
"MIT"
] | 110 | 2021-05-20T12:38:17.000Z | 2022-03-31T09:00:14.000Z | english/simulation_scripts/stable_fluids_python_simple.py | uarsln/machine-learning-and-simulation | 942c75e74de44cf17ee247449a1490ec7e802a46 | [
"MIT"
] | 1 | 2022-02-20T16:50:46.000Z | 2022-02-20T19:44:47.000Z | english/simulation_scripts/stable_fluids_python_simple.py | uarsln/machine-learning-and-simulation | 942c75e74de44cf17ee247449a1490ec7e802a46 | [
"MIT"
] | 40 | 2021-05-20T12:56:17.000Z | 2022-03-14T20:54:37.000Z | """
Solves the incompressible Navier Stokes equations using "Stable Fluids" by Jos Stam
in a closed box with a forcing that creates a bloom.
Momentum: ∂u/∂t + (u ⋅ ∇) u = − 1/ρ ∇p + ν ∇²u + f
Incompressibility: ∇ ⋅ u = 0
u: Velocity (2d vector)
p: Pressure
f: Forcing
ν: Kinematic Viscosity
ρ: Dens... | 26.978261 | 83 | 0.384636 | 944 | 11,169 | 4.409958 | 0.269068 | 0.009608 | 0.005765 | 0.003843 | 0.200336 | 0.15902 | 0.093923 | 0.077108 | 0.063176 | 0.03459 | 0 | 0.037891 | 0.510878 | 11,169 | 413 | 84 | 27.043584 | 0.720666 | 0.442922 | 0 | 0.206422 | 0 | 0 | 0.006931 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.050459 | false | 0 | 0.027523 | 0 | 0.123853 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7ec91e57405e162e782e47a6a4bf5f2ca3ef49ec | 4,943 | py | Python | episcanpy/api/__init__.py | mruffalo/epiScanpy | bcb86347d2b8451c384f97162625c8d5efb27ffc | [
"BSD-3-Clause"
] | 96 | 2019-05-25T17:41:13.000Z | 2022-02-28T10:29:23.000Z | episcanpy/api/__init__.py | mruffalo/epiScanpy | bcb86347d2b8451c384f97162625c8d5efb27ffc | [
"BSD-3-Clause"
] | 43 | 2019-07-12T03:12:51.000Z | 2022-03-30T13:07:19.000Z | episcanpy/api/__init__.py | mruffalo/epiScanpy | bcb86347d2b8451c384f97162625c8d5efb27ffc | [
"BSD-3-Clause"
] | 28 | 2019-03-28T16:40:52.000Z | 2022-03-16T16:12:40.000Z | import scanpy as sc
from anndata import AnnData
from anndata import read as read_h5ad
from anndata import read_csv, read_excel, read_hdf, read_loom, read_mtx, read_text, read_umi_tools
from .. import __version__
from . import pp
from . import tl
from . import ct
from . import pl
from typing import Any, Union, Option... | 23.879227 | 186 | 0.638074 | 609 | 4,943 | 5.057471 | 0.403941 | 0.046753 | 0.025974 | 0.013636 | 0.02013 | 0.02013 | 0.02013 | 0.02013 | 0.02013 | 0.02013 | 0 | 0.019752 | 0.231843 | 4,943 | 206 | 187 | 23.995146 | 0.791414 | 0.226988 | 0 | 0.186441 | 0 | 0.025424 | 0.639321 | 0.041157 | 0 | 0 | 0 | 0 | 0 | 1 | 0.008475 | false | 0 | 0.110169 | 0 | 0.118644 | 0 | 0 | 0 | 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 |
7ed2177aa7a7944c50d6dced0e03ed949faee6ee | 900 | py | Python | answers/vjha21/Day11/question2.py | arc03/30-DaysOfCode-March-2021 | 6d6e11bf70280a578113f163352fa4fa8408baf6 | [
"MIT"
] | 22 | 2021-03-16T14:07:47.000Z | 2021-08-13T08:52:50.000Z | answers/vjha21/Day11/question2.py | arc03/30-DaysOfCode-March-2021 | 6d6e11bf70280a578113f163352fa4fa8408baf6 | [
"MIT"
] | 174 | 2021-03-16T21:16:40.000Z | 2021-06-12T05:19:51.000Z | answers/vjha21/Day11/question2.py | arc03/30-DaysOfCode-March-2021 | 6d6e11bf70280a578113f163352fa4fa8408baf6 | [
"MIT"
] | 135 | 2021-03-16T16:47:12.000Z | 2021-06-27T14:22:38.000Z | """ For a string and pattern, count for each pattern the number
of times it appears in the string """
def check_pattern_count(string, pattern):
pattern_count = 0
string_length, pattern_length = len(string), len(pattern)
for i in range(0, string_length - pattern_length - 1):
temp_pattern_extract = ... | 34.615385 | 74 | 0.676667 | 121 | 900 | 4.752066 | 0.305785 | 0.208696 | 0.088696 | 0.12 | 0.246957 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005739 | 0.225556 | 900 | 25 | 75 | 36 | 0.819225 | 0.103333 | 0 | 0 | 0 | 0 | 0.132581 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0 | 0 | 0.125 | 0.0625 | 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 |
7ed74d2ed0b756de36adc9de2172440bcfd873e9 | 1,114 | py | Python | d1lod/d1lod/people/find.py | DataONEorg/slinky | 1f0f774b7b5556126d75524ac9fd328ad0fc1ba2 | [
"Apache-2.0"
] | 2 | 2019-03-07T21:14:27.000Z | 2021-03-30T00:24:13.000Z | d1lod/d1lod/people/find.py | DataONEorg/slinky | 1f0f774b7b5556126d75524ac9fd328ad0fc1ba2 | [
"Apache-2.0"
] | 64 | 2021-03-11T22:28:45.000Z | 2022-03-17T18:41:08.000Z | d1lod/d1lod/people/find.py | DataONEorg/slinky | 1f0f774b7b5556126d75524ac9fd328ad0fc1ba2 | [
"Apache-2.0"
] | 2 | 2018-09-05T16:38:42.000Z | 2021-03-12T18:07:20.000Z | """ find.py
Bryce Mecum (mecum@nceas.ucsb.edu)
Methods used for finding people and organizations.
"""
import helpers
import checks
def findPerson(job, person):
""" Find and score a `person` within `people`"""
print "FIND[PERSON](%s)" % helpers.personString(person)
match = -1
for i in rang... | 22.734694 | 68 | 0.600539 | 135 | 1,114 | 4.955556 | 0.422222 | 0.071749 | 0.035874 | 0.029895 | 0.071749 | 0.071749 | 0.071749 | 0.071749 | 0.071749 | 0 | 0 | 0.00492 | 0.270197 | 1,114 | 48 | 69 | 23.208333 | 0.817958 | 0 | 0 | 0.291667 | 0 | 0 | 0.126398 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.083333 | null | null | 0.208333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7edafa0f4a8c155919159dd75f46acbc6878d4f7 | 1,105 | py | Python | compile.py | webmalc/dotfiles | 0974fa58df1ed90b0213f717e63a329f11799a29 | [
"Unlicense"
] | 1 | 2019-01-18T21:19:35.000Z | 2019-01-18T21:19:35.000Z | compile.py | webmalc/dotfiles | 0974fa58df1ed90b0213f717e63a329f11799a29 | [
"Unlicense"
] | null | null | null | compile.py | webmalc/dotfiles | 0974fa58df1ed90b0213f717e63a329f11799a29 | [
"Unlicense"
] | null | null | null | #!/usr/bin/python
import configparser
def get_config():
config = configparser.ConfigParser()
config.read('config.ini')
return config
def _compile_config(config, path, append_path=None):
# compile
print('compile' + path)
with open(path + '.template', 'r') as template:
content = templa... | 24.555556 | 75 | 0.60724 | 124 | 1,105 | 5.266129 | 0.298387 | 0.11026 | 0.116386 | 0.064319 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01218 | 0.257014 | 1,105 | 44 | 76 | 25.113636 | 0.783191 | 0.058824 | 0 | 0 | 0 | 0 | 0.122705 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.185185 | false | 0.074074 | 0.037037 | 0 | 0.259259 | 0.037037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7edfec78f9f1193b2900bbc7df1deb82e4df5b9b | 5,826 | py | Python | plsregress.py | irondrummer/plsregression | 83e7b651200b7d4f064e3cdebe59644773153b92 | [
"MIT"
] | 1 | 2020-04-09T06:16:34.000Z | 2020-04-09T06:16:34.000Z | plsregress.py | irondrummer/plsregression | 83e7b651200b7d4f064e3cdebe59644773153b92 | [
"MIT"
] | null | null | null | plsregress.py | irondrummer/plsregression | 83e7b651200b7d4f064e3cdebe59644773153b92 | [
"MIT"
] | null | null | null | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Mon Jan 1 10:39:45 2018
Filename: pls-decomp-test.py
Purpose: To implement the partial least squares regression algorithm
discussed in Smoliak et. al (2010)
@author: mudraje
"""
import numpy as np
from scipy.stats import linregress
class pls_decompose:
... | 32.366667 | 91 | 0.515791 | 746 | 5,826 | 3.91555 | 0.294906 | 0.024649 | 0.036974 | 0.016433 | 0.266005 | 0.182814 | 0.182814 | 0.182814 | 0.15885 | 0.15885 | 0 | 0.021727 | 0.383797 | 5,826 | 180 | 92 | 32.366667 | 0.791922 | 0.121524 | 0 | 0.196078 | 0 | 0 | 0.085206 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.029412 | null | null | 0.029412 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7ee0aab34952d156861b324e2bf1b3a643a41758 | 321 | py | Python | 09-real_dolar_euro.py | tainagirotto/exercicios-py | 39107c05a0a8e5230cd48876ad8e1ad6f0a2ff59 | [
"MIT"
] | null | null | null | 09-real_dolar_euro.py | tainagirotto/exercicios-py | 39107c05a0a8e5230cd48876ad8e1ad6f0a2ff59 | [
"MIT"
] | null | null | null | 09-real_dolar_euro.py | tainagirotto/exercicios-py | 39107c05a0a8e5230cd48876ad8e1ad6f0a2ff59 | [
"MIT"
] | null | null | null | # Mostrar o valor em dólar.
real = float(input('Digite o valor em Real: R$'))
def real_hoje(real):
dol = real / 5.44
return dol
def euro_hoje(real):
euro = real / 6.55
return euro
print('Você consegue comprar {:.2f} euros' .format(euro_hoje(real)))
print('e {:.2f} dólares' .format(real_hoje(real))... | 22.928571 | 68 | 0.65109 | 52 | 321 | 3.942308 | 0.538462 | 0.156098 | 0.078049 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031008 | 0.196262 | 321 | 14 | 69 | 22.928571 | 0.763566 | 0.077882 | 0 | 0 | 0 | 0 | 0.257627 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0 | 0 | 0.444444 | 0.222222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7ee8c889319736312702b491dbce774d95a9824b | 3,437 | py | Python | src/test/tinc/tincrepo/mpp/gpdb/tests/package/procedural_language/__init__.py | rodel-talampas/gpdb | 9c955e350334abbd922102f289f782697eb52069 | [
"PostgreSQL",
"Apache-2.0"
] | null | null | null | src/test/tinc/tincrepo/mpp/gpdb/tests/package/procedural_language/__init__.py | rodel-talampas/gpdb | 9c955e350334abbd922102f289f782697eb52069 | [
"PostgreSQL",
"Apache-2.0"
] | 6 | 2018-08-04T07:51:37.000Z | 2018-11-26T07:09:44.000Z | src/test/tinc/tincrepo/mpp/gpdb/tests/package/procedural_language/__init__.py | rodel-talampas/gpdb | 9c955e350334abbd922102f289f782697eb52069 | [
"PostgreSQL",
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
"""
Copyright (c) 2004-Present Pivotal Software, Inc.
This program and the accompanying materials are made available under
the terms of the 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 ... | 39.965116 | 137 | 0.686354 | 458 | 3,437 | 5.076419 | 0.399563 | 0.012903 | 0.017204 | 0.020645 | 0.299355 | 0.299355 | 0.299355 | 0.299355 | 0.299355 | 0.299355 | 0 | 0.004173 | 0.233052 | 3,437 | 85 | 138 | 40.435294 | 0.877845 | 0.495781 | 0 | 0.27027 | 0 | 0 | 0.100965 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.108108 | false | 0 | 0.297297 | 0 | 0.540541 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7ee9afbb26c2d0670d9e0fbc3c58fc848af64c47 | 1,260 | py | Python | dashboard/migrations/0005_auto_20210704_1520.py | Princekumar1999/StudentPortal | 88cd8318122ec9f23604fc42b9cd4c89757b88eb | [
"MIT"
] | null | null | null | dashboard/migrations/0005_auto_20210704_1520.py | Princekumar1999/StudentPortal | 88cd8318122ec9f23604fc42b9cd4c89757b88eb | [
"MIT"
] | 1 | 2021-07-02T17:44:21.000Z | 2021-07-02T17:44:21.000Z | dashboard/migrations/0005_auto_20210704_1520.py | Princekumar1999/StudentPortal | 88cd8318122ec9f23604fc42b9cd4c89757b88eb | [
"MIT"
] | 2 | 2021-07-02T07:42:58.000Z | 2021-07-13T06:13:30.000Z | # Generated by Django 3.2.5 on 2021-07-04 09:50
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('dashboard', '0004_auto_2... | 35 | 118 | 0.622222 | 134 | 1,260 | 5.686567 | 0.477612 | 0.03937 | 0.086614 | 0.114173 | 0.346457 | 0.346457 | 0.346457 | 0.346457 | 0.346457 | 0.346457 | 0 | 0.036247 | 0.255556 | 1,260 | 35 | 119 | 36 | 0.776119 | 0.035714 | 0 | 0.310345 | 1 | 0 | 0.066777 | 0.018961 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.103448 | 0 | 0.206897 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7eeb410c4d5224a6e2a50985af06b9b6ab62514c | 360 | py | Python | mockselector/__init__.py | s-ball/MockSelector | c902053a6bcf111503060491777a1af83f92750d | [
"MIT"
] | null | null | null | mockselector/__init__.py | s-ball/MockSelector | c902053a6bcf111503060491777a1af83f92750d | [
"MIT"
] | null | null | null | mockselector/__init__.py | s-ball/MockSelector | c902053a6bcf111503060491777a1af83f92750d | [
"MIT"
] | null | null | null | # Copyright (c) 2020 SBA - MIT License
from .selector import MockSelector, MockSocket, ListenSocket
try:
from .version import version as __version__
except ImportError:
# be conservative if version.py could not be generated
# as it might happen on some CI platforms...
__version__ = '0.0.0'
__all__ = [... | 32.727273 | 60 | 0.741667 | 46 | 360 | 5.543478 | 0.717391 | 0.015686 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023891 | 0.186111 | 360 | 10 | 61 | 36 | 0.846416 | 0.366667 | 0 | 0 | 0 | 0 | 0.022422 | 0 | 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 |
7eec8d2c2978f94c6812af4b67ab113aafcf71cd | 285 | py | Python | sphinx/python-intro/source/code/oneoffcoder/type/listoflists.py | oneoffcoder/books | 84619477294a3e37e0d7538adf819113c9e8dcb8 | [
"CC-BY-4.0"
] | 26 | 2020-05-05T08:07:43.000Z | 2022-02-12T03:28:15.000Z | sphinx/python-intro/source/code/oneoffcoder/type/listoflists.py | oneoffcoder/books | 84619477294a3e37e0d7538adf819113c9e8dcb8 | [
"CC-BY-4.0"
] | 19 | 2021-03-10T00:33:51.000Z | 2022-03-02T13:04:32.000Z | sphinx/python-intro/source/code/oneoffcoder/type/listoflists.py | oneoffcoder/books | 84619477294a3e37e0d7538adf819113c9e8dcb8 | [
"CC-BY-4.0"
] | 2 | 2022-01-09T16:48:21.000Z | 2022-02-19T17:06:50.000Z | # list of lists
matrix = [[0, 1, 2, 3, 4], [5, 6, 7, 8, 9]]
# get element from list of lists
x = matrix[0][0]
# slice a list of lists
x = matrix[0][0:2]
# update element in list
matrix[0][0] = -1
# remove element in list
matrix[0].remove(-1)
# get number of lists
x = len(matrix)
| 15.833333 | 43 | 0.614035 | 57 | 285 | 3.070175 | 0.438596 | 0.2 | 0.188571 | 0.137143 | 0.457143 | 0.228571 | 0.228571 | 0 | 0 | 0 | 0 | 0.089686 | 0.217544 | 285 | 17 | 44 | 16.764706 | 0.695067 | 0.463158 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
7ef55e41e230202960de221364b1db0a89fe6332 | 4,433 | py | Python | clarifai/rest/grpc/proto/clarifai/utils/jsonpb/test_pb2.py | Taik/clarifai-python | c3b66b84cb348d3cb1edff958f561a4734b78650 | [
"Apache-2.0"
] | 322 | 2015-08-25T03:16:11.000Z | 2021-11-08T09:36:50.000Z | clarifai/rest/grpc/proto/clarifai/utils/jsonpb/test_pb2.py | Taik/clarifai-python | c3b66b84cb348d3cb1edff958f561a4734b78650 | [
"Apache-2.0"
] | 76 | 2015-10-25T13:03:47.000Z | 2022-02-19T09:36:10.000Z | clarifai/rest/grpc/proto/clarifai/utils/jsonpb/test_pb2.py | Taik/clarifai-python | c3b66b84cb348d3cb1edff958f561a4734b78650 | [
"Apache-2.0"
] | 136 | 2015-09-04T13:48:27.000Z | 2021-06-12T16:48:36.000Z | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: proto/clarifai/utils/jsonpb/test.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf im... | 39.580357 | 386 | 0.74577 | 593 | 4,433 | 5.330523 | 0.219224 | 0.055679 | 0.035432 | 0.086049 | 0.520405 | 0.408415 | 0.377096 | 0.377096 | 0.365074 | 0.365074 | 0 | 0.050676 | 0.131965 | 4,433 | 111 | 387 | 39.936937 | 0.77079 | 0.054591 | 0 | 0.434783 | 1 | 0.01087 | 0.194743 | 0.164636 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.065217 | 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 |
7eff70c6581541d38b0ef579472a8eef72f7b15d | 767 | py | Python | 2/func9.py | ikramulkayes/Python_season2 | d057460d07c5d2d218ecd52e08c1d355add44df2 | [
"MIT"
] | null | null | null | 2/func9.py | ikramulkayes/Python_season2 | d057460d07c5d2d218ecd52e08c1d355add44df2 | [
"MIT"
] | null | null | null | 2/func9.py | ikramulkayes/Python_season2 | d057460d07c5d2d218ecd52e08c1d355add44df2 | [
"MIT"
] | null | null | null | def stringfixer(sentence):
sentence = sentence.split()
symbollst = [".","!","?"]
flag = False
count = 0
final = ""
for elm in sentence:
if count ==0:
elm = elm.capitalize()
count += 1
if flag:
elm = elm.capitalize()
flag = False
... | 25.566667 | 42 | 0.457627 | 78 | 767 | 4.5 | 0.371795 | 0.068376 | 0.182336 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01139 | 0.42764 | 767 | 29 | 43 | 26.448276 | 0.788155 | 0 | 0 | 0.222222 | 0 | 0 | 0.032595 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0 | 0 | 0.074074 | 0.037037 | 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 |
7d03efa6329b853c6c57e032e0644040422d9e5a | 240 | py | Python | learn-to-code-with-python/08-Control-Flow/tempCodeRunnerFile.py | MaciejZurek/python_practicing | 0a426f2aed151573e1f8678e0239ff596d92bbde | [
"MIT"
] | null | null | null | learn-to-code-with-python/08-Control-Flow/tempCodeRunnerFile.py | MaciejZurek/python_practicing | 0a426f2aed151573e1f8678e0239ff596d92bbde | [
"MIT"
] | null | null | null | learn-to-code-with-python/08-Control-Flow/tempCodeRunnerFile.py | MaciejZurek/python_practicing | 0a426f2aed151573e1f8678e0239ff596d92bbde | [
"MIT"
] | null | null | null | def positive_or_negative(value):
if value > 0:
return "Positive!"
elif value < 0:
return "Negative!"
else:
return "It's zero!"
number = int(input("Wprowadz liczbe: "))
print(positive_or_negative(number)) | 24 | 40 | 0.625 | 30 | 240 | 4.866667 | 0.633333 | 0.136986 | 0.246575 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011111 | 0.25 | 240 | 10 | 41 | 24 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0.186722 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.444444 | 0.111111 | 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 |
7d0c15665166f23e3b34b0b3cba1c011080069b0 | 3,682 | py | Python | 9term/fipt/P2PLending/lending/models.py | nik-sergeson/bsuir-informatics-labs | 14805fb83b8e2324580b6253158565068595e804 | [
"Apache-2.0"
] | null | null | null | 9term/fipt/P2PLending/lending/models.py | nik-sergeson/bsuir-informatics-labs | 14805fb83b8e2324580b6253158565068595e804 | [
"Apache-2.0"
] | null | null | null | 9term/fipt/P2PLending/lending/models.py | nik-sergeson/bsuir-informatics-labs | 14805fb83b8e2324580b6253158565068595e804 | [
"Apache-2.0"
] | null | null | null | import datetime
from django.db import models, transaction
from djmoney.models.fields import MoneyField
from P2PLending.lending.signals import request_closed, proposal_closed
from P2PLending.users.models import User
class AdvertisementStatus(models.Model):
OPENED = "OPN"
CLOSED = "CLS"
STATUS_CHOICES = (
... | 26.489209 | 83 | 0.656165 | 431 | 3,682 | 5.49884 | 0.208817 | 0.03038 | 0.032911 | 0.021941 | 0.568354 | 0.531646 | 0.519409 | 0.519409 | 0.467511 | 0.467511 | 0 | 0.004261 | 0.235198 | 3,682 | 138 | 84 | 26.681159 | 0.837358 | 0 | 0 | 0.609524 | 0 | 0 | 0.004889 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.171429 | false | 0 | 0.047619 | 0.095238 | 0.638095 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7d109922aa54d6bcfb88da28c533829c600a59d4 | 979 | py | Python | tests/integrational/tornado/vcr_tornado_decorator.py | 17media/pubnub-python | ee372eec82f16d3a80a4cd027bca8976755b817f | [
"MIT"
] | null | null | null | tests/integrational/tornado/vcr_tornado_decorator.py | 17media/pubnub-python | ee372eec82f16d3a80a4cd027bca8976755b817f | [
"MIT"
] | null | null | null | tests/integrational/tornado/vcr_tornado_decorator.py | 17media/pubnub-python | ee372eec82f16d3a80a4cd027bca8976755b817f | [
"MIT"
] | null | null | null | import six
from tests.integrational.vcr_helper import pn_vcr
try:
from mock import patch
except ImportError:
from unittest.mock import patch
def use_cassette_and_stub_time_sleep(cassette_name, **kwargs):
context = pn_vcr.use_cassette(cassette_name, **kwargs)
full_path = "{}/{}".format(pn_vcr.cassett... | 24.475 | 74 | 0.604699 | 121 | 979 | 4.719008 | 0.446281 | 0.02627 | 0.052539 | 0.042032 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004323 | 0.291113 | 979 | 39 | 75 | 25.102564 | 0.818444 | 0.009193 | 0 | 0.142857 | 0 | 0 | 0.022727 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.178571 | false | 0 | 0.214286 | 0.035714 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
7d1238d65b19acf446574772f339e93ab51fe292 | 2,793 | py | Python | acutebot/helpers/keyboard.py | insidescode/AcuteRobot | e170ff5dd874819a830954492f6bad50290a55fb | [
"MIT"
] | 29 | 2020-11-19T10:47:26.000Z | 2022-01-27T10:51:02.000Z | acutebot/helpers/keyboard.py | insidescode/AcuteRobot | e170ff5dd874819a830954492f6bad50290a55fb | [
"MIT"
] | 2 | 2020-11-27T05:33:14.000Z | 2021-03-10T19:05:04.000Z | acutebot/helpers/keyboard.py | insidescode/AcuteRobot | e170ff5dd874819a830954492f6bad50290a55fb | [
"MIT"
] | 57 | 2020-10-13T15:19:06.000Z | 2022-01-23T20:20:55.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# MIT License
# Copyright (c) 2020 Stɑrry Shivɑm // This file is part of AcuteBot
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE A... | 26.855769 | 86 | 0.539563 | 297 | 2,793 | 5.037037 | 0.417508 | 0.156417 | 0.180481 | 0.116979 | 0.326872 | 0.300802 | 0.243316 | 0.243316 | 0.207219 | 0.207219 | 0 | 0.007722 | 0.350877 | 2,793 | 103 | 87 | 27.116505 | 0.81412 | 0.225922 | 0 | 0.243243 | 0 | 0 | 0.191659 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013514 | false | 0 | 0.013514 | 0 | 0.040541 | 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 |
7d192b7565ad65484d09b546f0762f44c9a8447a | 6,972 | pyde | Python | space_colonization/space_colonization.pyde | regata/processing | 1055ed0b012911d4a44ef45f355eab6a3affac93 | [
"MIT"
] | null | null | null | space_colonization/space_colonization.pyde | regata/processing | 1055ed0b012911d4a44ef45f355eab6a3affac93 | [
"MIT"
] | null | null | null | space_colonization/space_colonization.pyde | regata/processing | 1055ed0b012911d4a44ef45f355eab6a3affac93 | [
"MIT"
] | null | null | null | """
Draw tree like structures using Space Colonization algorithm
https://www.youtube.com/watch?v=kKT0v3qhIQY
https://medium.com/@jason.webb/space-colonization-algorithm-in-javascript-6f683b743dc5
"""
add_library('svg')
leaf_prob = 0.01 # ratio of non-white pixels that are converted to leaves
max_dist = 50 # max dist... | 30.713656 | 104 | 0.555795 | 879 | 6,972 | 4.278726 | 0.221843 | 0.052114 | 0.038288 | 0.015953 | 0.17256 | 0.093326 | 0.01808 | 0.01808 | 0 | 0 | 0 | 0.020741 | 0.349971 | 6,972 | 226 | 105 | 30.849558 | 0.809135 | 0.165806 | 0 | 0.2125 | 0 | 0 | 0.01748 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.09375 | false | 0.05625 | 0 | 0 | 0.14375 | 0.01875 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7d198fdfbd3c69ab899f3cea8ec214d4b831eba1 | 160 | py | Python | .github/scripts/filesToMarkDownList.py | ArjixWasTaken/CloudStream-3 | a867d10c397e07fb11eebee05ab6c51dbbc087c3 | [
"MIT"
] | 14 | 2021-08-23T18:52:36.000Z | 2022-03-29T07:39:09.000Z | .github/scripts/filesToMarkDownList.py | ArjixWasTaken/CloudStream-3 | a867d10c397e07fb11eebee05ab6c51dbbc087c3 | [
"MIT"
] | 5 | 2021-08-23T13:05:21.000Z | 2022-02-07T20:42:45.000Z | .github/scripts/filesToMarkDownList.py | ArjixWasTaken/CloudStream-3 | a867d10c397e07fb11eebee05ab6c51dbbc087c3 | [
"MIT"
] | 2 | 2021-09-08T05:13:56.000Z | 2021-09-11T11:21:24.000Z | #!/usr/bin/env python3
from sys import argv
template = "- {}"
output = []
for file in argv[1:]:
output += [template.format(file)]
print("\n".join(output))
| 14.545455 | 35 | 0.63125 | 23 | 160 | 4.391304 | 0.782609 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014925 | 0.1625 | 160 | 10 | 36 | 16 | 0.738806 | 0.13125 | 0 | 0 | 0 | 0 | 0.043478 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.166667 | 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 |
7d20c1f4a0b8d80ebc9e48936fc4fd6c0443b460 | 3,234 | py | Python | tests/test_r2_vector.py | keystonetowersystems/euclidean | 72965b5ea1b0d70438376024d0c9a14457bdfb13 | [
"MIT"
] | 1 | 2021-05-26T19:18:38.000Z | 2021-05-26T19:18:38.000Z | tests/test_r2_vector.py | keystonetowersystems/euclidean | 72965b5ea1b0d70438376024d0c9a14457bdfb13 | [
"MIT"
] | 1 | 2021-06-30T14:13:13.000Z | 2021-06-30T15:34:33.000Z | tests/test_r2_vector.py | keystonetowersystems/euclidean | 72965b5ea1b0d70438376024d0c9a14457bdfb13 | [
"MIT"
] | null | null | null | import pytest
from euclidean.constants import eta
from euclidean.R2 import V2
def test_v2_polar():
assert V2(1, 0).approx(V2.Polar(1, 0))
assert V2(0, 1).approx(V2.Polar(1, eta))
assert V2(-1, 0).approx(V2.Polar(1, 2 * eta))
assert V2(0, -1).approx(V2.Polar(1, 3 * eta))
assert V2(1, 0).approx(V2... | 19.136095 | 52 | 0.561534 | 563 | 3,234 | 3.174068 | 0.099467 | 0.057079 | 0.035814 | 0.039172 | 0.571908 | 0.524902 | 0.450476 | 0.377168 | 0.259093 | 0.204253 | 0 | 0.141785 | 0.258503 | 3,234 | 168 | 53 | 19.25 | 0.60342 | 0 | 0 | 0.243243 | 0 | 0 | 0.002474 | 0 | 0 | 0 | 0 | 0 | 0.423423 | 1 | 0.144144 | false | 0.027027 | 0.027027 | 0 | 0.171171 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7d32c0245fdcaff79a4f5caf79f58424ca516ac1 | 2,997 | py | Python | src/remote_decks/libs/org_to_anki/ankiConnectWrapper/AnkiPluginConnector.py | RisingOrange/anki-remote-decks | 387f77425f75a4f2f114bce766339759a0c937c8 | [
"MIT"
] | 1 | 2022-01-12T01:04:43.000Z | 2022-01-12T01:04:43.000Z | src/remote_decks/libs/org_to_anki/ankiConnectWrapper/AnkiPluginConnector.py | RisingOrange/anki-remote-decks | 387f77425f75a4f2f114bce766339759a0c937c8 | [
"MIT"
] | null | null | null | src/remote_decks/libs/org_to_anki/ankiConnectWrapper/AnkiPluginConnector.py | RisingOrange/anki-remote-decks | 387f77425f75a4f2f114bce766339759a0c937c8 | [
"MIT"
] | 1 | 2022-01-17T22:35:20.000Z | 2022-01-17T22:35:20.000Z | import base64
import aqt
from .. import config
from ..parse_classes.ParsedDeck import ParsedDeck
from ..note_dict_from_parsed_note import note_dict_from_parsed_note
from .AnkiBridge import AnkiBridge
class AnkiPluginConnector:
def __init__(self, rootDeck=config.rootDeck):
self.AnkiBridge = AnkiBridge()
... | 30.272727 | 77 | 0.607274 | 306 | 2,997 | 5.748366 | 0.281046 | 0.095509 | 0.027288 | 0.030699 | 0.05685 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003857 | 0.307975 | 2,997 | 98 | 78 | 30.581633 | 0.844262 | 0.03637 | 0 | 0.057143 | 0 | 0 | 0.010764 | 0 | 0 | 0 | 0 | 0.010204 | 0 | 1 | 0.2 | false | 0 | 0.085714 | 0.042857 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7d333f00098e346c0794b945b50abfe3f00032fa | 2,220 | py | Python | handcam/scratch/test-cam.py | luketaverne/handcam | e294ebf2be8b5512c8607d3c8ba3f6946f3b8e30 | [
"MIT"
] | 1 | 2022-02-10T13:19:20.000Z | 2022-02-10T13:19:20.000Z | handcam/scratch/test-cam.py | luketaverne/handcam | e294ebf2be8b5512c8607d3c8ba3f6946f3b8e30 | [
"MIT"
] | null | null | null | handcam/scratch/test-cam.py | luketaverne/handcam | e294ebf2be8b5512c8607d3c8ba3f6946f3b8e30 | [
"MIT"
] | null | null | null | import cv2
import numpy as np
from primesense import openni2
from primesense import _openni2 as c_api
import v4l2capture
import matplotlib
matplotlib.use("TkAgg")
import matplotlib.pyplot as plt # noqa: ignore=E402
# Refernce for rgb stream:
# https://3dclub.orbbec3d.com/t/astra-pro-rgb-stream-using-openni/1015
###... | 21.764706 | 153 | 0.698198 | 337 | 2,220 | 4.41543 | 0.406528 | 0.028226 | 0.026882 | 0.03629 | 0.170699 | 0.147849 | 0.103495 | 0.103495 | 0.103495 | 0.103495 | 0 | 0.060897 | 0.156757 | 2,220 | 101 | 154 | 21.980198 | 0.733974 | 0.095946 | 0 | 0.036364 | 0 | 0 | 0.08053 | 0.025484 | 0 | 0 | 0 | 0 | 0.018182 | 0 | null | null | 0 | 0.127273 | null | null | 0.054545 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7d3412493f67e194dfefca29230e66b24712e55d | 1,523 | py | Python | notes/13 - looping_structures (while and for)/loopingWhile.py | Drv4MC/ICS3-Python-Notes | 3614a5adfb4199bfc67dad8bbeb3bfee45401a5d | [
"MIT"
] | 8 | 2019-09-03T14:20:04.000Z | 2022-02-07T17:10:11.000Z | notes/13 - looping_structures (while and for)/loopingWhile.py | Drv4MC/ICS3-Python-Notes | 3614a5adfb4199bfc67dad8bbeb3bfee45401a5d | [
"MIT"
] | 10 | 2020-02-04T17:41:36.000Z | 2022-02-17T00:47:16.000Z | notes/13 - looping_structures (while and for)/loopingWhile.py | Drv4MC/ICS3-Python-Notes | 3614a5adfb4199bfc67dad8bbeb3bfee45401a5d | [
"MIT"
] | 12 | 2019-09-04T02:09:52.000Z | 2021-04-28T17:48:15.000Z | #-----------------------------------------------------------------------------
# Name: Looping Structures - While (loopingWhile.py)
# Purpose: To provide information about how while loops work as a looping
# structure in Python
#
# Author: Mr. Seidel
# Created: 17-Aug-2018
# Updated: 22-Aug... | 23.430769 | 78 | 0.581747 | 225 | 1,523 | 3.937778 | 0.386667 | 0.094808 | 0.074492 | 0.108352 | 0.311512 | 0.257336 | 0.207675 | 0.148984 | 0.148984 | 0.074492 | 0 | 0.047498 | 0.22587 | 1,523 | 65 | 79 | 23.430769 | 0.703986 | 0.564018 | 0 | 0.594595 | 0 | 0 | 0.085537 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.054054 | 0 | 0 | 0 | 0.189189 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7d36fd2a56268613a9ac78706d7f1b2a5b44aa13 | 2,503 | py | Python | gemtools/get_hmw_summary_f.py | sgreer77/gemtools2 | 75a671387e17fbb437c4f54a5ef524f9b2bbaafd | [
"MIT"
] | 6 | 2018-07-27T01:04:52.000Z | 2021-03-04T10:16:37.000Z | gemtools/get_hmw_summary_f.py | sgreer77/gemtools2 | 75a671387e17fbb437c4f54a5ef524f9b2bbaafd | [
"MIT"
] | 1 | 2020-01-21T22:23:50.000Z | 2020-01-21T22:23:50.000Z | gemtools/get_hmw_summary_f.py | sgreer77/gemtools2 | 75a671387e17fbb437c4f54a5ef524f9b2bbaafd | [
"MIT"
] | 1 | 2021-02-17T21:52:17.000Z | 2021-02-17T21:52:17.000Z | import sys
import pandas as pd
def get_hmw_summary(**kwargs):
if 'bc_counts' in kwargs:
bc_c = kwargs['bc_counts']
if 'out' in kwargs:
outpre = kwargs['out']
df = bc_c
header = df.columns.tolist()
bc_header = [b for b in header if b not in ["id","name","chrom","window_start","window_end"]]
b_keep = []
... | 36.275362 | 240 | 0.647223 | 407 | 2,503 | 3.739558 | 0.194103 | 0.072273 | 0.055848 | 0.065703 | 0.344284 | 0.304862 | 0.287779 | 0.172142 | 0.151117 | 0.103811 | 0 | 0.01959 | 0.143428 | 2,503 | 68 | 241 | 36.808824 | 0.690299 | 0.018777 | 0 | 0.166667 | 0 | 0 | 0.260497 | 0.008969 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.041667 | null | null | 0.1875 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7d4130a02dd4dd05a49099c2d554b8a3c7bd797a | 631 | py | Python | old/chapter14/models/bin/tags/generate_codes_and_materials.py | Merlissa09/robotics-book-code | 5c478d547879e0b859a20a54aa7f6d39125bb09f | [
"Apache-2.0"
] | 22 | 2017-04-01T18:19:23.000Z | 2022-03-22T02:16:35.000Z | old/chapter14/models/bin/tags/generate_codes_and_materials.py | Merlissa09/robotics-book-code | 5c478d547879e0b859a20a54aa7f6d39125bb09f | [
"Apache-2.0"
] | 1 | 2019-07-02T06:03:45.000Z | 2019-07-03T01:08:06.000Z | old/chapter14/models/bin/tags/generate_codes_and_materials.py | Merlissa09/robotics-book-code | 5c478d547879e0b859a20a54aa7f6d39125bb09f | [
"Apache-2.0"
] | 26 | 2020-04-09T00:47:24.000Z | 2021-09-21T06:22:28.000Z | #!/usr/bin/env python
import os
for i in xrange(0, 12):
os.system("rosrun ar_track_alvar createMarker {0}".format(i))
fn = "MarkerData_{0}.png".format(i)
os.system("convert {0} -bordercolor white -border 100x100 {0}".format(fn))
with open("product_{0}.material".format(i), 'w') as f:
f.write("... | 24.269231 | 78 | 0.568938 | 98 | 631 | 3.581633 | 0.520408 | 0.051282 | 0.051282 | 0.068376 | 0.045584 | 0.045584 | 0.045584 | 0.045584 | 0 | 0 | 0 | 0.084257 | 0.285261 | 631 | 25 | 79 | 25.24 | 0.694013 | 0.031696 | 0 | 0 | 0 | 0 | 0.691803 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.047619 | 0.047619 | 0 | 0.047619 | 0 | 0 | 0 | 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 |
7d458e73e6e1296993ac302a9c2f555a77e07eb2 | 374 | py | Python | examples/pipeline/detect_face_pipe.py | jagin/dvg-utils | a7d19ead75398b09a9f1e146464cf4227f06a476 | [
"MIT"
] | 7 | 2020-09-02T08:39:22.000Z | 2021-10-13T18:13:04.000Z | examples/pipeline/detect_face_pipe.py | jagin/dvg-utils | a7d19ead75398b09a9f1e146464cf4227f06a476 | [
"MIT"
] | null | null | null | examples/pipeline/detect_face_pipe.py | jagin/dvg-utils | a7d19ead75398b09a9f1e146464cf4227f06a476 | [
"MIT"
] | null | null | null | from modules.face_detector import FaceDetector
class DetectFacePipe:
def __init__(self, conf):
self.detector = FaceDetector(conf)
def __call__(self, data):
return self.detect(data)
def detect(self, data):
image = data["image"]
# Detect faces
data["face_locations... | 19.684211 | 60 | 0.641711 | 42 | 374 | 5.47619 | 0.452381 | 0.104348 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.262032 | 374 | 18 | 61 | 20.777778 | 0.833333 | 0.032086 | 0 | 0 | 0 | 0 | 0.052778 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.1 | 0.1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7d47bc42c7ab0131d4b6d6825576d48de5b73cdb | 3,600 | py | Python | volatility/volatility/plugins/linux/linux_volshell.py | williamclot/MemoryVisualizer | 2ff9f30f07519d6578bc36c12f8d08acc9cb4383 | [
"MIT"
] | 2 | 2018-07-16T13:30:40.000Z | 2018-07-17T12:02:05.000Z | volatility/volatility/plugins/linux/linux_volshell.py | williamclot/MemoryVisualizer | 2ff9f30f07519d6578bc36c12f8d08acc9cb4383 | [
"MIT"
] | null | null | null | volatility/volatility/plugins/linux/linux_volshell.py | williamclot/MemoryVisualizer | 2ff9f30f07519d6578bc36c12f8d08acc9cb4383 | [
"MIT"
] | null | null | null | # Volatility
# Copyright (C) 2008-2013 Volatility Foundation
#
# This file is part of Volatility.
#
# Volatility is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your o... | 39.56044 | 115 | 0.599722 | 460 | 3,600 | 4.626087 | 0.347826 | 0.018797 | 0.018327 | 0.026786 | 0.245301 | 0.233083 | 0.196429 | 0.196429 | 0.196429 | 0.151316 | 0 | 0.015873 | 0.3 | 3,600 | 90 | 116 | 40 | 0.828571 | 0.1925 | 0 | 0.383333 | 0 | 0 | 0.150858 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.066667 | null | null | 0.183333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
adab299c055f8d5979befd6240928a36208b90e0 | 4,174 | py | Python | networking-master/ap-ro.py | Marzooq13579/Hack-Gadgets | 4b9351c4465f3e01fb0390b1e86dfe7c26237a19 | [
"MIT"
] | 8 | 2019-02-17T20:11:46.000Z | 2019-10-18T06:27:16.000Z | networking-master/ap-ro.py | Marzooq13579/Hack-Gadgets | 4b9351c4465f3e01fb0390b1e86dfe7c26237a19 | [
"MIT"
] | null | null | null | networking-master/ap-ro.py | Marzooq13579/Hack-Gadgets | 4b9351c4465f3e01fb0390b1e86dfe7c26237a19 | [
"MIT"
] | 4 | 2019-02-17T23:00:18.000Z | 2019-10-18T06:27:14.000Z | import socket, console, time, sys
console.set_color(1,0,0)
print """ _____ _____ _____ _____
| _ | _ |___| __ | |
| | __|___| -| | |
|__|__|__|SavSec|__|__|_____|
UPnP Exploitation"""
console.set_color()
time.sleep(1)
ssdpsrc = { "ip_address" : "239.255.255.250",
"port" :... | 25.607362 | 62 | 0.582655 | 597 | 4,174 | 3.943049 | 0.201005 | 0.058624 | 0.076466 | 0.074766 | 0.653781 | 0.631691 | 0.614698 | 0.614698 | 0.539507 | 0.474087 | 0 | 0.029421 | 0.226402 | 4,174 | 162 | 63 | 25.765432 | 0.699597 | 0 | 0 | 0.649682 | 0 | 0 | 0.247724 | 0.006948 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.012739 | 0.006369 | null | null | 0.152866 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
adac89269162a482f19bc01e23be505acefcd109 | 839 | py | Python | tooltip.py | bleach86/Tuxchat | 127e30855b3bf4c37922efff6a6fd266c6546eba | [
"MIT"
] | null | null | null | tooltip.py | bleach86/Tuxchat | 127e30855b3bf4c37922efff6a6fd266c6546eba | [
"MIT"
] | null | null | null | tooltip.py | bleach86/Tuxchat | 127e30855b3bf4c37922efff6a6fd266c6546eba | [
"MIT"
] | null | null | null | import tkinter as tk
class ToolTip(object):
def __init__(self, widget, text):
self.widget = widget
self.text = text
def enter(event):
self.showTooltip()
def leave(event):
self.hideTooltip()
widget.bind('<Enter>', enter)
widget.bind('<Leave>',... | 32.269231 | 112 | 0.612634 | 98 | 839 | 5.163265 | 0.5 | 0.098814 | 0.075099 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011218 | 0.256257 | 839 | 25 | 113 | 33.56 | 0.799679 | 0.061979 | 0 | 0 | 0 | 0 | 0.040816 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.05 | 0 | 0.35 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
adafc087197b8c5cf551576997183e005aeebe63 | 1,402 | py | Python | pytest/test_class.py | KuangHaofei/pytorch-deepFEPE | 012651c93f948cfd793cf8bba9670ab69abc0e04 | [
"MIT"
] | 112 | 2020-08-02T11:29:53.000Z | 2022-03-27T08:36:49.000Z | pytest/test_class.py | Weiyi-Zhang258/pytorch-deepFEPE | 012651c93f948cfd793cf8bba9670ab69abc0e04 | [
"MIT"
] | 3 | 2020-08-13T08:01:32.000Z | 2022-03-05T23:03:13.000Z | pytest/test_class.py | Weiyi-Zhang258/pytorch-deepFEPE | 012651c93f948cfd793cf8bba9670ab69abc0e04 | [
"MIT"
] | 19 | 2020-08-07T11:43:22.000Z | 2021-12-11T02:49:39.000Z |
import os, sys
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
class TestClass:
def test_import(self):
import superpoint
def test_DeepFNet(self):
from deepFEPE.models.DeepFNet import main
main()
def test_ErrorEstimators(self):
from deepF... | 32.604651 | 143 | 0.629101 | 184 | 1,402 | 4.63587 | 0.407609 | 0.049238 | 0.037515 | 0.051583 | 0.161782 | 0.112544 | 0 | 0 | 0 | 0 | 0 | 0.000942 | 0.242511 | 1,402 | 42 | 144 | 33.380952 | 0.80226 | 0.018545 | 0 | 0.064516 | 0 | 0.032258 | 0.167031 | 0.029905 | 0 | 0 | 0 | 0 | 0.032258 | 1 | 0.193548 | false | 0 | 0.290323 | 0 | 0.516129 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
adb1729170304cfb684948149e8048b8799241fc | 1,260 | py | Python | test/test_color_log.py | lyy289065406/py-color-log | d695964dc30e35fac3dce68d65518031e01cee9c | [
"MIT"
] | null | null | null | test/test_color_log.py | lyy289065406/py-color-log | d695964dc30e35fac3dce68d65518031e01cee9c | [
"MIT"
] | null | null | null | test/test_color_log.py | lyy289065406/py-color-log | d695964dc30e35fac3dce68d65518031e01cee9c | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# ----------------------------------------------------------------------
# the inclusion of the tests module is not meant to offer best practices for
# testing in general, but rather to support the `find_packages` example in
# setup.py that excludes installing the "tests" p... | 23.333333 | 76 | 0.503175 | 136 | 1,260 | 4.544118 | 0.632353 | 0.033981 | 0.035599 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003112 | 0.234921 | 1,260 | 53 | 77 | 23.773585 | 0.637967 | 0.403968 | 0 | 0.222222 | 0 | 0 | 0.114168 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.185185 | false | 0.148148 | 0.148148 | 0 | 0.37037 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
adb40cf8d121a5131500e039e2d4c73e0acedffa | 862 | py | Python | features/steps/steps.py | ingresso-group/pyticketswitch | 4e100b5aa26e8986c4bc3a46c13cdff50188e048 | [
"MIT"
] | 4 | 2015-08-10T13:12:20.000Z | 2017-11-07T12:08:06.000Z | features/steps/steps.py | ingresso-group/pyticketswitch | 4e100b5aa26e8986c4bc3a46c13cdff50188e048 | [
"MIT"
] | 89 | 2015-08-10T13:45:21.000Z | 2022-03-23T16:20:10.000Z | features/steps/steps.py | ingresso-group/pyticketswitch | 4e100b5aa26e8986c4bc3a46c13cdff50188e048 | [
"MIT"
] | 11 | 2015-08-10T11:34:22.000Z | 2020-05-26T06:03:10.000Z | from behave import given, then
from hamcrest import (
assert_that, instance_of
)
from pyticketswitch import Client
from pyticketswitch.exceptions import AuthenticationError
@given('an API client with valid credentials')
def given_an_api_client_with_valid_credentials(context):
client = Client('demo', 'demopass... | 33.153846 | 85 | 0.783063 | 109 | 862 | 5.963303 | 0.394495 | 0.043077 | 0.061538 | 0.098462 | 0.415385 | 0.415385 | 0.415385 | 0.178462 | 0.178462 | 0.178462 | 0 | 0 | 0.12297 | 862 | 25 | 86 | 34.48 | 0.859788 | 0 | 0 | 0.105263 | 0 | 0 | 0.258701 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 1 | 0.157895 | false | 0.052632 | 0.210526 | 0 | 0.368421 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
adbc8abfb2fd9b6ae9e26ca642e82db8daa921c1 | 1,806 | py | Python | test/test_helper_functions.py | accelergy-project/accelergy | 34df8e87a889ae55cecba58992d4573466b40565 | [
"MIT"
] | 48 | 2020-04-15T08:28:41.000Z | 2022-03-30T08:58:09.000Z | test/test_helper_functions.py | accelergy-project/accelergy | 34df8e87a889ae55cecba58992d4573466b40565 | [
"MIT"
] | 4 | 2020-11-25T06:08:35.000Z | 2021-12-19T13:41:55.000Z | test/test_helper_functions.py | accelergy-project/accelergy | 34df8e87a889ae55cecba58992d4573466b40565 | [
"MIT"
] | 16 | 2020-09-29T00:37:47.000Z | 2022-03-29T09:15:06.000Z | import unittest
from accelergy import helper_functions as hf
class TestHelperFunctions(unittest.TestCase):
def test_oneD_linear_interpolation(self):
""" linear interpolation on one hardware attribute """
# Rough estimation of simple ripple carry adder: E_adder = E_full_adder * bitwidth + E_misc
... | 36.857143 | 112 | 0.619601 | 217 | 1,806 | 4.764977 | 0.253456 | 0.048356 | 0.096712 | 0.139265 | 0.717602 | 0.717602 | 0.661509 | 0.661509 | 0.661509 | 0.489362 | 0 | 0.030255 | 0.30454 | 1,806 | 49 | 113 | 36.857143 | 0.792994 | 0.17165 | 0 | 0.482759 | 0 | 0 | 0.010804 | 0 | 0 | 0 | 0 | 0 | 0.068966 | 1 | 0.068966 | false | 0 | 0.068966 | 0 | 0.172414 | 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 |
adbead229f9eea664412744d1ad366af4c097329 | 778 | py | Python | user/urls.py | richardkefa/project-rating | 533f48522ee4d578ec7efb46603ddda10087601f | [
"MIT"
] | null | null | null | user/urls.py | richardkefa/project-rating | 533f48522ee4d578ec7efb46603ddda10087601f | [
"MIT"
] | null | null | null | user/urls.py | richardkefa/project-rating | 533f48522ee4d578ec7efb46603ddda10087601f | [
"MIT"
] | null | null | null | from django.conf.urls import url
from . import views
from django.contrib.auth import views as auth_views
from django.conf import settings
from django.conf.urls.static import static
from .views import ListContactView,ListProfileView
urlpatterns=[
url('^newuser/',views.register,name='register'),
url('^login/',auth_v... | 38.9 | 95 | 0.768638 | 106 | 778 | 5.509434 | 0.339623 | 0.068493 | 0.071918 | 0.061644 | 0.075342 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075835 | 778 | 20 | 96 | 38.9 | 0.812239 | 0 | 0 | 0 | 0 | 0 | 0.189987 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
adbeee1f40b40a635be4461913041dfb9f74c851 | 2,262 | py | Python | bin/05_contact_list.py | nusids/cofi | ad1a18df3d8e67a5f82a5341a7abcb1bef51d1cb | [
"AFL-3.0"
] | 4 | 2021-03-05T10:54:22.000Z | 2021-06-28T04:11:02.000Z | bin/05_contact_list.py | nusids/cofi | ad1a18df3d8e67a5f82a5341a7abcb1bef51d1cb | [
"AFL-3.0"
] | null | null | null | bin/05_contact_list.py | nusids/cofi | ad1a18df3d8e67a5f82a5341a7abcb1bef51d1cb | [
"AFL-3.0"
] | 1 | 2021-03-07T12:00:01.000Z | 2021-03-07T12:00:01.000Z | #!/bin/python
#
# CONTACT LIST
# ============
#
# This executable produces a contact list of users who shared an access point
# for at least 10 minutes.
#
# The program took about 2 hours and 30 minutes to complete in a table with 90k
# userids and 13 million sessions. The warehouse was hosted in a server running
# wit... | 32.782609 | 116 | 0.656941 | 311 | 2,262 | 4.562701 | 0.389068 | 0.07611 | 0.039464 | 0.042283 | 0.183228 | 0.140944 | 0.098661 | 0.060606 | 0.060606 | 0 | 0 | 0.015719 | 0.268789 | 2,262 | 68 | 117 | 33.264706 | 0.842201 | 0.214412 | 0 | 0.133333 | 0 | 0.022222 | 0.688209 | 0.087868 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044444 | false | 0 | 0.088889 | 0 | 0.133333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
adc78be553f5cba2e5bbbd84420db81b7e89e33c | 201 | py | Python | oi/Contest/self/NOIP2017-Virtual-Test/day2/zip/data/sequence/gen.py | Riteme/test | b511d6616a25f4ae8c3861e2029789b8ee4dcb8d | [
"BSD-Source-Code"
] | 3 | 2018-08-30T09:43:20.000Z | 2019-12-03T04:53:43.000Z | oi/Contest/self/NOIP2017-Virtual-Test/day2/zip/data/sequence/gen.py | Riteme/test | b511d6616a25f4ae8c3861e2029789b8ee4dcb8d | [
"BSD-Source-Code"
] | null | null | null | oi/Contest/self/NOIP2017-Virtual-Test/day2/zip/data/sequence/gen.py | Riteme/test | b511d6616a25f4ae8c3861e2029789b8ee4dcb8d | [
"BSD-Source-Code"
] | null | null | null | #!/usr/bin/env pypy
from random import *
from sys import *
n, allzero = map(int, argv[1:])
if allzero:
print '.' * n
else:
print "".join([choice(['.'] * 5 + ['1', '0']) for i in xrange(n)])
| 16.75 | 70 | 0.552239 | 32 | 201 | 3.46875 | 0.78125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025478 | 0.218905 | 201 | 11 | 71 | 18.272727 | 0.681529 | 0.089552 | 0 | 0 | 0 | 0 | 0.021978 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.285714 | 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 |
adca74d642c7666fff2308e76334521e52ccae9f | 2,816 | py | Python | project/settings/base.py | cantoniazzi/book-review | 4f7d1d815796a74518002d32f772c73598423812 | [
"MIT"
] | null | null | null | project/settings/base.py | cantoniazzi/book-review | 4f7d1d815796a74518002d32f772c73598423812 | [
"MIT"
] | 3 | 2020-02-12T00:50:58.000Z | 2021-06-10T20:24:42.000Z | project/settings/base.py | cantoniazzi/book-review | 4f7d1d815796a74518002d32f772c73598423812 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import os
from django.conf.locale.pt_BR import formats
BASE_DIR = os.path.abspath(os.path.join(os.path.dirname(
os.path.abspath(__file__)), os.pardir))
BASE_PARENT_DIR = os.path.abspath(os.path.join(BASE_DIR, os.pardir))
INSTALLED_APPS = [
# django apps
'django.contrib.admin',
'dj... | 23.272727 | 91 | 0.682173 | 312 | 2,816 | 5.948718 | 0.394231 | 0.105065 | 0.064116 | 0.045259 | 0.146552 | 0.112069 | 0.028017 | 0 | 0 | 0 | 0 | 0.004737 | 0.175426 | 2,816 | 120 | 92 | 23.466667 | 0.794574 | 0.056108 | 0 | 0 | 0 | 0 | 0.490751 | 0.388448 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.064935 | 0.025974 | 0 | 0.025974 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
adcfaec06abd9404324a6129c1dc2ecbe31a045e | 7,266 | py | Python | Lib/test/test_keywordonlyarg.py | sireliah/polish-python | 605df4944c2d3bc25f8bf6964b274c0a0d297cc3 | [
"PSF-2.0"
] | 1 | 2018-06-21T18:21:24.000Z | 2018-06-21T18:21:24.000Z | Lib/test/test_keywordonlyarg.py | sireliah/polish-python | 605df4944c2d3bc25f8bf6964b274c0a0d297cc3 | [
"PSF-2.0"
] | null | null | null | Lib/test/test_keywordonlyarg.py | sireliah/polish-python | 605df4944c2d3bc25f8bf6964b274c0a0d297cc3 | [
"PSF-2.0"
] | null | null | null | """Unit tests dla the keyword only argument specified w PEP 3102."""
__author__ = "Jiwon Seo"
__email__ = "seojiwon at gmail dot com"
zaimportuj unittest
def posonly_sum(pos_arg1, *arg, **kwarg):
zwróć pos_arg1 + sum(arg) + sum(kwarg.values())
def keywordonly_sum(*, k1=0, k2):
zwróć k1 + k2
def keywordonly_n... | 38.242105 | 81 | 0.58409 | 993 | 7,266 | 4.181269 | 0.185297 | 0.016859 | 0.084778 | 0.077794 | 0.414981 | 0.350674 | 0.298892 | 0.260838 | 0.194605 | 0.156551 | 0 | 0.067474 | 0.26163 | 7,266 | 189 | 82 | 38.444444 | 0.706431 | 0.041701 | 0 | 0.18 | 0 | 0 | 0.102222 | 0 | 0 | 0 | 0 | 0 | 0.366667 | 0 | null | null | 0 | 0.006667 | 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 |
add194a3e774db45b161873a435654c7910496e4 | 288 | py | Python | apps/test_readfile/readTest.py | mjysh/smarties | e739680fc3195ca4107b64f773158fbec42753fb | [
"MIT"
] | null | null | null | apps/test_readfile/readTest.py | mjysh/smarties | e739680fc3195ca4107b64f773158fbec42753fb | [
"MIT"
] | null | null | null | apps/test_readfile/readTest.py | mjysh/smarties | e739680fc3195ca4107b64f773158fbec42753fb | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Jun 9 15:47:00 2021
@author: yusheng
"""
import sys
import numpy as np
import matplotlib.pyplot as plt
FILE = "./train/restarted_agent_00_net_"
ftype = np.float32
W = np.fromfile(FILE +"weights.raw", dtype=ftype) | 20.571429 | 56 | 0.684028 | 46 | 288 | 4.195652 | 0.826087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070833 | 0.166667 | 288 | 14 | 56 | 20.571429 | 0.733333 | 0.336806 | 0 | 0 | 0 | 0 | 0.229508 | 0.169399 | 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 |
add570334dbf4869d25d404b9b270490f0b37129 | 546 | py | Python | accounts/models.py | amdad7/Lucid | 9ae74c9d14c595f5dd470c70097e4749b9e27d3f | [
"MIT"
] | 1 | 2021-03-16T09:53:11.000Z | 2021-03-16T09:53:11.000Z | accounts/models.py | amdad7/Lucid | 9ae74c9d14c595f5dd470c70097e4749b9e27d3f | [
"MIT"
] | null | null | null | accounts/models.py | amdad7/Lucid | 9ae74c9d14c595f5dd470c70097e4749b9e27d3f | [
"MIT"
] | null | null | null | from django.contrib.auth.models import AbstractUser
from django.db import models
class User(AbstractUser):
username = None
name = models.CharField(max_length=100)
first_name = None
last_name = None
email = models.EmailField(unique=True, blank=False,
error_messages={
... | 28.736842 | 85 | 0.586081 | 57 | 546 | 5.438596 | 0.684211 | 0.064516 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008264 | 0.335165 | 546 | 19 | 86 | 28.736842 | 0.84573 | 0 | 0 | 0 | 0 | 0 | 0.08958 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.133333 | 0.066667 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
adddbcb3a005b955088511afff8ea9cdf3f60f40 | 363 | py | Python | sound/admin.py | Jafte/RTTTM | 1272ae1f1d5b34e1bffe7350d74aec9605bede5f | [
"MIT"
] | null | null | null | sound/admin.py | Jafte/RTTTM | 1272ae1f1d5b34e1bffe7350d74aec9605bede5f | [
"MIT"
] | null | null | null | sound/admin.py | Jafte/RTTTM | 1272ae1f1d5b34e1bffe7350d74aec9605bede5f | [
"MIT"
] | null | null | null | from django.contrib import admin
from sound.models import Sound, Author, Request, ArtistRequest
class ArtistRequestInline(admin.TabularInline):
model = ArtistRequest
extra = 1
class RequestAdmin(admin.ModelAdmin):
inlines = (ArtistRequestInline,)
admin.site.register(Sound)
admin.site.register(Author)
... | 21.352941 | 62 | 0.785124 | 40 | 363 | 7.125 | 0.525 | 0.094737 | 0.178947 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003155 | 0.126722 | 363 | 16 | 63 | 22.6875 | 0.895899 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 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 |
ade281f488eade435f2fa9d53cd8d6737cd0016d | 979 | py | Python | tdo/todolist/help.py | Feliix42/tdo | 30f71e9041bdaa05eef53bedba0153e4fcc8acfa | [
"MIT"
] | 2 | 2015-11-06T13:13:21.000Z | 2015-11-06T13:58:27.000Z | tdo/todolist/help.py | tdolist/tdo-py | 30f71e9041bdaa05eef53bedba0153e4fcc8acfa | [
"MIT"
] | 9 | 2015-11-06T11:47:34.000Z | 2015-11-08T15:44:04.000Z | tdo/todolist/help.py | Feliix42/tdo | 30f71e9041bdaa05eef53bedba0153e4fcc8acfa | [
"MIT"
] | null | null | null | help = '''tdo -- A todo list tool for the terminal.
Available commands:
tdo Lists all undone tasks, sorted by category.
tdo all Lists all tasks.
tdo add "task" [list] Add a task to a certain list or the default list.
tdo edit id Edit a task description.
tdo done id ... | 51.526316 | 78 | 0.625128 | 148 | 979 | 4.135135 | 0.466216 | 0.022876 | 0.039216 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.328907 | 979 | 18 | 79 | 54.388889 | 0.931507 | 0 | 0 | 0 | 0 | 0 | 0.9857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ade2c372f9fcd2160b2b25d11a6ecaec56a02588 | 584 | py | Python | server/onesphere/onesphere_mdm/models/mrp_workorder.py | kevin0120/onesphere | 7864076ab0de564fa21f91c946f3f1038aa36faf | [
"MIT"
] | 2 | 2022-01-19T06:36:55.000Z | 2022-01-26T05:53:20.000Z | server/onesphere/onesphere_mdm/models/mrp_workorder.py | kevin0120/onesphere | 7864076ab0de564fa21f91c946f3f1038aa36faf | [
"MIT"
] | 2 | 2022-01-04T07:04:05.000Z | 2022-01-06T05:08:57.000Z | server/onesphere/onesphere_mdm/models/mrp_workorder.py | kevin0120/onesphere | 7864076ab0de564fa21f91c946f3f1038aa36faf | [
"MIT"
] | 2 | 2021-12-25T07:18:22.000Z | 2022-02-22T01:35:44.000Z | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from datetime import datetime, timedelta
from dateutil.relativedelta import relativedelta
from collections import defaultdict
import json
from odoo import api, fields, models, _, SUPERUSER_ID
from odoo.exceptio... | 30.736842 | 75 | 0.751712 | 72 | 584 | 6 | 0.680556 | 0.055556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004149 | 0.174658 | 584 | 18 | 76 | 32.444444 | 0.892116 | 0.160959 | 0 | 0 | 0 | 0 | 0.074627 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.636364 | 0 | 0.909091 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ade5fbb5fa52dc1d3db6af05ab8611c2b9453834 | 409 | py | Python | eventviz/settings.py | mattoufoutu/EventViz | 30f986de65e112af8128366be4725b438eeebf16 | [
"MIT"
] | 1 | 2019-01-21T18:51:05.000Z | 2019-01-21T18:51:05.000Z | eventviz/settings.py | mdeous/EventViz | 30f986de65e112af8128366be4725b438eeebf16 | [
"MIT"
] | null | null | null | eventviz/settings.py | mdeous/EventViz | 30f986de65e112af8128366be4725b438eeebf16 | [
"MIT"
] | 1 | 2017-06-04T13:41:21.000Z | 2017-06-04T13:41:21.000Z | # -*- coding: utf-8 -*-
# Flask settings
DEBUG = True
ASSETS_DEBUG = DEBUG
SECRET_KEY = 'CHANGEME'
SESSION_COOKIE_NAME = '_session'
SESSION_COOKIE_HTTPONLY = True
SESSION_COOKIE_SECURE = True
# Database settings
MONGO_HOST = 'localhost'
MONGO_PORT = 27017
# EventViz settings
JS_DATE_FORMAT = '%a, %d %b %Y %H:%M:%S'
... | 17.782609 | 40 | 0.728606 | 56 | 409 | 5.053571 | 0.75 | 0.137809 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017595 | 0.166259 | 409 | 22 | 41 | 18.590909 | 0.812317 | 0.176039 | 0 | 0 | 0 | 0 | 0.138554 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.071429 | 0.142857 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
adeaabe0e381abaa33c53526adf8eb2a303d1cb4 | 540 | py | Python | modules/__init__.py | caixin1998/pl-template | 6918f0289ab2b32d107e5722617d25c9a683399c | [
"BSD-3-Clause"
] | null | null | null | modules/__init__.py | caixin1998/pl-template | 6918f0289ab2b32d107e5722617d25c9a683399c | [
"BSD-3-Clause"
] | null | null | null | modules/__init__.py | caixin1998/pl-template | 6918f0289ab2b32d107e5722617d25c9a683399c | [
"BSD-3-Clause"
] | null | null | null | from .resnet import resnet50, resnet18
from .botnet import botnet
from .resnet50_scratch_dag import Resnet50_scratch_dag
from .discriminator import Discriminator
from .completion_net import CompletionNetwork,LocalDis,GlobalDis,PredictionEyeNetwork
from .fsanet import FSANet
#from .fsanet_64 import FSANet
__all... | 24.545455 | 86 | 0.716667 | 51 | 540 | 7.352941 | 0.352941 | 0.12 | 0.144 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037037 | 0.2 | 540 | 21 | 87 | 25.714286 | 0.831019 | 0.053704 | 0 | 0 | 0 | 0 | 0.235174 | 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 |
adf139773c430e4c3342dade58807ce4dd2178bb | 544 | py | Python | setup.py | willyg302/antsy | fa23c654f60bac36ac1126201cbb558f38e6d833 | [
"MIT"
] | null | null | null | setup.py | willyg302/antsy | fa23c654f60bac36ac1126201cbb558f38e6d833 | [
"MIT"
] | null | null | null | setup.py | willyg302/antsy | fa23c654f60bac36ac1126201cbb558f38e6d833 | [
"MIT"
] | null | null | null | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
import antsy
setup(
name='antsy',
author='William Gaul',
author_email='willyg302@gmail.com',
version=antsy.__version__,
url='https://github.com/willyg302/antsy',
license='MIT',
py_modules=['antsy'],
include_package_data=T... | 21.76 | 47 | 0.722426 | 67 | 544 | 5.731343 | 0.701493 | 0.057292 | 0.130208 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021186 | 0.132353 | 544 | 24 | 48 | 22.666667 | 0.792373 | 0 | 0 | 0 | 0 | 0 | 0.413603 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.181818 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
adf7bce371bdf3619363ca9085bc1f159668ed4f | 13,230 | py | Python | web/apps/importer/import_bamboo.py | exploratour/exploratour | b6d998a5aa471c1f9eba94bd093032d3e20f6d81 | [
"Zlib"
] | null | null | null | web/apps/importer/import_bamboo.py | exploratour/exploratour | b6d998a5aa471c1f9eba94bd093032d3e20f6d81 | [
"Zlib"
] | null | null | null | web/apps/importer/import_bamboo.py | exploratour/exploratour | b6d998a5aa471c1f9eba94bd093032d3e20f6d81 | [
"Zlib"
] | null | null | null |
import config
import os
import dircache
import lxml.etree as etree
from apps.store.models import Record, Collection
from apps.thumbnail.thumbnail import mimetype
from apps import shortcuts
from apps.importer.context import ImportContext
def parse_bamboo_date(text):
# FIXME
return text
def start_import(params... | 35.853659 | 87 | 0.490552 | 1,489 | 13,230 | 4.306917 | 0.163868 | 0.019336 | 0.012475 | 0.036021 | 0.318104 | 0.242476 | 0.201622 | 0.145174 | 0.128957 | 0.102448 | 0 | 0.004983 | 0.37808 | 13,230 | 368 | 88 | 35.951087 | 0.774429 | 0.057596 | 0 | 0.232026 | 0 | 0 | 0.126268 | 0.003571 | 0 | 0 | 0 | 0.005435 | 0 | 0 | null | null | 0 | 0.042484 | null | null | 0.022876 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
bc004d95a5f9b2dab4ff07b5bdfe781ec034817b | 2,386 | py | Python | 8_entities_interactions.py | fabriciojoc/redes-sociais-web | 74d48242892b654fd1aee8f4b3a69a8306a24afe | [
"Apache-2.0"
] | null | null | null | 8_entities_interactions.py | fabriciojoc/redes-sociais-web | 74d48242892b654fd1aee8f4b3a69a8306a24afe | [
"Apache-2.0"
] | null | null | null | 8_entities_interactions.py | fabriciojoc/redes-sociais-web | 74d48242892b654fd1aee8f4b3a69a8306a24afe | [
"Apache-2.0"
] | null | null | null | import nltk
import json
import os
BLOG_DATA = "./feed.json"
HTML_TEMPLATE = """<html>
<head>
<title>%s</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
</head>
<body>%s</body>
</html>"""
def extract_interactions(txt):
# EOS Detection
sentences = nltk.... | 27.744186 | 77 | 0.605616 | 275 | 2,386 | 5.069091 | 0.356364 | 0.1033 | 0.064562 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001706 | 0.262783 | 2,386 | 85 | 78 | 28.070588 | 0.79079 | 0.064543 | 0 | 0 | 0 | 0.017857 | 0.16442 | 0.032794 | 0 | 0 | 0 | 0 | 0.017857 | 0 | null | null | 0 | 0.053571 | null | null | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bc04dc30425ad2eb3ef1763e2e96af51595285b6 | 2,709 | py | Python | src/test/python/test_utils/udevlistener.py | werpu/input_pipe | aba735e1f2a9731d84d50545e8009c9bb1d30b9a | [
"MIT"
] | 11 | 2019-06-05T20:22:27.000Z | 2021-02-18T18:27:02.000Z | src/test/python/test_utils/udevlistener.py | werpu/input_pipe | aba735e1f2a9731d84d50545e8009c9bb1d30b9a | [
"MIT"
] | 1 | 2020-11-30T10:39:10.000Z | 2020-12-01T21:27:04.000Z | src/test/python/test_utils/udevlistener.py | werpu/input_pipe | aba735e1f2a9731d84d50545e8009c9bb1d30b9a | [
"MIT"
] | 2 | 2020-02-19T13:35:20.000Z | 2020-06-11T13:25:03.000Z | import pyudev
from utils.langutils import *
from time import sleep
# Udev hotplugging listener
# the idea is to simulate udev rules with this one
# whenever one of our source devices is removed we need to shutdown
# the pipe and whenever it is attached
# we reactivate the pipe and target inputs
# it is an all or not... | 35.181818 | 109 | 0.636028 | 361 | 2,709 | 4.551247 | 0.362881 | 0.018259 | 0.021911 | 0.027389 | 0.256847 | 0.186853 | 0.174072 | 0.174072 | 0.132684 | 0.132684 | 0 | 0.003096 | 0.284607 | 2,709 | 76 | 110 | 35.644737 | 0.844685 | 0.216316 | 0 | 0.122449 | 0 | 0 | 0.021347 | 0 | 0 | 0 | 0 | 0.013158 | 0 | 1 | 0.102041 | false | 0 | 0.061224 | 0 | 0.244898 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
bc1105fd4e5aff218996fa8712adc2836aa39b7e | 6,121 | py | Python | pgoapi/protos/pogoprotos/data/news/news_article_pb2.py | aroo135/pgoapi | 47d384ffe54051363ba380f0cb14ec584feedab1 | [
"MIT"
] | 842 | 2016-08-07T00:07:26.000Z | 2016-08-22T02:41:38.000Z | pgoapi/protos/pogoprotos/data/news/news_article_pb2.py | aroo135/pgoapi | 47d384ffe54051363ba380f0cb14ec584feedab1 | [
"MIT"
] | 102 | 2016-08-22T19:55:24.000Z | 2018-10-28T12:06:33.000Z | pgoapi/protos/pogoprotos/data/news/news_article_pb2.py | aroo135/pgoapi | 47d384ffe54051363ba380f0cb14ec584feedab1 | [
"MIT"
] | 522 | 2016-08-07T00:06:05.000Z | 2016-08-21T18:03:59.000Z | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: pogoprotos/data/news/news_article.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf i... | 40.536424 | 631 | 0.741545 | 816 | 6,121 | 5.314951 | 0.196078 | 0.057182 | 0.074706 | 0.086926 | 0.522942 | 0.472216 | 0.368919 | 0.34125 | 0.34125 | 0.34125 | 0 | 0.040744 | 0.129881 | 6,121 | 150 | 632 | 40.806667 | 0.773564 | 0.040516 | 0 | 0.515385 | 1 | 0.007692 | 0.200784 | 0.160389 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.046154 | 0 | 0.046154 | 0 | 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 |
bc18ad492c7b73b9cf01ac835d2fb50c71e90a4c | 1,163 | py | Python | tools/font.py | zlsun/FlappyBird | 3e474a79ef60cebc32c081545487a80c79d756d1 | [
"MIT"
] | null | null | null | tools/font.py | zlsun/FlappyBird | 3e474a79ef60cebc32c081545487a80c79d756d1 | [
"MIT"
] | null | null | null | tools/font.py | zlsun/FlappyBird | 3e474a79ef60cebc32c081545487a80c79d756d1 | [
"MIT"
] | 3 | 2015-12-06T12:03:09.000Z | 2021-12-20T13:00:26.000Z | import Image
import os
p = "./atlas/"
d = "../Resources/fonts/"
def generate_fnt(name):
fonts = []
for f in os.listdir(p):
if f.startswith("%s_" % name):
fonts.append(Image.open(p + f))
h = fonts[0].size[1]
gap = 1
x = gap
img = Image.new("RGBA", (x + sum(map(lambda m: m.si... | 27.690476 | 127 | 0.543422 | 201 | 1,163 | 3.119403 | 0.442786 | 0.052632 | 0.019139 | 0.028708 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056671 | 0.271711 | 1,163 | 41 | 128 | 28.365854 | 0.683589 | 0 | 0 | 0.111111 | 1 | 0.083333 | 0.398108 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027778 | false | 0 | 0.055556 | 0 | 0.083333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bc20bbb2cf55eb0ce335f3cfbe850011b609668b | 1,269 | py | Python | App/components/entradas.py | Alexfm101/automata | a39760a04d384ef96ce49cac2517d7248380bd72 | [
"MIT"
] | null | null | null | App/components/entradas.py | Alexfm101/automata | a39760a04d384ef96ce49cac2517d7248380bd72 | [
"MIT"
] | null | null | null | App/components/entradas.py | Alexfm101/automata | a39760a04d384ef96ce49cac2517d7248380bd72 | [
"MIT"
] | null | null | null | import sys
from PyQt5.QtWidgets import *
from PyQt5.QtGui import *
from PyQt5.QtCore import *
dato_entrada = [2,3,4,1]
class entradas(QDialog):
def __init__(self):
super(entradas ,self).__init__()
layout = QGridLayout()
self.setLayout(layout)
self.dato_entrada = dato_entrada ... | 24.403846 | 79 | 0.475965 | 129 | 1,269 | 4.542636 | 0.434109 | 0.093857 | 0.051195 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027174 | 0.420016 | 1,269 | 52 | 80 | 24.403846 | 0.769022 | 0.033885 | 0 | 0.142857 | 0 | 0 | 0.01063 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085714 | false | 0.085714 | 0.114286 | 0 | 0.228571 | 0.085714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
bc20d54670b3153d6d2bac039c3e72bdb66fee9f | 1,562 | py | Python | django_skeleton/users/api/views.py | R3SWebDevelopment/MineSweeper | f9d784e19e6d60fd3e8c147e0065d4fb025a3e3f | [
"MIT"
] | null | null | null | django_skeleton/users/api/views.py | R3SWebDevelopment/MineSweeper | f9d784e19e6d60fd3e8c147e0065d4fb025a3e3f | [
"MIT"
] | null | null | null | django_skeleton/users/api/views.py | R3SWebDevelopment/MineSweeper | f9d784e19e6d60fd3e8c147e0065d4fb025a3e3f | [
"MIT"
] | null | null | null | from rest_framework.views import APIView
from rest_framework.response import Response
from rest_framework.permissions import AllowAny, IsAuthenticated, IsAdminUser
from rest_framework import status
from allauth.socialaccount.providers.facebook.views import FacebookOAuth2Adapter
from rest_auth.registration.views import ... | 36.325581 | 80 | 0.746479 | 165 | 1,562 | 6.951515 | 0.387879 | 0.041848 | 0.074106 | 0.096774 | 0.18483 | 0.18483 | 0.18483 | 0.18483 | 0.18483 | 0.18483 | 0 | 0.003864 | 0.171575 | 1,562 | 42 | 81 | 37.190476 | 0.882535 | 0 | 0 | 0.181818 | 0 | 0 | 0.002561 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.272727 | 0 | 0.757576 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
bc26e1f37bb90410f49308ca0409156e1e31002d | 2,937 | py | Python | nengo/_vendor/scipy/sparse/sputils.py | Michaeljurado24/nengo | dc0419fbe571374d0a55a7f67309dfcb254a2e88 | [
"BSD-2-Clause"
] | 762 | 2015-01-05T13:01:24.000Z | 2022-03-26T11:35:38.000Z | nengo/_vendor/scipy/sparse/sputils.py | Michaeljurado24/nengo | dc0419fbe571374d0a55a7f67309dfcb254a2e88 | [
"BSD-2-Clause"
] | 1,066 | 2015-01-01T15:38:41.000Z | 2022-03-20T19:26:44.000Z | nengo/_vendor/scipy/sparse/sputils.py | Michaeljurado24/nengo | dc0419fbe571374d0a55a7f67309dfcb254a2e88 | [
"BSD-2-Clause"
] | 205 | 2015-01-25T18:08:44.000Z | 2022-03-22T22:03:08.000Z | """
These are borrowed from SciPy and used under their license:
Copyright (c) 2001, 2002 Enthought, Inc.
All rights reserved.
Copyright (c) 2003-2012 SciPy Developers.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following condi... | 33.375 | 75 | 0.699353 | 438 | 2,937 | 4.678082 | 0.438356 | 0.021474 | 0.005857 | 0.02245 | 0.155198 | 0.131772 | 0.131772 | 0.131772 | 0.131772 | 0.131772 | 0 | 0.013626 | 0.2254 | 2,937 | 87 | 76 | 33.758621 | 0.887033 | 0.657133 | 0 | 0.258065 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.193548 | false | 0 | 0.064516 | 0.096774 | 0.580645 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
bc29ab3930e2562ca8158f0593e053861bb2a799 | 1,113 | py | Python | main.py | itsaLca/Tradingview-Chart-Screenshot-scraper | 1f6ebd1155cc6be2d464e82648ed9061975b6011 | [
"MIT"
] | 14 | 2020-10-12T22:59:48.000Z | 2022-03-23T02:33:20.000Z | main.py | itsaLca/Tradingview-Chart-Screenshot-scraper | 1f6ebd1155cc6be2d464e82648ed9061975b6011 | [
"MIT"
] | 3 | 2021-05-21T16:05:16.000Z | 2021-12-24T20:53:56.000Z | main.py | itsaLca/Tradingview-Chart-Screenshot-scraper | 1f6ebd1155cc6be2d464e82648ed9061975b6011 | [
"MIT"
] | 6 | 2020-12-07T11:38:26.000Z | 2021-11-21T05:31:19.000Z | import config as config
from flask import Flask, request, abort
from handler import send_buy_order, send_sell_order
import time
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.support.ui impo... | 29.289474 | 66 | 0.651393 | 139 | 1,113 | 5.028777 | 0.410072 | 0.103004 | 0.150215 | 0.11588 | 0.105866 | 0.105866 | 0.105866 | 0.105866 | 0 | 0 | 0 | 0.023086 | 0.260557 | 1,113 | 38 | 67 | 29.289474 | 0.826245 | 0.01168 | 0 | 0.266667 | 0 | 0 | 0.057385 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0 | 0.366667 | 0 | 0.466667 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
bc2b51287178efd8a88ecceeb141092c5176911f | 1,278 | py | Python | sheets/views.py | calvin620707/reservoir | f6d403a783cfb3b7e7091e7b1e57dee1d7f3cc46 | [
"MIT"
] | null | null | null | sheets/views.py | calvin620707/reservoir | f6d403a783cfb3b7e7091e7b1e57dee1d7f3cc46 | [
"MIT"
] | null | null | null | sheets/views.py | calvin620707/reservoir | f6d403a783cfb3b7e7091e7b1e57dee1d7f3cc46 | [
"MIT"
] | null | null | null | from django.http import HttpResponseRedirect
from django.urls import reverse, reverse_lazy
from django.views.generic import CreateView, DetailView, ListView, UpdateView, DeleteView
from sheets.models import CostRecord
class CostDetailView(DetailView):
model = CostRecord
class CostListView(ListView):
model ... | 27.782609 | 89 | 0.697966 | 140 | 1,278 | 6.292857 | 0.414286 | 0.085131 | 0.068104 | 0.085131 | 0.081725 | 0.081725 | 0 | 0 | 0 | 0 | 0 | 0 | 0.193271 | 1,278 | 45 | 90 | 28.4 | 0.85451 | 0 | 0 | 0.166667 | 0 | 0 | 0.083725 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.133333 | 0.033333 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
70b1cc70c9c114cea386cda5154be9c235bd7e27 | 2,496 | py | Python | buildchatbot.py | mirkonasato/buildchatbot | f39d589cf85cf49946dd22f18d5012c740c5b1e8 | [
"BSD-2-Clause-FreeBSD"
] | 13 | 2015-02-22T17:42:03.000Z | 2020-03-02T09:10:48.000Z | buildchatbot.py | mirkonasato/buildchatbot | f39d589cf85cf49946dd22f18d5012c740c5b1e8 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | buildchatbot.py | mirkonasato/buildchatbot | f39d589cf85cf49946dd22f18d5012c740c5b1e8 | [
"BSD-2-Clause-FreeBSD"
] | 8 | 2015-08-30T17:48:59.000Z | 2018-10-18T09:35:05.000Z | #
# buildchatbot - Monitors Jenkins builds and sends notifications to a Skype chat
#
# Copyright (c) 2012 Mirko Nasato - All rights reserved.
# Licensed under the BSD 2-clause license; see LICENSE.txt
#
import platform
from time import sleep
from urllib import urlopen
from Skype4Py import Skype
from xml.etree import El... | 28.363636 | 102 | 0.669071 | 311 | 2,496 | 5.221865 | 0.398714 | 0.049261 | 0.02032 | 0.042488 | 0.070197 | 0.041872 | 0 | 0 | 0 | 0 | 0 | 0.011616 | 0.206731 | 2,496 | 87 | 103 | 28.689655 | 0.808586 | 0.079327 | 0 | 0.029412 | 0 | 0 | 0.097422 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.014706 | 0.073529 | null | null | 0.029412 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
70b56fba86a7e54f14818812ced93330d0040aa0 | 18,480 | py | Python | python/caty/core/casm/module/classmodule.py | hidaruma/caty | f71d2ab0a001ea4f7a96a6e02211187ebbf54773 | [
"MIT"
] | null | null | null | python/caty/core/casm/module/classmodule.py | hidaruma/caty | f71d2ab0a001ea4f7a96a6e02211187ebbf54773 | [
"MIT"
] | null | null | null | python/caty/core/casm/module/classmodule.py | hidaruma/caty | f71d2ab0a001ea4f7a96a6e02211187ebbf54773 | [
"MIT"
] | null | null | null | #coding:utf-8
from caty.core.casm.module.basemodule import *
from caty.core.casm.language.ast import *
from caty.core.casm.cursor.base import check_named_type_param
def error_wrapper(f):
def _(self, *args, **kwds):
try:
return f(self, *args, **kwds)
except:
self.application.... | 38.823529 | 237 | 0.55211 | 2,219 | 18,480 | 4.393871 | 0.121226 | 0.037949 | 0.018667 | 0.014769 | 0.381128 | 0.330256 | 0.278462 | 0.250667 | 0.207282 | 0.155385 | 0 | 0.001494 | 0.347998 | 18,480 | 475 | 238 | 38.905263 | 0.807702 | 0.010173 | 0 | 0.375598 | 0 | 0 | 0.036962 | 0 | 0 | 0 | 0 | 0 | 0.011962 | 0 | null | null | 0.011962 | 0.026316 | null | null | 0.026316 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
70b6361cc7eeb4a97385f5e1e4e348447eb4b2de | 1,285 | py | Python | plantcv/plantcv/transform/rescale.py | Howzit123/plantcv | b4ff6ad765da36353f40827ce3816b33d1d3596a | [
"MIT"
] | 2 | 2021-08-20T14:56:48.000Z | 2021-08-24T23:12:56.000Z | plantcv/plantcv/transform/rescale.py | Howzit123/plantcv | b4ff6ad765da36353f40827ce3816b33d1d3596a | [
"MIT"
] | null | null | null | plantcv/plantcv/transform/rescale.py | Howzit123/plantcv | b4ff6ad765da36353f40827ce3816b33d1d3596a | [
"MIT"
] | 1 | 2021-06-15T15:01:46.000Z | 2021-06-15T15:01:46.000Z | # Rescale grayscale images to user defined range
import os
import numpy as np
from plantcv.plantcv import fatal_error
from plantcv.plantcv import print_image
from plantcv.plantcv import plot_image
from plantcv.plantcv import params
def rescale(gray_img, min_value=0, max_value=255):
"""Rescale image.
Inp... | 30.595238 | 106 | 0.683268 | 176 | 1,285 | 4.818182 | 0.392045 | 0.057783 | 0.084906 | 0.113208 | 0.139151 | 0.070755 | 0 | 0 | 0 | 0 | 0 | 0.011033 | 0.224125 | 1,285 | 41 | 107 | 31.341463 | 0.839519 | 0.336187 | 0 | 0 | 0 | 0 | 0.070013 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.352941 | 0 | 0.470588 | 0.176471 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
70ba3700e2db2b59e47f91c539d354b8407be772 | 1,888 | py | Python | tests/py_tests/test_faint/test_linear_gradient.py | lukas-ke/faint-graphics-editor | 33eb9e6a3f2216fb2cf6ef9709a14f3d20b78fbf | [
"Apache-2.0"
] | 10 | 2016-12-28T22:06:31.000Z | 2021-05-24T13:42:30.000Z | tests/py_tests/test_faint/test_linear_gradient.py | lukas-ke/faint-graphics-editor | 33eb9e6a3f2216fb2cf6ef9709a14f3d20b78fbf | [
"Apache-2.0"
] | 4 | 2015-10-09T23:55:10.000Z | 2020-04-04T08:09:22.000Z | tests/py_tests/test_faint/test_linear_gradient.py | lukas-ke/faint-graphics-editor | 33eb9e6a3f2216fb2cf6ef9709a14f3d20b78fbf | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import unittest
from faint import LinearGradient
class TestLinearGradient(unittest.TestCase):
def test_init_types(self):
# Arguments required
ar = self.assertRaises(ValueError)
with ar: LinearGradient();
with ar: LinearGra... | 30.451613 | 72 | 0.556144 | 253 | 1,888 | 4.079051 | 0.280632 | 0.073643 | 0.061047 | 0.054264 | 0.312016 | 0.168605 | 0.098837 | 0.050388 | 0 | 0 | 0 | 0.141481 | 0.284958 | 1,888 | 61 | 73 | 30.95082 | 0.622963 | 0.09375 | 0 | 0 | 0 | 0 | 0.010956 | 0 | 0 | 0 | 0 | 0.016393 | 0.324324 | 1 | 0.081081 | false | 0 | 0.054054 | 0 | 0.162162 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
70bf811605ea319ff3fe944587e619f7756315c2 | 2,613 | py | Python | links.py | nigamankit7/kisscartoon | 4233bdc15b41dc0f73c9c74d58a85ffa205bb758 | [
"Apache-2.0"
] | 2 | 2019-03-18T12:25:42.000Z | 2021-03-29T04:31:46.000Z | links.py | morecartoonz/kisscartoon | 4233bdc15b41dc0f73c9c74d58a85ffa205bb758 | [
"Apache-2.0"
] | 1 | 2016-04-21T14:15:12.000Z | 2016-04-21T14:15:12.000Z | links.py | morecartoonz/kisscartoon | 4233bdc15b41dc0f73c9c74d58a85ffa205bb758 | [
"Apache-2.0"
] | 1 | 2016-04-21T14:13:28.000Z | 2016-04-21T14:13:28.000Z | import re
import base64
from Crypto.Cipher import AES
from Crypto.Protocol.KDF import PBKDF2
from Crypto.Hash import SHA256
import binascii
class Link(object):
def __init__(self, link, quality, rsk=None):
self.link = link
self.quality = quality
self.rsk = rsk
def is_valid(self):
... | 26.663265 | 109 | 0.546116 | 337 | 2,613 | 4.178042 | 0.350148 | 0.056818 | 0.011364 | 0.045455 | 0.102273 | 0.088068 | 0.069602 | 0.069602 | 0.069602 | 0.06108 | 0 | 0.038164 | 0.308075 | 2,613 | 97 | 110 | 26.938144 | 0.740597 | 0.0708 | 0 | 0.219178 | 0 | 0.027397 | 0.118779 | 0.061899 | 0 | 0 | 0 | 0 | 0 | 1 | 0.178082 | false | 0 | 0.082192 | 0.068493 | 0.506849 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
70c401fab903adfcf43bbb1ea91377e819a1febd | 2,082 | py | Python | cogs/Stock.py | herobrine00100/Rewards-Master-Bot | 0dba7b7f23ec56d808f2c613aa2a1f61f8466823 | [
"MIT"
] | 5 | 2021-04-16T13:55:42.000Z | 2022-03-12T18:28:34.000Z | cogs/Stock.py | herobrine00100/Rewards-Master-Bot | 0dba7b7f23ec56d808f2c613aa2a1f61f8466823 | [
"MIT"
] | null | null | null | cogs/Stock.py | herobrine00100/Rewards-Master-Bot | 0dba7b7f23ec56d808f2c613aa2a1f61f8466823 | [
"MIT"
] | 3 | 2022-01-21T06:40:28.000Z | 2022-03-13T09:41:14.000Z | import discord
import random, os, time
import colorama, datetime, requests
from discord import Embed, File
from discord.ext import commands
from colorama import Fore
from colorama import init
init()
class Stock(commands.Cog):
def __init__(self, bot):
self.bot = bot
@commands.Cog.listener()
... | 52.05 | 160 | 0.618636 | 266 | 2,082 | 4.740602 | 0.330827 | 0.063442 | 0.095163 | 0.034893 | 0.504362 | 0.374306 | 0.328311 | 0.226804 | 0.226804 | 0.226804 | 0 | 0.004751 | 0.191162 | 2,082 | 40 | 161 | 52.05 | 0.744062 | 0 | 0 | 0.205128 | 0 | 0 | 0.312133 | 0.15362 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051282 | false | 0.051282 | 0.179487 | 0 | 0.25641 | 0.025641 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
70c8f41945775c956b1bba9ca52b3320bcc38050 | 378 | py | Python | experiments/run_model_selection_1h_cv5.py | ChristoferNal/multi-nilm | 0ec1d1a834b04da121963bf82eb0f540d76a8409 | [
"MIT"
] | 32 | 2020-04-29T07:03:08.000Z | 2021-12-21T02:24:43.000Z | experiments/run_model_selection_1h_cv5.py | qiu-2020/multi-nilm | 0ec1d1a834b04da121963bf82eb0f540d76a8409 | [
"MIT"
] | 3 | 2020-10-23T07:26:42.000Z | 2021-09-30T11:07:10.000Z | experiments/run_model_selection_1h_cv5.py | qiu-2020/multi-nilm | 0ec1d1a834b04da121963bf82eb0f540d76a8409 | [
"MIT"
] | 10 | 2020-05-31T02:02:32.000Z | 2022-02-10T01:42:37.000Z | import os
from experiments.experiments import ModelSelectionExperiment
from nilmlab.lab import TimeSeriesLength
dirname = os.path.dirname(__file__)
single_building_exp_checkpoint = os.path.join(dirname, '../results/cv1h.csv')
exp = ModelSelectionExperiment(cv=5)
exp.set_ts_len(TimeSeriesLength.WINDOW_1_HOUR)
exp.set... | 31.5 | 77 | 0.843915 | 50 | 378 | 6.06 | 0.56 | 0.039604 | 0.118812 | 0.138614 | 0.20462 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008499 | 0.066138 | 378 | 12 | 78 | 31.5 | 0.849858 | 0 | 0 | 0 | 0 | 0 | 0.050132 | 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 |
70ca9ec376c197f3a2464ccb7bf26a2038de34ef | 1,646 | py | Python | scene_generator/scene_generator_test.py | bzinberg/MCS | 495562a0d4d0b1e3679b78f0f6fb568a1b9a9ae2 | [
"Apache-2.0"
] | null | null | null | scene_generator/scene_generator_test.py | bzinberg/MCS | 495562a0d4d0b1e3679b78f0f6fb568a1b9a9ae2 | [
"Apache-2.0"
] | null | null | null | scene_generator/scene_generator_test.py | bzinberg/MCS | 495562a0d4d0b1e3679b78f0f6fb568a1b9a9ae2 | [
"Apache-2.0"
] | null | null | null | from scene_generator import generate_scene, clean_object
def find_object(id, obj_list):
for obj in obj_list:
if obj['id'] == id:
return obj
return None
def test_generate_scene_target_enclosed():
for _ in range(20):
scene = generate_scene('test', 'interaction', False)
... | 28.37931 | 71 | 0.550425 | 190 | 1,646 | 4.505263 | 0.3 | 0.056075 | 0.018692 | 0.046729 | 0.088785 | 0.088785 | 0 | 0 | 0 | 0 | 0 | 0.010743 | 0.321385 | 1,646 | 57 | 72 | 28.877193 | 0.755595 | 0 | 0 | 0.163265 | 1 | 0 | 0.153098 | 0 | 0 | 0 | 0 | 0 | 0.122449 | 1 | 0.081633 | false | 0 | 0.020408 | 0 | 0.142857 | 0 | 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 |
70d0164fba47994c8bf4709e23c02718c1948c17 | 895 | py | Python | planadversity/apps/proposals/models.py | powellc/planadversity | 7aa6bef30ca3004a1a8e1a5f91dfdcb32f80f98d | [
"BSD-3-Clause"
] | null | null | null | planadversity/apps/proposals/models.py | powellc/planadversity | 7aa6bef30ca3004a1a8e1a5f91dfdcb32f80f98d | [
"BSD-3-Clause"
] | 3 | 2015-04-14T03:49:24.000Z | 2015-04-22T13:59:52.000Z | planadversity/apps/proposals/models.py | powellc/planadversity | 7aa6bef30ca3004a1a8e1a5f91dfdcb32f80f98d | [
"BSD-3-Clause"
] | null | null | null | from django.db import models
from localflavor.us.models import PhoneNumberField, USStateField
from django.utils.translation import ugettext_lazy as _
from django.db.models import permalink
from django_extensions.db.models import (TitleSlugDescriptionModel,
TimeStampedModel)
from... | 31.964286 | 67 | 0.710615 | 106 | 895 | 5.849057 | 0.537736 | 0.096774 | 0.058065 | 0.058065 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002743 | 0.185475 | 895 | 27 | 68 | 33.148148 | 0.847737 | 0 | 0 | 0 | 0 | 0 | 0.075978 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.05 | 0.35 | 0.1 | 0.85 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
70d615f93051fcf39a3421fda51f7c40502974a2 | 2,468 | py | Python | alipay/aop/api/domain/ShopInfo.py | snowxmas/alipay-sdk-python-all | 96870ced60facd96c5bce18d19371720cbda3317 | [
"Apache-2.0"
] | 213 | 2018-08-27T16:49:32.000Z | 2021-12-29T04:34:12.000Z | alipay/aop/api/domain/ShopInfo.py | snowxmas/alipay-sdk-python-all | 96870ced60facd96c5bce18d19371720cbda3317 | [
"Apache-2.0"
] | 29 | 2018-09-29T06:43:00.000Z | 2021-09-02T03:27:32.000Z | alipay/aop/api/domain/ShopInfo.py | snowxmas/alipay-sdk-python-all | 96870ced60facd96c5bce18d19371720cbda3317 | [
"Apache-2.0"
] | 59 | 2018-08-27T16:59:26.000Z | 2022-03-25T10:08:15.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class ShopInfo(object):
def __init__(self):
self._shop_name = None
self._shop_scene_pic = None
self._shop_sign_board_pic = None
@property
def shop_name(self):
r... | 31.240506 | 89 | 0.604943 | 335 | 2,468 | 4.056716 | 0.155224 | 0.153054 | 0.1766 | 0.1766 | 0.497425 | 0.319352 | 0.217807 | 0.182487 | 0.06181 | 0.06181 | 0 | 0.001163 | 0.303485 | 2,468 | 78 | 90 | 31.641026 | 0.789412 | 0.017018 | 0 | 0.095238 | 0 | 0 | 0.092486 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.031746 | 0.047619 | 0.285714 | 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 |
70d77be28124a2f19f0c41c3b02b655e050d4b6e | 5,674 | py | Python | src/14.Graph Algorithms/14.2.5 Python Implementation.py | LittleNewton/Data_Structure_and_Algorithm_Report | e4883a2c112259fb185107d54828eceb097e0318 | [
"Apache-2.0"
] | 3 | 2018-07-16T09:29:59.000Z | 2019-12-09T03:46:25.000Z | src/14.Graph Algorithms/14.2.5 Python Implementation.py | LittleNewton/Data_Structure_and_Algorithm_Report | e4883a2c112259fb185107d54828eceb097e0318 | [
"Apache-2.0"
] | null | null | null | src/14.Graph Algorithms/14.2.5 Python Implementation.py | LittleNewton/Data_Structure_and_Algorithm_Report | e4883a2c112259fb185107d54828eceb097e0318 | [
"Apache-2.0"
] | null | null | null | # 14.2.5 Python Implementation
class Graph:
"""Representation of a simple graph using an adjacency map."""
#------------------------- nested Vertex class -------------------------
class Vertex:
"""Lightweight vertex structure for a graph."""
__slots__ = '_element'
def __init__(sel... | 32.238636 | 80 | 0.579485 | 741 | 5,674 | 4.280702 | 0.206478 | 0.04918 | 0.017339 | 0.02396 | 0.294136 | 0.226671 | 0.180958 | 0.165826 | 0.098991 | 0.098991 | 0 | 0.001216 | 0.275291 | 5,674 | 176 | 81 | 32.238636 | 0.770185 | 0.351251 | 0 | 0.172043 | 0 | 0 | 0.036546 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.204301 | false | 0 | 0 | 0.021505 | 0.387097 | 0.11828 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
70d801289e149db8db2c1792dc19dc81e322d78c | 1,024 | py | Python | versions/3.0/karma/python/html_manipulation.py | Lituta/dig-alignment | 812ab0e4a181953d23024ef9df92eec1d40559cb | [
"Apache-2.0"
] | 5 | 2015-04-26T19:39:44.000Z | 2018-12-24T13:17:42.000Z | versions/3.0/karma/python/html_manipulation.py | Lituta/dig-alignment | 812ab0e4a181953d23024ef9df92eec1d40559cb | [
"Apache-2.0"
] | 7 | 2016-03-23T16:52:32.000Z | 2018-07-24T03:08:05.000Z | versions/3.0/karma/python/html_manipulation.py | Lituta/dig-alignment | 812ab0e4a181953d23024ef9df92eec1d40559cb | [
"Apache-2.0"
] | 28 | 2015-04-08T22:39:07.000Z | 2021-12-25T22:16:36.000Z | from HTMLParser import HTMLParser
test_signature = "<span style=\"font-style: italic\">Precision Combat Arms<br />1710 E Trent, Unit 1<br />Spokane, " \
"WA 99202<br />509-535-0655<br />M-F 9-5</span></div>"
class HM(HTMLParser):
def __init__(self):
HTMLParser.__init__(self)
self... | 23.813953 | 118 | 0.566406 | 129 | 1,024 | 4.333333 | 0.457364 | 0.075134 | 0.093023 | 0.085868 | 0.150268 | 0.100179 | 0.100179 | 0 | 0 | 0 | 0 | 0.030683 | 0.299805 | 1,024 | 42 | 119 | 24.380952 | 0.748954 | 0 | 0 | 0.166667 | 0 | 0.033333 | 0.12996 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.033333 | 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 |
70e00a70accea295f1bdc59626e74e2bf7f7c7f0 | 930 | py | Python | causallearn/utils/KCI/Kernel.py | softsys4ai/causal-config-labyrinth | 4f50f9ff15429b0ac6ad0a99fbe4cfdd17e360fc | [
"MIT"
] | 15 | 2022-01-20T12:35:35.000Z | 2022-03-24T16:25:24.000Z | causallearn/utils/KCI/Kernel.py | softsys4ai/unicorn | 4f50f9ff15429b0ac6ad0a99fbe4cfdd17e360fc | [
"MIT"
] | 14 | 2022-01-23T00:20:00.000Z | 2022-02-22T01:40:43.000Z | causallearn/utils/KCI/Kernel.py | softsys4ai/causal-config-labyrinth | 4f50f9ff15429b0ac6ad0a99fbe4cfdd17e360fc | [
"MIT"
] | 1 | 2022-02-23T08:59:24.000Z | 2022-02-23T08:59:24.000Z | from abc import abstractmethod
from numpy import eye, shape
from numpy.linalg import pinv
class Kernel(object):
def __init__(self):
pass
@abstractmethod
def kernel(self, X, Y=None):
raise NotImplementedError()
@staticmethod
def centering_matrix(n):
"""
Returns th... | 24.473684 | 98 | 0.574194 | 129 | 930 | 4.062016 | 0.364341 | 0.114504 | 0.028626 | 0.034351 | 0.219466 | 0.206107 | 0.156489 | 0.156489 | 0 | 0 | 0 | 0.015601 | 0.310753 | 930 | 37 | 99 | 25.135135 | 0.801872 | 0.224731 | 0 | 0.190476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.238095 | false | 0.047619 | 0.142857 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
70e792f68a59be90c3343630452e7abfc49b9ed6 | 2,344 | py | Python | test/likelihoods/test_softmax_likelihood.py | Mehdishishehbor/gpytorch | 432e537b3f6679ea4ab3acf33b14626b7e161c92 | [
"MIT"
] | null | null | null | test/likelihoods/test_softmax_likelihood.py | Mehdishishehbor/gpytorch | 432e537b3f6679ea4ab3acf33b14626b7e161c92 | [
"MIT"
] | null | null | null | test/likelihoods/test_softmax_likelihood.py | Mehdishishehbor/gpytorch | 432e537b3f6679ea4ab3acf33b14626b7e161c92 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import unittest
import torch
from torch.distributions import Distribution
from Lgpytorch.distributions import MultitaskMultivariateNormal, MultivariateNormal
from Lgpytorch.likelihoods import SoftmaxLikelihood
from Lgpytorch.test.base_likelihood_test_case import BaseLikelihoodTestCase
class ... | 36.625 | 103 | 0.719283 | 270 | 2,344 | 6.014815 | 0.251852 | 0.110837 | 0.051724 | 0.046798 | 0.458128 | 0.445813 | 0.364532 | 0.221059 | 0.221059 | 0.221059 | 0 | 0.017098 | 0.176621 | 2,344 | 63 | 104 | 37.206349 | 0.824352 | 0.008959 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136364 | 1 | 0.181818 | false | 0 | 0.136364 | 0.090909 | 0.522727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
70eb0db1e1b323fd3299f60fadf941dc91c2bada | 222 | py | Python | 17_Greedy/Step01/ys_1.py | StudyForCoding/BEAKJOON | 84e1c5e463255e919ccf6b6a782978c205420dbf | [
"MIT"
] | null | null | null | 17_Greedy/Step01/ys_1.py | StudyForCoding/BEAKJOON | 84e1c5e463255e919ccf6b6a782978c205420dbf | [
"MIT"
] | 3 | 2020-11-04T05:38:53.000Z | 2021-03-02T02:15:19.000Z | 17_Greedy/Step01/ys_1.py | StudyForCoding/BEAKJOON | 84e1c5e463255e919ccf6b6a782978c205420dbf | [
"MIT"
] | null | null | null | N, K=map(int, input().split())
arr=[]
result=0
for i in range(N):
arr.append(int(input()))
for i in range(N-1, -1, -1):
if K==0:
break
else:
result+=K//arr[i]
K=K%arr[i]
print(result)
| 14.8 | 30 | 0.509009 | 41 | 222 | 2.756098 | 0.463415 | 0.141593 | 0.106195 | 0.19469 | 0.212389 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031056 | 0.274775 | 222 | 14 | 31 | 15.857143 | 0.670807 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.083333 | 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 |
70f5fb3b0305183a47593f34280906971c04a031 | 505 | py | Python | lintcode/413.py | jianershi/algorithm | c3c38723b9c5f1cc745550d89e228f92fd4abfb2 | [
"MIT"
] | 1 | 2021-01-08T06:57:49.000Z | 2021-01-08T06:57:49.000Z | lintcode/413.py | jianershi/algorithm | c3c38723b9c5f1cc745550d89e228f92fd4abfb2 | [
"MIT"
] | null | null | null | lintcode/413.py | jianershi/algorithm | c3c38723b9c5f1cc745550d89e228f92fd4abfb2 | [
"MIT"
] | 1 | 2021-01-08T06:57:52.000Z | 2021-01-08T06:57:52.000Z | """
413. Reverse Integer
https://www.lintcode.com/problem/reverse-integer/description?_from=ladder&&fromId=37
"""
class Solution:
"""
@param n: the integer to be reversed
@return: the reversed integer
"""
def reverseInteger(self, n):
# write your code here
a = str(abs(n))
... | 25.25 | 84 | 0.524752 | 68 | 505 | 3.882353 | 0.588235 | 0.022727 | 0.030303 | 0.05303 | 0.098485 | 0.098485 | 0.098485 | 0 | 0 | 0 | 0 | 0.051051 | 0.340594 | 505 | 20 | 85 | 25.25 | 0.741742 | 0.384158 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cb037abb5b5b3020ba81f0856aa03659af08e2a3 | 1,580 | py | Python | mrp_system/migrations/0073_auto_20190130_1623.py | mgeorge8/django_time | f75a442941b0ebbb6cc46a6d18e42b91695b7e57 | [
"MIT"
] | 1 | 2018-11-09T02:09:14.000Z | 2018-11-09T02:09:14.000Z | mrp_system/migrations/0073_auto_20190130_1623.py | mgeorge8/django_time | f75a442941b0ebbb6cc46a6d18e42b91695b7e57 | [
"MIT"
] | null | null | null | mrp_system/migrations/0073_auto_20190130_1623.py | mgeorge8/django_time | f75a442941b0ebbb6cc46a6d18e42b91695b7e57 | [
"MIT"
] | null | null | null | # Generated by Django 2.1.2 on 2019-01-30 16:23
from django.db import migrations, models
import django.db.models.deletion
import mrp_system.models
class Migration(migrations.Migration):
dependencies = [
('mrp_system', '0072_auto_20190130_1515'),
]
operations = [
migrations.CreateModel(
... | 37.619048 | 116 | 0.61962 | 163 | 1,580 | 5.852761 | 0.429448 | 0.066038 | 0.0587 | 0.092243 | 0.27673 | 0.27673 | 0.184486 | 0.184486 | 0.184486 | 0.184486 | 0 | 0.028838 | 0.253797 | 1,580 | 41 | 117 | 38.536585 | 0.780322 | 0.028481 | 0 | 0.257143 | 1 | 0 | 0.166993 | 0.049576 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.085714 | 0 | 0.171429 | 0 | 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 |
cb06b3ac33b7903c9925dd5e0b556e05e998cc32 | 1,536 | py | Python | ops/ci/buildbot/configuration/global_config.py | giltayar/ci-build | f4a6c704dcd4c76acb3c9bdaa0005c74ce790799 | [
"Unlicense"
] | null | null | null | ops/ci/buildbot/configuration/global_config.py | giltayar/ci-build | f4a6c704dcd4c76acb3c9bdaa0005c74ce790799 | [
"Unlicense"
] | null | null | null | ops/ci/buildbot/configuration/global_config.py | giltayar/ci-build | f4a6c704dcd4c76acb3c9bdaa0005c74ce790799 | [
"Unlicense"
] | null | null | null | import os
from buildbot.plugins import worker
from buildbot.plugins import reporters
def setup_global_config(c):
####### PROJECT IDENTITY
c['title'] = "Natural Intelligence"
c['titleURL'] = "http://www.naturalint.com/"
c['buildbotURL'] = os.environ.get("BUILDBOT_WEB_URL", "http://localhost:8010/")
... | 38.4 | 87 | 0.590495 | 172 | 1,536 | 5.174419 | 0.534884 | 0.080899 | 0.094382 | 0.089888 | 0.137079 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021295 | 0.235677 | 1,536 | 39 | 88 | 39.384615 | 0.736797 | 0.113281 | 0 | 0 | 0 | 0 | 0.279489 | 0.033809 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0.133333 | 0.1 | 0 | 0.133333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
cb0c3c23833807c09ea446f65f8bfa474a83f682 | 13,292 | py | Python | python/3D-rrt/pvtrace/Devices.py | siddhu95/mcclanahoochie | 6df72553ba954b52e949a6847a213b22f9e90157 | [
"Apache-2.0"
] | 1 | 2020-12-27T21:37:35.000Z | 2020-12-27T21:37:35.000Z | python/3D-rrt/pvtrace/Devices.py | siddhu95/mcclanahoochie | 6df72553ba954b52e949a6847a213b22f9e90157 | [
"Apache-2.0"
] | null | null | null | python/3D-rrt/pvtrace/Devices.py | siddhu95/mcclanahoochie | 6df72553ba954b52e949a6847a213b22f9e90157 | [
"Apache-2.0"
] | null | null | null | # pvtrace is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# pvtrace is distributed in the hope that it will be useful,
# but WITHOUT... | 40.1571 | 190 | 0.606982 | 1,706 | 13,292 | 4.620164 | 0.208089 | 0.01421 | 0.014844 | 0.01421 | 0.368561 | 0.320604 | 0.284826 | 0.267318 | 0.243847 | 0.230272 | 0 | 0.022229 | 0.289272 | 13,292 | 330 | 191 | 40.278788 | 0.81211 | 0.112398 | 0 | 0.433673 | 0 | 0.005102 | 0.042784 | 0 | 0 | 0 | 0 | 0 | 0.005102 | 0 | null | null | 0 | 0.040816 | null | null | 0.015306 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
cb10ae5b7e6230cb99bdc99a23ac5adc14a1c911 | 1,395 | py | Python | backend/src/baserow/contrib/database/migrations/0007_datefield.py | cjh0613/baserow | 62871f5bf53c9d25446976031aacb706c0abe584 | [
"MIT"
] | 839 | 2020-07-20T13:29:34.000Z | 2022-03-31T21:09:16.000Z | backend/src/baserow/contrib/database/migrations/0007_datefield.py | jacklicn/baserow | 978d9462ededbaa96674a6653028ba19876ea273 | [
"MIT"
] | 28 | 2020-08-07T09:23:58.000Z | 2022-03-01T22:32:40.000Z | backend/src/baserow/contrib/database/migrations/0007_datefield.py | jacklicn/baserow | 978d9462ededbaa96674a6653028ba19876ea273 | [
"MIT"
] | 79 | 2020-08-04T01:48:01.000Z | 2022-03-27T13:30:54.000Z | # Generated by Django 2.2.11 on 2020-05-26 10:23
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('database', '0006_auto_20200522_1329'),
]
operations = [
migrations.CreateModel(
name='DateFiel... | 32.44186 | 74 | 0.432975 | 122 | 1,395 | 4.827869 | 0.540984 | 0.040747 | 0.047538 | 0.074703 | 0.044143 | 0 | 0 | 0 | 0 | 0 | 0 | 0.060759 | 0.433692 | 1,395 | 42 | 75 | 33.214286 | 0.68481 | 0.032975 | 0 | 0.138889 | 1 | 0 | 0.155902 | 0.017075 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.055556 | 0 | 0.138889 | 0 | 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 |
cb13739f9c5f77c3521058427316edb533fe1136 | 865 | py | Python | TFAProject/hello/management/commands/export_squirrel_data.py | sd3419/TFAProject | 32938db648ad3d324a53951e877d45e6d0800cab | [
"MIT"
] | null | null | null | TFAProject/hello/management/commands/export_squirrel_data.py | sd3419/TFAProject | 32938db648ad3d324a53951e877d45e6d0800cab | [
"MIT"
] | null | null | null | TFAProject/hello/management/commands/export_squirrel_data.py | sd3419/TFAProject | 32938db648ad3d324a53951e877d45e6d0800cab | [
"MIT"
] | null | null | null | from django.core.management.base import BaseCommand
import csv
from hello.models import squirrel_data
import datetime
import pandas as pd
class Command(BaseCommand):
'''
Class to handle export operation
'''
def add_arguments(self,parser):
parser.add_argument('file_location', type= str, help="E... | 34.6 | 91 | 0.63815 | 116 | 865 | 4.672414 | 0.568966 | 0.088561 | 0.070111 | 0.04797 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.213873 | 865 | 25 | 92 | 34.6 | 0.797059 | 0.079769 | 0 | 0.125 | 0 | 0 | 0.16095 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.3125 | 0 | 0.5 | 0.1875 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
cb18cf84cc7827057bf3fff002465f6b69805bbf | 3,527 | py | Python | script/screenutils.py | T3p/policy-optimization | 77006545779823737c4ca3b19e9d80506015c132 | [
"MIT"
] | null | null | null | script/screenutils.py | T3p/policy-optimization | 77006545779823737c4ca3b19e9d80506015c132 | [
"MIT"
] | null | null | null | script/screenutils.py | T3p/policy-optimization | 77006545779823737c4ca3b19e9d80506015c132 | [
"MIT"
] | 1 | 2019-09-08T15:11:55.000Z | 2019-09-08T15:11:55.000Z | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# Note: this may not work with bpython, use python 2.6 or upper
# Author: Christophe Narbonne
# Contrib: Alexis Metaireau
from subprocess import getoutput
from multiprocessing import Process
from os import system
from time import sleep
def list_screens():
"""List all t... | 29.889831 | 81 | 0.557414 | 433 | 3,527 | 4.424942 | 0.330254 | 0.050104 | 0.031315 | 0.035491 | 0.148747 | 0.148747 | 0.108038 | 0.084551 | 0.063674 | 0.025052 | 0 | 0.014992 | 0.300255 | 3,527 | 117 | 82 | 30.145299 | 0.761345 | 0.26283 | 0 | 0.203125 | 0 | 0 | 0.088862 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.21875 | false | 0 | 0.0625 | 0.015625 | 0.390625 | 0.015625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
cb200f9be688a9ac9b822983802b7834ab338d1f | 564 | py | Python | 01_what_is_pytorch/_02.py | kjb4494/pytorch-study | 2d14e94f80ce2d82ae105afec17dbfed00734e8b | [
"MIT"
] | null | null | null | 01_what_is_pytorch/_02.py | kjb4494/pytorch-study | 2d14e94f80ce2d82ae105afec17dbfed00734e8b | [
"MIT"
] | null | null | null | 01_what_is_pytorch/_02.py | kjb4494/pytorch-study | 2d14e94f80ce2d82ae105afec17dbfed00734e8b | [
"MIT"
] | null | null | null | from __future__ import print_function
import torch
if __name__ == '__main__':
# 데이터로부터 tensor를 직접 생성합니다.
x = torch.tensor([5.5, 3])
print(x)
# 또는 기존 tensor를 바탕으로 새로운 tensor를 만듭니다.
# 이들 메소드(method)는 사용자로부터 새로운 값을 제공받지 않은 한,
# 입력 tensor의 속성들(예. dtype)을 재사용합니다.
# new_* 메소드는 크기를 받습니다.
x =... | 22.56 | 46 | 0.618794 | 91 | 564 | 3.659341 | 0.681319 | 0.072072 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012048 | 0.264184 | 564 | 24 | 47 | 23.5 | 0.790361 | 0.432624 | 0 | 0.3 | 0 | 0 | 0.025806 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
cb382d1882f1a0a008be300a3511bd4ad777158a | 2,745 | py | Python | server/featherlight/classes/user/invoices.py | FeatherLightApp/FeatherLight-API | 1543cc4532f9a8ec1bae51374d4e5d88546c8d15 | [
"MIT"
] | 3 | 2020-06-28T17:30:57.000Z | 2022-01-25T18:03:38.000Z | server/featherlight/classes/user/invoices.py | FeatherLightApp/FeatherLight-API | 1543cc4532f9a8ec1bae51374d4e5d88546c8d15 | [
"MIT"
] | null | null | null | server/featherlight/classes/user/invoices.py | FeatherLightApp/FeatherLight-API | 1543cc4532f9a8ec1bae51374d4e5d88546c8d15 | [
"MIT"
] | 1 | 2021-02-04T07:14:08.000Z | 2021-02-04T07:14:08.000Z | """module for getting user invoices"""
from time import time
from base64 import b64decode as decode64
from sqlalchemy import or_, and_
from context import LND, GINO
from models import Invoice as DB_Invoice
import rpc_pb2 as ln
from helpers.mixins import LoggerMixin
from .abstract_user_method import AbstractMethod
cla... | 38.125 | 88 | 0.587978 | 322 | 2,745 | 4.900621 | 0.39441 | 0.028517 | 0.017744 | 0.027883 | 0.050697 | 0.050697 | 0.050697 | 0.050697 | 0 | 0 | 0 | 0.007748 | 0.341712 | 2,745 | 71 | 89 | 38.661972 | 0.865523 | 0.165756 | 0 | 0 | 0 | 0 | 0.002491 | 0 | 0 | 0 | 0 | 0.014085 | 0 | 1 | 0.018868 | false | 0 | 0.150943 | 0 | 0.207547 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
cb3cc44f8011fdd1e5147da91c2fae15e8cb63d3 | 412 | py | Python | reader/urls.py | AymaneZizi/dailyreader | b50035d9d11dcb4a5cd1810ebce356e6f7b2ca8d | [
"MIT"
] | null | null | null | reader/urls.py | AymaneZizi/dailyreader | b50035d9d11dcb4a5cd1810ebce356e6f7b2ca8d | [
"MIT"
] | null | null | null | reader/urls.py | AymaneZizi/dailyreader | b50035d9d11dcb4a5cd1810ebce356e6f7b2ca8d | [
"MIT"
] | 1 | 2019-07-10T10:32:09.000Z | 2019-07-10T10:32:09.000Z | from django.conf.urls import patterns, url
from reader import views
urlpatterns = patterns('',
url(r'^$', views.index, name='index'),
url(r'^page/(?P<pageno>\d+)$', views.index, name='index'),
url(r'^category/(?P<category>[a-zA-Z0-9% ]+)/type/(?P<type>[a-zA-Z0-9% ]+)/page/(?P<pageno>\d+)$', views.index, n... | 34.333333 | 130 | 0.631068 | 63 | 412 | 4.079365 | 0.412698 | 0.062257 | 0.163424 | 0.22179 | 0.361868 | 0.361868 | 0.272374 | 0.272374 | 0.272374 | 0.272374 | 0 | 0.010989 | 0.116505 | 412 | 12 | 131 | 34.333333 | 0.695055 | 0 | 0 | 0 | 0 | 0.125 | 0.360775 | 0.266344 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 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 |
cb4531d8cc9090054b7dcb559b6eae2b9e41cf43 | 4,803 | py | Python | django_feature_flip/tests.py | rootstrap/feature-flip | b2694fb6c49a6fed298a6b15d8d96b76ea92ee6a | [
"MIT"
] | 1 | 2020-08-19T20:47:53.000Z | 2020-08-19T20:47:53.000Z | django_feature_flip/tests.py | rootstrap/feature-flip | b2694fb6c49a6fed298a6b15d8d96b76ea92ee6a | [
"MIT"
] | 13 | 2020-07-30T13:28:01.000Z | 2020-08-17T12:42:08.000Z | django_feature_flip/tests.py | rootstrap/django-feature-flip | b2694fb6c49a6fed298a6b15d8d96b76ea92ee6a | [
"MIT"
] | null | null | null | from django.test import TestCase
from django.db import DataError, IntegrityError
from django_feature_flip.factories import FeatureFactory
from django_feature_flip.helpers import FeatureFlip
from django.core.exceptions import ValidationError
from unittest.mock import Mock
class FeatureTestCase(TestCase):
def test_... | 40.025 | 94 | 0.728919 | 593 | 4,803 | 5.56661 | 0.172007 | 0.097546 | 0.072705 | 0.027264 | 0.557407 | 0.51651 | 0.482581 | 0.406543 | 0.368979 | 0.33505 | 0 | 0.010438 | 0.182178 | 4,803 | 119 | 95 | 40.361345 | 0.829939 | 0.02207 | 0 | 0.214286 | 0 | 0 | 0.145718 | 0.039199 | 0 | 0 | 0 | 0 | 0.190476 | 1 | 0.202381 | false | 0 | 0.071429 | 0 | 0.309524 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
cb4591cf6a7fe764765efb3d0901e39632589d23 | 1,813 | py | Python | utils/collectibles.py | ComputerNetworks-UFRGS/ManP2P-ng | 41257f46c11e30c6aa663c67c791044c04bbf4e0 | [
"MIT"
] | 1 | 2019-10-29T11:54:08.000Z | 2019-10-29T11:54:08.000Z | utils/collectibles.py | ComputerNetworks-UFRGS/ManP2P-ng | 41257f46c11e30c6aa663c67c791044c04bbf4e0 | [
"MIT"
] | null | null | null | utils/collectibles.py | ComputerNetworks-UFRGS/ManP2P-ng | 41257f46c11e30c6aa663c67c791044c04bbf4e0 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from twisted.internet.task import LoopingCall
from twisted.internet import reactor
from time import time
class ITimeCollectible(dict):
time = { }
scheduling = None
gracetime = 0
period = 0
def __init__(self, timeout=0, period=0, *args, **kwargs):
dict.__init__(self, ... | 19.706522 | 65 | 0.62107 | 240 | 1,813 | 4.541667 | 0.295833 | 0.044954 | 0.033028 | 0.027523 | 0.036697 | 0.036697 | 0 | 0 | 0 | 0 | 0 | 0.009413 | 0.238279 | 1,813 | 91 | 66 | 19.923077 | 0.77987 | 0.011583 | 0 | 0.065574 | 0 | 0 | 0.037081 | 0 | 0 | 0 | 0 | 0 | 0.016393 | 0 | null | null | 0 | 0.04918 | null | null | 0.04918 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
cb48f17ba82164d20ba66febff99b155da377e81 | 318 | py | Python | algorithms/dumb.py | IanAlbuquerque/machine_learning_puc_2017-2 | eebb966cec60c8a5a8ca420e5e3599175ae71f71 | [
"MIT"
] | null | null | null | algorithms/dumb.py | IanAlbuquerque/machine_learning_puc_2017-2 | eebb966cec60c8a5a8ca420e5e3599175ae71f71 | [
"MIT"
] | null | null | null | algorithms/dumb.py | IanAlbuquerque/machine_learning_puc_2017-2 | eebb966cec60c8a5a8ca420e5e3599175ae71f71 | [
"MIT"
] | null | null | null | """ Guesses randomly """
# 10.0% accuracy
def train(x_data, y_data, classes):
""" trains the algorithm """
_ = x_data
_ = y_data
return classes
def classify(parameters, data):
""" tests the algorithm """
import random
_ = data
classes = parameters
return random.choice(classes)
| 17.666667 | 35 | 0.625786 | 37 | 318 | 5.189189 | 0.567568 | 0.052083 | 0.0625 | 0.104167 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012712 | 0.257862 | 318 | 17 | 36 | 18.705882 | 0.800847 | 0.238994 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cb493c34428b89704f0b91df9e939675a2e3649e | 754 | py | Python | BinaryTree/minDepth.py | beforeuwait/myLintCode | db4ebc51f6f4a3d7c8d4fa5a6174547642b8de0b | [
"MIT"
] | null | null | null | BinaryTree/minDepth.py | beforeuwait/myLintCode | db4ebc51f6f4a3d7c8d4fa5a6174547642b8de0b | [
"MIT"
] | null | null | null | BinaryTree/minDepth.py | beforeuwait/myLintCode | db4ebc51f6f4a3d7c8d4fa5a6174547642b8de0b | [
"MIT"
] | null | null | null | # coding=utf-8
"""
二叉树的最小深度
给定一个二叉树,找出其最小深度。
二叉树的最小深度为根节点到最近叶子节点的最短路径上的节点数量。
思路:
有这几种情况
1.有左右树的
2.只有左树的
3.只有右树的
4.无树的
针对 1 找到min就行了
针对2,3,4找到max就行了
"""
"""
Definition of TreeNode:
class TreeNode:
def __init__(self, val):
self.val = val
self.left, self.right = None, None
"""
class Solution:
... | 16.755556 | 49 | 0.604775 | 99 | 754 | 4.484848 | 0.545455 | 0.072072 | 0.087838 | 0.076577 | 0.081081 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022599 | 0.295756 | 754 | 45 | 50 | 16.755556 | 0.813559 | 0.295756 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022222 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cb4c5bd493898747f1c6f17f3fac07e8c8b16cdb | 2,655 | py | Python | superapp/forms.py | diyajaiswal11/Supermarket | 79950b294de16cf2ab01640d35b16e2390c05acd | [
"MIT"
] | 5 | 2020-06-04T05:22:53.000Z | 2020-09-25T22:37:45.000Z | superapp/forms.py | diyajaiswal11/Supermarket | 79950b294de16cf2ab01640d35b16e2390c05acd | [
"MIT"
] | null | null | null | superapp/forms.py | diyajaiswal11/Supermarket | 79950b294de16cf2ab01640d35b16e2390c05acd | [
"MIT"
] | null | null | null | from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth.models import User
from django import forms
from django.forms import ModelForm
from django.contrib.auth import authenticate, get_user_model
from .models import Product, Customer
#from django.contrib.auth.models import User
#User=get_user_... | 38.478261 | 121 | 0.680226 | 278 | 2,655 | 6.467626 | 0.241007 | 0.106785 | 0.111235 | 0.139043 | 0.444939 | 0.413793 | 0.413793 | 0.163515 | 0.163515 | 0.163515 | 0 | 0.010078 | 0.177778 | 2,655 | 69 | 122 | 38.478261 | 0.813559 | 0.024105 | 0 | 0.163265 | 0 | 0 | 0.174131 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020408 | false | 0.204082 | 0.122449 | 0 | 0.55102 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
cb6039453b5383c4ace428b6fbfc3cc3e7ef3f6c | 1,097 | py | Python | summary.py | LathamZ/tweets_crawler | 6870d2d4c47e09e079f893434ab731e8993b63cd | [
"MIT"
] | null | null | null | summary.py | LathamZ/tweets_crawler | 6870d2d4c47e09e079f893434ab731e8993b63cd | [
"MIT"
] | null | null | null | summary.py | LathamZ/tweets_crawler | 6870d2d4c47e09e079f893434ab731e8993b63cd | [
"MIT"
] | null | null | null | import logging
import time
import sys, os
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '../'))
from tweets_crawler import db as DB
def doSummary(candidates):
while True:
msg = "\nSummary:\n"
db = DB.DB()
total = 0
for cand in candidates:
cand = cand.strip()
... | 28.128205 | 89 | 0.503191 | 124 | 1,097 | 4.322581 | 0.475806 | 0.022388 | 0.018657 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008108 | 0.325433 | 1,097 | 38 | 90 | 28.868421 | 0.716216 | 0 | 0 | 0 | 0 | 0 | 0.141294 | 0.035552 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.133333 | 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 |
cb644558ccf71eba65c305a309db2da8494feecc | 9,429 | py | Python | restit/exception/client_errors_4xx.py | Rollmops/restit | ddc0fc3a4bf0ffed02c59cce5e7a07b3737e1874 | [
"MIT"
] | 3 | 2020-03-08T19:44:32.000Z | 2020-03-09T19:46:15.000Z | restit/exception/client_errors_4xx.py | Rollmops/restit | ddc0fc3a4bf0ffed02c59cce5e7a07b3737e1874 | [
"MIT"
] | 11 | 2020-03-17T14:50:07.000Z | 2020-04-03T11:20:30.000Z | restit/exception/client_errors_4xx.py | Rollmops/restit | ddc0fc3a4bf0ffed02c59cce5e7a07b3737e1874 | [
"MIT"
] | null | null | null | from restit.exception.http_error import HttpError
class BadRequest(HttpError):
STATUS_CODE = 400
TITLE = "Bad Request"
DEFAULT_DESCRIPTION = \
"This response means that server could not understand the request due to invalid syntax."
DEFAULT_RFC7807_TYPE = "https://developer.mozilla.org/de/docs... | 43.855814 | 122 | 0.726164 | 1,269 | 9,429 | 5.315997 | 0.260047 | 0.055589 | 0.070412 | 0.085236 | 0.267566 | 0.252742 | 0.242069 | 0.242069 | 0.228728 | 0.228728 | 0 | 0.035733 | 0.192703 | 9,429 | 214 | 123 | 44.060748 | 0.850499 | 0 | 0 | 0.109756 | 0 | 0.036585 | 0.594018 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.006098 | 0 | 0.768293 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
cb685727020fc8fa1b077bdacd04921845cbecb7 | 1,139 | py | Python | Python Programs/min_no_of_swap.py | Chibi-Shem/Hacktoberfest2020-Expert | 324843464aec039e130e85a16e74b76d310f1497 | [
"MIT"
] | 77 | 2020-10-01T10:06:59.000Z | 2021-11-08T08:57:18.000Z | Python Programs/min_no_of_swap.py | Chibi-Shem/Hacktoberfest2020-Expert | 324843464aec039e130e85a16e74b76d310f1497 | [
"MIT"
] | 46 | 2020-09-27T04:55:36.000Z | 2021-05-14T18:49:06.000Z | Python Programs/min_no_of_swap.py | Chibi-Shem/Hacktoberfest2020-Expert | 324843464aec039e130e85a16e74b76d310f1497 | [
"MIT"
] | 327 | 2020-09-26T17:06:03.000Z | 2021-10-09T06:04:39.000Z | def minSwap(arr, n, k) :
# Find count of elements
# which are less than
# equals to k
count = 0
for i in range(0, n) :
if (arr[i] <= k) :
count = count + 1
# Find unwanted elements
# in current window of
# size 'count'
bad = ... | 21.903846 | 32 | 0.395961 | 139 | 1,139 | 3.244604 | 0.352518 | 0.062084 | 0.039911 | 0.073171 | 0.159645 | 0.159645 | 0.128603 | 0 | 0 | 0 | 0 | 0.028777 | 0.511853 | 1,139 | 52 | 33 | 21.903846 | 0.782374 | 0.282704 | 0 | 0.24 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0 | 0 | 0.08 | 0.04 | 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 |
cb6993f29f1eb54b5c61aa1069e50d1188907cd6 | 922 | py | Python | accounts/api/views.py | mirokrastev/poll-website | 4f26cce3f838ab05de91f0e1dba34d9bc59927b4 | [
"MIT"
] | 3 | 2021-07-03T19:05:56.000Z | 2022-02-02T17:22:17.000Z | accounts/api/views.py | mirokrastev/poll-website | 4f26cce3f838ab05de91f0e1dba34d9bc59927b4 | [
"MIT"
] | null | null | null | accounts/api/views.py | mirokrastev/poll-website | 4f26cce3f838ab05de91f0e1dba34d9bc59927b4 | [
"MIT"
] | null | null | null | """
Views module for DjangoRestFramework APIs
"""
from rest_framework.response import Response
from rest_framework.views import APIView
from rest_framework import status
from rest_framework.authtoken.views import ObtainAuthToken
from accounts.api.serializers import RegisterUserSerializer
class RegisterAPIView(APIVie... | 28.8125 | 91 | 0.744035 | 108 | 922 | 6.231481 | 0.5 | 0.047548 | 0.10104 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007884 | 0.17462 | 922 | 31 | 92 | 29.741935 | 0.876478 | 0.178959 | 0 | 0 | 0 | 0 | 0.006812 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.357143 | 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 | 1 | 0 | 0 | 0 | 0 | 1 |
cb6c44eef82319a7905a39edb3ceb364c476493b | 911 | py | Python | Code_Python/Exercicio-11/conhecendo-lista.py | gabrielf7/code-exercises | b3a8661fadc133395f3c6fb7e926317acf7fa539 | [
"MIT"
] | 1 | 2020-07-19T16:35:51.000Z | 2020-07-19T16:35:51.000Z | Code_Python/Exercicio-11/conhecendo-lista.py | gabrielf7/codigos-em-C-uteis | b155d2771291a14e8b112a0f1aa32c58254e406e | [
"MIT"
] | null | null | null | Code_Python/Exercicio-11/conhecendo-lista.py | gabrielf7/codigos-em-C-uteis | b155d2771291a14e8b112a0f1aa32c58254e406e | [
"MIT"
] | null | null | null | '''veiculos = ['carro'] #lista
print(veiculos)#mostra'''
'''alunos = ['João', 22, '13/07/1997'] #lista
print(len(alunos)) #mostra quantidade
print(alunos [0], "\n", alunos [1], "\n", alunos [2]) #mostra informações da lista usando a posição'''
#maisfunçaodalista
'''nome = input("Digite seu nome: ")
idade = input("Dig... | 35.038462 | 110 | 0.693743 | 131 | 911 | 4.824427 | 0.473282 | 0.044304 | 0.037975 | 0.071203 | 0.072785 | 0.072785 | 0 | 0 | 0 | 0 | 0 | 0.025253 | 0.130626 | 911 | 26 | 110 | 35.038462 | 0.772727 | 0.093304 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.