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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
45d87d158f4d8bd52af8ab9c7424374e121be100 | 133 | py | Python | commander/thirdparty/covertutils/shells/impl/__init__.py | how2how/ToyHome | 4457b1d28e21ed6fd4ab980a0f7fed345c570ae3 | [
"Apache-2.0"
] | 1 | 2020-07-26T01:08:30.000Z | 2020-07-26T01:08:30.000Z | commander/thirdparty/covertutils/shells/impl/__init__.py | how2how/ToyHome | 4457b1d28e21ed6fd4ab980a0f7fed345c570ae3 | [
"Apache-2.0"
] | null | null | null | commander/thirdparty/covertutils/shells/impl/__init__.py | how2how/ToyHome | 4457b1d28e21ed6fd4ab980a0f7fed345c570ae3 | [
"Apache-2.0"
] | null | null | null | from covertutils.shells.impl.extendableshell import ExtendableShell
from covertutils.shells.impl.standardshell import StandardShell
| 33.25 | 67 | 0.887218 | 14 | 133 | 8.428571 | 0.5 | 0.254237 | 0.355932 | 0.423729 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067669 | 133 | 3 | 68 | 44.333333 | 0.951613 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
b311c0797ef660f142ced85a177a4b4435dcc477 | 27,740 | py | Python | 4° Período/Programação de Computadores/Bingo Nerd/trabalho_3_bingo_geek.py | sullyvan15/UVV | 2390cc2881792d036db1d8b098fe366f47cd98c3 | [
"MIT"
] | null | null | null | 4° Período/Programação de Computadores/Bingo Nerd/trabalho_3_bingo_geek.py | sullyvan15/UVV | 2390cc2881792d036db1d8b098fe366f47cd98c3 | [
"MIT"
] | 1 | 2020-10-07T23:33:21.000Z | 2020-10-08T01:15:11.000Z | 4° Período/Programação de Computadores/Bingo Nerd/trabalho_3_bingo_geek.py | sullyvan15/Universidade-Vila-Velha | 2390cc2881792d036db1d8b098fe366f47cd98c3 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Trabalho 3 - Bingo Geek.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1tB6COK3WuIhupeOUJADy-JwPYLe1mvN7
<?xml version="1.0" encoding="UTF-8"?>
<html>
<body>
<header></header>
<CENTER>
<img src=... | 170.184049 | 22,224 | 0.909156 | 1,370 | 27,740 | 18.40438 | 0.641606 | 0.002221 | 0.001904 | 0.00349 | 0.079004 | 0.073689 | 0.061712 | 0.008646 | 0.004997 | 0.004997 | 0 | 0.123915 | 0.036193 | 27,740 | 163 | 22,225 | 170.184049 | 0.819158 | 0.034607 | 0 | 0.111111 | 1 | 0 | 0.242345 | 0 | 0 | 1 | 0 | 0.01227 | 0 | 0 | null | null | 0 | 0.111111 | null | null | 0.194444 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
b355e128f342934d54ecfdeff6d784bbfa05ba72 | 1,908 | py | Python | assignment01b.py | Vivikar/pythoniasa19fall | b9e26b0e01afdfad694246fffa241570a51f4791 | [
"MIT"
] | 2 | 2019-12-26T22:31:13.000Z | 2019-12-27T07:32:35.000Z | assignment01b.py | alina0501/pythoniasa19fall | e9e1b7249cb7488f1185fa46d2d7ea28bc2bc593 | [
"MIT"
] | 1 | 2019-10-27T11:08:32.000Z | 2019-10-27T11:08:32.000Z | assignment01b.py | alina0501/pythoniasa19fall | e9e1b7249cb7488f1185fa46d2d7ea28bc2bc593 | [
"MIT"
] | 25 | 2019-09-10T11:18:03.000Z | 2019-12-10T16:04:19.000Z | """
Assignment 1-B (optional)
=========================
This assignment is similar to 1-A except that the poem is in Russian now.
>>> print(poem())
Вот дом, который построил Джек.
---
А это пшеница,
Которая в тёмном чулане хранится
В доме, который построил Джек.
---
А это весёлая птица-синица,
Которая часто ворует пш... | 24.151899 | 73 | 0.76782 | 279 | 1,908 | 5.222222 | 0.297491 | 0.092656 | 0.117364 | 0.109815 | 0.807824 | 0.792038 | 0.792038 | 0.792038 | 0.792038 | 0.792038 | 0 | 0.001248 | 0.159853 | 1,908 | 78 | 74 | 24.461538 | 0.907673 | 0.944444 | 0 | 0 | 0 | 0 | 0.081633 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | true | 0 | 0.2 | 0.2 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 10 |
b360a45e2ac31a6482eea3211090bf9970ecb205 | 327,678 | py | Python | code/python/QuotesAPIforDigitalPortals/v2/fds/sdk/QuotesAPIforDigitalPortals/api/instrument_api.py | factset/enterprise-sdk | 3fd4d1360756c515c9737a0c9a992c7451d7de7e | [
"Apache-2.0"
] | 6 | 2022-02-07T16:34:18.000Z | 2022-03-30T08:04:57.000Z | code/python/QuotesAPIforDigitalPortals/v2/fds/sdk/QuotesAPIforDigitalPortals/api/instrument_api.py | factset/enterprise-sdk | 3fd4d1360756c515c9737a0c9a992c7451d7de7e | [
"Apache-2.0"
] | 2 | 2022-02-07T05:25:57.000Z | 2022-03-07T14:18:04.000Z | code/python/QuotesAPIforDigitalPortals/v2/fds/sdk/QuotesAPIforDigitalPortals/api/instrument_api.py | factset/enterprise-sdk | 3fd4d1360756c515c9737a0c9a992c7451d7de7e | [
"Apache-2.0"
] | null | null | null | """
Prime Developer Trial
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: v1
Generated by: https://openapi-generator.tech
"""
import re # noqa: F401
import sys # noqa: F401
from multiproce... | 47.277161 | 694 | 0.576066 | 35,789 | 327,678 | 5.131521 | 0.01425 | 0.03058 | 0.022085 | 0.021519 | 0.979505 | 0.975824 | 0.962794 | 0.955873 | 0.945549 | 0.943622 | 0 | 0.013397 | 0.361047 | 327,678 | 6,930 | 695 | 47.283983 | 0.863763 | 0.589911 | 0 | 0.732886 | 1 | 0 | 0.160115 | 0.048714 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037403 | false | 0 | 0.013056 | 0 | 0.087509 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
2fbd81c68184eb8325f3d8946ed726b2c50f07f0 | 56,741 | py | Python | sdk/python/pulumi_azure/apimanagement/api.py | henriktao/pulumi-azure | f1cbcf100b42b916da36d8fe28be3a159abaf022 | [
"ECL-2.0",
"Apache-2.0"
] | 109 | 2018-06-18T00:19:44.000Z | 2022-02-20T05:32:57.000Z | sdk/python/pulumi_azure/apimanagement/api.py | henriktao/pulumi-azure | f1cbcf100b42b916da36d8fe28be3a159abaf022 | [
"ECL-2.0",
"Apache-2.0"
] | 663 | 2018-06-18T21:08:46.000Z | 2022-03-31T20:10:11.000Z | sdk/python/pulumi_azure/apimanagement/api.py | henriktao/pulumi-azure | f1cbcf100b42b916da36d8fe28be3a159abaf022 | [
"ECL-2.0",
"Apache-2.0"
] | 41 | 2018-07-19T22:37:38.000Z | 2022-03-14T10:56:26.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import... | 48.496581 | 201 | 0.671472 | 6,665 | 56,741 | 5.493773 | 0.04036 | 0.08682 | 0.070352 | 0.06489 | 0.95248 | 0.941801 | 0.932161 | 0.924295 | 0.919216 | 0.896193 | 0 | 0.003131 | 0.2289 | 56,741 | 1,169 | 202 | 48.538067 | 0.833749 | 0.327629 | 0 | 0.846154 | 1 | 0 | 0.135009 | 0.048745 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16716 | false | 0.039941 | 0.048817 | 0 | 0.316568 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
2fe9bac42e4ad672e0311e1692e03f68501ea194 | 83 | py | Python | TextFeatureExtractor/TextFeatureExtractor.py | Nexusger/TextFeatureExtractor | 0ef33b3e5844b4f7919814aaba35534d013bf333 | [
"MIT"
] | null | null | null | TextFeatureExtractor/TextFeatureExtractor.py | Nexusger/TextFeatureExtractor | 0ef33b3e5844b4f7919814aaba35534d013bf333 | [
"MIT"
] | null | null | null | TextFeatureExtractor/TextFeatureExtractor.py | Nexusger/TextFeatureExtractor | 0ef33b3e5844b4f7919814aaba35534d013bf333 | [
"MIT"
] | null | null | null | """All feature related stuff"""
import nltk
def _getIndexName():
return 'message' | 16.6 | 31 | 0.73494 | 10 | 83 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.13253 | 83 | 5 | 32 | 16.6 | 0.833333 | 0.301205 | 0 | 0 | 0 | 0 | 0.132075 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | true | 0 | 0.333333 | 0.333333 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 7 |
640ebfefc9d4d6e804ef34efa435ae829ff7fe8d | 5,670 | py | Python | sentiment/public_sentiment.py | nextweek-0/Public-opinion-monitoring | 2b2e1013af3e2563def5a15c76942c942fc85c01 | [
"Apache-2.0"
] | null | null | null | sentiment/public_sentiment.py | nextweek-0/Public-opinion-monitoring | 2b2e1013af3e2563def5a15c76942c942fc85c01 | [
"Apache-2.0"
] | null | null | null | sentiment/public_sentiment.py | nextweek-0/Public-opinion-monitoring | 2b2e1013af3e2563def5a15c76942c942fc85c01 | [
"Apache-2.0"
] | null | null | null | from flask import Flask,render_template,request
import os
import pymysql
app = Flask(__name__)
# 差评与好评数
@app.route("/")
def ps():
connent = pymysql.connect(host='127.0.0.1', port=3306,
user='root', password='594546594546wsl',
db='sentiment', charset='... | 30.815217 | 103 | 0.591534 | 692 | 5,670 | 4.777457 | 0.109827 | 0.049002 | 0.119782 | 0.157895 | 0.862371 | 0.843618 | 0.80974 | 0.796733 | 0.761041 | 0.761041 | 0 | 0.047158 | 0.270723 | 5,670 | 184 | 104 | 30.815217 | 0.752358 | 0.149735 | 0 | 0.568807 | 0 | 0 | 0.342947 | 0.113689 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045872 | false | 0.082569 | 0.027523 | 0 | 0.119266 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 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 | 7 |
641aa1f45dab52100cd357490e9f669b5f34bc1d | 7,822 | py | Python | Documentation/DataFormats/python/RecoTracker_dataformats.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | Documentation/DataFormats/python/RecoTracker_dataformats.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | Documentation/DataFormats/python/RecoTracker_dataformats.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | '''
Created on Jun 26, 2013
@author: Mantas Stankevicius
@contact: mantas.stankevicius@cern.ch
http://cmsdoxy.web.cern.ch/cmsdoxy/dataformats/
@responsible:
'''
json = {
"full": {
"title": "RecoTracker collections (in RECO and AOD)",
"data": [
{
"ins... | 26.696246 | 208 | 0.534007 | 503 | 7,822 | 8.304175 | 0.157058 | 0.068949 | 0.218339 | 0.290879 | 0.955231 | 0.93943 | 0.93943 | 0.93943 | 0.913335 | 0.913335 | 0 | 0.002435 | 0.317438 | 7,822 | 292 | 209 | 26.787671 | 0.779921 | 0.019816 | 0 | 0.574468 | 0 | 0.010638 | 0.577484 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 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 | 8 |
ffb929a1126ccc388aa6afd655869a931150c237 | 1,414 | py | Python | images_api/tests/test_api.py | mgoodnight/py-s3-img-resize | be5ebff37b09b8d6608ff32109f77bd966efd0ab | [
"MIT"
] | null | null | null | images_api/tests/test_api.py | mgoodnight/py-s3-img-resize | be5ebff37b09b8d6608ff32109f77bd966efd0ab | [
"MIT"
] | null | null | null | images_api/tests/test_api.py | mgoodnight/py-s3-img-resize | be5ebff37b09b8d6608ff32109f77bd966efd0ab | [
"MIT"
] | null | null | null | def test_basic(client, flask_file_request_args):
res = client.post('/image', **flask_file_request_args)
assert res.status_code == 201
assert res.get_json()['success'][0] == 'foobar.jpg'
def test_no_file(client):
res = client.post('/image')
assert res.status_code == 400
assert res.get_json()['e... | 33.666667 | 90 | 0.698727 | 205 | 1,414 | 4.565854 | 0.185366 | 0.096154 | 0.136752 | 0.17094 | 0.787393 | 0.784188 | 0.755342 | 0.755342 | 0.755342 | 0.682692 | 0 | 0.039768 | 0.146393 | 1,414 | 41 | 91 | 34.487805 | 0.735708 | 0 | 0 | 0.428571 | 0 | 0 | 0.204385 | 0.071429 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.214286 | false | 0 | 0 | 0 | 0.214286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
4480d50533d7bd328f2754a06241c259a15893ef | 104,916 | py | Python | sensha_uncompiled_version05-06-2019/sprites.py | JonasMht/Sensha-Game-2019 | 4e0733abeebf92901ce490f21758ab08bba1b6e0 | [
"MIT"
] | null | null | null | sensha_uncompiled_version05-06-2019/sprites.py | JonasMht/Sensha-Game-2019 | 4e0733abeebf92901ce490f21758ab08bba1b6e0 | [
"MIT"
] | null | null | null | sensha_uncompiled_version05-06-2019/sprites.py | JonasMht/Sensha-Game-2019 | 4e0733abeebf92901ce490f21758ab08bba1b6e0 | [
"MIT"
] | null | null | null | # sprites.py
"""
Importe le code du fichier <<ai_system.py>>
"""
from ai_system import * #import code from settings
"""
Classe Map
- But : dessiner une carte donnee en fonction du niveau de jeu selectionne
- Fonctionnement : redimensionne la carte en fonction de la resolution de l'ecran. Gere le deplacement de la c... | 47.408947 | 255 | 0.617294 | 14,900 | 104,916 | 4.236376 | 0.040805 | 0.080226 | 0.055448 | 0.058743 | 0.9084 | 0.889151 | 0.863471 | 0.844444 | 0.825006 | 0.819984 | 0 | 0.036182 | 0.238953 | 104,916 | 2,212 | 256 | 47.43038 | 0.754365 | 0.009274 | 0 | 0.855735 | 0 | 0 | 0.062565 | 0.000735 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046446 | false | 0.002111 | 0.000704 | 0 | 0.059113 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
44963bf0fd5b87fe055400a1dbbfa6ed5505d9da | 34,390 | py | Python | pecan/tests/test_hooks.py | rackerlabs/pecan | b046c1e965e2a37758c5092402a92b46217d58b4 | [
"BSD-3-Clause"
] | null | null | null | pecan/tests/test_hooks.py | rackerlabs/pecan | b046c1e965e2a37758c5092402a92b46217d58b4 | [
"BSD-3-Clause"
] | null | null | null | pecan/tests/test_hooks.py | rackerlabs/pecan | b046c1e965e2a37758c5092402a92b46217d58b4 | [
"BSD-3-Clause"
] | null | null | null | from webtest import TestApp
from six import b as b_
from six import u as u_
from six.moves import cStringIO as StringIO
from webob import Response
from pecan import make_app, expose, redirect, abort
from pecan.hooks import (
PecanHook, TransactionHook, HookController, RequestViewerHook
)
from pecan.configuration ... | 28.096405 | 74 | 0.520529 | 3,657 | 34,390 | 4.724638 | 0.059065 | 0.13167 | 0.138442 | 0.04445 | 0.857854 | 0.83534 | 0.814736 | 0.789385 | 0.77891 | 0.745167 | 0 | 0.019803 | 0.364205 | 34,390 | 1,223 | 75 | 28.119379 | 0.770409 | 0.054551 | 0 | 0.790433 | 0 | 0 | 0.093342 | 0.004939 | 0 | 0 | 0.00034 | 0 | 0.386105 | 1 | 0.103645 | false | 0.012528 | 0.01139 | 0.020501 | 0.193622 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
4496c917a1922ff134fcc3e0c87efa7693e18c37 | 37,147 | py | Python | transfer_app/tests.py | qbrc-cnap/cnap | 624683e91a64c3b4934b578c59db850242d2f94c | [
"MIT"
] | 1 | 2021-07-08T14:06:04.000Z | 2021-07-08T14:06:04.000Z | transfer_app/tests.py | qbrc-cnap/cnap | 624683e91a64c3b4934b578c59db850242d2f94c | [
"MIT"
] | 12 | 2020-02-12T00:10:53.000Z | 2021-06-10T21:24:45.000Z | transfer_app/tests.py | qbrc-cnap/cnap | 624683e91a64c3b4934b578c59db850242d2f94c | [
"MIT"
] | null | null | null | import sys
from Crypto.Cipher import DES
import base64
from django.test import TestCase
import unittest.mock as mock
from rest_framework.test import APIClient
from rest_framework import status
from django.urls import reverse
from django.contrib.auth import get_user_model
from django.conf import settings
from django.... | 38.295876 | 135 | 0.655961 | 4,602 | 37,147 | 5.124946 | 0.078444 | 0.034344 | 0.021624 | 0.030528 | 0.826754 | 0.807971 | 0.792453 | 0.76731 | 0.754717 | 0.706339 | 0 | 0.01822 | 0.249441 | 37,147 | 969 | 136 | 38.335397 | 0.827696 | 0.159125 | 0 | 0.707278 | 0 | 0 | 0.062416 | 0.011502 | 0 | 0 | 0 | 0 | 0.123418 | 1 | 0.064873 | false | 0.047468 | 0.022152 | 0 | 0.098101 | 0.003165 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
927cefa71dabae9112ede886dafbbcb0dae5b491 | 11,909 | py | Python | test/test_utils.py | jks-liu/noiseplanet | 907b2bb9a93df48a266ad01c7cad0d8ef2367e78 | [
"Apache-2.0"
] | 27 | 2020-06-13T21:00:53.000Z | 2022-03-29T03:22:06.000Z | test/test_utils.py | voodooed/noiseplanet | fca79ef3b81826a5286d566ebf3bf9340df13201 | [
"Apache-2.0"
] | 12 | 2020-12-24T08:14:00.000Z | 2022-02-06T18:01:51.000Z | test/test_utils.py | voodooed/noiseplanet | fca79ef3b81826a5286d566ebf3bf9340df13201 | [
"Apache-2.0"
] | 9 | 2020-08-28T16:06:54.000Z | 2022-01-26T01:05:02.000Z | # -*- coding: utf-8 -*-
"""
Created on Sun Jan 19 17:33:44 2020
@author: arthurd
"""
import json
import numpy as np
import pandas as pd
from noiseplanet import utils
def test_df_to_geojson():
geojson = {
"type": "FeatureCollection",
"features": [
{
... | 33.832386 | 69 | 0.392644 | 1,041 | 11,909 | 4.292027 | 0.248799 | 0.0188 | 0.025515 | 0.030886 | 0.815801 | 0.785586 | 0.76231 | 0.76231 | 0.76231 | 0.76231 | 0 | 0.365209 | 0.485431 | 11,909 | 351 | 70 | 33.928775 | 0.363903 | 0.120833 | 0 | 0.850174 | 0 | 0 | 0.177859 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.006969 | false | 0 | 0.013937 | 0 | 0.020906 | 0.006969 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
92a6e8d452051b7e9b2287e949fcce30f9e39549 | 2,794 | py | Python | project/pro1-hog/tests/04.py | zltshadow/CS61A-2019-summer | 0f5dd0be5f51927364aec1bc974526837328b695 | [
"MIT"
] | 3 | 2021-11-21T06:09:39.000Z | 2022-03-12T08:05:27.000Z | project/pro1-hog/tests/04.py | zltshadow/CS61A-2019-summer | 0f5dd0be5f51927364aec1bc974526837328b695 | [
"MIT"
] | null | null | null | project/pro1-hog/tests/04.py | zltshadow/CS61A-2019-summer | 0f5dd0be5f51927364aec1bc974526837328b695 | [
"MIT"
] | null | null | null | test = {
'name': 'Question 4',
'points': 2,
'suites': [
{
'cases': [
{
'code': r"""
>>> is_swap(56, 32)
False
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> is_swap(56, 35)
True... | 19.006803 | 30 | 0.27738 | 199 | 2,794 | 3.809045 | 0.226131 | 0.134565 | 0.147757 | 0.23219 | 0.819261 | 0.763852 | 0.763852 | 0.763852 | 0.763852 | 0.360158 | 0 | 0.051958 | 0.552255 | 2,794 | 146 | 31 | 19.136986 | 0.553957 | 0 | 0 | 0.561644 | 0 | 0 | 0.464567 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.006849 | 0 | 0.006849 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
2bd4504e980f5cabebf2c452d7798133da599e0c | 609 | py | Python | permutations/scratch.py | anzharip/algorithm-and-datastructure | b83273330066ace02ecccfe834acdd998d21b5a4 | [
"MIT"
] | null | null | null | permutations/scratch.py | anzharip/algorithm-and-datastructure | b83273330066ace02ecccfe834acdd998d21b5a4 | [
"MIT"
] | null | null | null | permutations/scratch.py | anzharip/algorithm-and-datastructure | b83273330066ace02ecccfe834acdd998d21b5a4 | [
"MIT"
] | null | null | null |
[[1, 2, 3]]
[[1, 2, 3], [1, 3, 2]]
[[1, 2, 3], [1, 3, 2], [2, 1, 3]]
[[1, 2, 3], [1, 3, 2], [2, 1, 3], [2, 3, 1]]
[[1, 2, 3], [1, 3, 2], [2, 1, 3], [2, 3, 1], [3, 2, 1]]
[[1, 2, 3], [1, 3, 2], [2, 1, 3], [2, 3, 1], [3, 2, 1], [3, 1, 2]]
[[1, 2, 3], [1, 3, 2], [2, 1, 3], [2, 3, 1], [3, 2, 1], [3, 1, 2]]
[[1, 2, 3]]
[[... | 38.0625 | 66 | 0.26601 | 162 | 609 | 1 | 0.018519 | 0.37037 | 0.481481 | 0.518519 | 1 | 1 | 1 | 1 | 1 | 0.981481 | 0 | 0.363229 | 0.267652 | 609 | 16 | 67 | 38.0625 | 0 | 0 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 13 |
a64d8f07c08c05e09546187649b2f79ef163c80e | 4,269 | py | Python | excercises/Week_2/E1.py | vpalacio/p4ne | 3bb861ec46be2ede84b4dbb92d19081cce3643eb | [
"MIT"
] | null | null | null | excercises/Week_2/E1.py | vpalacio/p4ne | 3bb861ec46be2ede84b4dbb92d19081cce3643eb | [
"MIT"
] | null | null | null | excercises/Week_2/E1.py | vpalacio/p4ne | 3bb861ec46be2ede84b4dbb92d19081cce3643eb | [
"MIT"
] | null | null | null | (applied_python)[vpalacio@ip-172-30-0-38 ~]$ python
Python 2.7.10 (default, Dec 8 2015, 18:25:23)
[GCC 4.8.3 20140911 (Red Hat 4.8.3-9)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
>>>
>>> import pysnmp
>>> import paramiko
>>>
>>> dir (pysnmp)
['__builtins__', '__doc__', '_... | 29.239726 | 1,703 | 0.699227 | 420 | 4,269 | 6.5 | 0.359524 | 0.029304 | 0.021978 | 0.032234 | 0.906227 | 0.906227 | 0.906227 | 0.906227 | 0.906227 | 0.906227 | 0 | 0.014107 | 0.103303 | 4,269 | 146 | 1,704 | 29.239726 | 0.69906 | 0 | 0 | 0.123288 | 0 | 0 | 0.634895 | 0.113349 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.013699 | 0.020548 | null | null | 0.034247 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
a6a6164e801c2059475e31780a89692085bd6265 | 2,627 | py | Python | api/gsn-api/gsndb/migrations/0002_auto_20190221_2338.py | DonovanDarko/gsn | a6e76fcf7abea4559157de35edff9c184c944898 | [
"ISC"
] | 2 | 2019-01-15T22:46:03.000Z | 2019-04-09T01:34:19.000Z | api/gsn_api/gsndb/migrations/0002_auto_20190221_2338.py | MrYetly/gsn | 1b49a5db31f5e19c0d39ee7f3b8783b55c3bf81d | [
"ISC"
] | null | null | null | api/gsn_api/gsndb/migrations/0002_auto_20190221_2338.py | MrYetly/gsn | 1b49a5db31f5e19c0d39ee7f3b8783b55c3bf81d | [
"ISC"
] | 3 | 2019-03-22T03:25:46.000Z | 2019-03-30T20:59:29.000Z | # Generated by Django 2.1.5 on 2019-02-21 23:38
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('gsndb', '0001_initial'),
migrations.swappable_dependency(settin... | 35.5 | 110 | 0.601827 | 268 | 2,627 | 5.794776 | 0.179104 | 0.066967 | 0.108178 | 0.169994 | 0.782357 | 0.782357 | 0.710882 | 0.710882 | 0.710882 | 0.710882 | 0 | 0.009937 | 0.272174 | 2,627 | 73 | 111 | 35.986301 | 0.802301 | 0.01713 | 0 | 0.742424 | 1 | 0 | 0.117054 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.106061 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
a6db48588583afe7ca76a8524b77b3c0e5059855 | 20,437 | py | Python | Chas_Campbell_Gravitational_Engine/Version_1/unit_tests.py | Jay4C/Python-Macros-For_FreeCAD | 12ce5441a26731377fa43e86ccd2be675740d3a0 | [
"MIT"
] | null | null | null | Chas_Campbell_Gravitational_Engine/Version_1/unit_tests.py | Jay4C/Python-Macros-For_FreeCAD | 12ce5441a26731377fa43e86ccd2be675740d3a0 | [
"MIT"
] | null | null | null | Chas_Campbell_Gravitational_Engine/Version_1/unit_tests.py | Jay4C/Python-Macros-For_FreeCAD | 12ce5441a26731377fa43e86ccd2be675740d3a0 | [
"MIT"
] | null | null | null | import os
import time
import unittest
import pywinauto.mouse
import pywinauto.keyboard
class UnitTestsChasCampbellGravitationalEngineVersion1(unittest.TestCase):
# ok
# https://www.visseriefixations.fr/tiges-filetees/acier-classe-4-6/tige-filetee-acier-4-6-brut-din-975/tige-filetee-m20-acier-4-6-brut-din-975.... | 29.112536 | 190 | 0.692714 | 2,758 | 20,437 | 4.914793 | 0.075417 | 0.048912 | 0.066617 | 0.039248 | 0.91398 | 0.875839 | 0.844633 | 0.816525 | 0.810697 | 0.758392 | 0 | 0.05142 | 0.164506 | 20,437 | 701 | 191 | 29.154066 | 0.74243 | 0.050692 | 0 | 0.680089 | 0 | 0.067114 | 0.783524 | 0.488232 | 0 | 0 | 0 | 0 | 0 | 1 | 0.01566 | false | 0 | 0.026846 | 0 | 0.044743 | 0.03132 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
471588d00821053c66db6a34ef4b8a86d3fe161b | 29 | py | Python | tca9555/__init__.py | leloup314/TCA9555 | bd1b9c21a4baff5af10e0cd67b9889822a7c8709 | [
"MIT"
] | null | null | null | tca9555/__init__.py | leloup314/TCA9555 | bd1b9c21a4baff5af10e0cd67b9889822a7c8709 | [
"MIT"
] | null | null | null | tca9555/__init__.py | leloup314/TCA9555 | bd1b9c21a4baff5af10e0cd67b9889822a7c8709 | [
"MIT"
] | null | null | null | from .tca9555 import TCA9555
| 14.5 | 28 | 0.827586 | 4 | 29 | 6 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.32 | 0.137931 | 29 | 1 | 29 | 29 | 0.64 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
5b39435466bc3690c4a2161bc8e18aea0b710ff5 | 47 | py | Python | examples/phobos/tests/test_std_concurrency.py | kinke/autowrap | 2f042df3f292aa39b1da0b9607fbe3424f56ff4a | [
"BSD-3-Clause"
] | 47 | 2019-07-16T10:38:07.000Z | 2022-03-30T16:34:24.000Z | examples/phobos/tests/test_std_concurrency.py | kinke/autowrap | 2f042df3f292aa39b1da0b9607fbe3424f56ff4a | [
"BSD-3-Clause"
] | 199 | 2019-06-17T23:24:40.000Z | 2021-06-16T16:41:36.000Z | examples/phobos/tests/test_std_concurrency.py | kinke/autowrap | 2f042df3f292aa39b1da0b9607fbe3424f56ff4a | [
"BSD-3-Clause"
] | 7 | 2019-09-13T18:03:49.000Z | 2022-01-17T03:53:00.000Z | def test_import():
import std_concurrency
| 11.75 | 26 | 0.744681 | 6 | 47 | 5.5 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.191489 | 47 | 3 | 27 | 15.666667 | 0.868421 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | true | 0 | 1 | 0 | 1.5 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
752c2fcefb026e700beec906120f096faf02660d | 3,188 | py | Python | rock-paper-scissors.py | dzaimov01/Rock-Paper-Scissors | caa250de26cd51f57393433304b72bf87bd50393 | [
"MIT"
] | null | null | null | rock-paper-scissors.py | dzaimov01/Rock-Paper-Scissors | caa250de26cd51f57393433304b72bf87bd50393 | [
"MIT"
] | null | null | null | rock-paper-scissors.py | dzaimov01/Rock-Paper-Scissors | caa250de26cd51f57393433304b72bf87bd50393 | [
"MIT"
] | null | null | null | import random
print('Enter rock, paper or scissors: ')
user_input = input()
possible_answers = ['rock', 'paper', 'scissors']
computer_answer = possible_answers[random.randint(0, 2)]
computer_score = 0
user_score = 0
games_played = 0
while user_input != 'end':
if user_input == 'rock':
if computer_answer ==... | 38.878049 | 104 | 0.574028 | 361 | 3,188 | 4.861496 | 0.113573 | 0.151567 | 0.079772 | 0.165242 | 0.764103 | 0.750427 | 0.733333 | 0.733333 | 0.708262 | 0.708262 | 0 | 0.017463 | 0.31744 | 3,188 | 82 | 105 | 38.878049 | 0.789063 | 0 | 0 | 0.75641 | 0 | 0 | 0.188774 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.012821 | 0 | 0.012821 | 0.230769 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
75406f1c936beae2e52e73a0138c36197de4f481 | 118 | py | Python | SEMImportScaleCrop_4924010623d611e88ff4448a5b5d70c0/__init__.py | BraunMichael/DragonflyPlugins | 63ccb088ae1f601c8a4a49c7bcf618c6c9aebaa8 | [
"MIT"
] | null | null | null | SEMImportScaleCrop_4924010623d611e88ff4448a5b5d70c0/__init__.py | BraunMichael/DragonflyPlugins | 63ccb088ae1f601c8a4a49c7bcf618c6c9aebaa8 | [
"MIT"
] | null | null | null | SEMImportScaleCrop_4924010623d611e88ff4448a5b5d70c0/__init__.py | BraunMichael/DragonflyPlugins | 63ccb088ae1f601c8a4a49c7bcf618c6c9aebaa8 | [
"MIT"
] | null | null | null | from .SEMImportScaleCrop_4924010623d611e88ff4448a5b5d70c0 import SEMImportScaleCrop_4924010623d611e88ff4448a5b5d70c0
| 59 | 117 | 0.949153 | 6 | 118 | 18.333333 | 0.666667 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.424779 | 0.042373 | 118 | 1 | 118 | 118 | 0.548673 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 9 |
f32dd0bb8220070025bb109f0db1d8568d38f02e | 128 | py | Python | python/testData/completion/heavyStarPropagation/lib/_pkg0/_pkg0_0/_pkg0_0_0/_pkg0_0_0_0/_pkg0_0_0_0_1/_mod0_0_0_0_1_3.py | truthiswill/intellij-community | fff88cfb0dc168eea18ecb745d3e5b93f57b0b95 | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/completion/heavyStarPropagation/lib/_pkg0/_pkg0_0/_pkg0_0_0/_pkg0_0_0_0/_pkg0_0_0_0_1/_mod0_0_0_0_1_3.py | truthiswill/intellij-community | fff88cfb0dc168eea18ecb745d3e5b93f57b0b95 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/completion/heavyStarPropagation/lib/_pkg0/_pkg0_0/_pkg0_0_0/_pkg0_0_0_0/_pkg0_0_0_0_1/_mod0_0_0_0_1_3.py | truthiswill/intellij-community | fff88cfb0dc168eea18ecb745d3e5b93f57b0b95 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | name0_0_0_0_1_3_0 = None
name0_0_0_0_1_3_1 = None
name0_0_0_0_1_3_2 = None
name0_0_0_0_1_3_3 = None
name0_0_0_0_1_3_4 = None | 14.222222 | 24 | 0.820313 | 40 | 128 | 1.875 | 0.175 | 0.266667 | 0.466667 | 0.533333 | 0.88 | 0.88 | 0.746667 | 0 | 0 | 0 | 0 | 0.318182 | 0.140625 | 128 | 9 | 25 | 14.222222 | 0.363636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
f3789dde3c7675fe310db093e1411404026f2a54 | 10,484 | py | Python | layers/gated_gcn_layer.py | karl-zhao/benchmarking-gnns-pyg | 23d2c823f16ead554b22ff31c41d5bd8074b133e | [
"MIT"
] | 17 | 2020-12-03T12:20:04.000Z | 2021-09-15T05:43:03.000Z | layers/gated_gcn_layer.py | karl-zhao/benchmarking-gnns-pyg | 23d2c823f16ead554b22ff31c41d5bd8074b133e | [
"MIT"
] | null | null | null | layers/gated_gcn_layer.py | karl-zhao/benchmarking-gnns-pyg | 23d2c823f16ead554b22ff31c41d5bd8074b133e | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
import torch.nn.functional as F
from torch import Tensor
from torch_geometric.typing import OptTensor
from torch_scatter import scatter
from torch_geometric.nn.conv import MessagePassing
"""
ResGatedGCN: Residual Gated Graph ConvNets
An Experimental Study of Neural Networks f... | 36.402778 | 170 | 0.550839 | 1,406 | 10,484 | 3.872688 | 0.108108 | 0.052893 | 0.061708 | 0.074931 | 0.82865 | 0.805877 | 0.800184 | 0.800184 | 0.797245 | 0.782002 | 0 | 0.006948 | 0.313621 | 10,484 | 287 | 171 | 36.529617 | 0.749722 | 0.126955 | 0 | 0.761658 | 0 | 0 | 0.028956 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103627 | false | 0.010363 | 0.036269 | 0.020725 | 0.243523 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
f3c1df4a08db6c99610aac429eb2c1c3ca7ff115 | 380 | py | Python | tests/formatters/test__format_number.py | LCBRU/lbrc_flask | f5f6c3f3832a9040e941c6398b7f150e567d4762 | [
"MIT"
] | null | null | null | tests/formatters/test__format_number.py | LCBRU/lbrc_flask | f5f6c3f3832a9040e941c6398b7f150e567d4762 | [
"MIT"
] | null | null | null | tests/formatters/test__format_number.py | LCBRU/lbrc_flask | f5f6c3f3832a9040e941c6398b7f150e567d4762 | [
"MIT"
] | null | null | null | from lbrc_flask.formatters import format_number
def test__format_number__Small():
assert format_number(2) == '2'
def test__format_number__LessThanAThousand():
assert format_number(999) == '999'
def test__format_number__AThousand():
assert format_number(1035) == '1,035'
def test__format_number__Milli... | 21.111111 | 52 | 0.757895 | 52 | 380 | 5 | 0.423077 | 0.415385 | 0.2 | 0.292308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.097561 | 0.136842 | 380 | 17 | 53 | 22.352941 | 0.695122 | 0 | 0 | 0 | 0 | 0 | 0.05 | 0 | 0 | 0 | 0 | 0 | 0.444444 | 1 | 0.444444 | true | 0 | 0.111111 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 7 |
343c1ade1510ef15eec688d3512346d2df63fac5 | 3,941 | py | Python | intro/part06-08_recipe_search/src/recipe_search.py | Hannah-Abi/python-pro-21 | 2ce32c4bf118054329d19afdf83c50561be1ada8 | [
"MIT"
] | null | null | null | intro/part06-08_recipe_search/src/recipe_search.py | Hannah-Abi/python-pro-21 | 2ce32c4bf118054329d19afdf83c50561be1ada8 | [
"MIT"
] | null | null | null | intro/part06-08_recipe_search/src/recipe_search.py | Hannah-Abi/python-pro-21 | 2ce32c4bf118054329d19afdf83c50561be1ada8 | [
"MIT"
] | null | null | null | # Write your solution here
def search_by_name(filename: str, word: str):
recipe_list = []
formated_recipe = []
found_recipes = []
with open(filename) as new_file:
for line in new_file:
line = line.replace("\n", "")
recipe_list.append(line)
while True:
... | 36.155963 | 82 | 0.549099 | 446 | 3,941 | 4.571749 | 0.127803 | 0.176557 | 0.070623 | 0.058852 | 0.868563 | 0.854831 | 0.835213 | 0.818539 | 0.818539 | 0.818539 | 0 | 0.010353 | 0.338239 | 3,941 | 108 | 83 | 36.490741 | 0.771472 | 0.077138 | 0 | 0.875 | 0 | 0 | 0.061224 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034091 | false | 0 | 0 | 0 | 0.068182 | 0.011364 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
344d8b64a3e7e9623b502612aa96e0d06e40bbe3 | 125 | py | Python | code/models/__init__.py | haozheng95/XueLangTianchi | 60665f3c00e0b096577a752ed8b28eaadef7210d | [
"MIT"
] | 97 | 2018-07-17T02:22:09.000Z | 2021-11-07T17:16:03.000Z | code/models/__init__.py | haozheng95/XueLangTianchi | 60665f3c00e0b096577a752ed8b28eaadef7210d | [
"MIT"
] | 3 | 2018-07-20T01:54:35.000Z | 2020-05-08T07:35:44.000Z | code/models/__init__.py | haozheng95/XueLangTianchi | 60665f3c00e0b096577a752ed8b28eaadef7210d | [
"MIT"
] | 41 | 2018-07-18T08:21:52.000Z | 2022-02-11T07:08:10.000Z | from .NetWork import VGG16_bo
from .NetWork import VGG19_bo
from .ResNet import ResNet18_bo
from .ResNet import ResNet152_bo
| 25 | 32 | 0.84 | 20 | 125 | 5.05 | 0.45 | 0.178218 | 0.336634 | 0.356436 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.082569 | 0.128 | 125 | 4 | 33 | 31.25 | 0.844037 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
3462ed51b5d90be746a7420454e27a407d3b0cf6 | 38 | py | Python | tripgo_parser/__init__.py | yifchen5/tripgo_parser | a8bb3270a159632c88d977212ee50ba41288fc18 | [
"MIT"
] | null | null | null | tripgo_parser/__init__.py | yifchen5/tripgo_parser | a8bb3270a159632c88d977212ee50ba41288fc18 | [
"MIT"
] | null | null | null | tripgo_parser/__init__.py | yifchen5/tripgo_parser | a8bb3270a159632c88d977212ee50ba41288fc18 | [
"MIT"
] | 1 | 2021-08-03T11:02:34.000Z | 2021-08-03T11:02:34.000Z | from . import parse
from . import get
| 12.666667 | 19 | 0.736842 | 6 | 38 | 4.666667 | 0.666667 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.210526 | 38 | 2 | 20 | 19 | 0.933333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
347a35b2d5ed149df130945354cc06dbd80ed4af | 106 | py | Python | dindin_approval/models/__init__.py | LuoChao-aleo/odooDingDing-1 | c2b8d569a8103b1ad38a487c4ca26e3cd6a42c07 | [
"Apache-2.0"
] | 7 | 2019-05-01T10:10:11.000Z | 2022-02-09T06:10:51.000Z | dindin_approval/models/__init__.py | LuoChao-aleo/odooDingDing-1 | c2b8d569a8103b1ad38a487c4ca26e3cd6a42c07 | [
"Apache-2.0"
] | null | null | null | dindin_approval/models/__init__.py | LuoChao-aleo/odooDingDing-1 | c2b8d569a8103b1ad38a487c4ca26e3cd6a42c07 | [
"Apache-2.0"
] | 6 | 2019-05-03T07:09:47.000Z | 2020-06-24T17:16:56.000Z | # -*- coding: utf-8 -*-
from . import approval_template
from . import approval_control
from . import main | 21.2 | 31 | 0.726415 | 14 | 106 | 5.357143 | 0.642857 | 0.4 | 0.48 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011236 | 0.160377 | 106 | 5 | 32 | 21.2 | 0.831461 | 0.198113 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
cacaaad62babfaa8260329ac6a93c8021a8150a2 | 117 | py | Python | astro_cloud_tests/auth/test_digital_ocean.py | RichardScottOZ/astro-cloud | f45d002566e97007f1bdfa7dce9094ec27c3f912 | [
"MIT"
] | 1 | 2022-02-02T11:03:54.000Z | 2022-02-02T11:03:54.000Z | astro_cloud_tests/auth/test_digital_ocean.py | RichardScottOZ/astro-cloud | f45d002566e97007f1bdfa7dce9094ec27c3f912 | [
"MIT"
] | 2 | 2020-10-13T17:31:09.000Z | 2021-04-04T22:31:03.000Z | astro_cloud_tests/auth/test_digital_ocean.py | RichardScottOZ/astro-cloud | f45d002566e97007f1bdfa7dce9094ec27c3f912 | [
"MIT"
] | 1 | 2022-02-02T11:04:37.000Z | 2022-02-02T11:04:37.000Z | def test__digital_ocean_auth():
import requests
from astro_cloud.auth.digital_ocean import DigitalOceanAuth
| 23.4 | 63 | 0.811966 | 15 | 117 | 5.933333 | 0.733333 | 0.269663 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145299 | 117 | 4 | 64 | 29.25 | 0.89 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | true | 0 | 0.666667 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
1b0d32ac1c8c7bae12caf7b037dea8db99ac8901 | 4,126 | py | Python | OTree_Experiment/EN_Part_2/pages.py | Arkhemis/Personality_VideoGames | f560fdadb07f6a747e555362f5ea625b7f34820d | [
"CC-BY-4.0"
] | null | null | null | OTree_Experiment/EN_Part_2/pages.py | Arkhemis/Personality_VideoGames | f560fdadb07f6a747e555362f5ea625b7f34820d | [
"CC-BY-4.0"
] | null | null | null | OTree_Experiment/EN_Part_2/pages.py | Arkhemis/Personality_VideoGames | f560fdadb07f6a747e555362f5ea625b7f34820d | [
"CC-BY-4.0"
] | null | null | null | from otree.api import Currency as c, currency_range
from ._builtin import Page, WaitPage
from .models import Constants
import os
import subprocess
import sys
import random
from . import models
bff = []
for i in range(1,46):
bff.append(str(i))
ssvs = ["power", "achievement", "hedonism", "stimulation", "selfdirectio... | 49.710843 | 145 | 0.666747 | 647 | 4,126 | 4.066461 | 0.185471 | 0.338274 | 0.439757 | 0.250855 | 0.798176 | 0.793615 | 0.784873 | 0.779171 | 0.779171 | 0.779171 | 0 | 0.054725 | 0.18953 | 4,126 | 82 | 146 | 50.317073 | 0.732057 | 0 | 0 | 0.153846 | 0 | 0 | 0.059462 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.153846 | 0 | 0.423077 | 0.038462 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 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 | 8 |
1b36bc1f81eba85e00737694799c50b698165861 | 143 | py | Python | 19.04.2022/strings/teste.py | N0N4T0/python-codes | ac2b884f86749a8b179ff972cdb316ec4e005b32 | [
"MIT"
] | null | null | null | 19.04.2022/strings/teste.py | N0N4T0/python-codes | ac2b884f86749a8b179ff972cdb316ec4e005b32 | [
"MIT"
] | null | null | null | 19.04.2022/strings/teste.py | N0N4T0/python-codes | ac2b884f86749a8b179ff972cdb316ec4e005b32 | [
"MIT"
] | null | null | null | # empresa = 'Google'
# print(empresa[0])
# print(empresa[:3])
# print(empresa[3:])
# print(empresa[1:3])
print("\"I'm groot\", said Groot")
| 14.3 | 34 | 0.608392 | 21 | 143 | 4.142857 | 0.47619 | 0.551724 | 0.298851 | 0.413793 | 0.436782 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040323 | 0.132867 | 143 | 9 | 35 | 15.888889 | 0.66129 | 0.657343 | 0 | 0 | 0 | 0 | 0.302326 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 7 |
1ba65821d29948e8d65cd7dbf6ae1a525364b748 | 101 | py | Python | 3.py | jackiboi307/isEven---Python | 3a7a4f006282dc16dd33b525c46f260788113a1e | [
"Unlicense"
] | null | null | null | 3.py | jackiboi307/isEven---Python | 3a7a4f006282dc16dd33b525c46f260788113a1e | [
"Unlicense"
] | null | null | null | 3.py | jackiboi307/isEven---Python | 3a7a4f006282dc16dd33b525c46f260788113a1e | [
"Unlicense"
] | null | null | null | def isEven(num):
return len(([""]*abs(num))[:abs(num)//2]) == len(([""]*abs(num))[abs(num)//2:])
| 33.666667 | 83 | 0.49505 | 16 | 101 | 3.125 | 0.4375 | 0.48 | 0.36 | 0.48 | 0.64 | 0.64 | 0 | 0 | 0 | 0 | 0 | 0.021978 | 0.09901 | 101 | 2 | 84 | 50.5 | 0.527473 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0.5 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 7 |
1baadcb2ab6ba4d14164bc125ad29cfd8f0e95ba | 3,229 | py | Python | main.py | fmarco/covid-19_italia_backend | 858c29158d72b2f968fecd35f2c6b97d3ca495e8 | [
"MIT"
] | null | null | null | main.py | fmarco/covid-19_italia_backend | 858c29158d72b2f968fecd35f2c6b97d3ca495e8 | [
"MIT"
] | null | null | null | main.py | fmarco/covid-19_italia_backend | 858c29158d72b2f968fecd35f2c6b97d3ca495e8 | [
"MIT"
] | null | null | null |
from datetime import datetime
from fastapi import FastAPI
import pandas
import numpy
app = FastAPI()
BASE_URL = 'https://raw.githubusercontent.com/pcm-dpc/COVID-19/master/'
DATE_FORMAT = '%Y-%m-%d %H:%M:%S'
@app.get('/national_trend/')
def national_trend(start_at: str = None, end_at: str = None):
if start_at ... | 35.877778 | 103 | 0.659647 | 485 | 3,229 | 4.140206 | 0.136082 | 0.215139 | 0.213645 | 0.188247 | 0.800299 | 0.800299 | 0.800299 | 0.800299 | 0.800299 | 0.800299 | 0 | 0.013699 | 0.208733 | 3,229 | 89 | 104 | 36.280899 | 0.772211 | 0 | 0 | 0.658228 | 0 | 0 | 0.169765 | 0.074659 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037975 | false | 0 | 0.050633 | 0 | 0.126582 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 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 | 9 |
1bc1a098de7dd8bf26d7f300625e8bdefbd6c2f8 | 94 | py | Python | modules/rabbitmq/__init__.py | Infosecurity-LLC/callback_translator | a9e598756460c78e40aa63089fe87fee68dfb623 | [
"Apache-2.0"
] | 1 | 2022-02-04T10:00:20.000Z | 2022-02-04T10:00:20.000Z | modules/rabbitmq/__init__.py | Infosecurity-LLC/callback_translator | a9e598756460c78e40aa63089fe87fee68dfb623 | [
"Apache-2.0"
] | null | null | null | modules/rabbitmq/__init__.py | Infosecurity-LLC/callback_translator | a9e598756460c78e40aa63089fe87fee68dfb623 | [
"Apache-2.0"
] | 1 | 2022-02-04T10:00:22.000Z | 2022-02-04T10:00:22.000Z | from modules.rabbitmq.consumer import Consumer
from modules.rabbitmq.producer import Producer
| 31.333333 | 46 | 0.87234 | 12 | 94 | 6.833333 | 0.5 | 0.268293 | 0.463415 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085106 | 94 | 2 | 47 | 47 | 0.953488 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
945411903c078d16e18a3dd7f75485f2119effca | 14,454 | py | Python | modeling/wsdan/attention.py | zyxwvu321/Classifer_SSL_Longtail | e6c09414c49e695b0f4221a3c6245ae3929a1788 | [
"MIT"
] | null | null | null | modeling/wsdan/attention.py | zyxwvu321/Classifer_SSL_Longtail | e6c09414c49e695b0f4221a3c6245ae3929a1788 | [
"MIT"
] | null | null | null | modeling/wsdan/attention.py | zyxwvu321/Classifer_SSL_Longtail | e6c09414c49e695b0f4221a3c6245ae3929a1788 | [
"MIT"
] | null | null | null | ############################################################
# File: attention.py #
# Created: 2019-11-05 19:19:08 #
# Author : wvinzh #
# Email : wvinzh@qq.com #
# -----------... | 43.8 | 123 | 0.631797 | 1,994 | 14,454 | 4.362086 | 0.082247 | 0.063233 | 0.027593 | 0.03863 | 0.804898 | 0.79593 | 0.792711 | 0.782594 | 0.77926 | 0.7788 | 0 | 0.028851 | 0.215857 | 14,454 | 329 | 124 | 43.933131 | 0.738574 | 0.338799 | 0 | 0.747191 | 0 | 0 | 0.008615 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033708 | false | 0 | 0.039326 | 0 | 0.106742 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
ca0a441907fdccc1138f49fb1ac314d76ccf9ced | 250,838 | py | Python | streaming-api-client/proto/monitoring_pb2.py | karthikeyan-dhandapani/central-examples-only | 8112a14113b31ae790698f1f8d66690d3327ca7f | [
"MIT"
] | null | null | null | streaming-api-client/proto/monitoring_pb2.py | karthikeyan-dhandapani/central-examples-only | 8112a14113b31ae790698f1f8d66690d3327ca7f | [
"MIT"
] | null | null | null | streaming-api-client/proto/monitoring_pb2.py | karthikeyan-dhandapani/central-examples-only | 8112a14113b31ae790698f1f8d66690d3327ca7f | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: monitoring.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf.internal import enum_type_wrapper
from google.protobuf import descriptor as _descriptor
from google.pr... | 44.896725 | 28,170 | 0.736954 | 33,181 | 250,838 | 5.290196 | 0.034749 | 0.06613 | 0.080634 | 0.051762 | 0.772506 | 0.732895 | 0.719536 | 0.702217 | 0.671978 | 0.662635 | 0 | 0.052776 | 0.137196 | 250,838 | 5,586 | 28,171 | 44.904762 | 0.758289 | 0.009129 | 0 | 0.713648 | 1 | 0.005392 | 0.148016 | 0.093928 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.001116 | 0 | 0.001116 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
ca11f827143d0cd75eee06d96906e78a71f6a997 | 1,994 | py | Python | 2d/uniaxial_traction/test_benchmark.py | cgeudeker/mpm-benchmarks | 072d39cda3fb4f8ddde8879bc98ec9cf7bc4383b | [
"CC-BY-4.0"
] | 5 | 2019-05-28T16:41:03.000Z | 2021-08-04T21:34:42.000Z | 2d/uniaxial_traction/test_benchmark.py | cgeudeker/mpm-benchmarks | 072d39cda3fb4f8ddde8879bc98ec9cf7bc4383b | [
"CC-BY-4.0"
] | 18 | 2018-11-16T06:35:24.000Z | 2022-03-16T01:49:37.000Z | 2d/uniaxial_traction/test_benchmark.py | cgeudeker/mpm-benchmarks | 072d39cda3fb4f8ddde8879bc98ec9cf7bc4383b | [
"CC-BY-4.0"
] | 9 | 2018-11-15T08:57:51.000Z | 2022-03-23T19:14:47.000Z | import os
import pathlib
import pandas as pd
# Get current path
os.chdir(pathlib.Path(__file__).parent.absolute())
# Nodal forces results
## Step 300
df = pd.read_hdf('results/uniaxial-nodal-forces-2d/particles0300.h5', 'table')
assert round(df['stress_xx'].min() - 0.5925210678182377, 8) == 0.0
assert round(df['stress... | 40.693878 | 83 | 0.705617 | 312 | 1,994 | 4.419872 | 0.189103 | 0.127629 | 0.150834 | 0.22045 | 0.728064 | 0.728064 | 0.728064 | 0.728064 | 0.728064 | 0.588832 | 0 | 0.217706 | 0.099298 | 1,994 | 48 | 84 | 41.541667 | 0.550111 | 0.067703 | 0 | 0 | 0 | 0 | 0.324089 | 0.224035 | 0 | 0 | 0 | 0 | 0.571429 | 1 | 0 | false | 0 | 0.107143 | 0 | 0.107143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 1 | 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 | 7 |
0471a02e8681f1aa6b26b9877785adf006ffafb7 | 24,568 | py | Python | train_network.py | HaoZhang1018/STDFusionNet | e4d6dbb2d995032ed93880e90262834e1edaa65f | [
"MIT"
] | 12 | 2021-03-27T05:47:40.000Z | 2022-03-06T14:38:20.000Z | train_network.py | Melon-Xu/STDFusionNet-1 | 8bc8ba4f94d8caded932655c6dbd0ba9e4f590d5 | [
"MIT"
] | 1 | 2021-05-21T07:01:35.000Z | 2021-05-25T14:44:55.000Z | train_network.py | Melon-Xu/STDFusionNet-1 | 8bc8ba4f94d8caded932655c6dbd0ba9e4f590d5 | [
"MIT"
] | 7 | 2021-04-01T07:25:44.000Z | 2022-03-28T13:28:50.000Z | import tensorflow as tf
from utils import weights_spectral_norm
class STDFusionNet():
def vi_feature_extraction_network(self, vi_image):
with tf.compat.v1.variable_scope('vi_extraction_network'):
with tf.compat.v1.variable_scope('conv1'):
weights = tf.compat.v1.get_vari... | 74.902439 | 125 | 0.528452 | 2,760 | 24,568 | 4.533696 | 0.030435 | 0.023655 | 0.093503 | 0.074802 | 0.954288 | 0.954288 | 0.954288 | 0.940622 | 0.940622 | 0.940622 | 0 | 0.061887 | 0.352165 | 24,568 | 327 | 126 | 75.131498 | 0.724303 | 0.075057 | 0 | 0.87218 | 0 | 0 | 0.028408 | 0.002863 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015038 | false | 0 | 0.007519 | 0 | 0.041353 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
04837dc57de649aebcde4b5eb63fa17c98297ca2 | 60,023 | py | Python | src/rimuc/resources.py | srackham/rimu-py | 3da67cb362b6d34fd363e9f4ce5e0afb019baa4c | [
"MIT"
] | null | null | null | src/rimuc/resources.py | srackham/rimu-py | 3da67cb362b6d34fd363e9f4ce5e0afb019baa4c | [
"MIT"
] | 4 | 2020-03-24T17:59:43.000Z | 2021-06-02T00:48:53.000Z | src/rimuc/resources.py | srackham/rimu-py | 3da67cb362b6d34fd363e9f4ce5e0afb019baa4c | [
"MIT"
] | null | null | null | # Generated automatically from resource files. Do not edit.
from typing import Dict
resources: Dict[str, str] = {
'sequel-footer.rmu': r'''/*
Used by rimuc `--layout sequel` option.
*/
// Close main and article divs.
</div>
</div>
{--highlightjs=}.+skip
{--highlightjs-scripts}
{--mathjax!}{--mathjax-scripts}
... | 22.970915 | 152 | 0.606418 | 7,294 | 60,023 | 4.937757 | 0.090622 | 0.011328 | 0.013327 | 0.004665 | 0.767714 | 0.732091 | 0.707824 | 0.691165 | 0.679948 | 0.66662 | 0 | 0.027589 | 0.208937 | 60,023 | 2,612 | 153 | 22.979709 | 0.73093 | 0.00095 | 0 | 0.704231 | 1 | 0.013426 | 0.995931 | 0.131129 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.001221 | 0.00895 | 0 | 0.009764 | 0.009764 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
048c5222cb8c4366ff88bcd2213e7ce7d8ae54c9 | 107 | py | Python | orchestrate_ai/mirex_dataset/trainer.py | amrittb/orchestrate-a | c22e9a8b12f4636569d378b4dece58a4ef1a24cd | [
"MIT"
] | 18 | 2017-02-21T03:06:25.000Z | 2021-11-23T16:32:57.000Z | orchestrate_ai/mirex_dataset/trainer.py | justmeshishir/orchestrate-ai | c22e9a8b12f4636569d378b4dece58a4ef1a24cd | [
"MIT"
] | 6 | 2020-01-28T21:42:26.000Z | 2022-02-09T23:27:11.000Z | orchestrate_ai/mirex_dataset/trainer.py | justmeshishir/orchestrate-ai | c22e9a8b12f4636569d378b4dece58a4ef1a24cd | [
"MIT"
] | 7 | 2017-02-22T12:31:16.000Z | 2021-04-10T20:07:36.000Z | import computation_graph
def train_songs(force_reload=False):
computation_graph.train_songs(force_reload) | 26.75 | 44 | 0.878505 | 15 | 107 | 5.866667 | 0.6 | 0.363636 | 0.340909 | 0.477273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056075 | 107 | 4 | 44 | 26.75 | 0.871287 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
b6d23093b3bbe56c852429bb22eb9a0ffb961d89 | 109 | py | Python | comch/simplicial/__init__.py | smimic/comch | cbc3249a2599787f2cb514ac61677778a9046063 | [
"MIT"
] | 4 | 2020-12-31T21:58:58.000Z | 2021-02-27T03:46:46.000Z | comch/simplicial/__init__.py | smimic/comch | cbc3249a2599787f2cb514ac61677778a9046063 | [
"MIT"
] | null | null | null | comch/simplicial/__init__.py | smimic/comch | cbc3249a2599787f2cb514ac61677778a9046063 | [
"MIT"
] | 2 | 2020-12-31T21:59:09.000Z | 2021-01-07T22:22:58.000Z | from .simplicial import Simplex
from .simplicial import SimplicialElement
from .simplicial import Simplicial
| 27.25 | 41 | 0.862385 | 12 | 109 | 7.833333 | 0.416667 | 0.446809 | 0.638298 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.110092 | 109 | 3 | 42 | 36.333333 | 0.969072 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
b6f27fde78e05178f3439023092f8332d1c132ac | 8,415 | py | Python | daisychain/channel_gmail/tests/test_views.py | daisychainme/daisychain | 245d0041f1efd2d6cc110f60aebf2e2dee98bcdb | [
"MIT"
] | 5 | 2016-09-27T10:44:59.000Z | 2022-03-29T08:16:44.000Z | daisychain/channel_gmail/tests/test_views.py | daisychainme/daisychain | 245d0041f1efd2d6cc110f60aebf2e2dee98bcdb | [
"MIT"
] | null | null | null | daisychain/channel_gmail/tests/test_views.py | daisychainme/daisychain | 245d0041f1efd2d6cc110f60aebf2e2dee98bcdb | [
"MIT"
] | null | null | null | from django.db.models.sql.datastructures import BaseTable
from django.test import TestCase
from django.contrib.auth.models import User
from mock import Mock, patch
from django.test.client import Client
from django.core.urlresolvers import reverse
from channel_gmail.channel import GmailChannel
from channel_gmail.models... | 67.32 | 1,137 | 0.835294 | 468 | 8,415 | 14.824786 | 0.202991 | 0.024503 | 0.020755 | 0.024214 | 0.849668 | 0.8452 | 0.830499 | 0.811041 | 0.797924 | 0.797924 | 0 | 0.086066 | 0.112181 | 8,415 | 124 | 1,138 | 67.862903 | 0.842591 | 0 | 0 | 0.483516 | 0 | 0 | 0.569238 | 0.538334 | 0 | 1 | 0 | 0 | 0.087912 | 1 | 0.120879 | false | 0 | 0.087912 | 0 | 0.274725 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
8e0e69a05d38ab286aa1e3ce409897862307e066 | 7,939 | py | Python | fonts/font10.py | robert-hh/SSD1963-TFT-Library-for-PyBoard | db9786cdd95f9dab5334a9de28bed4e26436815c | [
"MIT"
] | 16 | 2016-02-23T12:20:36.000Z | 2021-02-02T06:41:49.000Z | fonts/font10.py | robert-hh/SSD1963-TFT-Library-for-PyBoard-and-RP2040 | db9786cdd95f9dab5334a9de28bed4e26436815c | [
"MIT"
] | 2 | 2016-11-26T07:46:58.000Z | 2017-12-10T08:44:38.000Z | fonts/font10.py | robert-hh/SSD1963-TFT-Library-for-PyBoard | db9786cdd95f9dab5334a9de28bed4e26436815c | [
"MIT"
] | 9 | 2016-06-04T08:22:55.000Z | 2020-04-19T14:40:36.000Z | # Code generated by cfonts_to_trans_py.py
import TFTfont
_font10 = b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x04\x92\x49\x24\x82\x00\x00'\
b'\x02\x52\x94\x80\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x04\x82\x42\x41\x27\xfc\x48\x48\x24\x7f\xc9\x09\x04\x80\x00\x00\x00\x00\x00'\
b... | 66.714286 | 152 | 0.712306 | 1,939 | 7,939 | 2.91181 | 0.089737 | 0.434644 | 0.471838 | 0.42508 | 0.564825 | 0.521431 | 0.498583 | 0.436061 | 0.401523 | 0.344846 | 0 | 0.434264 | 0.017005 | 7,939 | 118 | 153 | 67.279661 | 0.289211 | 0.004912 | 0 | 0 | 1 | 0.80531 | 0.915031 | 0.903128 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.00885 | 0 | 0.00885 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
edc2e8d2c47e25bb454353d225259c362e8c4f40 | 1,061 | py | Python | tests/test_provider_hashicorp_fakewebservices.py | mjuenema/python-terrascript | 6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d | [
"BSD-2-Clause"
] | 507 | 2017-07-26T02:58:38.000Z | 2022-01-21T12:35:13.000Z | tests/test_provider_hashicorp_fakewebservices.py | mjuenema/python-terrascript | 6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d | [
"BSD-2-Clause"
] | 135 | 2017-07-20T12:01:59.000Z | 2021-10-04T22:25:40.000Z | tests/test_provider_hashicorp_fakewebservices.py | mjuenema/python-terrascript | 6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d | [
"BSD-2-Clause"
] | 81 | 2018-02-20T17:55:28.000Z | 2022-01-31T07:08:40.000Z | # tests/test_provider_hashicorp_fakewebservices.py
# Automatically generated by tools/makecode.py (24-Sep-2021 15:16:12 UTC)
def test_provider_import():
import terrascript.provider.hashicorp.fakewebservices
def test_resource_import():
from terrascript.resource.hashicorp.fakewebservices import fakewebservice... | 32.151515 | 87 | 0.782281 | 120 | 1,061 | 6.791667 | 0.508333 | 0.235583 | 0.157055 | 0.157055 | 0.453988 | 0.333742 | 0.333742 | 0 | 0 | 0 | 0 | 0.016465 | 0.141376 | 1,061 | 32 | 88 | 33.15625 | 0.878156 | 0.511781 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03125 | 0 | 1 | 0.222222 | true | 0 | 0.777778 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
6103c5bd5ef47ab1ba713b0b7fc8745724b88888 | 19,007 | py | Python | PA_multiagent_game/PA_multiagent_env.py | salesforce/RIRL | 6f137955bfbe2054be18bb2b15d0e6aedb972b06 | [
"BSD-3-Clause"
] | null | null | null | PA_multiagent_game/PA_multiagent_env.py | salesforce/RIRL | 6f137955bfbe2054be18bb2b15d0e6aedb972b06 | [
"BSD-3-Clause"
] | null | null | null | PA_multiagent_game/PA_multiagent_env.py | salesforce/RIRL | 6f137955bfbe2054be18bb2b15d0e6aedb972b06 | [
"BSD-3-Clause"
] | null | null | null | #
# Copyright (c) 2022, salesforce.com, inc.
# All rights reserved.
# SPDX-License-Identifier: BSD-3-Clause
# For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause
#
import torch
import numpy as np
class PAMultiagentEnv(object):
def __init__(self,
... | 39.351967 | 227 | 0.610775 | 2,551 | 19,007 | 4.267738 | 0.073697 | 0.051254 | 0.062092 | 0.053091 | 0.842473 | 0.807844 | 0.801231 | 0.793423 | 0.786443 | 0.783228 | 0 | 0.008422 | 0.294102 | 19,007 | 483 | 228 | 39.351967 | 0.803011 | 0.170464 | 0 | 0.72973 | 0 | 0 | 0.012163 | 0.009552 | 0 | 0 | 0 | 0 | 0.087087 | 1 | 0.057057 | false | 0 | 0.006006 | 0.009009 | 0.126126 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
6109089fe8e3258fd3b00a9f05334518e529ed16 | 79 | py | Python | QGrain/statistic/__init__.py | yuriok/QGrain | 39a136d4e89716a26a88d68ffa00d36ef6036279 | [
"MIT"
] | 4 | 2021-09-04T11:00:07.000Z | 2022-01-06T12:50:09.000Z | QGrain/statistic/__init__.py | yuriok/QGrain | 39a136d4e89716a26a88d68ffa00d36ef6036279 | [
"MIT"
] | null | null | null | QGrain/statistic/__init__.py | yuriok/QGrain | 39a136d4e89716a26a88d68ffa00d36ef6036279 | [
"MIT"
] | 2 | 2021-08-23T02:39:07.000Z | 2021-12-30T03:04:07.000Z | from QGrain.statistic._base import *
from QGrain.statistic._GRADISTAT import *
| 26.333333 | 41 | 0.822785 | 10 | 79 | 6.3 | 0.6 | 0.31746 | 0.603175 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.101266 | 79 | 2 | 42 | 39.5 | 0.887324 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
b64cf168405cdda6efa664d117b2287f9d224336 | 3,595 | py | Python | forImport/marginBoi.py | SU1199/ZerodhaMargins | 2c81a91f913b507f5f687258e6117c5dc915873b | [
"MIT"
] | 1 | 2021-03-16T22:23:46.000Z | 2021-03-16T22:23:46.000Z | forImport/marginBoi.py | SU1199/ZerodhaMargins | 2c81a91f913b507f5f687258e6117c5dc915873b | [
"MIT"
] | null | null | null | forImport/marginBoi.py | SU1199/ZerodhaMargins | 2c81a91f913b507f5f687258e6117c5dc915873b | [
"MIT"
] | null | null | null | import requests
from bs4 import BeautifulSoup
def equityFutures(ticker):
j =0
page = requests.get("https://zerodha.com/margin-calculator/Futures/")
soup = BeautifulSoup(page.content, 'html.parser')
table = soup.find("table", {"class": "data futures"})
table_rows = table.find_all('tr')
head = 'C... | 40.852273 | 101 | 0.526008 | 449 | 3,595 | 4.169265 | 0.155902 | 0.041132 | 0.064103 | 0.068376 | 0.870192 | 0.856838 | 0.856838 | 0.856838 | 0.826389 | 0.799145 | 0 | 0.012815 | 0.305424 | 3,595 | 87 | 102 | 41.321839 | 0.736884 | 0 | 0 | 0.746988 | 0 | 0.012048 | 0.169402 | 0.011683 | 0 | 0 | 0 | 0 | 0 | 1 | 0.048193 | false | 0 | 0.024096 | 0 | 0.120482 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
b64f2367ab1f6267acc848f7839f6dc27b387825 | 170 | py | Python | SQLGenerator/__init__.py | drop-out/SQL-Generator | 9072eeaeba1c82f48e9d65b821d0b8b371d8e0f0 | [
"MIT"
] | null | null | null | SQLGenerator/__init__.py | drop-out/SQL-Generator | 9072eeaeba1c82f48e9d65b821d0b8b371d8e0f0 | [
"MIT"
] | null | null | null | SQLGenerator/__init__.py | drop-out/SQL-Generator | 9072eeaeba1c82f48e9d65b821d0b8b371d8e0f0 | [
"MIT"
] | null | null | null | from SQLGenerator.Table import Table
from SQLGenerator.Table import tab_remover,comments_remover,column_parser
from SQLGenerator.Table import hashdraw_condition_generator | 56.666667 | 73 | 0.905882 | 22 | 170 | 6.772727 | 0.545455 | 0.322148 | 0.422819 | 0.543624 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064706 | 170 | 3 | 74 | 56.666667 | 0.937107 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
b6697dfeaa855c8f8ea07e4003516d8e9fbdce23 | 17,663 | py | Python | tests/strategy_sma_0_test.py | hoondental/smtm | f7648da652c5437ee27efef6fbf2480045130c16 | [
"MIT"
] | null | null | null | tests/strategy_sma_0_test.py | hoondental/smtm | f7648da652c5437ee27efef6fbf2480045130c16 | [
"MIT"
] | null | null | null | tests/strategy_sma_0_test.py | hoondental/smtm | f7648da652c5437ee27efef6fbf2480045130c16 | [
"MIT"
] | 1 | 2022-03-25T03:06:54.000Z | 2022-03-25T03:06:54.000Z | import unittest
from smtm import StrategySma0
from unittest.mock import *
class StrategySma0Tests(unittest.TestCase):
def setUp(self):
pass
def tearDown(self):
pass
def test_initialize_update_initial_balance(self):
sma = StrategySma0()
self.assertEqual(sma.is_intialized, ... | 36.418557 | 95 | 0.607654 | 2,081 | 17,663 | 4.902931 | 0.078808 | 0.148486 | 0.105851 | 0.065863 | 0.878173 | 0.82613 | 0.802411 | 0.752622 | 0.733804 | 0.71234 | 0 | 0.060648 | 0.260658 | 17,663 | 484 | 96 | 36.493802 | 0.720652 | 0.005831 | 0 | 0.708531 | 0 | 0 | 0.088066 | 0 | 0 | 0 | 0 | 0 | 0.244076 | 1 | 0.056872 | false | 0.011848 | 0.007109 | 0 | 0.07346 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
b6aad79c1705674fd0cd541fdc7a333335fcad3e | 3,439 | py | Python | Assignments/Assignment_04/task_1/mixturereduction/solution/mixturereduction.py | chrstrom/TTK4250 | f453c3a59597d3fe6cff7d35b790689919798b94 | [
"Unlicense"
] | null | null | null | Assignments/Assignment_04/task_1/mixturereduction/solution/mixturereduction.py | chrstrom/TTK4250 | f453c3a59597d3fe6cff7d35b790689919798b94 | [
"Unlicense"
] | null | null | null | Assignments/Assignment_04/task_1/mixturereduction/solution/mixturereduction.py | chrstrom/TTK4250 | f453c3a59597d3fe6cff7d35b790689919798b94 | [
"Unlicense"
] | null | null | null | __pyarmor__(__name__, __file__, b'\x50\x59\x41\x52\x4d\x4f\x52\x00\x00\x03\x09\x00\x61\x0d\x0d\x0a\x08\x2d\xa0\x01\x00\x00\x00\x00\x01\x00\x00\x00\x40\x00\x00\x00\x12\x03\x00\x00\x00\x00\x00\x10\xb8\x78\x70\x47\x68\xab\x28\x94\x1a\xcc\x89\x92\x00\xa5\x67\x9b\x00\x00\x00\x00\x00\x00\x00\x00\x0a\x05\x32\x5e\xb8\x43\xb9\x... | 3,439 | 3,439 | 0.749927 | 855 | 3,439 | 3.002339 | 0.294737 | 0.04441 | 0.045579 | 0.037398 | 0.015193 | 0.009349 | 0.009349 | 0 | 0 | 0 | 0 | 0.325378 | 0.000872 | 3,439 | 1 | 3,439 | 3,439 | 0.421711 | 0 | 0 | 0 | 0 | 1 | 0.988372 | 0.988372 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
fcc090279eeff6564654cdce709d36e30427b387 | 1,167 | py | Python | tests/fixtures/pause_bot_fixtures.py | lidofinance/depositor-bot | 3bf6f63fd4f81f6a67838c2d6c63e2384ce50a49 | [
"Apache-2.0"
] | 4 | 2021-09-12T22:17:22.000Z | 2022-01-26T07:33:17.000Z | tests/fixtures/pause_bot_fixtures.py | lidofinance/depositor-bot | 3bf6f63fd4f81f6a67838c2d6c63e2384ce50a49 | [
"Apache-2.0"
] | 7 | 2021-09-25T09:34:01.000Z | 2022-03-14T15:55:28.000Z | tests/fixtures/pause_bot_fixtures.py | lidofinance/depositor-bot | 3bf6f63fd4f81f6a67838c2d6c63e2384ce50a49 | [
"Apache-2.0"
] | 3 | 2021-09-12T22:17:25.000Z | 2022-03-03T11:26:00.000Z | from tests.fixtures.common_fixtures import COMMON_FIXTURES
PAUSE_BOT_FIXTURES = {
'eth_call': (
(({'to': '0xDb149235B6F40dC08810AA69869783Be101790e7', 'data': '0xc7062e98'}, 'latest'), {'jsonrpc': '2.0', 'id': 11, 'result': '0x00000000000000000000000000000000000000000000000000000000000019f6'}),
((... | 58.35 | 267 | 0.734362 | 70 | 1,167 | 12.1 | 0.428571 | 0.066116 | 0.226682 | 0.051948 | 0.701299 | 0.701299 | 0.701299 | 0.701299 | 0.701299 | 0.701299 | 0 | 0.485139 | 0.106255 | 1,167 | 19 | 268 | 61.421053 | 0.326942 | 0 | 0 | 0.4 | 0 | 0 | 0.623822 | 0.48329 | 0 | 0 | 0.517566 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.066667 | 0 | 0 | 0 | 1 | null | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 12 |
fcd6f9c2f8d8c1c28934ef1e72b6f5e5d7ffc8dd | 2,509 | py | Python | star_1.py | onesk/aoc2017 | 43594116e3ac94fb37655bcda9cd462a8d70dd04 | [
"MIT"
] | null | null | null | star_1.py | onesk/aoc2017 | 43594116e3ac94fb37655bcda9cd462a8d70dd04 | [
"MIT"
] | null | null | null | star_1.py | onesk/aoc2017 | 43594116e3ac94fb37655bcda9cd462a8d70dd04 | [
"MIT"
] | 1 | 2018-03-02T08:50:38.000Z | 2018-03-02T08:50:38.000Z | data = """
181445682966897848665963472661939865313976877194312684993521259486517527961396717561854825453963181134379574918373213732184697746668399631642622373684425326112585283946462323363991753895647177797691214784149215198715986947573668987188746878678399624533792551651335979847131975965677957755571358934665327487287... | 114.045455 | 2,136 | 0.929454 | 57 | 2,509 | 40.912281 | 0.45614 | 0.015437 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.900456 | 0.039059 | 2,509 | 21 | 2,137 | 119.47619 | 0.066777 | 0.03069 | 0 | 0 | 0 | 0 | 0.881286 | 0.880462 | 0 | 1 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.083333 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
fced3499a75cd16b91b75f72559533810d7e314b | 176 | py | Python | implementation/shortest_path/__init__.py | e-liyai/Graphs_in_Python | 7b7ec2e38be8761ada4f58b65d6d50c8f2ff133b | [
"MIT"
] | null | null | null | implementation/shortest_path/__init__.py | e-liyai/Graphs_in_Python | 7b7ec2e38be8761ada4f58b65d6d50c8f2ff133b | [
"MIT"
] | null | null | null | implementation/shortest_path/__init__.py | e-liyai/Graphs_in_Python | 7b7ec2e38be8761ada4f58b65d6d50c8f2ff133b | [
"MIT"
] | null | null | null | from implementation.shortest_path.shortest_path import *
from implementation.shortest_path.dikstras import *
from implementation.shortest_path.dikstras_priority_queue import *
| 44 | 66 | 0.880682 | 21 | 176 | 7.095238 | 0.380952 | 0.322148 | 0.52349 | 0.604027 | 0.590604 | 0.590604 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068182 | 176 | 3 | 67 | 58.666667 | 0.908537 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
1e144369f4a8bf7f878f01e2c3bfdcb587c1b9bd | 125 | py | Python | usgscam/__init__.py | scsides/usgscsm | 4a69e01015faddd7d0bdeb15097cc02a9cae09be | [
"Unlicense"
] | null | null | null | usgscam/__init__.py | scsides/usgscsm | 4a69e01015faddd7d0bdeb15097cc02a9cae09be | [
"Unlicense"
] | null | null | null | usgscam/__init__.py | scsides/usgscsm | 4a69e01015faddd7d0bdeb15097cc02a9cae09be | [
"Unlicense"
] | null | null | null | import usgscam.genericframe
import usgscam.orex
import usgscam.genericls
#from usgscam import mdis
#from usgscam import orex
| 20.833333 | 27 | 0.848 | 17 | 125 | 6.235294 | 0.411765 | 0.367925 | 0.320755 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.112 | 125 | 5 | 28 | 25 | 0.954955 | 0.384 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
1e543f39b324ea047260b098d834a5b8b1b5caf5 | 3,932 | py | Python | day8.py | sarahann6/advent_of_code_2017 | 1c9e7f752962384bbd92bc3a80bca26800959f66 | [
"MIT"
] | null | null | null | day8.py | sarahann6/advent_of_code_2017 | 1c9e7f752962384bbd92bc3a80bca26800959f66 | [
"MIT"
] | null | null | null | day8.py | sarahann6/advent_of_code_2017 | 1c9e7f752962384bbd92bc3a80bca26800959f66 | [
"MIT"
] | null | null | null | """
Advent of Code 2017
Python
Wanted to use eval for solving this.
Things get weird -- probably because I got started and then did not touch what code I had for a while. Got what I was trying to do working.
"""
with open("day8_input.txt", "r") as f:
instructions = [instruction.split()
for ins... | 38.930693 | 139 | 0.495422 | 407 | 3,932 | 4.783784 | 0.199017 | 0.14792 | 0.14792 | 0.086287 | 0.828968 | 0.828968 | 0.828968 | 0.828968 | 0.803287 | 0.803287 | 0 | 0.038674 | 0.355544 | 3,932 | 100 | 140 | 39.32 | 0.729676 | 0.234741 | 0 | 0.821429 | 0 | 0 | 0.02047 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0 | 0 | 0.071429 | 0.035714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
1e7bc135afbe7cd1610356c4af7eeb32f79fab57 | 13,192 | py | Python | Client_Code/png_163.py | KUAKE2002/Email_Client | a773bbfd1cdc791f9280102f2d610a810a431e21 | [
"MIT"
] | 2 | 2021-12-10T03:05:00.000Z | 2021-12-12T08:56:23.000Z | Client_Code/png_163.py | KUAKE2002/Email_Client | a773bbfd1cdc791f9280102f2d610a810a431e21 | [
"MIT"
] | null | null | null | Client_Code/png_163.py | KUAKE2002/Email_Client | a773bbfd1cdc791f9280102f2d610a810a431e21 | [
"MIT"
] | null | null | null | png_163 = "iVBORw0KGgoAAAANSUhEUgAAAVgAAABQCAYAAABcSG2ZAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA3hpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTMyIDc5LjE1OTI4N... | 13,192 | 13,192 | 0.972483 | 348 | 13,192 | 36.862069 | 0.997126 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1558 | 0.000152 | 13,192 | 1 | 13,192 | 13,192 | 0.816755 | 0 | 0 | 0 | 0 | 1 | 0.999015 | 0.999015 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
1eced58dd7f02b1aa533ace8ffcfe6d922349316 | 20,678 | py | Python | google/cloud/recommender_v1/proto/recommender_service_pb2_grpc.py | danoscarmike/python-recommender | 8538b29f6938d2967ef71845ddf43e2c286a6147 | [
"Apache-2.0"
] | null | null | null | google/cloud/recommender_v1/proto/recommender_service_pb2_grpc.py | danoscarmike/python-recommender | 8538b29f6938d2967ef71845ddf43e2c286a6147 | [
"Apache-2.0"
] | null | null | null | google/cloud/recommender_v1/proto/recommender_service_pb2_grpc.py | danoscarmike/python-recommender | 8538b29f6938d2967ef71845ddf43e2c286a6147 | [
"Apache-2.0"
] | null | null | null | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
import grpc
from google.cloud.recommender_v1.proto import (
insight_pb2 as google_dot_cloud_dot_recommender__v1_dot_proto_dot_insight__pb2,
)
from google.cloud.recommend... | 44.854664 | 161 | 0.719122 | 2,019 | 20,678 | 6.939079 | 0.087667 | 0.081941 | 0.050964 | 0.061884 | 0.878087 | 0.873733 | 0.844325 | 0.819843 | 0.774518 | 0.770949 | 0 | 0.00781 | 0.225941 | 20,678 | 460 | 162 | 44.952174 | 0.867487 | 0.164426 | 0 | 0.708683 | 1 | 0 | 0.090514 | 0.06405 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05042 | false | 0 | 0.011204 | 0.022409 | 0.092437 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
a208a8289324b3a7dae2ad7abdefa5bd4b2b51aa | 41,689 | py | Python | backend/api/tests/test_credit_trade_operations.py | KMenke/tfrs | 8a0aca2967e0557c9935d81a199d71446b96f6a3 | [
"Apache-2.0"
] | null | null | null | backend/api/tests/test_credit_trade_operations.py | KMenke/tfrs | 8a0aca2967e0557c9935d81a199d71446b96f6a3 | [
"Apache-2.0"
] | 1 | 2019-06-13T21:51:58.000Z | 2019-06-13T22:00:20.000Z | backend/api/tests/test_credit_trade_operations.py | pwei1018/tfrs | 8648a6c8ab7fc851ffe62ab562015fdbd3d53da3 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# pylint: disable=no-member,invalid-name
"""
REST API Documentation for the NRS TFRS Credit Trading Application
The Transportation Fuels Reporting System is being designed to streamline
compliance reporting for transportation fuel suppliers in accordance with
the Renewable & Low... | 39.403592 | 94 | 0.608458 | 4,580 | 41,689 | 5.334935 | 0.088865 | 0.061226 | 0.027216 | 0.023328 | 0.818409 | 0.805967 | 0.781575 | 0.771057 | 0.742081 | 0.721904 | 0 | 0.011368 | 0.288901 | 41,689 | 1,057 | 95 | 39.44087 | 0.812852 | 0.159515 | 0 | 0.735823 | 0 | 0 | 0.133802 | 0.026302 | 0 | 0 | 0 | 0 | 0.096819 | 1 | 0.029046 | false | 0 | 0.013831 | 0 | 0.045643 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
a216f8df1f0d7ff66f388c938290a271fd629a9f | 72 | py | Python | example_doc/__init__.py | ianozsvald/ipython_example_doc | 2d9486ae4986796150bde3366454bf7ba4fc9ebf | [
"MIT"
] | null | null | null | example_doc/__init__.py | ianozsvald/ipython_example_doc | 2d9486ae4986796150bde3366454bf7ba4fc9ebf | [
"MIT"
] | null | null | null | example_doc/__init__.py | ianozsvald/ipython_example_doc | 2d9486ae4986796150bde3366454bf7ba4fc9ebf | [
"MIT"
] | null | null | null | """from example_doc import eg"""
from example_doc.example_doc import eg
| 24 | 38 | 0.791667 | 12 | 72 | 4.5 | 0.416667 | 0.555556 | 0.518519 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 72 | 2 | 39 | 36 | 0.84375 | 0.361111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
7801b31d01b2c9fc8eddc3485abf5aa0523d5562 | 10,520 | py | Python | tests/components/plugwise/test_config_flow.py | pcaston/core | e74d946cef7a9d4e232ae9e0ba150d18018cfe33 | [
"Apache-2.0"
] | 1 | 2021-07-08T20:09:55.000Z | 2021-07-08T20:09:55.000Z | tests/components/plugwise/test_config_flow.py | pcaston/core | e74d946cef7a9d4e232ae9e0ba150d18018cfe33 | [
"Apache-2.0"
] | 47 | 2021-02-21T23:43:07.000Z | 2022-03-31T06:07:10.000Z | tests/components/plugwise/test_config_flow.py | OpenPeerPower/core | f673dfac9f2d0c48fa30af37b0a99df9dd6640ee | [
"Apache-2.0"
] | null | null | null | """Test the Plugwise config flow."""
from unittest.mock import MagicMock, patch
from plugwise.exceptions import (
ConnectionFailedError,
InvalidAuthentication,
PlugwiseException,
)
import pytest
from openpeerpower import config_entries, data_entry_flow, setup
from openpeerpower.components.plugwise.const i... | 31.975684 | 84 | 0.682129 | 1,239 | 10,520 | 5.477805 | 0.104116 | 0.053632 | 0.045381 | 0.068071 | 0.8061 | 0.78945 | 0.779726 | 0.77398 | 0.739207 | 0.739207 | 0 | 0.015301 | 0.211027 | 10,520 | 328 | 85 | 32.073171 | 0.80241 | 0.007034 | 0 | 0.604743 | 0 | 0 | 0.132677 | 0.082787 | 0 | 0 | 0 | 0 | 0.146245 | 1 | 0.003953 | false | 0.059289 | 0.031621 | 0 | 0.035573 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 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 | 7 |
78594f597bb6d72ee7c109be90db9d8c5ddce9a7 | 9,758 | py | Python | migrations/versions/2b8459f1e2d6_initial_schema.py | vault-the/changes | 37e23c3141b75e4785cf398d015e3dbca41bdd56 | [
"Apache-2.0"
] | 443 | 2015-01-03T16:28:39.000Z | 2021-04-26T16:39:46.000Z | migrations/versions/2b8459f1e2d6_initial_schema.py | vault-the/changes | 37e23c3141b75e4785cf398d015e3dbca41bdd56 | [
"Apache-2.0"
] | 12 | 2015-07-30T19:07:16.000Z | 2016-11-07T23:11:21.000Z | migrations/versions/2b8459f1e2d6_initial_schema.py | vault-the/changes | 37e23c3141b75e4785cf398d015e3dbca41bdd56 | [
"Apache-2.0"
] | 47 | 2015-01-09T10:04:00.000Z | 2020-11-18T17:58:19.000Z | """Initial schema
Revision ID: 2b8459f1e2d6
Revises: None
Create Date: 2013-10-22 14:31:32.654367
"""
# revision identifiers, used by Alembic.
revision = '2b8459f1e2d6'
down_revision = None
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql
def upgrade():
### commands aut... | 45.598131 | 80 | 0.662431 | 1,232 | 9,758 | 5.151786 | 0.083604 | 0.132346 | 0.134709 | 0.188593 | 0.826847 | 0.82086 | 0.7925 | 0.779738 | 0.721128 | 0.682055 | 0 | 0.01088 | 0.133429 | 9,758 | 213 | 81 | 45.812207 | 0.739711 | 0.029104 | 0 | 0.545918 | 0 | 0 | 0.177418 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.010204 | false | 0 | 0.015306 | 0 | 0.02551 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 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 | 7 |
157dcb4915003757a02f8c6d2ddb363904d488fd | 21,766 | py | Python | scripts/_old/loc_data_types.py | ver228/cell_localization | 9739afc7a54f730056945c0a6380896747235099 | [
"MIT"
] | 1 | 2021-08-10T08:24:23.000Z | 2021-08-10T08:24:23.000Z | scripts/_old/loc_data_types.py | ver228/cell_localization | 9739afc7a54f730056945c0a6380896747235099 | [
"MIT"
] | null | null | null | scripts/_old/loc_data_types.py | ver228/cell_localization | 9739afc7a54f730056945c0a6380896747235099 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Aug 17 17:05:49 2018œ
@author: avelinojaver
"""
from pathlib import Path
data_types_dflts = {
'woundhealing-v2-nuclei': dict(
root_data_dir = Path.home() / 'workspace/localization/data/woundhealing/annotated/v2/nuclei',
log_pr... | 33.028832 | 121 | 0.479555 | 2,568 | 21,766 | 3.74338 | 0.049065 | 0.029335 | 0.058671 | 0.073338 | 0.966504 | 0.963175 | 0.962655 | 0.962655 | 0.962655 | 0.953604 | 0 | 0.07385 | 0.408986 | 21,766 | 659 | 122 | 33.028832 | 0.67343 | 0.004732 | 0 | 0.880992 | 0 | 0 | 0.172431 | 0.144678 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.001653 | 0 | 0.001653 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
15936366047e020343c395d3969773940a24f1d6 | 19,335 | py | Python | opie/tests/test_hostmanager.py | indigo-dc/opie | 104d3fd7c26877380a618c0e313990bed5e88d56 | [
"Apache-2.0"
] | 10 | 2016-06-08T07:51:03.000Z | 2021-06-01T20:35:59.000Z | opie/tests/test_hostmanager.py | indigo-dc/opie | 104d3fd7c26877380a618c0e313990bed5e88d56 | [
"Apache-2.0"
] | 3 | 2016-05-27T12:58:21.000Z | 2016-10-18T08:31:28.000Z | opie/tests/test_hostmanager.py | indigo-dc/opie | 104d3fd7c26877380a618c0e313990bed5e88d56 | [
"Apache-2.0"
] | null | null | null | # Copyright 2016 Spanish National Research Council - CSIC
#
# 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... | 46.702899 | 79 | 0.644272 | 2,295 | 19,335 | 5.102832 | 0.128105 | 0.045086 | 0.037742 | 0.038425 | 0.800444 | 0.783281 | 0.760311 | 0.744941 | 0.738451 | 0.729229 | 0 | 0.016856 | 0.263615 | 19,335 | 413 | 80 | 46.815981 | 0.805661 | 0.076183 | 0 | 0.735385 | 0 | 0 | 0.097703 | 0.05778 | 0 | 0 | 0 | 0 | 0.196923 | 1 | 0.030769 | false | 0 | 0.043077 | 0 | 0.083077 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
ec88b2b79d9905a34125e62513b88fbedc0bd25f | 13,313 | py | Python | test.py | Asqiir/relaxdays-hackathon-submission-lager | afa7dc1d4eec6063a98224d4c733b9b3dd80c0d2 | [
"MIT"
] | null | null | null | test.py | Asqiir/relaxdays-hackathon-submission-lager | afa7dc1d4eec6063a98224d4c733b9b3dd80c0d2 | [
"MIT"
] | null | null | null | test.py | Asqiir/relaxdays-hackathon-submission-lager | afa7dc1d4eec6063a98224d4c733b9b3dd80c0d2 | [
"MIT"
] | null | null | null | import requests
import json
from collections import Counter
import time
o1 = {'name':'a-1;2;3;4','articleID':3,'bestand':17}
o2 = {'name':'f-1;1;1;1','articleID':17,'bestand':17}
o3 = {'name':'d-1;1;1;1','articleID':5,'bestand':17}
o4 = {'name':'b-1;1;1;1','articleID':1,'bestand':17}
o5 = {'name':'e-1;1;1;1','articleI... | 34.669271 | 160 | 0.648764 | 2,274 | 13,313 | 3.789358 | 0.054529 | 0.044563 | 0.044563 | 0.05199 | 0.926308 | 0.91157 | 0.885111 | 0.878148 | 0.860973 | 0.853777 | 0 | 0.097983 | 0.083903 | 13,313 | 384 | 161 | 34.669271 | 0.60856 | 0.02276 | 0 | 0.575397 | 0 | 0 | 0.357736 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.011905 | false | 0.059524 | 0.015873 | 0.007937 | 0.039683 | 0.277778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 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 | 7 |
eccafc37e14ea78d684156bc0a1061f5cf705a9a | 3,522 | py | Python | split_client_side/client/client.py | Jeff-Meadows/split_client_side | de97caabb8e9d07596d958846acb0a5e06063bc5 | [
"Apache-2.0"
] | null | null | null | split_client_side/client/client.py | Jeff-Meadows/split_client_side | de97caabb8e9d07596d958846acb0a5e06063bc5 | [
"Apache-2.0"
] | null | null | null | split_client_side/client/client.py | Jeff-Meadows/split_client_side | de97caabb8e9d07596d958846acb0a5e06063bc5 | [
"Apache-2.0"
] | null | null | null | from splitio.client.client import Client
class ClientSideClient(Client):
def __init__(self, *args, **kwargs):
traffic_key = kwargs.pop('traffic_key')
super().__init__(*args, **kwargs)
self._traffic_key = traffic_key
def get_treatment_with_config(self, feature, attributes=None):
... | 45.74026 | 96 | 0.689949 | 451 | 3,522 | 5.305987 | 0.155211 | 0.033431 | 0.066862 | 0.100293 | 0.87756 | 0.824906 | 0.824906 | 0.760552 | 0.760552 | 0.71542 | 0 | 0 | 0.25071 | 3,522 | 76 | 97 | 46.342105 | 0.906783 | 0.638274 | 0 | 0 | 0 | 0 | 0.012141 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.357143 | false | 0 | 0.071429 | 0 | 0.785714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 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 | 7 |
ece899be35e3fe1546a48fcb4270cf121e82120c | 1,300 | py | Python | gestionResultadosProtocolo/admin.py | AnuTor/UniNeuroLab | 5825f440d4663650f038083f3da05229cc5ada4f | [
"Apache-2.0"
] | null | null | null | gestionResultadosProtocolo/admin.py | AnuTor/UniNeuroLab | 5825f440d4663650f038083f3da05229cc5ada4f | [
"Apache-2.0"
] | null | null | null | gestionResultadosProtocolo/admin.py | AnuTor/UniNeuroLab | 5825f440d4663650f038083f3da05229cc5ada4f | [
"Apache-2.0"
] | null | null | null | # GESTION RESULTADOS PROTOCOLOS
from django.contrib import admin
from gestionResultadosProtocolo.models import resultadosProtocolo
# Register your models here.
class resultadosProtocoloAdmin(admin.ModelAdmin):
list_display=("protocoloEstudio", "clave_Protocolo", "tipoInvestigacion", "aceptadoDiseño_Metodológico", "f... | 86.666667 | 324 | 0.829231 | 95 | 1,300 | 11.115789 | 0.452632 | 0.059659 | 0.085227 | 0.133523 | 0.704545 | 0.704545 | 0.704545 | 0.704545 | 0.704545 | 0.704545 | 0 | 0.014646 | 0.054615 | 1,300 | 14 | 325 | 92.857143 | 0.844589 | 0.043077 | 0 | 0 | 0 | 0 | 0.63336 | 0.39162 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.875 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 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 | 1 | 0 | 0 | 8 |
ece9397744a4947b59f10f352a8f112295d65a48 | 21,195 | py | Python | nova/tests/unit/objects/test_aggregate.py | bopopescu/nova-token | ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2 | [
"Apache-2.0"
] | null | null | null | nova/tests/unit/objects/test_aggregate.py | bopopescu/nova-token | ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2 | [
"Apache-2.0"
] | null | null | null | nova/tests/unit/objects/test_aggregate.py | bopopescu/nova-token | ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2 | [
"Apache-2.0"
] | 2 | 2017-07-20T17:31:34.000Z | 2020-07-24T02:42:19.000Z | begin_unit
comment|'# Copyright 2013 IBM Corp.'
nl|'\n'
comment|'#'
nl|'\n'
comment|'# Licensed under the Apache License, Version 2.0 (the "License"); you may'
nl|'\n'
comment|'# not use this file except in compliance with the License. You may obtain'
nl|'\n'
comment|'# a copy of the License at'
nl|'\n'
com... | 11.934122 | 88 | 0.59514 | 3,118 | 21,195 | 3.960552 | 0.059333 | 0.185602 | 0.102033 | 0.092963 | 0.876103 | 0.84517 | 0.784436 | 0.770832 | 0.731314 | 0.689449 | 0 | 0.003603 | 0.096438 | 21,195 | 1,775 | 89 | 11.940845 | 0.64122 | 0 | 0 | 0.938592 | 0 | 0 | 0.343949 | 0.03331 | 0 | 0 | 0 | 0 | 0.011268 | 0 | null | null | 0.001127 | 0.004507 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
01a83cfcac84e03d8265e09faebeff8a727d7540 | 1,362 | py | Python | mc10/conftest.py | jamieleecho/mc10-tools | 72a92168dea19dc341fbc3b5c04246dcaf18c64c | [
"MIT"
] | 3 | 2021-02-06T18:18:47.000Z | 2021-03-15T13:14:41.000Z | mc10/conftest.py | jamieleecho/mc10-tools | 72a92168dea19dc341fbc3b5c04246dcaf18c64c | [
"MIT"
] | 2 | 2021-02-01T02:39:00.000Z | 2021-02-14T11:50:48.000Z | mc10/conftest.py | jamieleecho/mc10-tools | 72a92168dea19dc341fbc3b5c04246dcaf18c64c | [
"MIT"
] | null | null | null | import os
import pytest
@pytest.fixture
def filename_block():
return bytes([0x3c, 0x00, 0x0f, 0x42, 0x4c, 0x4f, 0x52, 0x4b, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x43, 0x46, 0x43, 0x46,
0x9b])
@pytest.fixture
def filename_block_bad_checksum():
return bytes([0x3c, 0x00, 0x0f... | 28.978723 | 72 | 0.605727 | 177 | 1,362 | 4.536723 | 0.225989 | 0.288917 | 0.343711 | 0.33873 | 0.808219 | 0.772105 | 0.646326 | 0.62142 | 0.596513 | 0.596513 | 0 | 0.290161 | 0.268722 | 1,362 | 46 | 73 | 29.608696 | 0.516064 | 0 | 0 | 0.5 | 0 | 0 | 0.006608 | 0 | 0 | 0 | 0.30837 | 0 | 0 | 1 | 0.21875 | true | 0 | 0.0625 | 0.21875 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 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 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 9 |
01b8aa4ffa334bac6dd14878da88fe7fbb3f5058 | 6,825 | py | Python | experiments.py | rinkwitz/Thesis_Semantic_Image_Segmentation_on_Satellite_Imagery_using_UNets | 75d3a4a536f6ef81fe0efd4f5fbba32b627a7472 | [
"MIT"
] | 1 | 2021-05-13T01:41:38.000Z | 2021-05-13T01:41:38.000Z | experiments.py | rinkwitz/Thesis_Semantic_Image_Segmentation_on_Satellite_Imagery_using_UNets | 75d3a4a536f6ef81fe0efd4f5fbba32b627a7472 | [
"MIT"
] | null | null | null | experiments.py | rinkwitz/Thesis_Semantic_Image_Segmentation_on_Satellite_Imagery_using_UNets | 75d3a4a536f6ef81fe0efd4f5fbba32b627a7472 | [
"MIT"
] | 1 | 2021-03-13T16:55:06.000Z | 2021-03-13T16:55:06.000Z | import torch
from pathlib import Path
exp_0 = dict(write_access=True,
model_name='unet',
pretrained_on=None,
continue_training=False,
continue_model_path=None,
continue_from_epoch=0,
initialize_weights=True,
freeze_encoder=False... | 42.391304 | 111 | 0.601758 | 823 | 6,825 | 4.646416 | 0.102066 | 0.056485 | 0.035303 | 0.044718 | 0.966004 | 0.966004 | 0.893305 | 0.886245 | 0.886245 | 0.886245 | 0 | 0.041139 | 0.305495 | 6,825 | 160 | 112 | 42.65625 | 0.765612 | 0 | 0 | 0.854305 | 0 | 0 | 0.072674 | 0.045421 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.013245 | 0 | 0.013245 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
01c36cc7b742f40f78b5f10fe27d33bbb4967e08 | 135 | py | Python | hagia/utils/__init__.py | 0xSTAR/hagia | 213d1cf286f7b1d02dfeb441def6ec77a3377615 | [
"Zlib"
] | 3 | 2022-02-06T03:52:55.000Z | 2022-02-07T03:54:28.000Z | hagia/utils/__init__.py | 0xSTAR/hagia | 213d1cf286f7b1d02dfeb441def6ec77a3377615 | [
"Zlib"
] | null | null | null | hagia/utils/__init__.py | 0xSTAR/hagia | 213d1cf286f7b1d02dfeb441def6ec77a3377615 | [
"Zlib"
] | 2 | 2022-02-06T03:53:34.000Z | 2022-02-08T00:44:01.000Z | from hagia.utils.hmath import *
from hagia.utils.htables import *
from hagia.utils.hstrings import *
from hagia.utils.hthread import *
| 27 | 34 | 0.792593 | 20 | 135 | 5.35 | 0.4 | 0.336449 | 0.523364 | 0.560748 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.118519 | 135 | 4 | 35 | 33.75 | 0.89916 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
01f193ad007e2d22a155f45c72269ad662fcd4a2 | 1,452 | py | Python | gh_decode_k32imp.py | nrwall/eset_crackme_ghirdra | 3a10a8e08863aceb106a8eca84bed8b21e7f6e71 | [
"Apache-2.0"
] | null | null | null | gh_decode_k32imp.py | nrwall/eset_crackme_ghirdra | 3a10a8e08863aceb106a8eca84bed8b21e7f6e71 | [
"Apache-2.0"
] | null | null | null | gh_decode_k32imp.py | nrwall/eset_crackme_ghirdra | 3a10a8e08863aceb106a8eca84bed8b21e7f6e71 | [
"Apache-2.0"
] | null | null | null | #@narwhal
#@category ESET_Crackme
#@keybinding
#@menupath
#@toolbar
#Markup for Wrapper
listing = currentProgram.getListing()
loc = 0x401c79
# get all code references made to the function
refs = getReferencesTo(toAddr(loc))
for r in refs:
callee = r.getFromAddress()
inst = getInstructionAt(callee)
... | 36.3 | 76 | 0.64876 | 170 | 1,452 | 5.511765 | 0.382353 | 0.076841 | 0.059765 | 0.057631 | 0.821772 | 0.821772 | 0.821772 | 0.821772 | 0.821772 | 0.821772 | 0 | 0.017102 | 0.234848 | 1,452 | 40 | 77 | 36.3 | 0.826283 | 0.131543 | 0 | 0.827586 | 0 | 0 | 0.097199 | 0.065898 | 0 | 0 | 0.01318 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
01f848305bf8318a1600eb6b4c85783a4ae95520 | 41,299 | py | Python | lockstep/firewall/ufw.py | JasonYao/lockstep | 2f2cd9c21758837a5ab4b16efef2fa3398df56df | [
"Apache-2.0"
] | null | null | null | lockstep/firewall/ufw.py | JasonYao/lockstep | 2f2cd9c21758837a5ab4b16efef2fa3398df56df | [
"Apache-2.0"
] | 1 | 2022-01-16T10:04:53.000Z | 2022-01-16T10:04:53.000Z | lockstep/firewall/ufw.py | JasonYao/lockstep | 2f2cd9c21758837a5ab4b16efef2fa3398df56df | [
"Apache-2.0"
] | null | null | null | from lockstep.core import FirewallTarget
from lockstep.core import FirewallChange
def get_all_entries() -> dict[str, FirewallTarget]:
"""
Returns a list of all lockstep-managed firewall
entries, in a dictionary mapping where:
- The key is the namespace of the firewall group
- The value is the ... | 1,147.194444 | 40,451 | 0.579045 | 10,417 | 41,299 | 2.295095 | 0.049054 | 0.041032 | 0.039568 | 0.014723 | 0.196587 | 0.040321 | 0.003848 | 0 | 0 | 0 | 0 | 0.587682 | 0.05528 | 41,299 | 35 | 40,452 | 1,179.971429 | 0.025092 | 0.989782 | 0 | 0.3 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057143 | 0 | 1 | 0.4 | false | 0.3 | 0.2 | 0 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 9 |
01f85a3d500641574736c3fb58c6f21be9771840 | 139,300 | py | Python | xml_code/gpx10.py | atlefren/mineturer2 | e9798f587947e4ef9d54065e5bea4a4af3caf482 | [
"MIT"
] | 8 | 2016-06-06T02:36:31.000Z | 2020-08-26T07:53:06.000Z | xml_code/gpx10.py | atlefren/mineturer2 | e9798f587947e4ef9d54065e5bea4a4af3caf482 | [
"MIT"
] | null | null | null | xml_code/gpx10.py | atlefren/mineturer2 | e9798f587947e4ef9d54065e5bea4a4af3caf482 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Generated Tue Jun 3 22:47:21 2014 by generateDS.py version 2.12d.
#
# Command line options:
# ('-o', 'gpx10.py')
# ('-s', 'gpssubs10.py')
#
# Command line arguments:
# schemas/gpx.1.0.xsd
#
# Command line:
# venv/bin/generateDS.py -o "gpx10.py" -s "gpssubs10.p... | 45.31555 | 313 | 0.598299 | 16,213 | 139,300 | 4.929131 | 0.030038 | 0.051654 | 0.034912 | 0.038753 | 0.865596 | 0.838581 | 0.822626 | 0.806947 | 0.800053 | 0.791969 | 0 | 0.004112 | 0.287789 | 139,300 | 3,073 | 314 | 45.330296 | 0.801403 | 0.019978 | 0 | 0.785739 | 1 | 0.000343 | 0.064375 | 0.012572 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.008228 | 0.013027 | null | null | 0.054851 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
bf2b999f31e1654813749d9c3a7e5f1c2f0810e6 | 1,399 | py | Python | optimizer.py | resistzzz/ToyNN_new | 9811f91393f98b0f16b49ce9299ca4c96c92cdf1 | [
"MIT"
] | null | null | null | optimizer.py | resistzzz/ToyNN_new | 9811f91393f98b0f16b49ce9299ca4c96c92cdf1 | [
"MIT"
] | null | null | null | optimizer.py | resistzzz/ToyNN_new | 9811f91393f98b0f16b49ce9299ca4c96c92cdf1 | [
"MIT"
] | null | null | null | """
"""
import numpy as np
class SGD:
def __init__(self, lr):
self.learning_rate = lr
def set_lr(self, lr):
self.learning_rate = lr
def _optimize_func(self, data, grad):
delta = -grad * self.learning_rate
return delta
def optimize(self, params):
for _, p... | 20.275362 | 75 | 0.598284 | 180 | 1,399 | 4.4 | 0.177778 | 0.166667 | 0.181818 | 0.136364 | 0.89899 | 0.89899 | 0.89899 | 0.89899 | 0.89899 | 0.89899 | 0 | 0.00818 | 0.300929 | 1,399 | 69 | 76 | 20.275362 | 0.801636 | 0.033595 | 0 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014493 | 0 | 1 | 0.307692 | false | 0 | 0.025641 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 11 |
1767c9a6366635f889bb83482681cfbe30e87bef | 16,508 | py | Python | App/services/RequestStrategy.py | pkamleshkumar12/cli-http-client | e72c6c299b79d16c176537074dda5674f97fb651 | [
"Apache-2.0"
] | null | null | null | App/services/RequestStrategy.py | pkamleshkumar12/cli-http-client | e72c6c299b79d16c176537074dda5674f97fb651 | [
"Apache-2.0"
] | null | null | null | App/services/RequestStrategy.py | pkamleshkumar12/cli-http-client | e72c6c299b79d16c176537074dda5674f97fb651 | [
"Apache-2.0"
] | null | null | null | from __future__ import annotations
from abc import ABC, abstractmethod
from App import Configuration
import json
import requests
import os
from datetime import datetime
from App.services import IOService
import logging
import sys
from App.services.AuthHandler import AuthHandler
class Context:
def __init__(self... | 33.148594 | 106 | 0.54937 | 1,642 | 16,508 | 5.415956 | 0.096833 | 0.068593 | 0.042056 | 0.028337 | 0.826605 | 0.816935 | 0.803104 | 0.768132 | 0.746092 | 0.721129 | 0 | 0.000373 | 0.350133 | 16,508 | 497 | 107 | 33.215292 | 0.828579 | 0 | 0 | 0.770492 | 0 | 0 | 0.103344 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081967 | false | 0.01171 | 0.025761 | 0.004684 | 0.177986 | 0.093677 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
17a624a4ce33b3dcacc760f793e94c1395dd2ca6 | 1,789 | py | Python | modules/memory/solver.py | Ao-Re/keep-typing-and-nobody-explodes | deff70c384b3271315acd49bcbfd62c05ed9a7ce | [
"MIT"
] | null | null | null | modules/memory/solver.py | Ao-Re/keep-typing-and-nobody-explodes | deff70c384b3271315acd49bcbfd62c05ed9a7ce | [
"MIT"
] | null | null | null | modules/memory/solver.py | Ao-Re/keep-typing-and-nobody-explodes | deff70c384b3271315acd49bcbfd62c05ed9a7ce | [
"MIT"
] | 2 | 2020-10-04T17:04:31.000Z | 2020-10-20T16:59:50.000Z | def solve_memory(stage, display):
if (stage == 1):
if (display == 1 or display == 2):
return 'Press the button in the second position'
if (display == 3):
return 'Press the button in the third position'
if (display == 4):
return 'Press the button in ... | 40.659091 | 70 | 0.533259 | 237 | 1,789 | 4.021097 | 0.118143 | 0.160546 | 0.249738 | 0.356768 | 0.862539 | 0.862539 | 0.84575 | 0.792235 | 0.719832 | 0.719832 | 0 | 0.031588 | 0.38066 | 1,789 | 44 | 71 | 40.659091 | 0.82852 | 0 | 0 | 0.65 | 0 | 0 | 0.407556 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025 | false | 0 | 0 | 0 | 0.45 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 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 | 8 |
bd66558c2098cb9f55acb2ec435a99862bf811aa | 88,741 | py | Python | pymbs/processing/loops/hexapod_with_axes_offset.py | brutzl/pymbs | fb7c91435f56b5c4d460f82f081d5d1960fea886 | [
"MIT"
] | null | null | null | pymbs/processing/loops/hexapod_with_axes_offset.py | brutzl/pymbs | fb7c91435f56b5c4d460f82f081d5d1960fea886 | [
"MIT"
] | null | null | null | pymbs/processing/loops/hexapod_with_axes_offset.py | brutzl/pymbs | fb7c91435f56b5c4d460f82f081d5d1960fea886 | [
"MIT"
] | null | null | null | from pymbs.processing.loops.loop import Loop, eps
from pymbs.common.functions import sqrt, transpose
from pymbs.processing import Joint, Frame
from numpy import pi, cross
from pymbs.symbolics import Matrix, eye, cos, sin, atan, atan2, acos, zeros, asin, jacobian,inv
theta_1 = 'HP_%s_theta1'
theta_2 = 'HP_%s_theta2... | 204.944573 | 11,491 | 0.297033 | 9,473 | 88,741 | 2.709912 | 0.035258 | 0.054926 | 0.059211 | 0.038175 | 0.794827 | 0.778349 | 0.765183 | 0.759651 | 0.746757 | 0.742199 | 0 | 0.092113 | 0.547233 | 88,741 | 432 | 11,492 | 205.418981 | 0.546803 | 0.014052 | 0 | 0.023392 | 0 | 0 | 0.003507 | 0 | 0 | 0 | 0 | 0.002315 | 0.017544 | 1 | 0.011696 | false | 0 | 0.02924 | 0 | 0.052632 | 0.070175 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
da00af13b819279c3f94f7a78ae07826c2cd5f0d | 29,407 | py | Python | azure-mgmt-batchai/azure/mgmt/batchai/operations/clusters_operations.py | v-Ajnava/azure-sdk-for-python | a1f6f80eb5869c5b710e8bfb66146546697e2a6f | [
"MIT"
] | 4 | 2016-06-17T23:25:29.000Z | 2022-03-30T22:37:45.000Z | azure-mgmt-batchai/azure/mgmt/batchai/operations/clusters_operations.py | v-Ajnava/azure-sdk-for-python | a1f6f80eb5869c5b710e8bfb66146546697e2a6f | [
"MIT"
] | 2 | 2016-09-30T21:40:24.000Z | 2017-11-10T18:16:18.000Z | azure-mgmt-batchai/azure/mgmt/batchai/operations/clusters_operations.py | v-Ajnava/azure-sdk-for-python | a1f6f80eb5869c5b710e8bfb66146546697e2a6f | [
"MIT"
] | 3 | 2016-05-03T20:49:46.000Z | 2017-10-05T21:05:27.000Z | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | 47.81626 | 168 | 0.657394 | 3,145 | 29,407 | 5.935135 | 0.078219 | 0.036216 | 0.027322 | 0.027001 | 0.893068 | 0.889746 | 0.877746 | 0.858834 | 0.846941 | 0.840726 | 0 | 0.004977 | 0.248444 | 29,407 | 614 | 169 | 47.894137 | 0.8396 | 0.293944 | 0 | 0.832278 | 0 | 0 | 0.14961 | 0.072857 | 0 | 0 | 0 | 0 | 0 | 1 | 0.053797 | false | 0 | 0.015823 | 0 | 0.148734 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
da1451e996a4ac64ab2d6432f4a9ffd4acdb1313 | 3,982 | py | Python | pkgs/clean-pkg/src/genie/libs/clean/stages/apic/tests/test_node_registration.py | patrickboertje/genielibs | 61c37aacf3dd0f499944555e4ff940f92f53dacb | [
"Apache-2.0"
] | 1 | 2022-01-16T10:00:24.000Z | 2022-01-16T10:00:24.000Z | pkgs/clean-pkg/src/genie/libs/clean/stages/apic/tests/test_node_registration.py | patrickboertje/genielibs | 61c37aacf3dd0f499944555e4ff940f92f53dacb | [
"Apache-2.0"
] | null | null | null | pkgs/clean-pkg/src/genie/libs/clean/stages/apic/tests/test_node_registration.py | patrickboertje/genielibs | 61c37aacf3dd0f499944555e4ff940f92f53dacb | [
"Apache-2.0"
] | null | null | null | import logging
import unittest
from unittest.mock import Mock, MagicMock
from genie.libs.clean.stages.apic.stages import NodeRegistration
from genie.libs.clean.stages.tests.utils import CommonStageTests, create_test_device
from pyats.aetest.steps import Steps
from pyats.results import Passed, Failed
from pyats.aetes... | 36.53211 | 90 | 0.67554 | 501 | 3,982 | 5.291417 | 0.241517 | 0.060355 | 0.036213 | 0.021124 | 0.809129 | 0.783855 | 0.783855 | 0.783855 | 0.759336 | 0.759336 | 0 | 0.005964 | 0.242089 | 3,982 | 108 | 91 | 36.87037 | 0.872432 | 0.327223 | 0 | 0.555556 | 0 | 0 | 0.032428 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.111111 | false | 0.092593 | 0.166667 | 0 | 0.314815 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 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 | 7 |
16f9288392756946d1e80a405a832c1335124b96 | 147 | py | Python | __main__.py | durato/python-hashtagger | 926915bb6f9dbebcf95b458d426674174af53038 | [
"MIT"
] | null | null | null | __main__.py | durato/python-hashtagger | 926915bb6f9dbebcf95b458d426674174af53038 | [
"MIT"
] | null | null | null | __main__.py | durato/python-hashtagger | 926915bb6f9dbebcf95b458d426674174af53038 | [
"MIT"
] | null | null | null | from src import hashtag
with open("input.txt", "r") as f:
# print(hashtag.hashtags(f, 30))
print(hashtag.hashtags(f, 30, "<i>#", "</i>"))
| 24.5 | 50 | 0.598639 | 23 | 147 | 3.826087 | 0.652174 | 0.272727 | 0.454545 | 0.477273 | 0.522727 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032787 | 0.170068 | 147 | 5 | 51 | 29.4 | 0.688525 | 0.204082 | 0 | 0 | 0 | 0 | 0.156522 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 7 |
e5627ace1ff14a9583043d20dabb761e0f84fc24 | 2,245 | py | Python | tests/tests_generate_html.py | xandermann/html-classes-obfuscator | 7a7da3e293aa0d526c70c0ca36784103fb1ebf2f | [
"MIT"
] | 1 | 2022-02-21T21:15:46.000Z | 2022-02-21T21:15:46.000Z | tests/tests_generate_html.py | xandermann/html-classes-obfuscator | 7a7da3e293aa0d526c70c0ca36784103fb1ebf2f | [
"MIT"
] | 5 | 2022-02-26T09:00:50.000Z | 2022-03-09T08:42:28.000Z | tests/tests_generate_html.py | xandermann/html-classes-obfuscator | 7a7da3e293aa0d526c70c0ca36784103fb1ebf2f | [
"MIT"
] | 1 | 2022-02-26T10:31:36.000Z | 2022-02-26T10:31:36.000Z | """Tests"""
import unittest
from html_classes_obfuscator import html_classes_obfuscator
class TestsGenerateHTML(unittest.TestCase):
"""Tests
Args:
unittest (unittest.TestCase): Unittest library
"""
def test_generate_html_simple_quotes(self) -> None:
"""Test simple quotes case"""
... | 44.9 | 132 | 0.687751 | 297 | 2,245 | 4.868687 | 0.131313 | 0.116183 | 0.099585 | 0.078838 | 0.767635 | 0.767635 | 0.767635 | 0.702628 | 0.702628 | 0.671508 | 0 | 0.007563 | 0.175501 | 2,245 | 49 | 133 | 45.816327 | 0.773636 | 0.106459 | 0 | 0.444444 | 1 | 0 | 0.23873 | 0.121926 | 0 | 0 | 0 | 0 | 0.222222 | 1 | 0.222222 | false | 0 | 0.074074 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
e5ce25a2b555960f9a4e623d3a26e0c9c40021be | 94 | py | Python | ch09/ex03_Indexing.py | eroicaleo/LearningPython | 297d46eddce6e43ce0c160d2660dff5f5d616800 | [
"MIT"
] | 1 | 2020-10-12T13:33:29.000Z | 2020-10-12T13:33:29.000Z | ch09/ex03_Indexing.py | eroicaleo/LearningPython | 297d46eddce6e43ce0c160d2660dff5f5d616800 | [
"MIT"
] | null | null | null | ch09/ex03_Indexing.py | eroicaleo/LearningPython | 297d46eddce6e43ce0c160d2660dff5f5d616800 | [
"MIT"
] | 1 | 2016-11-09T07:28:45.000Z | 2016-11-09T07:28:45.000Z | #!/usr/local/bin/python3.3
L = [1, 2, 3, 4]
print(L)
L[2] = []
print(L)
L[2:3] = []
print(L)
| 10.444444 | 26 | 0.5 | 21 | 94 | 2.238095 | 0.47619 | 0.382979 | 0.297872 | 0.340426 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116883 | 0.180851 | 94 | 8 | 27 | 11.75 | 0.493506 | 0.265957 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 7 |
e5d39fdf55212c263284600c52f99a20815a2d92 | 2,151 | py | Python | tests/test_range.py | felixnext/python-time-helper | 15f69f60d71a864af2c1bb19ed94db3b32869afa | [
"MIT"
] | null | null | null | tests/test_range.py | felixnext/python-time-helper | 15f69f60d71a864af2c1bb19ed94db3b32869afa | [
"MIT"
] | null | null | null | tests/test_range.py | felixnext/python-time-helper | 15f69f60d71a864af2c1bb19ed94db3b32869afa | [
"MIT"
] | null | null | null |
from datetime import datetime, timedelta
from time_helper import time_to_interval
def test_time_to_interval():
'''Tests if the conversion is correct'''
dt = datetime(2020, 9, 23, 12, 00)
iv = time_to_interval(dt, 0)
assert iv == 0
iv = time_to_interval(dt, 0, zero_center=False, normalize=True)
... | 29.465753 | 89 | 0.655974 | 333 | 2,151 | 4.084084 | 0.162162 | 0.075 | 0.175 | 0.176471 | 0.813971 | 0.813971 | 0.764706 | 0.755147 | 0.728676 | 0.728676 | 0 | 0.080288 | 0.224082 | 2,151 | 73 | 90 | 29.465753 | 0.734572 | 0.054858 | 0 | 0.422222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013699 | 0.4 | 1 | 0.044444 | false | 0.022222 | 0.044444 | 0 | 0.088889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 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 | 8 |
e5f88d0119cc80a2657be0a1002a9c49091af605 | 29,064 | py | Python | von_agent/proto/validate.py | hidde-jan/von_agent | e011bf74718616c7ee30c54261d969300fe94f31 | [
"Apache-2.0"
] | null | null | null | von_agent/proto/validate.py | hidde-jan/von_agent | e011bf74718616c7ee30c54261d969300fe94f31 | [
"Apache-2.0"
] | null | null | null | von_agent/proto/validate.py | hidde-jan/von_agent | e011bf74718616c7ee30c54261d969300fe94f31 | [
"Apache-2.0"
] | null | null | null | """
Copyright 2017-2018 Government of Canada - Public Services and Procurement Canada - buyandsell.gc.ca
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
... | 37.942559 | 100 | 0.219309 | 1,201 | 29,064 | 5.29975 | 0.125729 | 0.127258 | 0.185389 | 0.110291 | 0.767164 | 0.74454 | 0.739513 | 0.729929 | 0.723017 | 0.723017 | 0 | 0.006242 | 0.663742 | 29,064 | 765 | 101 | 37.992157 | 0.645042 | 0.025392 | 0 | 0.617931 | 0 | 0 | 0.201739 | 0.001626 | 0 | 0 | 0 | 0 | 0 | 1 | 0.001379 | false | 0 | 0.002759 | 0 | 0.004138 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
0062a1fc5abc64880aa619981aacebf8b5a61197 | 1,980 | py | Python | src/graphql/language/character_classes.py | fugal-dy/graphql-core | a2dc9147d61212758b93b028b9f377e36095cf35 | [
"MIT"
] | 249 | 2018-08-01T21:43:45.000Z | 2020-03-11T18:31:10.000Z | src/graphql/language/character_classes.py | fugal-dy/graphql-core | a2dc9147d61212758b93b028b9f377e36095cf35 | [
"MIT"
] | 76 | 2018-08-03T11:48:27.000Z | 2020-03-04T17:32:26.000Z | src/graphql/language/character_classes.py | fugal-dy/graphql-core | a2dc9147d61212758b93b028b9f377e36095cf35 | [
"MIT"
] | 48 | 2018-08-15T17:48:11.000Z | 2020-03-12T12:50:51.000Z | __all__ = ["is_digit", "is_letter", "is_name_start", "is_name_continue"]
try:
"string".isascii()
except AttributeError: # Python < 3.7
def is_digit(char: str) -> bool:
"""Check whether char is a digit
For internal use by the lexer only.
"""
return "0" <= char <= "9"
def ... | 28.695652 | 78 | 0.55404 | 268 | 1,980 | 3.996269 | 0.179104 | 0.037348 | 0.082166 | 0.119514 | 0.879552 | 0.879552 | 0.879552 | 0.879552 | 0.879552 | 0.879552 | 0 | 0.004491 | 0.325253 | 1,980 | 68 | 79 | 29.117647 | 0.797156 | 0.364141 | 0 | 0.307692 | 0 | 0 | 0.066543 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0 | 0 | 0 | 0.615385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 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 | 1 | 0 | 0 | 8 |
00b7c6a2f111652c7d50c3509663a85fa1d7d665 | 80 | py | Python | tests/input_scripts/long_list.py | shiba6v/shape_commentator | e57c4d7e0781fa02fdc49dbc5c88236df5948cf1 | [
"MIT"
] | 65 | 2018-12-06T15:34:50.000Z | 2021-09-10T12:38:43.000Z | tests/input_scripts/long_list.py | shiba6v/shape_commentator | e57c4d7e0781fa02fdc49dbc5c88236df5948cf1 | [
"MIT"
] | 5 | 2018-12-14T06:32:54.000Z | 2019-08-04T09:36:45.000Z | tests/input_scripts/long_list.py | shiba6v/shape_commentator | e57c4d7e0781fa02fdc49dbc5c88236df5948cf1 | [
"MIT"
] | 1 | 2019-01-02T00:05:38.000Z | 2019-01-02T00:05:38.000Z | li = [1,2,3,4,5,6,7,8,9,10,11]
li_and_tu = [(1,2),(3,[4,5]),[6,7],[8,(9,10),11]] | 40 | 49 | 0.4625 | 26 | 80 | 1.346154 | 0.538462 | 0.114286 | 0.171429 | 0.228571 | 0.742857 | 0.742857 | 0.742857 | 0.742857 | 0.742857 | 0.742857 | 0 | 0.346667 | 0.0625 | 80 | 2 | 49 | 40 | 0.12 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | null | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 11 |
00e8f3667aa9887ca1ba76ab676d179684e2b934 | 84 | py | Python | ppf/pricer/__init__.py | iamaris/ppf | 60f798eaea69e7dec2b8c422ceb684219b1645d0 | [
"MIT"
] | 2 | 2019-10-26T17:18:41.000Z | 2020-06-05T11:26:10.000Z | ppf/pricer/__init__.py | iamaris/ppf | 60f798eaea69e7dec2b8c422ceb684219b1645d0 | [
"MIT"
] | null | null | null | ppf/pricer/__init__.py | iamaris/ppf | 60f798eaea69e7dec2b8c422ceb684219b1645d0 | [
"MIT"
] | 5 | 2019-01-24T16:44:07.000Z | 2020-09-14T06:56:55.000Z | from lattice_pricer import *
from monte_carlo_pricer import *
from payoffs import *
| 21 | 32 | 0.821429 | 12 | 84 | 5.5 | 0.583333 | 0.363636 | 0.484848 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 84 | 3 | 33 | 28 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
daf86f2adc988072e1ecb5a2245fa3a3f4c4f238 | 186 | py | Python | tests/generators.py | Abstract-X/aiogram-scenario | 5bc03a4ae84d80ac558e98e16ef9e51485467d96 | [
"MIT"
] | 19 | 2020-06-19T12:56:28.000Z | 2022-01-02T17:14:09.000Z | tests/generators.py | Abstract-X/aiogram-scenario | 5bc03a4ae84d80ac558e98e16ef9e51485467d96 | [
"MIT"
] | 17 | 2020-06-22T10:39:57.000Z | 2022-03-13T14:22:46.000Z | tests/generators.py | Abstract-X/aiogram-scenario | 5bc03a4ae84d80ac558e98e16ef9e51485467d96 | [
"MIT"
] | 3 | 2020-06-19T12:56:49.000Z | 2022-03-13T14:04:21.000Z | import random
import secrets
def generate_chat_id() -> int:
return random.randint(1, 100_000_000)
def generate_machine_arg_name() -> str:
return "a" + secrets.token_hex(5)
| 14.307692 | 41 | 0.715054 | 28 | 186 | 4.464286 | 0.75 | 0.176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071895 | 0.177419 | 186 | 12 | 42 | 15.5 | 0.745098 | 0 | 0 | 0 | 1 | 0 | 0.005376 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | true | 0 | 0.333333 | 0.333333 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 7 |
97569873823c0a2d8a82f688134bad76555bd311 | 27,080 | py | Python | tensorflow/core/protobuf/master_service_pb2_grpc.py | alexeygrigorev/tensorflow-protobuf | 9863a9281eb6caa9be73128c03906d990639208c | [
"Apache-2.0"
] | 7 | 2020-12-28T02:53:05.000Z | 2022-03-23T05:45:03.000Z | tensorflow/core/protobuf/master_service_pb2_grpc.py | alexeygrigorev/tensorflow-protobuf | 9863a9281eb6caa9be73128c03906d990639208c | [
"Apache-2.0"
] | 1 | 2021-01-27T16:06:16.000Z | 2021-01-27T19:43:38.000Z | tensorflow/core/protobuf/master_service_pb2_grpc.py | alexeygrigorev/tensorflow-protobuf | 9863a9281eb6caa9be73128c03906d990639208c | [
"Apache-2.0"
] | 1 | 2021-02-11T11:46:01.000Z | 2021-02-11T11:46:01.000Z | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
import grpc
from tensorflow.core.protobuf import master_pb2 as tensorflow_dot_core_dot_protobuf_dot_master__pb2
class MasterServiceStub(object):
"""///////////////////... | 48.185053 | 131 | 0.693205 | 2,839 | 27,080 | 6.36069 | 0.105671 | 0.0309 | 0.057426 | 0.06756 | 0.885979 | 0.885979 | 0.861613 | 0.840569 | 0.838354 | 0.817422 | 0 | 0.003259 | 0.229468 | 27,080 | 561 | 132 | 48.270945 | 0.862168 | 0.321344 | 0 | 0.512821 | 1 | 0 | 0.082121 | 0.049635 | 0 | 0 | 0 | 0 | 0 | 1 | 0.070513 | false | 0 | 0.00641 | 0.032051 | 0.11859 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
97661f3da6fe872a012910a817847b6be947cf57 | 34,661 | py | Python | unit_test/app_test.py | AnonymousXF/ctf-platform | 2566464670293f0adca4aba5979467f9e3f6be79 | [
"Fair"
] | 1 | 2019-04-02T04:17:34.000Z | 2019-04-02T04:17:34.000Z | unit_test/app_test.py | AnonymousXF/ctf-platform | 2566464670293f0adca4aba5979467f9e3f6be79 | [
"Fair"
] | null | null | null | unit_test/app_test.py | AnonymousXF/ctf-platform | 2566464670293f0adca4aba5979467f9e3f6be79 | [
"Fair"
] | null | null | null | # -*- coding: utf-8 -*-
import unittest
import os,sys
import peewee
import re
import redis
import time
import random
from datetime import datetime
sys.path.append("../")
import utils
import config
from app import app
from database import *
class BasicTestCase(unittest.TestCase):
def setUp(self):
app.config['TESTI... | 53.654799 | 184 | 0.733014 | 4,797 | 34,661 | 5.057119 | 0.061705 | 0.048972 | 0.042335 | 0.063523 | 0.841791 | 0.809967 | 0.784781 | 0.732841 | 0.677357 | 0.632714 | 0 | 0.016098 | 0.134359 | 34,661 | 646 | 185 | 53.654799 | 0.792428 | 0.062491 | 0 | 0.448661 | 0 | 0 | 0.126933 | 0.002355 | 0 | 0 | 0 | 0 | 0.198661 | 0 | null | null | 0.194196 | 0.026786 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 7 |
9792a2f8a7c56d792b8e6681407f4edf042067ea | 3,512 | py | Python | platoon/migrations/versions/2cedcf202ceb_add_cascades.py | siq/platoon | d41bbc8c8209c75e2920d9c4d90886ec7be26398 | [
"Linux-OpenIB"
] | null | null | null | platoon/migrations/versions/2cedcf202ceb_add_cascades.py | siq/platoon | d41bbc8c8209c75e2920d9c4d90886ec7be26398 | [
"Linux-OpenIB"
] | null | null | null | platoon/migrations/versions/2cedcf202ceb_add_cascades.py | siq/platoon | d41bbc8c8209c75e2920d9c4d90886ec7be26398 | [
"Linux-OpenIB"
] | null | null | null | """add_cascades
Revision: 2cedcf202ceb
Revises: a37cb401b52
Created: 2012-08-21 20:45:09.304167
"""
revision = '2cedcf202ceb'
down_revision = 'a37cb401b52'
from alembic import op
from spire.schema.fields import *
from sqlalchemy import Column, ForeignKey, ForeignKeyConstraint, PrimaryKeyConstraint, CheckConstraint
f... | 43.358025 | 102 | 0.725513 | 457 | 3,512 | 5.089716 | 0.113786 | 0.082545 | 0.11006 | 0.123818 | 0.864144 | 0.864144 | 0.864144 | 0.851247 | 0.8319 | 0.825451 | 0 | 0.013645 | 0.123576 | 3,512 | 80 | 103 | 43.9 | 0.74204 | 0.026481 | 0 | 0.714286 | 0 | 0 | 0.468054 | 0.227433 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0.071429 | 0 | 0.107143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
c14d8d3196be504f4f5a9d4607e27ed9a167b328 | 24,368 | py | Python | sdk/python/pulumi_aws_native/cloudwatch/_inputs.py | pulumi/pulumi-aws-native | 1ae4a4d9c2256b2a79ca536f8d8497b28d10e4c3 | [
"Apache-2.0"
] | 29 | 2021-09-30T19:32:07.000Z | 2022-03-22T21:06:08.000Z | sdk/python/pulumi_aws_native/cloudwatch/_inputs.py | pulumi/pulumi-aws-native | 1ae4a4d9c2256b2a79ca536f8d8497b28d10e4c3 | [
"Apache-2.0"
] | 232 | 2021-09-30T19:26:26.000Z | 2022-03-31T23:22:06.000Z | sdk/python/pulumi_aws_native/cloudwatch/_inputs.py | pulumi/pulumi-aws-native | 1ae4a4d9c2256b2a79ca536f8d8497b28d10e4c3 | [
"Apache-2.0"
] | 4 | 2021-11-10T19:42:01.000Z | 2022-02-05T10:15:49.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
__a... | 34.272855 | 277 | 0.650115 | 2,741 | 24,368 | 5.587377 | 0.057278 | 0.137186 | 0.093242 | 0.059549 | 0.818283 | 0.763043 | 0.723604 | 0.671303 | 0.658897 | 0.62762 | 0 | 0.000053 | 0.225911 | 24,368 | 710 | 278 | 34.321127 | 0.811854 | 0.074524 | 0 | 0.743446 | 1 | 0 | 0.118986 | 0.046857 | 0 | 0 | 0 | 0 | 0 | 1 | 0.21161 | false | 0.001873 | 0.009363 | 0.076779 | 0.342697 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
c178bd8c2e07ada0f53a2b7fbe1dc0973debe706 | 26,180 | py | Python | clients/client/python/ory_client/api/v0alpha0_api.py | sproutfi/sdk | 5340b37d7b3e8f3c1b8f4c0c16ede05488498620 | [
"Apache-2.0"
] | null | null | null | clients/client/python/ory_client/api/v0alpha0_api.py | sproutfi/sdk | 5340b37d7b3e8f3c1b8f4c0c16ede05488498620 | [
"Apache-2.0"
] | null | null | null | clients/client/python/ory_client/api/v0alpha0_api.py | sproutfi/sdk | 5340b37d7b3e8f3c1b8f4c0c16ede05488498620 | [
"Apache-2.0"
] | null | null | null | """
Ory APIs
Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501
The version of the OpenAPI document: v0.0.1-alpha.71
Contact: support@ory.sh
Generated by: htt... | 38.107715 | 1,091 | 0.525974 | 2,572 | 26,180 | 5.131415 | 0.107309 | 0.031368 | 0.0197 | 0.020458 | 0.822928 | 0.789362 | 0.784816 | 0.778603 | 0.762994 | 0.745492 | 0 | 0.003413 | 0.395569 | 26,180 | 686 | 1,092 | 38.163265 | 0.830637 | 0.418067 | 0 | 0.658257 | 0 | 0 | 0.241694 | 0.060423 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013761 | false | 0 | 0.022936 | 0 | 0.050459 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 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 | 7 |
c1e58d0b130a7a63d186c400ecae78b4b97cb3c9 | 67,643 | py | Python | scripts/update_dreqs/update_dreqs_0002.py | jonseddon/primavera-dmt | 1239044e37f070b925a3d06db68351f285df780c | [
"BSD-3-Clause"
] | null | null | null | scripts/update_dreqs/update_dreqs_0002.py | jonseddon/primavera-dmt | 1239044e37f070b925a3d06db68351f285df780c | [
"BSD-3-Clause"
] | 49 | 2018-11-14T17:00:03.000Z | 2021-12-20T11:04:22.000Z | scripts/update_dreqs/update_dreqs_0002.py | jonseddon/primavera-dmt | 1239044e37f070b925a3d06db68351f285df780c | [
"BSD-3-Clause"
] | 2 | 2018-07-04T10:58:43.000Z | 2018-09-29T14:55:08.000Z | #!/usr/bin/env python2.7
"""
update_dreqs_0002.py
This script is run to add data requests for data that has been received but the
data request spreadsheet indicated would not be generated by this institute.
This file moves files that don't have a variable request out of the submission
directory and intoa spare direct... | 91.533153 | 112 | 0.814452 | 8,998 | 67,643 | 5.641587 | 0.056679 | 0.084254 | 0.096291 | 0.215236 | 0.957233 | 0.95542 | 0.95542 | 0.954731 | 0.953647 | 0.943443 | 0 | 0.393642 | 0.097837 | 67,643 | 738 | 113 | 91.657182 | 0.438197 | 0.02216 | 0 | 0.008876 | 1 | 0 | 0.861605 | 0.855703 | 0 | 0 | 0 | 0 | 0 | 1 | 0.002959 | false | 0 | 0.007396 | 0 | 0.011834 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 12 |
a9acb57ff898bbb52b1c6bb5feaa7acc02684a27 | 176 | py | Python | myriad/testing/util.py | oubiwann/myriad-worlds | bfbbab713e35c5700e37158a892c3a66a8c9f37a | [
"MIT"
] | 3 | 2015-01-29T05:24:32.000Z | 2021-05-10T01:47:36.000Z | myriad/testing/util.py | oubiwann/myriad-worlds | bfbbab713e35c5700e37158a892c3a66a8c9f37a | [
"MIT"
] | null | null | null | myriad/testing/util.py | oubiwann/myriad-worlds | bfbbab713e35c5700e37158a892c3a66a8c9f37a | [
"MIT"
] | null | null | null | import os
def get_top_directory():
import myriad
return os.path.basename(myriad.__path__[0])
def get_test_module():
return get_top_directory().replace("/", ".")
| 17.6 | 48 | 0.698864 | 24 | 176 | 4.708333 | 0.583333 | 0.106195 | 0.265487 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006757 | 0.159091 | 176 | 9 | 49 | 19.555556 | 0.756757 | 0 | 0 | 0 | 0 | 0 | 0.011364 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | true | 0 | 0.333333 | 0.166667 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 8 |
a9da098016e3ce4f3e98e05ef944d1b99716e2d2 | 11,542 | py | Python | checkio/Dropbox/Moore Neighbourhood/test_count_neighbours.py | KenMercusLai/checkio | c7702221e1bc0b0b30425859ffa6c09722949d65 | [
"MIT"
] | 39 | 2015-02-09T13:24:12.000Z | 2019-05-16T17:51:19.000Z | checkio/Dropbox/Moore Neighbourhood/test_count_neighbours.py | KenMercusLai/checkio | c7702221e1bc0b0b30425859ffa6c09722949d65 | [
"MIT"
] | 1 | 2019-10-21T16:18:14.000Z | 2019-10-21T16:18:14.000Z | checkio/Dropbox/Moore Neighbourhood/test_count_neighbours.py | KenMercusLai/checkio | c7702221e1bc0b0b30425859ffa6c09722949d65 | [
"MIT"
] | 22 | 2015-01-30T18:00:05.000Z | 2021-05-22T02:57:23.000Z | import unittest
from count_neighbours import count_neighbours
class Tests(unittest.TestCase):
TESTS = {
"Basics": [
{
"input": (
(
(1, 0, 0, 1, 0),
(0, 1, 0, 0, 0),
(0, 0, 1, 0, 1),
... | 36.64127 | 78 | 0.164616 | 1,499 | 11,542 | 1.258172 | 0.023349 | 0.411453 | 0.38176 | 0.358431 | 0.83245 | 0.820785 | 0.775186 | 0.73807 | 0.73754 | 0.726935 | 0 | 0.354814 | 0.657165 | 11,542 | 314 | 79 | 36.757962 | 0.121809 | 0.001386 | 0 | 0.433225 | 0 | 0 | 0.022648 | 0 | 0 | 0 | 0 | 0 | 0.006515 | 1 | 0.006515 | false | 0 | 0.006515 | 0 | 0.019544 | 0 | 0 | 0 | 1 | null | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 1 | 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 | 13 |
e745eb7633bbb24fa55bcacc129c657dad01b2e0 | 75,932 | py | Python | tests/codec/ber/test_encoder.py | pysnmp/pyasn1 | d52a38c74df682d0b82d771028c145e8aba23ff4 | [
"BSD-2-Clause"
] | null | null | null | tests/codec/ber/test_encoder.py | pysnmp/pyasn1 | d52a38c74df682d0b82d771028c145e8aba23ff4 | [
"BSD-2-Clause"
] | 3 | 2021-11-16T20:28:20.000Z | 2021-11-24T20:27:24.000Z | tests/codec/ber/test_encoder.py | pysnmp/pyasn1 | d52a38c74df682d0b82d771028c145e8aba23ff4 | [
"BSD-2-Clause"
] | null | null | null | #
# This file is part of pyasn1 software.
#
# Copyright (c) 2005-2019, Ilya Etingof <etingof@gmail.com>
# License: http://snmplabs.com/pyasn1/license.html
#
import sys
try:
import unittest2 as unittest
except ImportError:
import unittest
from tests.base import BaseTestCase
from pyasn1.type import tag
from p... | 25.471989 | 88 | 0.396934 | 6,394 | 75,932 | 4.696278 | 0.067876 | 0.03963 | 0.111995 | 0.079659 | 0.856401 | 0.846643 | 0.819868 | 0.775077 | 0.755095 | 0.73235 | 0 | 0.137683 | 0.504043 | 75,932 | 2,980 | 89 | 25.480537 | 0.659683 | 0.011142 | 0 | 0.786121 | 0 | 0 | 0.014909 | 0 | 0 | 0 | 0.004104 | 0 | 0.072052 | 1 | 0.085703 | false | 0.003034 | 0.004551 | 0 | 0.108077 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
99c2f90d99a5ee927b5adda8ec0d45eb2dc837d1 | 165 | py | Python | gui/widgets/py_combo_box/__init__.py | fjl-gj/VideoDownload | 479511e8af091028fe7dae657ca8e9eeb6dd4f57 | [
"MIT"
] | null | null | null | gui/widgets/py_combo_box/__init__.py | fjl-gj/VideoDownload | 479511e8af091028fe7dae657ca8e9eeb6dd4f57 | [
"MIT"
] | null | null | null | gui/widgets/py_combo_box/__init__.py | fjl-gj/VideoDownload | 479511e8af091028fe7dae657ca8e9eeb6dd4f57 | [
"MIT"
] | null | null | null | # PY TITLE BAR
# ///////////////////////////////////////////////////////////////
from . py_combo_box import PyComboBox
from . py_combo_box import set_stylesheet
| 33 | 66 | 0.472727 | 16 | 165 | 4.5625 | 0.625 | 0.164384 | 0.30137 | 0.383562 | 0.547945 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121212 | 165 | 4 | 67 | 41.25 | 0.503448 | 0.460606 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
99ed17fd9be4941716b089627ee5d18cb9490898 | 3,491 | py | Python | core/src/zeit/cms/cmscontent.py | louika/vivi | 3cc213b873d527127aa6f0dd3c79a542299a8a0e | [
"BSD-3-Clause"
] | null | null | null | core/src/zeit/cms/cmscontent.py | louika/vivi | 3cc213b873d527127aa6f0dd3c79a542299a8a0e | [
"BSD-3-Clause"
] | null | null | null | core/src/zeit/cms/cmscontent.py | louika/vivi | 3cc213b873d527127aa6f0dd3c79a542299a8a0e | [
"BSD-3-Clause"
] | null | null | null | import grokcore.component as grok
import six
import six.moves.urllib.parse
import zeit.cms.interfaces
import zeit.cms.workingcopy.interfaces
import zope.component
@grok.adapter(six.string_types[0])
@grok.implementer(zeit.cms.interfaces.ICMSContent)
def unique_id_to_cms_content(unique_id):
parsed = six.moves.urlli... | 37.537634 | 65 | 0.739616 | 479 | 3,491 | 5.219207 | 0.118998 | 0.112 | 0.1292 | 0.0684 | 0.8672 | 0.8672 | 0.8584 | 0.8104 | 0.8104 | 0.8104 | 0 | 0.002608 | 0.121455 | 3,491 | 92 | 66 | 37.945652 | 0.81252 | 0.018906 | 0 | 0.732394 | 0 | 0 | 0.060199 | 0 | 0 | 0 | 0 | 0 | 0.056338 | 1 | 0.126761 | false | 0 | 0.084507 | 0 | 0.338028 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.