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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8a79c5aa4cc942ec50133c91570519a3c6638f53 | 208 | py | Python | python-hard-way/ex33.py | calebgregory/scraps | cfc0ef608db4520c1a1e22fccdbcae73dfb00e39 | [
"MIT"
] | null | null | null | python-hard-way/ex33.py | calebgregory/scraps | cfc0ef608db4520c1a1e22fccdbcae73dfb00e39 | [
"MIT"
] | null | null | null | python-hard-way/ex33.py | calebgregory/scraps | cfc0ef608db4520c1a1e22fccdbcae73dfb00e39 | [
"MIT"
] | null | null | null | def print_multiples(start, finish, inc):
i = start
numbers = []
while i < finish:
numbers.append(i)
i = i + inc
print "Numbers now: ", numbers
print_multiples(6,100,9)
| 16 | 40 | 0.567308 | 27 | 208 | 4.296296 | 0.518519 | 0.241379 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035211 | 0.317308 | 208 | 12 | 41 | 17.333333 | 0.78169 | 0 | 0 | 0 | 0 | 0 | 0.062802 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.375 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8a7b65e5bd38986b2df936f442af942a382962b7 | 420 | py | Python | RadioStation/Player/VLCPlayer.py | m-mohiey/AutomaticRadioStation | 9ec3935e08ef58302d314387bc107bd1be8a6418 | [
"MIT"
] | null | null | null | RadioStation/Player/VLCPlayer.py | m-mohiey/AutomaticRadioStation | 9ec3935e08ef58302d314387bc107bd1be8a6418 | [
"MIT"
] | null | null | null | RadioStation/Player/VLCPlayer.py | m-mohiey/AutomaticRadioStation | 9ec3935e08ef58302d314387bc107bd1be8a6418 | [
"MIT"
] | null | null | null | from . import AbstractPlayer
import vlc
class VLCPlayer(AbstractPlayer):
def __init__(self):
self.player = vlc.MediaPlayer()
self.program = None
def open(self, program):
self.player.set_mrl(program.media.path)
def play(self):
self.player.play()
def stop(self):
... | 18.26087 | 47 | 0.609524 | 50 | 420 | 5 | 0.5 | 0.2 | 0.168 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.280952 | 420 | 22 | 48 | 19.090909 | 0.827815 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.066667 | 0.133333 | 0 | 0.533333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
8a7dafa03dfd357aead512b804e640ce1f6f45ee | 737 | py | Python | bot1/engine/sysfs_writer.py | dpm76/Bot1 | a8e4f6cbc6e4f1d5f1a373a8b3c43811df6446f8 | [
"MIT"
] | null | null | null | bot1/engine/sysfs_writer.py | dpm76/Bot1 | a8e4f6cbc6e4f1d5f1a373a8b3c43811df6446f8 | [
"MIT"
] | null | null | null | bot1/engine/sysfs_writer.py | dpm76/Bot1 | a8e4f6cbc6e4f1d5f1a373a8b3c43811df6446f8 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
'''
Created on 06/04/2015
@author: david
'''
from os import system
class SysfsWriter(object):
@staticmethod
def writeOnce(text, path):
'''
writer = SysfsWriter(path)
writer.write(text)
writer.close()
'''
system("echo {0} > {1}".form... | 17.139535 | 51 | 0.481682 | 73 | 737 | 4.726027 | 0.506849 | 0.092754 | 0.069565 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02407 | 0.379919 | 737 | 42 | 52 | 17.547619 | 0.730853 | 0.297151 | 0 | 0 | 0 | 0 | 0.031532 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.363636 | false | 0.090909 | 0.090909 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
8a82aa98649815d03079e4e5c9ac7d5a804f4112 | 15,091 | py | Python | Detection/AdvancedEAST/label.py | TomHacker/VTD | 3009fd53cec8a86493b5f1960e8879e5a0c7345c | [
"Apache-2.0"
] | 1 | 2020-01-01T14:38:44.000Z | 2020-01-01T14:38:44.000Z | Detection/AdvancedEAST/label.py | TomHacker/VTD | 3009fd53cec8a86493b5f1960e8879e5a0c7345c | [
"Apache-2.0"
] | null | null | null | Detection/AdvancedEAST/label.py | TomHacker/VTD | 3009fd53cec8a86493b5f1960e8879e5a0c7345c | [
"Apache-2.0"
] | 1 | 2020-01-07T12:04:33.000Z | 2020-01-07T12:04:33.000Z | import numpy as np
import os
from PIL import Image, ImageDraw
from tqdm import tqdm
from Detection.AdvancedEAST import cfg
from Detection.AdvancedEAST.preprocess import preprocess_single_image,preprocess_no_cfg
def point_inside_of_quad(px, py, quad_xy_list, p_min, p_max):
if (p_min[0] <= px <= p_max[0]) and (p_min... | 50.811448 | 103 | 0.477238 | 2,059 | 15,091 | 3.226323 | 0.081107 | 0.079482 | 0.079482 | 0.039139 | 0.793467 | 0.753726 | 0.729339 | 0.693964 | 0.682372 | 0.672136 | 0 | 0.03375 | 0.401166 | 15,091 | 296 | 104 | 50.983108 | 0.701339 | 0.023656 | 0 | 0.667897 | 0 | 0 | 0.014673 | 0.002513 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02583 | false | 0 | 0.02214 | 0 | 0.077491 | 0.01845 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 3 |
8a8850dc06a3031c04aec4d9fd3759f0f774b453 | 157 | py | Python | tbot/utils/split.py | thomaserlang/tbot | 99cfa204d86ef35cf2cc9482ae5a44abb35b443a | [
"MIT"
] | null | null | null | tbot/utils/split.py | thomaserlang/tbot | 99cfa204d86ef35cf2cc9482ae5a44abb35b443a | [
"MIT"
] | 10 | 2022-02-14T11:40:20.000Z | 2022-03-09T22:44:03.000Z | tbot/utils/split.py | thomaserlang/tbot | 99cfa204d86ef35cf2cc9482ae5a44abb35b443a | [
"MIT"
] | 1 | 2020-09-19T16:38:24.000Z | 2020-09-19T16:38:24.000Z | import shlex
def split(s):
if '"' not in s:
return s.split(' ')
try:
return list(shlex.split(s))
except ValueError:
pass | 17.444444 | 35 | 0.535032 | 21 | 157 | 4 | 0.666667 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.343949 | 157 | 9 | 36 | 17.444444 | 0.815534 | 0 | 0 | 0 | 0 | 0 | 0.012658 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.125 | 0.125 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
8a8995ef6b40809aa8fcabb717f831f30ee25474 | 11,530 | py | Python | Communication/messages_robocup_ssl_detection_pb2.py | MaximeGLegault/UI-Debug | f91e48cb9ffe11e78eafdd2c7a23c525d6cd6e97 | [
"MIT"
] | 2 | 2018-03-13T17:22:35.000Z | 2019-10-17T11:46:01.000Z | Communication/messages_robocup_ssl_detection_pb2.py | MaximeGLegault/UI-Debug | f91e48cb9ffe11e78eafdd2c7a23c525d6cd6e97 | [
"MIT"
] | 73 | 2016-05-30T04:52:41.000Z | 2019-06-21T03:11:49.000Z | Communication/messages_robocup_ssl_detection_pb2.py | MaximeGLegault/UI-Debug | f91e48cb9ffe11e78eafdd2c7a23c525d6cd6e97 | [
"MIT"
] | 11 | 2016-05-30T04:44:41.000Z | 2019-04-13T12:02:14.000Z | # Under MIT License, see LICENSE.txt
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: messages_robocup_ssl_detection.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... | 41.032028 | 1,061 | 0.737381 | 1,570 | 11,530 | 5.111465 | 0.107006 | 0.068785 | 0.034268 | 0.054829 | 0.736449 | 0.670031 | 0.650218 | 0.650218 | 0.638255 | 0.630031 | 0 | 0.046009 | 0.140416 | 11,530 | 280 | 1,062 | 41.178571 | 0.763697 | 0.032871 | 0 | 0.697211 | 1 | 0.003984 | 0.191079 | 0.145037 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.01992 | 0 | 0.01992 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8a955ddf4eb8066df9dc120c99da7b52c9ff1b87 | 152 | py | Python | neibor/apps.py | BrendaMwiza/neighborhood | 53a4476837324f745470d7aa914214f294be21c6 | [
"MIT"
] | null | null | null | neibor/apps.py | BrendaMwiza/neighborhood | 53a4476837324f745470d7aa914214f294be21c6 | [
"MIT"
] | 3 | 2019-11-03T18:33:57.000Z | 2021-09-08T01:24:33.000Z | neibor/apps.py | BrendaMwiza/neighborhood | 53a4476837324f745470d7aa914214f294be21c6 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.apps import AppConfig
class NeiborConfig(AppConfig):
name = 'neibor'
| 16.888889 | 39 | 0.730263 | 18 | 152 | 5.888889 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007874 | 0.164474 | 152 | 8 | 40 | 19 | 0.826772 | 0.138158 | 0 | 0 | 0 | 0 | 0.046512 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
8a9e1f75933d48a36a913ef4cda57e31a8f6cc8e | 96 | py | Python | src/ttss/Mode.py | tomekzaw/ttss | 8c8fdd9e1e3544010bb3d7fe5d9b2ff59e46f61a | [
"MIT"
] | null | null | null | src/ttss/Mode.py | tomekzaw/ttss | 8c8fdd9e1e3544010bb3d7fe5d9b2ff59e46f61a | [
"MIT"
] | null | null | null | src/ttss/Mode.py | tomekzaw/ttss | 8c8fdd9e1e3544010bb3d7fe5d9b2ff59e46f61a | [
"MIT"
] | null | null | null | from enum import Enum
class Mode(Enum):
DEPARTURES = 'departure'
ARRIVALS = 'arrival'
| 13.714286 | 28 | 0.677083 | 11 | 96 | 5.909091 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.229167 | 96 | 6 | 29 | 16 | 0.878378 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
8aad5b2d0822def37bd3f501b9c5fe5026ac71f8 | 52 | py | Python | hillfit/__init__.py | bilalshaikh42/hillfit | 355413512af17ce123ac2b771e23fe62d878854e | [
"MIT"
] | null | null | null | hillfit/__init__.py | bilalshaikh42/hillfit | 355413512af17ce123ac2b771e23fe62d878854e | [
"MIT"
] | null | null | null | hillfit/__init__.py | bilalshaikh42/hillfit | 355413512af17ce123ac2b771e23fe62d878854e | [
"MIT"
] | null | null | null | from .fitting import HillFit
__version__ = "0.1.3"
| 13 | 28 | 0.730769 | 8 | 52 | 4.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068182 | 0.153846 | 52 | 3 | 29 | 17.333333 | 0.704545 | 0 | 0 | 0 | 0 | 0 | 0.096154 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
8ab7adb346214653506dd8ae81e7c5a06b55d55b | 1,291 | py | Python | fragbuilder/basilisk_lib/Mocapy/MocapyExceptions.py | larsbratholm/fragbuilder | e16cbcb190403b5fef49811abd11d16d7ef7fb30 | [
"BSD-2-Clause"
] | 8 | 2015-04-11T17:43:13.000Z | 2021-12-02T10:18:45.000Z | fragbuilder/basilisk_lib/Mocapy/MocapyExceptions.py | larsbratholm/fragbuilder | e16cbcb190403b5fef49811abd11d16d7ef7fb30 | [
"BSD-2-Clause"
] | null | null | null | fragbuilder/basilisk_lib/Mocapy/MocapyExceptions.py | larsbratholm/fragbuilder | e16cbcb190403b5fef49811abd11d16d7ef7fb30 | [
"BSD-2-Clause"
] | 6 | 2015-04-01T07:18:26.000Z | 2021-04-24T11:11:18.000Z | # Mocapy: A parallelized Dynamic Bayesian Network toolkit
#
# Copyright (C) 2004 Thomas Hamelryck
#
# This library 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... | 30.023256 | 70 | 0.783114 | 158 | 1,291 | 6.398734 | 0.575949 | 0.080119 | 0.189911 | 0.05638 | 0.081108 | 0.055391 | 0 | 0 | 0 | 0 | 0 | 0.004587 | 0.155693 | 1,291 | 42 | 71 | 30.738095 | 0.922936 | 0.58017 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 1 | 0 | 0 | 1 | 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 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
8aba73b8e02feea78d1362cefdd1ed6854478c36 | 1,853 | py | Python | var/spack/repos/builtin/packages/py-filelock/package.py | varioustoxins/spack | cab0e4cb240f34891a6d753f3393e512f9a99e9a | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | var/spack/repos/builtin/packages/py-filelock/package.py | varioustoxins/spack | cab0e4cb240f34891a6d753f3393e512f9a99e9a | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 6 | 2022-01-08T08:41:11.000Z | 2022-03-14T19:28:07.000Z | var/spack/repos/builtin/packages/py-filelock/package.py | foeroyingur/spack | 5300cbbb2e569190015c72d0970d25425ea38647 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | # Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class PyFilelock(PythonPackage):
"""A platform-independent file lock for Python.
This packa... | 54.5 | 96 | 0.77496 | 179 | 1,853 | 8.005587 | 0.530726 | 0.00977 | 0.037683 | 0.033496 | 0.068388 | 0 | 0 | 0 | 0 | 0 | 0 | 0.312236 | 0.104695 | 1,853 | 33 | 97 | 56.151515 | 0.551537 | 0.212628 | 0 | 0 | 0 | 0 | 0.6363 | 0.510431 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.055556 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8aba9850c786140b6211e9fd7a9163f187300909 | 199 | py | Python | yield_next.py | joshavenue/python_notebook | 8d46ba88ef4f05dea6801364bc134edb981df02e | [
"Unlicense"
] | null | null | null | yield_next.py | joshavenue/python_notebook | 8d46ba88ef4f05dea6801364bc134edb981df02e | [
"Unlicense"
] | null | null | null | yield_next.py | joshavenue/python_notebook | 8d46ba88ef4f05dea6801364bc134edb981df02e | [
"Unlicense"
] | null | null | null | def gen():
yield 3 # Like return but one by one
yield 'wow'
yield -1
yield 1.2
x = gen()
print(next(x)) # Use next() function to go one by one
print(next(x))
print(next(x))
print(next(x)) | 15.307692 | 55 | 0.628141 | 39 | 199 | 3.205128 | 0.487179 | 0.288 | 0.32 | 0.24 | 0.24 | 0.24 | 0 | 0 | 0 | 0 | 0 | 0.025806 | 0.221106 | 199 | 13 | 56 | 15.307692 | 0.780645 | 0.316583 | 0 | 0.4 | 0 | 0 | 0.022388 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.1 | 0.4 | 0 | 0 | 0 | null | 1 | 1 | 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 | 3 |
8abbeaf85fe20109216100fa91b3ee91af6a398d | 2,416 | py | Python | doc/generate_autodoc_index.py | Lezval/horizon | 0e08f4f92bed0a07102c77be12969a095aac5a2a | [
"Apache-2.0"
] | 2 | 2015-05-18T13:50:20.000Z | 2015-05-18T14:47:08.000Z | doc/generate_autodoc_index.py | Lezval/horizon | 0e08f4f92bed0a07102c77be12969a095aac5a2a | [
"Apache-2.0"
] | null | null | null | doc/generate_autodoc_index.py | Lezval/horizon | 0e08f4f92bed0a07102c77be12969a095aac5a2a | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
"""Generates files for sphinx documentation using a simple Autodoc based
template.
To use, just run as a script:
$ python doc/generate_autodoc_index.py
"""
import os
base_dir = os.path.dirname(os.path.abspath(__file__))
RSTDIR = os.path.join(base_dir, "source", "sourcecode")
SRCS = {'dashb... | 35.014493 | 77 | 0.561258 | 275 | 2,416 | 4.84 | 0.392727 | 0.040571 | 0.030053 | 0.031555 | 0.038317 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001118 | 0.25952 | 2,416 | 68 | 78 | 35.529412 | 0.742873 | 0.076159 | 0 | 0 | 1 | 0 | 0.204478 | 0.045771 | 0 | 0 | 0 | 0.029412 | 0 | 0 | null | null | 0 | 0.022727 | null | null | 0.045455 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
76e1ac4521176e0f74fc909837b2547afdae25b0 | 4,268 | py | Python | Scripts/simulation/situations/visiting/ungreeted_player_visiting_npc_situation.py | velocist/TS4CheatsInfo | b59ea7e5f4bd01d3b3bd7603843d525a9c179867 | [
"Apache-2.0"
] | null | null | null | Scripts/simulation/situations/visiting/ungreeted_player_visiting_npc_situation.py | velocist/TS4CheatsInfo | b59ea7e5f4bd01d3b3bd7603843d525a9c179867 | [
"Apache-2.0"
] | null | null | null | Scripts/simulation/situations/visiting/ungreeted_player_visiting_npc_situation.py | velocist/TS4CheatsInfo | b59ea7e5f4bd01d3b3bd7603843d525a9c179867 | [
"Apache-2.0"
] | null | null | null | # uncompyle6 version 3.7.4
# Python bytecode 3.7 (3394)
# Decompiled from: Python 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)]
# Embedded file name: T:\InGame\Gameplay\Scripts\Server\situations\visiting\ungreeted_player_visiting_npc_situation.py
# Compiled at: 2016-09-08 04:20:41
# ... | 46.901099 | 269 | 0.756795 | 507 | 4,268 | 6.04931 | 0.331361 | 0.054777 | 0.026084 | 0.03717 | 0.251386 | 0.182589 | 0.182589 | 0.182589 | 0.1239 | 0.071731 | 0 | 0.020506 | 0.165886 | 4,268 | 91 | 270 | 46.901099 | 0.841011 | 0.0806 | 0 | 0.149254 | 0 | 0 | 0.058193 | 0.00536 | 0 | 0 | 0 | 0 | 0 | 1 | 0.208955 | false | 0.014925 | 0.134328 | 0.104478 | 0.537313 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 1 | 0 | 0 | 3 |
76e3ac759cb46610e24e4c7d2702c871cceef470 | 1,129 | py | Python | server/user/migrations/0001_initial.py | MetLee/hackergame | 571b5407e0644169a2f9b3907a0a1d93138ba436 | [
"MIT"
] | 48 | 2018-09-30T11:07:52.000Z | 2021-12-07T03:32:59.000Z | server/user/migrations/0001_initial.py | MetLee/hackergame | 571b5407e0644169a2f9b3907a0a1d93138ba436 | [
"MIT"
] | 100 | 2018-10-13T18:37:25.000Z | 2021-11-11T12:14:45.000Z | server/user/migrations/0001_initial.py | MetLee/hackergame | 571b5407e0644169a2f9b3907a0a1d93138ba436 | [
"MIT"
] | 11 | 2018-10-08T14:59:33.000Z | 2022-03-02T03:21:09.000Z | # Generated by Django 2.1.12 on 2019-10-04 09:32
import random
from django.db import migrations, models
def gen_hash():
return f'{random.randrange(10000):04d}'
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
... | 28.225 | 114 | 0.522586 | 104 | 1,129 | 5.615385 | 0.576923 | 0.205479 | 0.162671 | 0.196918 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030223 | 0.325952 | 1,129 | 39 | 115 | 28.948718 | 0.737188 | 0.040744 | 0 | 0 | 1 | 0 | 0.109158 | 0.026827 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0.068966 | 0.034483 | 0.275862 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 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 | 3 |
76eed02ced74012c47f21df319d4a40ffb5476f9 | 89 | py | Python | poke_django/trainer/apps.py | XrossFox/Poke-Django-Api-Test | 2e272b055fbeb633edb64fb2a3d6a720a50045f8 | [
"MIT"
] | 2 | 2016-10-21T21:52:08.000Z | 2021-10-19T02:19:43.000Z | poke_django/trainer/apps.py | XrossFox/Poke-Django-Api-Test | 2e272b055fbeb633edb64fb2a3d6a720a50045f8 | [
"MIT"
] | 2 | 2020-06-05T23:51:09.000Z | 2020-10-11T20:12:37.000Z | blackjack_trainer/trainer/apps.py | cberry216/blackjack-strategy-trainer | ec813a3dad9158aaf98f50dd61ab52b122c19382 | [
"MIT"
] | 4 | 2016-10-24T19:17:48.000Z | 2018-05-11T11:53:12.000Z | from django.apps import AppConfig
class TrainerConfig(AppConfig):
name = 'trainer'
| 14.833333 | 33 | 0.752809 | 10 | 89 | 6.7 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168539 | 89 | 5 | 34 | 17.8 | 0.905405 | 0 | 0 | 0 | 0 | 0 | 0.078652 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
76f27d8974c6c64d388588d2537e66e0ab436004 | 1,438 | py | Python | plynx/base/resource.py | khaxis/plynx | 20768470261fc5f29cb660c815c479b49765b2fe | [
"Apache-2.0"
] | 137 | 2018-11-14T07:13:33.000Z | 2020-02-03T12:32:35.000Z | plynx/base/resource.py | khaxis/plynx | 20768470261fc5f29cb660c815c479b49765b2fe | [
"Apache-2.0"
] | 10 | 2019-01-11T21:51:14.000Z | 2020-01-30T01:29:22.000Z | plynx/base/resource.py | khaxis/plynx | 20768470261fc5f29cb660c815c479b49765b2fe | [
"Apache-2.0"
] | 11 | 2018-11-14T15:05:54.000Z | 2019-09-09T15:45:49.000Z | """Templates for PLynx Resources and utils."""
from collections import namedtuple
from typing import Dict
from plynx.constants import NodeResources
PreviewObject = namedtuple('PreviewObject', ['fp', 'resource_id'])
def _force_decode(byte_array):
try:
return byte_array.decode("utf-8")
except UnicodeD... | 28.76 | 116 | 0.645341 | 158 | 1,438 | 5.759494 | 0.493671 | 0.02967 | 0.048352 | 0.048352 | 0.081319 | 0.081319 | 0.081319 | 0.081319 | 0 | 0 | 0 | 0.001845 | 0.246175 | 1,438 | 49 | 117 | 29.346939 | 0.837638 | 0.156467 | 0 | 0.166667 | 0 | 0 | 0.097458 | 0.019492 | 0 | 0 | 0 | 0.020408 | 0 | 1 | 0.2 | false | 0.066667 | 0.1 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
76f625a9aea0ade09d8888d306db58ebdb52aa50 | 4,866 | py | Python | tests/rubrik_polaris/sonar_scan_test.py | crestdatasystems/rubrik-polaris-sdk-for-python | ff0086ab7432db621a8ec89e1b5cba8d0caca7e2 | [
"MIT"
] | null | null | null | tests/rubrik_polaris/sonar_scan_test.py | crestdatasystems/rubrik-polaris-sdk-for-python | ff0086ab7432db621a8ec89e1b5cba8d0caca7e2 | [
"MIT"
] | null | null | null | tests/rubrik_polaris/sonar_scan_test.py | crestdatasystems/rubrik-polaris-sdk-for-python | ff0086ab7432db621a8ec89e1b5cba8d0caca7e2 | [
"MIT"
] | null | null | null | import os
import pytest
from conftest import util_load_json, BASE_URL
from rubrik_polaris.sonar.scan import ERROR_MESSAGES
FILE_TYPES = ['ANY', 'HITS', 'STALE', 'OPEN_ACCESS', 'STALE_HITS', 'OPEN_ACCESS_HITS']
@pytest.mark.parametrize("scan_name, resources, analyzer_groups", [
("", [{"snappableFid": "dummy_id"}]... | 43.061947 | 119 | 0.728935 | 648 | 4,866 | 5.050926 | 0.143519 | 0.065995 | 0.098992 | 0.073327 | 0.806599 | 0.743049 | 0.70608 | 0.68897 | 0.597311 | 0.53865 | 0 | 0.005387 | 0.160707 | 4,866 | 112 | 120 | 43.446429 | 0.796033 | 0.107069 | 0 | 0.298507 | 0 | 0 | 0.169723 | 0.076164 | 0 | 0 | 0 | 0 | 0.089552 | 1 | 0.089552 | false | 0 | 0.149254 | 0 | 0.238806 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 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 | 3 |
76f926951e7b3191305fab755280da429f174f8f | 1,403 | py | Python | user/migrations/0004_auto_20190705_1454.py | BreakUnrealGod/TanTan | 043454a76ee27d61e7d9aede7818f9127e34aaf2 | [
"MIT"
] | null | null | null | user/migrations/0004_auto_20190705_1454.py | BreakUnrealGod/TanTan | 043454a76ee27d61e7d9aede7818f9127e34aaf2 | [
"MIT"
] | 10 | 2019-12-04T23:38:04.000Z | 2022-02-10T09:53:59.000Z | swiper/user/migrations/0004_auto_20190705_1454.py | lijiaqipy/test1 | ab628a794ab67e153b929c819c876c5a676ab068 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.3 on 2019-07-05 14:54
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('user', '0003_auto_20190704_1547'),
]
operations = [
migrations.RenameField(
model_name='user',
old_name='birth_mohth... | 31.886364 | 144 | 0.496793 | 146 | 1,403 | 4.636986 | 0.445205 | 0.079764 | 0.076809 | 0.171344 | 0.711965 | 0.711965 | 0.599705 | 0.599705 | 0.463811 | 0.463811 | 0 | 0.044284 | 0.307912 | 1,403 | 43 | 145 | 32.627907 | 0.652935 | 0.032074 | 0 | 0.648649 | 1 | 0 | 0.135693 | 0.016962 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.027027 | 0 | 0.108108 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 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 | 3 |
0a075be8805805fed40a5a0838052f57b229cf58 | 238 | py | Python | AtCoder/ABC029/C.py | takaaki82/Java-Lessons | c4f11462bf84c091527dde5f25068498bfb2cc49 | [
"MIT"
] | 1 | 2018-11-25T04:15:45.000Z | 2018-11-25T04:15:45.000Z | AtCoder/ABC029/C.py | takaaki82/Java-Lessons | c4f11462bf84c091527dde5f25068498bfb2cc49 | [
"MIT"
] | null | null | null | AtCoder/ABC029/C.py | takaaki82/Java-Lessons | c4f11462bf84c091527dde5f25068498bfb2cc49 | [
"MIT"
] | 2 | 2018-08-08T13:01:14.000Z | 2018-11-25T12:38:36.000Z | N = int(input())
def brute_force(s, remain):
if remain == 0:
print(s)
else:
brute_force(s + "a", remain - 1)
brute_force(s + "b", remain - 1)
brute_force(s + "c", remain - 1)
brute_force("", N)
| 17 | 40 | 0.508403 | 35 | 238 | 3.314286 | 0.457143 | 0.431034 | 0.37931 | 0.439655 | 0.310345 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024691 | 0.319328 | 238 | 13 | 41 | 18.307692 | 0.691358 | 0 | 0 | 0 | 0 | 0 | 0.012605 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.111111 | 0.111111 | 0 | 0 | 0 | null | 1 | 1 | 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 | 3 |
0a0766ccdfab40edb3131b5ef4903ea06f8f355a | 396 | py | Python | dazu/training_data/reader.py | Dazu-io/dazu | 064a7fd91961bdf372868e7b0a106102e9fc058b | [
"Apache-2.0"
] | 2 | 2020-03-14T18:17:08.000Z | 2020-07-10T01:05:52.000Z | dazu/training_data/reader.py | Dazu-io/dazu | 064a7fd91961bdf372868e7b0a106102e9fc058b | [
"Apache-2.0"
] | 41 | 2020-01-20T22:30:08.000Z | 2020-02-21T19:46:52.000Z | dazu/training_data/reader.py | Dazu-io/dazu | 064a7fd91961bdf372868e7b0a106102e9fc058b | [
"Apache-2.0"
] | 3 | 2019-03-15T17:56:04.000Z | 2020-01-17T20:29:37.000Z | from abc import abstractmethod
from typing import Dict
from dazu.config import DazuConfig
from dazu.registry import Module
from dazu.typing import TrainingData
class Reader(Module):
@classmethod
@abstractmethod
def load(cls, config: DazuConfig) -> TrainingData:
pass
@classmethod
def vali... | 22 | 67 | 0.729798 | 47 | 396 | 6.12766 | 0.510638 | 0.083333 | 0.131944 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.207071 | 396 | 17 | 68 | 23.294118 | 0.917197 | 0 | 0 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0.076923 | 0.384615 | 0.076923 | 0.692308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 1 | 0 | 0 | 3 |
0a14f4c1f0df038c2f10a10238e8e6670db20514 | 1,388 | py | Python | src/ZServer/Zope2/Startup/__init__.py | datakurre/ZServer | 9aa87900463229350f691f1c8877c6e8f13538c8 | [
"ZPL-2.1"
] | 1 | 2019-06-14T15:39:18.000Z | 2019-06-14T15:39:18.000Z | src/ZServer/Zope2/Startup/__init__.py | datakurre/ZServer | 9aa87900463229350f691f1c8877c6e8f13538c8 | [
"ZPL-2.1"
] | null | null | null | src/ZServer/Zope2/Startup/__init__.py | datakurre/ZServer | 9aa87900463229350f691f1c8877c6e8f13538c8 | [
"ZPL-2.1"
] | null | null | null | ##############################################################################
#
# Copyright (c) 2002 Zope Foundation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOF... | 31.545455 | 78 | 0.669308 | 155 | 1,388 | 5.954839 | 0.625806 | 0.048754 | 0.030336 | 0.049837 | 0.078007 | 0.078007 | 0 | 0 | 0 | 0 | 0 | 0.007732 | 0.161383 | 1,388 | 43 | 79 | 32.27907 | 0.785223 | 0.416427 | 0 | 0.2 | 0 | 0 | 0.004688 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | true | 0.1 | 0.45 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 3 |
0a45e19210e3f8fd15ff3b6f8f8ce4c6ca714738 | 16 | py | Python | chabie/__init__.py | TatchNicolas/chabie | 6650da8d34341e181a3ae3d47e76c024bcc0a8dc | [
"MIT"
] | 2 | 2018-12-04T01:40:54.000Z | 2019-01-29T05:05:20.000Z | chabie/__init__.py | TatchNicolas/chabie | 6650da8d34341e181a3ae3d47e76c024bcc0a8dc | [
"MIT"
] | 3 | 2020-03-24T16:28:22.000Z | 2021-02-02T22:06:47.000Z | chabie/__init__.py | TatchNicolas/chabie | 6650da8d34341e181a3ae3d47e76c024bcc0a8dc | [
"MIT"
] | null | null | null | name = 'chabie'
| 8 | 15 | 0.625 | 2 | 16 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1875 | 16 | 1 | 16 | 16 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0.375 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0a49f25c6cb66c0881a569ced7bd0a0345534fa0 | 329 | py | Python | awx/main/routing.py | gitEdouble/awx | 5885654405ccaf465f08df4db998a6dafebd9b4d | [
"Apache-2.0"
] | 2 | 2018-11-12T18:52:24.000Z | 2020-05-22T18:41:21.000Z | awx/main/routing.py | gitEdouble/awx | 5885654405ccaf465f08df4db998a6dafebd9b4d | [
"Apache-2.0"
] | 4 | 2020-04-29T23:03:16.000Z | 2022-03-01T23:56:09.000Z | awx/main/routing.py | gitEdouble/awx | 5885654405ccaf465f08df4db998a6dafebd9b4d | [
"Apache-2.0"
] | 9 | 2019-05-11T00:03:30.000Z | 2021-07-07T16:09:17.000Z | from channels.routing import route
channel_routing = [
route("websocket.connect", "awx.main.consumers.ws_connect", path=r'^/websocket/$'),
route("websocket.disconnect", "awx.main.consumers.ws_disconnect", path=r'^/websocket/$'),
route("websocket.receive", "awx.main.consumers.ws_receive", path=r'^/websocke... | 36.555556 | 93 | 0.711246 | 40 | 329 | 5.75 | 0.4 | 0.182609 | 0.208696 | 0.234783 | 0.243478 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.094225 | 329 | 8 | 94 | 41.125 | 0.771812 | 0 | 0 | 0 | 0 | 0 | 0.556231 | 0.273556 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0a4a7c2e881ce42dc6e0b95e826eb31368ac6e12 | 2,232 | py | Python | py_client/aidm/aidm_track_closure_classes.py | sma-software/openviriato.algorithm-platform.py-client | 73d4cf89aa6f4d02ab15b5504d92107848742325 | [
"Apache-2.0"
] | 2 | 2021-06-21T06:50:29.000Z | 2021-06-30T15:58:02.000Z | py_client/aidm/aidm_track_closure_classes.py | sma-software/openviriato.algorithm-platform.py-client | 73d4cf89aa6f4d02ab15b5504d92107848742325 | [
"Apache-2.0"
] | null | null | null | py_client/aidm/aidm_track_closure_classes.py | sma-software/openviriato.algorithm-platform.py-client | 73d4cf89aa6f4d02ab15b5504d92107848742325 | [
"Apache-2.0"
] | null | null | null | from py_client.aidm.aidm_base_classes import _HasDebugString
from py_client.aidm.aidm_time_window_classes import TimeWindow
class AlgorithmNodeTrackClosure(_HasDebugString):
__node_id: int
__node_track_id: int
__closure_time_window: TimeWindow
def __init__(self, debug_string: str, node_id: i... | 31.885714 | 110 | 0.697133 | 281 | 2,232 | 4.846975 | 0.103203 | 0.139501 | 0.22467 | 0.092511 | 0.717327 | 0.629222 | 0.420705 | 0.299559 | 0.23348 | 0.23348 | 0 | 0 | 0.247312 | 2,232 | 69 | 111 | 32.347826 | 0.810714 | 0 | 0 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.036364 | 0.145455 | 0.545455 | 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 | 1 | 1 | 0 | 0 | 3 |
0a6077624e8a5eec68b3d6b8f51513c0ebaf50fb | 1,280 | py | Python | Android/parser/ui/images/encode_bitmaps.py | Bravest-Ptt/Useful-Shell | 75016ff44f218afce6b885af7b23fb801a7ef2d4 | [
"Apache-2.0"
] | 1 | 2020-05-31T08:46:45.000Z | 2020-05-31T08:46:45.000Z | Android/parser/ui/images/encode_bitmaps.py | Bravest-Ptt/Useful-Shell | 75016ff44f218afce6b885af7b23fb801a7ef2d4 | [
"Apache-2.0"
] | null | null | null | Android/parser/ui/images/encode_bitmaps.py | Bravest-Ptt/Useful-Shell | 75016ff44f218afce6b885af7b23fb801a7ef2d4 | [
"Apache-2.0"
] | null | null | null |
"""
This is a way to save the startup time when running img2py on lots of
files...
"""
import sys
from wx.tools import img2py
command_lines = [
" -F -n action_clean_history action_clean_history.png images.py",
"-a -F -n action_new action_new.png ... | 42.666667 | 92 | 0.489844 | 156 | 1,280 | 3.762821 | 0.339744 | 0.037479 | 0.206133 | 0.204429 | 0.32368 | 0.32368 | 0.27598 | 0.122658 | 0 | 0 | 0 | 0.00406 | 0.422656 | 1,280 | 29 | 93 | 44.137931 | 0.790257 | 0.060938 | 0 | 0 | 0 | 0 | 0.782718 | 0.057047 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.105263 | 0 | 0.105263 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 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 | 3 |
0a6611331aec5272182cb56364fda31f43b05983 | 11,288 | py | Python | sdk/python/pulumi_alicloud/apigateway/vpc_access.py | pulumi/pulumi-alicloud | 9c34d84b4588a7c885c6bec1f03b5016e5a41683 | [
"ECL-2.0",
"Apache-2.0"
] | 42 | 2019-03-18T06:34:37.000Z | 2022-03-24T07:08:57.000Z | sdk/python/pulumi_alicloud/apigateway/vpc_access.py | pulumi/pulumi-alicloud | 9c34d84b4588a7c885c6bec1f03b5016e5a41683 | [
"ECL-2.0",
"Apache-2.0"
] | 152 | 2019-04-15T21:03:44.000Z | 2022-03-29T18:00:57.000Z | sdk/python/pulumi_alicloud/apigateway/vpc_access.py | pulumi/pulumi-alicloud | 9c34d84b4588a7c885c6bec1f03b5016e5a41683 | [
"ECL-2.0",
"Apache-2.0"
] | 3 | 2020-08-26T17:30:07.000Z | 2021-07-05T01:37:45.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import... | 37.131579 | 134 | 0.61118 | 1,362 | 11,288 | 4.84141 | 0.110132 | 0.093418 | 0.087049 | 0.070064 | 0.751896 | 0.716106 | 0.691386 | 0.648165 | 0.640431 | 0.62663 | 0 | 0.001601 | 0.280829 | 11,288 | 303 | 135 | 37.254125 | 0.810668 | 0.271793 | 0 | 0.602273 | 1 | 0 | 0.079619 | 0.005158 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153409 | false | 0.005682 | 0.028409 | 0 | 0.272727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 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 | 3 |
6a4f45597597bd19a6b6e1eddcb0eec72e2d136f | 11,318 | py | Python | polygon/library.py | rayeef/polygon | b69d614c8f1d83bc0b07ea705fa781441a70fc9a | [
"Apache-2.0"
] | null | null | null | polygon/library.py | rayeef/polygon | b69d614c8f1d83bc0b07ea705fa781441a70fc9a | [
"Apache-2.0"
] | null | null | null | polygon/library.py | rayeef/polygon | b69d614c8f1d83bc0b07ea705fa781441a70fc9a | [
"Apache-2.0"
] | null | null | null | from definitions import LastTrade
from definitions import LastQuote
from definitions import HistTrade
from definitions import Quote
from definitions import Aggregate
from definitions import Company
from definitions import CompanyV3
from definitions import Address
from definitions import Symbol
from definitions... | 50.981982 | 114 | 0.848295 | 646 | 11,318 | 14.856037 | 0.185759 | 0.162551 | 0.227571 | 0.008544 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003088 | 0.113006 | 11,318 | 222 | 115 | 50.981982 | 0.952884 | 0.00645 | 0 | 0 | 0 | 0 | 0.218563 | 0.168572 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.495283 | 0 | 0.495283 | 0 | 0 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
6a71cd9a3a4a72b42c9c16579ec0689070b5b326 | 170 | py | Python | utils/convert_datetime.py | huynhminhtruong/py | 6f90423a62103b2bd28daa0d5a27b4a25bc318c8 | [
"MIT"
] | null | null | null | utils/convert_datetime.py | huynhminhtruong/py | 6f90423a62103b2bd28daa0d5a27b4a25bc318c8 | [
"MIT"
] | null | null | null | utils/convert_datetime.py | huynhminhtruong/py | 6f90423a62103b2bd28daa0d5a27b4a25bc318c8 | [
"MIT"
] | null | null | null | import datetime as dt
date_time_str = '2019-11-04T12:12:51Z'
date_time_obj = dt.datetime.strptime(date_time_str, '%Y-%m-%dT%H:%M:%SZ')
print(date_time_obj.timestamp()) | 24.285714 | 73 | 0.741176 | 32 | 170 | 3.6875 | 0.625 | 0.271186 | 0.186441 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.089744 | 0.082353 | 170 | 7 | 74 | 24.285714 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6a7c7c04c0b9e8643f9cb05da0c380ed19234a92 | 370 | py | Python | funboost/utils/dependency_packages/mongomq/utils.py | DJMIN/funboost | 7570ca2909bb0b44a1080f5f98aa96c86d3da9d4 | [
"Apache-2.0"
] | 333 | 2019-08-08T10:25:27.000Z | 2022-03-30T07:32:04.000Z | funboost/utils/dependency_packages/mongomq/utils.py | mooti-barry/funboost | 2cd9530e2c4e5a52fc921070d243d402adbc3a0e | [
"Apache-2.0"
] | 38 | 2020-04-24T01:47:51.000Z | 2021-12-20T07:22:15.000Z | funboost/utils/dependency_packages/mongomq/utils.py | mooti-barry/funboost | 2cd9530e2c4e5a52fc921070d243d402adbc3a0e | [
"Apache-2.0"
] | 84 | 2019-08-09T11:51:14.000Z | 2022-03-02T06:29:09.000Z | def enum(name, *sequential, **named):
values = dict(zip(sequential, range(len(sequential))), **named)
# NOTE: Yes, we *really* want to cast using str() here.
# On Python 2 type() requires a byte string (which is str() on Python 2).
# On Python 3 it does not matter, so we'll use str(), which acts as
... | 46.25 | 77 | 0.635135 | 60 | 370 | 3.916667 | 0.716667 | 0.102128 | 0.076596 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010381 | 0.218919 | 370 | 8 | 78 | 46.25 | 0.802768 | 0.540541 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
6a91c867376436aedff1c1b17719fe89d54add01 | 194 | py | Python | resdk/shortcuts/__init__.py | tristanbrown/resolwe-bio-py | c911defde8a5e7e902ad1adf4f9e480f17002c18 | [
"Apache-2.0"
] | 4 | 2016-09-28T16:00:05.000Z | 2018-08-16T16:14:10.000Z | resdk/shortcuts/__init__.py | tristanbrown/resolwe-bio-py | c911defde8a5e7e902ad1adf4f9e480f17002c18 | [
"Apache-2.0"
] | 229 | 2016-03-28T19:41:00.000Z | 2022-03-16T15:02:15.000Z | resdk/shortcuts/__init__.py | tristanbrown/resolwe-bio-py | c911defde8a5e7e902ad1adf4f9e480f17002c18 | [
"Apache-2.0"
] | 18 | 2016-03-10T16:11:57.000Z | 2021-06-01T10:01:49.000Z | """.. Ignore pydocstyle D400.
=========
Shortcuts
=========
Shortcut mixin classes
======================
.. autoclass:: resdk.shortcuts.collection.CollectionRelationsMixin
:members:
"""
| 13.857143 | 66 | 0.582474 | 13 | 194 | 8.692308 | 0.923077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017544 | 0.118557 | 194 | 13 | 67 | 14.923077 | 0.643275 | 0.953608 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6a9a56b22b45a784db590179a8a9211729bf5133 | 50 | py | Python | env/Lib/site-packages/frccontrol/version.py | DiMino-0/Rapid-React-2022-Team810 | 05c61453fce7d9762b119dce4326bbdb1cb8688b | [
"BSD-3-Clause"
] | null | null | null | env/Lib/site-packages/frccontrol/version.py | DiMino-0/Rapid-React-2022-Team810 | 05c61453fce7d9762b119dce4326bbdb1cb8688b | [
"BSD-3-Clause"
] | 5 | 2022-02-13T14:38:04.000Z | 2022-02-15T00:13:07.000Z | env/Lib/site-packages/frccontrol/version.py | DiMino-0/Rapid-React-2022-Team810 | 05c61453fce7d9762b119dce4326bbdb1cb8688b | [
"BSD-3-Clause"
] | 4 | 2022-02-04T22:58:27.000Z | 2022-02-14T19:29:18.000Z | # Autogenerated by setup.py
__version__ = "2022.9" | 25 | 27 | 0.76 | 7 | 50 | 4.857143 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113636 | 0.12 | 50 | 2 | 28 | 25 | 0.659091 | 0.5 | 0 | 0 | 1 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6aa102af37c99a906bbbf0f58ec1ef62d9b40076 | 378 | py | Python | src/pyglue/DocStrings/ExceptionMissingFile.py | omenos/OpenColorIO | 7316c3be20752278924dd3f213bff297ffb63a14 | [
"BSD-3-Clause"
] | 7 | 2015-07-01T03:19:43.000Z | 2021-03-27T11:02:16.000Z | src/pyglue/DocStrings/ExceptionMissingFile.py | dictoon/OpenColorIO | 64adcad300adfd166280d2e7b1fb5c3ce7dca482 | [
"BSD-3-Clause"
] | null | null | null | src/pyglue/DocStrings/ExceptionMissingFile.py | dictoon/OpenColorIO | 64adcad300adfd166280d2e7b1fb5c3ce7dca482 | [
"BSD-3-Clause"
] | 2 | 2019-03-05T20:43:59.000Z | 2019-11-11T20:35:55.000Z |
class ExceptionMissingFile:
"""
An exception class for errors detected at runtime, thrown when OCIO cannot
find a file that is expected to exist. This is provided as a custom type to
distinguish cases where one wants to continue looking for missing files,
but wants to properly fail for other error ... | 31.5 | 79 | 0.716931 | 54 | 378 | 4.944444 | 0.833333 | 0.052434 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.246032 | 378 | 11 | 80 | 34.363636 | 0.936842 | 0.73545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.333333 | 0 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
6aacdfa486708ed8b617784dc9cd04599014bd8e | 251 | py | Python | WEEKS/CD_Sata-Structures/general/practice/PYTHON/37 - arrayMaxConsecutiveSum.py | webdevhub42/Lambda | b04b84fb5b82fe7c8b12680149e25ae0d27a0960 | [
"MIT"
] | null | null | null | WEEKS/CD_Sata-Structures/general/practice/PYTHON/37 - arrayMaxConsecutiveSum.py | webdevhub42/Lambda | b04b84fb5b82fe7c8b12680149e25ae0d27a0960 | [
"MIT"
] | null | null | null | WEEKS/CD_Sata-Structures/general/practice/PYTHON/37 - arrayMaxConsecutiveSum.py | webdevhub42/Lambda | b04b84fb5b82fe7c8b12680149e25ae0d27a0960 | [
"MIT"
] | null | null | null | def arrayMaxConsecutiveSum(inputArray, k):
arr = [sum(inputArray[:k])]
for i in range(1, len(inputArray) - (k - 1)):
arr.append(arr[i - 1] - inputArray[i - 1] + inputArray[i + k - 1])
sort_arr = sorted(arr)
return sort_arr[-1]
| 35.857143 | 74 | 0.601594 | 37 | 251 | 4.027027 | 0.432432 | 0.221477 | 0.161074 | 0.174497 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030928 | 0.227092 | 251 | 6 | 75 | 41.833333 | 0.737113 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6ad298a145a3e0b10594c4465cca34f885db1f68 | 147 | py | Python | mah_tags/apps.py | mahbd/brur-payment | cb9812e1d2f8c22c7015708ca9bb4fc05bfb1452 | [
"MIT"
] | null | null | null | mah_tags/apps.py | mahbd/brur-payment | cb9812e1d2f8c22c7015708ca9bb4fc05bfb1452 | [
"MIT"
] | null | null | null | mah_tags/apps.py | mahbd/brur-payment | cb9812e1d2f8c22c7015708ca9bb4fc05bfb1452 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class MahTagsConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'mah_tags'
| 21 | 56 | 0.761905 | 18 | 147 | 6.055556 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.14966 | 147 | 6 | 57 | 24.5 | 0.872 | 0 | 0 | 0 | 0 | 0 | 0.251701 | 0.197279 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
6ad58fa69ec62fd766239b79d36be41ba2a0bd77 | 70,155 | py | Python | model/SDE/s.Imp-em-numpy-mp-net v2-average.py | neulbo-187/Cucker-Smale-Model | e77e8d804be440999c0e410a41364a992b8fcc75 | [
"MIT"
] | 2 | 2021-03-08T11:23:58.000Z | 2021-04-11T11:10:08.000Z | model/SDE/s.Imp-em-numpy-mp-net v2-average.py | neulbo-187/Cucker-Smale-Model | e77e8d804be440999c0e410a41364a992b8fcc75 | [
"MIT"
] | null | null | null | model/SDE/s.Imp-em-numpy-mp-net v2-average.py | neulbo-187/Cucker-Smale-Model | e77e8d804be440999c0e410a41364a992b8fcc75 | [
"MIT"
] | null | null | null |
#%%
import numpy as np
from scipy import integrate
import matplotlib.pyplot as plt
import matplotlib as mpl
import time
from matplotlib import animation, rc
from IPython.display import HTML
from matplotlib.ticker import ScalarFormatter
import matplotlib.gridspec as gridspec
from matplotlib.ticker import MaxNLocato... | 72.850467 | 10,027 | 0.536598 | 15,597 | 70,155 | 2.377188 | 0.073604 | 0.156836 | 0.013755 | 0.011517 | 0.441648 | 0.308089 | 0.241794 | 0.211775 | 0.200637 | 0.186153 | 0 | 0.22183 | 0.20861 | 70,155 | 962 | 10,028 | 72.926195 | 0.445983 | 0.106678 | 0 | 0.164486 | 0 | 0 | 0.019752 | 0.002835 | 0 | 0 | 0 | 0 | 0 | 1 | 0.031776 | false | 0 | 0.031776 | 0.001869 | 0.082243 | 0.054206 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6ad8a755033ecac454450a7695caf96f0b658d20 | 478 | py | Python | codigo/Live199/exemplo_01.py | z4r4tu5tr4/live-de-quarta | 1d12adb83f2afe306faf52e47edacef714c50574 | [
"MIT"
] | 2 | 2017-06-05T23:32:00.000Z | 2017-06-08T01:01:35.000Z | codigo/Live199/exemplo_01.py | z4r4tu5tr4/live-de-quarta | 1d12adb83f2afe306faf52e47edacef714c50574 | [
"MIT"
] | null | null | null | codigo/Live199/exemplo_01.py | z4r4tu5tr4/live-de-quarta | 1d12adb83f2afe306faf52e47edacef714c50574 | [
"MIT"
] | null | null | null | import os
if os.name == 'nt':
filename = r'\\files\\pasta_0\\arquivo_1.txt'
else:
filename = 'files/pasta_0/arquivo_1.txt'
with open(filename) as file:
print(file.read())
from pathlib import Path
path_atual = Path()
pasta_0 = path_atual / 'files' / 'pasta_0'
arquivo_0 = pasta_0 / 'arquivo_0.txt'
arqu... | 17.703704 | 49 | 0.700837 | 79 | 478 | 3.974684 | 0.379747 | 0.229299 | 0.207006 | 0.229299 | 0.324841 | 0.140127 | 0 | 0 | 0 | 0 | 0 | 0.042394 | 0.161088 | 478 | 26 | 50 | 18.384615 | 0.740648 | 0.112971 | 0 | 0 | 0 | 0 | 0.203349 | 0.138756 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0.0625 | 0 | 0 | 0 | null | 1 | 1 | 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 | 3 |
6ada06bcfa9bbdada08caf10d98edb9ed5f71ce8 | 4,514 | py | Python | test/tests/augassign.py | jonco3/dynamic | 76d10b012a7860595c7d9abbdf542c7d8f2a4d53 | [
"MIT"
] | 1 | 2020-11-26T23:37:19.000Z | 2020-11-26T23:37:19.000Z | test/tests/augassign.py | jonco3/dynamic | 76d10b012a7860595c7d9abbdf542c7d8f2a4d53 | [
"MIT"
] | null | null | null | test/tests/augassign.py | jonco3/dynamic | 76d10b012a7860595c7d9abbdf542c7d8f2a4d53 | [
"MIT"
] | null | null | null | # output: ok
input = [10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10]
expected = [11, 8, 30, 2.5, 2, 4, 10000000, 20, 2, 2, 14, 15]
def test(v):
v[0] += 1
v[1] -= 2
v[2] *= 3
v[3] /= 4
v[4] //= 5
v[5] %= 6
v[6] **= 7
v[7] <<= 1
v[8] >>= 2
v[9] &= 3
v[10] ^= 4
v[11] |= 5... | 23.268041 | 61 | 0.584626 | 610 | 4,514 | 4.02459 | 0.162295 | 0.14664 | 0.176782 | 0.10998 | 0.638697 | 0.626069 | 0.614664 | 0.561711 | 0.195112 | 0.195112 | 0 | 0.03392 | 0.294639 | 4,514 | 193 | 62 | 23.388601 | 0.737123 | 0.0144 | 0 | 0.371257 | 0 | 0 | 0.005848 | 0 | 0 | 0 | 0 | 0 | 0.083832 | 1 | 0.281437 | false | 0 | 0 | 0.11976 | 0.568862 | 0.005988 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 1 | 0 | 0 | 3 |
6aef32d96b642f7e1027413f538b1e4a32088548 | 458 | py | Python | xmlUtilLib.py | fermi-lat/xmlUtil | b1dc221207394c6e31ce3b91d95a67c0eeb8ab56 | [
"BSD-3-Clause"
] | null | null | null | xmlUtilLib.py | fermi-lat/xmlUtil | b1dc221207394c6e31ce3b91d95a67c0eeb8ab56 | [
"BSD-3-Clause"
] | null | null | null | xmlUtilLib.py | fermi-lat/xmlUtil | b1dc221207394c6e31ce3b91d95a67c0eeb8ab56 | [
"BSD-3-Clause"
] | null | null | null | # $Header: /nfs/slac/g/glast/ground/cvs/GlastRelease-scons/xmlUtil/xmlUtilLib.py,v 1.2 2009/08/06 23:59:48 jrb Exp $
def generate(env, **kw):
if not kw.get('depsOnly', 0):
env.Tool('addLibrary', library = ['xmlUtil'])
if env['PLATFORM'] == 'win32':
env.Tool('findPkgPath', package = 'xmlUtil')
env... | 35.230769 | 116 | 0.646288 | 64 | 458 | 4.625 | 0.6875 | 0.118243 | 0.114865 | 0.162162 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052083 | 0.161572 | 458 | 12 | 117 | 38.166667 | 0.71875 | 0.248908 | 0 | 0 | 1 | 0 | 0.289474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6af0bb5cfa1c474d50abf3d422c13b8bfda0c5b4 | 509 | py | Python | FenrTech SOLUTION-1/Image2Text/ImToStr1.py | MdNazmul9/PYTHON_CODE_ALL | 75046943f1bb6b4a010955b23bfe3f01cd08a473 | [
"MIT"
] | null | null | null | FenrTech SOLUTION-1/Image2Text/ImToStr1.py | MdNazmul9/PYTHON_CODE_ALL | 75046943f1bb6b4a010955b23bfe3f01cd08a473 | [
"MIT"
] | null | null | null | FenrTech SOLUTION-1/Image2Text/ImToStr1.py | MdNazmul9/PYTHON_CODE_ALL | 75046943f1bb6b4a010955b23bfe3f01cd08a473 | [
"MIT"
] | null | null | null | import cv2
import pytesseract
#pytesseract.pytesseract.tesseract_cmd = r'C:\\Program Files\\Tesseract-OCR\\tesseract.exe'
#pytesseract.pytesseract.tesseract_cmd = 'C:\\Program Files (x86)\\Tesseract-OCR\\tesseract.exe'
pytesseract.pytesseract.tesseract_cmd = r'C:\Users\User\AppData\Local\Tesseract-OCR\tesseract.exe... | 39.153846 | 99 | 0.766208 | 68 | 509 | 5.632353 | 0.397059 | 0.229765 | 0.24282 | 0.266319 | 0.610966 | 0.610966 | 0.511749 | 0.511749 | 0 | 0 | 0 | 0.01073 | 0.084479 | 509 | 13 | 100 | 39.153846 | 0.811159 | 0.363458 | 0 | 0.444444 | 0 | 0 | 0.279743 | 0.176849 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.222222 | 0.222222 | 0 | 0 | 0 | null | 1 | 1 | 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 | 3 |
0a7b1cd2b2a1d357fd02ba117bde72a44afd1fa3 | 385 | py | Python | moban_tornado/__init__.py | PrajwalM2212/moban-tornado | c5279e7a643d11ff0881496a3b770ef2507d797a | [
"MIT"
] | 2 | 2019-02-24T11:59:19.000Z | 2019-02-24T11:59:19.000Z | moban_tornado/__init__.py | PrajwalM2212/moban-tornado | c5279e7a643d11ff0881496a3b770ef2507d797a | [
"MIT"
] | 3 | 2019-02-24T21:21:41.000Z | 2020-05-29T15:01:12.000Z | moban_tornado/__init__.py | moremoban/moban-tornado | c5279e7a643d11ff0881496a3b770ef2507d797a | [
"MIT"
] | null | null | null | from lml.plugin import PluginInfo, PluginInfoChain
import moban.constants as constants
from moban_tornado._version import __version__
from moban_tornado._version import __author__
PluginInfoChain(__name__).add_a_plugin_instance(
PluginInfo(
constants.TEMPLATE_ENGINE_EXTENSION,
"%s.engine.EngineTor... | 27.5 | 50 | 0.758442 | 41 | 385 | 6.512195 | 0.536585 | 0.067416 | 0.11985 | 0.172285 | 0.217228 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.161039 | 385 | 13 | 51 | 29.615385 | 0.826625 | 0 | 0 | 0 | 0 | 0 | 0.096104 | 0.05974 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.363636 | 0 | 0.363636 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
0a8a59fbc9f9de431d6267755346bfe6e2daa160 | 767 | py | Python | strikethrough_removal/src/__init__.py | RaphaelaHeil/strikethrough-removal-cyclegans | 91555b22cac6b6a379597aa94c23bdf02c9970a7 | [
"MIT"
] | 3 | 2021-08-30T12:37:14.000Z | 2022-02-09T16:07:14.000Z | strikethrough_removal/src/__init__.py | ektavats/strikethrough-removal-cyclegans | 35456619ff87fa010d2c161cff774af02142bae9 | [
"MIT"
] | null | null | null | strikethrough_removal/src/__init__.py | ektavats/strikethrough-removal-cyclegans | 35456619ff87fa010d2c161cff774af02142bae9 | [
"MIT"
] | 1 | 2022-01-25T10:30:54.000Z | 2022-01-25T10:30:54.000Z | from .utils import PadToSize, composeTransformations, getDiscriminatorModels, getGeneratorModels, \
getPretrainedAuxiliaryLossModel
from .metrics import calculateRmse, calculateF1Score
from .dataset import StruckCleanDataset, ValidationStruckCleanDataset, TestDataset
from .configuration import StrikeThroughType, Ex... | 69.727273 | 117 | 0.801825 | 45 | 767 | 13.577778 | 0.488889 | 0.101473 | 0.173486 | 0.232406 | 0.595745 | 0.261866 | 0 | 0 | 0 | 0 | 0 | 0.002933 | 0.110821 | 767 | 10 | 118 | 76.7 | 0.892962 | 0 | 0 | 0 | 0 | 0 | 0.349413 | 0.134289 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.444444 | 0 | 0.444444 | 0 | 0 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
0a91db1805ccec96b3f71337475826f22f3896b4 | 283 | py | Python | attendees/persons/apps.py | xjlin0/attendees32 | 25913c75ea8d916dcb065a23f2fa68bea558f77c | [
"MIT"
] | null | null | null | attendees/persons/apps.py | xjlin0/attendees32 | 25913c75ea8d916dcb065a23f2fa68bea558f77c | [
"MIT"
] | 5 | 2022-01-21T03:26:40.000Z | 2022-02-04T17:32:16.000Z | attendees/persons/apps.py | xjlin0/attendees32 | 25913c75ea8d916dcb065a23f2fa68bea558f77c | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class PersonsConfig(AppConfig):
name = "attendees.persons"
def ready(self):
# importing signal handlers # https://docs.djangoproject.com/en/dev/topics/signals/#preventing-duplicate-signals
import attendees.persons.signals
| 28.3 | 120 | 0.738516 | 32 | 283 | 6.53125 | 0.8125 | 0.15311 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.162544 | 283 | 9 | 121 | 31.444444 | 0.881857 | 0.381625 | 0 | 0 | 0 | 0 | 0.099415 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
0a9807c2f3907c5b205e154cd6248dfe4333924f | 183 | py | Python | update/venv/lib/python3.9/site-packages/fontTools/__init__.py | Imudassir77/material-design-icons | 63c5cb306073a9ecdfd3579f0f696746ab6305f6 | [
"Apache-2.0"
] | 38,667 | 2015-01-01T00:15:34.000Z | 2022-03-31T22:57:03.000Z | update/venv/lib/python3.9/site-packages/fontTools/__init__.py | azizhudai/material-design-icons | 63c5cb306073a9ecdfd3579f0f696746ab6305f6 | [
"Apache-2.0"
] | 1,192 | 2015-01-03T07:59:34.000Z | 2022-03-31T13:22:26.000Z | update/venv/lib/python3.9/site-packages/fontTools/__init__.py | azizhudai/material-design-icons | 63c5cb306073a9ecdfd3579f0f696746ab6305f6 | [
"Apache-2.0"
] | 11,269 | 2015-01-01T08:41:17.000Z | 2022-03-31T16:12:52.000Z | import logging
from fontTools.misc.loggingTools import configLogger
log = logging.getLogger(__name__)
version = __version__ = "4.22.1"
__all__ = ["version", "log", "configLogger"]
| 20.333333 | 52 | 0.754098 | 21 | 183 | 6 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024845 | 0.120219 | 183 | 8 | 53 | 22.875 | 0.757764 | 0 | 0 | 0 | 0 | 0 | 0.153005 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
0abc3a801eabf7fb558efa2abc0fd1fd2967300a | 185 | py | Python | web/__init__.py | aHugues/default-flask | 4d6c8c95f9f93b1fccc56aa413f912c86bf99bc3 | [
"Apache-2.0"
] | 1 | 2019-04-13T20:13:37.000Z | 2019-04-13T20:13:37.000Z | web/__init__.py | aHugues/default-flask | 4d6c8c95f9f93b1fccc56aa413f912c86bf99bc3 | [
"Apache-2.0"
] | 1 | 2019-04-14T13:31:10.000Z | 2019-04-14T13:31:10.000Z | web/__init__.py | aHugues/porygon-indexer | 8d6c9ca912c95d01a73a36f87e173e2a450441e8 | [
"Apache-2.0"
] | null | null | null | from flask import Flask
from .views import main_views
def create_app(debug=False):
app = Flask(__name__)
app.debug = debug
app.register_blueprint(main_views)
return app | 23.125 | 38 | 0.740541 | 27 | 185 | 4.777778 | 0.518519 | 0.139535 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.189189 | 185 | 8 | 39 | 23.125 | 0.86 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.571429 | 0.142857 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
0ad29e2d73a653c167863eb5398a68759438da21 | 123 | py | Python | ArchiveddashProblems/Problem_006.py | Utshaan/Archived_Problems | 423e8fc5db2dd5ee54a625cf8cbec2a8a271fcf3 | [
"MIT"
] | 1 | 2022-03-14T14:57:01.000Z | 2022-03-14T14:57:01.000Z | ArchiveddashProblems/Problem_006.py | Utshaan/Archived_Problems | 423e8fc5db2dd5ee54a625cf8cbec2a8a271fcf3 | [
"MIT"
] | 1 | 2022-03-13T12:33:07.000Z | 2022-03-13T12:50:42.000Z | ArchiveddashProblems/Problem_006.py | Utshaan/Archived_Problems | 423e8fc5db2dd5ee54a625cf8cbec2a8a271fcf3 | [
"MIT"
] | null | null | null | from fpack import SumofSquares, SquareofSum
x = int(input("number, now\n"))
a = SquareofSum(x) - SumofSquares(x)
print(a)
| 20.5 | 43 | 0.723577 | 18 | 123 | 4.944444 | 0.722222 | 0.269663 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130081 | 123 | 5 | 44 | 24.6 | 0.831776 | 0 | 0 | 0 | 0 | 0 | 0.105691 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0aec531afb01a71fa2d98ffd998050ce1a051ad6 | 3,078 | py | Python | app/api_v1/endpoints/kafka.py | endocode/fasten_api | a2f5c712fb0f39de664ef98543c21d3eb472d9e9 | [
"Apache-2.0"
] | null | null | null | app/api_v1/endpoints/kafka.py | endocode/fasten_api | a2f5c712fb0f39de664ef98543c21d3eb472d9e9 | [
"Apache-2.0"
] | null | null | null | app/api_v1/endpoints/kafka.py | endocode/fasten_api | a2f5c712fb0f39de664ef98543c21d3eb472d9e9 | [
"Apache-2.0"
] | null | null | null | from fastapi import APIRouter
from api_v1.endpoints.utils import connect_kafka
router = APIRouter()
@router.get("/")
async def root():
return {"message": "it's working!"}
@router.get("/{pkg_manager}/{product}/deps/{timestamp}")
def rebuild_dependency_net(pkg_manager: str, product: str, timestamp: int):
"""... | 25.229508 | 77 | 0.675763 | 443 | 3,078 | 4.654628 | 0.327314 | 0.023278 | 0.030553 | 0.047527 | 0.318623 | 0.260912 | 0.227934 | 0.13676 | 0.13676 | 0.100873 | 0 | 0.036205 | 0.219298 | 3,078 | 121 | 78 | 25.438017 | 0.821889 | 0.648798 | 0 | 0.2 | 0 | 0 | 0.310875 | 0.286052 | 0 | 0 | 0 | 0.016529 | 0 | 1 | 0.24 | false | 0.2 | 0.08 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
0aeea2abe861dcfc38b00218cc263c0a631c1760 | 1,674 | py | Python | gmail.py | NH-web/NH-gmail | 17ff1eadabca534da8bda8761445418f18f14c30 | [
"Apache-2.0"
] | 2 | 2020-10-11T14:53:21.000Z | 2022-01-02T12:49:21.000Z | gmail.py | NH-web/NH-gmail | 17ff1eadabca534da8bda8761445418f18f14c30 | [
"Apache-2.0"
] | null | null | null | gmail.py | NH-web/NH-gmail | 17ff1eadabca534da8bda8761445418f18f14c30 | [
"Apache-2.0"
] | null | null | null | import smtplib
import time
import subprocess
from datetime import datetime
r = "033[1;91m"
g = "033[1;32m"
s = g + "+"
print (g +'-'*60)
print ("")
print ('['+s+']starting your tool and updating the programm')
print ("")
print (g +'-'*60)
time.sleep(5)
print (g'/...\.....starting the server' + g +'/....//../'*1000)
s... | 27.9 | 92 | 0.519713 | 193 | 1,674 | 4.481865 | 0.466321 | 0.046243 | 0.060116 | 0.039306 | 0.078613 | 0.078613 | 0.078613 | 0 | 0 | 0 | 0 | 0.034426 | 0.271207 | 1,674 | 59 | 93 | 28.372881 | 0.67459 | 0 | 0 | 0.16 | 0 | 0 | 0.449492 | 0.028093 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.12 | 0.08 | null | null | 0.46 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 3 |
7c145f3f4175223e4ff7a27b6305b695ba73a77b | 136 | py | Python | multiplication/multiplication.py | Vino2001-hub/the-creative-vipers | 844c20e7f8dc6a69f64c17fba29d385b5dd21868 | [
"MIT"
] | null | null | null | multiplication/multiplication.py | Vino2001-hub/the-creative-vipers | 844c20e7f8dc6a69f64c17fba29d385b5dd21868 | [
"MIT"
] | null | null | null | multiplication/multiplication.py | Vino2001-hub/the-creative-vipers | 844c20e7f8dc6a69f64c17fba29d385b5dd21868 | [
"MIT"
] | 3 | 2021-04-18T14:20:45.000Z | 2021-04-18T15:12:42.000Z | def domultiplication:
a=68
b=10
print("Multiplication of 68*10=",a*b)#multiplication function is invoked
domultiplication()
| 22.666667 | 76 | 0.727941 | 18 | 136 | 5.5 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070796 | 0.169118 | 136 | 5 | 77 | 27.2 | 0.80531 | 0.25 | 0 | 0 | 0 | 0 | 0.237624 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7c1a4a7821a91fb68ddce6a8ad71199b67b52d2a | 47,543 | py | Python | neo/test/coretest/test_irregularysampledsignal.py | alafuzof/python-neo | 5fae976d1d944bf16285dc51f57d0e7d4c2c62ad | [
"BSD-3-Clause"
] | null | null | null | neo/test/coretest/test_irregularysampledsignal.py | alafuzof/python-neo | 5fae976d1d944bf16285dc51f57d0e7d4c2c62ad | [
"BSD-3-Clause"
] | null | null | null | neo/test/coretest/test_irregularysampledsignal.py | alafuzof/python-neo | 5fae976d1d944bf16285dc51f57d0e7d4c2c62ad | [
"BSD-3-Clause"
] | 1 | 2021-07-17T16:24:25.000Z | 2021-07-17T16:24:25.000Z | # -*- coding: utf-8 -*-
"""
Tests of the neo.core.irregularlysampledsignal.IrregularySampledSignal class
"""
import unittest
import os
import pickle
import warnings
from copy import deepcopy
import numpy as np
import quantities as pq
from numpy.testing import assert_array_equal
from neo.core.dataobject import Array... | 49.063983 | 99 | 0.640326 | 5,565 | 47,543 | 5.277448 | 0.079605 | 0.076101 | 0.069359 | 0.019102 | 0.755933 | 0.72093 | 0.694338 | 0.667711 | 0.637407 | 0.611836 | 0 | 0.037789 | 0.234104 | 47,543 | 968 | 100 | 49.114669 | 0.768764 | 0.02238 | 0 | 0.547194 | 0 | 0 | 0.058299 | 0.004177 | 0 | 0 | 0 | 0 | 0.501276 | 1 | 0.090561 | false | 0 | 0.020408 | 0 | 0.119898 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 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 | 3 |
7c2a8bdac271337f93e880a885f56ed4b95de212 | 1,345 | py | Python | aio_pika/patterns/base.py | homersoft/aio-pika | 7438e4ee86b8944d38907d3042c8d5605d68c81e | [
"Apache-2.0"
] | null | null | null | aio_pika/patterns/base.py | homersoft/aio-pika | 7438e4ee86b8944d38907d3042c8d5605d68c81e | [
"Apache-2.0"
] | null | null | null | aio_pika/patterns/base.py | homersoft/aio-pika | 7438e4ee86b8944d38907d3042c8d5605d68c81e | [
"Apache-2.0"
] | null | null | null | import pickle
from typing import Any, Callable
class Method:
__slots__ = (
"name",
"func",
)
def __init__(self, name: str, func: Callable[..., Any]):
self.name = name
self.func = func
def __getattr__(self, item: str) -> "Method":
return Method(".".join((self.n... | 25.377358 | 73 | 0.610409 | 162 | 1,345 | 4.888889 | 0.320988 | 0.060606 | 0.027778 | 0.037879 | 0.388889 | 0.388889 | 0.388889 | 0.388889 | 0.388889 | 0.388889 | 0 | 0 | 0.277323 | 1,345 | 52 | 74 | 25.865385 | 0.814815 | 0.246097 | 0 | 0.074074 | 0 | 0 | 0.047059 | 0.026738 | 0 | 0 | 0 | 0 | 0 | 1 | 0.259259 | false | 0 | 0.074074 | 0.111111 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 1 | 0 | 0 | 3 |
7c3050e5fc98b66c7e1fa269352e4262de180b09 | 177 | py | Python | test/todo/domain/test_frequency_db_name.py | MarkStefanovic/todo-api | fb6198511712df853e693787839533f0c9956178 | [
"MIT"
] | null | null | null | test/todo/domain/test_frequency_db_name.py | MarkStefanovic/todo-api | fb6198511712df853e693787839533f0c9956178 | [
"MIT"
] | null | null | null | test/todo/domain/test_frequency_db_name.py | MarkStefanovic/todo-api | fb6198511712df853e693787839533f0c9956178 | [
"MIT"
] | null | null | null | from src import core
if __name__ == "__main__":
n = core.FrequencyDbName.DAILY
assert n == "daily"
print(n)
print(repr(n))
x = core.FrequencyDbName("todo")
| 19.666667 | 36 | 0.632768 | 23 | 177 | 4.521739 | 0.652174 | 0.365385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.231638 | 177 | 8 | 37 | 22.125 | 0.764706 | 0 | 0 | 0 | 0 | 0 | 0.096045 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.285714 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7c33481b6158455cf60525f5ced765bba063e1ba | 447 | py | Python | codestepbystep/count_to_by.py | aleeper/python_sandbox | 2c320e043735f99fac68308fe2692c819cf5a636 | [
"MIT"
] | null | null | null | codestepbystep/count_to_by.py | aleeper/python_sandbox | 2c320e043735f99fac68308fe2692c819cf5a636 | [
"MIT"
] | null | null | null | codestepbystep/count_to_by.py | aleeper/python_sandbox | 2c320e043735f99fac68308fe2692c819cf5a636 | [
"MIT"
] | null | null | null | def get_string_count_to_by(to, by):
if by < 1:
raise ValueError("'by' must be > 0")
if to < 1:
raise ValueError("'to' must be > 0")
if to <= by:
return str(to)
return get_string_count_to_by(to - by, by) + ", " + str(to)
def count_to_by(to, by):
print(get_string_count_to_by(t... | 21.285714 | 63 | 0.588367 | 78 | 447 | 3.012821 | 0.294872 | 0.204255 | 0.268085 | 0.187234 | 0.429787 | 0.280851 | 0.280851 | 0 | 0 | 0 | 0 | 0.039514 | 0.263982 | 447 | 20 | 64 | 22.35 | 0.674772 | 0 | 0 | 0 | 0 | 0 | 0.09396 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0 | 0 | 0.3125 | 0.0625 | 0 | 0 | 0 | null | 1 | 1 | 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 | 3 |
7c3c1e943fef73d42bafa5e9c1b474901c314ea9 | 2,739 | py | Python | aliyun-python-sdk-dms-enterprise/aliyunsdkdms_enterprise/request/v20181101/ListInstancesRequest.py | liumihust/aliyun-openapi-python-sdk | c7b5dd4befae4b9c59181654289f9272531207ef | [
"Apache-2.0"
] | null | null | null | aliyun-python-sdk-dms-enterprise/aliyunsdkdms_enterprise/request/v20181101/ListInstancesRequest.py | liumihust/aliyun-openapi-python-sdk | c7b5dd4befae4b9c59181654289f9272531207ef | [
"Apache-2.0"
] | 1 | 2020-05-31T14:51:47.000Z | 2020-05-31T14:51:47.000Z | aliyun-python-sdk-dms-enterprise/aliyunsdkdms_enterprise/request/v20181101/ListInstancesRequest.py | liumihust/aliyun-openapi-python-sdk | c7b5dd4befae4b9c59181654289f9272531207ef | [
"Apache-2.0"
] | null | null | null | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 32.223529 | 92 | 0.758306 | 370 | 2,739 | 5.424324 | 0.310811 | 0.026906 | 0.06278 | 0.076233 | 0.139013 | 0.139013 | 0.139013 | 0 | 0 | 0 | 0 | 0.005068 | 0.135451 | 2,739 | 85 | 93 | 32.223529 | 0.842483 | 0.275283 | 0 | 0 | 0 | 0 | 0.136958 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.422222 | false | 0 | 0.044444 | 0.2 | 0.688889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 1 | 0 | 0 | 3 |
7c4493dcbfca95c195eb7212d69f702245111712 | 620 | py | Python | uds/utilities/__init__.py | mdabrowski1990/uds | 1aee0c1de446ee3dd461706949504f2c218db1e8 | [
"MIT"
] | 18 | 2021-03-28T22:39:18.000Z | 2022-02-13T21:50:37.000Z | uds/utilities/__init__.py | mdabrowski1990/uds | 1aee0c1de446ee3dd461706949504f2c218db1e8 | [
"MIT"
] | 153 | 2021-02-09T09:27:05.000Z | 2022-03-29T06:09:15.000Z | uds/utilities/__init__.py | mdabrowski1990/uds | 1aee0c1de446ee3dd461706949504f2c218db1e8 | [
"MIT"
] | 1 | 2021-05-13T16:01:46.000Z | 2021-05-13T16:01:46.000Z | """Various helper functions, classes and variables that are shared and reused within the project."""
from .enums import ValidatedEnum, ExtendableEnum, ByteEnum, NibbleEnum
from .common_types import Nibble, RawByte, RawBytes, RawBytesTuple, RawBytesList, RawBytesSet, \
validate_nibble, validate_raw_bytes, validate_... | 56.363636 | 100 | 0.835484 | 67 | 620 | 7.507463 | 0.701493 | 0.043738 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109677 | 620 | 10 | 101 | 62 | 0.911232 | 0.151613 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.625 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 1 | 0 | 0 | 3 |
7c45660fbf28183fb31bd82bbfed828e456a6d37 | 187,644 | py | Python | tests/x509/test_x509.py | mattsb42-aws/cryptography | e687b8f7f40e30ef88e9de889c55cd7fdec99762 | [
"PSF-2.0",
"Apache-2.0",
"BSD-3-Clause"
] | 2 | 2021-01-30T13:23:54.000Z | 2021-06-07T21:35:19.000Z | tests/x509/test_x509.py | mattsb42-aws/cryptography | e687b8f7f40e30ef88e9de889c55cd7fdec99762 | [
"PSF-2.0",
"Apache-2.0",
"BSD-3-Clause"
] | 7 | 2019-11-28T21:48:38.000Z | 2020-08-02T18:06:40.000Z | tests/x509/test_x509.py | mattsb42-aws/cryptography | e687b8f7f40e30ef88e9de889c55cd7fdec99762 | [
"PSF-2.0",
"Apache-2.0",
"BSD-3-Clause"
] | 6 | 2020-05-29T21:46:30.000Z | 2020-12-15T20:32:19.000Z | # -*- coding: utf-8 -*-
# This file is dual licensed under the terms of the Apache License, Version
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
# for complete details.
from __future__ import absolute_import, division, print_function
import binascii
import collections
import datetim... | 39.992327 | 79 | 0.625925 | 18,536 | 187,644 | 6.090742 | 0.059236 | 0.053606 | 0.065475 | 0.028769 | 0.76818 | 0.74004 | 0.712891 | 0.677328 | 0.641597 | 0.61157 | 0 | 0.121358 | 0.280084 | 187,644 | 4,691 | 80 | 40.000853 | 0.714379 | 0.011527 | 0 | 0.62299 | 0 | 0.00072 | 0.117261 | 0.074783 | 0 | 0 | 0 | 0 | 0.092633 | 1 | 0.055916 | false | 0.00024 | 0.00552 | 0 | 0.067675 | 0.00384 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 3 |
7c6fb68062cf367ed6e9e36afe007ca0ca5f2f0c | 866 | py | Python | evewspace/Teamspeak/default_settings.py | gpapaz/eve-wspace | 6b46d120c5ca8d27546113f51fd74fd7797dcbfc | [
"Apache-2.0"
] | null | null | null | evewspace/Teamspeak/default_settings.py | gpapaz/eve-wspace | 6b46d120c5ca8d27546113f51fd74fd7797dcbfc | [
"Apache-2.0"
] | null | null | null | evewspace/Teamspeak/default_settings.py | gpapaz/eve-wspace | 6b46d120c5ca8d27546113f51fd74fd7797dcbfc | [
"Apache-2.0"
] | null | null | null | # Eve W-Space
# Copyright 2014 Andrew Austin and contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requi... | 37.652174 | 82 | 0.743649 | 124 | 866 | 5.177419 | 0.709677 | 0.093458 | 0.040498 | 0.049844 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026761 | 0.180139 | 866 | 22 | 83 | 39.363636 | 0.877465 | 0.691686 | 0 | 0 | 0 | 0 | 0.128 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.166667 | 0.5 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
7c7361013f3a7b9971368dc2c25a05418213cbf7 | 29 | py | Python | UnitTests/__init__.py | YuriShporhun/YBio | 420e1fa8c8d0d56bfb6e56f1afcf277c73f1d968 | [
"Apache-2.0"
] | null | null | null | UnitTests/__init__.py | YuriShporhun/YBio | 420e1fa8c8d0d56bfb6e56f1afcf277c73f1d968 | [
"Apache-2.0"
] | null | null | null | UnitTests/__init__.py | YuriShporhun/YBio | 420e1fa8c8d0d56bfb6e56f1afcf277c73f1d968 | [
"Apache-2.0"
] | null | null | null | __author__ = 'Yuri Shporhun'
| 14.5 | 28 | 0.758621 | 3 | 29 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137931 | 29 | 1 | 29 | 29 | 0.72 | 0 | 0 | 0 | 0 | 0 | 0.448276 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7c7a35ec575fe9f29dac44ba63baf9dd56d48655 | 1,057 | py | Python | response/core/models/user_external.py | dgzlopes/response | 2e8d6d1110cdac302a3552b66f33d439dea37a7b | [
"MIT"
] | 8 | 2020-12-13T09:36:43.000Z | 2022-03-31T23:35:31.000Z | response/core/models/user_external.py | dgzlopes/response | 2e8d6d1110cdac302a3552b66f33d439dea37a7b | [
"MIT"
] | 39 | 2020-10-02T15:56:55.000Z | 2022-01-19T11:58:41.000Z | response/core/models/user_external.py | dgzlopes/response | 2e8d6d1110cdac302a3552b66f33d439dea37a7b | [
"MIT"
] | 3 | 2020-10-30T19:46:31.000Z | 2021-05-14T04:59:39.000Z | from django.contrib.auth.models import User
from django.db import models
class ExternalUserManager(models.Manager):
def get_or_create_slack(self, *args, **kwargs):
return self.get_or_create(app_id="slack", *args, **kwargs)
def update_or_create_slack(self, *args, **kwargs):
return self.update_... | 37.75 | 84 | 0.720908 | 148 | 1,057 | 4.932432 | 0.337838 | 0.034247 | 0.123288 | 0.164384 | 0.421918 | 0.421918 | 0.421918 | 0.291781 | 0.190411 | 0.128767 | 0 | 0.012263 | 0.151372 | 1,057 | 27 | 85 | 39.148148 | 0.801561 | 0 | 0 | 0 | 0 | 0 | 0.082308 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0 | 0.105263 | 0.157895 | 0.947368 | 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 | 1 | 1 | 0 | 0 | 3 |
7c7c81414791a11a686c1db3350b4387ca49624e | 512 | py | Python | tests/system/test_platform.py | paulocoutinhox/pygemstones | 79397ee187670dc78746a3b3f64ca6118cd3a86c | [
"MIT"
] | 2 | 2021-11-28T11:13:07.000Z | 2022-02-02T02:26:47.000Z | tests/system/test_platform.py | paulocoutinhox/pygemstones | 79397ee187670dc78746a3b3f64ca6118cd3a86c | [
"MIT"
] | 4 | 2022-01-04T22:22:09.000Z | 2022-01-21T06:44:03.000Z | tests/system/test_platform.py | paulocoutinhox/pygemstones | 79397ee187670dc78746a3b3f64ca6118cd3a86c | [
"MIT"
] | null | null | null | import pygemstones.system.platform as p
# -----------------------------------------------------------------------------
def test_windows():
ret = p.is_windows()
assert isinstance(ret, bool)
# -----------------------------------------------------------------------------
def test_linux():
ret = p.is_linux... | 25.6 | 79 | 0.355469 | 39 | 512 | 4.512821 | 0.410256 | 0.119318 | 0.102273 | 0.392045 | 0.340909 | 0.340909 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 512 | 19 | 80 | 26.947368 | 0.392857 | 0.455078 | 0 | 0.3 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.3 | 1 | 0.3 | false | 0 | 0.1 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7cb5de8677ae5ad6a1057d991768a49b492ffbc5 | 519 | py | Python | ultron/actions/__init__.py | Prakash2403/ultron | 7d1067eb98ef52f6a88299534ea204e7ae45d7a7 | [
"MIT"
] | 13 | 2017-08-15T15:50:13.000Z | 2019-06-03T10:24:50.000Z | ultron/actions/__init__.py | Prakash2403/ultron | 7d1067eb98ef52f6a88299534ea204e7ae45d7a7 | [
"MIT"
] | 3 | 2017-08-29T16:35:04.000Z | 2021-06-01T23:49:16.000Z | ultron/actions/__init__.py | Prakash2403/ultron | 7d1067eb98ef52f6a88299534ea204e7ae45d7a7 | [
"MIT"
] | 4 | 2017-08-16T09:33:59.000Z | 2019-06-05T07:25:30.000Z | """
The base class for all actions.
For defining a new action, inherit this class, then define all the associated methods.
"""
from abc import abstractmethod, ABC
class Action(ABC):
@abstractmethod
def execute(self, *args, **kwargs):
return
@abstractmethod
def post_execute(self, *args, **kwa... | 19.961538 | 86 | 0.639692 | 62 | 519 | 5.290323 | 0.467742 | 0.167683 | 0.137195 | 0.192073 | 0.35061 | 0.268293 | 0.268293 | 0 | 0 | 0 | 0 | 0 | 0.258189 | 519 | 25 | 87 | 20.76 | 0.851948 | 0.22736 | 0 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.266667 | false | 0 | 0.066667 | 0.2 | 0.6 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
7cba2cd283da139416a5e9b54e91d7ae58a1f4e5 | 143,685 | py | Python | swotann/nnetwork.py | dighr/swot-webapp | 17f738a1e9f0e11b9fe9625ddd8c9533d5f36e8f | [
"MIT"
] | null | null | null | swotann/nnetwork.py | dighr/swot-webapp | 17f738a1e9f0e11b9fe9625ddd8c9533d5f36e8f | [
"MIT"
] | null | null | null | swotann/nnetwork.py | dighr/swot-webapp | 17f738a1e9f0e11b9fe9625ddd8c9533d5f36e8f | [
"MIT"
] | null | null | null | import base64
import datetime
import io
import os
import matplotlib as mpl
import matplotlib.pyplot as plt
import numpy as np
from xlrd.xldate import xldate_as_datetime
from yattag import Doc
plt.rcParams.update({"figure.autolayout": True})
import matplotlib.gridspec as gridspec
import pandas as pd
import scipy.stats... | 42.000877 | 855 | 0.519477 | 17,125 | 143,685 | 4.134482 | 0.053723 | 0.026256 | 0.016158 | 0.023135 | 0.774459 | 0.743387 | 0.714391 | 0.692442 | 0.669152 | 0.651371 | 0 | 0.051173 | 0.370846 | 143,685 | 3,420 | 856 | 42.013158 | 0.732046 | 0.067759 | 0 | 0.615516 | 0 | 0.002734 | 0.118613 | 0.001051 | 0 | 0 | 0 | 0 | 0 | 1 | 0.008886 | false | 0 | 0.006494 | 0 | 0.02324 | 0.001367 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 3 |
7cbc1c2cfd82e096e87227121e7b6641e2523065 | 634 | py | Python | desktop_shop/util.py | Alex92rus/desktop_shop | 305caf263b56b279e46d5945285189673b868988 | [
"MIT"
] | null | null | null | desktop_shop/util.py | Alex92rus/desktop_shop | 305caf263b56b279e46d5945285189673b868988 | [
"MIT"
] | null | null | null | desktop_shop/util.py | Alex92rus/desktop_shop | 305caf263b56b279e46d5945285189673b868988 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Sat Nov 14 16:31:46 2020
@author: Korean_Crimson
"""
import datetime
def generate_timestamp() -> str:
'''Generates date+timestamp of current time'''
return datetime.datetime.now().strftime('%Y%m%d_%H%M%S')
def get_current_date() -> str:
'''Returns current date'''
... | 24.384615 | 60 | 0.648265 | 87 | 634 | 4.62069 | 0.609195 | 0.119403 | 0.022388 | 0.124378 | 0.179104 | 0.179104 | 0.179104 | 0.179104 | 0 | 0 | 0 | 0.02554 | 0.197161 | 634 | 25 | 61 | 25.36 | 0.764244 | 0.305994 | 0 | 0 | 1 | 0 | 0.069544 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.083333 | 0 | 0.583333 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
7cd63e9f63f8e91c04efeef40461ed815c84dfc9 | 143 | py | Python | BasicExerciseAndKnowledge/w3cschool/n26_fibs_RecursiveWay.py | Jonathan1214/learn-python | 19d0299b30e953069f19402bff5c464c4d5580be | [
"MIT"
] | null | null | null | BasicExerciseAndKnowledge/w3cschool/n26_fibs_RecursiveWay.py | Jonathan1214/learn-python | 19d0299b30e953069f19402bff5c464c4d5580be | [
"MIT"
] | null | null | null | BasicExerciseAndKnowledge/w3cschool/n26_fibs_RecursiveWay.py | Jonathan1214/learn-python | 19d0299b30e953069f19402bff5c464c4d5580be | [
"MIT"
] | null | null | null | #coding:utf-8
# 题目:利用递归方法求5!。
def factorial(num):
if num in (0,1):
return 1
return factorial(num-1) * num
print(factorial(5)) | 15.888889 | 33 | 0.615385 | 23 | 143 | 3.826087 | 0.652174 | 0.272727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.063636 | 0.230769 | 143 | 9 | 34 | 15.888889 | 0.736364 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.6 | 0.2 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7cecbc7a83d800700a0bc3e1e1e13789a0d1223c | 140 | py | Python | aiocloudflare/api/accounts/roles/roles.py | Stewart86/aioCloudflare | 341c0941f8f888a8b7e696e64550bce5da4949e6 | [
"MIT"
] | 2 | 2021-09-14T13:20:55.000Z | 2022-02-24T14:18:24.000Z | aiocloudflare/api/accounts/roles/roles.py | Stewart86/aioCloudflare | 341c0941f8f888a8b7e696e64550bce5da4949e6 | [
"MIT"
] | 46 | 2021-09-08T08:39:45.000Z | 2022-03-29T12:31:05.000Z | aiocloudflare/api/accounts/roles/roles.py | Stewart86/aioCloudflare | 341c0941f8f888a8b7e696e64550bce5da4949e6 | [
"MIT"
] | 1 | 2021-12-30T23:02:23.000Z | 2021-12-30T23:02:23.000Z | from aiocloudflare.commons.auth import Auth
class Roles(Auth):
_endpoint1 = "accounts"
_endpoint2 = "roles"
_endpoint3 = None
| 17.5 | 43 | 0.707143 | 15 | 140 | 6.4 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027027 | 0.207143 | 140 | 7 | 44 | 20 | 0.837838 | 0 | 0 | 0 | 0 | 0 | 0.092857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
7ceec091cb6f866e1695e04948d008917f13dd0f | 10,228 | py | Python | tests/parsers/asl.py | pyllyukko/plaso | 7533db2d1035ca71d264d6281ebd5db2d073c587 | [
"Apache-2.0"
] | 2 | 2019-10-23T03:37:59.000Z | 2020-08-14T17:09:26.000Z | tests/parsers/asl.py | pyllyukko/plaso | 7533db2d1035ca71d264d6281ebd5db2d073c587 | [
"Apache-2.0"
] | null | null | null | tests/parsers/asl.py | pyllyukko/plaso | 7533db2d1035ca71d264d6281ebd5db2d073c587 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Tests for Apple System Log file parser."""
import unittest
from plaso.lib import errors
from plaso.parsers import asl
from tests.parsers import test_lib
class ASLParserTest(test_lib.ParserTestCase):
"""Tests for Apple System Log file parser."""
# pylint: disab... | 42.794979 | 79 | 0.683809 | 1,316 | 10,228 | 5.163374 | 0.218085 | 0.161295 | 0.180132 | 0.1766 | 0.462104 | 0.414717 | 0.361442 | 0.272701 | 0.226343 | 0.178219 | 0 | 0.209805 | 0.194271 | 10,228 | 238 | 80 | 42.97479 | 0.614731 | 0.092491 | 0 | 0.183544 | 0 | 0 | 0.072267 | 0.011519 | 0 | 0 | 0.240057 | 0.004202 | 0.132911 | 1 | 0.044304 | false | 0 | 0.025316 | 0 | 0.088608 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 3 |
7cef36bc0025f56675335f7db3a0fe2078984246 | 46 | py | Python | Knowledge/Python/variables.py | thealexcesar/Harvard-CS50-Web | f099e7cf3d3c7f081dd4cb564d35ab6f5ff52bdf | [
"MIT"
] | 2 | 2021-04-05T15:29:08.000Z | 2022-03-08T11:07:21.000Z | Knowledge/Python/variables.py | thealexcesar/Harvard-CS50-Web | f099e7cf3d3c7f081dd4cb564d35ab6f5ff52bdf | [
"MIT"
] | null | null | null | Knowledge/Python/variables.py | thealexcesar/Harvard-CS50-Web | f099e7cf3d3c7f081dd4cb564d35ab6f5ff52bdf | [
"MIT"
] | null | null | null | a = 28
b = 1.5
c = "Hello!"
d = True
e = None
| 7.666667 | 12 | 0.478261 | 11 | 46 | 2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.129032 | 0.326087 | 46 | 5 | 13 | 9.2 | 0.580645 | 0 | 0 | 0 | 0 | 0 | 0.130435 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6b06a0bf4f6d6883c503d6354aadfeff8918c158 | 210 | py | Python | datasets/csqa_new/extract_submission.py | gogowhy/ENet_framework | 74e4417a249376e41878c0595518db2481d45ce1 | [
"MIT"
] | 244 | 2019-09-06T07:53:57.000Z | 2022-03-28T19:32:15.000Z | datasets/csqa_new/extract_submission.py | gogowhy/ENet_framework | 74e4417a249376e41878c0595518db2481d45ce1 | [
"MIT"
] | null | null | null | datasets/csqa_new/extract_submission.py | gogowhy/ENet_framework | 74e4417a249376e41878c0595518db2481d45ce1 | [
"MIT"
] | 61 | 2019-09-14T07:06:57.000Z | 2022-03-16T07:02:52.000Z | import json
with open("test_rand_split.jsonl", 'r') as fw:
for line in open("test_rand_split.jsonl", 'r').readlines():
data = json.loads(line.strip())
print(data["id"]+','+data["answerKey"]) | 42 | 63 | 0.628571 | 31 | 210 | 4.129032 | 0.677419 | 0.125 | 0.1875 | 0.265625 | 0.359375 | 0.359375 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 210 | 5 | 64 | 42 | 0.731429 | 0 | 0 | 0 | 0 | 0 | 0.265403 | 0.199052 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.2 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6b0782a9e582959a13bad44c331bf33e0963ce20 | 448 | py | Python | atomicpress/themes/minimal/helpers.py | marteinn/AtomicPress | b8a0ca9c9c327f062833fc4a401a8ac0baccf6d1 | [
"MIT"
] | 7 | 2015-04-10T07:42:53.000Z | 2016-01-20T16:46:48.000Z | atomicpress/themes/minimal/helpers.py | marteinn/AtomicPress | b8a0ca9c9c327f062833fc4a401a8ac0baccf6d1 | [
"MIT"
] | 4 | 2015-09-01T19:39:43.000Z | 2015-09-06T17:57:27.000Z | atomicpress/themes/minimal/helpers.py | marteinn/AtomicPress | b8a0ca9c9c327f062833fc4a401a8ac0baccf6d1 | [
"MIT"
] | 1 | 2016-12-05T16:27:59.000Z | 2016-12-05T16:27:59.000Z | from sqlalchemy import or_, and_
from atomicpress.app import app
from atomicpress.models import Post, PostStatus
def gen_post_status():
"""
Show only published posts outside debug.
"""
if not app.config["DEBUG"]:
post_status = and_(Post.status == PostStatus.PUBLISH)
else:
post_st... | 24.888889 | 61 | 0.658482 | 53 | 448 | 5.396226 | 0.490566 | 0.244755 | 0.20979 | 0.188811 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.252232 | 448 | 17 | 62 | 26.352941 | 0.853731 | 0.089286 | 0 | 0 | 0 | 0 | 0.012755 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.3 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 1 | 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 | 3 |
6b08b63255aa6aef6063d2bb955dc708928c668c | 177 | py | Python | src/data/helpers.py | martinlarsalbert/roll_decay_damping | 5982fae683ee2b4d3b51d07956a1a9544f89d629 | [
"MIT"
] | null | null | null | src/data/helpers.py | martinlarsalbert/roll_decay_damping | 5982fae683ee2b4d3b51d07956a1a9544f89d629 | [
"MIT"
] | null | null | null | src/data/helpers.py | martinlarsalbert/roll_decay_damping | 5982fae683ee2b4d3b51d07956a1a9544f89d629 | [
"MIT"
] | null | null | null | import pandas as pd
import os
def load(file_name):
file_path = os.path.join('../../data/external/',file_name)
data = pd.read_csv(file_path, index_col=0)
return data | 25.285714 | 62 | 0.694915 | 30 | 177 | 3.9 | 0.633333 | 0.136752 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006757 | 0.163842 | 177 | 7 | 63 | 25.285714 | 0.783784 | 0 | 0 | 0 | 0 | 0 | 0.11236 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
6b17d5bee29a57e35b7da4ad3f75206d512304bf | 44,731 | py | Python | pysnmp-with-texts/Nortel-MsCarrier-MscPassport-DataCollectionMIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/Nortel-MsCarrier-MscPassport-DataCollectionMIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/Nortel-MsCarrier-MscPassport-DataCollectionMIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module Nortel-MsCarrier-MscPassport-DataCollectionMIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Nortel-MsCarrier-MscPassport-DataCollectionMIB
# Produced by pysmi-0.3.4 at Wed May 1 14:29:37 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 ... | 191.15812 | 3,370 | 0.794617 | 5,734 | 44,731 | 6.198814 | 0.123474 | 0.045915 | 0.080351 | 0.009003 | 0.521044 | 0.398998 | 0.367854 | 0.362734 | 0.333924 | 0.310995 | 0 | 0.046845 | 0.109007 | 44,731 | 233 | 3,371 | 191.978541 | 0.844988 | 0.008629 | 0 | 0 | 0 | 0.119469 | 0.480512 | 0.034103 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.084071 | 0.039823 | 0 | 0.039823 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
6b1986265c356937240c8f049e4c27f556e3ad32 | 203 | py | Python | python_web_framework_project_defense/python_web_framework_project_defense/extended_user_auth/apps.py | Xamaneone/Django-Projects | 4fac8659680a6448bb55bce008bfd0eac1ad1f6d | [
"MIT"
] | null | null | null | python_web_framework_project_defense/python_web_framework_project_defense/extended_user_auth/apps.py | Xamaneone/Django-Projects | 4fac8659680a6448bb55bce008bfd0eac1ad1f6d | [
"MIT"
] | null | null | null | python_web_framework_project_defense/python_web_framework_project_defense/extended_user_auth/apps.py | Xamaneone/Django-Projects | 4fac8659680a6448bb55bce008bfd0eac1ad1f6d | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class ExtendedUserAuthConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'python_web_framework_project_defense.extended_user_auth'
| 29 | 68 | 0.82266 | 24 | 203 | 6.625 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108374 | 203 | 6 | 69 | 33.833333 | 0.878453 | 0 | 0 | 0 | 0 | 0 | 0.413793 | 0.413793 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6b2789562eb8efddec5ec7449dee11fe69846fac | 1,257 | py | Python | cloud_notes/urls.py | kiwiheretic/logos-v2 | 22739221a6d431322c809b7e17aba54f37eb9617 | [
"Apache-2.0"
] | 4 | 2015-02-20T08:11:59.000Z | 2019-05-15T23:48:11.000Z | cloud_notes/urls.py | kiwiheretic/logos-v2 | 22739221a6d431322c809b7e17aba54f37eb9617 | [
"Apache-2.0"
] | 58 | 2015-01-11T02:10:09.000Z | 2022-03-20T01:20:15.000Z | cloud_notes/urls.py | kiwiheretic/logos-v2 | 22739221a6d431322c809b7e17aba54f37eb9617 | [
"Apache-2.0"
] | 1 | 2016-06-15T00:49:44.000Z | 2016-06-15T00:49:44.000Z | # urls.py
from __future__ import absolute_import
from django.conf.urls import include, url
from haystack.generic_views import SearchView
from haystack.forms import SearchForm
from .views import MySearchView
import cloud_notes.views
# required to set an app name to resolve 'url' in templates with namespacing
app_name ... | 40.548387 | 106 | 0.718377 | 189 | 1,257 | 4.555556 | 0.285714 | 0.209059 | 0.296167 | 0.092915 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117741 | 1,257 | 30 | 107 | 41.9 | 0.776375 | 0.065235 | 0 | 0 | 0 | 0 | 0.156143 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.32 | 0 | 0.32 | 0 | 0 | 0 | 0 | null | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
6b34b62ff9176d754e62eb3c435d235886456de0 | 224 | py | Python | sync_tests/test_upload.py | Tara-X/mirror-sync | 98b86c65a389682df8500085c15ef57dc5309569 | [
"MIT"
] | null | null | null | sync_tests/test_upload.py | Tara-X/mirror-sync | 98b86c65a389682df8500085c15ef57dc5309569 | [
"MIT"
] | 1 | 2021-06-01T22:06:38.000Z | 2021-06-01T22:06:38.000Z | sync_tests/test_upload.py | Tara-X/mirror-sync | 98b86c65a389682df8500085c15ef57dc5309569 | [
"MIT"
] | null | null | null | # -*- coding:utf-8 -*-
import sys
import unittest
class TestUpload(unittest.TestCase):
def test_upload(self):
pass
def test_remove(self):
pass
if __name__ == '__main__':
unittest.main()
| 13.176471 | 36 | 0.616071 | 26 | 224 | 4.923077 | 0.692308 | 0.109375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006061 | 0.263393 | 224 | 16 | 37 | 14 | 0.769697 | 0.089286 | 0 | 0.222222 | 0 | 0 | 0.039604 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0.222222 | 0.222222 | 0 | 0.555556 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
6b36941c3ad4d3977e550da048bd026bd39e5196 | 302 | py | Python | venv/Lib/site-packages/pybrain3/rl/environments/twoplayergames/capturegameplayers/randomplayer.py | ishatserka/MachineLearningAndDataAnalysisCoursera | e82e772df2f4aec162cb34ac6127df10d14a625a | [
"MIT"
] | null | null | null | venv/Lib/site-packages/pybrain3/rl/environments/twoplayergames/capturegameplayers/randomplayer.py | ishatserka/MachineLearningAndDataAnalysisCoursera | e82e772df2f4aec162cb34ac6127df10d14a625a | [
"MIT"
] | null | null | null | venv/Lib/site-packages/pybrain3/rl/environments/twoplayergames/capturegameplayers/randomplayer.py | ishatserka/MachineLearningAndDataAnalysisCoursera | e82e772df2f4aec162cb34ac6127df10d14a625a | [
"MIT"
] | null | null | null | __author__ = 'Tom Schaul, tom@idsia.ch'
from random import choice
from .captureplayer import CapturePlayer
class RandomCapturePlayer(CapturePlayer):
""" do random moves in the capture game"""
def getAction(self):
return [self.color, choice(self.game.getLegals(self.color))] | 25.166667 | 68 | 0.715232 | 36 | 302 | 5.888889 | 0.666667 | 0.084906 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.18543 | 302 | 12 | 68 | 25.166667 | 0.861789 | 0.115894 | 0 | 0 | 0 | 0 | 0.091954 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0.166667 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 1 | 0 | 0 | 3 |
6b44f8e8ae27a08bdbd449c05fa181aea67c9352 | 3,241 | py | Python | storeAdjust/serializer.py | FreeGodCode/store | 1ea1d6f0d6030fb58bce9a4e2d428342a0c3ad19 | [
"MIT"
] | null | null | null | storeAdjust/serializer.py | FreeGodCode/store | 1ea1d6f0d6030fb58bce9a4e2d428342a0c3ad19 | [
"MIT"
] | 1 | 2021-03-05T15:00:38.000Z | 2021-03-05T15:00:38.000Z | storeAdjust/serializer.py | FreeGodCode/store | 1ea1d6f0d6030fb58bce9a4e2d428342a0c3ad19 | [
"MIT"
] | null | null | null | from rest_framework import serializers
from . import models
class TransferRequestSerializer(serializers.ModelSerializer):
org_name = serializers.CharField(source='organization.org_name')
class Meta:
model = models.TransferRequest
fields = (
'id', 'str_identify', 'org_name', 'str_t... | 45.013889 | 120 | 0.724468 | 340 | 3,241 | 6.594118 | 0.144118 | 0.187333 | 0.243533 | 0.227475 | 0.689563 | 0.67083 | 0.67083 | 0.569135 | 0.569135 | 0.5281 | 0 | 0 | 0.161678 | 3,241 | 72 | 121 | 45.013889 | 0.825175 | 0 | 0 | 0.45614 | 0 | 0 | 0.320481 | 0.144664 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.035088 | 0 | 0.578947 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 1 | 0 | 0 | 3 |
860f15449ffd7b916eb81156f97cf4a7427d9bfc | 120 | py | Python | gym_antnest/__init__.py | unoti/aigym-antnest | 6dfcb2ddc2118edd64ba8b474510f2a20a67d6f9 | [
"MIT"
] | null | null | null | gym_antnest/__init__.py | unoti/aigym-antnest | 6dfcb2ddc2118edd64ba8b474510f2a20a67d6f9 | [
"MIT"
] | null | null | null | gym_antnest/__init__.py | unoti/aigym-antnest | 6dfcb2ddc2118edd64ba8b474510f2a20a67d6f9 | [
"MIT"
] | null | null | null | from gym.envs.registration import register
register(
id='antnest-v0',
entry_point='antnest.envs:AntNestEnv',
)
| 17.142857 | 42 | 0.733333 | 15 | 120 | 5.8 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009709 | 0.141667 | 120 | 6 | 43 | 20 | 0.834951 | 0 | 0 | 0 | 0 | 0 | 0.275 | 0.191667 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 0 | 0.2 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8612a7432e2a2ecf2a7b2210ba9155777f131c66 | 473 | py | Python | src/visitpy/visit_utils/src/builtin/__init__.py | whophil/visit | 4fd83212e20db1177916110ba40eeec6f41f8435 | [
"BSD-3-Clause"
] | null | null | null | src/visitpy/visit_utils/src/builtin/__init__.py | whophil/visit | 4fd83212e20db1177916110ba40eeec6f41f8435 | [
"BSD-3-Clause"
] | null | null | null | src/visitpy/visit_utils/src/builtin/__init__.py | whophil/visit | 4fd83212e20db1177916110ba40eeec6f41f8435 | [
"BSD-3-Clause"
] | null | null | null | # Copyright (c) Lawrence Livermore National Security, LLC and other VisIt
# Project developers. See the top-level LICENSE file for dates and other
# details. No copyright assignment is required to contribute to VisIt.
"""
file: __init__.py
author: Cyrus Harrison <cyrush@llnl.gov>
created: 7/6/2020
description:
... | 31.533333 | 73 | 0.769556 | 64 | 473 | 5.609375 | 0.765625 | 0.044568 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025063 | 0.156448 | 473 | 15 | 74 | 31.533333 | 0.874687 | 0.744186 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
862b954f750bb811af31e158371b5f4caeac3f34 | 340 | py | Python | jade2/rosetta_jade/flag_util.py | RosettaCommons/jade2 | 40affc7c4e0f1f6ee07030e72de284e3484946e7 | [
"BSD-3-Clause"
] | 1 | 2019-12-23T21:52:23.000Z | 2019-12-23T21:52:23.000Z | jade2/rosetta_jade/flag_util.py | RosettaCommons/jade2 | 40affc7c4e0f1f6ee07030e72de284e3484946e7 | [
"BSD-3-Clause"
] | null | null | null | jade2/rosetta_jade/flag_util.py | RosettaCommons/jade2 | 40affc7c4e0f1f6ee07030e72de284e3484946e7 | [
"BSD-3-Clause"
] | 2 | 2021-11-13T01:34:15.000Z | 2021-11-13T01:34:34.000Z | from jade2.basic.path import *
def get_common_flags_string_for_init(flags_name = "common_flags.flags"):
"""
Get a string of common flags as specified in the database.
:return: str
"""
return " ".join([ line.strip() for line in open(get_rosetta_flags_path()+'/'+flags_name, 'r') if line and not lin... | 30.909091 | 136 | 0.685294 | 51 | 340 | 4.352941 | 0.627451 | 0.148649 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003571 | 0.176471 | 340 | 10 | 137 | 34 | 0.789286 | 0.208824 | 0 | 0 | 0 | 0 | 0.088353 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
86378030ffb7a008ace921889a0f6c81d8965897 | 1,565 | py | Python | future/touchpoint.py | alpinedatalabs/python-alpine-api | 2f74e4eeb7cb6d2b4f2d73db90e8c4afc552d1e7 | [
"MIT"
] | null | null | null | future/touchpoint.py | alpinedatalabs/python-alpine-api | 2f74e4eeb7cb6d2b4f2d73db90e8c4afc552d1e7 | [
"MIT"
] | 8 | 2017-03-07T01:23:22.000Z | 2019-10-24T22:45:46.000Z | future/touchpoint.py | alpinedatalabs/python-alpine-api | 2f74e4eeb7cb6d2b4f2d73db90e8c4afc552d1e7 | [
"MIT"
] | 3 | 2017-03-13T11:15:19.000Z | 2019-03-24T21:47:05.000Z | from api.exception import *
from api.alpineobject import AlpineObject
class TouchPoint(AlpineObject):
def __init__(self, base_url, session, token):
super(TouchPoint, self).__init__(base_url, session, token)
def add_touchpoint(self, touchpoint_name, workfile_id, workspace_id, touchpoint_description):... | 26.083333 | 97 | 0.668371 | 172 | 1,565 | 5.726744 | 0.284884 | 0.170558 | 0.149239 | 0.152284 | 0.390863 | 0.33198 | 0.140102 | 0.140102 | 0 | 0 | 0 | 0 | 0.259425 | 1,565 | 59 | 98 | 26.525424 | 0.849871 | 0.11885 | 0 | 0.392857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.428571 | false | 0.392857 | 0.071429 | 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 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
8639bc81e6a1d5c69c20797cee962de7e7df13c0 | 1,155 | py | Python | py2End/Components/container.py | FuhrerG/PythonAtspi-API | bde1f71cebaa270b6f540562b1896f5bd7ff17cb | [
"MIT"
] | null | null | null | py2End/Components/container.py | FuhrerG/PythonAtspi-API | bde1f71cebaa270b6f540562b1896f5bd7ff17cb | [
"MIT"
] | null | null | null | py2End/Components/container.py | FuhrerG/PythonAtspi-API | bde1f71cebaa270b6f540562b1896f5bd7ff17cb | [
"MIT"
] | null | null | null | from __future__ import annotations
from component import *
from typing import Dict, Any, List, Tuple
from utils import *
import gi
gi.require_version('Atspi', '2.0')
from gi.repository import Atspi
class Container(E2eComponent):
# Atributes
# Constructor
def __init__(self: Container, obj: Atspi.Object)... | 28.875 | 70 | 0.684848 | 142 | 1,155 | 5.330986 | 0.387324 | 0.103038 | 0.059445 | 0.076618 | 0.293263 | 0.192867 | 0.192867 | 0.192867 | 0 | 0 | 0 | 0.00882 | 0.214719 | 1,155 | 39 | 71 | 29.615385 | 0.825799 | 0.031169 | 0 | 0.08 | 0 | 0 | 0.007175 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.24 | false | 0 | 0.24 | 0.12 | 0.72 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 1 | 0 | 0 | 3 |
864de2366e0badfd5eaa5e2e35d4298c9984af96 | 386 | py | Python | mriqc/classifier/__init__.py | erramuzpe/mriqc | 03eb869b0966cf27fe85db88a970f8ab8640c9e9 | [
"BSD-3-Clause"
] | 1 | 2019-08-17T21:20:48.000Z | 2019-08-17T21:20:48.000Z | mriqc/classifier/__init__.py | erramuzpe/mriqc | 03eb869b0966cf27fe85db88a970f8ab8640c9e9 | [
"BSD-3-Clause"
] | null | null | null | mriqc/classifier/__init__.py | erramuzpe/mriqc | 03eb869b0966cf27fe85db88a970f8ab8640c9e9 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
# vi: set ft=python sts=4 ts=4 sw=4 et:
"""
Using the classifier
--------------------
.. toctree::
:maxdepth: 3
cv/base
cv/data
cv/helper
Cross-validation in MRIQC
----------------... | 14.846154 | 73 | 0.523316 | 50 | 386 | 4.04 | 0.74 | 0.148515 | 0.158416 | 0.178218 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022727 | 0.202073 | 386 | 25 | 74 | 15.44 | 0.633117 | 0.953368 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8652e9b06d7a64b3de9ec8c032f891de24bf0135 | 869 | py | Python | fosslint/config.py | udoprog/fosslint | 85a9d9d85c747afeee3bbe693a6aa2a021b42b6f | [
"Apache-2.0"
] | 1 | 2016-09-30T13:52:01.000Z | 2016-09-30T13:52:01.000Z | fosslint/config.py | udoprog/fosslint | 85a9d9d85c747afeee3bbe693a6aa2a021b42b6f | [
"Apache-2.0"
] | 3 | 2016-09-29T22:10:45.000Z | 2016-09-30T14:03:10.000Z | fosslint/config.py | udoprog/fosslint | 85a9d9d85c747afeee3bbe693a6aa2a021b42b6f | [
"Apache-2.0"
] | null | null | null | import configparser
BOOLEAN_TRUE = set(['true'])
def unquote(string):
"""
Unqoute escape sequences in the given string.
TODO: implement this
"""
return string
class Config:
def __init__(self, config):
self.config = config
def sections(self):
return self.config.sections()... | 19.311111 | 57 | 0.597238 | 102 | 869 | 4.95098 | 0.352941 | 0.079208 | 0.043564 | 0.063366 | 0.114851 | 0.114851 | 0.114851 | 0.114851 | 0 | 0 | 0 | 0.003306 | 0.303797 | 869 | 44 | 58 | 19.75 | 0.831405 | 0.075949 | 0 | 0.153846 | 0 | 0 | 0.007663 | 0 | 0 | 0 | 0 | 0.022727 | 0 | 1 | 0.269231 | false | 0 | 0.038462 | 0.076923 | 0.692308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
867259bc377f0dc64ef6ea3a154fe7023103a89d | 51,739 | py | Python | src/sage/combinat/sf/sf.py | drvinceknight/sage | 00199fb220aa173d8585b9e90654dafd3247d82d | [
"BSL-1.0"
] | 2 | 2015-08-11T05:05:47.000Z | 2019-05-15T17:27:25.000Z | src/sage/combinat/sf/sf.py | kaushik94/sage | 00199fb220aa173d8585b9e90654dafd3247d82d | [
"BSL-1.0"
] | null | null | null | src/sage/combinat/sf/sf.py | kaushik94/sage | 00199fb220aa173d8585b9e90654dafd3247d82d | [
"BSL-1.0"
] | 1 | 2020-07-24T12:04:03.000Z | 2020-07-24T12:04:03.000Z | """
Symmetric functions, with their multiple realizations
"""
#*****************************************************************************
# Copyright (C) 2007 Mike Hansen <mhansen@gmail.com>
# 2009-2012 Jason Bandlow <jbandlow@gmail.com>
# 2012 Anne Schilling <anne at ma... | 37.329726 | 140 | 0.585477 | 7,531 | 51,739 | 3.991369 | 0.120037 | 0.015969 | 0.01018 | 0.005456 | 0.360924 | 0.282411 | 0.229682 | 0.193187 | 0.172228 | 0.135034 | 0 | 0.040748 | 0.294671 | 51,739 | 1,385 | 141 | 37.356679 | 0.782945 | 0.802683 | 0 | 0.016807 | 0 | 0 | 0.009883 | 0 | 0 | 0 | 0 | 0.004332 | 0.016807 | 1 | 0.210084 | false | 0 | 0.176471 | 0 | 0.672269 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
8675c8c5e86ac10bb03d23826def9bd5917b7d31 | 91 | py | Python | tests/settings.py | Olerdrive/lucyfer | 548d122f72f30aa658a8d844e319bd9feab8ae6a | [
"MIT"
] | 5 | 2019-09-02T12:15:17.000Z | 2020-03-07T12:54:36.000Z | tests/settings.py | Olerdrive/lucyfer | 548d122f72f30aa658a8d844e319bd9feab8ae6a | [
"MIT"
] | 19 | 2019-08-12T12:00:13.000Z | 2019-11-11T14:14:38.000Z | tests/settings.py | Olerdrive/lucyfer | 548d122f72f30aa658a8d844e319bd9feab8ae6a | [
"MIT"
] | 3 | 2019-10-24T16:45:27.000Z | 2020-03-05T09:48:45.000Z | LUCYFER_SETTINGS = {
"SAVED_SEARCHES_ENABLE": False,
"SAVED_SEARCHES_KEY": None,
}
| 18.2 | 35 | 0.703297 | 10 | 91 | 5.9 | 0.8 | 0.440678 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.175824 | 91 | 4 | 36 | 22.75 | 0.786667 | 0 | 0 | 0 | 0 | 0 | 0.428571 | 0.230769 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
869a10978a36aa0ec09fb0893830708008c7185c | 2,126 | py | Python | tests/test_cli_spec.py | rai-project/scope_plot | e7fc1629f89fc48f820a1bce45bcc552d259e290 | [
"Apache-2.0"
] | null | null | null | tests/test_cli_spec.py | rai-project/scope_plot | e7fc1629f89fc48f820a1bce45bcc552d259e290 | [
"Apache-2.0"
] | 8 | 2018-08-13T20:27:48.000Z | 2018-08-30T11:40:32.000Z | tests/test_cli_spec.py | c3sr/scope_plot | e7fc1629f89fc48f820a1bce45bcc552d259e290 | [
"Apache-2.0"
] | null | null | null | import os
import pytest
from scope_plot import cli
pytest_plugins = ["pytester"]
FIXTURES_DIR = os.path.join(
os.path.dirname(os.path.realpath(__file__)), "..", "__fixtures")
@pytest.fixture
def run(testdir):
def do_run(*args):
args = ["scope_plot", "--debug"] + list(args)
return testdir._r... | 23.622222 | 81 | 0.676388 | 295 | 2,126 | 4.562712 | 0.152542 | 0.114413 | 0.086924 | 0.120357 | 0.753343 | 0.739227 | 0.720654 | 0.543091 | 0.204309 | 0.169391 | 0 | 0.0053 | 0.201317 | 2,126 | 89 | 82 | 23.88764 | 0.787397 | 0 | 0 | 0.40678 | 0 | 0 | 0.137818 | 0.044214 | 0 | 0 | 0 | 0 | 0.152542 | 1 | 0.254237 | false | 0 | 0.050847 | 0 | 0.40678 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 3 |
86a56bf132ec9905600491082d231a8ff09388f0 | 265 | py | Python | front/utils.py | etalab-ia/pdf_api | adfb1d54d66e794073285b91fcc86f70e33c02ae | [
"MIT"
] | null | null | null | front/utils.py | etalab-ia/pdf_api | adfb1d54d66e794073285b91fcc86f70e33c02ae | [
"MIT"
] | null | null | null | front/utils.py | etalab-ia/pdf_api | adfb1d54d66e794073285b91fcc86f70e33c02ae | [
"MIT"
] | null | null | null | import os
import streamlit as st
def save_uploaded_file(uploaded_file, path):
with open(os.path.join(path, uploaded_file.name), "wb") as f:
f.write(uploaded_file.getbuffer())
return st.success("Saved File:{} to {}".format(uploaded_file.name, path)) | 37.857143 | 77 | 0.716981 | 41 | 265 | 4.487805 | 0.560976 | 0.326087 | 0.173913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.143396 | 265 | 7 | 77 | 37.857143 | 0.810573 | 0 | 0 | 0 | 0 | 0 | 0.078947 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
86b83db1a4475c35a6d2678493f7612ed5e4b36c | 2,240 | py | Python | ldap_peoples/form_fields.py | fx74/django-ldap-academia-ou-manager | c5bffa963e389f970e1a8e257fe107ebbc201b54 | [
"BSD-2-Clause"
] | 16 | 2019-01-13T10:37:20.000Z | 2021-11-25T09:51:19.000Z | ldap_peoples/form_fields.py | fx74/django-ldap-academia-ou-manager | c5bffa963e389f970e1a8e257fe107ebbc201b54 | [
"BSD-2-Clause"
] | 1 | 2020-12-03T11:48:45.000Z | 2020-12-03T11:48:45.000Z | ldap_peoples/form_fields.py | fx74/django-ldap-academia-ou-manager | c5bffa963e389f970e1a8e257fe107ebbc201b54 | [
"BSD-2-Clause"
] | 4 | 2019-01-17T14:50:33.000Z | 2020-12-03T11:47:05.000Z | from django import forms
from django.core import validators
from django.utils.translation import ugettext_lazy as _
class ListField(forms.Field):
def has_changed(self, initial, data):
"""Return True if data differs from initial."""
# Always return False if the field is disabled since self.bound_da... | 32.463768 | 76 | 0.612946 | 259 | 2,240 | 5.169884 | 0.397683 | 0.035848 | 0.017924 | 0.019417 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.291964 | 2,240 | 68 | 77 | 32.941176 | 0.844262 | 0.507589 | 0 | 0.1 | 0 | 0 | 0.006598 | 0 | 0 | 0 | 0 | 0.014706 | 0 | 1 | 0.05 | false | 0.1 | 0.15 | 0 | 0.55 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
86c85487bdd6c4b71d56f86b754f528eae27ea0d | 99 | py | Python | JuneLong19/xortest.py | mayank-kumar-giri/Competitive-Coding | 4cd26ede051bad15bf25cfd037317c313b607507 | [
"MIT"
] | null | null | null | JuneLong19/xortest.py | mayank-kumar-giri/Competitive-Coding | 4cd26ede051bad15bf25cfd037317c313b607507 | [
"MIT"
] | null | null | null | JuneLong19/xortest.py | mayank-kumar-giri/Competitive-Coding | 4cd26ede051bad15bf25cfd037317c313b607507 | [
"MIT"
] | null | null | null | n = 95
for i in range(1,1000):
a = n ^ i
print(bin(a),a)
print(i,bin(n),n)
print() | 14.142857 | 23 | 0.484848 | 21 | 99 | 2.285714 | 0.52381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102941 | 0.313131 | 99 | 7 | 24 | 14.142857 | 0.602941 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
86de7ae33a8de99b470fdd69c5cb0a9fbc95628a | 714 | py | Python | transition.py | RaghubirChimni/LogGenerator | fc7a52ddad15b0885d9f14ffe2d3f017fac63b01 | [
"MIT"
] | 1 | 2019-06-11T20:32:04.000Z | 2019-06-11T20:32:04.000Z | transition.py | GabrielSiq/LogGenerator | c3103059bc9a8088d760d756836f6fd0a0b49cd0 | [
"MIT"
] | null | null | null | transition.py | GabrielSiq/LogGenerator | c3103059bc9a8088d760d756836f6fd0a0b49cd0 | [
"MIT"
] | 2 | 2020-11-16T18:54:15.000Z | 2021-01-22T22:18:59.000Z | from typing import Union, Tuple
from duration import Duration
class Transition:
# Initialization and instance variables
def __init__(self, source: str, destination: str, sgate: str = None, dgate: str = None, distribution: Union[dict, int] = 0) -> None:
self.source = source
self.source_gate = s... | 34 | 136 | 0.665266 | 87 | 714 | 5.321839 | 0.482759 | 0.12959 | 0.112311 | 0.12959 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001818 | 0.229692 | 714 | 20 | 137 | 35.7 | 0.84 | 0.095238 | 0 | 0 | 0 | 0 | 0.012461 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.153846 | 0.153846 | 0.615385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 1 | 0 | 0 | 3 |
86e56f2059cbc90d0370dd853a96bccd5507662e | 8,973 | py | Python | tests/test_csv_file.py | changrunner/zeppos_csv | 5b55619bb3baec4c1a676d904bec4fd573d220a9 | [
"Apache-2.0"
] | null | null | null | tests/test_csv_file.py | changrunner/zeppos_csv | 5b55619bb3baec4c1a676d904bec4fd573d220a9 | [
"Apache-2.0"
] | null | null | null | tests/test_csv_file.py | changrunner/zeppos_csv | 5b55619bb3baec4c1a676d904bec4fd573d220a9 | [
"Apache-2.0"
] | null | null | null | import unittest
from zeppos_csv.csv_file import CsvFile
from tests.util_for_testing import UtilForTesting
from zeppos_bcpy.sql_configuration import SqlConfiguration
import os
from zeppos_logging.app_logger import AppLogger
import pandas as pd
from pandas._testing import assert_frame_equal
class TestProjectMethods(unit... | 50.694915 | 149 | 0.690516 | 1,170 | 8,973 | 4.863248 | 0.133333 | 0.063269 | 0.088576 | 0.104042 | 0.78348 | 0.745343 | 0.700879 | 0.688225 | 0.637961 | 0.617926 | 0 | 0.02225 | 0.188566 | 8,973 | 176 | 150 | 50.982955 | 0.759236 | 0.005126 | 0 | 0.279412 | 0 | 0.007353 | 0.125297 | 0.053925 | 0 | 0 | 0 | 0 | 0.220588 | 1 | 0.169118 | false | 0 | 0.058824 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 3 |
86eab53612ebaf581b877e4e75d7e2dc2f2e2320 | 103 | py | Python | lib/tx.py | tildecross/tx | c59d5f18f95160d6eaaafaeff0e8f02b132bcc7b | [
"BSD-3-Clause"
] | null | null | null | lib/tx.py | tildecross/tx | c59d5f18f95160d6eaaafaeff0e8f02b132bcc7b | [
"BSD-3-Clause"
] | null | null | null | lib/tx.py | tildecross/tx | c59d5f18f95160d6eaaafaeff0e8f02b132bcc7b | [
"BSD-3-Clause"
] | null | null | null | from core import Core
class Tx:
def __init__(self):
self.core = Core()
tx = Tx()
| 12.875 | 26 | 0.543689 | 14 | 103 | 3.714286 | 0.571429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.349515 | 103 | 7 | 27 | 14.714286 | 0.776119 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
86fd210a10933ec93d4a4b2c057f9647b3353006 | 459 | py | Python | beamer/config.py | beamer-bridge/beamer | 79e9c8abdff1e05febf0ac9af0f4308290010604 | [
"MIT"
] | 2 | 2022-03-29T16:51:52.000Z | 2022-03-30T13:23:23.000Z | beamer/config.py | beamer-bridge/beamer | 79e9c8abdff1e05febf0ac9af0f4308290010604 | [
"MIT"
] | 56 | 2022-03-25T09:12:42.000Z | 2022-03-31T14:01:54.000Z | beamer/config.py | beamer-bridge/beamer | 79e9c8abdff1e05febf0ac9af0f4308290010604 | [
"MIT"
] | null | null | null | from dataclasses import dataclass
from pathlib import Path
from typing import Optional
from eth_account.signers.local import LocalAccount
from beamer.contracts import DeploymentInfo
from beamer.typing import URL
@dataclass
class Config:
account: LocalAccount
deployment_info: DeploymentInfo
l1_rpc_url: U... | 21.857143 | 50 | 0.793028 | 62 | 459 | 5.645161 | 0.564516 | 0.051429 | 0.077143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007895 | 0.172113 | 459 | 20 | 51 | 22.95 | 0.913158 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.375 | 0 | 0.9375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 1 | 0 | 0 | 3 |
8104b4bdce0eba8be4737fc520b6ace52e05d736 | 5,054 | py | Python | panflute/containers.py | robert-shade/panflute | 6df0a347b00f361df9b0067cdcf2c6492f479377 | [
"BSD-3-Clause"
] | null | null | null | panflute/containers.py | robert-shade/panflute | 6df0a347b00f361df9b0067cdcf2c6492f479377 | [
"BSD-3-Clause"
] | null | null | null | panflute/containers.py | robert-shade/panflute | 6df0a347b00f361df9b0067cdcf2c6492f479377 | [
"BSD-3-Clause"
] | null | null | null | """
These containers keep track of the identity of the parent
object, and the attribute of the parent object that they correspond to.
"""
# ---------------------------
# Imports
# ---------------------------
import sys
py2 = sys.version_info[0] == 2
if py2: str = basestring
if py2:
from collections import Ordere... | 29.905325 | 197 | 0.622477 | 646 | 5,054 | 4.687307 | 0.252322 | 0.02642 | 0.023778 | 0.010898 | 0.356341 | 0.356341 | 0.341149 | 0.341149 | 0.292602 | 0.259577 | 0 | 0.003405 | 0.244559 | 5,054 | 168 | 198 | 30.083333 | 0.78968 | 0.348635 | 0 | 0.284091 | 0 | 0 | 0.033743 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.056818 | 0.125 | 0.568182 | 0.011364 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 1 | 0 | 0 | 3 |
81052ab68524c0862cd11da15370bdda191089a4 | 140 | py | Python | django/CVE-2021-35042/web/vuln/apps.py | nobgr/vulhub | b24a89459fbd98ba76881adb6d4e2fb376792863 | [
"MIT"
] | 9,681 | 2017-09-16T12:31:59.000Z | 2022-03-31T23:49:31.000Z | django/CVE-2021-35042/web/vuln/apps.py | starkxun/vulhub | e5c1b204a6bf1e27d654569ec963329486f230e6 | [
"MIT"
] | 180 | 2017-11-01T08:05:07.000Z | 2022-03-31T05:26:33.000Z | django/CVE-2021-35042/web/vuln/apps.py | starkxun/vulhub | e5c1b204a6bf1e27d654569ec963329486f230e6 | [
"MIT"
] | 3,399 | 2017-09-16T12:21:54.000Z | 2022-03-31T12:28:48.000Z | from django.apps import AppConfig
class VulnConfig(AppConfig):
name = 'vuln'
default_auto_field = 'django.db.models.BigAutoField'
| 20 | 56 | 0.75 | 17 | 140 | 6.058824 | 0.882353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157143 | 140 | 6 | 57 | 23.333333 | 0.872881 | 0 | 0 | 0 | 0 | 0 | 0.235714 | 0.207143 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
811fb08146675ce608fef97368865a1b0650aaa2 | 80 | py | Python | the-python-standard-library-by-example/calendar/calendar_textcalendar.py | gottaegbert/penter | 8cbb6be3c4bf67c7c69fa70e597bfbc3be4f0a2d | [
"MIT"
] | 13 | 2020-01-04T07:37:38.000Z | 2021-08-31T05:19:58.000Z | the-python-standard-library-by-example/calendar/calendar_textcalendar.py | gottaegbert/penter | 8cbb6be3c4bf67c7c69fa70e597bfbc3be4f0a2d | [
"MIT"
] | 3 | 2020-06-05T22:42:53.000Z | 2020-08-24T07:18:54.000Z | the-python-standard-library-by-example/calendar/calendar_textcalendar.py | gottaegbert/penter | 8cbb6be3c4bf67c7c69fa70e597bfbc3be4f0a2d | [
"MIT"
] | 9 | 2020-10-19T04:53:06.000Z | 2021-08-31T05:20:01.000Z |
import calendar
c = calendar.TextCalendar(calendar.SUNDAY)
c.prmonth(2017, 7)
| 13.333333 | 42 | 0.775 | 11 | 80 | 5.636364 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070423 | 0.1125 | 80 | 5 | 43 | 16 | 0.802817 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
81330c931de8a17bf78139d00524331d06347cce | 936 | py | Python | python/ds/heightBinaryTree.py | unhingedporter/DataStructureMustKnow | 3c5b3225afa2775d37a2ff90121f73208717640a | [
"MIT"
] | 3 | 2019-11-23T08:43:58.000Z | 2019-11-23T08:52:53.000Z | python/ds/heightBinaryTree.py | unhingedpotter/DSMustKnow | 64958cbbbb3f4cdb1104c2255e555233554503f9 | [
"MIT"
] | null | null | null | python/ds/heightBinaryTree.py | unhingedpotter/DSMustKnow | 64958cbbbb3f4cdb1104c2255e555233554503f9 | [
"MIT"
] | null | null | null | # Find height of a given binary tree
class Node():
def __init__(self, value):
self.left = None
self.right = None
self.value = value
class Tree():
def height(self, node: Node):
if node is None or (node.left is None and node.right is None):
return 0
else:... | 21.272727 | 71 | 0.634615 | 160 | 936 | 3.6125 | 0.25 | 0.221453 | 0.207612 | 0.16609 | 0.307958 | 0.307958 | 0.195502 | 0.179931 | 0.153979 | 0.153979 | 0 | 0.040334 | 0.231838 | 936 | 43 | 72 | 21.767442 | 0.763561 | 0.064103 | 0 | 0 | 0 | 0 | 0.050401 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0 | 0 | 0.214286 | 0.035714 | 0 | 0 | 0 | null | 1 | 1 | 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 | 3 |
813df2208329c1eed93b0b636e383fdd4e7a6884 | 2,077 | py | Python | orders/models.py | falconsoft3d/clientportal_shop | bc09eda46cb42bbc490dfc6d958250ec000073b5 | [
"MIT"
] | 5 | 2022-03-14T21:15:20.000Z | 2022-03-22T10:11:58.000Z | orders/models.py | falconsoft3d/clientportal_shop | bc09eda46cb42bbc490dfc6d958250ec000073b5 | [
"MIT"
] | null | null | null | orders/models.py | falconsoft3d/clientportal_shop | bc09eda46cb42bbc490dfc6d958250ec000073b5 | [
"MIT"
] | null | null | null | from django.db import models
from accounts.models import Account
from store.models import Product
class Order(models.Model):
STATUS = (
('New', 'Nuevo'),
('Accepted', 'Aceptado'),
('Completed', 'Completado'),
('Cancel', 'Cancelado'),
)
user = models.ForeignKey(Account, on_... | 35.20339 | 75 | 0.714011 | 265 | 2,077 | 5.381132 | 0.29434 | 0.136746 | 0.151473 | 0.201964 | 0.47195 | 0.2777 | 0.235624 | 0.235624 | 0.168303 | 0.168303 | 0 | 0.01922 | 0.173327 | 2,077 | 58 | 76 | 35.810345 | 0.811299 | 0 | 0 | 0.125 | 0 | 0 | 0.065479 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.104167 | false | 0 | 0.0625 | 0.104167 | 0.895833 | 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 | 1 | 1 | 0 | 0 | 3 |
d49cd26aa57849731f642d65c31a4c763b7dff77 | 87 | py | Python | rusel/base/dir_forms.py | ruslan-ok/ruslan | fc402e53d2683581e13f4d6c69a6f21e5c2ca1f8 | [
"MIT"
] | null | null | null | rusel/base/dir_forms.py | ruslan-ok/ruslan | fc402e53d2683581e13f4d6c69a6f21e5c2ca1f8 | [
"MIT"
] | null | null | null | rusel/base/dir_forms.py | ruslan-ok/ruslan | fc402e53d2683581e13f4d6c69a6f21e5c2ca1f8 | [
"MIT"
] | null | null | null | from django import forms
class UploadForm(forms.Form):
upload = forms.FileField()
| 17.4 | 30 | 0.747126 | 11 | 87 | 5.909091 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16092 | 87 | 4 | 31 | 21.75 | 0.890411 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
d4a4d2f9c7dcf14b818e14bd146d3520a0c0d7ee | 137 | py | Python | func/python/bench_mdp.py | J-Heinemann/faasm | 6a7472d73ef7cc18e63617c72715c8775afd11a9 | [
"Apache-2.0"
] | 1 | 2020-04-21T07:33:42.000Z | 2020-04-21T07:33:42.000Z | func/python/bench_mdp.py | J-Heinemann/faasm | 6a7472d73ef7cc18e63617c72715c8775afd11a9 | [
"Apache-2.0"
] | 4 | 2020-02-03T18:54:32.000Z | 2020-05-13T18:28:28.000Z | func/python/bench_mdp.py | J-Heinemann/faasm | 6a7472d73ef7cc18e63617c72715c8775afd11a9 | [
"Apache-2.0"
] | null | null | null | from pyperformance.benchmarks.bm_mdp import bench_mdp
def faasm_main():
bench_mdp(1)
if __name__ == "__main__":
faasm_main()
| 13.7 | 53 | 0.722628 | 19 | 137 | 4.526316 | 0.684211 | 0.186047 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00885 | 0.175182 | 137 | 9 | 54 | 15.222222 | 0.752212 | 0 | 0 | 0 | 0 | 0 | 0.058394 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | true | 0 | 0.2 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.