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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
382cf687ce0063053c8db2784ba08466ebc8756a | 1,391 | py | Python | src/DataCamp/IntoToPython/ch_01.py | bmoretz/Python-Playground | a367ec7659b85c24363c21b5c0ac25db08ffa1f6 | [
"MIT"
] | null | null | null | src/DataCamp/IntoToPython/ch_01.py | bmoretz/Python-Playground | a367ec7659b85c24363c21b5c0ac25db08ffa1f6 | [
"MIT"
] | null | null | null | src/DataCamp/IntoToPython/ch_01.py | bmoretz/Python-Playground | a367ec7659b85c24363c21b5c0ac25db08ffa1f6 | [
"MIT"
] | null | null | null | # Example, do not modify!
print(5 / 8)
# Put code below here
5 / 8
print( 7 + 10 )
# Just testing division
print(5 / 8)
# Addition works too.
print(7 + 10)
# Addition and subtraction
print(5 + 5)
print(5 - 5)
# Multiplication and division
print(3 * 5)
print(10 / 2)
# Exponentiation
print(4 ** 2)
# Modulo
print(... | 16.559524 | 89 | 0.696621 | 211 | 1,391 | 4.563981 | 0.369668 | 0.036345 | 0.077882 | 0.045691 | 0.066459 | 0.066459 | 0 | 0 | 0 | 0 | 0 | 0.066123 | 0.206326 | 1,391 | 84 | 90 | 16.559524 | 0.806159 | 0.479511 | 0 | 0.3125 | 0 | 0 | 0.120344 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
383237e8d66382ad5e326e6f9a78d1f91394ce2c | 582 | py | Python | setup.py | savourylie/dstk | 3ed5d87b8f52d845845919947a6dc68702272cce | [
"MIT"
] | null | null | null | setup.py | savourylie/dstk | 3ed5d87b8f52d845845919947a6dc68702272cce | [
"MIT"
] | null | null | null | setup.py | savourylie/dstk | 3ed5d87b8f52d845845919947a6dc68702272cce | [
"MIT"
] | 1 | 2018-04-20T03:15:01.000Z | 2018-04-20T03:15:01.000Z | from distutils.core import setup
setup(
name = 'dstk',
packages = ['dstk'], # this must be the same as the name above
version = '0.1',
description = 'A toolkit for data scientists.',
author = 'Calvin Ku',
author_email = 'calvin.j.ku@googlemail.com',
url = 'https://github.com/savourylie/dstk.git', # use t... | 38.8 | 105 | 0.678694 | 84 | 582 | 4.666667 | 0.690476 | 0.010204 | 0.071429 | 0.086735 | 0.158163 | 0.158163 | 0 | 0 | 0 | 0 | 0 | 0.016461 | 0.164948 | 582 | 15 | 106 | 38.8 | 0.790123 | 0.204467 | 0 | 0 | 0 | 0 | 0.440087 | 0.056645 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.071429 | 0 | 0.071429 | 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 |
3836d3a0d4df23820c8978cb2c09393d83188b83 | 896 | py | Python | pickled.py | DannyRyanFisher/RoboND-Kinematics-Project2 | 9f9b002520ce054fd313552986271442f57e3e9b | [
"MIT"
] | null | null | null | pickled.py | DannyRyanFisher/RoboND-Kinematics-Project2 | 9f9b002520ce054fd313552986271442f57e3e9b | [
"MIT"
] | null | null | null | pickled.py | DannyRyanFisher/RoboND-Kinematics-Project2 | 9f9b002520ce054fd313552986271442f57e3e9b | [
"MIT"
] | null | null | null | ### Script designed to generate a pickle file from forward kinematics object FK
### in Forward_Kinematics.py
from time import time
import pickle
start_time = time()
from Forward_Kinematics import FK
# Pickle FK
pickle_out = open("FK.pickle", "wb")
pickle.dump(FK, pickle_out)
pickle_out.close()
# Unpickle FK
pickle... | 19.478261 | 79 | 0.680804 | 129 | 896 | 4.604651 | 0.310078 | 0.107744 | 0.070707 | 0.060606 | 0.151515 | 0.151515 | 0.151515 | 0.151515 | 0.151515 | 0.151515 | 0 | 0.005135 | 0.13058 | 896 | 45 | 80 | 19.911111 | 0.757381 | 0.354911 | 0 | 0.117647 | 1 | 0 | 0.092742 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.235294 | 0 | 0.235294 | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
384111e13e08fdaf6047616a59f4fc39aeebe282 | 716 | py | Python | app/products/migrations/0006_auto_20161027_1427.py | uktrade/navigator | 5b5831ce647218ff90d53f9cc4cf1d6ca6f55c8b | [
"MIT"
] | 2 | 2017-09-29T01:02:25.000Z | 2021-08-05T07:35:09.000Z | app/products/migrations/0006_auto_20161027_1427.py | uktrade/navigator | 5b5831ce647218ff90d53f9cc4cf1d6ca6f55c8b | [
"MIT"
] | 60 | 2016-09-02T14:55:49.000Z | 2022-03-14T13:54:23.000Z | app/products/migrations/0006_auto_20161027_1427.py | uktrade/navigator | 5b5831ce647218ff90d53f9cc4cf1d6ca6f55c8b | [
"MIT"
] | 3 | 2017-05-05T12:22:45.000Z | 2020-06-04T16:39:52.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-10-27 14:27
from __future__ import unicode_literals
from django.db import migrations
from core.utils import delete_model_duplicates
def delete_duplicates(apps, schema_editor):
Model = apps.get_model('products', 'Category')
delete_model_duplicates(Mo... | 26.518519 | 56 | 0.710894 | 86 | 716 | 5.662791 | 0.523256 | 0.090349 | 0.172485 | 0.104723 | 0.338809 | 0.225873 | 0.225873 | 0.225873 | 0.225873 | 0.225873 | 0 | 0.053872 | 0.170391 | 716 | 26 | 57 | 27.538462 | 0.765993 | 0.093575 | 0 | 0.176471 | 1 | 0 | 0.143963 | 0.035604 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.176471 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
38418eff279cf611488eefa3d45156528890331e | 5,532 | py | Python | redfilecli.py | kouritron/redfile | d235445261c0f864f467f39b15fa6e534ea45001 | [
"BSD-3-Clause"
] | 1 | 2022-01-09T11:20:22.000Z | 2022-01-09T11:20:22.000Z | redfilecli.py | kouritron/redfile | d235445261c0f864f467f39b15fa6e534ea45001 | [
"BSD-3-Clause"
] | 3 | 2021-12-20T03:35:32.000Z | 2021-12-20T03:38:49.000Z | redfilecli.py | kouritron/redfile | d235445261c0f864f467f39b15fa6e534ea45001 | [
"BSD-3-Clause"
] | null | null | null |
import os
import sys
import getopt
from librf import arkivemanager
def _get_current_version():
version = None
try:
import librf._version as vm
version = vm.__version__
except:
pass
if not version:
version = 'unknown'
return version
def _progress_report_call... | 31.254237 | 120 | 0.596349 | 701 | 5,532 | 4.533524 | 0.278174 | 0.053178 | 0.024544 | 0.025173 | 0.268093 | 0.20516 | 0.167086 | 0.146948 | 0.146948 | 0.146948 | 0 | 0.009512 | 0.277838 | 5,532 | 176 | 121 | 31.431818 | 0.785982 | 0.225235 | 0 | 0.303922 | 0 | 0.009804 | 0.203848 | 0.052606 | 0 | 0 | 0 | 0.005682 | 0 | 0 | null | null | 0.029412 | 0.04902 | null | null | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3842ea2b47a34f7d49abb2340d79662e97807666 | 472 | py | Python | pythonProj/FZPython/taskCenter/dailyTickData.py | iHamburg/FZQuant | 86b750ec33d01badfd3f324d6f1599118b9bf8ff | [
"MIT"
] | null | null | null | pythonProj/FZPython/taskCenter/dailyTickData.py | iHamburg/FZQuant | 86b750ec33d01badfd3f324d6f1599118b9bf8ff | [
"MIT"
] | null | null | null | pythonProj/FZPython/taskCenter/dailyTickData.py | iHamburg/FZQuant | 86b750ec33d01badfd3f324d6f1599118b9bf8ff | [
"MIT"
] | 2 | 2019-04-10T10:05:00.000Z | 2021-11-24T17:17:23.000Z | """
获取实时盘口数据
"""
import tushare as ts
from pymongo import MongoClient
import json
import time
stockList = ['600196','601933','600703']
# 根据stock列表获得实时数据,
df = ts.get_realtime_quotes(stockList) #Single stock symbol
# print(df)
# conn = MongoClient('121.42.26.144', 27017)
while True:
# 每隔3秒执行一次数据
time.sleep(... | 20.521739 | 71 | 0.713983 | 64 | 472 | 5.1875 | 0.640625 | 0.024096 | 0.042169 | 0.090361 | 0.349398 | 0.349398 | 0.349398 | 0.349398 | 0.349398 | 0.349398 | 0 | 0.087282 | 0.150424 | 472 | 23 | 71 | 20.521739 | 0.740648 | 0.411017 | 0 | 0.2 | 0 | 0 | 0.067925 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
6977fba5eaccaa4b3eeea67d5855cb5338479dcb | 2,121 | py | Python | main.py | kareem2048/mine-sweeper-robot | 339ef937cd45299a7d373514801e59c8fb91ec8b | [
"Apache-2.0"
] | 3 | 2017-11-30T13:42:02.000Z | 2017-12-21T20:24:23.000Z | main.py | kareem2048/mine-sweeper-robot | 339ef937cd45299a7d373514801e59c8fb91ec8b | [
"Apache-2.0"
] | null | null | null | main.py | kareem2048/mine-sweeper-robot | 339ef937cd45299a7d373514801e59c8fb91ec8b | [
"Apache-2.0"
] | null | null | null | import getopt
from tkinter import *
from mine_sweeper.view.menu import Menu
from mine_sweeper.controller.ai_controller import AiController
from mine_sweeper.view.board import Board
from mine_sweeper.controller.game_board import GameBoard
'''
list of params:
-c : start in console mode (N... | 33.666667 | 85 | 0.527581 | 248 | 2,121 | 4.366935 | 0.415323 | 0.041551 | 0.055402 | 0.052632 | 0.10157 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021887 | 0.375295 | 2,121 | 62 | 86 | 34.209677 | 0.795472 | 0.15983 | 0 | 0.04878 | 0 | 0 | 0.039718 | 0 | 0 | 0 | 0 | 0.016129 | 0 | 1 | 0 | false | 0.02439 | 0.146341 | 0 | 0.146341 | 0.097561 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
697997000eb7daaf4b1f008180e5945a17e8648e | 283 | py | Python | twtrexcs/tests/test_excuse.py | jtprog/twitter-excuse | e8bd40f798c3713584cfe025c4a10583b9c494aa | [
"WTFPL"
] | 1 | 2021-01-13T12:31:05.000Z | 2021-01-13T12:31:05.000Z | twtrexcs/tests/test_excuse.py | jtprog/twitter-excuse | e8bd40f798c3713584cfe025c4a10583b9c494aa | [
"WTFPL"
] | 1 | 2021-09-03T13:00:19.000Z | 2021-09-03T15:58:51.000Z | twtrexcs/tests/test_excuse.py | jtprogru/twitter-excuse | e8bd40f798c3713584cfe025c4a10583b9c494aa | [
"WTFPL"
] | null | null | null | # coding=utf-8
from twtrexcs.helpers import get_excuse, get_hashtag
def test_get_hashtag():
assert isinstance(get_hashtag(), str)
def test_get_excuse():
assert isinstance(get_excuse(), str)
def test_length_twitt():
resp = get_excuse()
assert len(resp) <= 280
| 15.722222 | 52 | 0.713781 | 40 | 283 | 4.775 | 0.5 | 0.188482 | 0.104712 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017167 | 0.176678 | 283 | 17 | 53 | 16.647059 | 0.802575 | 0.042403 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.375 | 1 | 0.375 | false | 0 | 0.125 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
69799eaf8bbf76284ffa302113e4eb0d4a69f54f | 1,643 | py | Python | src/users/models.py | earth-emoji/love | 3617bd47c396803c411e136b3e1de87c18e03890 | [
"BSD-2-Clause"
] | null | null | null | src/users/models.py | earth-emoji/love | 3617bd47c396803c411e136b3e1de87c18e03890 | [
"BSD-2-Clause"
] | 7 | 2021-03-19T10:46:09.000Z | 2022-03-12T00:28:55.000Z | src/users/models.py | earth-emoji/love | 3617bd47c396803c411e136b3e1de87c18e03890 | [
"BSD-2-Clause"
] | null | null | null | """
models.py
"""
import uuid
from django.contrib.auth.models import AbstractUser
from django.db import models
from django.utils.translation import ugettext_lazy as _
from .managers import AppUserManager
def user_directory_path(instance, filename):
# file will be uploaded to MEDIA_ROOT/user_id/<filename>
retu... | 31 | 91 | 0.690201 | 205 | 1,643 | 5.35122 | 0.453659 | 0.065634 | 0.059253 | 0.04649 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006798 | 0.194157 | 1,643 | 52 | 92 | 31.596154 | 0.821752 | 0.113816 | 0 | 0.055556 | 0 | 0 | 0.060858 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.138889 | 0.111111 | 0.805556 | 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 |
697ec24781a702058a8d3e54edf995216043167e | 588 | py | Python | soccer/gameplay/plays/testing/test_mark.py | Alex-Gurung/robocup-software | 9271df5ed16928f0081fc81c50affb0a08dd54bd | [
"Apache-2.0"
] | 1 | 2019-09-24T22:59:25.000Z | 2019-09-24T22:59:25.000Z | soccer/gameplay/plays/testing/test_mark.py | Alex-Gurung/robocup-software | 9271df5ed16928f0081fc81c50affb0a08dd54bd | [
"Apache-2.0"
] | null | null | null | soccer/gameplay/plays/testing/test_mark.py | Alex-Gurung/robocup-software | 9271df5ed16928f0081fc81c50affb0a08dd54bd | [
"Apache-2.0"
] | null | null | null | import play
import behavior
import skills.mark
import robocup
import main
class TestMark(play.Play):
def __init__(self):
super().__init__(continuous=True)
self.add_transition(behavior.Behavior.State.start,
behavior.Behavior.State.running, lambda: True,
... | 26.727273 | 74 | 0.634354 | 69 | 588 | 5.15942 | 0.492754 | 0.05618 | 0.117978 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002304 | 0.261905 | 588 | 21 | 75 | 28 | 0.817972 | 0 | 0 | 0 | 0 | 0 | 0.032313 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.294118 | 0 | 0.529412 | 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 |
69828f192e78243c247bed3824ff5b60ced25721 | 10,453 | py | Python | src/sphinx_glossary/docutils_.py | chrisjsewell/sphinx-glossary | c5ce71d776774b35e26b756afaac8f2d0d50992c | [
"MIT"
] | 3 | 2022-01-11T02:22:50.000Z | 2022-02-07T22:07:28.000Z | src/sphinx_glossary/docutils_.py | chrisjsewell/sphinx-glossary | c5ce71d776774b35e26b756afaac8f2d0d50992c | [
"MIT"
] | null | null | null | src/sphinx_glossary/docutils_.py | chrisjsewell/sphinx-glossary | c5ce71d776774b35e26b756afaac8f2d0d50992c | [
"MIT"
] | null | null | null | """Define docutils elements.
This module intentionally does not import anything from sphinx.
References:
- https://docutils.sourceforge.io/docs/howto/rst-directives.html
"""
import re
from string import Formatter
from typing import TYPE_CHECKING, Any, Dict, List, Optional, Tuple
from docutils import nodes
from docut... | 35.314189 | 87 | 0.566058 | 1,176 | 10,453 | 4.931973 | 0.229592 | 0.018621 | 0.021724 | 0.022759 | 0.132759 | 0.115172 | 0.102759 | 0.084828 | 0.052069 | 0.037241 | 0 | 0.002424 | 0.329188 | 10,453 | 295 | 88 | 35.433898 | 0.824729 | 0.210275 | 0 | 0.162304 | 0 | 0 | 0.048273 | 0 | 0 | 0 | 0 | 0.010169 | 0.005236 | 1 | 0.068063 | false | 0 | 0.036649 | 0.005236 | 0.225131 | 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 |
69838ce0611a5acb726e78610e688b92ccc22cff | 6,698 | py | Python | karesansui/db/model/machine2jobgroup.py | Kairiw/karesansui | d5a3acfe40b3953fb4f8d6f51e30d0307309a6ee | [
"MIT"
] | 54 | 2015-01-09T16:49:34.000Z | 2022-02-03T10:08:30.000Z | karesansui/db/model/machine2jobgroup.py | Kairiw/karesansui | d5a3acfe40b3953fb4f8d6f51e30d0307309a6ee | [
"MIT"
] | 2 | 2016-02-22T08:23:36.000Z | 2021-05-10T04:13:01.000Z | karesansui/db/model/machine2jobgroup.py | Kairiw/karesansui | d5a3acfe40b3953fb4f8d6f51e30d0307309a6ee | [
"MIT"
] | 27 | 2015-08-21T13:33:49.000Z | 2021-11-19T02:56:20.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# This file is part of Karesansui Core.
#
# Copyright (C) 2009-2012 HDE, Inc.
#
# 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 restric... | 40.349398 | 100 | 0.556435 | 650 | 6,698 | 5.598462 | 0.310769 | 0.036274 | 0.051388 | 0.023083 | 0.281121 | 0.193735 | 0.155537 | 0.155537 | 0.155537 | 0.106073 | 0 | 0.006065 | 0.359958 | 6,698 | 165 | 101 | 40.593939 | 0.842781 | 0.320245 | 0 | 0.2 | 0 | 0 | 0.051781 | 0.00492 | 0 | 0 | 0 | 0.024242 | 0 | 1 | 0.053333 | false | 0 | 0.08 | 0.013333 | 0.173333 | 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 |
69840534ecb3c063dc016f9eea27b2537c4a2c45 | 2,784 | py | Python | encoding/scrub_page.py | madprime/wikipedia_squish | c3802b53b55545ae5499778ae940dab5acfaa769 | [
"MIT"
] | null | null | null | encoding/scrub_page.py | madprime/wikipedia_squish | c3802b53b55545ae5499778ae940dab5acfaa769 | [
"MIT"
] | null | null | null | encoding/scrub_page.py | madprime/wikipedia_squish | c3802b53b55545ae5499778ae940dab5acfaa769 | [
"MIT"
] | null | null | null | import json
import re
import sys
from unidecode import unidecode
def remove_lang_templates(string):
# Preserves text inside template, as it is displayed in the page.
re_str_lang = ur'{{lang\|.*?\|(.*?)}}'
return re.sub(re_str_lang, r'\1', string, re.U | re.S)
def remove_all_templates(string):
re_str_t... | 35.240506 | 76 | 0.617098 | 404 | 2,784 | 4.017327 | 0.195545 | 0.067776 | 0.04313 | 0.051756 | 0.421442 | 0.344424 | 0.294516 | 0.294516 | 0.294516 | 0.23167 | 0 | 0.002812 | 0.233477 | 2,784 | 78 | 77 | 35.692308 | 0.757732 | 0.050287 | 0 | 0.123077 | 0 | 0 | 0.061742 | 0.022348 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.061538 | null | null | 0.030769 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
698704ba43317a412bb6f775aa566d755ed3a203 | 1,787 | py | Python | src/tests/integration/test_rest_login.py | pradipta/back-end | 05895b051afc4c8e0cb17db708063d80102e9de5 | [
"MIT"
] | 17 | 2019-05-11T22:15:34.000Z | 2022-03-26T22:45:33.000Z | src/tests/integration/test_rest_login.py | pradipta/back-end | 05895b051afc4c8e0cb17db708063d80102e9de5 | [
"MIT"
] | 390 | 2019-05-23T10:48:57.000Z | 2021-12-17T21:01:43.000Z | src/tests/integration/test_rest_login.py | pradipta/back-end | 05895b051afc4c8e0cb17db708063d80102e9de5 | [
"MIT"
] | 40 | 2019-05-21T14:41:57.000Z | 2021-01-30T13:39:38.000Z | import pytest
from django.contrib.auth.models import User
from django.urls import reverse
from rest_framework.test import APIClient
from tests.test_data import DEFAULT_PASSWORD
def test_valid_rest_login(client: APIClient, user: User):
res = client.post(
reverse("rest_login"), {"email": user.email, "passw... | 32.490909 | 86 | 0.702294 | 237 | 1,787 | 5.135021 | 0.295359 | 0.059162 | 0.057518 | 0.065735 | 0.456039 | 0.411668 | 0.411668 | 0.411668 | 0.411668 | 0.362366 | 0 | 0.008108 | 0.171796 | 1,787 | 54 | 87 | 33.092593 | 0.814189 | 0.239508 | 0 | 0.241379 | 0 | 0 | 0.182021 | 0 | 0 | 0 | 0 | 0 | 0.37931 | 1 | 0.103448 | false | 0.241379 | 0.172414 | 0 | 0.275862 | 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 |
6988f51921ade2f7078f1835e78a060de3d462b7 | 3,549 | py | Python | YZU/utils.py | tomy0000000/YZU-Portal-API | 2628654a82770a1e783a25d326b9b770855dd0ca | [
"MIT"
] | 1 | 2019-09-09T14:53:48.000Z | 2019-09-09T14:53:48.000Z | YZU/utils.py | tomy0000000/YZU-Portal-API | 2628654a82770a1e783a25d326b9b770855dd0ca | [
"MIT"
] | null | null | null | YZU/utils.py | tomy0000000/YZU-Portal-API | 2628654a82770a1e783a25d326b9b770855dd0ca | [
"MIT"
] | null | null | null | """Helper Functions"""
import json
import bs4
import certifi
import urllib3
from .errors import PortalXKeyError
# TODO: Patch disable_warnings, see: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
# HTTP = urllib3.disable_warnings().PoolManager()
HTTP = urllib3.PoolManager(
cert_reqs="CERT... | 41.752941 | 120 | 0.582418 | 419 | 3,549 | 4.809069 | 0.393795 | 0.020844 | 0.035732 | 0.035732 | 0.315136 | 0.3067 | 0.255087 | 0.209429 | 0.209429 | 0.209429 | 0 | 0.018028 | 0.265427 | 3,549 | 84 | 121 | 42.25 | 0.754891 | 0.131868 | 0 | 0.260274 | 0 | 0.013699 | 0.202502 | 0 | 0 | 0 | 0 | 0.011905 | 0 | 1 | 0.09589 | false | 0 | 0.068493 | 0 | 0.260274 | 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 |
69936d53d853992fa297870b000ba8eabce6b5c6 | 2,882 | py | Python | websauna/system/core/traversal.py | stevepiercy/websauna | 2886b86f7920d75900c634958779d61aa73f011b | [
"CNRI-Python"
] | 286 | 2016-01-17T05:44:02.000Z | 2022-02-07T20:28:49.000Z | websauna/system/core/traversal.py | stevepiercy/websauna | 2886b86f7920d75900c634958779d61aa73f011b | [
"CNRI-Python"
] | 203 | 2016-03-15T02:00:53.000Z | 2021-09-27T10:48:49.000Z | websauna/system/core/traversal.py | ooduor/websauna | 2e78cd87eda305fbbb1080d386b8cf96537360e5 | [
"CNRI-Python"
] | 71 | 2016-01-17T11:04:26.000Z | 2021-08-24T08:04:31.000Z | """Traversing core logic."""
# Pyramid
from pyramid.interfaces import ILocation
from zope.interface import implementer
@implementer(ILocation)
class Resource:
"""Traversable resource in a nested tree hierarchy with basic breadcrumbs support.
All traverable context classes should inherit from this class. Note... | 40.027778 | 227 | 0.696044 | 382 | 2,882 | 5.115183 | 0.418848 | 0.024565 | 0.021494 | 0.023541 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001366 | 0.238029 | 2,882 | 71 | 228 | 40.591549 | 0.888434 | 0.61381 | 0 | 0 | 0 | 0 | 0.131498 | 0 | 0 | 0 | 0 | 0.014085 | 0.173913 | 1 | 0.130435 | false | 0 | 0.086957 | 0 | 0.347826 | 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 |
6993d564113bece6fa4760cd559bab8d79afcaba | 211 | py | Python | ex015_precoaluguel.py | elisamariacampos/MundoPhyton | f5d0308bd8af059eb36f18acf81b8b729cb8e401 | [
"MIT"
] | null | null | null | ex015_precoaluguel.py | elisamariacampos/MundoPhyton | f5d0308bd8af059eb36f18acf81b8b729cb8e401 | [
"MIT"
] | null | null | null | ex015_precoaluguel.py | elisamariacampos/MundoPhyton | f5d0308bd8af059eb36f18acf81b8b729cb8e401 | [
"MIT"
] | null | null | null | km = int(input('Qual a quantidade de km percorridos?'))
dias = int(input('Por quantos dias você alugou o carro?'))
pago = (dias * 60) + (km * 0.15)
print(f'O total do seu aluguel tem valor de R${pago :.2f}.')
| 30.142857 | 60 | 0.654028 | 38 | 211 | 3.631579 | 0.763158 | 0.115942 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034682 | 0.180095 | 211 | 6 | 61 | 35.166667 | 0.763006 | 0 | 0 | 0 | 0 | 0 | 0.588517 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
69992f94723c559720e212272c712c3692a6602b | 2,625 | py | Python | acrv_apc_2017_perception/src/refinenet/py_grabcut/py_grabcut.py | myalfred03/team_acrv_2017 | 9d3a28b4069262291fd28990676b69e90b06ac3a | [
"BSD-3-Clause"
] | 25 | 2017-11-24T19:04:51.000Z | 2020-08-27T06:25:49.000Z | acrv_apc_2017_perception/src/refinenet/py_grabcut/py_grabcut.py | myalfred03/team_acrv_2017 | 9d3a28b4069262291fd28990676b69e90b06ac3a | [
"BSD-3-Clause"
] | 3 | 2018-10-03T06:44:06.000Z | 2018-11-07T14:53:58.000Z | acrv_apc_2017_perception/src/refinenet/py_grabcut/py_grabcut.py | myalfred03/team_acrv_2017 | 9d3a28b4069262291fd28990676b69e90b06ac3a | [
"BSD-3-Clause"
] | 16 | 2017-12-24T14:19:08.000Z | 2021-07-14T13:34:51.000Z | import numpy as np
import cv2
from matplotlib import pyplot as plt
import glob # for iterating through directories
import sys
import os
path_training_items = '/home/amilan/ownCloud/ARChallenge2017/acrv_apc_2017_data/data/items/Training_items/'
#path_training_items = '/home/amilan/ownCloud/ARChallenge2017/acrv_a... | 43.032787 | 147 | 0.736381 | 400 | 2,625 | 4.685 | 0.29 | 0.025614 | 0.057631 | 0.105656 | 0.416222 | 0.416222 | 0.375667 | 0.339915 | 0.339915 | 0.339915 | 0 | 0.0541 | 0.112762 | 2,625 | 61 | 148 | 43.032787 | 0.750537 | 0.441905 | 0 | 0 | 0 | 0 | 0.10166 | 0.0574 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1875 | null | null | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
69997674735281fc69be73cbef71e5f2a8ef6eaa | 19,006 | py | Python | glucosetracker/glucoses/views.py | g3jiawei/landsvr | 4d61aebb2f1c5b6a2308592332935d73b33c0fd5 | [
"MIT"
] | null | null | null | glucosetracker/glucoses/views.py | g3jiawei/landsvr | 4d61aebb2f1c5b6a2308592332935d73b33c0fd5 | [
"MIT"
] | null | null | null | glucosetracker/glucoses/views.py | g3jiawei/landsvr | 4d61aebb2f1c5b6a2308592332935d73b33c0fd5 | [
"MIT"
] | 1 | 2021-01-22T22:28:01.000Z | 2021-01-22T22:28:01.000Z | # -*- coding: utf-8 -*-
import json
import logging
import operator
import mpld3
from datetime import datetime, timedelta
from django.contrib import messages
from django.contrib.auth.decorators import login_required
from django.core.exceptions import PermissionDenied
from django.core.urlresolvers import reverse
from dj... | 36.904854 | 93 | 0.614595 | 2,263 | 19,006 | 5.011489 | 0.152011 | 0.037827 | 0.017194 | 0.012345 | 0.42968 | 0.368045 | 0.339124 | 0.296094 | 0.257649 | 0.244864 | 0 | 0.001466 | 0.281964 | 19,006 | 515 | 94 | 36.904854 | 0.82956 | 0.099863 | 0 | 0.249307 | 0 | 0 | 0.115132 | 0.013806 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.085873 | null | null | 0.00277 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
69a2ebab73ce50bd22516e746b2e16ad7eb1239f | 2,152 | py | Python | app/backend/knowledge_base_approach/src/fred_api.py | e-lubrini/fake-news-detector | f2464e4cac73d9203e7483ac0aa5cd47ddfba811 | [
"MIT"
] | null | null | null | app/backend/knowledge_base_approach/src/fred_api.py | e-lubrini/fake-news-detector | f2464e4cac73d9203e7483ac0aa5cd47ddfba811 | [
"MIT"
] | 1 | 2021-11-24T12:23:49.000Z | 2021-11-24T12:23:49.000Z | app/backend/knowledge_base_approach/src/fred_api.py | e-lubrini/fake-news-detector | f2464e4cac73d9203e7483ac0aa5cd47ddfba811 | [
"MIT"
] | 1 | 2021-11-24T18:07:44.000Z | 2021-11-24T18:07:44.000Z | from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.DefaultApi()
text = 'This is a sample sentence' # String | The input natural language text.
'''
prefix = pr... | 82.769231 | 233 | 0.789963 | 307 | 2,152 | 5.491857 | 0.436482 | 0.02669 | 0.032622 | 0.038553 | 0.173784 | 0.146501 | 0.146501 | 0.146501 | 0.054567 | 0.054567 | 0 | 0 | 0.146375 | 2,152 | 26 | 234 | 82.769231 | 0.917801 | 0.035781 | 0 | 0 | 0 | 0 | 0.152574 | 0.055147 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.454545 | 0 | 0.454545 | 0.272727 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
69adeabcbfe406475380c78238edc72526e3ea69 | 335 | py | Python | ckeditor/widgets.py | ChanMo/django-ckeditor | 9a4c5a902c15f80714c9359a4f6ec0940e5e7ab7 | [
"MIT"
] | null | null | null | ckeditor/widgets.py | ChanMo/django-ckeditor | 9a4c5a902c15f80714c9359a4f6ec0940e5e7ab7 | [
"MIT"
] | null | null | null | ckeditor/widgets.py | ChanMo/django-ckeditor | 9a4c5a902c15f80714c9359a4f6ec0940e5e7ab7 | [
"MIT"
] | null | null | null | from django.forms.widgets import Textarea
class CkeditorWidget(Textarea):
template_name = 'ckeditor/widgets/ckeditor.html'
def __init__(self, *args, **kwargs):
super(CkeditorWidget, self).__init__(*args, **kwargs)
self.attrs['id'] = 'editor'
# class Media:
# js = ('ckeditor/ckedito... | 30.454545 | 61 | 0.662687 | 37 | 335 | 5.756757 | 0.648649 | 0.093897 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.191045 | 335 | 10 | 62 | 33.5 | 0.785978 | 0.161194 | 0 | 0 | 0 | 0 | 0.136691 | 0.107914 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
69b02e1e8e42f618e8dabb84fcbd778fa15edeae | 2,280 | py | Python | meshtastic/apponly_pb2.py | iz1kga/Meshtastic-python | 81d164babef6e5e27bbeff85cca14f0e9c90df42 | [
"Apache-2.0"
] | null | null | null | meshtastic/apponly_pb2.py | iz1kga/Meshtastic-python | 81d164babef6e5e27bbeff85cca14f0e9c90df42 | [
"Apache-2.0"
] | null | null | null | meshtastic/apponly_pb2.py | iz1kga/Meshtastic-python | 81d164babef6e5e27bbeff85cca14f0e9c90df42 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: apponly.proto
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobu... | 30.4 | 199 | 0.769298 | 269 | 2,280 | 6.193309 | 0.420074 | 0.032413 | 0.043217 | 0.057623 | 0.064826 | 0.064826 | 0 | 0 | 0 | 0 | 0 | 0.026238 | 0.114035 | 2,280 | 74 | 200 | 30.810811 | 0.798515 | 0.111842 | 0 | 0.148148 | 1 | 0.018519 | 0.177259 | 0.111718 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.092593 | 0 | 0.092593 | 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 |
69b0479b55df10d5176a1eb30dd9efbf4c86be3b | 1,205 | py | Python | webui/frontend/search_client.py | karanjude/sutch | 1aeb756ad0e6de4ef19b7332796837494ae62af3 | [
"Apache-2.0"
] | 1 | 2019-01-02T13:47:51.000Z | 2019-01-02T13:47:51.000Z | webui/frontend/search_client.py | karanjude/sutch | 1aeb756ad0e6de4ef19b7332796837494ae62af3 | [
"Apache-2.0"
] | null | null | null | webui/frontend/search_client.py | karanjude/sutch | 1aeb756ad0e6de4ef19b7332796837494ae62af3 | [
"Apache-2.0"
] | null | null | null | import Pyro.core
import Pyro.naming
import finder.SimpleFinder
import finder.AllFileCounter
from threading import Thread
def search(q):
root = Pyro.core.getProxyForURI("PYRONAME://p")
logger = Pyro.core.getProxyForURI("PYRONAME://logger")
f = finder.SimpleFinder.SimpleFinder(q,logger)
root.... | 26.777778 | 69 | 0.560996 | 130 | 1,205 | 5.069231 | 0.484615 | 0.060698 | 0.100152 | 0.136571 | 0.109256 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003686 | 0.324481 | 1,205 | 44 | 70 | 27.386364 | 0.805897 | 0 | 0 | 0 | 0 | 0 | 0.091301 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.025641 | 0.128205 | null | null | 0.051282 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
69b2edd254a6270b7df3a6917c86a86c2db3a2c6 | 1,352 | py | Python | site/exhibitionInferenceSite/exhibitionInferenceApp/migrations/0001_initial.py | Marchhill/exhibition-inference | 2e349dabc1571e8b961ee8844ab692ecf9ad76e0 | [
"MIT"
] | 4 | 2022-02-21T13:05:31.000Z | 2022-03-15T02:14:10.000Z | site/exhibitionInferenceSite/exhibitionInferenceApp/migrations/0001_initial.py | Marchhill/exhibition-inference | 2e349dabc1571e8b961ee8844ab692ecf9ad76e0 | [
"MIT"
] | null | null | null | site/exhibitionInferenceSite/exhibitionInferenceApp/migrations/0001_initial.py | Marchhill/exhibition-inference | 2e349dabc1571e8b961ee8844ab692ecf9ad76e0 | [
"MIT"
] | 2 | 2022-03-16T22:10:48.000Z | 2022-03-16T22:12:34.000Z | # Generated by Django 4.0.2 on 2022-02-24 17:37
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Session',
fields=[
... | 33.8 | 103 | 0.546598 | 120 | 1,352 | 6.066667 | 0.508333 | 0.075549 | 0.107143 | 0.123626 | 0.225275 | 0.225275 | 0.225275 | 0.225275 | 0.225275 | 0.225275 | 0 | 0.019523 | 0.318047 | 1,352 | 39 | 104 | 34.666667 | 0.770065 | 0.033284 | 0 | 0.375 | 1 | 0 | 0.091188 | 0.022989 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.1875 | 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 |
69be497be4736e86a3f99e538ed403ae081bf74c | 807 | py | Python | src/python/matrix/imprimir.py | codinginbrazil/functional-programming | 43ce604bd21d82ad16774709cb939d3a2bd86f49 | [
"MIT"
] | null | null | null | src/python/matrix/imprimir.py | codinginbrazil/functional-programming | 43ce604bd21d82ad16774709cb939d3a2bd86f49 | [
"MIT"
] | null | null | null | src/python/matrix/imprimir.py | codinginbrazil/functional-programming | 43ce604bd21d82ad16774709cb939d3a2bd86f49 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
""" Imprimir matriz
Escreva uma função imprime_matriz(matriz),
que recebe uma matriz como parâmetro e imprime a matriz,
linha por linha.
Note que NÃO se deve imprimir espaços após o último elemento de cada linha!
Exemplos:
minha_matriz = [[1], [2], [3]]
imprime_matriz(minha_matriz)
... | 21.236842 | 76 | 0.627014 | 125 | 807 | 3.856 | 0.424 | 0.251037 | 0.124481 | 0.134855 | 0.342324 | 0.238589 | 0.238589 | 0.182573 | 0.170124 | 0.170124 | 0 | 0.042139 | 0.23544 | 807 | 38 | 77 | 21.236842 | 0.73906 | 0.63197 | 0 | 0 | 0 | 0 | 0.024064 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0 | 0 | 0.076923 | 0.153846 | 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 |
69c18abe9de1edc7f8c8fa6b14e73035a72ef14a | 353 | py | Python | ip.py | Prathyusha-Guduru/Montunes | 4995f7f14eb759e671dc9935e5fe4d01cecca20f | [
"MIT"
] | 3 | 2021-05-07T18:02:26.000Z | 2022-01-02T05:42:21.000Z | ip.py | Prathyusha-Guduru/Montunes | 4995f7f14eb759e671dc9935e5fe4d01cecca20f | [
"MIT"
] | null | null | null | ip.py | Prathyusha-Guduru/Montunes | 4995f7f14eb759e671dc9935e5fe4d01cecca20f | [
"MIT"
] | null | null | null | import requests
def getLatLong():
res = requests.get('https://ipinfo.io/').json()
location = res['loc'].split(',')
latitude = location[0]
longitude = location[1]
return (latitude,longitude)
def getLocation():
res = requests.get('https://ipinfo.io/').json()
city = res["city"]
region = res["region"]
return (... | 20.764706 | 48 | 0.671388 | 44 | 353 | 5.386364 | 0.5 | 0.092827 | 0.118143 | 0.160338 | 0.261603 | 0.261603 | 0.261603 | 0 | 0 | 0 | 0 | 0.006494 | 0.127479 | 353 | 17 | 49 | 20.764706 | 0.762987 | 0 | 0 | 0.153846 | 0 | 0 | 0.141243 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.076923 | 0 | 0.384615 | 0.076923 | 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 |
69c278a3799c0fd768c7614fa5f506b82de8ab7b | 958 | py | Python | setup.py | jan-mue/aiodata | f1016d98520c8785e5c0c3db0485f04fa34257ce | [
"MIT"
] | null | null | null | setup.py | jan-mue/aiodata | f1016d98520c8785e5c0c3db0485f04fa34257ce | [
"MIT"
] | null | null | null | setup.py | jan-mue/aiodata | f1016d98520c8785e5c0c3db0485f04fa34257ce | [
"MIT"
] | null | null | null | from setuptools import setup
import aiodata
setup(
name='aiodata',
version=aiodata.__version__,
description='',
author='Jan',
url='',
packages=['aiodata'],
include_package_data=True,
python_requires=">=3.6.0",
install_requires=[
'aiohttp',
'aiofiles',
... | 19.16 | 34 | 0.414405 | 64 | 958 | 6.03125 | 0.859375 | 0.072539 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005607 | 0.441545 | 958 | 49 | 35 | 19.55102 | 0.715888 | 0 | 0 | 0.125 | 0 | 0 | 0.222222 | 0.024202 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.041667 | 0 | 0.041667 | 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 |
69c3254a35b065158e0d0fde28fca356f490f96d | 4,589 | py | Python | venv/lib/python3.6/site-packages/ansible_collections/sensu/sensu_go/tests/unit/plugins/modules/test_pipe_handler.py | usegalaxy-no/usegalaxy | 75dad095769fe918eb39677f2c887e681a747f3a | [
"MIT"
] | 1 | 2020-01-22T13:11:23.000Z | 2020-01-22T13:11:23.000Z | venv/lib/python3.6/site-packages/ansible_collections/sensu/sensu_go/tests/unit/plugins/modules/test_pipe_handler.py | usegalaxy-no/usegalaxy | 75dad095769fe918eb39677f2c887e681a747f3a | [
"MIT"
] | 12 | 2020-02-21T07:24:52.000Z | 2020-04-14T09:54:32.000Z | venv/lib/python3.6/site-packages/ansible_collections/sensu/sensu_go/tests/unit/plugins/modules/test_pipe_handler.py | usegalaxy-no/usegalaxy | 75dad095769fe918eb39677f2c887e681a747f3a | [
"MIT"
] | null | null | null | from __future__ import absolute_import, division, print_function
__metaclass__ = type
import sys
import pytest
from ansible_collections.sensu.sensu_go.plugins.module_utils import (
errors, utils,
)
from ansible_collections.sensu.sensu_go.plugins.modules import pipe_handler
from .common.utils import (
Ansibl... | 33.49635 | 78 | 0.567226 | 498 | 4,589 | 5.058233 | 0.263052 | 0.076221 | 0.089321 | 0.045256 | 0.77372 | 0.713775 | 0.611354 | 0.500992 | 0.500992 | 0.500992 | 0 | 0.00869 | 0.297886 | 4,589 | 136 | 79 | 33.742647 | 0.773122 | 0.040314 | 0 | 0.554622 | 0 | 0 | 0.128467 | 0.022965 | 0 | 0 | 0 | 0 | 0.084034 | 1 | 0.042017 | false | 0 | 0.05042 | 0 | 0.109244 | 0.008403 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
69c3a275526586d204cb324a7796b2a5b67f9c83 | 17,670 | py | Python | ep/ep_mode.py | epthegeek/cactuscanyon | b732692090cf9c60aebb2aa8b5e8e2b52c9ef00b | [
"Unlicense"
] | 10 | 2015-11-04T21:19:42.000Z | 2022-01-04T06:15:28.000Z | ep/ep_mode.py | epthegeek/cactuscanyon | b732692090cf9c60aebb2aa8b5e8e2b52c9ef00b | [
"Unlicense"
] | null | null | null | ep/ep_mode.py | epthegeek/cactuscanyon | b732692090cf9c60aebb2aa8b5e8e2b52c9ef00b | [
"Unlicense"
] | 5 | 2017-03-16T18:14:41.000Z | 2020-10-17T15:21:53.000Z | ## ____ _ ____
## / ___|__ _ ___| |_ _ _ ___ / ___|__ _ _ __ _ _ ___ _ __
## | | / _` |/ __| __| | | / __| | | / _` | '_ \| | | |/ _ \| '_ \
## | |__| (_| | (__| |_| |_| \__ \ | |__| (_| | | | | |_| | (_) | | | |
## \____\__,_|\___|\__|\__,_|___/ \____\__,_|_| |_|\__, |\___/|... | 39.09292 | 152 | 0.599887 | 2,230 | 17,670 | 4.543498 | 0.195516 | 0.032866 | 0.0076 | 0.010659 | 0.17045 | 0.128504 | 0.092282 | 0.08182 | 0.054481 | 0.041058 | 0 | 0.004836 | 0.297793 | 17,670 | 451 | 153 | 39.179601 | 0.811734 | 0.139559 | 0 | 0.24569 | 0 | 0.00431 | 0.064157 | 0.013209 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.025862 | 0.021552 | null | null | 0.00431 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
69c42f995b8cf197fd62055f81141f533f7e22ad | 9,577 | py | Python | gpflowopt/scaling.py | kyu999/GPflowOpt | 972aa70a57222c66ce9bcfe077f92deb4fbaf227 | [
"Apache-2.0"
] | 258 | 2017-04-28T15:47:35.000Z | 2022-03-31T08:44:40.000Z | gpflowopt/scaling.py | yanpei18345156216/GPflowOpt | f1c268e6b5dc4d7f458e06c59095901d55b73c32 | [
"Apache-2.0"
] | 123 | 2017-04-28T22:20:47.000Z | 2021-10-01T16:29:47.000Z | gpflowopt/scaling.py | yanpei18345156216/GPflowOpt | f1c268e6b5dc4d7f458e06c59095901d55b73c32 | [
"Apache-2.0"
] | 69 | 2017-06-06T00:18:01.000Z | 2022-02-25T21:43:39.000Z | # Copyright 2017 Joachim van der Herten
#
# 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 wr... | 42.946188 | 137 | 0.689569 | 1,288 | 9,577 | 5.051242 | 0.228261 | 0.049493 | 0.035045 | 0.018445 | 0.239164 | 0.211804 | 0.164464 | 0.154319 | 0.122195 | 0.122195 | 0 | 0.00192 | 0.238592 | 9,577 | 222 | 138 | 43.13964 | 0.890291 | 0.546831 | 0 | 0.151899 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025316 | 1 | 0.202532 | false | 0 | 0.075949 | 0 | 0.417722 | 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 |
69c83bc2a1e254119ca9455e0f545cfe704da6e0 | 3,057 | py | Python | make_input_ASTs.py | christinawlindberg/scylla-data | 1bedc69d3615cd96342f3dd0e0bafa8cbe401caf | [
"MIT"
] | null | null | null | make_input_ASTs.py | christinawlindberg/scylla-data | 1bedc69d3615cd96342f3dd0e0bafa8cbe401caf | [
"MIT"
] | 8 | 2021-03-04T20:31:35.000Z | 2022-03-04T20:38:16.000Z | make_input_ASTs.py | christinawlindberg/scylla-data | 1bedc69d3615cd96342f3dd0e0bafa8cbe401caf | [
"MIT"
] | 3 | 2021-03-03T18:55:01.000Z | 2021-11-08T17:04:05.000Z | """
Generate input ASTs from Scylla vgst files, including diagnostic plots
Christina Lindberg, November 2021
"""
from glob import glob
import os
import beast_ast_inputs
import plot_source_density_map
import argparse
from astropy.table import Table
import pandas as pd
import matplotlib.pyplot as plt
def make_input_as... | 29.114286 | 136 | 0.665685 | 465 | 3,057 | 4.135484 | 0.316129 | 0.088924 | 0.070203 | 0.058242 | 0.23921 | 0.206968 | 0.168487 | 0.138326 | 0.123245 | 0.123245 | 0 | 0.035686 | 0.184167 | 3,057 | 104 | 137 | 29.394231 | 0.735365 | 0.095846 | 0 | 0.088235 | 1 | 0 | 0.217376 | 0.138859 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029412 | false | 0 | 0.117647 | 0 | 0.147059 | 0.029412 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
69cbac27963ccc7a2341fb481585283550af7587 | 885 | py | Python | pbsuite/jelly/QFix.py | shokrof/pbhoney | 288dbb9cbbd16621f815c0e9eb99e1d1455c5c26 | [
"MIT"
] | null | null | null | pbsuite/jelly/QFix.py | shokrof/pbhoney | 288dbb9cbbd16621f815c0e9eb99e1d1455c5c26 | [
"MIT"
] | null | null | null | pbsuite/jelly/QFix.py | shokrof/pbhoney | 288dbb9cbbd16621f815c0e9eb99e1d1455c5c26 | [
"MIT"
] | null | null | null | #!/usr/bin/python
from pbsuite.utils.FileHandlers import FastqFile, M5File
from pbsuite.utils.CommandRunner import exe
"""
This can be run inside of an assembly folder and create our filling sequence into
polish.out.fasta
"""
if __name__ == '__main__':
input = FastqFile("input.fastq")
fout = open("ref.fasta"... | 34.038462 | 89 | 0.649718 | 123 | 885 | 4.609756 | 0.609756 | 0.05291 | 0.056437 | 0.077601 | 0.243386 | 0.243386 | 0.243386 | 0.243386 | 0.243386 | 0.243386 | 0 | 0.011331 | 0.20226 | 885 | 25 | 90 | 35.4 | 0.791785 | 0.018079 | 0 | 0.133333 | 0 | 0 | 0.450723 | 0.220762 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.133333 | null | null | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
69cdf4e6b7072e53fff52736d33ef2f81c727eb9 | 1,700 | py | Python | packtrack/events/migrations/0005_event_kennels_alter_event_host_alter_longevity_event_and_more.py | jR1P621/packtrack | 112e26ac3604012640e0ecfde6579086c4fbc0f5 | [
"MIT"
] | null | null | null | packtrack/events/migrations/0005_event_kennels_alter_event_host_alter_longevity_event_and_more.py | jR1P621/packtrack | 112e26ac3604012640e0ecfde6579086c4fbc0f5 | [
"MIT"
] | null | null | null | packtrack/events/migrations/0005_event_kennels_alter_event_host_alter_longevity_event_and_more.py | jR1P621/packtrack | 112e26ac3604012640e0ecfde6579086c4fbc0f5 | [
"MIT"
] | null | null | null | # Generated by Django 4.0.2 on 2022-03-12 01:42
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),
('kennels', '0007_alter_co... | 37.777778 | 128 | 0.627059 | 173 | 1,700 | 6.011561 | 0.421965 | 0.046154 | 0.067308 | 0.105769 | 0.308654 | 0.308654 | 0.308654 | 0.224038 | 0.224038 | 0.170192 | 0 | 0.017913 | 0.244706 | 1,700 | 44 | 129 | 38.636364 | 0.792056 | 0.026471 | 0 | 0.236842 | 1 | 0 | 0.151845 | 0.033273 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.078947 | 0 | 0.157895 | 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 |
69cebcc43be2e6d930663749eef23a9d158c18ab | 27,232 | py | Python | run_pipeline.py | luwei0917/LeagueOfLegends | 8756ce1f568a266cca03e2cfbfec3357ea2a1a16 | [
"MIT"
] | null | null | null | run_pipeline.py | luwei0917/LeagueOfLegends | 8756ce1f568a266cca03e2cfbfec3357ea2a1a16 | [
"MIT"
] | null | null | null | run_pipeline.py | luwei0917/LeagueOfLegends | 8756ce1f568a266cca03e2cfbfec3357ea2a1a16 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""
This pipeline generate the required output in one file for each pairwise mapping of genomes
to run the file:
python run_pipeline.py --AtoBTracking <AtoBtrackingFilePath> --BtoATracking <BtoAtrackingFilePath> \
-o <outFileDirectory> --validation <validationFileLocation>
example... | 43.020537 | 167 | 0.698296 | 3,589 | 27,232 | 5.083031 | 0.142658 | 0.024338 | 0.006578 | 0.018747 | 0.434358 | 0.362057 | 0.309324 | 0.257195 | 0.213232 | 0.192403 | 0 | 0.021349 | 0.179531 | 27,232 | 633 | 168 | 43.020537 | 0.795148 | 0.342428 | 0 | 0.171053 | 1 | 0 | 0.179817 | 0.07759 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013158 | false | 0.016447 | 0.101974 | 0 | 0.134868 | 0.039474 | 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 |
69d12caab07ab94a0ffd07727a05d971e48f1d29 | 336 | py | Python | setup.py | svenlr/xkbparse | b509576f6d9098c3ed3c4c9da4d6f23e75a29efd | [
"MIT"
] | null | null | null | setup.py | svenlr/xkbparse | b509576f6d9098c3ed3c4c9da4d6f23e75a29efd | [
"MIT"
] | null | null | null | setup.py | svenlr/xkbparse | b509576f6d9098c3ed3c4c9da4d6f23e75a29efd | [
"MIT"
] | null | null | null | from setuptools import setup
setup(
name='xkbparse',
version='0.1',
description='xkb configuration parser',
url='https://github.com/svenlr/xkbparse',
author='Sven Langner',
author_email='sven.langner@tu-bs.de',
license='MIT',
packages=['xkbparse'],
zip_safe=False,
install_requir... | 22.4 | 45 | 0.660714 | 40 | 336 | 5.475 | 0.85 | 0.100457 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01087 | 0.178571 | 336 | 14 | 46 | 24 | 0.782609 | 0 | 0 | 0 | 0 | 0 | 0.354167 | 0.0625 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
69d49b4e0234875309c1a920a6cf0af3e76ba9e8 | 956 | py | Python | bluebottle/bb_projects/migrations/0018_auto_20210302_1417.py | terrameijar/bluebottle | b4f5ba9c4f03e678fdd36091b29240307ea69ffd | [
"BSD-3-Clause"
] | 10 | 2015-05-28T18:26:40.000Z | 2021-09-06T10:07:03.000Z | bluebottle/bb_projects/migrations/0018_auto_20210302_1417.py | terrameijar/bluebottle | b4f5ba9c4f03e678fdd36091b29240307ea69ffd | [
"BSD-3-Clause"
] | 762 | 2015-01-15T10:00:59.000Z | 2022-03-31T15:35:14.000Z | bluebottle/bb_projects/migrations/0018_auto_20210302_1417.py | terrameijar/bluebottle | b4f5ba9c4f03e678fdd36091b29240307ea69ffd | [
"BSD-3-Clause"
] | 9 | 2015-02-20T13:19:30.000Z | 2022-03-08T14:09:17.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.17 on 2021-03-02 13:17
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('bb_projects', '0017_auto_20210302_1417'),
('projects', '0095_auto_20210302_1417'),
... | 25.157895 | 51 | 0.606695 | 81 | 956 | 6.864198 | 0.592593 | 0.107914 | 0.179856 | 0.129496 | 0.143885 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 0.282427 | 956 | 37 | 52 | 25.837838 | 0.667638 | 0.072176 | 0 | 0.310345 | 1 | 0 | 0.263575 | 0.182127 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.068966 | 0 | 0.206897 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
69d83d5db84562552c172666d5b9f68fab9033a4 | 1,217 | py | Python | lintcode/Queue/492. Implement Queue by Linked List.py | yanshengjia/algorithm | 0608d286be9c93d51768d47f21e569c6b0be9cda | [
"MIT"
] | 23 | 2019-08-02T12:02:47.000Z | 2022-03-09T15:24:16.000Z | lintcode/Queue/492. Implement Queue by Linked List.py | yanshengjia/algorithm | 0608d286be9c93d51768d47f21e569c6b0be9cda | [
"MIT"
] | null | null | null | lintcode/Queue/492. Implement Queue by Linked List.py | yanshengjia/algorithm | 0608d286be9c93d51768d47f21e569c6b0be9cda | [
"MIT"
] | 21 | 2019-12-22T04:47:32.000Z | 2021-09-12T14:29:35.000Z | """
Implement a Queue by linked list. Support the following basic methods:
1.enqueue(item). Put a new item in the queue.
2.dequeue(). Move the first item out of the queue, return it.
Example 1:
Input:
enqueue(1)
enqueue(2)
enqueue(3)
dequeue() // return 1
enqueue(4)
dequeue() // return 2
Solution:
做一些必要的初始化,在 MyQ... | 20.627119 | 91 | 0.581758 | 168 | 1,217 | 4.130952 | 0.375 | 0.069164 | 0.051873 | 0.037464 | 0.060519 | 0.060519 | 0 | 0 | 0 | 0 | 0 | 0.018935 | 0.30567 | 1,217 | 58 | 92 | 20.982759 | 0.802367 | 0.384552 | 0 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034483 | 0 | 1 | 0.173913 | false | 0 | 0 | 0 | 0.347826 | 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 |
69da3e5a95b99d39a1001fcb99fc4de6f8640d0c | 8,982 | py | Python | swigbullet/python/examples/BasicDemo.py | ousttrue/swigbullet | 02bd714ee1b9908f3abdd939a98a1512c444eac5 | [
"MIT"
] | 1 | 2015-07-19T13:07:38.000Z | 2015-07-19T13:07:38.000Z | swigbullet/python/examples/BasicDemo.py | ousttrue/swigbullet | 02bd714ee1b9908f3abdd939a98a1512c444eac5 | [
"MIT"
] | null | null | null | swigbullet/python/examples/BasicDemo.py | ousttrue/swigbullet | 02bd714ee1b9908f3abdd939a98a1512c444eac5 | [
"MIT"
] | null | null | null | # coding: utf-8
import sys
from OpenGL.GL import *
import numpy
import swigbullet as bullet
import bulletdemo.camera
import bulletdemo.bulletworld
import bulletdemo.bulletshooter
from bulletdemo.vector3 import Vector3
#create 125 (5x5x5) dynamic object
ARRAY_SIZE_X=5
ARRAY_SIZE_Y=5
ARRAY_SIZE_Z=5
#scaling of the obj... | 30.242424 | 82 | 0.577266 | 1,064 | 8,982 | 4.707707 | 0.217105 | 0.043921 | 0.010781 | 0.004791 | 0.206029 | 0.169894 | 0.149132 | 0.099421 | 0.093432 | 0.068676 | 0 | 0.027566 | 0.313405 | 8,982 | 296 | 83 | 30.344595 | 0.78466 | 0.092518 | 0 | 0.204188 | 0 | 0 | 0.011378 | 0.003191 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.04712 | null | null | 0.010471 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
69e18eb86809868034381b0b5a567aae35182118 | 5,725 | py | Python | youtuberss/fetcher.py | JohnAZoidberg/YoutubeRSS | 53bdd23a2f516f3015fe0ed15d2f04109c27e719 | [
"BSD-3-Clause"
] | 1 | 2021-03-08T04:25:04.000Z | 2021-03-08T04:25:04.000Z | youtuberss/fetcher.py | JohnAZoidberg/YoutubeRSS | 53bdd23a2f516f3015fe0ed15d2f04109c27e719 | [
"BSD-3-Clause"
] | null | null | null | youtuberss/fetcher.py | JohnAZoidberg/YoutubeRSS | 53bdd23a2f516f3015fe0ed15d2f04109c27e719 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/python
import json
import sqlite3
import requests
import converter
BASEURL = 'https://www.googleapis.com/youtube/v3'
# TODO prevent from running to long and fetch only 50 more than are in the DB
class Fetcher:
def __init__(self, config_file):
with open(config_file) as f:
config = ... | 37.664474 | 78 | 0.535721 | 582 | 5,725 | 5.142612 | 0.298969 | 0.021049 | 0.024056 | 0.036084 | 0.188106 | 0.113264 | 0.074173 | 0.033411 | 0 | 0 | 0 | 0.005316 | 0.342882 | 5,725 | 151 | 79 | 37.913907 | 0.790271 | 0.055371 | 0 | 0.183333 | 0 | 0 | 0.232781 | 0.029733 | 0 | 0 | 0 | 0.006623 | 0 | 0 | null | null | 0.008333 | 0.033333 | null | null | 0.025 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
69e9bd87d97fb959d033d7727baac63684466d3c | 378 | py | Python | tests/unit/lambdas/test_hello_world_message_maker.py | ciaranevans/mosex | e4b985a81bf63408fb4ce3f419f331db50315997 | [
"MIT"
] | 3 | 2020-08-19T14:33:54.000Z | 2021-04-01T03:47:17.000Z | tests/unit/lambdas/test_hello_world_message_maker.py | ciaranevans/pretzel | e4b985a81bf63408fb4ce3f419f331db50315997 | [
"MIT"
] | null | null | null | tests/unit/lambdas/test_hello_world_message_maker.py | ciaranevans/pretzel | e4b985a81bf63408fb4ce3f419f331db50315997 | [
"MIT"
] | null | null | null | from assertpy import assert_that
from freezegun import freeze_time
import lambdas.hello_world.function.message_maker as message_maker
@freeze_time("2020-01-01 11:39:00")
def test_that_correct_message_returned():
message = message_maker.make_message("test-name")
assert_that(message).is_equal_to(
"Hell... | 29.076923 | 66 | 0.767196 | 59 | 378 | 4.661017 | 0.576271 | 0.130909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 0.142857 | 378 | 12 | 67 | 31.5 | 0.79321 | 0 | 0 | 0 | 0 | 0 | 0.216931 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 0.444444 | 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 |
69ef91e10bef73cd2a4c7c413bd5a874a47c2654 | 8,333 | py | Python | day17/day17.py | tomp/AOC-2020 | c7b8313f883b6285f118d281d99c4b32b0497289 | [
"MIT"
] | null | null | null | day17/day17.py | tomp/AOC-2020 | c7b8313f883b6285f118d281d99c4b32b0497289 | [
"MIT"
] | null | null | null | day17/day17.py | tomp/AOC-2020 | c7b8313f883b6285f118d281d99c4b32b0497289 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
#
# Advent of Code 2020 - day 17
#
from pathlib import Path
from collections import defaultdict
INPUTFILE = "input.txt"
SAMPLE_INPUT = """
.#.
..#
###
"""
NEIGHBORS = [
(0, 0, -1),
(0, 0, 1),
(0, -1, 0),
(0, -1, -1),
(0, -1, 1),
(0, 1, 0),
(0, 1, -1),
(0, 1, ... | 22.044974 | 87 | 0.461898 | 1,302 | 8,333 | 2.932412 | 0.109831 | 0.095338 | 0.09429 | 0.084861 | 0.77318 | 0.755893 | 0.681771 | 0.655055 | 0.601886 | 0.576218 | 0 | 0.091338 | 0.339134 | 8,333 | 377 | 88 | 22.103448 | 0.601961 | 0.120965 | 0 | 0.333333 | 0 | 0 | 0.037618 | 0 | 0 | 0 | 0 | 0 | 0.007407 | 1 | 0.07037 | false | 0 | 0.007407 | 0.011111 | 0.125926 | 0.103704 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
69fcbf0e25431d868571225e5734a36e5b9fd006 | 6,070 | py | Python | src/test-scripts/KfsTestLib.py | chanwit/qfs | dc6ba65f42ba55ed7d47e8a0cbf025096304f5d1 | [
"Apache-2.0"
] | 1 | 2017-08-21T10:57:34.000Z | 2017-08-21T10:57:34.000Z | src/test-scripts/KfsTestLib.py | subrata4096/qfs-repair | dba4ef5b78ad4b1bd8ef6e8ff902471afbd704a2 | [
"Apache-2.0"
] | null | null | null | src/test-scripts/KfsTestLib.py | subrata4096/qfs-repair | dba4ef5b78ad4b1bd8ef6e8ff902471afbd704a2 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
#
# $Id$
#
# Created 2006
# Author: Sriram Rao (Kosmix Corp)
#
# Copyright 2006 Kosmix Corp.
#
# This file is part of Kosmos File System (KFS).
#
# 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 ... | 29.754902 | 106 | 0.602142 | 746 | 6,070 | 4.868633 | 0.30563 | 0.026432 | 0.029736 | 0.027533 | 0.200716 | 0.15804 | 0.110132 | 0.110132 | 0.099119 | 0.099119 | 0 | 0.003167 | 0.271664 | 6,070 | 203 | 107 | 29.901478 | 0.818367 | 0.13196 | 0 | 0.217391 | 0 | 0.007246 | 0.111356 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.021739 | null | null | 0.021739 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
69ffaaee29b0011292b8bec12488a6027a600508 | 2,415 | py | Python | lib/mock/asset/TBAsset.py | tommo/gii | 03624a57cf74a07e38bfdc7f53c50bd926b7b5a7 | [
"MIT"
] | 7 | 2016-02-13T18:47:23.000Z | 2020-07-03T13:47:49.000Z | lib/mock/asset/TBAsset.py | tommo/gii | 03624a57cf74a07e38bfdc7f53c50bd926b7b5a7 | [
"MIT"
] | 1 | 2018-06-13T04:55:27.000Z | 2021-11-05T05:52:51.000Z | lib/mock/asset/TBAsset.py | tommo/gii | 03624a57cf74a07e38bfdc7f53c50bd926b7b5a7 | [
"MIT"
] | 4 | 2016-02-15T13:32:46.000Z | 2019-12-12T17:22:31.000Z | import os.path
import subprocess
import shutil
from gii.core import *
##----------------------------------------------------------------##
def _getModulePath( path ):
import os.path
return os.path.dirname( __file__ ) + '/' + path
##----------------------------------------------------------------##
class TBSkinAss... | 29.096386 | 70 | 0.593789 | 237 | 2,415 | 5.962025 | 0.383966 | 0.025478 | 0.021231 | 0.036801 | 0.259023 | 0.259023 | 0.259023 | 0.259023 | 0.076433 | 0.076433 | 0 | 0.000487 | 0.149896 | 2,415 | 82 | 71 | 29.45122 | 0.687774 | 0.438095 | 0 | 0.333333 | 0 | 0 | 0.102368 | 0.033613 | 0 | 0 | 0 | 0 | 0 | 1 | 0.194444 | false | 0 | 0.194444 | 0.055556 | 0.638889 | 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 |
69ffe0ba6ef5676b597b8dc18e0686c26fd0b4a9 | 263 | py | Python | main.py | riteshreddyr/bhajanpresentationmaker | 9046624a0c71a7c7ab10dd07ffb5f18c098d98cf | [
"MIT"
] | null | null | null | main.py | riteshreddyr/bhajanpresentationmaker | 9046624a0c71a7c7ab10dd07ffb5f18c098d98cf | [
"MIT"
] | 8 | 2021-03-18T19:57:39.000Z | 2022-03-11T23:11:52.000Z | main.py | riteshreddyr/bhajanpresentationmaker | 9046624a0c71a7c7ab10dd07ffb5f18c098d98cf | [
"MIT"
] | null | null | null | __author__ = 'RiteshReddy'
from controllers.BhajanManager import *
from controllers.PresentationManager import *
def error_handler(e):
return render_template("generic_error.html")
if __name__ == "__main__":
app.run(host="0.0.0.0", port=80, debug=True)
| 23.909091 | 48 | 0.749049 | 34 | 263 | 5.352941 | 0.794118 | 0.032967 | 0.032967 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026087 | 0.125475 | 263 | 10 | 49 | 26.3 | 0.765217 | 0 | 0 | 0 | 0 | 0 | 0.1673 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0.142857 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
0e0172ba2f17c3390334d85301b68daa0e91b53f | 2,233 | py | Python | tests/test_data/order.py | nielse63/alpaca-trading-scripts | 9c5efaa2ebc120c2a6b9137563cf71f518193505 | [
"Apache-2.0"
] | null | null | null | tests/test_data/order.py | nielse63/alpaca-trading-scripts | 9c5efaa2ebc120c2a6b9137563cf71f518193505 | [
"Apache-2.0"
] | 9 | 2021-06-25T02:23:11.000Z | 2021-07-18T09:56:40.000Z | tests/test_data/order.py | nielse63/alpaca-trading-scripts | 9c5efaa2ebc120c2a6b9137563cf71f518193505 | [
"Apache-2.0"
] | 1 | 2021-10-19T16:09:44.000Z | 2021-10-19T16:09:44.000Z | from alpaca_trade_api.rest import Order
from faker import Faker
from .helpers import get_uuid
fake = Faker()
def generate_sell_order():
return {
"replaces": "532b9037-6844-4bf9-8a4a-7e9a59d69167",
"order_type": "trailing_stop",
"type": "trailing_stop",
"side": "sell",
"ti... | 26.270588 | 87 | 0.557994 | 262 | 2,233 | 4.48855 | 0.358779 | 0.038265 | 0.028061 | 0.033163 | 0.193027 | 0.111395 | 0.096939 | 0.056122 | 0 | 0 | 0 | 0.063722 | 0.290193 | 2,233 | 84 | 88 | 26.583333 | 0.678233 | 0 | 0 | 0.136986 | 1 | 0 | 0.297806 | 0.052396 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054795 | false | 0 | 0.041096 | 0.041096 | 0.150685 | 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 |
0e080ee5a2424e4141d14f5a51a3d398b6dc7236 | 800 | py | Python | flaim/database/tests/test_models.py | bfssi-forest-dussault/flaime | 7c898f07e0d7c16b63a59d2c0c56290e32a2df47 | [
"MIT"
] | null | null | null | flaim/database/tests/test_models.py | bfssi-forest-dussault/flaime | 7c898f07e0d7c16b63a59d2c0c56290e32a2df47 | [
"MIT"
] | 11 | 2020-11-09T19:55:58.000Z | 2022-02-13T19:43:03.000Z | flaim/database/tests/test_models.py | BFSSI-Bioinformatics-Lab/flaime | 1feedf3974114c16724bfbd235ce4637983a3f5e | [
"MIT"
] | null | null | null | from django.test import TestCase
from flaim.database import models
"""
https://realpython.com/test-driven-development-of-a-django-restful-api/
"""
class ProductTest(TestCase):
@classmethod
def setUpTestData(cls):
print("setUpTestData: Run once to set up non-modified data for all class methods.")
... | 25 | 91 | 0.65125 | 96 | 800 | 5.375 | 0.583333 | 0.027132 | 0.077519 | 0.073643 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019737 | 0.24 | 800 | 31 | 92 | 25.806452 | 0.828947 | 0 | 0 | 0.1 | 0 | 0 | 0.262136 | 0 | 0 | 0 | 0 | 0 | 0.05 | 1 | 0.15 | false | 0.1 | 0.1 | 0 | 0.35 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
0e15137d742942e929038123cf0f0556838468a0 | 6,527 | py | Python | tokenio/proto/gateway/auth_pb2.py | aukaio/token-io | 3438cdd5714ec7d8ef96f8dbfe746998c906f9be | [
"MIT"
] | null | null | null | tokenio/proto/gateway/auth_pb2.py | aukaio/token-io | 3438cdd5714ec7d8ef96f8dbfe746998c906f9be | [
"MIT"
] | null | null | null | tokenio/proto/gateway/auth_pb2.py | aukaio/token-io | 3438cdd5714ec7d8ef96f8dbfe746998c906f9be | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: gateway/auth.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobu... | 41.310127 | 603 | 0.749196 | 860 | 6,527 | 5.415116 | 0.186047 | 0.044664 | 0.051106 | 0.053038 | 0.639467 | 0.601245 | 0.577625 | 0.517071 | 0.491733 | 0.491733 | 0 | 0.045975 | 0.116899 | 6,527 | 157 | 604 | 41.573248 | 0.761971 | 0.050866 | 0 | 0.586466 | 1 | 0.007519 | 0.240828 | 0.176984 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045113 | 0 | 0.045113 | 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 |
0e1552b081f24367c3a6b1493b6af8ce3d36a672 | 4,526 | py | Python | test.py | kentsommer/tensorflow-posenet | e053637293c27657d0b017ee6e0db9863e8f312d | [
"MIT"
] | 302 | 2016-12-01T15:23:33.000Z | 2022-01-08T04:54:15.000Z | test.py | robinkwak/Assignment_wk01 | 61a60c26b7e4f839b566ea867090ab142f3b38f7 | [
"MIT"
] | 18 | 2017-05-08T18:26:29.000Z | 2022-01-12T06:00:20.000Z | test.py | robinkwak/Assignment_wk01 | 61a60c26b7e4f839b566ea867090ab142f3b38f7 | [
"MIT"
] | 93 | 2016-12-05T13:19:54.000Z | 2022-02-14T09:36:55.000Z | # Import the converted model's class
import numpy as np
import random
import tensorflow as tf
from tensorflow.python.ops import rnn, rnn_cell
from posenet import GoogLeNet as PoseNet
import cv2
from tqdm import tqdm
import math
batch_size = 75
max_iterations = 30000
# Set this path to your project directory
path = 'p... | 27.101796 | 90 | 0.676977 | 721 | 4,526 | 4.056865 | 0.244105 | 0.020513 | 0.049231 | 0.019487 | 0.166496 | 0.036239 | 0.036239 | 0.026667 | 0.026667 | 0.026667 | 0 | 0.031599 | 0.188909 | 4,526 | 166 | 91 | 27.26506 | 0.765187 | 0.060981 | 0 | 0.081481 | 0 | 0 | 0.049776 | 0.007077 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.059259 | null | null | 0.014815 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
0e15d82211dbdf06edd990d101c60e0b066376d0 | 2,486 | py | Python | explore/utils.py | WilliamQLiu/improved-parakeet | e74d17f67fe7ada3fc5df8085c10e75019db4b3c | [
"Apache-2.0"
] | 2 | 2018-04-06T09:16:12.000Z | 2020-09-15T04:48:21.000Z | explore/utils.py | WilliamQLiu/improved-parakeet | e74d17f67fe7ada3fc5df8085c10e75019db4b3c | [
"Apache-2.0"
] | 5 | 2021-03-25T21:45:55.000Z | 2021-12-13T19:45:47.000Z | explore/utils.py | WilliamQLiu/improved-parakeet | e74d17f67fe7ada3fc5df8085c10e75019db4b3c | [
"Apache-2.0"
] | 1 | 2019-05-27T17:12:23.000Z | 2019-05-27T17:12:23.000Z | from cStringIO import StringIO
from xml.etree import ElementTree as ET
import requests
from scrapy.selector import Selector, XmlXPathSelector
from scrapy.spider import Spider
def parse_single_element(element, name):
"""
Helper function to parse a single XML element for name,
returns dict of the key and t... | 28.574713 | 82 | 0.666935 | 307 | 2,486 | 5.237785 | 0.355049 | 0.033582 | 0.033582 | 0.031095 | 0.053483 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001594 | 0.242961 | 2,486 | 86 | 83 | 28.906977 | 0.852816 | 0.056315 | 0 | 0.041667 | 0 | 0 | 0.144487 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.104167 | null | null | 0.041667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
385135aa443bd38bc9b085e585fadce4089b2fa0 | 863 | py | Python | src_nlp/tensorflow/vae/config.py | ashishpatel26/finch | bf2958c0f268575e5d51ad08fbc08b151cbea962 | [
"MIT"
] | 1 | 2019-02-12T09:22:00.000Z | 2019-02-12T09:22:00.000Z | src_nlp/tensorflow/vae/config.py | loopzxl/finch | bf2958c0f268575e5d51ad08fbc08b151cbea962 | [
"MIT"
] | null | null | null | src_nlp/tensorflow/vae/config.py | loopzxl/finch | bf2958c0f268575e5d51ad08fbc08b151cbea962 | [
"MIT"
] | 1 | 2020-10-15T21:34:17.000Z | 2020-10-15T21:34:17.000Z | import argparse
parser = argparse.ArgumentParser()
parser.add_argument('--num_sampled', type=int, default=1000)
parser.add_argument('--max_len', type=int, default=15)
parser.add_argument('--word_dropout_rate', type=float, default=0.8)
parser.add_argument('--batch_size', type=int, default=128)
parser.add_argument('--e... | 43.15 | 67 | 0.763615 | 131 | 863 | 4.80916 | 0.358779 | 0.185714 | 0.350794 | 0.085714 | 0.107937 | 0.107937 | 0.107937 | 0 | 0 | 0 | 0 | 0.03936 | 0.057937 | 863 | 19 | 68 | 45.421053 | 0.735547 | 0 | 0 | 0 | 0 | 0 | 0.195829 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.0625 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3856dfb38a9089f9e23f571d32613d9175c38d83 | 6,403 | py | Python | django-openstack/src/django_openstack/syspanel/views/instances.py | Mirantis/openstack-dashboard | 5272235e605bf7876642800eaf8e0a91484dc883 | [
"Apache-2.0"
] | 2 | 2015-05-18T13:50:22.000Z | 2015-05-18T14:47:09.000Z | django-openstack/src/django_openstack/syspanel/views/instances.py | termie/openstack-dashboard | 5272235e605bf7876642800eaf8e0a91484dc883 | [
"Apache-2.0"
] | null | null | null | django-openstack/src/django_openstack/syspanel/views/instances.py | termie/openstack-dashboard | 5272235e605bf7876642800eaf8e0a91484dc883 | [
"Apache-2.0"
] | 2 | 2015-06-23T03:12:20.000Z | 2015-11-08T12:12:14.000Z | # vim: tabstop=4 shiftwidth=4 softtabstop=4
from django import template
from django import http
from django.conf import settings
from django.contrib.auth.decorators import login_required
from django.shortcuts import render_to_response
from django.utils.translation import ugettext as _
import datetime
import logging
... | 34.798913 | 101 | 0.673903 | 811 | 6,403 | 5.038224 | 0.209618 | 0.037445 | 0.027411 | 0.029369 | 0.382036 | 0.313754 | 0.295888 | 0.272394 | 0.178414 | 0.151982 | 0 | 0.011318 | 0.227237 | 6,403 | 183 | 102 | 34.989071 | 0.81447 | 0.039981 | 0 | 0.255319 | 0 | 0 | 0.12555 | 0.029148 | 0 | 0 | 0 | 0.005464 | 0 | 0 | null | null | 0 | 0.092199 | 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 |
385867088a9d13c58898980dffefe008136bc57f | 258 | py | Python | hello_world/urls.py | jimhoekstra/django_svelte_template | ff3783d4d4caf298206dad396527f816a1e676d1 | [
"MIT"
] | null | null | null | hello_world/urls.py | jimhoekstra/django_svelte_template | ff3783d4d4caf298206dad396527f816a1e676d1 | [
"MIT"
] | null | null | null | hello_world/urls.py | jimhoekstra/django_svelte_template | ff3783d4d4caf298206dad396527f816a1e676d1 | [
"MIT"
] | 1 | 2021-09-21T13:25:59.000Z | 2021-09-21T13:25:59.000Z | from django.urls import path
from . import views
urlpatterns = [
path('', views.index, name='index'),
path('another-page/', views.another_page, name='another-page'),
path('json-endpoint/', views.json_endpoint, name='json-endpoint'),
]
| 25.8 | 71 | 0.658915 | 32 | 258 | 5.25 | 0.40625 | 0.196429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170543 | 258 | 9 | 72 | 28.666667 | 0.785047 | 0 | 0 | 0 | 0 | 0 | 0.228916 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
385ad2abbb53e45e9bd0c4d931f3a6baa1ee3e8b | 1,284 | py | Python | prsw/validators.py | sjn-network-automation/prsw | 92d7641ba031cd845dfb0ea1fe9e6692e7237c98 | [
"BSD-2-Clause"
] | 4 | 2021-04-16T11:39:48.000Z | 2021-08-05T02:08:05.000Z | prsw/validators.py | sjn-network-automation/prsw | 92d7641ba031cd845dfb0ea1fe9e6692e7237c98 | [
"BSD-2-Clause"
] | 3 | 2021-04-17T03:36:11.000Z | 2021-08-04T03:31:15.000Z | prsw/validators.py | sjn-network-automation/prsw | 92d7641ba031cd845dfb0ea1fe9e6692e7237c98 | [
"BSD-2-Clause"
] | 2 | 2021-08-04T02:16:46.000Z | 2022-02-17T19:28:13.000Z | """Provides validators for init arguments in API endpoint classes."""
import ipaddress
from datetime import datetime
class Validators:
"""Validators used for validating arguments in initializers for API endpoints."""
def _validate_asn(asn: str) -> bool:
"""Validate argument is a valid Autonomous Sy... | 23.777778 | 85 | 0.591121 | 144 | 1,284 | 5.173611 | 0.388889 | 0.073826 | 0.091275 | 0.112752 | 0.374497 | 0.374497 | 0.324832 | 0.230872 | 0.102013 | 0 | 0 | 0.017483 | 0.331776 | 1,284 | 53 | 86 | 24.226415 | 0.850816 | 0.254673 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0.033333 | 0.066667 | 0 | 0.533333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
385dc2570070ebd8a683a04eec9b0bea8b8d93b1 | 770 | py | Python | backend/app/rooms/models.py | vpaliy/react-chat | 883934b4983136380e4569e7f65722bf7e9fd628 | [
"MIT"
] | 1 | 2018-12-03T05:53:48.000Z | 2018-12-03T05:53:48.000Z | backend/app/rooms/models.py | vpaliy/react-chat | 883934b4983136380e4569e7f65722bf7e9fd628 | [
"MIT"
] | null | null | null | backend/app/rooms/models.py | vpaliy/react-chat | 883934b4983136380e4569e7f65722bf7e9fd628 | [
"MIT"
] | null | null | null | # -*- coding: future_fstrings -*-
from app.database import Model, Column, SurrogatePK, db, relationship
import datetime as dt
import hashlib
class Room(SurrogatePK, Model):
__tablename__ = 'rooms'
name = Column(db.String(80), unique=True, nullable=False)
description = Column(db.String(300), unique=True, nullab... | 33.478261 | 78 | 0.723377 | 105 | 770 | 5.190476 | 0.561905 | 0.073395 | 0.077064 | 0.084404 | 0.198165 | 0.198165 | 0.198165 | 0.198165 | 0.198165 | 0.198165 | 0 | 0.016345 | 0.125974 | 770 | 22 | 79 | 35 | 0.793462 | 0.04026 | 0 | 0 | 0 | 0.0625 | 0.105834 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.1875 | 0.0625 | 0.875 | 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 |
386131c471c2da0279d0d9623f7c0794daab29e6 | 2,844 | py | Python | lizard_auth_server/tests/test_forms.py | lisannewapstra/lizard-auth-server | 3824edfaedd01caff5eb84bbcb9557ccfec2371a | [
"MIT",
"BSD-3-Clause"
] | 1 | 2019-02-21T02:12:04.000Z | 2019-02-21T02:12:04.000Z | lizard_auth_server/tests/test_forms.py | lisannewapstra/lizard-auth-server | 3824edfaedd01caff5eb84bbcb9557ccfec2371a | [
"MIT",
"BSD-3-Clause"
] | 88 | 2015-04-23T15:37:17.000Z | 2021-02-18T15:28:32.000Z | lizard_auth_server/tests/test_forms.py | lisannewapstra/lizard-auth-server | 3824edfaedd01caff5eb84bbcb9557ccfec2371a | [
"MIT",
"BSD-3-Clause"
] | 2 | 2018-04-24T08:48:35.000Z | 2021-02-17T10:18:26.000Z | from django.contrib.auth.models import User
from django.core.exceptions import ValidationError
from django.test import override_settings
from django.test import TestCase
from lizard_auth_server.forms import JWTDecryptForm
from lizard_auth_server.forms import SetPasswordMixin
from unittest import mock
class TestForm(T... | 37.421053 | 81 | 0.698312 | 325 | 2,844 | 5.870769 | 0.273846 | 0.041929 | 0.041929 | 0.055031 | 0.410377 | 0.396226 | 0.315514 | 0.315514 | 0.272537 | 0.272537 | 0 | 0.002228 | 0.21097 | 2,844 | 75 | 82 | 37.92 | 0.848039 | 0.16737 | 0 | 0.163265 | 0 | 0 | 0.119745 | 0.048408 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.102041 | false | 0.306122 | 0.142857 | 0 | 0.285714 | 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 |
38657436625b4c39cc5573c92b4f013916031bbf | 1,716 | py | Python | ctp_integration/scripts/plot_trajectory.py | cpaxton/costar_plan | be5c12f9d0e9d7078e6a5c283d3be059e7f3d040 | [
"Apache-2.0"
] | 66 | 2018-10-31T04:58:53.000Z | 2022-03-17T02:32:25.000Z | ctp_integration/scripts/plot_trajectory.py | cpaxton/costar_plan | be5c12f9d0e9d7078e6a5c283d3be059e7f3d040 | [
"Apache-2.0"
] | 8 | 2018-10-23T21:19:25.000Z | 2018-12-03T02:08:41.000Z | ctp_integration/scripts/plot_trajectory.py | cpaxton/costar_plan | be5c12f9d0e9d7078e6a5c283d3be059e7f3d040 | [
"Apache-2.0"
] | 25 | 2018-10-19T00:54:17.000Z | 2021-10-10T08:28:15.000Z | import argparse
import numpy as np
import h5py
from mpl_toolkits.mplot3d import Axes3D
import matplotlib.pyplot as plt
'''
Usage
python plot_trajectory --filename <path to file>
If data collector is modified, use extra arguments to modify
pose_name: topic name of pose in h5f data
action_name: topic of action name... | 27.677419 | 82 | 0.724359 | 256 | 1,716 | 4.675781 | 0.367188 | 0.050125 | 0.056809 | 0.045113 | 0.062657 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010183 | 0.141608 | 1,716 | 62 | 83 | 27.677419 | 0.802444 | 0 | 0 | 0 | 0 | 0 | 0.087527 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.128205 | 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 |
38664815d269e21cab425e36f1797ec0b72544aa | 2,150 | py | Python | atmusers/serializers.py | andkononykhin/atmsite | f6dc190adb8bfe74b06cf08069863d7e18a1d228 | [
"MIT"
] | null | null | null | atmusers/serializers.py | andkononykhin/atmsite | f6dc190adb8bfe74b06cf08069863d7e18a1d228 | [
"MIT"
] | null | null | null | atmusers/serializers.py | andkononykhin/atmsite | f6dc190adb8bfe74b06cf08069863d7e18a1d228 | [
"MIT"
] | null | null | null | from django.contrib.auth import update_session_auth_hash
from rest_framework import serializers
from atmusers.models import ATMUser, Operation
class NotEnoughCashError(Exception):
pass
class ATMUserSerializer(serializers.ModelSerializer):
password = serializers.CharField(max_length=16,
... | 32.575758 | 77 | 0.577674 | 188 | 2,150 | 6.468085 | 0.404255 | 0.053454 | 0.037007 | 0.059211 | 0.157895 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002811 | 0.33814 | 2,150 | 65 | 78 | 33.076923 | 0.851722 | 0 | 0 | 0.191489 | 0 | 0 | 0.058605 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042553 | false | 0.06383 | 0.06383 | 0 | 0.319149 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
38694bcf0a08cfc605cf74ee46850d8c76cec5e3 | 378 | py | Python | docs/examples/workflow_and_job/graph_workflow.py | Tismas/bigflow | 6a4a14616d66beeaf45700ea340c97d797a1f9e5 | [
"Apache-2.0"
] | null | null | null | docs/examples/workflow_and_job/graph_workflow.py | Tismas/bigflow | 6a4a14616d66beeaf45700ea340c97d797a1f9e5 | [
"Apache-2.0"
] | null | null | null | docs/examples/workflow_and_job/graph_workflow.py | Tismas/bigflow | 6a4a14616d66beeaf45700ea340c97d797a1f9e5 | [
"Apache-2.0"
] | null | null | null | from bigflow.workflow import Workflow
from bigflow.workflow import Definition
from .sequential_workflow import Job
job1, job2, job3, job4 = Job('1'), Job('2'), Job('3'), Job('4')
graph_workflow = Workflow(workflow_id='graph_workflow', definition=Definition({
job1: (job2, job3),
job2: (job4,),
job3: (job4,... | 27 | 79 | 0.693122 | 49 | 378 | 5.081633 | 0.428571 | 0.168675 | 0.15261 | 0.200803 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046584 | 0.148148 | 378 | 14 | 80 | 27 | 0.726708 | 0 | 0 | 0 | 0 | 0 | 0.068602 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.272727 | 0 | 0.272727 | 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 |
387153bc0cfeb1b390b235604e0429a4c5f45226 | 919 | py | Python | ex12_2_v2.py | DexHunter/Think-Python-book-exercise-solutions | d0abae261eda1dca99043e17e8a1e614caad2140 | [
"CC-BY-4.0"
] | 24 | 2019-05-07T15:11:28.000Z | 2022-03-02T04:50:28.000Z | ex12_2_v2.py | Dekzu/Think-Python-book-exercise-solutions | d0abae261eda1dca99043e17e8a1e614caad2140 | [
"CC-BY-4.0"
] | null | null | null | ex12_2_v2.py | Dekzu/Think-Python-book-exercise-solutions | d0abae261eda1dca99043e17e8a1e614caad2140 | [
"CC-BY-4.0"
] | 19 | 2019-08-05T20:59:04.000Z | 2022-03-07T05:13:32.000Z | from collections import defaultdict
def load_words(filename = "words.txt"):
with open(filename) as f:
for word in f:
yield word.rstrip() # return a generator
def all_anagram(s):
'''
s: string
'''
d = defaultdict(list)
for i in s:
signature = ''.join(sorted(i)) # siganature is a after-sort string of ch... | 20.886364 | 89 | 0.65506 | 154 | 919 | 3.818182 | 0.376623 | 0.045918 | 0.056122 | 0.064626 | 0.112245 | 0.112245 | 0.112245 | 0.112245 | 0.112245 | 0.112245 | 0 | 0.004082 | 0.200218 | 919 | 44 | 90 | 20.886364 | 0.795918 | 0.118607 | 0 | 0.181818 | 0 | 0 | 0.011421 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.030303 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
38751f812647015a4bd38b00283984356b8fcebe | 3,219 | py | Python | pycommon/reporter_config/actions/Mongo.py | CESNET/Nemea-Framework | 49877c3306aa570609b00b990b74633b29e5f331 | [
"BSD-3-Clause"
] | 12 | 2015-10-16T09:22:50.000Z | 2021-11-14T17:08:38.000Z | pycommon/reporter_config/actions/Mongo.py | krkos/Nemea-Framework | f9c3265724649968cdc260c3c4c4fbd548b304ff | [
"BSD-3-Clause"
] | 160 | 2015-11-27T10:16:44.000Z | 2021-12-29T16:57:37.000Z | pycommon/reporter_config/actions/Mongo.py | krkos/Nemea-Framework | f9c3265724649968cdc260c3c4c4fbd548b304ff | [
"BSD-3-Clause"
] | 34 | 2015-11-27T14:46:07.000Z | 2020-11-06T19:17:29.000Z | from .Action import Action
from datetime import datetime
import copy
class MongoAction(Action):
def __init__(self, action):
"""Parse action contents including info about MongoDB connection
and create connection to database.
"""
super(type(self), self).__init__(actionId = action["i... | 34.244681 | 102 | 0.563218 | 380 | 3,219 | 4.692105 | 0.365789 | 0.054964 | 0.030286 | 0.019069 | 0.061694 | 0.061694 | 0.033651 | 0.033651 | 0 | 0 | 0 | 0.004091 | 0.316558 | 3,219 | 93 | 103 | 34.612903 | 0.806364 | 0.125815 | 0 | 0.109375 | 0 | 0 | 0.114035 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.09375 | false | 0.078125 | 0.109375 | 0 | 0.265625 | 0.046875 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
3876730f3c74dbb435ab2e809471ac6e56348d68 | 2,807 | py | Python | aviation_weather/components/weathergroup.py | StephenOrJames/aviation-weather | 35594cc1ba448acdea9123380cc47ac96d2107c8 | [
"MIT"
] | 2 | 2017-03-14T23:28:28.000Z | 2020-01-10T23:04:30.000Z | aviation_weather/components/weathergroup.py | aviationweather/aviation_weather | 35594cc1ba448acdea9123380cc47ac96d2107c8 | [
"MIT"
] | null | null | null | aviation_weather/components/weathergroup.py | aviationweather/aviation_weather | 35594cc1ba448acdea9123380cc47ac96d2107c8 | [
"MIT"
] | null | null | null | import re
from aviation_weather.components import Component
from aviation_weather.exceptions import WeatherGroupDecodeError
class WeatherGroup(Component):
# TODO: see FMH-1 12.6.8 for specific formatting instructions
INTENSITIES = {
"-": "light",
"": "moderate",
"+": "heavy",
... | 29.861702 | 115 | 0.496972 | 278 | 2,807 | 4.996403 | 0.546763 | 0.021598 | 0.027358 | 0.023038 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006441 | 0.336302 | 2,807 | 93 | 116 | 30.182796 | 0.73913 | 0.110082 | 0 | 0 | 0 | 0 | 0.267375 | 0.045789 | 0 | 0 | 0 | 0.010753 | 0 | 1 | 0.026667 | false | 0 | 0.04 | 0 | 0.133333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
387c3dac4f1dcea1e04daf43b7cf0ea21b77c1de | 389 | py | Python | Week 1/id_625/LeetCode_1_625.py | larryRishi/algorithm004-05 | e60d0b1176acd32a9184b215e36d4122ba0b6263 | [
"Apache-2.0"
] | 1 | 2019-10-12T06:48:45.000Z | 2019-10-12T06:48:45.000Z | Week 1/id_625/LeetCode_1_625.py | larryRishi/algorithm004-05 | e60d0b1176acd32a9184b215e36d4122ba0b6263 | [
"Apache-2.0"
] | 1 | 2019-12-01T10:02:03.000Z | 2019-12-01T10:02:03.000Z | Week 1/id_625/LeetCode_1_625.py | larryRishi/algorithm004-05 | e60d0b1176acd32a9184b215e36d4122ba0b6263 | [
"Apache-2.0"
] | null | null | null | #
# @lc app=leetcode.cn id=1 lang=python3
#
# [1] 两数之和
#
# @lc code=start
class Solution:
def twoSum(self, nums: List[int], target: int) -> List[int]:
hashmap = {}
for i, num in enumerate(nums):
if hashmap.get(target - num) is not None:
return [hashmap.get(... | 20.473684 | 65 | 0.521851 | 52 | 389 | 3.903846 | 0.634615 | 0.059113 | 0.157635 | 0.187192 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011673 | 0.339332 | 389 | 18 | 66 | 21.611111 | 0.77821 | 0.190231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.428571 | 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 |
387d6693220407fe8ba2759f9b7684bab9a1e0af | 8,826 | py | Python | io_scene_niftools_updater/backup/dependencies/bin/niftoaster.py | korri123/fnv-blender-niftools-addon | ce8733e011c7d74c79be265832e1b06e85faf5ee | [
"BSD-3-Clause"
] | 4 | 2021-09-27T09:58:44.000Z | 2022-02-05T16:12:28.000Z | io_scene_niftools_updater/backup/dependencies/bin/niftoaster.py | korri123/fnv-blender-niftools-addon | ce8733e011c7d74c79be265832e1b06e85faf5ee | [
"BSD-3-Clause"
] | null | null | null | io_scene_niftools_updater/backup/dependencies/bin/niftoaster.py | korri123/fnv-blender-niftools-addon | ce8733e011c7d74c79be265832e1b06e85faf5ee | [
"BSD-3-Clause"
] | null | null | null | #!/opt/hostedtoolcache/Python/3.8.8/x64/bin/python
"""A script for casting spells on NIF files. This script is essentially
a nif specific wrapper around L{pyffi.spells.Toaster}."""
# --------------------------------------------------------------------------
# ***** BEGIN LICENSE BLOCK *****
#
# Copyright (c) 2007-201... | 43.693069 | 88 | 0.724564 | 994 | 8,826 | 6.408451 | 0.334004 | 0.155416 | 0.189011 | 0.097331 | 0.101727 | 0.072214 | 0.054631 | 0.054631 | 0.054631 | 0.048352 | 0 | 0.004113 | 0.173578 | 8,826 | 201 | 89 | 43.910448 | 0.869208 | 0.239633 | 0 | 0 | 0 | 0 | 0.218717 | 0.012017 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.068182 | 0 | 0.098485 | 0.007576 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3888bb337dffb6da155afbd9d5e2e7db98bc8aec | 5,721 | py | Python | EchoTest.py | tylercrumpton/snapconnect-echo-test | 61335bcaff0585d3f5451ba8efe9817741390663 | [
"Apache-2.0"
] | null | null | null | EchoTest.py | tylercrumpton/snapconnect-echo-test | 61335bcaff0585d3f5451ba8efe9817741390663 | [
"Apache-2.0"
] | null | null | null | EchoTest.py | tylercrumpton/snapconnect-echo-test | 61335bcaff0585d3f5451ba8efe9817741390663 | [
"Apache-2.0"
] | null | null | null | # (c) Copyright 2014 Synapse Wireless, Inc.
"""
EchoTest.py - a simple benchmark used to determine how fast SNAP Connect can
communicate with a directly connected bridge. We use this to evaluate different
Python platforms, implementations, and serial drivers.
This example demonstrates one way to maximize throughput wi... | 39.729167 | 169 | 0.730816 | 853 | 5,721 | 4.780774 | 0.392732 | 0.019617 | 0.01177 | 0.014713 | 0.081903 | 0.054929 | 0.029426 | 0 | 0 | 0 | 0 | 0.012134 | 0.193323 | 5,721 | 143 | 170 | 40.006993 | 0.871506 | 0.469149 | 0 | 0.05 | 0 | 0 | 0.128228 | 0.034889 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.05 | null | null | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
388be1296f3fe9d67317ad04006d639f18433660 | 1,968 | py | Python | simulation/different_energy_density_v0_1.py | Hieronymus98/Distributed-Batteryless-Microphone | 9924582a46d23cf580f9b8acc998f650cb022bc6 | [
"MIT"
] | 1 | 2020-10-01T15:32:53.000Z | 2020-10-01T15:32:53.000Z | simulation/different_energy_density_v0_1.py | Hieronymus98/Distributed-Batteryless-Microphone | 9924582a46d23cf580f9b8acc998f650cb022bc6 | [
"MIT"
] | null | null | null | simulation/different_energy_density_v0_1.py | Hieronymus98/Distributed-Batteryless-Microphone | 9924582a46d23cf580f9b8acc998f650cb022bc6 | [
"MIT"
] | 1 | 2021-03-20T07:46:54.000Z | 2021-03-20T07:46:54.000Z | import matplotlib.pyplot as plt
e_buf_size = 47000 # 47000 nF
harv_rate = [8, 30] # harvesting rate in shadow and light
e_consump_rate = 120 # energy consumption rate
nodes_in_shadow = 0.3
num_nodes = 10 # number of nodes
tot_time = 50000 # 1000 seconds
# the reason behind this linear relation is the use of... | 37.846154 | 92 | 0.85315 | 339 | 1,968 | 4.40708 | 0.19469 | 0.128514 | 0.103079 | 0.091031 | 0.78581 | 0.718876 | 0.554217 | 0.464525 | 0.443106 | 0.443106 | 0 | 0.022702 | 0.082317 | 1,968 | 51 | 93 | 38.588235 | 0.80454 | 0.102642 | 0 | 0.390244 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.02439 | 0 | 0.02439 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
38a338a18a5265f5514ea5b6cad18a356432d3e5 | 770 | py | Python | complaint_app/serializers.py | sriniArumalla/fullstack-coding-challenge | 654b03f5e1ef69387540820a0004afc598e307d0 | [
"MIT"
] | null | null | null | complaint_app/serializers.py | sriniArumalla/fullstack-coding-challenge | 654b03f5e1ef69387540820a0004afc598e307d0 | [
"MIT"
] | 5 | 2020-06-06T01:31:01.000Z | 2021-06-09T18:57:04.000Z | complaint_app/serializers.py | sriniArumalla/fullstack-coding-challenge | 654b03f5e1ef69387540820a0004afc598e307d0 | [
"MIT"
] | null | null | null | from django.contrib.auth.models import User
from .models import UserProfile, Complaint
from rest_framework import serializers
class UserSerializer(serializers.ModelSerializer):
class Meta:
model = User
fields = ('id','username', 'first_name','last_name')
class UserProfileSerializer(serializers.Mod... | 38.5 | 150 | 0.718182 | 82 | 770 | 6.646341 | 0.609756 | 0.143119 | 0.077064 | 0.12844 | 0.146789 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.158442 | 770 | 19 | 151 | 40.526316 | 0.841049 | 0.080519 | 0 | 0.2 | 0 | 0 | 0.230878 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
38a99c9f2cdb52d5859f90d2e3027e9dab2a31bb | 938 | py | Python | SC_projects/games/quadratic_solver.py | hsiaohan416/stancode | 8920f2e99e184d165fa04551f24a2da8b0975219 | [
"MIT"
] | null | null | null | SC_projects/games/quadratic_solver.py | hsiaohan416/stancode | 8920f2e99e184d165fa04551f24a2da8b0975219 | [
"MIT"
] | null | null | null | SC_projects/games/quadratic_solver.py | hsiaohan416/stancode | 8920f2e99e184d165fa04551f24a2da8b0975219 | [
"MIT"
] | null | null | null | """
File: quadratic_solver.py
-----------------------
This program should implement a console program
that asks 3 inputs (a, b, and c)
from users to compute the roots of equation
ax^2 + bx + c = 0
Output format should match what is shown in the sample
run in the Assignment 2 Handout.
"""
import math
def main():
""... | 19.142857 | 55 | 0.610874 | 151 | 938 | 3.695364 | 0.496689 | 0.057348 | 0.09319 | 0.050179 | 0.136201 | 0.082437 | 0 | 0 | 0 | 0 | 0 | 0.022546 | 0.196162 | 938 | 48 | 56 | 19.541667 | 0.717507 | 0.341151 | 0 | 0.095238 | 0 | 0 | 0.231293 | 0 | 0 | 0 | 0 | 0.020833 | 0 | 1 | 0.047619 | false | 0 | 0.047619 | 0 | 0.095238 | 0.238095 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
38ad996751b0cf63d4e18d8f510b42e991e1ee41 | 2,727 | py | Python | overcooked_ai_py/env.py | bic4907/Overcooked-AI | 547be010d39cb55165b073647588c7f7712922ff | [
"MIT"
] | 12 | 2021-08-10T08:37:21.000Z | 2022-03-07T23:38:11.000Z | overcooked_ai_py/env.py | bic4907/Overcooked-AI | 547be010d39cb55165b073647588c7f7712922ff | [
"MIT"
] | null | null | null | overcooked_ai_py/env.py | bic4907/Overcooked-AI | 547be010d39cb55165b073647588c7f7712922ff | [
"MIT"
] | 1 | 2021-12-28T02:33:44.000Z | 2021-12-28T02:33:44.000Z | import gym
from gym import spaces
import cv2
import pygame
import copy
import numpy as np
from overcooked_ai_py.mdp.overcooked_env import OvercookedEnv as OriginalEnv
from overcooked_ai_py.mdp.overcooked_mdp import OvercookedGridworld
from overcooked_ai_py.visualization.state_visualizer import StateVisualizer
from ov... | 30.988636 | 111 | 0.686469 | 330 | 2,727 | 5.427273 | 0.309091 | 0.093802 | 0.053043 | 0.040201 | 0.142379 | 0.130653 | 0.096036 | 0.063652 | 0.063652 | 0 | 0 | 0.012736 | 0.222589 | 2,727 | 87 | 112 | 31.344828 | 0.832075 | 0.010268 | 0 | 0.04918 | 0 | 0 | 0.008528 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.180328 | false | 0 | 0.163934 | 0.065574 | 0.52459 | 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 |
38b4a0f1a5171b8b10080ea8cb06dff6f6c9fff0 | 935 | py | Python | arithmetic_tester.py | iomintz/python-snippets | 982861c173bf4bcd5d908514a9e8b1914a580a5d | [
"CC0-1.0"
] | 2 | 2020-04-10T07:29:56.000Z | 2020-05-27T03:45:21.000Z | arithmetic_tester.py | LyricLy/python-snippets | 9d868b7bbccd793ea1dc513f51290963584a1dee | [
"CC0-1.0"
] | null | null | null | arithmetic_tester.py | LyricLy/python-snippets | 9d868b7bbccd793ea1dc513f51290963584a1dee | [
"CC0-1.0"
] | 2 | 2018-11-24T08:16:59.000Z | 2019-02-24T04:41:30.000Z | #!/usr/bin/env python3
# encoding: utf-8
# public domain
import random
"""
spec:
[11:37 PM] nick: can you write a python function that
just generates a really long string containing all numbers and +-*/?
int type: signed 64 bit
"""
def arithmetic_gen(operand_count):
operands = []
rand_num = lambda: str(random.ra... | 22.804878 | 68 | 0.701604 | 141 | 935 | 4.468085 | 0.609929 | 0.07619 | 0.071429 | 0.079365 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026382 | 0.148663 | 935 | 40 | 69 | 23.375 | 0.765075 | 0.079144 | 0 | 0.086957 | 1 | 0 | 0.054598 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0.086957 | 0 | 0.26087 | 0.086957 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
38b728444abf0e4627a444ba1208e52a9c6bfa92 | 7,272 | py | Python | baby_backend/apps/customers/migrations/0001_initial.py | mthnglac/BabyTextile-Server | b60c460bf3d3f0250cfc6630acd40e182acae1df | [
"MIT"
] | 1 | 2022-01-06T18:13:36.000Z | 2022-01-06T18:13:36.000Z | baby_backend/apps/customers/migrations/0001_initial.py | mthnglac/BabyTextile-Server | b60c460bf3d3f0250cfc6630acd40e182acae1df | [
"MIT"
] | null | null | null | baby_backend/apps/customers/migrations/0001_initial.py | mthnglac/BabyTextile-Server | b60c460bf3d3f0250cfc6630acd40e182acae1df | [
"MIT"
] | null | null | null | # Generated by Django 3.0.5 on 2020-06-01 22:25
import baby_backend.apps.customers.models
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
mi... | 65.513514 | 197 | 0.625275 | 761 | 7,272 | 5.781866 | 0.187911 | 0.1475 | 0.054545 | 0.043636 | 0.634318 | 0.592045 | 0.543864 | 0.505682 | 0.496818 | 0.475455 | 0 | 0.010029 | 0.232123 | 7,272 | 110 | 198 | 66.109091 | 0.777937 | 0.006188 | 0 | 0.446602 | 1 | 0 | 0.216747 | 0.006228 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.029126 | 0.048544 | 0 | 0.087379 | 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 |
38b74d5e8161958129109247da9a98cb73b8feb3 | 60,421 | py | Python | test_pathlib.py | overcastcloud/pathlib | e302c3db9402fcda2d93791ad3d22b3b4ffaf49f | [
"MIT"
] | 1 | 2019-04-15T13:49:51.000Z | 2019-04-15T13:49:51.000Z | test_pathlib.py | pombreda/pathlib | 7c5197847e31b7370bdc54f59760c140bcc8c22f | [
"MIT"
] | null | null | null | test_pathlib.py | pombreda/pathlib | 7c5197847e31b7370bdc54f59760c140bcc8c22f | [
"MIT"
] | null | null | null | import collections
import io
import os
import errno
import pathlib
import pickle
import shutil
import stat
import sys
import tempfile
import unittest
from contextlib import contextmanager
try:
from test import support
except ImportError:
from test import test_support as support
TESTFN = support.TESTFN
try:
... | 37.090853 | 96 | 0.527184 | 7,914 | 60,421 | 3.936315 | 0.077837 | 0.021828 | 0.074474 | 0.025039 | 0.652061 | 0.576785 | 0.510208 | 0.461062 | 0.41702 | 0.386043 | 0 | 0.003744 | 0.270585 | 60,421 | 1,628 | 97 | 37.113636 | 0.703099 | 0.07226 | 0 | 0.348289 | 0 | 0 | 0.098869 | 0.002952 | 0 | 0 | 0 | 0 | 0.421293 | 1 | 0.098859 | false | 0.002281 | 0.015209 | 0 | 0.143726 | 0.00076 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 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 |
38b8fd25987eedeaf7a3abd86883ebc5a6734152 | 1,757 | py | Python | fastestimator/dataset/data/__init__.py | DwijayDS/fastestimator | 9b288cb2bd870f971ec4cee09d0b3205e1316a94 | [
"Apache-2.0"
] | null | null | null | fastestimator/dataset/data/__init__.py | DwijayDS/fastestimator | 9b288cb2bd870f971ec4cee09d0b3205e1316a94 | [
"Apache-2.0"
] | null | null | null | fastestimator/dataset/data/__init__.py | DwijayDS/fastestimator | 9b288cb2bd870f971ec4cee09d0b3205e1316a94 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 The FastEstimator Authors. All Rights Reserved.
#
# 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 appl... | 56.677419 | 118 | 0.584519 | 179 | 1,757 | 5.553073 | 0.614525 | 0.060362 | 0.026157 | 0.032193 | 0.392354 | 0.392354 | 0.392354 | 0.392354 | 0.392354 | 0.392354 | 0 | 0.0336 | 0.28856 | 1,757 | 30 | 119 | 58.566667 | 0.7616 | 0.377348 | 0 | 0 | 0 | 0 | 0.18721 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.230769 | 0 | 0.230769 | 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 |
38b914701fe7f7cacc17426e0c4bfadf0c53b863 | 858 | py | Python | core/setup.py | NeolithEra/arxiv-submission-core | d4f20be62a882d2d5f3d1584eda69e7d90ca2c12 | [
"MIT"
] | null | null | null | core/setup.py | NeolithEra/arxiv-submission-core | d4f20be62a882d2d5f3d1584eda69e7d90ca2c12 | [
"MIT"
] | null | null | null | core/setup.py | NeolithEra/arxiv-submission-core | d4f20be62a882d2d5f3d1584eda69e7d90ca2c12 | [
"MIT"
] | null | null | null | """Install arXiv submission core package."""
from setuptools import setup, find_packages
setup(
name='arxiv-submission-core',
version='0.7.1rc40',
packages=[f'arxiv.{package}' for package
in find_packages('arxiv')],
zip_safe=False,
install_requires=[
'arxiv-base>=0.15.7rc8',
... | 24.514286 | 50 | 0.537296 | 99 | 858 | 4.575758 | 0.626263 | 0.013245 | 0.083885 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.07365 | 0.287879 | 858 | 34 | 51 | 25.235294 | 0.667758 | 0.044289 | 0 | 0 | 0 | 0 | 0.421376 | 0.126536 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.032258 | 0 | 0.032258 | 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 |
38b9d7260e0e6eaf94ee44d773cc40efd2cd1ebe | 1,375 | py | Python | lino/api/rt.py | khchine5/lino | 64f7ca9c9b83459b5b9f26174e5e3c26a137459d | [
"BSD-2-Clause"
] | 1 | 2018-01-12T14:10:11.000Z | 2018-01-12T14:10:11.000Z | lino/api/rt.py | khchine5/lino | 64f7ca9c9b83459b5b9f26174e5e3c26a137459d | [
"BSD-2-Clause"
] | null | null | null | lino/api/rt.py | khchine5/lino | 64f7ca9c9b83459b5b9f26174e5e3c26a137459d | [
"BSD-2-Clause"
] | null | null | null | # Copyright 2014-2018 Rumma & Ko Ltd
# License: BSD (see file COPYING for details)
from django.conf import settings
from lino.core.utils import models_by_base
models = settings.SITE.models
"""
"""
from lino.core.exceptions import ChangedAPI
actors = modules = ChangedAPI(
"Replace rt.modules and rt.actors by rt.... | 28.645833 | 78 | 0.768 | 195 | 1,375 | 5.184615 | 0.364103 | 0.189911 | 0.059347 | 0.071217 | 0.152324 | 0.069238 | 0 | 0 | 0 | 0 | 0 | 0.006623 | 0.121455 | 1,375 | 47 | 79 | 29.255319 | 0.830298 | 0.268364 | 0 | 0.083333 | 0 | 0 | 0.091954 | 0.037356 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.125 | 0.125 | 0.458333 | 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 |
38bcd22d53a79cd69773afa8e9adc4936b833f1a | 692 | py | Python | stade/tracker/migrations/0001_initial.py | ImageMarkup/stade | d930e8c7487754b2babd6a3be69f2c614cd7f609 | [
"Apache-2.0"
] | 4 | 2019-09-25T22:57:32.000Z | 2021-03-03T16:49:30.000Z | stade/tracker/migrations/0001_initial.py | ImageMarkup/stade | d930e8c7487754b2babd6a3be69f2c614cd7f609 | [
"Apache-2.0"
] | 55 | 2019-10-30T16:58:43.000Z | 2021-10-09T23:26:03.000Z | stade/tracker/migrations/0001_initial.py | ImageMarkup/stade | d930e8c7487754b2babd6a3be69f2c614cd7f609 | [
"Apache-2.0"
] | 1 | 2020-02-03T17:14:32.000Z | 2020-02-03T17:14:32.000Z | # Generated by Django 2.2.1 on 2019-05-13 10:27
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies: list[tuple[str, str]] = []
operations = [
migrations.CreateModel(
name='Email',
fields=[
(
... | 25.62963 | 95 | 0.501445 | 64 | 692 | 5.328125 | 0.71875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042453 | 0.387283 | 692 | 26 | 96 | 26.615385 | 0.761792 | 0.065029 | 0 | 0.105263 | 1 | 0 | 0.032558 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 0.263158 | 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 |
38bd890ca6a3fe19fa1a8d171f0923262dd3a20a | 3,391 | py | Python | parsemodsec.py | ExaByt3s/hack_scripts | cc801b36ea25f3b5a82d2900f53f5036e7abd8ad | [
"WTFPL"
] | 3 | 2021-01-22T19:32:23.000Z | 2022-01-03T01:06:44.000Z | parsemodsec.py | a04512/hack_scripts | cc801b36ea25f3b5a82d2900f53f5036e7abd8ad | [
"WTFPL"
] | null | null | null | parsemodsec.py | a04512/hack_scripts | cc801b36ea25f3b5a82d2900f53f5036e7abd8ad | [
"WTFPL"
] | 1 | 2019-06-18T22:10:53.000Z | 2019-06-18T22:10:53.000Z | #!/usr/bin/python3
__author__ = 'kilroy'
# (c) 2014, WasHere Consulting, Inc.
# Written for Infinite Skills
# this requires Python 3 to function properly
import os, sys, re, argparse
# This is a class designed to store the results from the parsed file until we're
# ready to print them out
class modsecRec:
#... | 35.694737 | 107 | 0.621351 | 390 | 3,391 | 5.371795 | 0.423077 | 0.042959 | 0.030072 | 0.020048 | 0.061098 | 0.031504 | 0 | 0 | 0 | 0 | 0 | 0.003317 | 0.288705 | 3,391 | 94 | 108 | 36.074468 | 0.865257 | 0.263934 | 0 | 0.105263 | 0 | 0 | 0.068255 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0.052632 | 0.017544 | 0 | 0.140351 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
38bf17499c35d22df27faf67f2a9d9a424ef54cd | 2,749 | py | Python | cliente.py | souzalucas/chat_p2p_udp_python | 076f80c621034f93c8e47d14c3c898964e9b34fc | [
"MIT"
] | null | null | null | cliente.py | souzalucas/chat_p2p_udp_python | 076f80c621034f93c8e47d14c3c898964e9b34fc | [
"MIT"
] | null | null | null | cliente.py | souzalucas/chat_p2p_udp_python | 076f80c621034f93c8e47d14c3c898964e9b34fc | [
"MIT"
] | null | null | null | # Implementação de um chat P2P que possibita os clientes trocarem mensagens entre si com o formato:
# - tamanho apelido (tam_apl) [1 byte]
# - apelido [tam_apl bytes]
# - tamanho mensagem (tam_msg) [1 byte]
# - mensagem [tam_msg bytes].
# Autor: Lucas Souza Santos
# Data de Criação: 10/08/2020
# Ultima atualiza... | 38.71831 | 110 | 0.631866 | 363 | 2,749 | 4.727273 | 0.396694 | 0.083333 | 0.037296 | 0.02331 | 0.207459 | 0.085082 | 0.085082 | 0.085082 | 0.085082 | 0.085082 | 0 | 0.033481 | 0.261186 | 2,749 | 71 | 111 | 38.71831 | 0.811423 | 0.356493 | 0 | 0.075 | 0 | 0 | 0.190334 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.075 | false | 0.075 | 0.075 | 0 | 0.15 | 0.15 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
38c2b4e5e08aa757659280eb597bb26786128d4d | 459 | py | Python | examples/web.py | msabramo/diesel | a1ed7ed0358d0fec8592e23aafc3b7ec167ab649 | [
"BSD-3-Clause"
] | 224 | 2015-01-03T06:33:05.000Z | 2021-11-22T03:19:02.000Z | examples/web.py | dowski/diesel | d9824e467805caf40e0ba21b88a27db38e64c352 | [
"BSD-3-Clause"
] | 12 | 2015-01-01T03:35:15.000Z | 2021-05-22T23:37:28.000Z | examples/web.py | dowski/diesel | d9824e467805caf40e0ba21b88a27db38e64c352 | [
"BSD-3-Clause"
] | 37 | 2015-01-04T01:47:55.000Z | 2022-03-03T02:04:15.000Z | from diesel.web import DieselFlask, request
app = DieselFlask(__name__)
@app.route("/")
def hello():
name = request.args.get('name', 'world')
return "hello, %s!" % name
@app.route("/err")
def err():
a = b
return "never happens.."
if __name__ == '__main__':
import diesel
def t():
whil... | 19.956522 | 44 | 0.594771 | 60 | 459 | 4.316667 | 0.583333 | 0.054054 | 0.092664 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00289 | 0.246187 | 459 | 22 | 45 | 20.863636 | 0.745665 | 0 | 0 | 0 | 0 | 0 | 0.132898 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.111111 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
38c35918265ce50473f5436c72448486aae17cb9 | 2,281 | py | Python | test_pg13/test_dbapi2.py | abe-winter/pg13-py | e647ce1f22f285edeb7daeeacdc1d9569d9c1f55 | [
"MIT"
] | 18 | 2015-01-15T15:19:01.000Z | 2020-08-05T04:26:28.000Z | test_pg13/test_dbapi2.py | abe-winter/pg13-py | e647ce1f22f285edeb7daeeacdc1d9569d9c1f55 | [
"MIT"
] | 22 | 2015-04-06T01:44:48.000Z | 2015-08-07T23:16:04.000Z | test_pg13/test_dbapi2.py | abe-winter/pg13-py | e647ce1f22f285edeb7daeeacdc1d9569d9c1f55 | [
"MIT"
] | 1 | 2015-04-03T03:13:03.000Z | 2015-04-03T03:13:03.000Z | import pytest
from pg13 import pgmock_dbapi2, sqparse2
def test_connection():
with pgmock_dbapi2.connect() as a, a.cursor() as acur:
acur.execute('create table t1 (a int)')
acur.execute('insert into t1 values (1)')
acur.execute('insert into t1 values (3)')
# test second connction into same DB
with p... | 33.544118 | 84 | 0.662429 | 361 | 2,281 | 4.119114 | 0.279778 | 0.0269 | 0.075319 | 0.108272 | 0.558171 | 0.474109 | 0.379287 | 0.352387 | 0.352387 | 0.267653 | 0 | 0.034261 | 0.181061 | 2,281 | 67 | 85 | 34.044776 | 0.761777 | 0.103025 | 0 | 0.346154 | 0 | 0 | 0.194058 | 0 | 0 | 0 | 0 | 0.014925 | 0.153846 | 1 | 0.153846 | false | 0 | 0.038462 | 0 | 0.192308 | 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 |
38c67988158bb59e865955d7e33b630bbf01b19f | 1,157 | py | Python | customer_success/migrations/0013_auto_20200529_1032.py | Revibe-Music/core-services | 6b11cf16ad2c35d948f3a5c0e7a161e5b7cfc1b2 | [
"MIT"
] | 2 | 2022-01-24T23:30:18.000Z | 2022-01-26T00:21:22.000Z | customer_success/migrations/0013_auto_20200529_1032.py | Revibe-Music/core-services | 6b11cf16ad2c35d948f3a5c0e7a161e5b7cfc1b2 | [
"MIT"
] | null | null | null | customer_success/migrations/0013_auto_20200529_1032.py | Revibe-Music/core-services | 6b11cf16ad2c35d948f3a5c0e7a161e5b7cfc1b2 | [
"MIT"
] | null | null | null | # Generated by Django 3.0 on 2020-05-29 15:32
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('customer_success', '0012_auto_20200528_1414'),
]
operations = [
migrations.AddField(
model_name='action',
name='recur_... | 39.896552 | 197 | 0.654278 | 139 | 1,157 | 5.309353 | 0.546763 | 0.073171 | 0.093496 | 0.109756 | 0.163957 | 0.163957 | 0.113821 | 0 | 0 | 0 | 0 | 0.036281 | 0.237684 | 1,157 | 28 | 198 | 41.321429 | 0.800454 | 0.037165 | 0 | 0.409091 | 1 | 0 | 0.34982 | 0.060252 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
38cd5fe92d1b28b06a45ebb2e55ed52d14a8de28 | 561 | py | Python | gerenciador_tarefas/gerenciador.py | melkibalbino/gerenciador-tarefas | a398db958a0d96d94a6e7d95ecc3eb3bbca079ca | [
"MIT"
] | 1 | 2021-11-09T19:55:37.000Z | 2021-11-09T19:55:37.000Z | gerenciador_tarefas/gerenciador.py | melkibalbino/gerenciador-tarefas | a398db958a0d96d94a6e7d95ecc3eb3bbca079ca | [
"MIT"
] | null | null | null | gerenciador_tarefas/gerenciador.py | melkibalbino/gerenciador-tarefas | a398db958a0d96d94a6e7d95ecc3eb3bbca079ca | [
"MIT"
] | null | null | null | from fastapi import FastAPI
app = FastAPI()
TAREFAS = [
{
"id": "1",
"titulo": "fazer compras",
"descrição": "comprar leite e ovos",
"estado": "não finalizado",
},
{
"id": "2",
"titulo": "levar o cachorro para tosar",
"descrição": "está muito peludo"... | 18.7 | 48 | 0.490196 | 53 | 561 | 5.188679 | 0.679245 | 0.098182 | 0.207273 | 0.152727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008065 | 0.336898 | 561 | 29 | 49 | 19.344828 | 0.731183 | 0 | 0 | 0.12 | 0 | 0 | 0.395722 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.04 | 0.04 | 0.12 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
38cee750857c5a07e4a43171828186dc43fb0d22 | 775 | py | Python | feeds/models.py | KwabenaYeboah/photoshare | 090f13a2dd9ac9f9d41a73f943d301d6a32323b8 | [
"MIT"
] | 3 | 2021-11-20T08:03:18.000Z | 2021-11-25T15:45:27.000Z | feeds/models.py | KwabenaYeboah/photoshare | 090f13a2dd9ac9f9d41a73f943d301d6a32323b8 | [
"MIT"
] | null | null | null | feeds/models.py | KwabenaYeboah/photoshare | 090f13a2dd9ac9f9d41a73f943d301d6a32323b8 | [
"MIT"
] | null | null | null | from django.db import models
from django.contrib.contenttypes.models import ContentType
from django.contrib.contenttypes.fields import GenericForeignKey
class Feed(models.Model):
user = models.ForeignKey('auth.User', related_name='actions',
on_delete=models.CASCADE, db_index=True)
... | 48.4375 | 89 | 0.703226 | 89 | 775 | 5.966292 | 0.47191 | 0.056497 | 0.06403 | 0.109228 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004823 | 0.197419 | 775 | 16 | 90 | 48.4375 | 0.848875 | 0 | 0 | 0 | 0 | 0 | 0.070876 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.214286 | 0 | 0.785714 | 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 |
38d86b848e9bb0c731dbf49fe1a1a9a227ba89f0 | 1,790 | py | Python | test/test_zeropark.py | glaceon2000/interads | 6ad872634a2b1f3d51fb10fcbc37e9211b72ea97 | [
"MIT"
] | null | null | null | test/test_zeropark.py | glaceon2000/interads | 6ad872634a2b1f3d51fb10fcbc37e9211b72ea97 | [
"MIT"
] | null | null | null | test/test_zeropark.py | glaceon2000/interads | 6ad872634a2b1f3d51fb10fcbc37e9211b72ea97 | [
"MIT"
] | null | null | null | import unittest
import httpretty
import json
from services.zeropark import ZeroparkService
from services.responses.zeropark_response import ZeroparkObject
from core.exception.exceptions import WrongInputException
class TestFunction(unittest.TestCase):
@httpretty.activate
def test_get_by_campaigns_id_with_de... | 49.722222 | 176 | 0.695531 | 188 | 1,790 | 6.393617 | 0.367021 | 0.039933 | 0.046589 | 0.053245 | 0.750416 | 0.750416 | 0.630616 | 0.595674 | 0.595674 | 0.522463 | 0 | 0.097999 | 0.190503 | 1,790 | 36 | 177 | 49.722222 | 0.731539 | 0 | 0 | 0.333333 | 0 | 0.066667 | 0.331658 | 0.13847 | 0 | 0 | 0 | 0 | 0.066667 | 1 | 0.066667 | false | 0 | 0.2 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
38dfbb411e584fa9dae0ba82fcc1220a2e797a85 | 327 | py | Python | students/K33422/Tostanovskaya Anna/laboratory_works/Lr1/task2/client.py | relanwo/ITMO_ICT_WebDevelopment_2021-2022 | c02fe959ab55b40089090d9f49716b131cd12ef9 | [
"MIT"
] | null | null | null | students/K33422/Tostanovskaya Anna/laboratory_works/Lr1/task2/client.py | relanwo/ITMO_ICT_WebDevelopment_2021-2022 | c02fe959ab55b40089090d9f49716b131cd12ef9 | [
"MIT"
] | null | null | null | students/K33422/Tostanovskaya Anna/laboratory_works/Lr1/task2/client.py | relanwo/ITMO_ICT_WebDevelopment_2021-2022 | c02fe959ab55b40089090d9f49716b131cd12ef9 | [
"MIT"
] | null | null | null | import socket
connection = socket.socket()
connection.connect(("127.0.0.1", 14900))
task = "Pifagor: Gipotenuza"
connection.send(task.encode("utf-8"))
data = connection.recv(16384)
print(data.decode())
cathetus = input()
connection.send(cathetus.encode())
data = connection.recv(16384)
connection.close()
print(data.de... | 23.357143 | 40 | 0.743119 | 43 | 327 | 5.651163 | 0.534884 | 0.131687 | 0.148148 | 0.1893 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.07309 | 0.079511 | 327 | 14 | 41 | 23.357143 | 0.734219 | 0 | 0 | 0.333333 | 0 | 0 | 0.10061 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 0.166667 | 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 |
38e776e3d7b297be0b08589594411debe80f5d3c | 1,118 | py | Python | utils.py | tshirtman/snakenest | ae1bad4c9859498b213c257d874150ee52c81acf | [
"MIT"
] | 1 | 2020-05-08T17:58:27.000Z | 2020-05-08T17:58:27.000Z | utils.py | tshirtman/snakenest | ae1bad4c9859498b213c257d874150ee52c81acf | [
"MIT"
] | null | null | null | utils.py | tshirtman/snakenest | ae1bad4c9859498b213c257d874150ee52c81acf | [
"MIT"
] | 1 | 2020-05-08T17:58:30.000Z | 2020-05-08T17:58:30.000Z | from database import connection, root
from functools import wraps
def _(str):
"""
placeholder translation function
"""
return str
def valid_login(username, password):
"""
#XXX Must use hashing/salting
"""
if connection['my_forum'].users.find_one(
{'name': username, 'passwo... | 21.09434 | 72 | 0.59034 | 137 | 1,118 | 4.693431 | 0.437956 | 0.037325 | 0.043546 | 0.052877 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001261 | 0.290698 | 1,118 | 52 | 73 | 21.5 | 0.809584 | 0.055456 | 0 | 0.060606 | 0 | 0 | 0.069336 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0.060606 | 0.060606 | 0 | 0.484848 | 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 |
38e8eefdfc24c9dd48894bb2a894bef840723614 | 578 | py | Python | gui/arena/my_ellipse.py | Flipajs/FERDA | 120a9e16d7ab4877f72fadbe4484c8b91adf22c4 | [
"MIT"
] | 1 | 2021-04-23T10:00:49.000Z | 2021-04-23T10:00:49.000Z | gui/arena/my_ellipse.py | Flipajs/FERDA | 120a9e16d7ab4877f72fadbe4484c8b91adf22c4 | [
"MIT"
] | null | null | null | gui/arena/my_ellipse.py | Flipajs/FERDA | 120a9e16d7ab4877f72fadbe4484c8b91adf22c4 | [
"MIT"
] | null | null | null | __author__ = 'filip@naiser.cz'
from PyQt4 import QtGui, QtCore
class MyEllipse(QtGui.QGraphicsEllipseItem):
def __init__(self, update_callback=None, radius=10.0):
super(MyEllipse, self).__init__(-radius/2, -radius/2, radius, radius)
self.setFlag(QtGui.QGraphicsItem.ItemIsMovable, True)
self... | 36.125 | 77 | 0.714533 | 65 | 578 | 6.092308 | 0.476923 | 0.176768 | 0.181818 | 0.146465 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012685 | 0.181661 | 578 | 15 | 78 | 38.533333 | 0.824524 | 0 | 0 | 0 | 0 | 0 | 0.025952 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c7f81f1271dedc46a2104b39f6135eb85f9b73be | 5,320 | py | Python | cfdm/core/docstring/docstring.py | tsjackson-noaa/cfdm | a669677905badaced2eba87413288ac0bc2697fc | [
"MIT"
] | 22 | 2018-11-07T18:16:22.000Z | 2022-03-16T16:05:21.000Z | cfdm/core/docstring/docstring.py | tsjackson-noaa/cfdm | a669677905badaced2eba87413288ac0bc2697fc | [
"MIT"
] | 119 | 2019-04-08T08:00:24.000Z | 2022-03-22T08:21:22.000Z | cfdm/core/docstring/docstring.py | tsjackson-noaa/cfdm | a669677905badaced2eba87413288ac0bc2697fc | [
"MIT"
] | 8 | 2019-04-09T10:12:26.000Z | 2021-07-22T02:41:15.000Z | """Define docstring substitutions.
Text to be replaced is specified as a key in the returned dictionary,
with the replacement text defined by the corresponding value.
Special docstring substitutions, as defined by a class's
`_docstring_special_substitutions` method, may be used in the
replacement text, and will be su... | 43.966942 | 98 | 0.544361 | 559 | 5,320 | 5.139535 | 0.289803 | 0.033415 | 0.020884 | 0.031326 | 0.238079 | 0.215802 | 0.197007 | 0.147581 | 0.057083 | 0 | 0 | 0.002638 | 0.287406 | 5,320 | 120 | 99 | 44.333333 | 0.75521 | 0.278195 | 0 | 0.090909 | 0 | 0 | 0.902074 | 0.016277 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0.015152 | 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 |
c7fb214fae3fded717cf6f81efa4597cbd26ada0 | 1,467 | py | Python | app/backend/data_manipulation/import_data.py | hadas-schlessinger/CytoMod | 294a7fb7e3c1ce6157b7e5c17455552400c83d9a | [
"MIT"
] | null | null | null | app/backend/data_manipulation/import_data.py | hadas-schlessinger/CytoMod | 294a7fb7e3c1ce6157b7e5c17455552400c83d9a | [
"MIT"
] | null | null | null | app/backend/data_manipulation/import_data.py | hadas-schlessinger/CytoMod | 294a7fb7e3c1ce6157b7e5c17455552400c83d9a | [
"MIT"
] | null | null | null | import os
import sys
from app.backend import tools
import warnings
sys.path.append(os.path.join(os.getcwd(), 'cytomod', 'otherTools'))
warnings.filterwarnings('ignore')
warnings.simplefilter('ignore')
def make_cyto_data(parameters):
cy_data_name = tools.read_excel(os.path.join(parameters.path_files, 'data_files_a... | 43.147059 | 152 | 0.73347 | 211 | 1,467 | 4.886256 | 0.331754 | 0.052376 | 0.058196 | 0.077595 | 0.390883 | 0.390883 | 0.390883 | 0.390883 | 0.321048 | 0.321048 | 0 | 0.011962 | 0.145194 | 1,467 | 33 | 153 | 44.454545 | 0.810207 | 0.055215 | 0 | 0.083333 | 0 | 0 | 0.085631 | 0.047896 | 0 | 0 | 0 | 0.030303 | 0 | 1 | 0.083333 | false | 0 | 0.166667 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c7fc7157d85ba6e9f63fae0ad409c35d11593ab2 | 558 | py | Python | prev_exams_and_ans/2019ccc/q3_cold_compress/cold_compress.py | Yueleng/ccc_cco_material | e064a76a8bdc07cbfdba3ec8f6849cc1b90317e0 | [
"MIT"
] | null | null | null | prev_exams_and_ans/2019ccc/q3_cold_compress/cold_compress.py | Yueleng/ccc_cco_material | e064a76a8bdc07cbfdba3ec8f6849cc1b90317e0 | [
"MIT"
] | null | null | null | prev_exams_and_ans/2019ccc/q3_cold_compress/cold_compress.py | Yueleng/ccc_cco_material | e064a76a8bdc07cbfdba3ec8f6849cc1b90317e0 | [
"MIT"
] | null | null | null | num_of_lines = int(input())
def cold_compress(cum, rs):
N = len(cum)
# exit
if (rs == ""):
output_string = ""
for s in cum:
output_string += str(s) + " "
return output_string
# iteration
if (N >= 2 and cum[N-1] == rs[0]):
cnt = cum[N-2]
cnt += 1
... | 21.461538 | 41 | 0.503584 | 81 | 558 | 3.333333 | 0.395062 | 0.177778 | 0.166667 | 0.188889 | 0.177778 | 0.177778 | 0 | 0 | 0 | 0 | 0 | 0.02981 | 0.33871 | 558 | 25 | 42 | 22.32 | 0.701897 | 0.02509 | 0 | 0.105263 | 0 | 0 | 0.001852 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0 | 0 | 0.210526 | 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 |
c7fee06988bf126621e42f781abb2665ba43ee83 | 213 | py | Python | tests/fixtures/__init__.py | reverbrain/swarm | 3f1d599749bef277db0eeeb453ba29cc7b4bca85 | [
"Apache-2.0"
] | 23 | 2015-03-04T12:28:24.000Z | 2021-11-16T10:53:30.000Z | tests/fixtures/__init__.py | reverbrain/swarm | 3f1d599749bef277db0eeeb453ba29cc7b4bca85 | [
"Apache-2.0"
] | 38 | 2015-01-13T13:11:01.000Z | 2016-07-05T13:20:54.000Z | tests/fixtures/__init__.py | reverbrain/swarm | 3f1d599749bef277db0eeeb453ba29cc7b4bca85 | [
"Apache-2.0"
] | 18 | 2015-01-09T22:35:52.000Z | 2017-04-26T15:12:29.000Z | from io_loop import io_loop
from io_stream import io_stream
from http_connection import http_connection
from server import server
__all__ = [
"io_loop",
"io_stream",
"http_connection",
"server"
]
| 17.75 | 43 | 0.741784 | 30 | 213 | 4.833333 | 0.3 | 0.124138 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.192488 | 213 | 11 | 44 | 19.363636 | 0.843023 | 0 | 0 | 0 | 0 | 0 | 0.173709 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
2a04d8dcb7bb52b08cd2ca654f2573bd39de5e74 | 685 | py | Python | PyGame/pygame3/ex2/myGameEngine.py | hoppfull/Legacy-Python | 43f465bfdb76c91f2ac16aabb0783fdf5f459adb | [
"MIT"
] | null | null | null | PyGame/pygame3/ex2/myGameEngine.py | hoppfull/Legacy-Python | 43f465bfdb76c91f2ac16aabb0783fdf5f459adb | [
"MIT"
] | null | null | null | PyGame/pygame3/ex2/myGameEngine.py | hoppfull/Legacy-Python | 43f465bfdb76c91f2ac16aabb0783fdf5f459adb | [
"MIT"
] | null | null | null | import pygame as pg
from pygame.locals import KEYUP, K_ESCAPE, QUIT
class GameEngine:
def __init__(self, size = (640, 480), fps = 1):
pg.init()
self.size, self.fps = size, fps
self.screen = pg.display.set_mode(self.size)
self.running = False
def mainLoop(self):
self.running = True
while(self.runnin... | 21.40625 | 55 | 0.662774 | 101 | 685 | 4.425743 | 0.465347 | 0.123043 | 0.107383 | 0.085011 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012774 | 0.2 | 685 | 32 | 56 | 21.40625 | 0.80292 | 0 | 0 | 0.192308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.192308 | false | 0.076923 | 0.076923 | 0 | 0.307692 | 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 |
2a06066ac6d215b92eb1b350b70222510b309ce7 | 806 | py | Python | e_secretary/admin.py | tsitsikas96/e-secretary | bdda95e17093da730af33acf4b15ed03331c7643 | [
"MIT"
] | null | null | null | e_secretary/admin.py | tsitsikas96/e-secretary | bdda95e17093da730af33acf4b15ed03331c7643 | [
"MIT"
] | null | null | null | e_secretary/admin.py | tsitsikas96/e-secretary | bdda95e17093da730af33acf4b15ed03331c7643 | [
"MIT"
] | 1 | 2020-03-08T16:12:34.000Z | 2020-03-08T16:12:34.000Z | from django.contrib import admin
# Register your models here.
from e_secretary.models import Course, Didaskalia, Orologio, Announcement, Drastiriotita, Professor, Student, Dilosi, Certificate, Thesis, SimmetoxiDrastiriotita, Event, Secr_Announcement, Profile
@admin.register(Course)
class CourseAdmin(admin.ModelAdmi... | 31 | 196 | 0.815136 | 95 | 806 | 6.873684 | 0.368421 | 0.179173 | 0.338438 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.07196 | 806 | 25 | 197 | 32.24 | 0.872995 | 0.032258 | 0 | 0 | 0 | 0 | 0.032134 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2a0bbad39064f091a845ffdd325086a916f836f0 | 1,235 | py | Python | classification_training/imagenet/resnet_vovnet_darknet_train_example/test_config.py | LANCEREN/simpleAICV-pytorch-ImageNet-COCO-training | 86c1b38df3cdcb195ec5b6229c343f07a52aeb7b | [
"MIT"
] | 154 | 2020-05-31T08:31:12.000Z | 2021-05-14T02:46:32.000Z | classification_training/imagenet/resnet_vovnet_darknet_train_example/test_config.py | LANCEREN/simpleAICV-pytorch-ImageNet-COCO-training | 86c1b38df3cdcb195ec5b6229c343f07a52aeb7b | [
"MIT"
] | 11 | 2021-05-20T09:02:50.000Z | 2022-01-20T09:55:47.000Z | classification_training/imagenet/resnet_vovnet_darknet_train_example/test_config.py | LANCEREN/simpleAICV-pytorch-ImageNet-COCO-training | 86c1b38df3cdcb195ec5b6229c343f07a52aeb7b | [
"MIT"
] | 37 | 2020-07-20T06:14:25.000Z | 2021-05-18T01:27:19.000Z | import os
import sys
BASE_DIR = os.path.dirname(
os.path.dirname(os.path.dirname(os.path.dirname(
os.path.abspath(__file__)))))
sys.path.append(BASE_DIR)
from tools.path import ILSVRC2012_path
from simpleAICV.classification import backbones
from simpleAICV.classification import losses
import torchvision... | 25.729167 | 61 | 0.65587 | 144 | 1,235 | 5.388889 | 0.444444 | 0.046392 | 0.06701 | 0.07732 | 0.074742 | 0.074742 | 0.074742 | 0.074742 | 0.074742 | 0.074742 | 0 | 0.056624 | 0.242105 | 1,235 | 47 | 62 | 26.276596 | 0.772436 | 0 | 0 | 0 | 0 | 0 | 0.030769 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.189189 | 0 | 0.594595 | 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 |
2a0faaedceac972a73346ac7917cd8f955afcf84 | 66,595 | py | Python | karesansui/lib/collectd/config.py | Kairiw/karesansui | d5a3acfe40b3953fb4f8d6f51e30d0307309a6ee | [
"MIT"
] | null | null | null | karesansui/lib/collectd/config.py | Kairiw/karesansui | d5a3acfe40b3953fb4f8d6f51e30d0307309a6ee | [
"MIT"
] | null | null | null | karesansui/lib/collectd/config.py | Kairiw/karesansui | d5a3acfe40b3953fb4f8d6f51e30d0307309a6ee | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# This file is part of Karesansui Core.
#
# Copyright (C) 2009-2012 HDE, Inc.
#
# 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 restric... | 35.086934 | 215 | 0.650004 | 7,873 | 66,595 | 5.252636 | 0.066049 | 0.02481 | 0.063065 | 0.044494 | 0.784616 | 0.750762 | 0.699449 | 0.653842 | 0.619747 | 0.580355 | 0 | 0.003406 | 0.219671 | 66,595 | 1,897 | 216 | 35.10543 | 0.792383 | 0.085232 | 0 | 0.599082 | 0 | 0 | 0.125459 | 0.001679 | 0.000765 | 0 | 0 | 0 | 0 | 1 | 0.048202 | false | 0.015302 | 0.013007 | 0 | 0.072686 | 0.014537 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2a16248aefc1684c2e31ccf8ce2be5dfe7374d50 | 3,827 | py | Python | key_word_extraction_ori.py | deepakgehlotdd/Video-Subtitle | 533c525e820aad25251341afa48d6a861de240fe | [
"MIT"
] | null | null | null | key_word_extraction_ori.py | deepakgehlotdd/Video-Subtitle | 533c525e820aad25251341afa48d6a861de240fe | [
"MIT"
] | null | null | null | key_word_extraction_ori.py | deepakgehlotdd/Video-Subtitle | 533c525e820aad25251341afa48d6a861de240fe | [
"MIT"
] | null | null | null | from nltk import tokenize
from operator import itemgetter
import math
import nltk
from nltk.corpus import stopwords
from nltk.tokenize import word_tokenize
stop_words = set(stopwords.words('english'))
#nltk.download('stopwords')
## 2 Declare Variables
doc = '''I am from speak english with vanessa da com.You are so ... | 43.488636 | 1,114 | 0.701333 | 631 | 3,827 | 4.11252 | 0.339144 | 0.052408 | 0.023121 | 0.012717 | 0.134489 | 0.116378 | 0.116378 | 0.101734 | 0.101734 | 0.101734 | 0 | 0.007964 | 0.179775 | 3,827 | 88 | 1,115 | 43.488636 | 0.818732 | 0.165665 | 0 | 0.173913 | 0 | 0.043478 | 0.44939 | 0.028355 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.152174 | 0 | 0.23913 | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2a19c93377ccee08183a0ba13b11e09b9e1b002b | 1,161 | py | Python | app/db/note.py | bartlomiej-zdrojewski/seen | 0c74dfb6bc3c6288d849d097b56cfd193982f33e | [
"MIT"
] | null | null | null | app/db/note.py | bartlomiej-zdrojewski/seen | 0c74dfb6bc3c6288d849d097b56cfd193982f33e | [
"MIT"
] | null | null | null | app/db/note.py | bartlomiej-zdrojewski/seen | 0c74dfb6bc3c6288d849d097b56cfd193982f33e | [
"MIT"
] | null | null | null | import json
class Note:
def __init__(self, id, code, title, description,
owner, authorized_users, is_public):
self.id = id
self.code = code
self.title = title
self.description = description
self.owner = owner
self.authorized_users = authorized_user... | 28.317073 | 57 | 0.595177 | 147 | 1,161 | 4.557823 | 0.272109 | 0.080597 | 0.053731 | 0.083582 | 0.126866 | 0.102985 | 0.102985 | 0 | 0 | 0 | 0 | 0 | 0.32472 | 1,161 | 40 | 58 | 29.025 | 0.854592 | 0 | 0 | 0.060606 | 0 | 0 | 0.14298 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.151515 | false | 0 | 0.030303 | 0.090909 | 0.515152 | 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 |
2a26d56fce2306a77cc5e67e580c68913fe47eca | 581 | py | Python | 24Nov/parameterPassing.py | universekavish/Python-Training | ccd7dfbc8802662de0e0fc20fe99bb3aae4c6e18 | [
"Apache-2.0"
] | null | null | null | 24Nov/parameterPassing.py | universekavish/Python-Training | ccd7dfbc8802662de0e0fc20fe99bb3aae4c6e18 | [
"Apache-2.0"
] | null | null | null | 24Nov/parameterPassing.py | universekavish/Python-Training | ccd7dfbc8802662de0e0fc20fe99bb3aae4c6e18 | [
"Apache-2.0"
] | null | null | null | #DEFAULT ARGS
print('Default Args : ')
def sample(a, b = 0, c = 1) :
print(a, b, c)
sample(10)
sample(10, 20)
sample(10, 20, 30)
#VARIABLE NUMBER OF ARGS
print('VARIABLE NUMBER OF ARGS : ')
def add(a, b, *t) :
s = a + b
for x in t :
s = s + x
return s
print(add(1, 2, 3, 4))
#KEY - WORD ARGS
print('KEY - WORD... | 16.6 | 46 | 0.586919 | 107 | 581 | 3.186916 | 0.364486 | 0.105572 | 0.187683 | 0.105572 | 0.246334 | 0.158358 | 0 | 0 | 0 | 0 | 0 | 0.060403 | 0.230637 | 581 | 34 | 47 | 17.088235 | 0.702461 | 0.146299 | 0 | 0 | 0 | 0 | 0.237805 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0 | 0 | 0.227273 | 0.363636 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2a27a97d8de84f22c28df686b1739aca332a5b2a | 4,676 | py | Python | cf_utils/cf_utils.py | snowch/nb_utils | b06473456d7a707a7328447903578c99fb8561de | [
"Apache-2.0"
] | 2 | 2016-10-30T23:25:08.000Z | 2016-11-01T14:47:23.000Z | cf_utils/cf_utils.py | snowch/nb_utils | b06473456d7a707a7328447903578c99fb8561de | [
"Apache-2.0"
] | null | null | null | cf_utils/cf_utils.py | snowch/nb_utils | b06473456d7a707a7328447903578c99fb8561de | [
"Apache-2.0"
] | null | null | null | from cloudfoundry_client.client import CloudFoundryClient
import json
class CloudFoundryUtil:
def __init__(self, target_endpoint, username, password, organization_name, space_name):
client = CloudFoundryClient(target_endpoint, skip_verification=False)
client.init_with_user_credentials(username... | 40.310345 | 116 | 0.640077 | 521 | 4,676 | 5.449136 | 0.165067 | 0.07397 | 0.041916 | 0.045791 | 0.225431 | 0.126101 | 0.057767 | 0.033815 | 0.033815 | 0 | 0 | 0.001761 | 0.271386 | 4,676 | 115 | 117 | 40.66087 | 0.831523 | 0 | 0 | 0.12766 | 0 | 0 | 0.048118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.021277 | 0.021277 | null | null | 0.031915 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
2a2b54f48a548277a55dbb85f2d231d9b8cb9146 | 1,198 | py | Python | awips/test/dafTests/testAcars.py | srcarter3/python-awips | d981062662968cf3fb105e8e23d955950ae2497e | [
"BSD-3-Clause"
] | 33 | 2016-03-17T01:21:18.000Z | 2022-02-08T10:41:06.000Z | awips/test/dafTests/testAcars.py | srcarter3/python-awips | d981062662968cf3fb105e8e23d955950ae2497e | [
"BSD-3-Clause"
] | 15 | 2016-04-19T16:34:08.000Z | 2020-09-09T19:57:54.000Z | awips/test/dafTests/testAcars.py | Unidata/python-awips | 8459aa756816e5a45d2e5bea534d23d5b1dd1690 | [
"BSD-3-Clause"
] | 20 | 2016-03-12T01:46:58.000Z | 2022-02-08T06:53:22.000Z | #
# Test DAF support for ACARS data
#
# SOFTWARE HISTORY
#
# Date Ticket# Engineer Description
# ------------ ---------- ----------- --------------------------
# 01/19/16 4795 mapeters Initial Creation.
# 04/11/16 5548 tgurney ... | 29.95 | 76 | 0.613523 | 110 | 1,198 | 6.636364 | 0.518182 | 0.038356 | 0.054795 | 0.131507 | 0.284932 | 0.284932 | 0.164384 | 0 | 0 | 0 | 0 | 0.034014 | 0.263773 | 1,198 | 39 | 77 | 30.717949 | 0.793651 | 0.335559 | 0 | 0.222222 | 0 | 0 | 0.033419 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.166667 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2a333552fc0b79266b2597fbc8802d391b94ca74 | 460 | py | Python | Scripts/Registry/use_cgi_db.py | eoc21/biopython | c0f8db8f55a506837c320459957a0ce99b0618b6 | [
"PostgreSQL"
] | 3 | 2017-10-23T21:53:57.000Z | 2019-09-23T05:14:12.000Z | Scripts/Registry/use_cgi_db.py | eoc21/biopython | c0f8db8f55a506837c320459957a0ce99b0618b6 | [
"PostgreSQL"
] | null | null | null | Scripts/Registry/use_cgi_db.py | eoc21/biopython | c0f8db8f55a506837c320459957a0ce99b0618b6 | [
"PostgreSQL"
] | 6 | 2020-02-26T16:34:20.000Z | 2020-03-04T15:34:00.000Z | """Example of fetching sequence information from a CGI database.
"""
# get any swissprot database
from Bio import db
sp = db["swissprot"]
rec = sp['O23731']
# rec = sp['P15697']
if hasattr(rec, "read"): # it is a handle
out = open("test.sp", "w")
out.write(rec.read())
out.close()
# print rec.read()[:20... | 21.904762 | 64 | 0.636957 | 72 | 460 | 4.069444 | 0.597222 | 0.163823 | 0.03413 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044568 | 0.219565 | 460 | 20 | 65 | 23 | 0.771588 | 0.230435 | 0 | 0 | 0 | 0 | 0.096774 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.076923 | null | null | 0.384615 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.