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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
46d19331d95a9aabe8ab0fbdf213f6c043f5d9f4 | 3,917 | py | Python | attributes.py | AmeliaSZK/ffxiv-squadron-planner | d98c4bba82caf5a51cbfc8ced8b2c670eeaac1ea | [
"MIT"
] | null | null | null | attributes.py | AmeliaSZK/ffxiv-squadron-planner | d98c4bba82caf5a51cbfc8ced8b2c670eeaac1ea | [
"MIT"
] | null | null | null | attributes.py | AmeliaSZK/ffxiv-squadron-planner | d98c4bba82caf5a51cbfc8ced8b2c670eeaac1ea | [
"MIT"
] | null | null | null | from dataclasses import dataclass
@dataclass(order=True, frozen=True)
class Attributes:
r"""
Immutable object to group attributes, and do operations on them.
phy = Physical
men = Mental
tac = Tactical
Attributes are printed as `(phy / men / tac)`
So `( 50 / 110 / 170)` means:
... | 30.364341 | 82 | 0.521062 | 454 | 3,917 | 4.378855 | 0.299559 | 0.014085 | 0.021127 | 0.040241 | 0.185111 | 0.147887 | 0.124748 | 0.124748 | 0.124748 | 0.124748 | 0 | 0.062929 | 0.367118 | 3,917 | 128 | 83 | 30.601563 | 0.739008 | 0.474087 | 0 | 0.222222 | 0 | 0.022222 | 0.042478 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.044444 | 0.022222 | 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 |
46d6deb7ca587b0c1dc12540a32ed1be89712a6d | 998 | py | Python | tests/pyboard/execScript_adc_son.py | david-therincourt/physique | add85faef564359252da93dca9b7dbb35bd6b4ab | [
"MIT"
] | null | null | null | tests/pyboard/execScript_adc_son.py | david-therincourt/physique | add85faef564359252da93dca9b7dbb35bd6b4ab | [
"MIT"
] | null | null | null | tests/pyboard/execScript_adc_son.py | david-therincourt/physique | add85faef564359252da93dca9b7dbb35bd6b4ab | [
"MIT"
] | null | null | null | from physique import Pyboard
import numpy as np
import matplotlib.pyplot as plt
script = """
from pyb import Pin, ADC, Timer, delay
import array
f = 20000 # fréquence d'échantillonnage
nb = 2000 # nombre de points
adc = ADC(Pin('A2')) # Activation du CAN sur la broche A0
buf = array.arra... | 22.177778 | 83 | 0.650301 | 172 | 998 | 3.744186 | 0.534884 | 0.015528 | 0.034161 | 0.037267 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.049936 | 0.217435 | 998 | 44 | 84 | 22.681818 | 0.774648 | 0.01503 | 0 | 0 | 0 | 0.03125 | 0.648676 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.15625 | 0 | 0.15625 | 0.03125 | 0 | 0 | 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 |
46e1a8c21a554419cdff3642d808e34133c9c15c | 6,975 | py | Python | Notebooks/Text-Summarization/summarize.py | Abhijit2505/Grokking-Machine-Learning- | e088eeecacaa93d0bc87478b20d3401b5699224e | [
"MIT"
] | 43 | 2020-12-18T17:18:22.000Z | 2022-03-10T08:09:45.000Z | Notebooks/Text-Summarization/summarize.py | Abhijit2505/Grokking-Machine-Learning- | e088eeecacaa93d0bc87478b20d3401b5699224e | [
"MIT"
] | 232 | 2020-12-24T20:33:30.000Z | 2021-05-28T16:03:13.000Z | Notebooks/Text-Summarization/summarize.py | Abhijit2505/Grokking-Machine-Learning- | e088eeecacaa93d0bc87478b20d3401b5699224e | [
"MIT"
] | 94 | 2020-12-21T18:17:36.000Z | 2021-12-14T17:37:56.000Z | # importing required modules
import argparse
stop_words = {'i', 'with', 'he', 'down', 'itself', 'm', 'shan', 'no', 'yourself', 'but', 'the', 'y', 'again', 'more', 'o', "she's", 'theirs', 'my', "isn't", 'are', 're', 'their', 'own', 'during', 'don', 'such', 'me', "you'll", 'have', 'has', 'an', 'isn', 'wouldn', 'between'... | 43.867925 | 1,486 | 0.600717 | 850 | 6,975 | 4.758824 | 0.321176 | 0.069221 | 0.032633 | 0.02843 | 0.132015 | 0.078121 | 0.048949 | 0.028677 | 0.028677 | 0.028677 | 0 | 0.004331 | 0.238566 | 6,975 | 158 | 1,487 | 44.14557 | 0.757296 | 0.106667 | 0 | 0.06 | 0 | 0.01 | 0.234694 | 0.003456 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.01 | 0 | 0.19 | 0.05 | 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 |
46e677c6196f6b6664b127fcdc9e5b1d74d18be7 | 1,247 | py | Python | src/backend/expungeservice/models/record.py | sico/recordexpungPDX | c2f18322014add7c78b27736bde2d29d1d086aa8 | [
"MIT"
] | 38 | 2019-05-09T03:13:43.000Z | 2022-03-16T22:59:25.000Z | src/backend/expungeservice/models/record.py | sico/recordexpungPDX | c2f18322014add7c78b27736bde2d29d1d086aa8 | [
"MIT"
] | 938 | 2019-05-02T15:13:21.000Z | 2022-02-27T20:59:00.000Z | src/backend/expungeservice/models/record.py | kenichi/recordexpungPDX | 100d9249473a01953451b83a72ec1b74574acc43 | [
"MIT"
] | 65 | 2019-05-09T03:28:12.000Z | 2022-03-21T00:06:39.000Z | from __future__ import annotations
from dataclasses import dataclass, field
from typing import List, Dict, Tuple, Optional, Any
from expungeservice.models.case import Case
from expungeservice.models.charge import Charge
@dataclass(frozen=True)
class Alias:
first_name: str
last_name: str
middle_name: str
... | 20.112903 | 54 | 0.674419 | 154 | 1,247 | 5.292208 | 0.428571 | 0.025767 | 0.058896 | 0.058896 | 0.044172 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006303 | 0.236568 | 1,247 | 61 | 55 | 20.442623 | 0.84979 | 0 | 0 | 0.204545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.113636 | 0 | 0.704545 | 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 |
46ea0df8e2046e5c8f782334316cb99316dcf051 | 734 | py | Python | course_registration/migrations/0002_auto_20191127_0506.py | Cent-Luc/University_Portal | 82bf40a1c0d98111ffe8a184d16b543a3feec072 | [
"MIT"
] | null | null | null | course_registration/migrations/0002_auto_20191127_0506.py | Cent-Luc/University_Portal | 82bf40a1c0d98111ffe8a184d16b543a3feec072 | [
"MIT"
] | 1 | 2020-02-11T22:01:10.000Z | 2020-02-11T22:01:10.000Z | course_registration/migrations/0002_auto_20191127_0506.py | c3n7/university-portal | 82bf40a1c0d98111ffe8a184d16b543a3feec072 | [
"MIT"
] | 3 | 2019-11-14T08:50:15.000Z | 2019-11-15T15:36:45.000Z | # Generated by Django 2.2.7 on 2019-11-27 05:06
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('course_registration', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='courseregistration',
name... | 30.583333 | 172 | 0.608992 | 76 | 734 | 5.763158 | 0.618421 | 0.091324 | 0.114155 | 0.13242 | 0.269406 | 0.269406 | 0.269406 | 0 | 0 | 0 | 0 | 0.045455 | 0.250681 | 734 | 23 | 173 | 31.913043 | 0.750909 | 0.061308 | 0 | 0.352941 | 1 | 0 | 0.25182 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 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 |
46eea24e59a0c70c504de2c39f8d5f9e4c5fd1f5 | 6,695 | py | Python | booking_sites_parser/models.py | webmalc/booking-sites-parser | 992d6a6f3774eeebfbbd535b5de3baa373137150 | [
"Apache-2.0"
] | 2 | 2019-03-14T13:08:59.000Z | 2019-09-22T08:08:38.000Z | booking_sites_parser/models.py | webmalc/booking-sites-parser | 992d6a6f3774eeebfbbd535b5de3baa373137150 | [
"Apache-2.0"
] | null | null | null | booking_sites_parser/models.py | webmalc/booking-sites-parser | 992d6a6f3774eeebfbbd535b5de3baa373137150 | [
"Apache-2.0"
] | null | null | null | """
Package models
"""
import re
from abc import ABC, abstractmethod
from decimal import Decimal
from typing import Any, List, Optional
from bs4 import BeautifulSoup
from .http_client import HttpClient, HttpResponse
class ParserException(Exception):
"""
Base parser exception
"""
class Address():
"... | 24.704797 | 79 | 0.573861 | 738 | 6,695 | 5.03523 | 0.170732 | 0.032024 | 0.016146 | 0.019376 | 0.121636 | 0.081808 | 0.050323 | 0.042519 | 0.023681 | 0 | 0 | 0.000663 | 0.323824 | 6,695 | 270 | 80 | 24.796296 | 0.82019 | 0.132636 | 0 | 0.165468 | 0 | 0 | 0.025602 | 0.005582 | 0 | 0 | 0 | 0 | 0 | 1 | 0.172662 | false | 0 | 0.043165 | 0 | 0.510791 | 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 |
46f32983b778972015b0fe2f9086e189aa4ddb58 | 3,840 | py | Python | hwtLib/xilinx/locallink/axis_conv.py | optical-o/hwtLib | edad621f5ad4cdbea20a5751ff4468979afe2f77 | [
"MIT"
] | null | null | null | hwtLib/xilinx/locallink/axis_conv.py | optical-o/hwtLib | edad621f5ad4cdbea20a5751ff4468979afe2f77 | [
"MIT"
] | null | null | null | hwtLib/xilinx/locallink/axis_conv.py | optical-o/hwtLib | edad621f5ad4cdbea20a5751ff4468979afe2f77 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from hwt.code import Concat, Switch, If
from hwt.hdl.typeShortcuts import vec
from hwt.interfaces.utils import addClkRstn, propagateClkRstn
from hwt.synthesizer.param import Param
from hwt.synthesizer.unit import Unit
from hwtLib.amba.axis import AxiStream
from hwtLib.xil... | 25.430464 | 82 | 0.58724 | 502 | 3,840 | 4.322709 | 0.26494 | 0.019355 | 0.025806 | 0.01659 | 0.351152 | 0.293088 | 0.269124 | 0.269124 | 0.269124 | 0.269124 | 0 | 0.0071 | 0.303125 | 3,840 | 150 | 83 | 25.6 | 0.803812 | 0.180469 | 0 | 0.225806 | 0 | 0 | 0.008458 | 0 | 0 | 0 | 0 | 0.013333 | 0.010753 | 1 | 0.075269 | false | 0 | 0.096774 | 0 | 0.193548 | 0.010753 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
46f727d602c8ba9999e35ad52eeeadffe23d46a0 | 3,086 | py | Python | cogs/everestpins.py | leo60228/everestbot | 53bbf6a5b42a71889ed3de02cc65f22fedddf313 | [
"MIT"
] | 1 | 2020-08-30T22:16:13.000Z | 2020-08-30T22:16:13.000Z | cogs/everestpins.py | leo60228/everestbot | 53bbf6a5b42a71889ed3de02cc65f22fedddf313 | [
"MIT"
] | null | null | null | cogs/everestpins.py | leo60228/everestbot | 53bbf6a5b42a71889ed3de02cc65f22fedddf313 | [
"MIT"
] | null | null | null | import time
import config
import discord
from discord.ext import commands
class EverestPins:
def __init__(self, bot):
self.bot = bot
@commands.command()
async def ahorn(self, ctx):
embed = discord.Embed(title="Ahorn Downloads",
url="https://github.com/Celesti... | 56.109091 | 230 | 0.642579 | 404 | 3,086 | 4.905941 | 0.314356 | 0.020182 | 0.024218 | 0.069627 | 0.562563 | 0.482341 | 0.340061 | 0.181635 | 0.170535 | 0.089808 | 0 | 0.007525 | 0.224887 | 3,086 | 54 | 231 | 57.148148 | 0.817726 | 0 | 0 | 0.2 | 0 | 0.25 | 0.534997 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.1 | 0 | 0.175 | 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 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
46feb8044826238fc9d8d9d895df1bb66042d882 | 1,207 | py | Python | genindex.py | miguelgrinberg/twilio-openapi-docs | 1f92dd1b433037ac1f893572408d3d96750dc831 | [
"MIT"
] | 3 | 2021-04-22T18:44:59.000Z | 2021-04-27T01:12:28.000Z | genindex.py | miguelgrinberg/twilio-openapi-docs | 1f92dd1b433037ac1f893572408d3d96750dc831 | [
"MIT"
] | null | null | null | genindex.py | miguelgrinberg/twilio-openapi-docs | 1f92dd1b433037ac1f893572408d3d96750dc831 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import re
import urllib.request
template = '''
<!doctype html>
<html>
<head>
<title>Twilio OpenAPI Documentation</title>
<style>
body {
text-align: center;
}
ul {
list-style-type: none;
display: flex;
flex-wrap: wrap;
padding-i... | 21.175439 | 107 | 0.555924 | 144 | 1,207 | 4.638889 | 0.611111 | 0.038922 | 0.077844 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015964 | 0.273405 | 1,207 | 56 | 108 | 21.553571 | 0.745724 | 0.01657 | 0 | 0 | 0 | 0.02 | 0.743676 | 0.125632 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.04 | 0 | 0.04 | 0.02 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2007d963b430c7008bffb6ba4fc10719f5949ab9 | 1,842 | py | Python | test/validation/test_validation_duration.py | thenetcircle/dino | 1047c3458e91a1b4189e9f48f1393b3a68a935b3 | [
"Apache-2.0"
] | 150 | 2016-10-05T11:09:36.000Z | 2022-03-06T16:24:41.000Z | test/validation/test_validation_duration.py | thenetcircle/dino | 1047c3458e91a1b4189e9f48f1393b3a68a935b3 | [
"Apache-2.0"
] | 27 | 2017-03-02T03:37:02.000Z | 2022-02-10T04:59:54.000Z | test/validation/test_validation_duration.py | thenetcircle/dino | 1047c3458e91a1b4189e9f48f1393b3a68a935b3 | [
"Apache-2.0"
] | 21 | 2016-11-11T07:51:48.000Z | 2020-04-26T21:38:33.000Z | # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the Li... | 29.709677 | 74 | 0.721498 | 220 | 1,842 | 5.9 | 0.454545 | 0.075501 | 0.09245 | 0.138675 | 0.454545 | 0.345917 | 0.086287 | 0 | 0 | 0 | 0 | 0.010013 | 0.186754 | 1,842 | 61 | 75 | 30.196721 | 0.856475 | 0.280673 | 0 | 0 | 0 | 0 | 0.052551 | 0.017517 | 0 | 0 | 0 | 0 | 0.1875 | 1 | 0.4375 | false | 0 | 0.0625 | 0 | 0.53125 | 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 |
20090d71a734d2ab4af55b54fdaa56d50241ad80 | 8,899 | py | Python | MHD/FEniCS/MHD/CG/Ex6/3dCavityFlow.py | wathen/PhD | 35524f40028541a4d611d8c78574e4cf9ddc3278 | [
"MIT"
] | 3 | 2020-10-25T13:30:20.000Z | 2021-08-10T21:27:30.000Z | MHD/FEniCS/MHD/CG/Ex6/3dCavityFlow.py | wathen/PhD | 35524f40028541a4d611d8c78574e4cf9ddc3278 | [
"MIT"
] | null | null | null | MHD/FEniCS/MHD/CG/Ex6/3dCavityFlow.py | wathen/PhD | 35524f40028541a4d611d8c78574e4cf9ddc3278 | [
"MIT"
] | 3 | 2019-10-28T16:12:13.000Z | 2020-01-13T13:59:44.000Z | #!/usr/bin/python
import petsc4py
import slepc4py
import sys
petsc4py.init(sys.argv)
slepc4py.init(sys.argv)
from petsc4py import PETSc
from slepc4py import SLEPc
Print = PETSc.Sys.Print
# from MatrixOperations import *
from dolfin import *
import numpy as np
import matplotlib.pylab as plt
import scipy.sparse as sps
... | 26.564179 | 166 | 0.54759 | 1,278 | 8,899 | 3.785603 | 0.226917 | 0.020463 | 0.031418 | 0.035345 | 0.196569 | 0.135387 | 0.094254 | 0.084332 | 0.084332 | 0.051468 | 0 | 0.044431 | 0.271604 | 8,899 | 334 | 167 | 26.643713 | 0.701944 | 0.110125 | 0 | 0.068182 | 0 | 0 | 0.043186 | 0.002794 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.077273 | null | null | 0.040909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
20162944698b6ab02ecf96bed6303ceed2e3a8ae | 498 | py | Python | setup.py | GOIT-Course-Project/Module-1-CP | 93674b1d65665762debd994e02361fe653c7bad1 | [
"MIT"
] | null | null | null | setup.py | GOIT-Course-Project/Module-1-CP | 93674b1d65665762debd994e02361fe653c7bad1 | [
"MIT"
] | null | null | null | setup.py | GOIT-Course-Project/Module-1-CP | 93674b1d65665762debd994e02361fe653c7bad1 | [
"MIT"
] | null | null | null | from setuptools import setup, find_namespace_packages
setup(
name='personal_assistant',
version='1.0.0',
authors=('Volodymyr Dunkin', 'Andrii Mikhalkin'),
description='personal assistant',
entry_points={'console_scripts': [
'assist = personal_assistant.general:main']},
long_des... | 33.2 | 116 | 0.710843 | 54 | 498 | 6.388889 | 0.740741 | 0.147826 | 0.121739 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007389 | 0.184739 | 498 | 14 | 117 | 35.571429 | 0.842365 | 0 | 0 | 0 | 0 | 0 | 0.475207 | 0.06405 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.083333 | 0 | 0.083333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2019b9e2d05e4a4a7e89f2421f88750a1ab6eff8 | 638 | py | Python | var/spack/repos/builtin/packages/perl-getopt-tabular/package.py | player1537-forks/spack | 822b7632222ec5a91dc7b7cda5fc0e08715bd47c | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 11 | 2015-10-04T02:17:46.000Z | 2018-02-07T18:23:00.000Z | var/spack/repos/builtin/packages/perl-getopt-tabular/package.py | player1537-forks/spack | 822b7632222ec5a91dc7b7cda5fc0e08715bd47c | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 22 | 2017-08-01T22:45:10.000Z | 2022-03-10T07:46:31.000Z | var/spack/repos/builtin/packages/perl-getopt-tabular/package.py | player1537-forks/spack | 822b7632222ec5a91dc7b7cda5fc0e08715bd47c | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 4 | 2016-06-10T17:57:39.000Z | 2018-09-11T04:59:38.000Z | # Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class PerlGetoptTabular(PerlPackage):
"""Getopt::Tabular is a Perl 5 module for table-driven arg... | 39.875 | 93 | 0.753918 | 83 | 638 | 5.783133 | 0.843373 | 0.08125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108696 | 0.134796 | 638 | 15 | 94 | 42.533333 | 0.76087 | 0.487461 | 0 | 0 | 0 | 0.2 | 0.573248 | 0.203822 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
201b60efc08461f66b0f374787bf9604d5d7d204 | 424 | py | Python | pset_loops/dict_loops/p1.py | mottaquikarim/pydev-psets | 9749e0d216ee0a5c586d0d3013ef481cc21dee27 | [
"MIT"
] | 5 | 2019-04-08T20:05:37.000Z | 2019-12-04T20:48:45.000Z | pset_loops/dict_loops/p1.py | mottaquikarim/pydev-psets | 9749e0d216ee0a5c586d0d3013ef481cc21dee27 | [
"MIT"
] | 8 | 2019-04-15T15:16:05.000Z | 2022-02-12T10:33:32.000Z | pset_loops/dict_loops/p1.py | mottaquikarim/pydev-psets | 9749e0d216ee0a5c586d0d3013ef481cc21dee27 | [
"MIT"
] | 2 | 2019-04-10T00:14:42.000Z | 2020-02-26T20:35:21.000Z | """
Contacts
"""
# You went to a conference and got people to sign up for text updates from your startup. Go through this dict to make the phone numbers readable to a computer.
# Hint: It can't include any non-numeric
# characters.
contacts = {
'Jamie': '1.192.168.0143',
'Kartik': '1.837.209.1121',
'Grant': '1.8... | 23.555556 | 160 | 0.667453 | 71 | 424 | 3.985915 | 0.859155 | 0.021201 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.185915 | 0.162736 | 424 | 17 | 161 | 24.941176 | 0.611268 | 0.516509 | 0 | 0 | 0 | 0 | 0.610256 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
201eb6fa14944b9223d55f400cf800718bfd62d0 | 481 | py | Python | api/handlers/schemahandler.py | scitran/nimsapi | a4203cf6c6d29aa15d33011250ee69ff929fcb0d | [
"MIT"
] | 13 | 2016-05-31T14:32:58.000Z | 2021-09-17T07:18:11.000Z | api/handlers/schemahandler.py | scitran/core | a4203cf6c6d29aa15d33011250ee69ff929fcb0d | [
"MIT"
] | 911 | 2016-02-16T18:40:27.000Z | 2018-08-07T17:50:29.000Z | api/handlers/schemahandler.py | scitran/nimsapi | a4203cf6c6d29aa15d33011250ee69ff929fcb0d | [
"MIT"
] | 16 | 2016-02-17T15:54:34.000Z | 2021-04-07T05:30:34.000Z | import os
import json
from ..web import base
from .. import config
class SchemaHandler(base.RequestHandler):
def __init__(self, request=None, response=None):
super(SchemaHandler, self).__init__(request, response)
def get(self, schema):
schema_path = os.path.join(config.schema_path, schema)
... | 24.05 | 62 | 0.632017 | 62 | 481 | 4.725806 | 0.564516 | 0.102389 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008475 | 0.264033 | 481 | 19 | 63 | 25.315789 | 0.819209 | 0 | 0 | 0 | 0 | 0 | 0.004158 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
2027d741875bd17dba0f53e2ec50dbf45c31bd83 | 1,468 | py | Python | tests/algorithms/test_bounded_mean.py | Vishwaak/PyDP | 408384534843bd297ec7d59ce820c7099a80d848 | [
"Apache-2.0"
] | null | null | null | tests/algorithms/test_bounded_mean.py | Vishwaak/PyDP | 408384534843bd297ec7d59ce820c7099a80d848 | [
"Apache-2.0"
] | null | null | null | tests/algorithms/test_bounded_mean.py | Vishwaak/PyDP | 408384534843bd297ec7d59ce820c7099a80d848 | [
"Apache-2.0"
] | null | null | null | import pytest
from pydp.algorithms.laplacian import BoundedMean
def test_python_api():
a = [2, 4, 6, 8]
mean_algorithm = BoundedMean(
epsilon=1.0, lower_bound=1, upper_bound=9, dtype="float"
)
assert 1.0 <= mean_algorithm.quick_result(a) <= 9.0
def test_bounded_mean():
bm1 = BoundedMean... | 28.230769 | 79 | 0.638965 | 202 | 1,468 | 4.539604 | 0.39604 | 0.069793 | 0.006543 | 0.008724 | 0.133043 | 0.045802 | 0.045802 | 0.045802 | 0 | 0 | 0 | 0.059983 | 0.205041 | 1,468 | 51 | 80 | 28.784314 | 0.725793 | 0.392371 | 0 | 0 | 0 | 0 | 0.014891 | 0 | 0 | 0 | 0 | 0.019608 | 0.227273 | 1 | 0.136364 | false | 0 | 0.090909 | 0 | 0.227273 | 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 |
2028e7f5d5555af7c6f61543cb886074df2a83db | 2,688 | py | Python | exportegv/main.py | tiger12506/meerk40t-exportegv | e34aab2bd43b33622ef2cc112e40a1988732d6c1 | [
"MIT"
] | null | null | null | exportegv/main.py | tiger12506/meerk40t-exportegv | e34aab2bd43b33622ef2cc112e40a1988732d6c1 | [
"MIT"
] | null | null | null | exportegv/main.py | tiger12506/meerk40t-exportegv | e34aab2bd43b33622ef2cc112e40a1988732d6c1 | [
"MIT"
] | null | null | null | from meerk40t.device.lasercommandconstants import *
output_path = "/home/jacob/cut/output.egv"
def plugin(kernel, lifecycle):
if lifecycle == 'register':
"""
Register our changes to meerk40t. These should modify the registered values within meerk40t or install different
modules and modifie... | 40.727273 | 122 | 0.607515 | 322 | 2,688 | 5.043478 | 0.440994 | 0.073892 | 0.066502 | 0.028325 | 0.025862 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006414 | 0.303943 | 2,688 | 65 | 123 | 41.353846 | 0.861571 | 0.014881 | 0 | 0.135135 | 0 | 0 | 0.262985 | 0.017094 | 0 | 0 | 0 | 0 | 0 | 1 | 0.108108 | false | 0.081081 | 0.027027 | 0 | 0.135135 | 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 |
2030a126837212f6f3c802c76c67b2aadd17b523 | 1,043 | py | Python | project2.py | pralhad88/ProjectEluer | f27cf97295d3d3a3a8f1d64d02010c3a00346fa2 | [
"MIT"
] | 1 | 2020-04-14T08:31:39.000Z | 2020-04-14T08:31:39.000Z | project2.py | pralhad88/ProjectEluer | f27cf97295d3d3a3a8f1d64d02010c3a00346fa2 | [
"MIT"
] | null | null | null | project2.py | pralhad88/ProjectEluer | f27cf97295d3d3a3a8f1d64d02010c3a00346fa2 | [
"MIT"
] | null | null | null |
# Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 terms will be:
# 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, ...
#By considering the terms in the Fibonacci sequence whose values do not exceed four million, find the sum of the even-valued term... | 23.177778 | 177 | 0.711409 | 190 | 1,043 | 3.842105 | 0.484211 | 0.105479 | 0.038356 | 0.060274 | 0.043836 | 0.043836 | 0 | 0 | 0 | 0 | 0 | 0.068019 | 0.196548 | 1,043 | 44 | 178 | 23.704545 | 0.803103 | 0.485139 | 0 | 0.3125 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0 | 0.03125 | 0 | 0.15625 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
203928c956b6d7f878702889dc3a41b3976259dc | 537 | py | Python | strona/urls.py | lukasy2/strona | 7ccebfe0553f9fac06bf762d1028c9faf7d830c0 | [
"MIT",
"Unlicense"
] | null | null | null | strona/urls.py | lukasy2/strona | 7ccebfe0553f9fac06bf762d1028c9faf7d830c0 | [
"MIT",
"Unlicense"
] | null | null | null | strona/urls.py | lukasy2/strona | 7ccebfe0553f9fac06bf762d1028c9faf7d830c0 | [
"MIT",
"Unlicense"
] | null | null | null | from django.conf.urls import patterns, include, url
from django.contrib import admin
from django.contrib.auth import views as auth_views
from newsy import views
urlpatterns = [
url(r'^admin/', admin.site.urls),
url(r'^accounts/register/$', views.register_user),
url(r'^accounts/register_success/$', views.re... | 31.588235 | 70 | 0.687151 | 75 | 537 | 4.826667 | 0.36 | 0.077348 | 0.132597 | 0.110497 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.132216 | 537 | 16 | 71 | 33.5625 | 0.776824 | 0 | 0 | 0 | 0 | 0 | 0.228037 | 0.052336 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.307692 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
203ab81e1c44d46f3a5bb44cfcb2254297f716a2 | 2,954 | py | Python | python/NTupler_cff.py | EmyrClement/NTupleProduction | 4c1b67ac8826656e804912512f4c4dc6695c7674 | [
"Apache-2.0"
] | 1 | 2018-02-20T21:23:21.000Z | 2018-02-20T21:23:21.000Z | python/NTupler_cff.py | RickeyEstes/NTupleProduction | 1319183de0ce00749c8f5841fa925479b9024b48 | [
"Apache-2.0"
] | 116 | 2015-01-09T22:38:07.000Z | 2017-05-24T08:12:48.000Z | python/NTupler_cff.py | RickeyEstes/NTupleProduction | 1319183de0ce00749c8f5841fa925479b9024b48 | [
"Apache-2.0"
] | 1 | 2020-11-01T00:01:17.000Z | 2020-11-01T00:01:17.000Z | def setup_ntupler(process, cms):
print '=' * 60
print "Setting up NTupler"
print '=' * 60
######################################################################################################
################################## nTuple Configuration ##############################################
... | 31.763441 | 106 | 0.499661 | 178 | 2,954 | 8.005618 | 0.382022 | 0.035789 | 0.035789 | 0.042105 | 0.099649 | 0.054737 | 0 | 0 | 0 | 0 | 0 | 0.002489 | 0.319905 | 2,954 | 92 | 107 | 32.108696 | 0.706819 | 0.108328 | 0 | 0.045455 | 0 | 0 | 0.226196 | 0.111159 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.068182 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
203f15c01536c740d40273810080fe27d8d79ddb | 2,191 | py | Python | stick_video/keypoints_to_stick_image.py | yookyungkho/Hand-to-Hand | c0ae9a9c1e5ea894c7daf2c2bf2f7c752e31e8b7 | [
"Apache-2.0"
] | 4 | 2021-04-07T05:38:25.000Z | 2021-07-18T05:02:39.000Z | stick_video/keypoints_to_stick_image.py | yookyungkho/Hand-to-Hand | c0ae9a9c1e5ea894c7daf2c2bf2f7c752e31e8b7 | [
"Apache-2.0"
] | null | null | null | stick_video/keypoints_to_stick_image.py | yookyungkho/Hand-to-Hand | c0ae9a9c1e5ea894c7daf2c2bf2f7c752e31e8b7 | [
"Apache-2.0"
] | 6 | 2020-10-25T07:10:29.000Z | 2020-11-06T17:21:48.000Z | import numpy as np
import cv2
import matplotlib.pyplot as plt
import json
import os
pose_point_pair_ver1 = [[1, 2], [2, 3], [3, 4], [1, 5], [5, 6], [6, 7], [1, 9], [9, 8], [8, 12], [12, 1]]
pose_point_pair_ver2 = [[1, 2], [2, 3], [3, 4], [1, 5], [5, 6], [6, 7], [2, 9], [9, 8], [8, 12], [12, 5]]
face_point_pair = [
... | 38.438596 | 106 | 0.542218 | 395 | 2,191 | 2.848101 | 0.356962 | 0.064 | 0.034667 | 0.010667 | 0.112 | 0.040889 | 0.021333 | 0.021333 | 0.021333 | 0.021333 | 0 | 0.199309 | 0.207668 | 2,191 | 56 | 107 | 39.125 | 0.448733 | 0.005021 | 0 | 0 | 0 | 0 | 0.106979 | 0.082645 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.131579 | 0 | 0.184211 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
20426ff7837fe22b23c2cac78531fbb52e8967be | 765 | py | Python | django_dramatiq/migrations/0003_auto_20200204_0842.py | thebjorn/django_dramatiq | bd293e0479f3dd3f378ab92465e8dcb5e51583b0 | [
"Apache-2.0"
] | 229 | 2017-11-13T06:03:19.000Z | 2022-03-28T09:36:15.000Z | django_dramatiq/migrations/0003_auto_20200204_0842.py | thebjorn/django_dramatiq | bd293e0479f3dd3f378ab92465e8dcb5e51583b0 | [
"Apache-2.0"
] | 109 | 2017-11-15T07:49:54.000Z | 2022-02-18T05:28:25.000Z | django_dramatiq/migrations/0003_auto_20200204_0842.py | thebjorn/django_dramatiq | bd293e0479f3dd3f378ab92465e8dcb5e51583b0 | [
"Apache-2.0"
] | 76 | 2017-11-14T00:28:31.000Z | 2022-03-23T04:46:48.000Z | # Generated by Django 2.0 on 2020-02-04 08:42
from django.db import migrations, models
import django.db.models.manager
class Migration(migrations.Migration):
dependencies = [
('django_dramatiq', '0002_auto_20191104_1354'),
]
operations = [
migrations.AlterModelManagers(
name... | 29.423077 | 217 | 0.573856 | 73 | 765 | 5.931507 | 0.643836 | 0.055427 | 0.064665 | 0.096998 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054965 | 0.262745 | 765 | 25 | 218 | 30.6 | 0.712766 | 0.056209 | 0 | 0.105263 | 1 | 0 | 0.198611 | 0.031944 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.105263 | 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 |
20464f88e6c7527ff417743bfb8b19c2d606f75a | 1,017 | py | Python | setup.py | kaste/pytest-mockito | f20cae8f592cf83682f6027c7aafafc829c13785 | [
"MIT"
] | 13 | 2017-03-21T01:16:48.000Z | 2021-06-10T21:18:23.000Z | setup.py | kaste/pytest-mockito | f20cae8f592cf83682f6027c7aafafc829c13785 | [
"MIT"
] | 1 | 2017-09-25T01:06:10.000Z | 2018-07-11T17:20:13.000Z | setup.py | kaste/pytest-mockito | f20cae8f592cf83682f6027c7aafafc829c13785 | [
"MIT"
] | null | null | null | from setuptools import setup
setup(
name="pytest-mockito",
version='0.0.4',
description='Base fixtures for mockito',
long_description=open('README.rst').read(),
license='MIT',
author='herr kaste',
author_email='herr.kaste@gmail.com',
url='https://github.com/kaste/pytest-mockito',
pl... | 33.9 | 69 | 0.612586 | 105 | 1,017 | 5.866667 | 0.685714 | 0.084416 | 0.077922 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01519 | 0.223206 | 1,017 | 29 | 70 | 35.068966 | 0.764557 | 0 | 0 | 0 | 0 | 0 | 0.543756 | 0.020649 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.035714 | 0 | 0.035714 | 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 |
2052bb06764e5c0224b0e6c8510fd80835c27b0c | 392 | py | Python | crm/inv/migrations/0007_auto_20200407_1034.py | javvadigithub/apicrm | 285e248b33a3f4cfe29522940f1c3a669efa041f | [
"MIT"
] | null | null | null | crm/inv/migrations/0007_auto_20200407_1034.py | javvadigithub/apicrm | 285e248b33a3f4cfe29522940f1c3a669efa041f | [
"MIT"
] | null | null | null | crm/inv/migrations/0007_auto_20200407_1034.py | javvadigithub/apicrm | 285e248b33a3f4cfe29522940f1c3a669efa041f | [
"MIT"
] | null | null | null | # Generated by Django 3.0.5 on 2020-04-07 10:34
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('inv', '0006_auto_20200407_1033'),
]
operations = [
migrations.AlterField(
model_name='product',
name='stock',
... | 20.631579 | 60 | 0.596939 | 44 | 392 | 5.204545 | 0.863636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114286 | 0.285714 | 392 | 18 | 61 | 21.777778 | 0.703571 | 0.114796 | 0 | 0 | 1 | 0 | 0.110145 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2053e2387ca9e5237b938400a0d5fb3550ced8c5 | 401 | py | Python | onetest4.py | Kupets77/Testing1 | 93e0c6f0960d878b491f46c4b6c3ea80574e7394 | [
"Apache-2.0"
] | null | null | null | onetest4.py | Kupets77/Testing1 | 93e0c6f0960d878b491f46c4b6c3ea80574e7394 | [
"Apache-2.0"
] | null | null | null | onetest4.py | Kupets77/Testing1 | 93e0c6f0960d878b491f46c4b6c3ea80574e7394 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import pytest
from group import Group
from application import Application
@pytest.fixture
def app(request):
fixture = Application()
request.addfinalizer(fixture.destroy)
return fixture
def test_one(app):
app.open_catalog_page()
app.open_autorisation()
app.autorisation(G... | 23.588235 | 85 | 0.730673 | 48 | 401 | 6.020833 | 0.583333 | 0.069204 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023529 | 0.15212 | 401 | 16 | 86 | 25.0625 | 0.826471 | 0.052369 | 0 | 0 | 0 | 0 | 0.084656 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0.076923 | 0.230769 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
2055e8ec591e899da3b0c94d3770cf3dfa0e07d4 | 450 | py | Python | apps/track/migrations/0006_auto_20200611_0101.py | martinlehoux/django_bike | 05373d2649647fe8ebadb0aad54b9a7ec1900fe7 | [
"MIT"
] | 1 | 2020-08-12T17:53:37.000Z | 2020-08-12T17:53:37.000Z | apps/track/migrations/0006_auto_20200611_0101.py | martinlehoux/django_bike | 05373d2649647fe8ebadb0aad54b9a7ec1900fe7 | [
"MIT"
] | 12 | 2020-07-03T03:52:00.000Z | 2021-09-22T18:00:44.000Z | apps/track/migrations/0006_auto_20200611_0101.py | martinlehoux/django_bike | 05373d2649647fe8ebadb0aad54b9a7ec1900fe7 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.7 on 2020-06-11 01:01
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("track", "0005_auto_20200610_2246"),
]
operations = [
migrations.RenameModel(
old_name="TrackPoint",
new_name="Point",
... | 20.454545 | 47 | 0.56 | 43 | 450 | 5.744186 | 0.790698 | 0.072874 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.100649 | 0.315556 | 450 | 21 | 48 | 21.428571 | 0.701299 | 0.1 | 0 | 0.133333 | 1 | 0 | 0.148883 | 0.057072 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.266667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
644ac38694b94344139cb74290d5bfa4af1b100b | 1,363 | py | Python | app/post/migrations/0003_auto_20200418_1922.py | FinalProject-Team4/Server_DaangnMarket | 258eb8c79fcbed69d516f521e6194cac7b315a58 | [
"MIT"
] | 1 | 2020-06-20T12:52:07.000Z | 2020-06-20T12:52:07.000Z | app/post/migrations/0003_auto_20200418_1922.py | FinalProject-Team4/Server_DaangnMarket | 258eb8c79fcbed69d516f521e6194cac7b315a58 | [
"MIT"
] | 34 | 2020-03-16T12:09:14.000Z | 2021-04-08T20:23:42.000Z | app/post/migrations/0003_auto_20200418_1922.py | FinalProject-Team4/Server_DaangnMarket | 258eb8c79fcbed69d516f521e6194cac7b315a58 | [
"MIT"
] | 2 | 2020-03-22T06:45:39.000Z | 2020-03-22T06:55:11.000Z | # Generated by Django 3.0.4 on 2020-04-18 10:22
import core.managers
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),
('pos... | 34.948718 | 149 | 0.592076 | 137 | 1,363 | 5.722628 | 0.591241 | 0.030612 | 0.035714 | 0.056122 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035714 | 0.280998 | 1,363 | 38 | 150 | 35.868421 | 0.764286 | 0.033015 | 0 | 0.125 | 1 | 0 | 0.120061 | 0.017477 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.21875 | 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 |
644dcbddb7fdd16f064ac3d720197b1d882c7b29 | 476 | py | Python | tests/misc/mtcnn/mtcnn_test.py | indiradutta/PyVision | cf74da32a3469ddcce9917ac1f2fcaaeefdeacdf | [
"BSD-3-Clause"
] | 31 | 2020-05-03T07:03:01.000Z | 2022-01-29T15:29:22.000Z | tests/misc/mtcnn/mtcnn_test.py | indiradutta/PyVision | cf74da32a3469ddcce9917ac1f2fcaaeefdeacdf | [
"BSD-3-Clause"
] | 13 | 2020-05-25T14:23:46.000Z | 2021-08-04T10:38:02.000Z | tests/misc/mtcnn/mtcnn_test.py | indiradutta/PyVision | cf74da32a3469ddcce9917ac1f2fcaaeefdeacdf | [
"BSD-3-Clause"
] | 12 | 2020-05-24T22:26:59.000Z | 2021-08-03T18:30:51.000Z | from pyvision.misc.mtcnn import MTCNN
from pyvision.misc.mtcnn.utils.visualize import show_boxes, _show_boxes
from PIL import Image
import cv2
from glob import glob
a = [glob("tests/misc/mtcnn/images/*.{}".format(s)) for s in ["jpg", "jpeg", "png"]]
imgs = [i for ai in a for i in ai]
mtcnn = MTCNN()
for img in imgs:... | 23.8 | 84 | 0.653361 | 79 | 476 | 3.860759 | 0.405063 | 0.118033 | 0.104918 | 0.137705 | 0.104918 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002674 | 0.214286 | 476 | 20 | 85 | 23.8 | 0.812834 | 0 | 0 | 0 | 0 | 0 | 0.079665 | 0.0587 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3125 | 0 | 0.3125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
6451d0079ea88137df36988360ef50d249625cbd | 447 | py | Python | main/urls.py | Kadweka/STUDENTS-award | b679bb9cc240b0e56feba4bea780da24ad61a31b | [
"MIT"
] | null | null | null | main/urls.py | Kadweka/STUDENTS-award | b679bb9cc240b0e56feba4bea780da24ad61a31b | [
"MIT"
] | 4 | 2021-03-19T08:32:26.000Z | 2022-03-12T00:05:33.000Z | main/urls.py | hussein18149/STUDENTS-award | b679bb9cc240b0e56feba4bea780da24ad61a31b | [
"MIT"
] | null | null | null | from . import views
from django.conf.urls import url
from django.conf.urls.static import static
from django.conf import settings
urlpatterns=[
url(r'^$', views.home,name='home'),
url(r'^award/',views.add_student, name='student'),
url(r'^awards/',views.awards,name='awards'),
url(r'students/',views.my_st... | 29.8 | 80 | 0.727069 | 64 | 447 | 5 | 0.375 | 0.05 | 0.13125 | 0.1125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116331 | 447 | 14 | 81 | 31.928571 | 0.810127 | 0 | 0 | 0 | 0 | 0 | 0.11435 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
6458a243324d7ff5c0c4b5c43474456bdfc889fa | 476 | py | Python | mmedit/core/evaluation/__init__.py | KKIEEK/mmediting | e3e3c934049c7e2067334074c535f80c8f4795cc | [
"Apache-2.0"
] | null | null | null | mmedit/core/evaluation/__init__.py | KKIEEK/mmediting | e3e3c934049c7e2067334074c535f80c8f4795cc | [
"Apache-2.0"
] | null | null | null | mmedit/core/evaluation/__init__.py | KKIEEK/mmediting | e3e3c934049c7e2067334074c535f80c8f4795cc | [
"Apache-2.0"
] | 1 | 2022-03-10T01:00:24.000Z | 2022-03-10T01:00:24.000Z | # Copyright (c) OpenMMLab. All rights reserved.
from .eval_hooks import DistEvalIterHook, EvalIterHook
from .inceptions import FID, KID, InceptionV3
from .metrics import (L1Evaluation, connectivity, gradient_error, mse, niqe,
psnr, reorder_image, sad, ssim)
__all__ = [
'mse', 'sad', 'psnr', '... | 39.666667 | 76 | 0.689076 | 49 | 476 | 6.510204 | 0.571429 | 0.037618 | 0.106583 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010178 | 0.17437 | 476 | 11 | 77 | 43.272727 | 0.801527 | 0.094538 | 0 | 0 | 0 | 0 | 0.265734 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
645cc29f9d18857355b0d43483ff2c2db043bdbd | 2,206 | py | Python | polls/views.py | biljiang/mysite | 15c0a0d7bb6bd46587f4cf805ce43f4c570de1be | [
"BSD-3-Clause"
] | null | null | null | polls/views.py | biljiang/mysite | 15c0a0d7bb6bd46587f4cf805ce43f4c570de1be | [
"BSD-3-Clause"
] | null | null | null | polls/views.py | biljiang/mysite | 15c0a0d7bb6bd46587f4cf805ce43f4c570de1be | [
"BSD-3-Clause"
] | null | null | null | #from django.shortcuts import render
# Create your views here.
from django.http import HttpResponse,HttpResponseRedirect
#from django.template import loader
from django.shortcuts import get_object_or_404,render
from django.urls import reverse
from django.views import generic
from .models import Question, Cho... | 31.971014 | 84 | 0.679964 | 260 | 2,206 | 5.6 | 0.319231 | 0.061813 | 0.065247 | 0.082418 | 0.3125 | 0.3125 | 0.3125 | 0.206731 | 0.154533 | 0.154533 | 0 | 0.008562 | 0.205802 | 2,206 | 68 | 85 | 32.441176 | 0.822489 | 0.1233 | 0 | 0.068966 | 0 | 0 | 0.133497 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0 | 0.172414 | 0.034483 | 0.655172 | 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 |
645d51e83bcc360907f671643926a45eb101ea1a | 5,103 | py | Python | tests/test_binning_process_sketch.py | jensgk/optbinning | 5ccd892fa4ee0a745ab539cee10a2069b35de6da | [
"Apache-2.0"
] | 207 | 2020-01-23T21:32:59.000Z | 2022-03-30T06:33:21.000Z | tests/test_binning_process_sketch.py | jensgk/optbinning | 5ccd892fa4ee0a745ab539cee10a2069b35de6da | [
"Apache-2.0"
] | 133 | 2020-01-23T22:14:35.000Z | 2022-03-29T14:05:04.000Z | tests/test_binning_process_sketch.py | jensgk/optbinning | 5ccd892fa4ee0a745ab539cee10a2069b35de6da | [
"Apache-2.0"
] | 50 | 2020-01-27T15:37:08.000Z | 2022-03-30T06:33:25.000Z | """
BinningProcessSketch testing.
"""
# Guillermo Navas-Palencia <g.navas.palencia@gmail.com>
# Copyright (C) 2021
import pandas as pd
from pytest import approx, raises
from optbinning import BinningProcessSketch
from optbinning import OptimalBinningSketch
from optbinning.exceptions import NotSolvedError
from optbi... | 27.435484 | 79 | 0.692926 | 604 | 5,103 | 5.627483 | 0.178808 | 0.10709 | 0.242718 | 0.117682 | 0.696087 | 0.640482 | 0.609003 | 0.572521 | 0.403942 | 0.278023 | 0 | 0.0309 | 0.194591 | 5,103 | 185 | 80 | 27.583784 | 0.796107 | 0.020184 | 0 | 0.495727 | 0 | 0 | 0.023242 | 0 | 0 | 0 | 0 | 0 | 0.059829 | 1 | 0.051282 | false | 0 | 0.059829 | 0 | 0.111111 | 0.034188 | 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 |
645d92fe6f4202711d6029dad6f5b119f8748065 | 8,798 | py | Python | src/game/bt.py | btdevel/bt | 23abdf0860484a4adcfbe2bcbe94eebca7f820fd | [
"MIT"
] | 1 | 2017-06-30T00:35:05.000Z | 2017-06-30T00:35:05.000Z | src/game/bt.py | btdevel/bt | 23abdf0860484a4adcfbe2bcbe94eebca7f820fd | [
"MIT"
] | null | null | null | src/game/bt.py | btdevel/bt | 23abdf0860484a4adcfbe2bcbe94eebca7f820fd | [
"MIT"
] | null | null | null | from math import pi, sin, cos
from direct.showbase.DirectObject import DirectObject
from direct.showbase.ShowBase import ShowBase
from direct.gui.DirectGui import *
from direct.interval.IntervalGlobal import *
from panda3d.core import lookAt
from panda3d.core import GeomVertexFormat, GeomVertexData
from panda3d.core i... | 29.424749 | 84 | 0.591725 | 1,098 | 8,798 | 4.65847 | 0.211293 | 0.00782 | 0.032258 | 0.045161 | 0.270577 | 0.208798 | 0.139198 | 0.12434 | 0.12434 | 0.12434 | 0 | 0.039763 | 0.291089 | 8,798 | 298 | 85 | 29.52349 | 0.780343 | 0.016026 | 0 | 0.20354 | 0 | 0 | 0.021045 | 0.007863 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.106195 | null | null | 0.00885 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
64605d81e5e5b09d3d13c2dc37b69d44bd06c958 | 8,485 | py | Python | Martel/convert_re.py | eoc21/biopython | c0f8db8f55a506837c320459957a0ce99b0618b6 | [
"PostgreSQL"
] | 3 | 2017-10-23T21:53:57.000Z | 2019-09-23T05:14:12.000Z | Martel/convert_re.py | eoc21/biopython | c0f8db8f55a506837c320459957a0ce99b0618b6 | [
"PostgreSQL"
] | null | null | null | Martel/convert_re.py | eoc21/biopython | c0f8db8f55a506837c320459957a0ce99b0618b6 | [
"PostgreSQL"
] | 6 | 2020-02-26T16:34:20.000Z | 2020-03-04T15:34:00.000Z | # Copyright 2000-2001, Dalke Scientific Software, LLC
# Distributed under the Biopython License Agreement (see the LICENSE file).
"""Converts a regular expression pattern string into an Expression tree.
This is not meant to be an externally usable module.
This works by using msre_parse.py to parse the pattern. The ... | 35.061983 | 79 | 0.649971 | 1,202 | 8,485 | 4.485857 | 0.237937 | 0.038947 | 0.031157 | 0.023368 | 0.173961 | 0.147255 | 0.136128 | 0.114243 | 0.099407 | 0.083457 | 0 | 0.010692 | 0.250442 | 8,485 | 241 | 80 | 35.207469 | 0.837107 | 0.236182 | 0 | 0.082192 | 0 | 0 | 0.110364 | 0 | 0 | 0 | 0 | 0 | 0.109589 | 0 | null | null | 0 | 0.020548 | 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 |
646688417f53dbf07f161490bad6ae8969e89fe1 | 1,998 | py | Python | rdr_service/alembic/versions/20e98a16ad20_requests_log.py | all-of-us/raw-data-repository | d28ad957557587b03ff9c63d55dd55e0508f91d8 | [
"BSD-3-Clause"
] | 39 | 2017-10-13T19:16:27.000Z | 2021-09-24T16:58:21.000Z | rdr_service/alembic/versions/20e98a16ad20_requests_log.py | all-of-us/raw-data-repository | d28ad957557587b03ff9c63d55dd55e0508f91d8 | [
"BSD-3-Clause"
] | 312 | 2017-09-08T15:42:13.000Z | 2022-03-23T18:21:40.000Z | rdr_service/alembic/versions/20e98a16ad20_requests_log.py | all-of-us/raw-data-repository | d28ad957557587b03ff9c63d55dd55e0508f91d8 | [
"BSD-3-Clause"
] | 19 | 2017-09-15T13:58:00.000Z | 2022-02-07T18:33:20.000Z | """requests_log
Revision ID: 20e98a16ad20
Revises: 8fa4d8f2277c
Create Date: 2019-07-30 13:49:17.702589
"""
import sqlalchemy as sa
from alembic import op
from sqlalchemy.dialects import mysql
# revision identifiers, used by Alembic.
revision = "20e98a16ad20"
down_revision = "8fa4d8f2277c"
branch_labels = None
depen... | 30.738462 | 77 | 0.657658 | 245 | 1,998 | 5.265306 | 0.318367 | 0.08062 | 0.065116 | 0.081395 | 0.397674 | 0.274419 | 0.229457 | 0.182946 | 0.182946 | 0.110078 | 0 | 0.039336 | 0.185686 | 1,998 | 64 | 78 | 31.21875 | 0.753534 | 0.224224 | 0 | 0.057143 | 0 | 0 | 0.114478 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.171429 | false | 0.057143 | 0.085714 | 0 | 0.257143 | 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 |
646d2f100cf042a92479d99756359693194052c5 | 4,654 | py | Python | fuelmenu/fuelmenu/modules/rootpw.py | Zipfer/fuel-web | c6c4032eb6e29474e2be0318349265bdb566454c | [
"Apache-2.0"
] | 1 | 2021-04-06T16:13:35.000Z | 2021-04-06T16:13:35.000Z | fuelmenu/fuelmenu/modules/rootpw.py | Zipfer/fuel-web | c6c4032eb6e29474e2be0318349265bdb566454c | [
"Apache-2.0"
] | null | null | null | fuelmenu/fuelmenu/modules/rootpw.py | Zipfer/fuel-web | c6c4032eb6e29474e2be0318349265bdb566454c | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# Copyright 2013 Mirantis, Inc.
#
# 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 a... | 35.257576 | 78 | 0.56489 | 498 | 4,654 | 5.236948 | 0.413655 | 0.034509 | 0.03681 | 0.043712 | 0.168712 | 0.143021 | 0.093558 | 0.037577 | 0.037577 | 0 | 0 | 0.004493 | 0.330468 | 4,654 | 131 | 79 | 35.526718 | 0.832478 | 0.17168 | 0 | 0.2 | 0 | 0 | 0.182697 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0.222222 | 0.077778 | 0.011111 | 0.244444 | 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 |
646f4a42fb873d3bd01eab1b106d9d7f66a19490 | 6,692 | py | Python | devilry/project/common/settings.py | aless80/devilry-django | 416c262e75170d5662542f15e2d7fecf5ab84730 | [
"BSD-3-Clause"
] | null | null | null | devilry/project/common/settings.py | aless80/devilry-django | 416c262e75170d5662542f15e2d7fecf5ab84730 | [
"BSD-3-Clause"
] | null | null | null | devilry/project/common/settings.py | aless80/devilry-django | 416c262e75170d5662542f15e2d7fecf5ab84730 | [
"BSD-3-Clause"
] | null | null | null | ########################################################################
#
# Defaults for django settings
# - See: https://docs.djangoproject.com/en/dev/ref/settings/
#
########################################################################
import os
import devilry
from .projectspecific_settings import * # noqa
from... | 32.328502 | 98 | 0.648237 | 590 | 6,692 | 7.081356 | 0.362712 | 0.144088 | 0.050263 | 0.044519 | 0.017712 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002798 | 0.145397 | 6,692 | 206 | 99 | 32.485437 | 0.72775 | 0.099522 | 0 | 0.014184 | 0 | 0 | 0.597272 | 0.520743 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.014184 | 0.042553 | 0 | 0.042553 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
64769871d7651c4fe09490ae9be564a6303ec7ff | 904 | py | Python | code-solutions/Solution_005.py | Am4teur/Daily-Coding-Problems | 80b7c0efee4a5599feefe16972246baa8c19c334 | [
"MIT"
] | null | null | null | code-solutions/Solution_005.py | Am4teur/Daily-Coding-Problems | 80b7c0efee4a5599feefe16972246baa8c19c334 | [
"MIT"
] | null | null | null | code-solutions/Solution_005.py | Am4teur/Daily-Coding-Problems | 80b7c0efee4a5599feefe16972246baa8c19c334 | [
"MIT"
] | 1 | 2022-01-22T21:56:01.000Z | 2022-01-22T21:56:01.000Z | class MaxStack:
def __init__(self):
self.stack = []
self.max_stack = []
def push(self, val):
self.stack.append(val)
if(not self.max_stack or val > self.stack[self.max_stack[-1]]):
self.max_stack.append(len(self.stack) - 1)
def pop(self):
if(not self.stac... | 20.088889 | 71 | 0.506637 | 128 | 904 | 3.421875 | 0.203125 | 0.164384 | 0.219178 | 0.146119 | 0.420091 | 0.205479 | 0.155251 | 0.155251 | 0.155251 | 0 | 0 | 0.018212 | 0.331858 | 904 | 45 | 72 | 20.088889 | 0.706954 | 0.016593 | 0 | 0.352941 | 0 | 0 | 0.00905 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0 | 0 | 0.264706 | 0.147059 | 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 |
64798a1c5f79aa151808ffe15d53f046862e60f3 | 1,877 | py | Python | DQM/TrackingMonitorSource/python/TrackerCollisionTrackingMonitor_cff.py | malbouis/cmssw | 16173a30d3f0c9ecc5419c474bb4d272c58b65c8 | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | DQM/TrackingMonitorSource/python/TrackerCollisionTrackingMonitor_cff.py | gartung/cmssw | 3072dde3ce94dcd1791d778988198a44cde02162 | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | DQM/TrackingMonitorSource/python/TrackerCollisionTrackingMonitor_cff.py | gartung/cmssw | 3072dde3ce94dcd1791d778988198a44cde02162 | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | import FWCore.ParameterSet.Config as cms
from DQM.TrackingMonitorSource.pset4GenericTriggerEventFlag_cfi import *
# Clone for TrackingMonitor for all PDs but MinBias ###
from DQM.TrackingMonitor.TrackerCollisionTrackingMonitor_cfi import *
TrackerCollisionTrackMonCommon = TrackerCollisionTrackMon.clone(
genericTr... | 45.780488 | 95 | 0.85349 | 125 | 1,877 | 12.792 | 0.368 | 0.025016 | 0.07192 | 0.081301 | 0.208881 | 0.149468 | 0 | 0 | 0 | 0 | 0 | 0.005285 | 0.092701 | 1,877 | 40 | 96 | 46.925 | 0.933647 | 0.182206 | 0 | 0.214286 | 0 | 0 | 0.104497 | 0.104497 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
647d0967c28ab126510ff860ff2d966577a5da6f | 520 | py | Python | WebDECIMER/segmentation/migrations/0008_uploadedarticle_zippedextractedimages.py | Kohulan/DECIMER-Image-Segmentation | 68ee9a9693e5bad5c41826d28e2d6558a20fe21f | [
"MIT"
] | 29 | 2021-01-08T13:48:18.000Z | 2022-01-17T08:29:00.000Z | WebDECIMER/segmentation/migrations/0008_uploadedarticle_zippedextractedimages.py | Kohulan/DECIMER-Image-Segmentation | 68ee9a9693e5bad5c41826d28e2d6558a20fe21f | [
"MIT"
] | 23 | 2021-01-07T21:43:21.000Z | 2022-03-14T21:52:17.000Z | WebDECIMER/segmentation/migrations/0008_uploadedarticle_zippedextractedimages.py | Kohulan/DECIMER-Image-Segmentation | 68ee9a9693e5bad5c41826d28e2d6558a20fe21f | [
"MIT"
] | 8 | 2021-01-08T05:39:21.000Z | 2022-02-14T10:06:38.000Z | # Generated by Django 3.1.3 on 2020-12-09 13:41
from django.db import migrations, models
import segmentation.models
class Migration(migrations.Migration):
dependencies = [
('segmentation', '0007_segmentedimage_ori_article_name'),
]
operations = [
migrations.AddField(
model_n... | 26 | 117 | 0.673077 | 52 | 520 | 6.615385 | 0.75 | 0.104651 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046914 | 0.221154 | 520 | 19 | 118 | 27.368421 | 0.802469 | 0.086538 | 0 | 0 | 1 | 0 | 0.194503 | 0.120507 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
647f1a2745d409d408f040287d5811bb8c5667a4 | 1,788 | py | Python | tests/test_inf_dim_rosenbrock.py | jungtaekkim/bayeso-benchmarks | 3650aaeeaa123da14f0f839da664b071ee17bf9a | [
"MIT"
] | 20 | 2019-12-17T09:01:59.000Z | 2022-01-17T02:06:28.000Z | tests/test_inf_dim_rosenbrock.py | jungtaekkim/bayeso-benchmarks | 3650aaeeaa123da14f0f839da664b071ee17bf9a | [
"MIT"
] | null | null | null | tests/test_inf_dim_rosenbrock.py | jungtaekkim/bayeso-benchmarks | 3650aaeeaa123da14f0f839da664b071ee17bf9a | [
"MIT"
] | 5 | 2019-12-18T08:41:36.000Z | 2020-11-06T07:25:57.000Z | #
# author: Jungtaek Kim (jtkim@postech.ac.kr)
# last updated: February 8, 2021
#
import numpy as np
import pytest
from bayeso_benchmarks.inf_dim_rosenbrock import *
class_fun = Rosenbrock
TEST_EPSILON = 1e-5
def test_init():
obj_fun = class_fun(2)
with pytest.raises(TypeError) as error:
class_fu... | 24.493151 | 78 | 0.599553 | 238 | 1,788 | 4.361345 | 0.344538 | 0.069364 | 0.077071 | 0.072254 | 0.303468 | 0.274566 | 0.274566 | 0.274566 | 0.231214 | 0.231214 | 0 | 0.236624 | 0.25783 | 1,788 | 72 | 79 | 24.833333 | 0.545592 | 0.040828 | 0 | 0.245614 | 0 | 0 | 0.003509 | 0 | 0 | 0 | 0 | 0 | 0.087719 | 1 | 0.052632 | false | 0 | 0.052632 | 0 | 0.105263 | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
648cfa630e52c9714c4474f00133814086416c14 | 585 | py | Python | src/ChapterTwo/insertionSort.py | Ivehui/Algorithms | 3f5e183100f84f59cf62fe35422128490b7be0cb | [
"MIT"
] | null | null | null | src/ChapterTwo/insertionSort.py | Ivehui/Algorithms | 3f5e183100f84f59cf62fe35422128490b7be0cb | [
"MIT"
] | null | null | null | src/ChapterTwo/insertionSort.py | Ivehui/Algorithms | 3f5e183100f84f59cf62fe35422128490b7be0cb | [
"MIT"
] | null | null | null | import numpy as np
class InsertionSort(object):
def insertionSort(self, array):
"""
:type array: before sort
:rtype: array: after sort
"""
l = len(array)
for i in range(1, l):
key = array[i]
j = i - 1
while j >= 0 and array[j] > ke... | 24.375 | 44 | 0.495726 | 70 | 585 | 4.028571 | 0.514286 | 0.085106 | 0.049645 | 0.056738 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022535 | 0.393162 | 585 | 24 | 45 | 24.375 | 0.771831 | 0 | 0 | 0 | 0 | 0 | 0.015905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.058824 | null | null | 0.117647 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
64925ae9eca3932ebf1ffc775b41ccb44e8ec05b | 874 | py | Python | tests/api_test.py | pierscin/battleships | 1014c6c87769c687838f43644d534d5f034e53bc | [
"MIT"
] | null | null | null | tests/api_test.py | pierscin/battleships | 1014c6c87769c687838f43644d534d5f034e53bc | [
"MIT"
] | null | null | null | tests/api_test.py | pierscin/battleships | 1014c6c87769c687838f43644d534d5f034e53bc | [
"MIT"
] | null | null | null | import jwt
from flask import json
def test_token_with_game_data_is_generated_after_posting_valid_data(app, test_client, session):
grid = ('CCCCC.....'
+ 'BBBB......'
+ 'RRR.......'
+ 'SSS.......'
+ 'DD........'
+ '..........'
+ '..........'
+ '..........'
... | 28.193548 | 95 | 0.509153 | 90 | 874 | 4.644444 | 0.577778 | 0.07177 | 0.066986 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009494 | 0.276888 | 874 | 30 | 96 | 29.133333 | 0.651899 | 0 | 0 | 0.181818 | 1 | 0 | 0.197022 | 0 | 0 | 0 | 0 | 0 | 0.136364 | 1 | 0.045455 | false | 0 | 0.090909 | 0 | 0.136364 | 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 |
64964ba79d274a79f8d5db3be6c5c4e25679a0db | 824 | py | Python | trpg/views/auth.py | jffifa/trpg | d808e5ce208a164154d93b177cb0c013a0d5f742 | [
"MIT"
] | 2 | 2018-08-01T16:02:10.000Z | 2018-08-11T05:08:14.000Z | trpg/views/auth.py | jffifa/trpg | d808e5ce208a164154d93b177cb0c013a0d5f742 | [
"MIT"
] | 5 | 2018-08-01T12:59:03.000Z | 2018-08-10T19:32:20.000Z | trpg/views/auth.py | jffifa/trpg | d808e5ce208a164154d93b177cb0c013a0d5f742 | [
"MIT"
] | null | null | null | from .base import JSONView
from django.contrib.auth import authenticate, login, logout
from django.urls import reverse
from ..registration.utility import decrypt as password_decrypt
class LoginView(JSONView):
def get_context_data(self, **kwargs):
username = self.request.POST['username']
password ... | 28.413793 | 79 | 0.639563 | 90 | 824 | 5.788889 | 0.455556 | 0.105566 | 0.053743 | 0.080614 | 0.134357 | 0.134357 | 0.134357 | 0 | 0 | 0 | 0 | 0 | 0.257282 | 824 | 28 | 80 | 29.428571 | 0.851307 | 0 | 0 | 0.090909 | 0 | 0 | 0.048544 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0.181818 | 0.181818 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
649bebb548c8b13728e620cc10bd445dcea417f4 | 263 | py | Python | meme/admin.py | mkimartinez/Lyfey | 8a27ef7fea92146f043c68c7ef5ee3672014c3fc | [
"MIT"
] | null | null | null | meme/admin.py | mkimartinez/Lyfey | 8a27ef7fea92146f043c68c7ef5ee3672014c3fc | [
"MIT"
] | null | null | null | meme/admin.py | mkimartinez/Lyfey | 8a27ef7fea92146f043c68c7ef5ee3672014c3fc | [
"MIT"
] | null | null | null | from django.contrib import admin
from .import models
from meme.models import Comment
# Register your models here.
admin.site.register(models.Mem)
class CommentAdmin(admin.ModelAdmin):
list_display =('user','approved')
admin.site.register(Comment,CommentAdmin) | 26.3 | 41 | 0.802281 | 35 | 263 | 6 | 0.571429 | 0.085714 | 0.161905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.095057 | 263 | 10 | 41 | 26.3 | 0.882353 | 0.098859 | 0 | 0 | 0 | 0 | 0.050847 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
64a323ffac34c092ee3ab917bb34c846d0e4e329 | 5,391 | py | Python | python/functest/sv_perf_check_full.py | spiralgenetics/biograph | 33c78278ce673e885f38435384f9578bfbf9cdb8 | [
"BSD-2-Clause"
] | 16 | 2021-07-14T23:32:31.000Z | 2022-03-24T16:25:15.000Z | python/functest/sv_perf_check_full.py | spiralgenetics/biograph | 33c78278ce673e885f38435384f9578bfbf9cdb8 | [
"BSD-2-Clause"
] | 9 | 2021-07-20T20:39:47.000Z | 2021-09-16T20:57:59.000Z | python/functest/sv_perf_check_full.py | spiralgenetics/biograph | 33c78278ce673e885f38435384f9578bfbf9cdb8 | [
"BSD-2-Clause"
] | 9 | 2021-07-15T19:38:35.000Z | 2022-01-31T19:24:56.000Z | """
sv_performance_test.py: Medium tests to ensure variant discovery hasn't changed too much
"""
import os
import json
import unittest
import sys
import subprocess
from glob import glob
from python.functest.utils.setup import (
ftest_setup,
ftest_teardown,
ftest_module_setup
)
SEARCH_PATH = ["/scratch"]
... | 35.235294 | 201 | 0.592283 | 678 | 5,391 | 4.528024 | 0.349558 | 0.026059 | 0.019544 | 0.018241 | 0.081433 | 0.061889 | 0 | 0 | 0 | 0 | 0 | 0.015681 | 0.278427 | 5,391 | 152 | 202 | 35.467105 | 0.773522 | 0.095344 | 0 | 0.060345 | 0 | 0.017241 | 0.301018 | 0.116497 | 0 | 0 | 0 | 0 | 0.025862 | 1 | 0.051724 | false | 0.051724 | 0.060345 | 0 | 0.146552 | 0.043103 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
64a6891558cc648a2a978e43a61510b62a12beb7 | 2,214 | py | Python | cogs/Basic.py | yoggys/discord-bot-template | 25b2e8dd830c0900323927cd9bbc0ec6baa22fec | [
"MIT"
] | 2 | 2021-01-12T11:36:23.000Z | 2021-01-13T12:29:58.000Z | cogs/Basic.py | yoggys/discord-bot-template | 25b2e8dd830c0900323927cd9bbc0ec6baa22fec | [
"MIT"
] | 1 | 2021-12-07T12:47:36.000Z | 2021-12-16T14:07:00.000Z | cogs/Basic.py | yoggys/discord-bot-template | 25b2e8dd830c0900323927cd9bbc0ec6baa22fec | [
"MIT"
] | null | null | null | from functions.Logger import log_info, error_handle
from discord.ext import commands
import sys
class Basic(commands.Cog):
def __init__(self, client):
self.client = client
#on_ready event example
@commands.Cog.listener()
async def on_ready(self):
log_info("Basic module loaded!")
... | 36.9 | 114 | 0.631436 | 278 | 2,214 | 4.78777 | 0.363309 | 0.036063 | 0.051089 | 0.054095 | 0.316304 | 0.316304 | 0.316304 | 0.316304 | 0.223892 | 0.223892 | 0 | 0.00489 | 0.261066 | 2,214 | 59 | 115 | 37.525424 | 0.80868 | 0.138663 | 0 | 0.463415 | 0 | 0 | 0.248418 | 0.133966 | 0 | 0 | 0 | 0.016949 | 0 | 1 | 0.04878 | false | 0.04878 | 0.073171 | 0 | 0.146341 | 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 |
64b1a7488c274f4dd72529847c355261e656d578 | 2,754 | py | Python | myssh/threads_func.py | samblabla/myssh | ed105766e7d295652bce72352e0ac9ee3348dfd2 | [
"Apache-2.0"
] | 65 | 2018-02-09T07:28:57.000Z | 2021-11-02T22:53:35.000Z | myssh/threads_func.py | samblabla/myssh | ed105766e7d295652bce72352e0ac9ee3348dfd2 | [
"Apache-2.0"
] | 3 | 2019-05-02T09:47:54.000Z | 2020-08-11T15:06:28.000Z | myssh/threads_func.py | samblabla/myssh | ed105766e7d295652bce72352e0ac9ee3348dfd2 | [
"Apache-2.0"
] | 8 | 2018-10-19T03:49:02.000Z | 2021-03-25T08:09:32.000Z | #coding:utf-8
import data
import ssh
import sftp
import common
import time
import threading
def threads_connect(name,i):
ssh.create_conn(i)
sftp.create_conn(i)
print('\33[34m%d:\33[31m%s成功:%s(%s) \33[0m' %(i,name,data.servers[i]['name'],common.hideipFun(data.servers[i]['host'])))
def threads_handle(threa... | 31.655172 | 124 | 0.526507 | 330 | 2,754 | 4.206061 | 0.239394 | 0.063401 | 0.069164 | 0.099424 | 0.699568 | 0.659222 | 0.652017 | 0.652017 | 0.652017 | 0.652017 | 0 | 0.022624 | 0.358025 | 2,754 | 86 | 125 | 32.023256 | 0.762443 | 0.009078 | 0 | 0.621622 | 0 | 0.040541 | 0.056106 | 0.03667 | 0 | 0 | 0 | 0 | 0 | 1 | 0.067568 | false | 0 | 0.081081 | 0 | 0.148649 | 0.067568 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
64b9f79dfb03bb9df611fd80e6a0c850dbeafe2f | 248 | py | Python | savejpg.py | gewangcn/spiders | 991ccc571417c721aea5ed92fd81419522d07869 | [
"MIT"
] | null | null | null | savejpg.py | gewangcn/spiders | 991ccc571417c721aea5ed92fd81419522d07869 | [
"MIT"
] | null | null | null | savejpg.py | gewangcn/spiders | 991ccc571417c721aea5ed92fd81419522d07869 | [
"MIT"
] | null | null | null | import requests
resp = requests.get("https://edu-tob.bdimg.com/v1/pc/pc%E5%85%88%E9%A6%96%E9%A1%B5%E5%A4%B4%E5%9B%BE5120-640-1608686903810.png")
with open("a.png", "wb") as f:
f.write(resp.content)
# 返回cookie信息转换的字典 键值对
se = requests.session() | 35.428571 | 128 | 0.709677 | 47 | 248 | 3.744681 | 0.808511 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.167401 | 0.084677 | 248 | 7 | 129 | 35.428571 | 0.60793 | 0.076613 | 0 | 0 | 0 | 0.2 | 0.491228 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 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 |
64c2c755c64c0a9f83d7975c84e2954e482ade05 | 575 | py | Python | appinit_backend/app/lib/websockets/server.py | lost-osiris/webplatform-backend | 8b1b7c94dbc5314450fbe75b8ca4625d39608d4a | [
"MIT"
] | 1 | 2020-09-11T01:20:07.000Z | 2020-09-11T01:20:07.000Z | appinit_backend/app/lib/websockets/server.py | lost-osiris/webplatform-backend | 8b1b7c94dbc5314450fbe75b8ca4625d39608d4a | [
"MIT"
] | null | null | null | appinit_backend/app/lib/websockets/server.py | lost-osiris/webplatform-backend | 8b1b7c94dbc5314450fbe75b8ca4625d39608d4a | [
"MIT"
] | null | null | null | from gevent import pywsgi
from geventwebsocket.handler import WebSocketHandler
from flask import Flask, render_template, session, request
app = Flask(__name__)
server = pywsgi.WSGIServer(('127.0.0.1', 3001), app,
handler_class=WebSocketHandler)
if __name__ == '__main__':
server.serve_forever()
# import os
# ... | 28.75 | 66 | 0.791304 | 68 | 575 | 6.426471 | 0.588235 | 0.05492 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021526 | 0.111304 | 575 | 19 | 67 | 30.263158 | 0.833659 | 0.441739 | 0 | 0 | 0 | 0 | 0.054313 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
64c3753507f4f5601298a10f34ef315b523cd811 | 642 | py | Python | 02 - Functions, logic and conditionals/exercises/hours-to-seconds.py | PableraShow/python-exercises | e1648fd42f3009ec6fb1e2096852b6d399e91d5b | [
"MIT"
] | 8 | 2018-10-01T17:35:57.000Z | 2022-02-01T08:12:12.000Z | 02 - Functions, logic and conditionals/exercises/hours-to-seconds.py | PableraShow/python-exercises | e1648fd42f3009ec6fb1e2096852b6d399e91d5b | [
"MIT"
] | null | null | null | 02 - Functions, logic and conditionals/exercises/hours-to-seconds.py | PableraShow/python-exercises | e1648fd42f3009ec6fb1e2096852b6d399e91d5b | [
"MIT"
] | 6 | 2018-07-22T19:15:21.000Z | 2022-02-05T07:54:58.000Z | """
Write a function total_seconds that takes three parameters hours,
minutes and seconds
and returns the total number of seconds for hours hours,
minutes minutes and seconds seconds
"""
# Hours, minutes, and seconds to seconds conversion formula
def total_seconds(hours, minutes, seconds):
return (hours *... | 30.571429 | 68 | 0.682243 | 89 | 642 | 4.88764 | 0.393258 | 0.165517 | 0.117241 | 0.101149 | 0.142529 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031434 | 0.207165 | 642 | 21 | 69 | 30.571429 | 0.823183 | 0.109034 | 0 | 0 | 0 | 0 | 0.132231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
64c7153fbfe5b356314570fdcfd44d046cdbf473 | 2,056 | py | Python | mpf/plugins/twitch_bot.py | Scottacus64/mpf | fcfb6c5698b9c7d8bf0eb64b021aaa389ea6478a | [
"MIT"
] | 163 | 2015-01-25T02:19:50.000Z | 2022-03-26T12:00:28.000Z | mpf/plugins/twitch_bot.py | Scottacus64/mpf | fcfb6c5698b9c7d8bf0eb64b021aaa389ea6478a | [
"MIT"
] | 1,086 | 2015-03-23T19:53:17.000Z | 2022-03-24T20:46:11.000Z | mpf/plugins/twitch_bot.py | Scottacus64/mpf | fcfb6c5698b9c7d8bf0eb64b021aaa389ea6478a | [
"MIT"
] | 148 | 2015-01-28T02:31:39.000Z | 2022-03-22T13:54:01.000Z | """MPF plugin which adds events from monitoring a Twitch chat room."""
import threading
from mpf.core.logging import LogMixin
from .twitch.twitch_client import TwitchClient
MYPY = False
if MYPY: # pragma: no cover
from mpf.core.machine import MachineController # pylint: disable-msg=cyclic-import,unused-import
... | 34.847458 | 101 | 0.633755 | 240 | 2,056 | 5.270833 | 0.3375 | 0.078261 | 0.03083 | 0.054545 | 0.139921 | 0.139921 | 0.06166 | 0 | 0 | 0 | 0 | 0 | 0.269942 | 2,056 | 58 | 102 | 35.448276 | 0.842771 | 0.10214 | 0 | 0 | 0 | 0 | 0.154267 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025 | false | 0.125 | 0.1 | 0 | 0.175 | 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 |
64d1b1489599d8bc0f2e6f5976da2e6c4b0ee762 | 3,465 | py | Python | pylinquery/enumerable.py | mw-ste/PyLinQuery | ef0e941503577f4adf867d6b499efe7b9e114c65 | [
"MIT"
] | null | null | null | pylinquery/enumerable.py | mw-ste/PyLinQuery | ef0e941503577f4adf867d6b499efe7b9e114c65 | [
"MIT"
] | null | null | null | pylinquery/enumerable.py | mw-ste/PyLinQuery | ef0e941503577f4adf867d6b499efe7b9e114c65 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Apr 11 15:51:21 2019
@author: michi
"""
import inspect
from types import FunctionType
# In[]
class Enumerable:
_generator = None
_values = None
# In[]
def __init__(self, values):
if Enumerable._is_generator_type(va... | 25.477941 | 93 | 0.598846 | 394 | 3,465 | 5.007614 | 0.213198 | 0.040547 | 0.060821 | 0.08515 | 0.423213 | 0.272681 | 0.210846 | 0.169285 | 0.121642 | 0.121642 | 0 | 0.006219 | 0.303896 | 3,465 | 136 | 94 | 25.477941 | 0.811774 | 0.053102 | 0 | 0.25641 | 0 | 0 | 0.035363 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.24359 | false | 0 | 0.025641 | 0.025641 | 0.474359 | 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 |
64daf0db3812e4c5d3198c3d2c5299bf8eb133ed | 5,208 | py | Python | data/preprocess/nc_interpolation.py | Skye777/transformer | 177834bcb55e59f8ea0fbe666734c148effbec8d | [
"Apache-2.0"
] | null | null | null | data/preprocess/nc_interpolation.py | Skye777/transformer | 177834bcb55e59f8ea0fbe666734c148effbec8d | [
"Apache-2.0"
] | null | null | null | data/preprocess/nc_interpolation.py | Skye777/transformer | 177834bcb55e59f8ea0fbe666734c148effbec8d | [
"Apache-2.0"
] | null | null | null | import os
import numpy as np
import matplotlib.pyplot as plt
import xarray
from hparams import Hparams
hparams = Hparams()
parser = hparams.parser
hp = parser.parse_args()
dic = [
[f'{hp.observe_dataset_dir}/meta-data/sst.mnmean.nc', f'{hp.observe_dataset_dir}/interp-data/sst.nc', 'sst', 'lat'],
[f'{hp.observ... | 36.166667 | 147 | 0.624424 | 901 | 5,208 | 3.519423 | 0.17758 | 0.013245 | 0.031536 | 0.053611 | 0.584043 | 0.564806 | 0.517502 | 0.456954 | 0.386629 | 0.386629 | 0 | 0.15526 | 0.163978 | 5,208 | 143 | 148 | 36.41958 | 0.573036 | 0.618856 | 0 | 0 | 0 | 0 | 0.445513 | 0.409722 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.138889 | 0 | 0.194444 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b37fac2f309e1b66cb79bc593af91e35a577cf67 | 557 | py | Python | grocers_panel/migrations/0002_grocer_stripe_subscription.py | delitamakanda/GroceryApp | 8b0eeb40197b480598928dd7e95e63ca180c9bf1 | [
"MIT"
] | 1 | 2021-05-25T02:46:42.000Z | 2021-05-25T02:46:42.000Z | grocers_panel/migrations/0002_grocer_stripe_subscription.py | delitamakanda/GroceryApp | 8b0eeb40197b480598928dd7e95e63ca180c9bf1 | [
"MIT"
] | null | null | null | grocers_panel/migrations/0002_grocer_stripe_subscription.py | delitamakanda/GroceryApp | 8b0eeb40197b480598928dd7e95e63ca180c9bf1 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.3 on 2021-11-11 22:14
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('admin_panel', '0004_stripesubscription'),
('grocers_panel', '0001_initial'),
]
operations = [
migra... | 26.52381 | 130 | 0.657092 | 62 | 557 | 5.758065 | 0.645161 | 0.067227 | 0.078431 | 0.123249 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053241 | 0.224417 | 557 | 20 | 131 | 27.85 | 0.773148 | 0.08079 | 0 | 0 | 1 | 0 | 0.223529 | 0.103922 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b3823f6b2a34a5c4648470d65d4dd7a0605a4343 | 2,062 | py | Python | ircmqtt.py | dobrite/irctomqttbot | c1a9ba49818211f635c07469127a7f9de12cee8f | [
"MIT"
] | null | null | null | ircmqtt.py | dobrite/irctomqttbot | c1a9ba49818211f635c07469127a7f9de12cee8f | [
"MIT"
] | null | null | null | ircmqtt.py | dobrite/irctomqttbot | c1a9ba49818211f635c07469127a7f9de12cee8f | [
"MIT"
] | null | null | null | #! /usr/bin/env python3
import irc.bot
import irc.strings
from irc.client import ip_numstr_to_quad, ip_quad_to_numstr
import paho.mqtt.client as mqtt
class ListenerBot(irc.bot.SingleServerIRCBot):
def __init__(self, irc_channel, irc_nickname, irc_server, irc_port):
irc.bot.SingleServerIRCBot.__init__(sel... | 27.864865 | 103 | 0.628031 | 281 | 2,062 | 4.366548 | 0.345196 | 0.05705 | 0.0489 | 0.05216 | 0.114914 | 0.096985 | 0.096985 | 0.096985 | 0.06683 | 0 | 0 | 0.016883 | 0.253152 | 2,062 | 73 | 104 | 28.246575 | 0.77987 | 0.053346 | 0 | 0 | 0 | 0 | 0.061088 | 0 | 0 | 0 | 0 | 0.013699 | 0 | 1 | 0.156863 | false | 0.019608 | 0.078431 | 0 | 0.294118 | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b38440b2c835118d8645ae0629045e945a8e0b44 | 7,703 | py | Python | utilitiespackage/utilitiespackage/tests/yunobuiltin/test_yunobuiltin___init__.py | GDSLLC/utilities-package | 52a3315bb56eb7592be82293f97aeeb3be5988e6 | [
"MIT"
] | null | null | null | utilitiespackage/utilitiespackage/tests/yunobuiltin/test_yunobuiltin___init__.py | GDSLLC/utilities-package | 52a3315bb56eb7592be82293f97aeeb3be5988e6 | [
"MIT"
] | null | null | null | utilitiespackage/utilitiespackage/tests/yunobuiltin/test_yunobuiltin___init__.py | GDSLLC/utilities-package | 52a3315bb56eb7592be82293f97aeeb3be5988e6 | [
"MIT"
] | null | null | null | import operator
from functools import partial
from utilitiespackage.yunobuiltin import (
get,
gensym,
isa,
interleave,
is_even,
is_iterable,
new_list,
new_iter,
new_tuple,
juxt,
flatten,
is_str_or_bytes,
identity,
is_map,
is_seq,
append... | 23.628834 | 104 | 0.492276 | 1,244 | 7,703 | 2.843248 | 0.085209 | 0.032796 | 0.042409 | 0.02488 | 0.535199 | 0.475827 | 0.438224 | 0.407973 | 0.382528 | 0.344077 | 0 | 0.067943 | 0.29495 | 7,703 | 325 | 105 | 23.701538 | 0.583318 | 0 | 0 | 0.25 | 0 | 0 | 0.046896 | 0 | 0 | 0 | 0 | 0 | 0.280172 | 1 | 0.211207 | false | 0.012931 | 0.012931 | 0.030172 | 0.267241 | 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 |
b396182be1514ba5aa6155c9e8e65948041b32f6 | 309 | py | Python | udp/src/client.py | JunguangJiang/FTP-master | 62e6499cbfcfad2db9aef67f2f7bfd7b808bfa63 | [
"MIT"
] | 1 | 2020-04-19T14:08:13.000Z | 2020-04-19T14:08:13.000Z | udp/src/client.py | JunguangJiang/FTP | 62e6499cbfcfad2db9aef67f2f7bfd7b808bfa63 | [
"MIT"
] | null | null | null | udp/src/client.py | JunguangJiang/FTP | 62e6499cbfcfad2db9aef67f2f7bfd7b808bfa63 | [
"MIT"
] | null | null | null | import socket
size = 8192
try:
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
for i in range(0,51):
msg = bytes(str(i), encoding="utf-8")
sock.sendto(msg, ('127.0.0.1', 9876))
print(str(sock.recv(size),encoding='utf-8'))
sock.close()
except:
print("cannot reach the server") | 22.071429 | 57 | 0.650485 | 51 | 309 | 3.901961 | 0.647059 | 0.120603 | 0.120603 | 0.160804 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.074219 | 0.171521 | 309 | 14 | 58 | 22.071429 | 0.703125 | 0 | 0 | 0 | 0 | 0 | 0.135484 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0.181818 | 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 |
b39cf0067207b03a906fd96bf3e3e66ca1663422 | 1,667 | py | Python | spikeextractors/extractors/neoextractors/blackrockextractor.py | warnerwarner/spikeextractors | 96a7294644c00f2b12375e0a91108071e2538144 | [
"MIT"
] | null | null | null | spikeextractors/extractors/neoextractors/blackrockextractor.py | warnerwarner/spikeextractors | 96a7294644c00f2b12375e0a91108071e2538144 | [
"MIT"
] | null | null | null | spikeextractors/extractors/neoextractors/blackrockextractor.py | warnerwarner/spikeextractors | 96a7294644c00f2b12375e0a91108071e2538144 | [
"MIT"
] | null | null | null | from .neobaseextractor import NeoBaseRecordingExtractor, NeoBaseSortingExtractor
from pathlib import Path
from typing import Union, Optional
try:
import neo
HAVE_NEO = True
except ImportError:
HAVE_NEO = False
PathType = Union[str, Path]
class BlackrockRecordingExtractor(NeoBaseRecordingExtractor):
... | 29.767857 | 115 | 0.706659 | 190 | 1,667 | 6.063158 | 0.342105 | 0.043403 | 0.038194 | 0.048611 | 0.5625 | 0.5625 | 0.5625 | 0.473958 | 0.473958 | 0.473958 | 0 | 0.004605 | 0.218356 | 1,667 | 55 | 116 | 30.309091 | 0.879509 | 0.435513 | 0 | 0.285714 | 0 | 0 | 0.083732 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.238095 | 0 | 0.761905 | 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 |
b39d3d4f6099c75a0698dfa5f38128447ac918e3 | 2,220 | py | Python | tests/test_buffer_reference.py | Infinidat/infi.instruct | 69dfd8a35d17f8687581e838ea13e7554f7e5034 | [
"BSD-3-Clause"
] | 2 | 2015-01-12T21:16:06.000Z | 2019-12-12T05:59:56.000Z | tests/test_buffer_reference.py | Infinidat/infi.instruct | 69dfd8a35d17f8687581e838ea13e7554f7e5034 | [
"BSD-3-Clause"
] | 4 | 2015-02-24T09:18:00.000Z | 2021-06-16T12:55:19.000Z | tests/test_buffer_reference.py | Infinidat/infi.instruct | 69dfd8a35d17f8687581e838ea13e7554f7e5034 | [
"BSD-3-Clause"
] | 4 | 2015-01-07T12:37:54.000Z | 2018-02-08T15:07:17.000Z | from infi.unittest import TestCase
from infi.instruct.buffer.reference import (Context, GetAttrReference, FuncCallReference, ObjectReference,
CyclicReferenceError)
class NumberHolder:
def __init__(self, n):
self.n = n
self.k = 10
class ReferenceTestCas... | 33.636364 | 106 | 0.638288 | 256 | 2,220 | 5.359375 | 0.28125 | 0.040816 | 0.061224 | 0.069242 | 0.412536 | 0.384111 | 0.360787 | 0.330175 | 0.193878 | 0.091837 | 0 | 0.019844 | 0.250901 | 2,220 | 65 | 107 | 34.153846 | 0.805171 | 0.017568 | 0 | 0.163265 | 0 | 0 | 0.004591 | 0 | 0 | 0 | 0 | 0 | 0.22449 | 1 | 0.204082 | false | 0 | 0.040816 | 0.020408 | 0.306122 | 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 |
b3a040b263764bdd245af66fac854a4ebf932955 | 1,042 | py | Python | application/__init__.py | Sebex0/friendship-diary-backend-python | fc4567ce4aee65f87c173c2aec07db3a7674229e | [
"Apache-2.0"
] | null | null | null | application/__init__.py | Sebex0/friendship-diary-backend-python | fc4567ce4aee65f87c173c2aec07db3a7674229e | [
"Apache-2.0"
] | null | null | null | application/__init__.py | Sebex0/friendship-diary-backend-python | fc4567ce4aee65f87c173c2aec07db3a7674229e | [
"Apache-2.0"
] | null | null | null | """Initialize app."""
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from config import Config
import logging
# Database variable
db = SQLAlchemy()
def create_app():
# Construct the core application
app = Flask(__name__, instance_relative_config=False)
# Apply the configuration
app.c... | 26.05 | 59 | 0.698656 | 124 | 1,042 | 5.693548 | 0.362903 | 0.084986 | 0.141643 | 0.124646 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.232246 | 1,042 | 39 | 60 | 26.717949 | 0.8825 | 0.175624 | 0 | 0 | 0 | 0 | 0.015348 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.409091 | 0 | 0.5 | 0.227273 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b3a0a3c081b26a35e696178f12c9ef77691dcafd | 3,002 | py | Python | conftest.py | ngalkina86/python_training_mantis | 1a63c321e5d15e23218107a015e21cbdbf4e654c | [
"Apache-2.0"
] | null | null | null | conftest.py | ngalkina86/python_training_mantis | 1a63c321e5d15e23218107a015e21cbdbf4e654c | [
"Apache-2.0"
] | null | null | null | conftest.py | ngalkina86/python_training_mantis | 1a63c321e5d15e23218107a015e21cbdbf4e654c | [
"Apache-2.0"
] | null | null | null | import jsonpickle as jsonpickle
import pytest
from fixture.application import Application
import json
import os.path
import importlib
import ftputil
fixture=None
target=None
def load_config(file):
global target
if target is None:
config_file = os.path.join(os.path.dirname(os.path.abspath(__file__)), f... | 36.168675 | 113 | 0.689873 | 382 | 3,002 | 5.282723 | 0.232984 | 0.053518 | 0.071358 | 0.037166 | 0.455897 | 0.424182 | 0.394945 | 0.356293 | 0.329534 | 0.329534 | 0 | 0.000806 | 0.173218 | 3,002 | 82 | 114 | 36.609756 | 0.812248 | 0 | 0 | 0.235294 | 0 | 0 | 0.122585 | 0.007995 | 0 | 0 | 0 | 0 | 0 | 1 | 0.191176 | false | 0.088235 | 0.117647 | 0.029412 | 0.397059 | 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 |
b3a1239b2d68b44e927595788e2fc43e5640af51 | 7,160 | py | Python | recipes/Python/300019_Coroutines_in_Python/recipe-300019.py | tdiprima/code | 61a74f5f93da087d27c70b2efe779ac6bd2a3b4f | [
"MIT"
] | 2,023 | 2017-07-29T09:34:46.000Z | 2022-03-24T08:00:45.000Z | recipes/Python/300019_Coroutines_in_Python/recipe-300019.py | unhacker/code | 73b09edc1b9850c557a79296655f140ce5e853db | [
"MIT"
] | 32 | 2017-09-02T17:20:08.000Z | 2022-02-11T17:49:37.000Z | recipes/Python/300019_Coroutines_in_Python/recipe-300019.py | unhacker/code | 73b09edc1b9850c557a79296655f140ce5e853db | [
"MIT"
] | 780 | 2017-07-28T19:23:28.000Z | 2022-03-25T20:39:41.000Z | """
A coroutine implementation in Python.
Convert functions to iterator generators by replacing
return <expression>
with
yield <expression>
and function calls: f(*args, **kw) with for loops:
for i in f(*args, **kw):
pass
# the function value is in i now.
Unfortunately, you have to know which routine has been ... | 26.518519 | 87 | 0.601257 | 847 | 7,160 | 4.972845 | 0.20425 | 0.04962 | 0.054843 | 0.022792 | 0.196581 | 0.119658 | 0.096391 | 0.041311 | 0.041311 | 0.041311 | 0 | 0.009314 | 0.310196 | 7,160 | 269 | 88 | 26.6171 | 0.843491 | 0.073883 | 0 | 0.293103 | 0 | 0 | 0.00838 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.005747 | 0.017241 | null | null | 0.045977 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b3b925cabab1ae200166bc33a655ac51172cf43f | 4,678 | py | Python | btplotting-master/btplotting/helper/marker.py | fredryce/stocker | 041fbe8348f7a035a607a214477cf423c4259171 | [
"MIT"
] | null | null | null | btplotting-master/btplotting/helper/marker.py | fredryce/stocker | 041fbe8348f7a035a607a214477cf423c4259171 | [
"MIT"
] | null | null | null | btplotting-master/btplotting/helper/marker.py | fredryce/stocker | 041fbe8348f7a035a607a214477cf423c4259171 | [
"MIT"
] | null | null | null | '''
Marker definition used to generate markers in bokeh using matplotlib notation
'''
_mrk_fncs = {
# '.' m00 point
'.': ('dot', ['color'], {'size': 2}, {}),
# ',' m01 pixel
',': ('dot', ['color'], {'size': 3}, {}),
# 'o' m02 circle
'o': ('circle', ['color', 'size'], {}, {'size': -3}),
# 'v... | 38.344262 | 77 | 0.470286 | 512 | 4,678 | 4.179688 | 0.302734 | 0.147196 | 0.104673 | 0.074766 | 0.426168 | 0.378037 | 0.378037 | 0.35 | 0.240187 | 0.172897 | 0 | 0.049218 | 0.248611 | 4,678 | 121 | 78 | 38.661157 | 0.559602 | 0.205857 | 0 | 0.213333 | 1 | 0 | 0.308615 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013333 | false | 0 | 0 | 0 | 0.026667 | 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 |
b3bf3e2d74c3f94665d9f0eed90e59c4bcf6dcac | 8,853 | py | Python | bombbomb/models/curriculum_with_progress.py | bombbomb/bombbomb-python-openapi | d1623cb06e58fdc83b04603a589e9d30e7eb3fdf | [
"Apache-2.0"
] | null | null | null | bombbomb/models/curriculum_with_progress.py | bombbomb/bombbomb-python-openapi | d1623cb06e58fdc83b04603a589e9d30e7eb3fdf | [
"Apache-2.0"
] | null | null | null | bombbomb/models/curriculum_with_progress.py | bombbomb/bombbomb-python-openapi | d1623cb06e58fdc83b04603a589e9d30e7eb3fdf | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
"""
BombBomb
We make it easy to build relationships using simple videos. # noqa: E501
OpenAPI spec version: 2.0.831
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
from bombbomb.models.curriculum_user_prog... | 28.284345 | 163 | 0.597651 | 1,039 | 8,853 | 4.900866 | 0.139557 | 0.067557 | 0.175962 | 0.150825 | 0.499804 | 0.415947 | 0.327965 | 0.279065 | 0.123331 | 0.047918 | 0 | 0.024269 | 0.315825 | 8,853 | 312 | 164 | 28.375 | 0.816411 | 0.396702 | 0 | 0.077519 | 1 | 0 | 0.062386 | 0.006375 | 0 | 0 | 0 | 0 | 0 | 1 | 0.170543 | false | 0 | 0.031008 | 0 | 0.333333 | 0.015504 | 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 |
b3c2b73fe38f754c4659eb26e8e250683d3cd22a | 721 | py | Python | visualize.py | jamqd/EE239AS | d1e45d8878ac61e0b6af38d6ce24b9d3a87fa285 | [
"MIT"
] | 2 | 2020-08-24T08:09:39.000Z | 2020-08-31T11:42:12.000Z | visualize.py | jamqd/EE239AS | d1e45d8878ac61e0b6af38d6ce24b9d3a87fa285 | [
"MIT"
] | null | null | null | visualize.py | jamqd/EE239AS | d1e45d8878ac61e0b6af38d6ce24b9d3a87fa285 | [
"MIT"
] | null | null | null | # code to visualize
from dqn import DQN
from torch import load
from run import collect_trajectories
import argparse
import gym
def main():
parser = argparse.ArgumentParser(description="to visualize trained model")
parser.add_argument("model_name", help="path to model to visualize", type=str)
# parser.add... | 30.041667 | 90 | 0.730929 | 100 | 721 | 5.07 | 0.45 | 0.065089 | 0.100592 | 0.059172 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006568 | 0.15534 | 721 | 23 | 91 | 31.347826 | 0.825944 | 0.302358 | 0 | 0 | 0 | 0 | 0.169014 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.384615 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
b3cd53faa03dbdb3ca474c0efffa2b1d85860717 | 389 | py | Python | app/notifier/src/config/email_notif.py | maticardenas/football_notifier_app | fa2866bb3977f9baf8940c9daf4a588b4e06d520 | [
"MIT"
] | null | null | null | app/notifier/src/config/email_notif.py | maticardenas/football_notifier_app | fa2866bb3977f9baf8940c9daf4a588b4e06d520 | [
"MIT"
] | null | null | null | app/notifier/src/config/email_notif.py | maticardenas/football_notifier_app | fa2866bb3977f9baf8940c9daf4a588b4e06d520 | [
"MIT"
] | null | null | null | EMAIL_RECIPIENTS = {
# "Ema": "ema_pra@hotmail.com",
"Matías": "cardenasmatias.1990@gmail.com",
# "David": "k1.dave@gmail.com",
# "Fede": "fede_pra@hotmail.com",
# "Fede": "fpradomacat@gmail.com",
# "David": "departamentosvillasuiza@gmail.com"
}
# GMAIL
SMTP_SERVER = "smtp.gmail.com"
GMAIL_SE... | 24.3125 | 50 | 0.660668 | 46 | 389 | 5.456522 | 0.521739 | 0.191235 | 0.155378 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021212 | 0.151671 | 389 | 15 | 51 | 25.933333 | 0.739394 | 0.449871 | 0 | 0 | 0 | 0 | 0.434783 | 0.285024 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
b3d066a663fa6421da26fec7012ccc1194b1dd0d | 2,336 | py | Python | src/sprint_webserver/views/kjoreplan.py | langrenn-sprint/sprint-webserver | 065a96d102a6658e5422ea6a0be5abde4b6558e1 | [
"Apache-2.0"
] | null | null | null | src/sprint_webserver/views/kjoreplan.py | langrenn-sprint/sprint-webserver | 065a96d102a6658e5422ea6a0be5abde4b6558e1 | [
"Apache-2.0"
] | 15 | 2021-01-11T19:42:39.000Z | 2021-04-19T21:09:58.000Z | src/sprint_webserver/views/kjoreplan.py | langrenn-sprint/sprint-webserver | 065a96d102a6658e5422ea6a0be5abde4b6558e1 | [
"Apache-2.0"
] | null | null | null | """Resource module for resultat view."""
import logging
from aiohttp import web
import aiohttp_jinja2
from sprint_webserver.services import (
InnstillingerService,
KjoreplanService,
KlasserService,
)
class Kjoreplan(web.View):
"""Class representing the kjoreplan / heatliste resource."""
async d... | 32.444444 | 88 | 0.596318 | 239 | 2,336 | 5.715481 | 0.41841 | 0.072474 | 0.061493 | 0.070278 | 0.079063 | 0.046852 | 0 | 0 | 0 | 0 | 0 | 0.004258 | 0.296233 | 2,336 | 71 | 89 | 32.901408 | 0.826642 | 0.103596 | 0 | 0 | 0 | 0 | 0.072944 | 0 | 0 | 0 | 0 | 0.014085 | 0 | 1 | 0 | false | 0 | 0.081633 | 0 | 0.142857 | 0.020408 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
b3d08b6173fb06e7337a906a8d5ddee5ba9c9915 | 823 | py | Python | src/command_modules/azure-cli-storage/tests/test_storage_table_scenarios.py | saurabsa/azure-cli-old | f77477a98c9aa9cb55daf5b0d2f410d1455a9225 | [
"MIT"
] | null | null | null | src/command_modules/azure-cli-storage/tests/test_storage_table_scenarios.py | saurabsa/azure-cli-old | f77477a98c9aa9cb55daf5b0d2f410d1455a9225 | [
"MIT"
] | 2 | 2021-03-25T21:38:56.000Z | 2021-11-15T17:46:45.000Z | src/command_modules/azure-cli-storage/tests/test_storage_table_scenarios.py | Visual-Studio-China/azure-cli-int | 48c7c7f371a0ecc4ebfd4dcfdc72764beddf5c31 | [
"MIT"
] | null | null | null | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | 51.4375 | 94 | 0.562576 | 62 | 823 | 7.370968 | 0.758065 | 0.14442 | 0.2407 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144593 | 823 | 15 | 95 | 54.866667 | 0.649148 | 0.408262 | 0 | 0 | 0 | 0 | 0.157676 | 0.043568 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.375 | 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 |
b3d1e5996b4f3cebb25c5674645c187829ed1fad | 682 | py | Python | I2C/rpi2.py | tlee753/serial-communications | 48ab44e04e746a011c8b2ec284813932da913ad2 | [
"MIT"
] | 1 | 2021-11-25T23:49:49.000Z | 2021-11-25T23:49:49.000Z | I2C/rpi2.py | tlee753/serial-communications | 48ab44e04e746a011c8b2ec284813932da913ad2 | [
"MIT"
] | null | null | null | I2C/rpi2.py | tlee753/serial-communications | 48ab44e04e746a011c8b2ec284813932da913ad2 | [
"MIT"
] | null | null | null | import smbus
import time
bus = smbus.SMBus(1) # instantiate bus
slaveAddress = 0x04 # assign a slave address
def writeNumber(value): # function to write value
bus.write_byte(slaveAddress, value)
def readNumber(): # function to read value
number = bus.read_byte(slaveAddress)
return number
while True: # c... | 27.28 | 58 | 0.683284 | 96 | 682 | 4.84375 | 0.572917 | 0.043011 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013384 | 0.233138 | 682 | 25 | 59 | 27.28 | 0.873805 | 0.278592 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008316 | 0 | 0 | 0 | null | null | 0 | 0.105263 | null | null | 0.157895 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b3d23a8be06cd80fb203d7396d62c84317f5095e | 2,829 | py | Python | plugin.video.vstream/resources/lib/handler/jdownloaderHandler.py | akuala/REPO.KUALA | ea9a157025530d2ce8fa0d88431c46c5352e89d4 | [
"Apache-2.0"
] | 2 | 2018-11-02T19:55:30.000Z | 2020-08-14T02:22:20.000Z | plugin.video.vstream/resources/lib/handler/jdownloaderHandler.py | akuala/REPO.KUALA | ea9a157025530d2ce8fa0d88431c46c5352e89d4 | [
"Apache-2.0"
] | null | null | null | plugin.video.vstream/resources/lib/handler/jdownloaderHandler.py | akuala/REPO.KUALA | ea9a157025530d2ce8fa0d88431c46c5352e89d4 | [
"Apache-2.0"
] | 3 | 2019-12-17T20:47:00.000Z | 2021-02-11T19:03:59.000Z | #-*- coding: utf-8 -*-
#Vstream https://github.com/Kodi-vStream/venom-xbmc-addons
from resources.lib.gui.gui import cGui
from resources.lib.handler.requestHandler import cRequestHandler
from resources.lib.comaddon import addon, dialog, VSlog
class cJDownloaderHandler:
ADDON = addon()
DIALOG = dialog()
d... | 29.164948 | 153 | 0.601273 | 256 | 2,829 | 6.480469 | 0.335938 | 0.046414 | 0.057263 | 0.063291 | 0.277275 | 0.195298 | 0.05425 | 0.05425 | 0 | 0 | 0 | 0.00249 | 0.290209 | 2,829 | 96 | 154 | 29.46875 | 0.823705 | 0.027572 | 0 | 0.30303 | 0 | 0 | 0.083728 | 0.009101 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.045455 | 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 |
b3d27837e9820ebf643eae5c98f8dd1c1c097ce3 | 1,086 | py | Python | poop/hfdp/factory/pizzafm/pizza_test_drive.py | cassiobotaro/poop | fc218fbf638c50da8ea98dab7de26ad2a52e83f5 | [
"MIT"
] | 37 | 2020-12-27T00:13:07.000Z | 2022-01-31T19:30:18.000Z | poop/hfdp/factory/pizzafm/pizza_test_drive.py | cassiobotaro/poop | fc218fbf638c50da8ea98dab7de26ad2a52e83f5 | [
"MIT"
] | null | null | null | poop/hfdp/factory/pizzafm/pizza_test_drive.py | cassiobotaro/poop | fc218fbf638c50da8ea98dab7de26ad2a52e83f5 | [
"MIT"
] | 7 | 2020-12-26T22:33:47.000Z | 2021-11-07T01:29:59.000Z | from poop.hfdp.factory.pizzafm.chicago_pizza_store import ChicagoPizzaStore
from poop.hfdp.factory.pizzafm.ny_pizza_store import NYPizzaStore
from poop.hfdp.factory.pizzafm.pizza import Pizza
def main() -> None:
ny_store: NYPizzaStore = NYPizzaStore()
chicago_store: ChicagoPizzaStore = ChicagoPizzaStore()
... | 32.909091 | 75 | 0.71547 | 152 | 1,086 | 4.914474 | 0.184211 | 0.107095 | 0.160643 | 0.171352 | 0.760375 | 0.646586 | 0.559572 | 0.559572 | 0.519411 | 0.519411 | 0 | 0 | 0.150092 | 1,086 | 32 | 76 | 33.9375 | 0.809317 | 0 | 0 | 0.363636 | 0 | 0 | 0.292818 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.136364 | 0 | 0.181818 | 0.363636 | 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 |
b3d44334f4081aeeeede6f15c35ce6549bdd1126 | 292 | py | Python | cache.py | AbelJoo/ZenTao-PMS-Auxiliary | c0e9347b07155a59ac0005ab82f8347deb0a26c2 | [
"Apache-2.0"
] | 36 | 2015-06-06T08:56:08.000Z | 2022-02-07T16:22:57.000Z | cache.py | AbelJoo/ZenTao-PMS-Auxiliary | c0e9347b07155a59ac0005ab82f8347deb0a26c2 | [
"Apache-2.0"
] | null | null | null | cache.py | AbelJoo/ZenTao-PMS-Auxiliary | c0e9347b07155a59ac0005ab82f8347deb0a26c2 | [
"Apache-2.0"
] | 10 | 2015-06-18T01:09:51.000Z | 2019-10-22T00:03:41.000Z | #! /usr/bin/python
# coding:utf-8
__val_dict = {}
def filter_new(key, bean_list):
old_bean_id = [old_bean.uid for old_bean in __val_dict.get(key, {})]
return [bean.uid for bean in bean_list if bean.uid not in old_bean_id]
def add(key, bean_list):
__val_dict[key] = bean_list | 20.857143 | 74 | 0.69863 | 54 | 292 | 3.407407 | 0.444444 | 0.173913 | 0.179348 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004167 | 0.178082 | 292 | 14 | 75 | 20.857143 | 0.7625 | 0.10274 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b3d5846570ce03c2556e5aaa5302e7d5bb7cfcf4 | 1,073 | py | Python | flask_resql/apps/user/types.py | twocucao/flask-resql | 6d5573293b04f2fa64411b5c85e36d377426b676 | [
"MIT"
] | 1 | 2020-12-09T14:54:38.000Z | 2020-12-09T14:54:38.000Z | flask_resql/apps/user/types.py | twocucao/flask-resql | 6d5573293b04f2fa64411b5c85e36d377426b676 | [
"MIT"
] | null | null | null | flask_resql/apps/user/types.py | twocucao/flask-resql | 6d5573293b04f2fa64411b5c85e36d377426b676 | [
"MIT"
] | null | null | null | import datetime
from enum import Enum
from typing import List
from flask_resql.resql import Serializer
from flask_resql.resql.utils import transform_serializer_field
def object_type(cls):
schema = cls.schema()
obj_type = transform_serializer_field(
f"/{cls.__name__}", cls.__name__, schema, model_sche... | 19.509091 | 69 | 0.696179 | 131 | 1,073 | 5.427481 | 0.389313 | 0.056259 | 0.063291 | 0.080169 | 0.115331 | 0.084388 | 0.084388 | 0 | 0 | 0 | 0 | 0 | 0.22274 | 1,073 | 54 | 70 | 19.87037 | 0.852518 | 0.054986 | 0 | 0.268293 | 0 | 0 | 0.038576 | 0 | 0 | 0 | 0 | 0.018519 | 0 | 1 | 0.04878 | false | 0 | 0.121951 | 0.02439 | 0.780488 | 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 |
b3d8e2f4f026c0e980617503190294abe9ae8511 | 997 | py | Python | lynx/qt/tabs.py | DevGev/Lynx | 11ceddf63ee5e863b89aa1ff56ba9edd1bfecb07 | [
"Unlicense"
] | 9 | 2020-12-14T18:37:10.000Z | 2021-06-18T08:06:18.000Z | lynx/qt/tabs.py | DevGev/Lynx | 11ceddf63ee5e863b89aa1ff56ba9edd1bfecb07 | [
"Unlicense"
] | 1 | 2021-07-15T09:07:45.000Z | 2021-12-12T20:21:21.000Z | lynx/qt/tabs.py | DevGev/Lynx | 11ceddf63ee5e863b89aa1ff56ba9edd1bfecb07 | [
"Unlicense"
] | 1 | 2021-03-18T22:01:01.000Z | 2021-03-18T22:01:01.000Z | from PyQt5.QtWidgets import (
QTabWidget,
)
class TabWidget(QTabWidget):
tab_ids = 0
def addTab(self, widget, label, silent=False):
tab_id = self.tab_ids
self.tab_ids += 1
i = super().addTab(widget, label)
if not silent:
super().setCurrentIndex(i)
wid... | 25.564103 | 74 | 0.571715 | 116 | 997 | 4.862069 | 0.387931 | 0.062057 | 0.035461 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008596 | 0.2999 | 997 | 38 | 75 | 26.236842 | 0.799427 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.172414 | false | 0 | 0.034483 | 0.034483 | 0.517241 | 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 |
b3e8735b9aef83a1f9db395d7a755f61c90bb0cf | 15,510 | py | Python | gan_cifar_dist.py | jorgdv/fully_distributed_gans | c97597041e96409f8dd687b83b86c0379d9c83e7 | [
"MIT"
] | null | null | null | gan_cifar_dist.py | jorgdv/fully_distributed_gans | c97597041e96409f8dd687b83b86c0379d9c83e7 | [
"MIT"
] | null | null | null | gan_cifar_dist.py | jorgdv/fully_distributed_gans | c97597041e96409f8dd687b83b86c0379d9c83e7 | [
"MIT"
] | null | null | null | import os, sys
sys.path.append(os.getcwd())
import time
import numpy as np
import tensorflow as tf
import tflib as lib
import tflib.ops.linear
import tflib.ops.conv2d
import tflib.ops.batchnorm
import tflib.ops.deconv2d
import tflib.save_images
import tflib.cifar10
import tflib.inception_score
import tflib.plot
# D... | 38.678304 | 173 | 0.677627 | 2,383 | 15,510 | 4.212757 | 0.129668 | 0.03586 | 0.01793 | 0.011655 | 0.559219 | 0.511904 | 0.457316 | 0.438091 | 0.400737 | 0.369658 | 0 | 0.037125 | 0.162927 | 15,510 | 400 | 174 | 38.775 | 0.736116 | 0.193166 | 0 | 0.18677 | 0 | 0 | 0.062575 | 0.005944 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.050584 | null | null | 0.035019 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b3ec316bc0e478a432242fe7ae6a341c23dd44e3 | 636 | py | Python | test/lesson-2/test_google.py | ihysk/test_framework_sandbox | e7445f89e4cd9dd1352642305e8ecfcf5e7b6856 | [
"Apache-2.0"
] | null | null | null | test/lesson-2/test_google.py | ihysk/test_framework_sandbox | e7445f89e4cd9dd1352642305e8ecfcf5e7b6856 | [
"Apache-2.0"
] | 1 | 2018-12-17T13:04:09.000Z | 2018-12-17T13:04:09.000Z | test/lesson-2/test_google.py | ihysk/test_framework_sandbox | e7445f89e4cd9dd1352642305e8ecfcf5e7b6856 | [
"Apache-2.0"
] | null | null | null | import os
from selenium import webdriver
class TestGoogle:
def setup_method(self, method):
self.driver = webdriver.Chrome(executable_path=os.environ.get('CHROME_DRIVER_PATH'))
self.driver.get('http://www.google.com')
def teardown_method(self, method):
self.driver.close()
def tes... | 27.652174 | 92 | 0.66195 | 83 | 636 | 4.86747 | 0.518072 | 0.123762 | 0.079208 | 0.09901 | 0.277228 | 0.148515 | 0.148515 | 0 | 0 | 0 | 0 | 0 | 0.20912 | 636 | 22 | 93 | 28.909091 | 0.803181 | 0 | 0 | 0 | 0 | 0 | 0.119497 | 0 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.25 | false | 0 | 0.125 | 0 | 0.4375 | 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 |
b3ec35353b8eff70006af8db75c0b88f41a4a3f6 | 761 | py | Python | video/api.py | perseu912/getporn | 9f4c9f11e9f52cf5a9e973df17ee0c0797c232a7 | [
"MIT"
] | null | null | null | video/api.py | perseu912/getporn | 9f4c9f11e9f52cf5a9e973df17ee0c0797c232a7 | [
"MIT"
] | null | null | null | video/api.py | perseu912/getporn | 9f4c9f11e9f52cf5a9e973df17ee0c0797c232a7 | [
"MIT"
] | null | null | null | import uvicorn
from fastapi import FastAPI,Request
from fastapi.encoders import jsonable_encoder
from fastapi.responses import JSONResponse
from fastapi.middleware.cors import CORSMiddleware
from pydantic import BaseModel
import asyncio
from search_video_eporner import get_porn_div
origins = ["*"]
app = FastAPI()
... | 21.742857 | 55 | 0.772668 | 102 | 761 | 5.529412 | 0.441176 | 0.078014 | 0.035461 | 0.078014 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012012 | 0.124836 | 761 | 34 | 56 | 22.382353 | 0.834835 | 0.014455 | 0 | 0 | 0 | 0 | 0.050734 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.333333 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
b3f3d3c7dae8148e36c4eac3b9fb3e6715a47347 | 2,173 | py | Python | Monte Carlo Method Agent/gambler_env.py | yfe3/Intelligent-Systems | 14c22e144e1a7f8625b2ff3f63e9c0545f946f69 | [
"MIT"
] | null | null | null | Monte Carlo Method Agent/gambler_env.py | yfe3/Intelligent-Systems | 14c22e144e1a7f8625b2ff3f63e9c0545f946f69 | [
"MIT"
] | null | null | null | Monte Carlo Method Agent/gambler_env.py | yfe3/Intelligent-Systems | 14c22e144e1a7f8625b2ff3f63e9c0545f946f69 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""
Author: Adam White, Mohammad M. Ajallooeian, Sina Ghiassian
Purpose: Code for the Gambler's problem environment from the Sutton and Barto
Reinforcement Learning: An Introduction Chapter 4.
For use in the Reinforcement Learning course, Fall 2017, University of Alberta
"""
from utils ... | 25.564706 | 100 | 0.653474 | 279 | 2,173 | 4.90681 | 0.397849 | 0.184076 | 0.075968 | 0.032871 | 0.131483 | 0.131483 | 0.087655 | 0 | 0 | 0 | 0 | 0.017868 | 0.253106 | 2,173 | 84 | 101 | 25.869048 | 0.825632 | 0.069949 | 0 | 0.205128 | 0 | 0 | 0.05325 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.051282 | null | null | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b3fcf5aad0fcfa54b8364e5370aca5c9c0e1b4b8 | 640 | py | Python | Scripts/Standalone/F-MarkComposites.py | twardoch/TypeRig | 121838d98ed41160dbebf575d0a5623def0ce256 | [
"BSD-3-Clause"
] | 1 | 2020-07-11T06:18:49.000Z | 2020-07-11T06:18:49.000Z | Scripts/Standalone/F-MarkComposites.py | twardoch/TypeRig | 121838d98ed41160dbebf575d0a5623def0ce256 | [
"BSD-3-Clause"
] | null | null | null | Scripts/Standalone/F-MarkComposites.py | twardoch/TypeRig | 121838d98ed41160dbebf575d0a5623def0ce256 | [
"BSD-3-Clause"
] | null | null | null | #FLM: Font: Mark Composites (Typerig)
# VER : 1.0
# ----------------------------------------
# (C) Vassil Kateliev, 2019 (http://www.kateliev.com)
# (C) Karandash Type Foundry (http://www.karandash.eu)
#-----------------------------------------
# www.typerig.com
# No warranties. By using this you agree
# that you use ... | 24.615385 | 54 | 0.6 | 84 | 640 | 4.547619 | 0.714286 | 0.036649 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016423 | 0.14375 | 640 | 25 | 55 | 25.6 | 0.680657 | 0.5625 | 0 | 0 | 0 | 0 | 0.127341 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.125 | null | null | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b604094d04e2ada61d704b7d22545d0d6af8cd05 | 2,025 | py | Python | keymaster/server/cli/manage_user.py | shiroyuki/spymaster | 1efee54427378394ab04d0e53247eb38c28bc97c | [
"Apache-2.0"
] | null | null | null | keymaster/server/cli/manage_user.py | shiroyuki/spymaster | 1efee54427378394ab04d0e53247eb38c28bc97c | [
"Apache-2.0"
] | null | null | null | keymaster/server/cli/manage_user.py | shiroyuki/spymaster | 1efee54427378394ab04d0e53247eb38c28bc97c | [
"Apache-2.0"
] | null | null | null | from dataclasses import asdict
from gallium import ICommand
from imagination import container
import yaml
from keymaster.server.model.user import DefaultRole
from keymaster.server.service.user_service import UserService
class CreateNewUser(ICommand):
"""Create a new user (run as a system user)"""
def ident... | 41.326531 | 120 | 0.57284 | 229 | 2,025 | 5.0131 | 0.414847 | 0.030488 | 0.074042 | 0.057491 | 0.135889 | 0.057491 | 0.057491 | 0.057491 | 0 | 0 | 0 | 0 | 0.334321 | 2,025 | 48 | 121 | 42.1875 | 0.851632 | 0.019753 | 0 | 0.15 | 0 | 0 | 0.243557 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.075 | false | 0.075 | 0.15 | 0.025 | 0.275 | 0.075 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b6087e064a90f785236d3333479c904a48f6e73b | 530 | py | Python | expenses/urls.py | danngalann/myfinance-backend | c7a6d939c7f917c11e7374c1a48128a40acb983a | [
"MIT"
] | null | null | null | expenses/urls.py | danngalann/myfinance-backend | c7a6d939c7f917c11e7374c1a48128a40acb983a | [
"MIT"
] | null | null | null | expenses/urls.py | danngalann/myfinance-backend | c7a6d939c7f917c11e7374c1a48128a40acb983a | [
"MIT"
] | null | null | null | from django.urls import path
from expenses.api.create import ExpenseCreateApi
from expenses.api.list import ExpenseListApi, periodicities_list_api
from expenses.api.update import ExpenseUpdateApi
from expenses.api.delete import ExpenseDeleteApi
urlpatterns = [
path('api', ExpenseListApi.as_view()),
path('api/p... | 37.857143 | 68 | 0.767925 | 64 | 530 | 6.234375 | 0.3125 | 0.087719 | 0.150376 | 0.097744 | 0.075188 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107547 | 530 | 13 | 69 | 40.769231 | 0.843552 | 0.098113 | 0 | 0 | 0 | 0 | 0.094538 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.454545 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
b612d51dcd798eb329c14c555305828c3465a192 | 3,735 | py | Python | tests/test_interfaces.py | bbtfr/megfile | 7a0d4bd8fa6f52512e99dfd490bf404fb4f5ede0 | [
"Apache-2.0",
"MIT"
] | null | null | null | tests/test_interfaces.py | bbtfr/megfile | 7a0d4bd8fa6f52512e99dfd490bf404fb4f5ede0 | [
"Apache-2.0",
"MIT"
] | null | null | null | tests/test_interfaces.py | bbtfr/megfile | 7a0d4bd8fa6f52512e99dfd490bf404fb4f5ede0 | [
"Apache-2.0",
"MIT"
] | null | null | null | from io import BytesIO
import pytest
from megfile.interfaces import BasePath, Closable, Readable, URIPath, Writable
class Klass1(Closable):
pass
class Klass2(Closable):
def __init__(self):
self.outer_close_call_count = 0
def _close(self):
self.outer_close_call_count += 1
class Kla... | 19.657895 | 78 | 0.632664 | 503 | 3,735 | 4.493042 | 0.200795 | 0.030973 | 0.049558 | 0.039823 | 0.342035 | 0.327876 | 0.259735 | 0.223894 | 0.193805 | 0.173451 | 0 | 0.022703 | 0.233467 | 3,735 | 189 | 79 | 19.761905 | 0.766678 | 0 | 0 | 0.262712 | 0 | 0 | 0.073896 | 0 | 0 | 0 | 0 | 0 | 0.20339 | 1 | 0.220339 | false | 0.025424 | 0.025424 | 0.059322 | 0.449153 | 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 |
b614462b2a627cbf32e9f575717e51f418411fde | 608 | py | Python | mail/mail.test.py | dgjungleP/kjyw | 467915a05c4f054062c341b9f2825a2c43b35c03 | [
"MIT"
] | 1,419 | 2016-05-26T00:53:32.000Z | 2022-03-31T21:37:06.000Z | mail/mail.test.py | dgjungleP/kjyw | 467915a05c4f054062c341b9f2825a2c43b35c03 | [
"MIT"
] | 3 | 2017-02-14T09:21:42.000Z | 2021-06-16T08:47:56.000Z | mail/mail.test.py | dgjungleP/kjyw | 467915a05c4f054062c341b9f2825a2c43b35c03 | [
"MIT"
] | 713 | 2016-06-03T10:02:18.000Z | 2022-03-31T08:47:28.000Z | #!/usr/bin/env python
#coding:utf-8
from email.mime.text import MIMEText
from email.header import Header
import smtplib
sender='xxxxx@qq.com'
sender_pass='xxxxxxxxxxxxxx'
host='smtp.qq.com'
recivers=['xxxxxxxx@xxx.com']
def mail():
message=MIMEText('python 邮件发送111','plain','utf-8')
message['From']='{}'.format(sender... | 20.965517 | 55 | 0.723684 | 84 | 608 | 5.190476 | 0.607143 | 0.018349 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025455 | 0.095395 | 608 | 28 | 56 | 21.714286 | 0.767273 | 0.072368 | 0 | 0 | 0 | 0 | 0.197861 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0.095238 | 0.142857 | 0 | 0.190476 | 0.095238 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
37350476fd1d1ae45c6a04af571a3af65e2ef661 | 631 | py | Python | video/migrations/0002_auto_20190705_0808.py | AdventistChurchFinland/hopechannel-wagtail | b5b06e0696a929d5d2e29a368002d27f54a8ff75 | [
"MIT"
] | null | null | null | video/migrations/0002_auto_20190705_0808.py | AdventistChurchFinland/hopechannel-wagtail | b5b06e0696a929d5d2e29a368002d27f54a8ff75 | [
"MIT"
] | 9 | 2020-06-05T23:26:12.000Z | 2021-06-17T20:23:14.000Z | video/migrations/0002_auto_20190705_0808.py | AdventistChurchFinland/hopechannel-wagtail | b5b06e0696a929d5d2e29a368002d27f54a8ff75 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.3 on 2019-07-05 08:08
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('video', '0001_initial'),
]
operations = [
migrations.AlterModelOptions(
name='videotype',
... | 26.291667 | 133 | 0.616482 | 68 | 631 | 5.602941 | 0.602941 | 0.062992 | 0.073491 | 0.115486 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040512 | 0.256735 | 631 | 23 | 134 | 27.434783 | 0.771855 | 0.071315 | 0 | 0.117647 | 1 | 0 | 0.148973 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.117647 | 0 | 0.294118 | 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 |
373fc6a46681c0185948d7219fd4ce20e547707c | 497 | py | Python | app/deployments/migrations/0009_platform_geom.py | gulfofmaine/buoy_barn | f04047fe17a45dbb58a3aac7703edd16616a6dfd | [
"MIT"
] | 1 | 2021-08-06T19:26:06.000Z | 2021-08-06T19:26:06.000Z | app/deployments/migrations/0009_platform_geom.py | gulfofmaine/buoy_barn | f04047fe17a45dbb58a3aac7703edd16616a6dfd | [
"MIT"
] | 152 | 2019-09-20T11:56:58.000Z | 2022-03-25T10:01:12.000Z | app/deployments/migrations/0009_platform_geom.py | gulfofmaine/buoy_barn | f04047fe17a45dbb58a3aac7703edd16616a6dfd | [
"MIT"
] | null | null | null | # Generated by Django 2.1.2 on 2018-12-11 21:08
import django.contrib.gis.db.models.fields
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('deployments', '0008_auto_20181211_1656'),
]
operations = [
migrations.AddField(
model_name='p... | 24.85 | 124 | 0.645875 | 59 | 497 | 5.355932 | 0.711864 | 0.082278 | 0.101266 | 0.113924 | 0.189873 | 0.189873 | 0 | 0 | 0 | 0 | 0 | 0.091623 | 0.231388 | 497 | 19 | 125 | 26.157895 | 0.735602 | 0.090543 | 0 | 0 | 1 | 0 | 0.12 | 0.051111 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
374f55c7814c43d98b1a4269df803668e0d8ed39 | 404 | py | Python | lib/fastlane/plugin/xcconfig_actions/helper/scripts/parse.py | Sifiso36NiCHOLAS/fastlane-plugin-xcconfig_actions | c4c5d3b34bb070a870da91eb5c33083923435151 | [
"MIT"
] | 15 | 2019-02-22T01:29:14.000Z | 2021-09-10T01:15:22.000Z | lib/fastlane/plugin/xcconfig_actions/helper/scripts/parse.py | Sifiso36NiCHOLAS/fastlane-plugin-xcconfig_actions | c4c5d3b34bb070a870da91eb5c33083923435151 | [
"MIT"
] | 2 | 2019-07-23T01:36:00.000Z | 2019-07-23T01:37:38.000Z | lib/fastlane/plugin/xcconfig_actions/helper/scripts/parse.py | Sifiso36NiCHOLAS/fastlane-plugin-xcconfig_actions | c4c5d3b34bb070a870da91eb5c33083923435151 | [
"MIT"
] | 2 | 2021-01-25T05:07:20.000Z | 2021-03-08T02:24:36.000Z | from bs4 import BeautifulSoup
import re
soup = BeautifulSoup(open("page.html"), "html.parser")
entries = soup.find_all("div", id=re.compile("dev.*"))
title_re = re.compile(".*\((.*)\)")
settings = []
for e in entries:
text = e.find("h2", class_="Name").text
m = title_re.match(text)
if m == None:
... | 21.263158 | 54 | 0.626238 | 57 | 404 | 4.368421 | 0.614035 | 0.072289 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009146 | 0.188119 | 404 | 18 | 55 | 22.444444 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0.108911 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.142857 | null | null | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
37552744d8e9652e02f1f77ca633dcd27815fbb0 | 1,148 | py | Python | library_management/config/library_management.py | pkstimepass/Library-Management | e751c43ccb499bf81ec74e5593b6c7e208127273 | [
"MIT"
] | null | null | null | library_management/config/library_management.py | pkstimepass/Library-Management | e751c43ccb499bf81ec74e5593b6c7e208127273 | [
"MIT"
] | 9 | 2021-03-19T15:44:38.000Z | 2022-03-12T00:52:14.000Z | library_management/config/library_management.py | pkstimepass/Library-Management | e751c43ccb499bf81ec74e5593b6c7e208127273 | [
"MIT"
] | null | null | null | from __future__ import unicode_literals
from frappe import _
def get_data():
return [
{
"label":_("Library"),
"icon": "octicon octicon-briefcase",
"items": [
{
"type": "doctype",
"name": "Article",
"label": _("Article"),
... | 31.027027 | 112 | 0.457317 | 85 | 1,148 | 5.988235 | 0.541176 | 0.086444 | 0.117878 | 0.129666 | 0.125737 | 0.125737 | 0 | 0 | 0 | 0 | 0 | 0 | 0.409408 | 1,148 | 36 | 113 | 31.888889 | 0.750737 | 0 | 0 | 0.114286 | 0 | 0 | 0.423345 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028571 | true | 0 | 0.057143 | 0.028571 | 0.114286 | 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 |
375d53a0ec7d2340e3ac21436ab3d6fc031b6d7e | 1,929 | py | Python | minecraft/networking/packets/serverbound/play/client_settings_packet.py | Skelmis/PyMcBot | b74b4f344bbcc711974f2551f75da3ddb8874e6f | [
"Apache-2.0"
] | 2 | 2020-02-09T08:55:33.000Z | 2021-03-31T20:53:11.000Z | minecraft/networking/packets/serverbound/play/client_settings_packet.py | Skelmis/PyMcBot | b74b4f344bbcc711974f2551f75da3ddb8874e6f | [
"Apache-2.0"
] | 2 | 2020-08-20T14:32:49.000Z | 2021-02-07T03:28:45.000Z | minecraft/networking/packets/serverbound/play/client_settings_packet.py | Skelmis/PyMcBot | b74b4f344bbcc711974f2551f75da3ddb8874e6f | [
"Apache-2.0"
] | 3 | 2020-10-27T14:27:38.000Z | 2020-12-08T15:11:54.000Z | from minecraft.networking.packets import Packet
from minecraft.networking.types import (
String,
Byte,
VarInt,
Boolean,
UnsignedByte,
Enum,
BitFieldEnum,
AbsoluteHand,
)
class ClientSettingsPacket(Packet):
@staticmethod
def get_id(context):
return (
0x05
... | 26.424658 | 74 | 0.579057 | 201 | 1,929 | 5.38806 | 0.497512 | 0.066482 | 0.125577 | 0.162512 | 0.21422 | 0.140351 | 0.088643 | 0 | 0 | 0 | 0 | 0.056215 | 0.345257 | 1,929 | 72 | 75 | 26.791667 | 0.801267 | 0.090202 | 0 | 0.048387 | 0 | 0 | 0.069143 | 0 | 0 | 0 | 0.036571 | 0 | 0 | 1 | 0.016129 | false | 0 | 0.032258 | 0.016129 | 0.177419 | 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 |
375fe96928fb4b5e369927685271aecb2f3ad149 | 8,287 | py | Python | openstack/kms/v1/key.py | IamFive/sdk-python | 223b04f90477f7de0f00b3e652d8672ba73271c8 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | openstack/kms/v1/key.py | IamFive/sdk-python | 223b04f90477f7de0f00b3e652d8672ba73271c8 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | openstack/kms/v1/key.py | IamFive/sdk-python | 223b04f90477f7de0f00b3e652d8672ba73271c8 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under t... | 31.996139 | 75 | 0.601907 | 950 | 8,287 | 5.114737 | 0.198947 | 0.079029 | 0.031694 | 0.047541 | 0.414077 | 0.373739 | 0.331138 | 0.275777 | 0.22803 | 0.181313 | 0 | 0.0017 | 0.290093 | 8,287 | 258 | 76 | 32.120155 | 0.824239 | 0.177628 | 0 | 0.376623 | 0 | 0 | 0.1272 | 0.011241 | 0 | 0 | 0 | 0 | 0 | 1 | 0.097403 | false | 0 | 0.019481 | 0.071429 | 0.506494 | 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 |
376339fbbed47cfb0b3b622c80e86ed6fa7ed55b | 1,051 | py | Python | sdk/keyvault/azure-keyvault-keys/tests/_keys_test_case.py | kashifkhan/azure-sdk-for-python | 9c28b76e89b0855e41bd12d5b4a59b51acd47eec | [
"MIT"
] | null | null | null | sdk/keyvault/azure-keyvault-keys/tests/_keys_test_case.py | kashifkhan/azure-sdk-for-python | 9c28b76e89b0855e41bd12d5b4a59b51acd47eec | [
"MIT"
] | null | null | null | sdk/keyvault/azure-keyvault-keys/tests/_keys_test_case.py | kashifkhan/azure-sdk-for-python | 9c28b76e89b0855e41bd12d5b4a59b51acd47eec | [
"MIT"
] | null | null | null | import os
import pytest
from devtools_testutils import AzureRecordedTestCase
class KeysTestCase(AzureRecordedTestCase):
def _get_attestation_uri(self):
playback_uri = "https://fakeattestation.azurewebsites.net"
if self.is_live:
real_uri = os.environ.get("AZURE_KEYVAULT_ATTESTATION_URL... | 38.925926 | 111 | 0.702188 | 115 | 1,051 | 6.182609 | 0.417391 | 0.049226 | 0.067511 | 0.075949 | 0.270042 | 0.194093 | 0.194093 | 0 | 0 | 0 | 0 | 0 | 0.223597 | 1,051 | 26 | 112 | 40.423077 | 0.871324 | 0 | 0 | 0 | 0 | 0 | 0.127498 | 0.057088 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.238095 | 0 | 0.52381 | 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 |
376bc7a4f7b334355a7cb7a86e7b94a23206268d | 15,949 | py | Python | shop/views.py | log-Z/django_shop | 5c68dcd9a583bda3244edccdadfca74fd841c7ee | [
"MIT"
] | 4 | 2019-08-21T06:05:03.000Z | 2021-01-26T04:21:19.000Z | shop/views.py | log-Z/django_shop | 5c68dcd9a583bda3244edccdadfca74fd841c7ee | [
"MIT"
] | null | null | null | shop/views.py | log-Z/django_shop | 5c68dcd9a583bda3244edccdadfca74fd841c7ee | [
"MIT"
] | 2 | 2021-01-26T04:21:22.000Z | 2021-02-22T07:51:39.000Z | from django.http import HttpRequest
from django.views import generic
from django.shortcuts import render, reverse, get_object_or_404, HttpResponseRedirect
from django.db.utils import IntegrityError
from .models import User, UserType, Goods
from .forms import (RegisterFEForm, RegisterBEForm, LoginFEForm, LoginBEForm, C... | 31.898 | 116 | 0.621669 | 1,718 | 15,949 | 5.579162 | 0.168801 | 0.037872 | 0.046114 | 0.041628 | 0.45999 | 0.414502 | 0.338758 | 0.281481 | 0.250183 | 0.208555 | 0 | 0.005909 | 0.267854 | 15,949 | 499 | 117 | 31.961924 | 0.814935 | 0.072168 | 0 | 0.37415 | 0 | 0 | 0.109287 | 0.018547 | 0 | 0 | 0 | 0.002004 | 0 | 1 | 0.119048 | false | 0.085034 | 0.027211 | 0.034014 | 0.391156 | 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 |
376e19ebc1589ff77a8fc478cb226ea8ba133c58 | 2,922 | py | Python | Configuration/PyReleaseValidation/python/relval_machine.py | pasmuss/cmssw | 566f40c323beef46134485a45ea53349f59ae534 | [
"Apache-2.0"
] | null | null | null | Configuration/PyReleaseValidation/python/relval_machine.py | pasmuss/cmssw | 566f40c323beef46134485a45ea53349f59ae534 | [
"Apache-2.0"
] | null | null | null | Configuration/PyReleaseValidation/python/relval_machine.py | pasmuss/cmssw | 566f40c323beef46134485a45ea53349f59ae534 | [
"Apache-2.0"
] | null | null | null | from Configuration.PyReleaseValidation.relval_steps import Matrix, InputInfo, Steps
import os
import json
import collections
workflows = Matrix()
steps = Steps()
def get_json_files():
cwd = os.path.join(os.getcwd(), "json_data")
if not os.path.exists(cwd):
return []
json_files = []
for f i... | 34.785714 | 104 | 0.600616 | 354 | 2,922 | 4.782486 | 0.330508 | 0.033077 | 0.030715 | 0.044891 | 0.054932 | 0.037803 | 0 | 0 | 0 | 0 | 0 | 0.006816 | 0.297057 | 2,922 | 83 | 105 | 35.204819 | 0.817429 | 0.040726 | 0 | 0.04918 | 0 | 0 | 0.062255 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.065574 | null | null | 0.016393 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
37744040390dced1c5df204c66d947e6161d822b | 7,666 | py | Python | project/Shici/Analyzer.py | zhengbomo/python_practice | 1bc5c4ff426f806639bbc01249e66747271ec398 | [
"MIT"
] | 2 | 2016-10-03T10:20:02.000Z | 2018-03-20T00:38:53.000Z | project/Shici/Analyzer.py | zhengbomo/python_practice | 1bc5c4ff426f806639bbc01249e66747271ec398 | [
"MIT"
] | 2 | 2019-10-08T07:13:44.000Z | 2019-10-08T07:13:46.000Z | project/Shici/Analyzer.py | zhengbomo/python_practice | 1bc5c4ff426f806639bbc01249e66747271ec398 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding:utf-8 -*-
import os
from bs4 import BeautifulSoup
class Analyzer(object):
def __init__(self):
pass
@staticmethod
def get_page_count(html):
soup = BeautifulSoup(html, 'html.parser')
# <span style="color:#65645F;">共75661篇</span>
... | 34.071111 | 114 | 0.499739 | 842 | 7,666 | 4.418052 | 0.192399 | 0.086559 | 0.045161 | 0.047043 | 0.49086 | 0.466935 | 0.415054 | 0.362366 | 0.332527 | 0.332527 | 0 | 0.020855 | 0.361988 | 7,666 | 224 | 115 | 34.223214 | 0.739726 | 0.034699 | 0 | 0.471698 | 0 | 0.006289 | 0.121682 | 0.007963 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.025157 | 0.012579 | null | null | 0.012579 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
378664d0639f1190d52a650c3361c0ffe40a077a | 1,029 | py | Python | tests/unit/test_param_initializer.py | olavolav/textplot | f665a0d8cf1822b46db7c3ffe1766888ff1de3bf | [
"MIT"
] | 156 | 2020-08-17T19:05:52.000Z | 2022-03-29T13:40:42.000Z | tests/unit/test_param_initializer.py | olavolav/textplot | f665a0d8cf1822b46db7c3ffe1766888ff1de3bf | [
"MIT"
] | 11 | 2020-08-17T12:42:52.000Z | 2021-12-12T09:53:02.000Z | tests/unit/test_param_initializer.py | olavolav/textplot | f665a0d8cf1822b46db7c3ffe1766888ff1de3bf | [
"MIT"
] | 5 | 2020-09-12T03:12:50.000Z | 2022-02-17T00:12:48.000Z | import pytest
import numpy as np # type: ignore
from uniplot.param_initializer import validate_and_transform_options
from uniplot.multi_series import MultiSeries
def test_passing_simple_list():
series = MultiSeries(ys=[1, 2, 3])
options = validate_and_transform_options(series=series)
assert options.inte... | 32.15625 | 83 | 0.727891 | 134 | 1,029 | 5.320896 | 0.320896 | 0.077139 | 0.140252 | 0.189341 | 0.612903 | 0.57223 | 0.57223 | 0.57223 | 0.57223 | 0.392707 | 0 | 0.041379 | 0.154519 | 1,029 | 31 | 84 | 33.193548 | 0.778161 | 0.011662 | 0 | 0.181818 | 0 | 0 | 0.014778 | 0 | 0 | 0 | 0 | 0 | 0.136364 | 1 | 0.181818 | false | 0.045455 | 0.181818 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
379060b8d18463c11ec809578384596203b2dae7 | 2,381 | py | Python | sprout/core/auth.py | tjduigna/sprout | d8762ce7e6f04bb082b8ca1e65f73d8900338d9d | [
"Apache-2.0"
] | null | null | null | sprout/core/auth.py | tjduigna/sprout | d8762ce7e6f04bb082b8ca1e65f73d8900338d9d | [
"Apache-2.0"
] | null | null | null | sprout/core/auth.py | tjduigna/sprout | d8762ce7e6f04bb082b8ca1e65f73d8900338d9d | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright 2019, Sprout Development Team
# Distributed under the terms of the Apache License 2.0
import hashlib
import secrets
import string
import base64
import hmac
_allowed = (string.digits +
string.ascii_lowercase +
string.ascii_uppercase)
def get_random_str():
... | 29.7625 | 66 | 0.613608 | 280 | 2,381 | 5.1 | 0.342857 | 0.039216 | 0.046218 | 0.056723 | 0.142857 | 0.142857 | 0.142857 | 0.142857 | 0.142857 | 0.142857 | 0 | 0.023015 | 0.270055 | 2,381 | 79 | 67 | 30.139241 | 0.798619 | 0.048299 | 0 | 0.096774 | 0 | 0 | 0.078284 | 0.01946 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16129 | false | 0.145161 | 0.080645 | 0.032258 | 0.467742 | 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 |
379775ff8a53d3afa965e36ca834f885ac3d5ba5 | 1,919 | py | Python | netconf/ncc/rc-xr.py | reachtoashish/ltrmpl-2203-sandiego | 0a17e6c8431d3529a03b72132231a82cd4b54acc | [
"Apache-2.0"
] | 62 | 2017-01-15T10:29:44.000Z | 2022-03-12T07:25:42.000Z | netconf/ncc/rc-xr.py | reachtoashish/ltrmpl-2203-sandiego | 0a17e6c8431d3529a03b72132231a82cd4b54acc | [
"Apache-2.0"
] | 22 | 2017-01-13T09:54:44.000Z | 2018-07-23T23:41:24.000Z | netconf/ncc/rc-xr.py | reachtoashish/ltrmpl-2203-sandiego | 0a17e6c8431d3529a03b72132231a82cd4b54acc | [
"Apache-2.0"
] | 29 | 2017-01-10T11:15:18.000Z | 2021-05-14T04:23:39.000Z | #!/usr/bin/env python
#
# Copyright (c) 2018 Cisco and/or its affiliates
#
import sys
import requests
from argparse import ArgumentParser
from requests.auth import HTTPBasicAuth
def send_request(protocol, host, port, username, password):
'''Generate a simple RESTCONF request.
'''
# url = "{}://{}:{}/restc... | 36.207547 | 163 | 0.615425 | 211 | 1,919 | 5.511848 | 0.492891 | 0.034394 | 0.058469 | 0.034394 | 0.135856 | 0.096303 | 0.096303 | 0.096303 | 0.096303 | 0.096303 | 0 | 0.009682 | 0.246483 | 1,919 | 52 | 164 | 36.903846 | 0.794606 | 0.147473 | 0 | 0 | 0 | 0 | 0.260308 | 0.078154 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027778 | false | 0.111111 | 0.111111 | 0 | 0.138889 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
379e75e6e2f4c60b9d24105610450fe718d5528e | 7,552 | py | Python | testing/unit-tests/python/python_database_entry_test.py | ncorgan/libpkmn | c683bf8b85b03eef74a132b5cfdce9be0969d523 | [
"MIT"
] | 4 | 2017-06-10T13:21:44.000Z | 2019-10-30T21:20:19.000Z | testing/unit-tests/python/python_database_entry_test.py | PMArkive/libpkmn | c683bf8b85b03eef74a132b5cfdce9be0969d523 | [
"MIT"
] | 12 | 2017-04-05T11:13:34.000Z | 2018-06-03T14:31:03.000Z | testing/unit-tests/python/python_database_entry_test.py | PMArkive/libpkmn | c683bf8b85b03eef74a132b5cfdce9be0969d523 | [
"MIT"
] | 2 | 2019-01-22T21:02:31.000Z | 2019-10-30T21:20:20.000Z | #!/usr/bin/env python
#
# Copyright (c) 2016-2018 Nicholas Corgan (n.corgan@gmail.com)
#
# Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt
# or copy at http://opensource.org/licenses/MIT)
#
import pkmn
import os
import sys
import unittest
class database_entry_test(unittest.TestCase):
... | 39.957672 | 79 | 0.626589 | 863 | 7,552 | 5.339513 | 0.236385 | 0.159505 | 0.121528 | 0.052083 | 0.511936 | 0.49566 | 0.416016 | 0.356988 | 0.327474 | 0.276476 | 0 | 0.017515 | 0.274232 | 7,552 | 188 | 80 | 40.170213 | 0.823207 | 0.061838 | 0 | 0.267123 | 0 | 0 | 0.012726 | 0 | 0 | 0 | 0 | 0 | 0.520548 | 1 | 0.020548 | false | 0 | 0.027397 | 0 | 0.054795 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
37a04284c1db8c872e8f613b6e64d74da4d5e0ad | 4,303 | py | Python | lavalink/nodemanager.py | Massinez/Lavalink.py | df841c1e2a98d1de5e0ed4634e2a925577b603dc | [
"MIT"
] | null | null | null | lavalink/nodemanager.py | Massinez/Lavalink.py | df841c1e2a98d1de5e0ed4634e2a925577b603dc | [
"MIT"
] | null | null | null | lavalink/nodemanager.py | Massinez/Lavalink.py | df841c1e2a98d1de5e0ed4634e2a925577b603dc | [
"MIT"
] | null | null | null | import logging
from .node import Node
from .events import NodeConnectedEvent, NodeDisconnectedEvent
log = logging.getLogger('lavalink')
class NodeManager:
def __init__(self, lavalink, regions: dict):
self._lavalink = lavalink
self.nodes = []
self.regions = regions or {
'asia'... | 30.51773 | 121 | 0.565884 | 515 | 4,303 | 4.609709 | 0.275728 | 0.053075 | 0.012637 | 0.021062 | 0.151222 | 0.119629 | 0.119629 | 0.073294 | 0.073294 | 0.073294 | 0 | 0.000691 | 0.326981 | 4,303 | 140 | 122 | 30.735714 | 0.819061 | 0.159424 | 0 | 0.125 | 0 | 0 | 0.073065 | 0 | 0 | 0 | 0 | 0.014286 | 0 | 1 | 0.125 | false | 0.027778 | 0.041667 | 0 | 0.319444 | 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 |
37ae7793ffa7e66b7097c469d3d38ac44ab471b7 | 804 | py | Python | bin/banner_grab.py | r4mmer/dotfiles | 4036245c9737a1fe8043f9bb919bbc75f45447bb | [
"MIT"
] | null | null | null | bin/banner_grab.py | r4mmer/dotfiles | 4036245c9737a1fe8043f9bb919bbc75f45447bb | [
"MIT"
] | null | null | null | bin/banner_grab.py | r4mmer/dotfiles | 4036245c9737a1fe8043f9bb919bbc75f45447bb | [
"MIT"
] | null | null | null | #!/usr/bin/python
import socket
import sys
import os
#grab the banner
def grab_banner(ip_address,port):
try:
s=socket.socket()
s.connect((ip_address,port))
banner = s.recv(1024)
print ip_address + ':' + banner
except:
return
def checkVulns(banner):
if len(sys.argv) >=... | 25.125 | 48 | 0.553483 | 107 | 804 | 4.018692 | 0.504673 | 0.104651 | 0.090698 | 0.088372 | 0.106977 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051565 | 0.324627 | 804 | 31 | 49 | 25.935484 | 0.740331 | 0.038557 | 0 | 0 | 0 | 0 | 0.07393 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.107143 | null | null | 0.107143 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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.