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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
900e18a9feea5e16e55f0a94057f5d145f15ff60 | 1,645 | py | Python | keyboardlayout/layouts/__init__.py | spacether/keyboardplotter | 41d89f98c1e9fcecb897484ef9189e4254679a29 | [
"MIT"
] | 3 | 2021-02-10T16:15:01.000Z | 2021-08-31T20:14:23.000Z | keyboardlayout/layouts/__init__.py | spacether/keyboardplotter | 41d89f98c1e9fcecb897484ef9189e4254679a29 | [
"MIT"
] | 2 | 2020-12-21T22:52:03.000Z | 2021-03-07T07:59:53.000Z | keyboardlayout/layouts/__init__.py | spacether/keyboardplotter | 41d89f98c1e9fcecb897484ef9189e4254679a29 | [
"MIT"
] | 4 | 2021-02-28T05:07:08.000Z | 2022-03-16T23:26:18.000Z | from enum import Enum
from importlib import resources
import sys
from typing import Dict
import yaml
current_module = sys.modules[__name__]
YAML_EXTENSION = '.yaml'
# the key names come from keyboardlayout.keyconstant
def __generate_keyboard_layout_enum():
layout_names = []
for file_name in resources.content... | 26.967213 | 75 | 0.690578 | 209 | 1,645 | 5.172249 | 0.425837 | 0.092507 | 0.038853 | 0.048104 | 0.033303 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.220061 | 1,645 | 60 | 76 | 27.416667 | 0.842557 | 0.117933 | 0 | 0 | 0 | 0 | 0.110801 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044444 | false | 0 | 0.111111 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
901074daf3bad2be68523a39d912d03bfb74d56e | 819 | py | Python | backend/app/models/participation.py | gustavoCorreiaGonzalez/hackathon_ccr | 42e1fac0499bcec44b0730ca54e4effcc1014923 | [
"MIT"
] | null | null | null | backend/app/models/participation.py | gustavoCorreiaGonzalez/hackathon_ccr | 42e1fac0499bcec44b0730ca54e4effcc1014923 | [
"MIT"
] | 1 | 2020-06-15T01:49:14.000Z | 2020-06-15T01:49:14.000Z | backend/app/models/participation.py | gustavoCorreiaGonzalez/hackathon_ccr | 42e1fac0499bcec44b0730ca54e4effcc1014923 | [
"MIT"
] | null | null | null | from app import db, ma
class Participation(db.Model):
__tablename__ = 'participations'
id = db.Column(db.Integer, primary_key=True)
event_id = db.Column(db.Integer, nullable=True)
trucker_whatsapp = db.Column(db.String(120), nullable=True)
date = db.Column(db.Date, nullable=True)
def __in... | 34.125 | 90 | 0.705739 | 101 | 819 | 5.445545 | 0.346535 | 0.076364 | 0.072727 | 0.043636 | 0.258182 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004458 | 0.178266 | 819 | 24 | 91 | 34.125 | 0.812779 | 0 | 0 | 0 | 0 | 0 | 0.141463 | 0.029268 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.055556 | 0.055556 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
901966ea23d38e93574dc8cd14ff9fa6626bfb37 | 323 | py | Python | Pre-processing/04_feature_selector.py | mirzask/coding_notes | 93ef268d5b8d02df11710231de50de82b270dca7 | [
"MIT"
] | null | null | null | Pre-processing/04_feature_selector.py | mirzask/coding_notes | 93ef268d5b8d02df11710231de50de82b270dca7 | [
"MIT"
] | null | null | null | Pre-processing/04_feature_selector.py | mirzask/coding_notes | 93ef268d5b8d02df11710231de50de82b270dca7 | [
"MIT"
] | null | null | null | import seaborn as sns
import matplotlib.pyplot as plt
wine = pd.read_csv('https://raw.githubusercontent.com/hadley/rminds/master/1-data/wine.csv').drop('type', axis = 1)
# Create correlation matrix
sns.heatmap(wine.corr(), cmap='viridis'); plt.show()
plt.matshow(wine.corr(), cmap = 'viridis')
plt.colorbar()
plt.sho... | 26.916667 | 115 | 0.73065 | 49 | 323 | 4.795918 | 0.673469 | 0.068085 | 0.102128 | 0.161702 | 0.187234 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006826 | 0.092879 | 323 | 12 | 116 | 26.916667 | 0.795222 | 0.077399 | 0 | 0 | 0 | 0.142857 | 0.296296 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
901e2f3aa622c23f96c14408bb17c6e4288f0386 | 392 | py | Python | files/exercises/libraries-jigsaw-problem.py | mforneris/introduction_to_python_course | 8075973ee89a921a5e2693f649adbf1fc0e0b2cb | [
"CC-BY-4.0"
] | null | null | null | files/exercises/libraries-jigsaw-problem.py | mforneris/introduction_to_python_course | 8075973ee89a921a5e2693f649adbf1fc0e0b2cb | [
"CC-BY-4.0"
] | null | null | null | files/exercises/libraries-jigsaw-problem.py | mforneris/introduction_to_python_course | 8075973ee89a921a5e2693f649adbf1fc0e0b2cb | [
"CC-BY-4.0"
] | 1 | 2020-01-09T10:58:56.000Z | 2020-01-09T10:58:56.000Z | # Jigsaw Puzzle (Parson’s Problem) Programming Example
# Rearrange the following statements so that a random DNA base
# is printed and its index in the string. Not all statements may be needed.
# Feel free to use/add intermediate variables.
bases="ACTTGCTTGAC"
import math
import random
___ = random.randrange(n_base... | 32.666667 | 76 | 0.762755 | 56 | 392 | 5.107143 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.155612 | 392 | 12 | 77 | 32.666667 | 0.864048 | 0.596939 | 0 | 0 | 0 | 0 | 0.214286 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
9027eabc0ea9cbd10b26334c1ccf01ce7d1a8817 | 1,253 | py | Python | devconf/ast/constant.py | everclear72216/ucapi | 7f5afbee6b3b772086d33c2ee37e85e65af61697 | [
"MIT"
] | null | null | null | devconf/ast/constant.py | everclear72216/ucapi | 7f5afbee6b3b772086d33c2ee37e85e65af61697 | [
"MIT"
] | 5 | 2019-03-04T16:17:30.000Z | 2019-05-04T08:34:19.000Z | devconf/ast/constant.py | everclear72216/ucapi | 7f5afbee6b3b772086d33c2ee37e85e65af61697 | [
"MIT"
] | null | null | null | import ast.error
import ast.value
import ast.mixins.node
import ast.mixins.typed
import ast.mixins.named
import ast.mixins.expression
class Constant(ast.mixins.expression.RValueExpression, ast.mixins.named.Named):
def __init__(self):
super().__init__()
def __str__(self):
return 'constant(%s ... | 27.844444 | 83 | 0.64166 | 166 | 1,253 | 4.590361 | 0.259036 | 0.094488 | 0.07874 | 0.041995 | 0.115486 | 0.115486 | 0.115486 | 0.115486 | 0.115486 | 0.115486 | 0 | 0 | 0.228252 | 1,253 | 44 | 84 | 28.477273 | 0.788004 | 0 | 0 | 0.322581 | 0 | 0 | 0.028731 | 0 | 0 | 0 | 0 | 0 | 0.032258 | 1 | 0.225806 | false | 0 | 0.193548 | 0.096774 | 0.580645 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
902b152c7c420de0a0535e4c0dcee2d8b89277b4 | 2,014 | py | Python | tests/network_toplogy.py | sharm294/shoal | db7dd08a70882585fb9740a39b57b4b7a48b3081 | [
"MIT"
] | 1 | 2021-04-12T06:41:33.000Z | 2021-04-12T06:41:33.000Z | tests/network_toplogy.py | UofT-HPRC/shoal | db7dd08a70882585fb9740a39b57b4b7a48b3081 | [
"MIT"
] | null | null | null | tests/network_toplogy.py | UofT-HPRC/shoal | db7dd08a70882585fb9740a39b57b4b7a48b3081 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from mininet.topo import Topo
from mininet.net import Mininet
from mininet.node import CPULimitedHost, OVSController
from mininet.link import TCLink
from mininet.util import dumpNodeConnections
from mininet.log import setLogLevel
from mininet.util import pmonitor
from signal import SIGINT
from ti... | 34.135593 | 70 | 0.615194 | 268 | 2,014 | 4.518657 | 0.421642 | 0.063584 | 0.024773 | 0.034682 | 0.071016 | 0.034682 | 0.034682 | 0 | 0 | 0 | 0 | 0.037584 | 0.260179 | 2,014 | 59 | 71 | 34.135593 | 0.775168 | 0.160874 | 0 | 0 | 0 | 0 | 0.161214 | 0.028554 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.195652 | null | null | 0.152174 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9031d764fdf96db62c82a79d93a806d3ff912476 | 1,127 | py | Python | gensrc/gensrc/utilities/log.py | txu2014/quantlib | 95c7d94906c30d0c3c4e0758a2ebfe2a62b075ec | [
"BSD-3-Clause"
] | null | null | null | gensrc/gensrc/utilities/log.py | txu2014/quantlib | 95c7d94906c30d0c3c4e0758a2ebfe2a62b075ec | [
"BSD-3-Clause"
] | null | null | null | gensrc/gensrc/utilities/log.py | txu2014/quantlib | 95c7d94906c30d0c3c4e0758a2ebfe2a62b075ec | [
"BSD-3-Clause"
] | 1 | 2022-02-24T04:54:18.000Z | 2022-02-24T04:54:18.000Z |
"""
Copyright (C) 2005, 2006, 2007, 2008 Eric Ehlers
This file is part of QuantLib, a free-software/open-source library
for financial quantitative analysts and developers - http://quantlib.org/
QuantLib is free software: you can redistribute it and/or modify it
under the terms of the QuantLib license. You shou... | 35.21875 | 78 | 0.72937 | 167 | 1,127 | 4.922156 | 0.628743 | 0.036496 | 0.036496 | 0.055961 | 0.119221 | 0.119221 | 0.119221 | 0.119221 | 0.119221 | 0 | 0 | 0.017372 | 0.182786 | 1,127 | 31 | 79 | 36.354839 | 0.875136 | 0.055013 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.25 | null | null | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
90327204152e872d05efae4fa427888b7d009cce | 476 | py | Python | virtual/lib/python3.8/site-packages/vote/migrations/0004_auto_20170110_1150.py | erastus-1/GramApp | d926a8a894b5dc673d077b35f9df867dab737372 | [
"MIT"
] | 93 | 2016-08-13T17:03:18.000Z | 2020-04-15T07:18:51.000Z | virtual/lib/python3.8/site-packages/vote/migrations/0004_auto_20170110_1150.py | erastus-1/GramApp | d926a8a894b5dc673d077b35f9df867dab737372 | [
"MIT"
] | 35 | 2016-09-06T13:25:06.000Z | 2020-02-08T10:15:20.000Z | virtual/lib/python3.8/site-packages/vote/migrations/0004_auto_20170110_1150.py | erastus-1/GramApp | d926a8a894b5dc673d077b35f9df867dab737372 | [
"MIT"
] | 43 | 2016-09-29T09:06:52.000Z | 2020-05-07T13:50:18.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.9.5 on 2017-01-10 03:50
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('vote', '0003_vote_action'),
]
operations = [
migrations.AlterUniqueTogether(
... | 22.666667 | 60 | 0.571429 | 49 | 476 | 5.326531 | 0.795918 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06006 | 0.30042 | 476 | 20 | 61 | 23.8 | 0.723724 | 0.140756 | 0 | 0 | 1 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
903da6890cd8c3d5765952d939a1841482cdb5be | 14,653 | py | Python | QA/pycopia/smartbits/smartbits_func.py | kdart/pycopia | 1446fabaedf8c6bdd4ab1fc3f0ea731e0ef8da9d | [
"Apache-2.0"
] | 89 | 2015-03-26T11:25:20.000Z | 2022-01-12T06:25:14.000Z | QA/pycopia/smartbits/smartbits_func.py | kdart/pycopia | 1446fabaedf8c6bdd4ab1fc3f0ea731e0ef8da9d | [
"Apache-2.0"
] | 1 | 2015-07-05T03:27:43.000Z | 2015-07-11T06:21:20.000Z | QA/pycopia/smartbits/smartbits_func.py | kdart/pycopia | 1446fabaedf8c6bdd4ab1fc3f0ea731e0ef8da9d | [
"Apache-2.0"
] | 30 | 2015-04-30T01:35:54.000Z | 2022-01-12T06:19:49.000Z | #!/usr/bin/python2.7
# -*- coding: utf-8 -*-
# vim:ts=4:sw=4:softtabstop=4:smarttab:expandtab
# 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
... | 24.462437 | 83 | 0.866307 | 1,255 | 14,653 | 9.886056 | 0.291633 | 0.323849 | 0.002096 | 0.002579 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001942 | 0.086262 | 14,653 | 598 | 84 | 24.503344 | 0.924714 | 0.048522 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.006944 | 0 | 0.006944 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5f3b23e3911d7099d612cab4ff25f737c10210b5 | 4,207 | py | Python | bitcoinpy/connection.py | obulpathi/bitcoinpy | 8f41e0221f2ff2d35697b6d4e5397deb7de09c3d | [
"MIT"
] | 21 | 2016-01-03T14:52:07.000Z | 2021-08-09T18:05:08.000Z | bitcoinpy/connection.py | obulpathi/bitcoinpy | 8f41e0221f2ff2d35697b6d4e5397deb7de09c3d | [
"MIT"
] | null | null | null | bitcoinpy/connection.py | obulpathi/bitcoinpy | 8f41e0221f2ff2d35697b6d4e5397deb7de09c3d | [
"MIT"
] | 15 | 2015-02-07T20:08:11.000Z | 2019-10-03T04:45:45.000Z | #!/usr/bin/python
import gevent
import gevent.pywsgi
from gevent import Greenlet
import signal
import struct
import socket
import time
import sys
import hashlib
import log
import cStringIO
from common import *
from lib.coredefs import MIN_PROTO_VERSION
from lib.messages import messagemap, msg_version, msg_ping, mess... | 33.125984 | 82 | 0.561208 | 490 | 4,207 | 4.726531 | 0.295918 | 0.075993 | 0.046632 | 0.015112 | 0.102332 | 0.082038 | 0.068221 | 0.018135 | 0 | 0 | 0 | 0.025825 | 0.337295 | 4,207 | 126 | 83 | 33.388889 | 0.804878 | 0.044212 | 0 | 0.192661 | 0 | 0 | 0.051806 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.009174 | 0.12844 | null | null | 0.091743 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5f3c4e049b11ebc1b0155978ef509d64b0512e01 | 165 | py | Python | python-learning/fibo.py | coopersec/research-learning | da65e7999f0f9948c85dc2a74d15b25dbc3f7108 | [
"MIT"
] | 1 | 2022-02-10T23:59:46.000Z | 2022-02-10T23:59:46.000Z | python-learning/fibo.py | coopersec/research-learning | da65e7999f0f9948c85dc2a74d15b25dbc3f7108 | [
"MIT"
] | null | null | null | python-learning/fibo.py | coopersec/research-learning | da65e7999f0f9948c85dc2a74d15b25dbc3f7108 | [
"MIT"
] | null | null | null | import time
def fibo(a=0, b=1):
c = a + b
time.sleep(0.05)
print(c)
fibo(b, c)
def main():
fibo()
if __name__ == "__main__":
main()
| 12.692308 | 26 | 0.490909 | 27 | 165 | 2.703704 | 0.555556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045455 | 0.333333 | 165 | 12 | 27 | 13.75 | 0.618182 | 0 | 0 | 0 | 0 | 0 | 0.048485 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.1 | 0 | 0.3 | 0.1 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5f40c7465d8b0dde6cc78e96c9be219131c70f5f | 8,856 | py | Python | python/utils.py | isoparms/dis.shared | 494e3657f5a5fe2bfe4f88b62efe43d0326b90bf | [
"MIT"
] | null | null | null | python/utils.py | isoparms/dis.shared | 494e3657f5a5fe2bfe4f88b62efe43d0326b90bf | [
"MIT"
] | null | null | null | python/utils.py | isoparms/dis.shared | 494e3657f5a5fe2bfe4f88b62efe43d0326b90bf | [
"MIT"
] | null | null | null | import collections
import timeit
import warnings
import os
from functools import wraps
def make_list(obj, type_=list):
"""
:param obj: any python object. if its iterable, it will return it as is.
:param type_: type of return object
makes sure that obj is an iterable, if its not, it will be put into ... | 26.836364 | 112 | 0.60874 | 1,213 | 8,856 | 4.292663 | 0.245672 | 0.015364 | 0.012483 | 0.008066 | 0.063184 | 0.027271 | 0 | 0 | 0 | 0 | 0 | 0.00335 | 0.292118 | 8,856 | 329 | 113 | 26.917933 | 0.827245 | 0.101174 | 0 | 0.148936 | 0 | 0 | 0.034511 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.042553 | null | null | 0.021277 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5f46c1ff85682c23f0f49fca5775503dea21acd3 | 1,106 | py | Python | tests/python-ref.py | hugoArregui/msgpack-scheme | fa4d363a10008920fe480c1a6a75e16bbbc7a3d4 | [
"BSD-3-Clause"
] | 2 | 2015-02-27T14:13:59.000Z | 2020-11-27T19:10:25.000Z | tests/python-ref.py | hugoArregui/msgpack-scheme | fa4d363a10008920fe480c1a6a75e16bbbc7a3d4 | [
"BSD-3-Clause"
] | 2 | 2016-09-15T00:14:56.000Z | 2019-05-14T14:38:29.000Z | tests/python-ref.py | hugoArregui/msgpack-scheme | fa4d363a10008920fe480c1a6a75e16bbbc7a3d4 | [
"BSD-3-Clause"
] | 2 | 2016-04-06T07:32:21.000Z | 2019-05-13T15:51:26.000Z | import msgpack
ASSERT_TEMPLATE = """
(test-group "%(name)s"
(test "unpack" %(chicken_expr)s (unpack/from-blob (byte-blob %(blob)s)))
(test "pack" (pack/to-blob %(chicken_expr)s) (byte-blob %(blob)s)))
"""
def asChickenAssertion(data, chicken_expr=None, name=None):
blob = ' '.join([hex(b).replace('0', '#', 1) for ... | 30.722222 | 79 | 0.669078 | 155 | 1,106 | 4.619355 | 0.406452 | 0.167598 | 0.046089 | 0.036313 | 0.125698 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048857 | 0.130199 | 1,106 | 35 | 80 | 31.6 | 0.695426 | 0 | 0 | 0 | 0 | 0.068966 | 0.25544 | 0.050142 | 0 | 0 | 0 | 0 | 0.482759 | 1 | 0.068966 | false | 0 | 0.034483 | 0 | 0.137931 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5f46f967a4cc59bf30b03cb8b425774226fae6a4 | 3,794 | py | Python | experiments.py | henryseg/Veering | 50ebdcd5bde582726aefdd564c43e17890651282 | [
"CC0-1.0"
] | 2 | 2020-08-17T21:38:16.000Z | 2021-08-29T21:38:43.000Z | experiments.py | henryseg/Veering | 50ebdcd5bde582726aefdd564c43e17890651282 | [
"CC0-1.0"
] | null | null | null | experiments.py | henryseg/Veering | 50ebdcd5bde582726aefdd564c43e17890651282 | [
"CC0-1.0"
] | null | null | null | #
# experiments.py
#
def get_sub_shapes(census):
sub_tog_tb = []
sub_tog_sides = []
sub_fan_tb = []
sub_fan_sides = []
for sig in census:
tri, angle = taut.isosig_to_tri_angle(sig)
vt = veering.veering_triangulation(tri, angle)
tet_types = vt.tet_types
# num_tog = ... | 34.807339 | 93 | 0.556405 | 500 | 3,794 | 3.924 | 0.252 | 0.024465 | 0.04893 | 0.060652 | 0.440877 | 0.395005 | 0.350153 | 0.32263 | 0.202345 | 0.16157 | 0 | 0.009654 | 0.344755 | 3,794 | 108 | 94 | 35.12963 | 0.779566 | 0.033737 | 0 | 0.188235 | 0 | 0 | 0.014762 | 0 | 0 | 0 | 0 | 0 | 0.011765 | 0 | null | null | 0 | 0 | null | null | 0.023529 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5f517fa2d16a5528df5890fea530a9e34086162a | 5,728 | py | Python | src/deploy/ecs.py | wellcomecollection/weco-deploy | 4e9f91b21c4ee26f7f0e9c6d7de2f851f4a088aa | [
"MIT"
] | null | null | null | src/deploy/ecs.py | wellcomecollection/weco-deploy | 4e9f91b21c4ee26f7f0e9c6d7de2f851f4a088aa | [
"MIT"
] | 26 | 2020-07-07T12:09:23.000Z | 2021-09-16T09:00:49.000Z | src/deploy/ecs.py | wellcomecollection/weco-deploy | 4e9f91b21c4ee26f7f0e9c6d7de2f851f4a088aa | [
"MIT"
] | null | null | null | import collections
import typing
from . import tags
from .iterators import chunked_iterable
from .models import Project
def list_cluster_arns_in_account(ecs_client):
"""
Generates the ARN of every ECS cluster in an account.
"""
paginator = ecs_client.get_paginator("list_clusters")
for page in pa... | 28.216749 | 82 | 0.634253 | 627 | 5,728 | 5.569378 | 0.247209 | 0.036082 | 0.030069 | 0.031501 | 0.301833 | 0.251718 | 0.140321 | 0.058992 | 0.036082 | 0.036082 | 0 | 0.001947 | 0.282821 | 5,728 | 202 | 83 | 28.356436 | 0.848101 | 0.152758 | 0 | 0.265625 | 1 | 0 | 0.082273 | 0.012723 | 0 | 0 | 0 | 0.004951 | 0 | 1 | 0.0625 | false | 0.023438 | 0.039063 | 0 | 0.171875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5f5493880bc9a50d7dbdd8c243dfc0ff5d9ba666 | 526 | py | Python | src/wellsolutions/urls.py | yrrodriguezb/wellsolutions | f66304167f12275bc3e427e3a813e28b56ef0d19 | [
"MIT"
] | null | null | null | src/wellsolutions/urls.py | yrrodriguezb/wellsolutions | f66304167f12275bc3e427e3a813e28b56ef0d19 | [
"MIT"
] | null | null | null | src/wellsolutions/urls.py | yrrodriguezb/wellsolutions | f66304167f12275bc3e427e3a813e28b56ef0d19 | [
"MIT"
] | 1 | 2021-07-30T02:31:29.000Z | 2021-07-30T02:31:29.000Z | from django.conf import settings
from django.conf.urls import include
from django.conf.urls.static import static
from django.contrib import admin
from django.urls import path
urlpatterns = [
path('', include('apps.sitio.urls', namespace='sitio')),
]
if settings.DEBUG:
urlpatterns += static(settings.STATIC_UR... | 30.941176 | 82 | 0.781369 | 69 | 526 | 5.869565 | 0.347826 | 0.123457 | 0.103704 | 0.088889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025641 | 0.110266 | 526 | 17 | 83 | 30.941176 | 0.839744 | 0 | 0 | 0 | 0 | 0 | 0.140417 | 0.102467 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.384615 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
5f5ef0f7123f86f906467f1049c5073a195c6b86 | 5,038 | py | Python | cord/client.py | EveryZooM/cord-client-python | 84915dece3de45ae2be55255b709f1894dbab1f8 | [
"Apache-2.0"
] | null | null | null | cord/client.py | EveryZooM/cord-client-python | 84915dece3de45ae2be55255b709f1894dbab1f8 | [
"Apache-2.0"
] | null | null | null | cord/client.py | EveryZooM/cord-client-python | 84915dece3de45ae2be55255b709f1894dbab1f8 | [
"Apache-2.0"
] | 1 | 2021-01-11T22:12:47.000Z | 2021-01-11T22:12:47.000Z | #
# Copyright (c) 2020 Cord Technologies Limited
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | 33.364238 | 116 | 0.65522 | 625 | 5,038 | 5.2176 | 0.328 | 0.020239 | 0.013493 | 0.013799 | 0.321374 | 0.248083 | 0.210672 | 0.186446 | 0.126342 | 0.126342 | 0 | 0.002474 | 0.277888 | 5,038 | 150 | 117 | 33.586667 | 0.893898 | 0.649861 | 0 | 0.066667 | 0 | 0.033333 | 0.082409 | 0.01981 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
5f68d8ce6e6494397211183e2711f2d5a1d79bbb | 888 | py | Python | dcbr-api/email_service/apps.py | anissa-agahchen/agri-dcbr | aaf74e329506eb7cc8f0f022669c08f6f028835d | [
"Apache-2.0"
] | 1 | 2019-05-15T00:09:36.000Z | 2019-05-15T00:09:36.000Z | dcbr-api/email_service/apps.py | anissa-agahchen/agri-dcbr | aaf74e329506eb7cc8f0f022669c08f6f028835d | [
"Apache-2.0"
] | null | null | null | dcbr-api/email_service/apps.py | anissa-agahchen/agri-dcbr | aaf74e329506eb7cc8f0f022669c08f6f028835d | [
"Apache-2.0"
] | null | null | null | from django.apps import AppConfig
from django.db.models.signals import post_migrate
import logging
LOGGER = logging.getLogger(__name__)
def start_reminder_email_task(sender, **kwargs):
from .tasks import send_reminder_email, send_queued_mail, update_registration_status
# reminder emails are scheduled to run... | 31.714286 | 88 | 0.765766 | 119 | 888 | 5.470588 | 0.487395 | 0.079877 | 0.069124 | 0.067588 | 0.168971 | 0.082949 | 0.082949 | 0 | 0 | 0 | 0 | 0.020325 | 0.168919 | 888 | 27 | 89 | 32.888889 | 0.861789 | 0.216216 | 0 | 0 | 0 | 0 | 0.044863 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.642857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
5f7261e443073a8970450ff37fcd6db5f7734d2d | 909 | py | Python | pages/migrations/0044_auto_20171107_0044.py | JoshZero87/site | c8024b805ff5ff0e16f54dce7bf05097fd2f08e0 | [
"MIT"
] | 4 | 2017-01-29T00:38:41.000Z | 2019-09-04T14:30:24.000Z | pages/migrations/0044_auto_20171107_0044.py | JoshZero87/site | c8024b805ff5ff0e16f54dce7bf05097fd2f08e0 | [
"MIT"
] | 74 | 2017-10-02T04:42:54.000Z | 2022-01-13T00:44:16.000Z | pages/migrations/0044_auto_20171107_0044.py | JoshZero87/site | c8024b805ff5ff0e16f54dce7bf05097fd2f08e0 | [
"MIT"
] | 3 | 2017-03-24T23:26:46.000Z | 2019-10-21T01:16:03.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10.2 on 2017-11-07 00:44
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('wagtailcore', '0030_index_on_pagerevision_created_at'),
... | 32.464286 | 128 | 0.666667 | 101 | 909 | 5.792079 | 0.534653 | 0.054701 | 0.071795 | 0.112821 | 0.365812 | 0.365812 | 0.365812 | 0.365812 | 0.365812 | 0.365812 | 0 | 0.035014 | 0.214521 | 909 | 27 | 129 | 33.666667 | 0.784314 | 0.074807 | 0 | 0.3 | 1 | 0 | 0.224344 | 0.134845 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.15 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5f87e2d01f2a1b24ebfdf8bf67d03cc9e3bf13e1 | 1,760 | py | Python | ee/clickhouse/views/test/test_clickhouse_funnel_person.py | suryatmodulus/posthog | d354305bd05c5e231dced3f1bc33dafcd5875f22 | [
"MIT"
] | 1 | 2021-04-09T09:13:23.000Z | 2021-04-09T09:13:23.000Z | ee/clickhouse/views/test/test_clickhouse_funnel_person.py | suryatmodulus/posthog | d354305bd05c5e231dced3f1bc33dafcd5875f22 | [
"MIT"
] | null | null | null | ee/clickhouse/views/test/test_clickhouse_funnel_person.py | suryatmodulus/posthog | d354305bd05c5e231dced3f1bc33dafcd5875f22 | [
"MIT"
] | null | null | null | import json
from rest_framework import status
from ee.clickhouse.generate_local import GenerateLocal
from ee.clickhouse.util import ClickhouseTestMixin
from posthog.constants import INSIGHT_FUNNELS, TRENDS_FUNNEL
from posthog.test.base import APIBaseTest
class TestFunnelPerson(ClickhouseTestMixin, APIBaseTest):
... | 34.509804 | 115 | 0.602273 | 197 | 1,760 | 5.248731 | 0.406091 | 0.101547 | 0.073501 | 0.060928 | 0.298839 | 0.298839 | 0.298839 | 0.298839 | 0.298839 | 0.298839 | 0 | 0.02903 | 0.25625 | 1,760 | 50 | 116 | 35.2 | 0.760886 | 0 | 0 | 0.285714 | 1 | 0 | 0.134091 | 0 | 0 | 0 | 0 | 0 | 0.190476 | 1 | 0.047619 | false | 0 | 0.142857 | 0 | 0.214286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5f89099585781c413ab0410efba62f8d9fa16793 | 1,691 | py | Python | tests/baseclasses/test_tracker.py | mianasbat/test | 9dc42a376fcdffdaa5db485b64f1e26cb7f19013 | [
"BSD-3-Clause"
] | null | null | null | tests/baseclasses/test_tracker.py | mianasbat/test | 9dc42a376fcdffdaa5db485b64f1e26cb7f19013 | [
"BSD-3-Clause"
] | null | null | null | tests/baseclasses/test_tracker.py | mianasbat/test | 9dc42a376fcdffdaa5db485b64f1e26cb7f19013 | [
"BSD-3-Clause"
] | null | null | null | """
Tests for skcore baseclasses
"""
import pytest
from sksurgerycore.baseclasses.tracker import SKSBaseTracker
def test_tracker_baseclass():
"""
We should throw not implemented error when we make a tracker without
the required functions.
"""
class BadTracker(SKSBaseTracker):# pylint: disable=abs... | 30.196429 | 82 | 0.674157 | 174 | 1,691 | 6.413793 | 0.310345 | 0.081541 | 0.086022 | 0.107527 | 0.494624 | 0.494624 | 0.370968 | 0.177419 | 0 | 0 | 0 | 0 | 0.231224 | 1,691 | 55 | 83 | 30.745455 | 0.858462 | 0.302779 | 0 | 0.233333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.233333 | false | 0.033333 | 0.066667 | 0 | 0.366667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5f8d8b5545a072279c404a36549010bb5c8adc12 | 355 | py | Python | openbook_categories/serializers.py | TamaraAbells/okuna-api | f87d8e80d2f182c01dbce68155ded0078ee707e4 | [
"MIT"
] | 164 | 2019-07-29T17:59:06.000Z | 2022-03-19T21:36:01.000Z | openbook_categories/serializers.py | TamaraAbells/okuna-api | f87d8e80d2f182c01dbce68155ded0078ee707e4 | [
"MIT"
] | 188 | 2019-03-16T09:53:25.000Z | 2019-07-25T14:57:24.000Z | openbook_categories/serializers.py | TamaraAbells/okuna-api | f87d8e80d2f182c01dbce68155ded0078ee707e4 | [
"MIT"
] | 80 | 2019-08-03T17:49:08.000Z | 2022-02-28T16:56:33.000Z | from rest_framework import serializers
from openbook_categories.models import Category
class GetCategoriesCategorySerializer(serializers.ModelSerializer):
class Meta:
model = Category
fields = (
'id',
'name',
'title',
'description',
'avat... | 22.1875 | 67 | 0.566197 | 26 | 355 | 7.653846 | 0.807692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.357746 | 355 | 15 | 68 | 23.666667 | 0.872807 | 0 | 0 | 0 | 0 | 0 | 0.092958 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.307692 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5f8d9ae9df32fb3ecd4407680364a5b898d5ac2c | 685 | py | Python | blousebrothers/cards/migrations/0004_auto_20170822_1431.py | sladinji/blousebrothers | 461de3ba011c0aaed3f0014136c4497b6890d086 | [
"MIT"
] | 1 | 2022-01-27T11:58:10.000Z | 2022-01-27T11:58:10.000Z | blousebrothers/cards/migrations/0004_auto_20170822_1431.py | sladinji/blousebrothers | 461de3ba011c0aaed3f0014136c4497b6890d086 | [
"MIT"
] | 5 | 2021-03-19T00:01:54.000Z | 2022-03-11T23:46:21.000Z | blousebrothers/cards/migrations/0004_auto_20170822_1431.py | sladinji/blousebrothers | 461de3ba011c0aaed3f0014136c4497b6890d086 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2017-08-22 14:31
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('cards', '0003_session_revision'),
]
operations = [
migrations.AlterField(
... | 26.346154 | 87 | 0.620438 | 73 | 685 | 5.60274 | 0.60274 | 0.07824 | 0.122249 | 0.141809 | 0.366748 | 0.215159 | 0.215159 | 0 | 0 | 0 | 0 | 0.039683 | 0.264234 | 685 | 25 | 88 | 27.4 | 0.771825 | 0.09781 | 0 | 0.333333 | 1 | 0 | 0.146341 | 0.034146 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5f92524a26ccd3d929e04a31631f1af7282dd671 | 3,919 | py | Python | test/test12-vpt-2022/trace_generator.py | pyrv/pycontract | 4e0798ac504c6c99a9e917452008110d9eb52711 | [
"Apache-2.0"
] | null | null | null | test/test12-vpt-2022/trace_generator.py | pyrv/pycontract | 4e0798ac504c6c99a9e917452008110d9eb52711 | [
"Apache-2.0"
] | null | null | null | test/test12-vpt-2022/trace_generator.py | pyrv/pycontract | 4e0798ac504c6c99a9e917452008110d9eb52711 | [
"Apache-2.0"
] | null | null | null | from typing import List
import os
"""
Event counter. Is counted up for each new event (row in CSV file) generated.
"""
event_count = 0
"""
Counting commands being issued. Used as second argument
to events (the 'nr'). First generated will be 0.
"""
command_counter: int = 0
"""
The file written to.
"""
file = None
d... | 23.467066 | 90 | 0.624139 | 554 | 3,919 | 4.344765 | 0.258123 | 0.054009 | 0.034898 | 0.037391 | 0.24221 | 0.235978 | 0.192356 | 0.171167 | 0.171167 | 0.171167 | 0 | 0.028775 | 0.246236 | 3,919 | 166 | 91 | 23.608434 | 0.786053 | 0.330697 | 0 | 0.169014 | 1 | 0 | 0.201576 | 0.111214 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15493 | false | 0 | 0.028169 | 0 | 0.197183 | 0.042254 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5f954d791af0856b8e29b5aa83174cdd5ff5f275 | 731 | py | Python | lightnlp/sl/ner/utils/convert.py | CNLPT/lightNLP | c7f128422ba5b16f514bb294145cb3b562e95829 | [
"Apache-2.0"
] | 889 | 2019-03-11T00:58:46.000Z | 2022-03-27T07:12:06.000Z | lightnlp/sl/ner/utils/convert.py | CNLPT/lightNLP | c7f128422ba5b16f514bb294145cb3b562e95829 | [
"Apache-2.0"
] | 14 | 2019-03-25T09:21:38.000Z | 2020-12-28T11:41:55.000Z | lightnlp/sl/ner/utils/convert.py | CNLPT/lightNLP | c7f128422ba5b16f514bb294145cb3b562e95829 | [
"Apache-2.0"
] | 237 | 2019-03-19T08:30:17.000Z | 2022-03-14T03:38:30.000Z | def iob_ranges(words, tags):
"""
IOB -> Ranges
"""
assert len(words) == len(tags)
ranges = []
def check_if_closing_range():
if i == len(tags) - 1 or tags[i + 1].split('_')[0] == 'O':
ranges.append({
'entity': ''.join(words[begin: i + 1]),
'typ... | 27.074074 | 66 | 0.439124 | 84 | 731 | 3.619048 | 0.392857 | 0.078947 | 0.138158 | 0.1875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017897 | 0.388509 | 731 | 26 | 67 | 28.115385 | 0.662192 | 0.017784 | 0 | 0.095238 | 0 | 0 | 0.038462 | 0 | 0 | 0 | 0 | 0 | 0.047619 | 1 | 0.095238 | false | 0.047619 | 0 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5f9af9c40b0c43337f7b64bfdb60fad8c6165e2c | 2,307 | py | Python | classType.py | Andreby42/learn_python_hardway | fe0a5bd7dc045f13a62268b2b628841daae4411c | [
"Apache-2.0"
] | null | null | null | classType.py | Andreby42/learn_python_hardway | fe0a5bd7dc045f13a62268b2b628841daae4411c | [
"Apache-2.0"
] | null | null | null | classType.py | Andreby42/learn_python_hardway | fe0a5bd7dc045f13a62268b2b628841daae4411c | [
"Apache-2.0"
] | null | null | null | ##创建自定义类
class Person:
def set_name(self,name):
self.name=name;
def get_name(self):
return self.name
def say_hello(self):
print("hello"+self.name);
def to_str(self):
print(self.name())
person=Person();
person.set_name("lily")
print(str(person));
##属性函数与方法
##函数与方法的区别:方法位于... | 23.783505 | 67 | 0.671435 | 317 | 2,307 | 4.750789 | 0.287066 | 0.053785 | 0.027888 | 0.029216 | 0.034529 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00316 | 0.176853 | 2,307 | 96 | 68 | 24.03125 | 0.789889 | 0.143043 | 0 | 0 | 0 | 0 | 0.109054 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25641 | false | 0 | 0 | 0.038462 | 0.384615 | 0.320513 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5fa6d9a889918b96ed33f7b24c6578f8ce69f97c | 586 | py | Python | pacientes/migrations/0006_paciente_medico.py | nachochiappe/tr | 312c02db8468c077094acf8163a8473e3f324f8e | [
"MIT"
] | null | null | null | pacientes/migrations/0006_paciente_medico.py | nachochiappe/tr | 312c02db8468c077094acf8163a8473e3f324f8e | [
"MIT"
] | null | null | null | pacientes/migrations/0006_paciente_medico.py | nachochiappe/tr | 312c02db8468c077094acf8163a8473e3f324f8e | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2017-12-08 16:13
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('medicos', '0001_initial'),
('pacientes', '0005_auto... | 25.478261 | 113 | 0.643345 | 67 | 586 | 5.462687 | 0.716418 | 0.065574 | 0.076503 | 0.120219 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081858 | 0.228669 | 586 | 22 | 114 | 26.636364 | 0.727876 | 0.116041 | 0 | 0 | 1 | 0 | 0.153398 | 0.04466 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5faf8862891b41828d46c182140c7d99ac5cb3b8 | 1,523 | py | Python | main.py | Leon20082008/Code_ | 5632c6447474f57ff869fb6128e5ffdc8898feee | [
"CC0-1.0"
] | 1 | 2021-08-05T14:34:23.000Z | 2021-08-05T14:34:23.000Z | main.py | Leon20082008/Code_ | 5632c6447474f57ff869fb6128e5ffdc8898feee | [
"CC0-1.0"
] | null | null | null | main.py | Leon20082008/Code_ | 5632c6447474f57ff869fb6128e5ffdc8898feee | [
"CC0-1.0"
] | null | null | null | # Здесь должен быть твой код
import pandas as pd
import time
start_time = time.time()
def fill_sex(sex):
if sex == 'M':
return 1
return 0
def fill_yes_no(item):
if item == 'yes'
return 1
return 0
def fill_address(item):
if item == 'Urban':
return 1
... | 22.397059 | 108 | 0.5522 | 216 | 1,523 | 3.824074 | 0.324074 | 0.094431 | 0.060533 | 0.084746 | 0.153753 | 0.153753 | 0.077482 | 0.077482 | 0 | 0 | 0 | 0.033081 | 0.305318 | 1,523 | 67 | 109 | 22.731343 | 0.747637 | 0 | 0 | 0.384615 | 0 | 0 | 0.207719 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.038462 | null | null | 0.019231 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5fb272ff1d099bbd2f959aebc07136ae28ee15f3 | 2,873 | py | Python | nutricionistas/nutri_app/migrations/0001_initial.py | karinamg17/nutricionistas | d7cac627fd25692f9db88525d1b8da326f1dde5f | [
"MIT"
] | null | null | null | nutricionistas/nutri_app/migrations/0001_initial.py | karinamg17/nutricionistas | d7cac627fd25692f9db88525d1b8da326f1dde5f | [
"MIT"
] | null | null | null | nutricionistas/nutri_app/migrations/0001_initial.py | karinamg17/nutricionistas | d7cac627fd25692f9db88525d1b8da326f1dde5f | [
"MIT"
] | null | null | null | # Generated by Django 3.1.13 on 2021-11-28 12:45
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
op... | 51.303571 | 173 | 0.624782 | 300 | 2,873 | 5.82 | 0.3 | 0.056701 | 0.114548 | 0.137457 | 0.63803 | 0.57331 | 0.55441 | 0.55441 | 0.499427 | 0.27606 | 0 | 0.017391 | 0.239471 | 2,873 | 55 | 174 | 52.236364 | 0.781693 | 0.016011 | 0 | 0.3125 | 1 | 0 | 0.124956 | 0.041062 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.145833 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5fb4d90e7a1938d8bf12078ff3142eb02f6fb665 | 614 | py | Python | Python3/0098-Validate-Binary-Search-Tree/soln-1.py | wyaadarsh/LeetCode-Solutions | 3719f5cb059eefd66b83eb8ae990652f4b7fd124 | [
"MIT"
] | 5 | 2020-07-24T17:48:59.000Z | 2020-12-21T05:56:00.000Z | Python3/0098-Validate-Binary-Search-Tree/soln-1.py | zhangyaqi1989/LeetCode-Solutions | 2655a1ffc8678ad1de6c24295071308a18c5dc6e | [
"MIT"
] | null | null | null | Python3/0098-Validate-Binary-Search-Tree/soln-1.py | zhangyaqi1989/LeetCode-Solutions | 2655a1ffc8678ad1de6c24295071308a18c5dc6e | [
"MIT"
] | 2 | 2020-07-24T17:49:01.000Z | 2020-08-31T19:57:35.000Z | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
def isValidBST(self, root: TreeNode) -> bool:
self.prev = None
def valid(node):
if node:
if n... | 27.909091 | 59 | 0.485342 | 68 | 614 | 4.323529 | 0.426471 | 0.108844 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.431596 | 614 | 21 | 60 | 29.238095 | 0.842407 | 0.242671 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
5fccc65622c6d981c1666de6784f9f93091b9886 | 8,027 | py | Python | CPP/FirewallSimulator/corpora/graphing.py | IdkwhatImD0ing/AlgorithmPractice | 2d8d68a6d0168e873d61d1e3873e882bcdaf003f | [
"MIT"
] | null | null | null | CPP/FirewallSimulator/corpora/graphing.py | IdkwhatImD0ing/AlgorithmPractice | 2d8d68a6d0168e873d61d1e3873e882bcdaf003f | [
"MIT"
] | null | null | null | CPP/FirewallSimulator/corpora/graphing.py | IdkwhatImD0ing/AlgorithmPractice | 2d8d68a6d0168e873d61d1e3873e882bcdaf003f | [
"MIT"
] | null | null | null | import os
import time
# makes graphs.
MIN_SIZE = 1048576 - 1000000
MAX_SIZE = 1048576
os.system("make")
regenData = True
if regenData:
os.system('rm -r data')
os.system('mkdir data; mkdir graphs')
copora = "/home/jzhan411/CSE13S-resources/corpora"
# I flattened my copora directory for simplicty, if you do not wa... | 34.748918 | 98 | 0.531332 | 1,056 | 8,027 | 3.982008 | 0.135417 | 0.055172 | 0.053508 | 0.074197 | 0.743876 | 0.729608 | 0.624019 | 0.54459 | 0.448514 | 0.386207 | 0 | 0.027768 | 0.318052 | 8,027 | 230 | 99 | 34.9 | 0.740409 | 0.089448 | 0 | 0.536313 | 0 | 0.011173 | 0.234454 | 0.067811 | 0 | 0 | 0 | 0 | 0 | 1 | 0.005587 | false | 0 | 0.011173 | 0 | 0.022346 | 0.027933 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5fcdcdf906c02b613b2f77e1a002c617ea16c78c | 1,783 | py | Python | astrologicalSign.py | Deez225/pythonCode | 34808ef90e4f4407c96221663fb35d659b04b77f | [
"MIT"
] | 3 | 2018-02-21T06:39:18.000Z | 2019-01-09T18:56:23.000Z | astrologicalSign.py | Deez225/pythonCode | 34808ef90e4f4407c96221663fb35d659b04b77f | [
"MIT"
] | null | null | null | astrologicalSign.py | Deez225/pythonCode | 34808ef90e4f4407c96221663fb35d659b04b77f | [
"MIT"
] | null | null | null | def astr(jour, mois):
if (mois == 3 and (jour >= 21 and jour <= 31)) or (mois == 4 and (jour >= 1 and jour <= 20)):
return "Belier"
elif (mois == 4 and (jour >= 21 and jour <= 30) or (mois == 5 and (jour >= 1 and jour <= 21))):
return "Taureau"
elif (mois == 5 and (jour >= 22 and jo... | 50.942857 | 102 | 0.508132 | 269 | 1,783 | 3.36803 | 0.200743 | 0.370861 | 0.12362 | 0.145695 | 0.603753 | 0.49117 | 0.49117 | 0.211921 | 0 | 0 | 0 | 0.093827 | 0.318564 | 1,783 | 34 | 103 | 52.441176 | 0.651852 | 0.011217 | 0 | 0 | 0 | 0 | 0.088593 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0 | 0 | 0 | 0.433333 | 0.033333 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5fcf025fae5d2155fb8aa030378aaf527522dd49 | 5,878 | py | Python | backend/users/tests/test_views.py | NimaAram1/TickEcommerce | 8ceb65e767b4c8d4772ba376b489d63745437c37 | [
"MIT"
] | null | null | null | backend/users/tests/test_views.py | NimaAram1/TickEcommerce | 8ceb65e767b4c8d4772ba376b489d63745437c37 | [
"MIT"
] | null | null | null | backend/users/tests/test_views.py | NimaAram1/TickEcommerce | 8ceb65e767b4c8d4772ba376b489d63745437c37 | [
"MIT"
] | 1 | 2021-08-11T08:21:21.000Z | 2021-08-11T08:21:21.000Z | from os import stat
from django.contrib.auth import get_user_model
from django.contrib.auth.tokens import PasswordResetTokenGenerator
from django.utils.encoding import smart_str, smart_bytes
from django.utils.http import urlsafe_base64_decode, urlsafe_base64_encode
from django.test.utils import override_settings
from r... | 46.650794 | 173 | 0.739197 | 712 | 5,878 | 5.707865 | 0.158708 | 0.060778 | 0.03937 | 0.049213 | 0.549705 | 0.393701 | 0.35753 | 0.317913 | 0.295768 | 0.200787 | 0 | 0.019116 | 0.172338 | 5,878 | 125 | 174 | 47.024 | 0.816238 | 0.022967 | 0 | 0.174419 | 0 | 0 | 0.135031 | 0.051291 | 0 | 0 | 0 | 0 | 0.116279 | 1 | 0.116279 | false | 0.27907 | 0.139535 | 0 | 0.267442 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
5fd056056996755263cd4cc916f022b04061f658 | 11,251 | py | Python | run.py | TShoKT/SA-MP-PY-Control-Panel | 41f596f1c7cb23dec1bf744984423726dfb173e0 | [
"MIT"
] | 7 | 2021-05-19T19:35:01.000Z | 2022-02-07T16:37:23.000Z | run.py | TShoKT/SA-MP-PY-Control-Panel | 41f596f1c7cb23dec1bf744984423726dfb173e0 | [
"MIT"
] | null | null | null | run.py | TShoKT/SA-MP-PY-Control-Panel | 41f596f1c7cb23dec1bf744984423726dfb173e0 | [
"MIT"
] | 1 | 2021-09-22T04:39:50.000Z | 2021-09-22T04:39:50.000Z | import time
import os
try:
from samp_client.client import SampClient
from samp_client.exceptions import SampError, RconError, InvalidRconPassword, ConnectionError
except ImportError:
os.system("pip install samp-client")
#♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥#
CJERROR = lambda : write('Ah... | 33.188791 | 188 | 0.54093 | 1,343 | 11,251 | 4.526433 | 0.180194 | 0.03948 | 0.055272 | 0.04277 | 0.323573 | 0.222076 | 0.186544 | 0.152986 | 0.124363 | 0.124363 | 0 | 0.013786 | 0.258555 | 11,251 | 339 | 189 | 33.188791 | 0.701031 | 0.01031 | 0 | 0.355556 | 0 | 0.012698 | 0.396553 | 0.065969 | 0 | 0 | 0 | 0 | 0 | 1 | 0.079365 | false | 0.069841 | 0.015873 | 0 | 0.120635 | 0.009524 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
5fd12a6a12e90e30305105c5e43116036142c612 | 354 | py | Python | blockchain.py | bhaskar-nair2/Blockchain | 219128aa9c8c10002319ccf23c656527ff0cd11e | [
"MIT"
] | null | null | null | blockchain.py | bhaskar-nair2/Blockchain | 219128aa9c8c10002319ccf23c656527ff0cd11e | [
"MIT"
] | null | null | null | blockchain.py | bhaskar-nair2/Blockchain | 219128aa9c8c10002319ccf23c656527ff0cd11e | [
"MIT"
] | null | null | null | from block import Block
import datetime
block_chain = [Block.create_genesis_block()]
print("hash %s" % block_chain[-1].hash)
to_add = 10
for _ in range(1, to_add):
block_chain.append(Block(block_chain[-1].hash,
"DATA!", datetime.datetime.now()))
print("Block #%d hash... | 25.285714 | 64 | 0.610169 | 48 | 354 | 4.25 | 0.4375 | 0.245098 | 0.098039 | 0.147059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018587 | 0.240113 | 354 | 13 | 65 | 27.230769 | 0.739777 | 0 | 0 | 0 | 0 | 0 | 0.085044 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.222222 | 0.222222 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3958153268ea6419860608ca588a52c4b53ef5da | 404 | py | Python | setup.py | nvllsvm/pipns | e4a218486b0ce60bb8e49efdaf153a978204276f | [
"MIT"
] | null | null | null | setup.py | nvllsvm/pipns | e4a218486b0ce60bb8e49efdaf153a978204276f | [
"MIT"
] | null | null | null | setup.py | nvllsvm/pipns | e4a218486b0ce60bb8e49efdaf153a978204276f | [
"MIT"
] | null | null | null | import setuptools
setuptools.setup(
name='pipns',
version='0.0.12',
author='Andrew Rabert',
author_email='ar@nullsum.net',
url='https://github.com/nvllsvm/pipns',
license='MIT',
packages=['pipns'],
entry_points={'console_scripts': ['pipns=pipns.__main__:main']},
package_data={'pipns... | 26.933333 | 68 | 0.641089 | 48 | 404 | 5.1875 | 0.770833 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017544 | 0.153465 | 404 | 14 | 69 | 28.857143 | 0.710526 | 0 | 0 | 0 | 0 | 0 | 0.361386 | 0.061881 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.076923 | 0 | 0.076923 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
395d1c6581d5d889b46b03774f6f95aff0267487 | 1,665 | py | Python | Day8/caesar_cipher.py | Abubutt/My100DaysOfCode | d049185547f0101f5b97517399efdbbb3a5c6496 | [
"MIT"
] | null | null | null | Day8/caesar_cipher.py | Abubutt/My100DaysOfCode | d049185547f0101f5b97517399efdbbb3a5c6496 | [
"MIT"
] | null | null | null | Day8/caesar_cipher.py | Abubutt/My100DaysOfCode | d049185547f0101f5b97517399efdbbb3a5c6496 | [
"MIT"
] | null | null | null | # Project 8
from art import logo
alphabet = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y',
'z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z']
... | 40.609756 | 146 | 0.542342 | 248 | 1,665 | 3.620968 | 0.41129 | 0.072383 | 0.056793 | 0.060134 | 0.206013 | 0.206013 | 0.206013 | 0.155902 | 0.057906 | 0.057906 | 0 | 0.004122 | 0.271471 | 1,665 | 40 | 147 | 41.625 | 0.736191 | 0.261862 | 0 | 0.076923 | 0 | 0.038462 | 0.180851 | 0 | 0 | 0 | 0 | 0.025 | 0 | 1 | 0.038462 | false | 0 | 0.038462 | 0 | 0.076923 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3972da58d0cd5e6cb68b4193442f2a2e19787b50 | 1,171 | py | Python | hallo/test/modules/dailys/dailys_spreadsheet_mock.py | SpangleLabs/Hallo | 17145d8f76552ecd4cbc5caef8924bd2cf0cbf24 | [
"MIT"
] | 1 | 2022-01-27T13:25:01.000Z | 2022-01-27T13:25:01.000Z | hallo/test/modules/dailys/dailys_spreadsheet_mock.py | joshcoales/Hallo | 17145d8f76552ecd4cbc5caef8924bd2cf0cbf24 | [
"MIT"
] | 75 | 2015-09-26T18:07:18.000Z | 2022-01-04T07:15:11.000Z | hallo/test/modules/dailys/dailys_spreadsheet_mock.py | SpangleLabs/Hallo | 17145d8f76552ecd4cbc5caef8924bd2cf0cbf24 | [
"MIT"
] | 1 | 2021-04-10T12:02:47.000Z | 2021-04-10T12:02:47.000Z | from hallo.modules.dailys.dailys_spreadsheet import DailysSpreadsheet
class DailysSpreadsheetMock(DailysSpreadsheet):
def __init__(self, user, destination, saved_data=None):
"""
:type user: User
:type destination: Channel | None
:type saved_data: dict[str, dict[date, dict]]
... | 33.457143 | 73 | 0.607173 | 142 | 1,171 | 4.753521 | 0.260563 | 0.133333 | 0.134815 | 0.106667 | 0.340741 | 0.284444 | 0.207407 | 0.100741 | 0 | 0 | 0 | 0 | 0.280102 | 1,171 | 34 | 74 | 34.441176 | 0.800712 | 0.192997 | 0 | 0 | 0 | 0 | 0.028025 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.071429 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3976832a3afcc85d0f0165bd75e589fc8617f980 | 1,605 | py | Python | backend/lists/admin.py | Neo6666666/checklists | cc4eb1685b63f64620742843b444bad21e74214a | [
"MIT"
] | 1 | 2019-12-25T07:50:09.000Z | 2019-12-25T07:50:09.000Z | backend/lists/admin.py | Neo6666666/checklists | cc4eb1685b63f64620742843b444bad21e74214a | [
"MIT"
] | 176 | 2019-11-07T07:08:27.000Z | 2022-03-12T00:04:50.000Z | backend/lists/admin.py | Neo6666666/checklists | cc4eb1685b63f64620742843b444bad21e74214a | [
"MIT"
] | 4 | 2020-07-20T06:48:27.000Z | 2021-06-29T08:04:26.000Z | from django.contrib import admin
from django.contrib.contenttypes.admin import GenericTabularInline
from .models import (Response, Survey, Question,
Answer, Report, Attachment, MapNode)
from import_export.admin import ImportExportActionModelAdmin
class QuestionInline(admin.TabularInline):
mo... | 25.47619 | 66 | 0.717134 | 155 | 1,605 | 7.309677 | 0.412903 | 0.068844 | 0.103266 | 0.075905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00223 | 0.161994 | 1,605 | 62 | 67 | 25.887097 | 0.840149 | 0 | 0 | 0.046512 | 0 | 0 | 0.112773 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.023256 | 0.162791 | 0 | 0.883721 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
39833dfefb0cf2579db98773624b2085f1ca10b0 | 317 | py | Python | LeetCode/Easy/FlippingAnImage.py | ukayaj620/cp-solution | 9871c753f17b6af612d4c7a9045afe079e30de86 | [
"Apache-2.0"
] | 1 | 2021-01-30T07:48:30.000Z | 2021-01-30T07:48:30.000Z | LeetCode/Easy/FlippingAnImage.py | ukayaj620/cp-solution | 9871c753f17b6af612d4c7a9045afe079e30de86 | [
"Apache-2.0"
] | 1 | 2021-07-12T11:31:11.000Z | 2021-07-12T11:31:11.000Z | LeetCode/Easy/FlippingAnImage.py | ukayaj620/cp-solution | 9871c753f17b6af612d4c7a9045afe079e30de86 | [
"Apache-2.0"
] | 6 | 2020-12-20T14:31:30.000Z | 2021-07-16T04:09:35.000Z | class Solution:
def flipAndInvertImage(self, image: List[List[int]]) -> List[List[int]]:
image_width = len(image)
for idx, row in enumerate(image):
image[idx] = []
for element in row:
image[idx] = [1 - element] + image[idx]
return image | 35.222222 | 76 | 0.526814 | 36 | 317 | 4.611111 | 0.5 | 0.144578 | 0.13253 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004878 | 0.353312 | 317 | 9 | 77 | 35.222222 | 0.804878 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
398426006e7d250371e5cba25d8a6a1855ac478b | 8,007 | py | Python | sotabench.py | deepparrot/vision | 00c4508e7ac4396bee8d32c36783f07315165106 | [
"BSD-3-Clause"
] | null | null | null | sotabench.py | deepparrot/vision | 00c4508e7ac4396bee8d32c36783f07315165106 | [
"BSD-3-Clause"
] | null | null | null | sotabench.py | deepparrot/vision | 00c4508e7ac4396bee8d32c36783f07315165106 | [
"BSD-3-Clause"
] | null | null | null | import PIL
import torch
import torchvision
import tqdm
from torchbench.image_classification import ImageNet
import torchvision.transforms as transforms
import PIL
import torchvision.models as models
# DEEP RESIDUAL LEARNING
# Define the transforms need to convert ImageNet data to expected model input
normalize = tr... | 23.480938 | 77 | 0.717497 | 1,084 | 8,007 | 5.037823 | 0.143911 | 0.161509 | 0.124886 | 0.158945 | 0.770372 | 0.732283 | 0.618934 | 0.529207 | 0.529207 | 0.529207 | 0 | 0.099313 | 0.163732 | 8,007 | 340 | 78 | 23.55 | 0.716249 | 0.027476 | 0 | 0.568841 | 0 | 0 | 0.125772 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.028986 | 0 | 0.028986 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
39851e10b60341837702db2b2b27a2615b57dd7b | 714 | py | Python | survey/_builtin/__init__.py | guillorygrant/social-disclosure | c88a02d842175bfb00eda61818030f9ce0a75999 | [
"CC0-1.0"
] | 2 | 2019-02-25T21:50:37.000Z | 2019-02-25T21:50:37.000Z | survey/_builtin/__init__.py | guillorygrant/social-disclosure | c88a02d842175bfb00eda61818030f9ce0a75999 | [
"CC0-1.0"
] | 6 | 2020-02-12T01:13:07.000Z | 2022-02-11T03:40:32.000Z | screening/_builtin/__init__.py | amohseni/Minority-Majority-Experiment | d8567b01af565fcfd8ba41bf23e6496545d2dfa0 | [
"CC0-1.0"
] | 3 | 2019-02-25T21:50:27.000Z | 2021-02-20T10:52:03.000Z | # Don't change anything in this file.
from .. import models
import otree.views
import otree.test
from otree.common import Currency as c, currency_range
class Page(otree.views.Page):
z_models = models
def z_autocomplete(self):
self.subsession = models.Subsession()
self.group = models.Group()
... | 21.636364 | 54 | 0.672269 | 90 | 714 | 5.266667 | 0.322222 | 0.063291 | 0.101266 | 0.126582 | 0.590717 | 0.590717 | 0.590717 | 0.590717 | 0.590717 | 0.590717 | 0 | 0 | 0.222689 | 714 | 32 | 55 | 22.3125 | 0.854054 | 0.04902 | 0 | 0.65 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
39866cfb3f6abe729dad6ebee2a3767f8330edce | 9,206 | py | Python | MITx/6002x/random_walks.py | Mdlkxzmcp/various_python | be4f873c6263e3db11177bbccce2aa465514294d | [
"MIT"
] | null | null | null | MITx/6002x/random_walks.py | Mdlkxzmcp/various_python | be4f873c6263e3db11177bbccce2aa465514294d | [
"MIT"
] | null | null | null | MITx/6002x/random_walks.py | Mdlkxzmcp/various_python | be4f873c6263e3db11177bbccce2aa465514294d | [
"MIT"
] | null | null | null | import random
import math
import matplotlib.pyplot as plt
import matplotlib.pylab as pylab
class Location(object):
def __init__(self, x, y):
"""x and y are floats"""
self.x = x
self.y = y
def move(self, delta_X, delta_Y):
"""delta_X and delta_Y are floats"""
return Lo... | 33.115108 | 106 | 0.640886 | 1,278 | 9,206 | 4.362285 | 0.136933 | 0.064574 | 0.060628 | 0.027265 | 0.448969 | 0.404305 | 0.336861 | 0.267265 | 0.232825 | 0.203767 | 0 | 0.02028 | 0.239409 | 9,206 | 277 | 107 | 33.234657 | 0.775921 | 0.023897 | 0 | 0.314136 | 0 | 0 | 0.0633 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.020942 | null | null | 0.026178 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3987b5455d196757db8e13a2bd853368f6ae18ab | 8,403 | py | Python | skyapi/skyapiclient.py | jpipas/python-skyapi | 0705709108667d2780d63367cd703e9efa84c14e | [
"MIT"
] | 1 | 2019-01-09T02:40:11.000Z | 2019-01-09T02:40:11.000Z | skyapi/skyapiclient.py | jpipas/python-skyapi | 0705709108667d2780d63367cd703e9efa84c14e | [
"MIT"
] | null | null | null | skyapi/skyapiclient.py | jpipas/python-skyapi | 0705709108667d2780d63367cd703e9efa84c14e | [
"MIT"
] | null | null | null | # coding=utf-8
"""
Blackbaud SKY Api SDK
Documentation: https://developer.sky.blackbaud.com/docs/services/
"""
from __future__ import unicode_literals
import functools
import re
import requests
from requests.auth import HTTPBasicAuth
# Handle library reorganisation Python 2 > Python 3.
try:
from urllib.parse impo... | 32.952941 | 135 | 0.574438 | 943 | 8,403 | 4.983033 | 0.179215 | 0.030432 | 0.017238 | 0.024899 | 0.494999 | 0.494361 | 0.459459 | 0.441796 | 0.441796 | 0.441796 | 0 | 0.006797 | 0.334642 | 8,403 | 254 | 136 | 33.082677 | 0.833661 | 0.021064 | 0 | 0.582822 | 0 | 0 | 0.04573 | 0.003867 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.01227 | 0.067485 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
398ff01856ed1eb10bceb4c60d870351b65e1a04 | 251 | py | Python | AtCoder/ABC106/B.py | takaaki82/Java-Lessons | c4f11462bf84c091527dde5f25068498bfb2cc49 | [
"MIT"
] | 1 | 2018-11-25T04:15:45.000Z | 2018-11-25T04:15:45.000Z | AtCoder/ABC106/B.py | takaaki82/Java-Lessons | c4f11462bf84c091527dde5f25068498bfb2cc49 | [
"MIT"
] | null | null | null | AtCoder/ABC106/B.py | takaaki82/Java-Lessons | c4f11462bf84c091527dde5f25068498bfb2cc49 | [
"MIT"
] | 2 | 2018-08-08T13:01:14.000Z | 2018-11-25T12:38:36.000Z | N = int(input())
odds = [i for i in range(1, N+1) if i % 2 != 0]
result = []
for odd in odds:
z = []
for i in range(1, odd+1):
if odd % i == 0:
z.append(i)
if len(z) == 8:
result.append(z)
print(len(result))
| 16.733333 | 47 | 0.466135 | 46 | 251 | 2.543478 | 0.413043 | 0.068376 | 0.102564 | 0.188034 | 0.205128 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04908 | 0.350598 | 251 | 14 | 48 | 17.928571 | 0.668712 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3993e4a8b79440473e35085560050aff04bc8bc3 | 372 | py | Python | setup.py | IngoKl/simple-xapi-client | 23258d2af5d461f95d431265f8af6674f7f05b32 | [
"MIT"
] | null | null | null | setup.py | IngoKl/simple-xapi-client | 23258d2af5d461f95d431265f8af6674f7f05b32 | [
"MIT"
] | null | null | null | setup.py | IngoKl/simple-xapi-client | 23258d2af5d461f95d431265f8af6674f7f05b32 | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
setup(
name='simplexapiclient',
version='0.0.1',
url='https://github.com/IngoKl/simple-xapi-client.git',
author='Ingo Kleiber',
author_email='ikleiber@gmail.com',
description='A minimalistic xAPI client written in Python',
packages=find_packages()... | 31 | 63 | 0.698925 | 45 | 372 | 5.688889 | 0.8 | 0.09375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009585 | 0.158602 | 372 | 12 | 64 | 31 | 0.808307 | 0 | 0 | 0 | 0 | 0 | 0.420912 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.090909 | 0 | 0.090909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3995ac8afe6e0d4817624c57465f3008d3d9e619 | 249 | py | Python | params.py | ajhergenroeder/handson-ml2 | e399e791961628ae2983b5c676f4dc36f4f23880 | [
"Apache-2.0"
] | null | null | null | params.py | ajhergenroeder/handson-ml2 | e399e791961628ae2983b5c676f4dc36f4f23880 | [
"Apache-2.0"
] | null | null | null | params.py | ajhergenroeder/handson-ml2 | e399e791961628ae2983b5c676f4dc36f4f23880 | [
"Apache-2.0"
] | null | null | null | """File of parameters to be used throughout the notebook."""
import os
# # # # # #
### Ch15
# # # # # #
###
N_STEPS = 50
### saving stuff
PROJECT_ROOT_DIR = "."
CHAPTER_ID = "rnn"
IMAGES_PATH = os.path.join(PROJECT_ROOT_DIR, "images", CHAPTER_ID) | 17.785714 | 66 | 0.638554 | 34 | 249 | 4.441176 | 0.764706 | 0.145695 | 0.18543 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019608 | 0.180723 | 249 | 14 | 66 | 17.785714 | 0.720588 | 0.333333 | 0 | 0 | 0 | 0 | 0.070922 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
39962f898b8cddd11a1e526cef747eeaf26ea5db | 785 | py | Python | ml/student.py | ad-free/lab-ml | 5b52ae6201c426313210752709c57233b980b754 | [
"bzip2-1.0.6",
"MIT"
] | null | null | null | ml/student.py | ad-free/lab-ml | 5b52ae6201c426313210752709c57233b980b754 | [
"bzip2-1.0.6",
"MIT"
] | null | null | null | ml/student.py | ad-free/lab-ml | 5b52ae6201c426313210752709c57233b980b754 | [
"bzip2-1.0.6",
"MIT"
] | null | null | null | import pandas as pd
import numpy as np
import sklearn
import matplotlib.pyplot as plt
from sklearn.linear_model import LinearRegression
from sklearn.model_selection import train_test_split
from sklearn.utils import shuffle
df = pd.read_csv("../download/student-mat.csv", sep=";")
data = df[["G1", "G2", "G3", "studytim... | 22.428571 | 72 | 0.73121 | 129 | 785 | 4.286822 | 0.457364 | 0.036166 | 0.050633 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01016 | 0.122293 | 785 | 34 | 73 | 23.088235 | 0.792453 | 0.017834 | 0 | 0 | 0 | 0 | 0.083333 | 0.035156 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.318182 | 0 | 0.318182 | 0.181818 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
39985c4e837e27d4407b7257933254751b37be70 | 1,570 | py | Python | src/soaptools/actions/generate_client.py | LekSeek/soaptools | 9ae7ae34f131d63ab784e48c5acb86c492409445 | [
"MIT"
] | null | null | null | src/soaptools/actions/generate_client.py | LekSeek/soaptools | 9ae7ae34f131d63ab784e48c5acb86c492409445 | [
"MIT"
] | null | null | null | src/soaptools/actions/generate_client.py | LekSeek/soaptools | 9ae7ae34f131d63ab784e48c5acb86c492409445 | [
"MIT"
] | null | null | null | import ast
import os
from argparse import Namespace
from soaptools.actions.action import Action
from soaptools.helpers.py import Logger, format_code
from ..code_generators.python.client import ClientGenerator
from ..soap.wsdl_parser.parser import get_wsdl_declaration
class GenerateClientAction(Action):
name = "g... | 35.681818 | 119 | 0.712102 | 193 | 1,570 | 5.533679 | 0.404145 | 0.078652 | 0.104869 | 0.043071 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002383 | 0.198089 | 1,570 | 43 | 120 | 36.511628 | 0.845909 | 0.071338 | 0 | 0.068966 | 0 | 0 | 0.125946 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0.068966 | 0.241379 | 0 | 0.413793 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
3998d5749af74de061c3faef01bdf5b0056fcbba | 687 | py | Python | mundos/mundo-1/exercicio-029.py | pedrosantanaabreu/curso-em-video-python | fd68f9753a1c71ca94dfa40f23eb8c398cea6086 | [
"MIT"
] | 1 | 2022-03-23T22:48:23.000Z | 2022-03-23T22:48:23.000Z | mundos/mundo-1/exercicio-029.py | pedrosantanaabreu/curso-em-video-python | fd68f9753a1c71ca94dfa40f23eb8c398cea6086 | [
"MIT"
] | null | null | null | mundos/mundo-1/exercicio-029.py | pedrosantanaabreu/curso-em-video-python | fd68f9753a1c71ca94dfa40f23eb8c398cea6086 | [
"MIT"
] | null | null | null | """
@Pedro Santana Abreu (https://linktr.ee/pedrosantanaabreu)
@Curso em Vídeo (https://cursoemvideo.com)
PT-BR:
Escreva um programa que leia a velocidade de um carro.
Se ele ultrapassar 80Km/h, mostre uma mensagem dizendo que ele foi multado.
A multa vai custar R$7,00 por cada Km acima do limite.
"""
# Recebendo i... | 29.869565 | 118 | 0.72198 | 103 | 687 | 4.815534 | 0.669903 | 0.066532 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024691 | 0.174672 | 687 | 22 | 119 | 31.227273 | 0.850088 | 0.510917 | 0 | 0 | 0 | 0 | 0.453988 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.571429 | 0 | 0 | 0 | 0.285714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
39a5386b86a4107e087f8d885fcf41dc37d07d25 | 1,047 | py | Python | stage/stage.py | anaslamaizi/Projet-ODOO | 0bba1a4c6863a8a7e3ade6f4ae3cf84eef027384 | [
"Artistic-2.0"
] | null | null | null | stage/stage.py | anaslamaizi/Projet-ODOO | 0bba1a4c6863a8a7e3ade6f4ae3cf84eef027384 | [
"Artistic-2.0"
] | null | null | null | stage/stage.py | anaslamaizi/Projet-ODOO | 0bba1a4c6863a8a7e3ade6f4ae3cf84eef027384 | [
"Artistic-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from openerp.osv import osv
from openerp.osv import fields
import time
class stage_tache(osv.osv):
""" stage_tache """
_name = 'stage.tache'
_description = 'stage_tache'
_columns = {
'type': fields.char('Type', size=100, required=True),
}
stage_tache()
class stage_... | 20.94 | 59 | 0.629417 | 127 | 1,047 | 4.952756 | 0.220472 | 0.114467 | 0.069952 | 0.120827 | 0.193959 | 0.155803 | 0.155803 | 0.155803 | 0.155803 | 0.155803 | 0 | 0.015625 | 0.205349 | 1,047 | 49 | 60 | 21.367347 | 0.740385 | 0.069723 | 0 | 0.181818 | 0 | 0 | 0.168776 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.575758 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
39a756696db7f5d70563bf50b7811a688344b217 | 5,708 | py | Python | main.py | e1mo/personummer-generator | 7c3ab17f598e1d4cd6cb3a33a01d9ee6a08a6438 | [
"MIT"
] | 2 | 2022-02-09T12:11:20.000Z | 2022-02-11T09:46:38.000Z | main.py | e1mo/personummer-generator | 7c3ab17f598e1d4cd6cb3a33a01d9ee6a08a6438 | [
"MIT"
] | null | null | null | main.py | e1mo/personummer-generator | 7c3ab17f598e1d4cd6cb3a33a01d9ee6a08a6438 | [
"MIT"
] | 1 | 2020-10-07T17:12:13.000Z | 2020-10-07T17:12:13.000Z | """
Generate a valid number for the German Personalausweis
"""
import argparse
import datetime
import string
from random import randint, choice
from pandas import Timestamp
parser = argparse.ArgumentParser(description='Generate a valid number for the German Personalausweise')
parser.add_argument('--verbose', '-v', n... | 26.548837 | 165 | 0.692537 | 809 | 5,708 | 4.771323 | 0.181706 | 0.046632 | 0.034197 | 0.048446 | 0.214767 | 0.163731 | 0.121762 | 0.035233 | 0 | 0 | 0 | 0.023486 | 0.149615 | 5,708 | 214 | 166 | 26.672897 | 0.771735 | 0.035039 | 0 | 0.161972 | 1 | 0.007042 | 0.225742 | 0.00801 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014085 | false | 0 | 0.035211 | 0 | 0.049296 | 0.190141 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
39a7a621175553bd0a47cf8c9b2fbd90195721ea | 2,135 | py | Python | examples/utils/seams.py | PNProductions/py-seam-carving | 373a0979201f5c1b9bb418c042e20e6692dd3bf3 | [
"MIT"
] | 3 | 2017-07-06T07:58:59.000Z | 2018-09-26T19:19:23.000Z | utils/seams.py | PNProductions/cloud-python-opencv | 572e5820b5d6bbd7ca2c7ddac8a21576a6d0c6c0 | [
"MIT"
] | 1 | 2018-09-26T22:12:48.000Z | 2018-09-26T22:12:48.000Z | utils/seams.py | PNProductions/cloud-python-opencv | 572e5820b5d6bbd7ca2c7ddac8a21576a6d0c6c0 | [
"MIT"
] | 2 | 2015-06-09T18:44:04.000Z | 2020-05-25T07:00:13.000Z | import numpy as np
def generate_step(I, img):
result = np.empty((img.shape[0], img.shape[1], img.shape[2]))
r = np.arange(img.shape[2])
for i in xrange(img.shape[0]):
result[i] = r > np.vstack(I[i])
return result.astype(np.uint64)
def print_seams3(result, seams, amount):
seams = seams.astype(np.uint64... | 31.397059 | 104 | 0.649649 | 356 | 2,135 | 3.845506 | 0.148876 | 0.043828 | 0.061359 | 0.062089 | 0.670562 | 0.623813 | 0.52374 | 0.398101 | 0.355734 | 0.320672 | 0 | 0.036909 | 0.187822 | 2,135 | 67 | 105 | 31.865672 | 0.752595 | 0 | 0 | 0.4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.109091 | false | 0 | 0.018182 | 0 | 0.236364 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
39b79a6c57e2ddd99a5d132c2ea5c5f110c94229 | 2,212 | py | Python | src/libs/faker/providers/isbn/__init__.py | BarracudaPff/code-golf-data-pythpn | 42e8858c2ebc6a061012bcadb167d29cebb85c5e | [
"MIT"
] | null | null | null | src/libs/faker/providers/isbn/__init__.py | BarracudaPff/code-golf-data-pythpn | 42e8858c2ebc6a061012bcadb167d29cebb85c5e | [
"MIT"
] | null | null | null | src/libs/faker/providers/isbn/__init__.py | BarracudaPff/code-golf-data-pythpn | 42e8858c2ebc6a061012bcadb167d29cebb85c5e | [
"MIT"
] | null | null | null | class Provider(BaseProvider):
""" Generates fake ISBNs. ISBN rules vary across languages/regions
so this class makes no attempt at replicating all of the rules. It
only replicates the 978 EAN prefix for the English registration
groups, meaning the first 4 digits of the ISBN-13 will either be
978-0 or 9... | 45.142857 | 82 | 0.716094 | 306 | 2,212 | 5.075163 | 0.385621 | 0.162267 | 0.100451 | 0.074694 | 0.261429 | 0.179008 | 0.139086 | 0.139086 | 0.069543 | 0 | 0 | 0.019037 | 0.192586 | 2,212 | 49 | 83 | 45.142857 | 0.850504 | 0.434901 | 0 | 0.148148 | 1 | 0 | 0.053715 | 0.019696 | 0 | 0 | 0 | 0 | 0 | 1 | 0.148148 | false | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
39bde29023a9b88515d1f405dd8706ed752d8747 | 360 | py | Python | src/license/status.py | HaiyunPresentation/License | 2cf3e39a1c176d649ecdd6b329d54b2e4cbfcac0 | [
"CNRI-Python",
"blessing"
] | null | null | null | src/license/status.py | HaiyunPresentation/License | 2cf3e39a1c176d649ecdd6b329d54b2e4cbfcac0 | [
"CNRI-Python",
"blessing"
] | null | null | null | src/license/status.py | HaiyunPresentation/License | 2cf3e39a1c176d649ecdd6b329d54b2e4cbfcac0 | [
"CNRI-Python",
"blessing"
] | null | null | null | import django
from django.http import HttpResponse
from django.shortcuts import render
from django.views.decorators import csrf
from license.dbsearch import searchAll
def status(request):
context = {}
context['license_table'] = searchAll('license')
context['client_table'] = searchAll('client')
return ... | 27.692308 | 51 | 0.758333 | 43 | 360 | 6.302326 | 0.488372 | 0.110701 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141667 | 360 | 12 | 52 | 30 | 0.877023 | 0 | 0 | 0 | 0 | 0 | 0.136111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.5 | 0 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
39c66eb6aaa8f1fb2203363c9fdf845655205d61 | 1,521 | py | Python | app/models/user.py | zephyrxvxx7/KubeZephyr-Backend | 242410bc236e1f7204c24d635eb3346b0c256dc8 | [
"MIT"
] | 2 | 2021-04-25T01:49:45.000Z | 2021-11-25T09:10:40.000Z | app/models/user.py | zephyrxvxx7/KubeZephyr-Backend | 242410bc236e1f7204c24d635eb3346b0c256dc8 | [
"MIT"
] | null | null | null | app/models/user.py | zephyrxvxx7/KubeZephyr-Backend | 242410bc236e1f7204c24d635eb3346b0c256dc8 | [
"MIT"
] | null | null | null | from typing import List, Optional
from pydantic import EmailStr
from pydantic.main import BaseModel
from app.models.dbmodel import DBModelMixin
from app.models.rwmodel import MongoModel, OID
from app.core.security import generate_salt, get_password_hash, verify_password
class UserRole(BaseModel):
roleName: str
... | 23.4 | 79 | 0.706114 | 176 | 1,521 | 6.022727 | 0.295455 | 0.051887 | 0.042453 | 0.043396 | 0.058491 | 0.058491 | 0 | 0 | 0 | 0 | 0 | 0 | 0.193951 | 1,521 | 64 | 80 | 23.765625 | 0.8646 | 0 | 0 | 0.133333 | 0 | 0 | 0.013807 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0.177778 | 0.133333 | 0.022222 | 0.933333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
39ca7734efa31081d266a1feb4a63f1ef1896127 | 3,688 | py | Python | src/SCTA/Instrumentation/ResourceManagers.py | DougMHu/SCTA_repo | 20fcd3d5423ec32b9aed26e99458898cb8c6bf29 | [
"MIT"
] | null | null | null | src/SCTA/Instrumentation/ResourceManagers.py | DougMHu/SCTA_repo | 20fcd3d5423ec32b9aed26e99458898cb8c6bf29 | [
"MIT"
] | null | null | null | src/SCTA/Instrumentation/ResourceManagers.py | DougMHu/SCTA_repo | 20fcd3d5423ec32b9aed26e99458898cb8c6bf29 | [
"MIT"
] | null | null | null | from ..Simulation.Parameters import simLevel, isSimulation
from ..utils.misc import singleton
from telnetlib import Telnet
import paramiko
import logging
logger = logging.getLogger(__name__)
# If it is a simulation, do not import pyvisa
try:
import pyvisa
except ImportError:
if isSimulation:
logger.log(simLevel, "... | 31.521368 | 81 | 0.774675 | 433 | 3,688 | 6.512702 | 0.281755 | 0.074468 | 0.048227 | 0.033688 | 0.272695 | 0.237943 | 0.207447 | 0.096454 | 0.096454 | 0.096454 | 0 | 0.002203 | 0.138557 | 3,688 | 117 | 82 | 31.521368 | 0.885427 | 0.122831 | 0 | 0.367816 | 0 | 0 | 0.105394 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.149425 | false | 0.068966 | 0.091954 | 0 | 0.45977 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
39d58a4d62028086f9b071a21618dc659a3594aa | 2,380 | py | Python | modules/cognito.py | chinapandaman/pandaCognito | 91f9b169d9231f14c8568cd8f69f6a244508f66d | [
"MIT"
] | null | null | null | modules/cognito.py | chinapandaman/pandaCognito | 91f9b169d9231f14c8568cd8f69f6a244508f66d | [
"MIT"
] | null | null | null | modules/cognito.py | chinapandaman/pandaCognito | 91f9b169d9231f14c8568cd8f69f6a244508f66d | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from gluon import DAL, HTTP, Field, current
from gluon.contrib.appconfig import AppConfig
from gluon.tools import Auth
class Cognito(object):
def __init__(self):
self.db = DAL(
current.config.get("cognito_db.uri"),
pool_size=current.config.get("cognito_db.... | 31.733333 | 87 | 0.621008 | 275 | 2,380 | 5.203636 | 0.334545 | 0.050314 | 0.033543 | 0.041929 | 0.16492 | 0.101328 | 0.101328 | 0.079665 | 0.079665 | 0.055905 | 0 | 0.00564 | 0.255042 | 2,380 | 74 | 88 | 32.162162 | 0.801466 | 0.02563 | 0 | 0.08 | 0 | 0 | 0.114853 | 0.018998 | 0 | 0 | 0 | 0.013514 | 0 | 1 | 0.1 | false | 0.04 | 0.06 | 0 | 0.26 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
39e33abf84d22e54abf760742527ae08a6bd64b8 | 376 | py | Python | nglpy_cuda/__init__.py | maljovec/nglpy_cuda | 08d2d75e7522688554663be092bc96dcd370b9d0 | [
"BSD-3-Clause"
] | 2 | 2018-08-15T21:32:49.000Z | 2019-03-11T12:35:33.000Z | nglpy_cuda/__init__.py | maljovec/nglpy_cuda | 08d2d75e7522688554663be092bc96dcd370b9d0 | [
"BSD-3-Clause"
] | 145 | 2018-08-29T00:41:18.000Z | 2022-03-07T15:06:13.000Z | nglpy_cuda/__init__.py | maljovec/nglpy_cuda | 08d2d75e7522688554663be092bc96dcd370b9d0 | [
"BSD-3-Clause"
] | 1 | 2019-05-21T06:53:12.000Z | 2019-05-21T06:53:12.000Z | # -*- coding: utf-8 -*-
"""Top-level package for nglpy-cuda."""
__author__ = """Daniel Patrick Maljovec"""
__email__ = 'maljovec002@gmail.com'
__version__ = '0.2.0'
from .Graph import Graph
from .ProbabilisticGraph import ProbabilisticGraph
from .SKLSearchIndex import SKLSearchIndex
# from .FAISSSearchIndex import FA... | 26.857143 | 50 | 0.757979 | 43 | 376 | 6.348837 | 0.651163 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021277 | 0.125 | 376 | 13 | 51 | 28.923077 | 0.808511 | 0.273936 | 0 | 0 | 0 | 0 | 0.184211 | 0.078947 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.625 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
39f5a23764e42a0ed3970b40316a1ac2d9e9d03b | 25,273 | py | Python | uwu-util/fs/guids.py | lethalbit/uwu-efi | b6c2dab04ee412a747c5af00d1bf2afda7190c5a | [
"BSD-3-Clause"
] | 11 | 2021-06-27T14:46:55.000Z | 2021-09-14T17:33:41.000Z | uwu-util/fs/guids.py | lethalbit/uwu-efi | b6c2dab04ee412a747c5af00d1bf2afda7190c5a | [
"BSD-3-Clause"
] | null | null | null | uwu-util/fs/guids.py | lethalbit/uwu-efi | b6c2dab04ee412a747c5af00d1bf2afda7190c5a | [
"BSD-3-Clause"
] | null | null | null | # SPDX-License-Identifier: BSD-3-Clause
__all__ = (
'guid',
'GPT_PART_TYPES',
'UEFI_CORE_PART_TYPES' , 'WINDOWS_PART_TYPES' , 'HPUX_PART_TYPES' ,
'LINUX_PART_TYPES' , 'FREEBSD_PART_TYPES' , 'DARWIN_PART_TYPES' ,
'SOLARIS_PART_TYPES' , 'NETBSD_PART_TYPES' , 'CHROMEOS_PART_TYPES' ,
'COREOS_... | 30.339736 | 84 | 0.591501 | 3,123 | 25,273 | 4.725264 | 0.273135 | 0.057329 | 0.017687 | 0.016128 | 0.288067 | 0.262994 | 0.222132 | 0.211832 | 0.184861 | 0.184861 | 0 | 0.212583 | 0.200016 | 25,273 | 832 | 85 | 30.376202 | 0.517311 | 0.119891 | 0 | 0.21625 | 0 | 0 | 0.371674 | 0.156063 | 0 | 0 | 0.178643 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
39f5aecafae8bf1ee9b03439a6457473f7deef49 | 754 | py | Python | Jahr 1/M/Gleichungen/LineareGleichungen.py | BackInBash/Technikerschule | 6e30654417732fae065e36a40789866ccca6aa7e | [
"MIT"
] | 2 | 2021-01-20T16:16:41.000Z | 2022-01-12T15:37:53.000Z | Jahr 1/M/Gleichungen/LineareGleichungen.py | BackInBash/Technikerschule | 6e30654417732fae065e36a40789866ccca6aa7e | [
"MIT"
] | 2 | 2020-06-17T21:55:24.000Z | 2021-09-08T20:40:41.000Z | Jahr 1/M/Gleichungen/LineareGleichungen.py | BackInBash/Technikerschule | 6e30654417732fae065e36a40789866ccca6aa7e | [
"MIT"
] | 1 | 2020-12-28T13:03:34.000Z | 2020-12-28T13:03:34.000Z | GlowScript 3.0 VPython
#setup
spielfeld = box(size = vec(100, 50, 5))
tor_l = box(size = vec(10,30,5),
pos = vec(-45,0,0),
color = color.green)
tor_r = box(size = vec(10,30,5),
pos = vec(+45,0,0),
color = color.green)
puck = sphere(radius = 3,
color = c... | 19.842105 | 44 | 0.570292 | 127 | 754 | 3.362205 | 0.425197 | 0.131148 | 0.112412 | 0.056206 | 0.187354 | 0.187354 | 0.187354 | 0.187354 | 0.187354 | 0.187354 | 0 | 0.086397 | 0.278515 | 754 | 38 | 45 | 19.842105 | 0.698529 | 0.148541 | 0 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f2cdb24d2b5bb5460c8bf0df91dbf8834412abb9 | 2,144 | py | Python | scripts/deploy.py | pacdao/bonus-nft | a4a6dfa590dc2356eaf1172a499cf28f4fc9d692 | [
"MIT"
] | null | null | null | scripts/deploy.py | pacdao/bonus-nft | a4a6dfa590dc2356eaf1172a499cf28f4fc9d692 | [
"MIT"
] | null | null | null | scripts/deploy.py | pacdao/bonus-nft | a4a6dfa590dc2356eaf1172a499cf28f4fc9d692 | [
"MIT"
] | null | null | null | from brownie import ZERO_ADDRESS, PACDaoBonus1, accounts, network
from brownie.network import max_fee, priority_fee
def main():
publish_source = True
multisig = "0xf27AC88ac7e80487f21e5c2C847290b2AE5d7B8e"
beneficiary_address = multisig
if network.show_active() in ["development"]:
tokens = [Z... | 37.614035 | 86 | 0.650653 | 149 | 2,144 | 9.208054 | 0.362416 | 0.075802 | 0.061953 | 0.041545 | 0.393586 | 0.355685 | 0.355685 | 0.355685 | 0.355685 | 0.355685 | 0 | 0.241884 | 0.267257 | 2,144 | 56 | 87 | 38.285714 | 0.631445 | 0.030317 | 0 | 0.510204 | 0 | 0 | 0.334623 | 0.284333 | 0 | 0 | 0.284333 | 0 | 0 | 1 | 0.020408 | false | 0 | 0.040816 | 0 | 0.081633 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f2cf47da806c6dec593dc89b68334d53525839bd | 2,106 | py | Python | somarizer/utils.py | LSSTDESC/nz-band-sensitivity | 74346fa8000ab8f53b9a0f864a60e3c6718c540d | [
"BSD-2-Clause"
] | 1 | 2021-07-08T21:21:18.000Z | 2021-07-08T21:21:18.000Z | somarizer/utils.py | LSSTDESC/nz-band-sensitivity | 74346fa8000ab8f53b9a0f864a60e3c6718c540d | [
"BSD-2-Clause"
] | 1 | 2021-07-07T10:11:45.000Z | 2021-07-07T10:11:45.000Z | somarizer/utils.py | LSSTDESC/nz-band-sensitivity | 74346fa8000ab8f53b9a0f864a60e3c6718c540d | [
"BSD-2-Clause"
] | null | null | null | import numpy as np
def luptitude(mag, depth, m0=22.5):
"""
Convert magnitudes to luptitudes
Parameters
----------
mag: float or array
depth: float
estimate of e.g. 10 sigma depth
m0: float
optional mag zero point (default 22.5)
Returns
-------
lupt: float or... | 22.168421 | 70 | 0.573124 | 333 | 2,106 | 3.588589 | 0.33033 | 0.013389 | 0.050209 | 0.03682 | 0.395816 | 0.287866 | 0.287866 | 0.287866 | 0.254393 | 0.254393 | 0 | 0.059245 | 0.270655 | 2,106 | 94 | 71 | 22.404255 | 0.71875 | 0.278253 | 0 | 0.216216 | 0 | 0 | 0.066522 | 0 | 0 | 0 | 0 | 0.010638 | 0 | 1 | 0.081081 | false | 0 | 0.081081 | 0 | 0.243243 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f2ef298b89ee723b4f0bb6de0eb3e3ceea599a3e | 802 | py | Python | mapping/telecoms.py | mathiash98/openinframap | dd5fb9fbe2332a507b3ffb9ab93fa2e566bc68be | [
"BSD-3-Clause"
] | 43 | 2021-09-25T19:56:50.000Z | 2022-03-30T21:53:12.000Z | mapping/telecoms.py | flacombe/openinframap | 5dd5dd1c3c9fc36b01ff8e946a3c5db2917f0891 | [
"BSD-3-Clause"
] | 94 | 2017-01-29T22:52:11.000Z | 2021-09-11T13:53:32.000Z | mapping/telecoms.py | flacombe/openinframap | 5dd5dd1c3c9fc36b01ff8e946a3c5db2917f0891 | [
"BSD-3-Clause"
] | 5 | 2021-10-17T18:06:47.000Z | 2022-03-17T19:20:29.000Z | from funcs import table, type_col
table(
"telecom_cable",
{
"communication": ["line", "cable"],
"construction:communication": ["line", "cable"],
},
"linestring",
)
table(
"telecom_building",
{
"building": ["data_center", "data_centre", "telephone_exchange"],
"t... | 21.105263 | 80 | 0.5798 | 71 | 802 | 6.28169 | 0.464789 | 0.06278 | 0.080717 | 0.085202 | 0.147982 | 0.147982 | 0 | 0 | 0 | 0 | 0 | 0 | 0.220698 | 802 | 37 | 81 | 21.675676 | 0.7136 | 0 | 0 | 0.28125 | 0 | 0 | 0.465087 | 0.032419 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.03125 | 0 | 0.03125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f2f0abf3149e8eb912b86e1b751a4864695319bf | 1,754 | py | Python | acurl/tests/test_request.py | markgreene74/mite | 339bdfc39be30534ea2169d8257469bd0ff535fb | [
"MIT"
] | 17 | 2019-11-14T22:32:56.000Z | 2022-02-01T15:38:03.000Z | acurl/tests/test_request.py | markgreene74/mite | 339bdfc39be30534ea2169d8257469bd0ff535fb | [
"MIT"
] | 35 | 2020-01-08T10:50:31.000Z | 2022-02-17T17:00:34.000Z | acurl/tests/test_request.py | markgreene74/mite | 339bdfc39be30534ea2169d8257469bd0ff535fb | [
"MIT"
] | 4 | 2019-11-14T14:48:18.000Z | 2020-05-06T22:09:25.000Z | from unittest.mock import Mock
import pytest
from helpers import create_request
import acurl
def session():
el = acurl.EventLoop()
return el.session()
def test_request_headers():
r = create_request("GET", "http://foo.com", headers=["Foo: bar", "Baz: quux"])
assert "Foo" in r.headers
assert r.h... | 29.233333 | 82 | 0.648233 | 252 | 1,754 | 4.384921 | 0.309524 | 0.038009 | 0.040724 | 0.057919 | 0.479638 | 0.479638 | 0.39276 | 0.275113 | 0.275113 | 0.275113 | 0 | 0.001445 | 0.210946 | 1,754 | 59 | 83 | 29.728814 | 0.796965 | 0.096351 | 0 | 0.272727 | 0 | 0 | 0.194181 | 0.086654 | 0 | 0 | 0 | 0.016949 | 0.227273 | 1 | 0.068182 | false | 0 | 0.090909 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f2ffd46ea1a2828128ddd3737a242a602e7ec799 | 1,791 | py | Python | pyowapi/tests/test_api.py | ZusorCode/pyowapi | 83dc882b6c33b15e153e885f232fcf1eabea9e03 | [
"MIT"
] | 2 | 2020-04-16T09:37:01.000Z | 2020-06-20T13:19:36.000Z | pyowapi/tests/test_api.py | ZusorCode/pyowapi | 83dc882b6c33b15e153e885f232fcf1eabea9e03 | [
"MIT"
] | null | null | null | pyowapi/tests/test_api.py | ZusorCode/pyowapi | 83dc882b6c33b15e153e885f232fcf1eabea9e03 | [
"MIT"
] | 1 | 2020-05-09T15:44:31.000Z | 2020-05-09T15:44:31.000Z | from unittest import TestCase
import pyowapi
class TestAPI(TestCase):
def test_single_player(self):
player = pyowapi.get_player("Jayne#1447")
self.assertTrue(player.success)
def test_single_player_playstation(self):
player = pyowapi.get_player("R3flexTube", platform="psn")
sel... | 38.106383 | 87 | 0.687326 | 208 | 1,791 | 5.735577 | 0.211538 | 0.083822 | 0.134116 | 0.158424 | 0.618609 | 0.487846 | 0.445935 | 0.380553 | 0.23135 | 0.155909 | 0 | 0.02935 | 0.201005 | 1,791 | 46 | 88 | 38.934783 | 0.804333 | 0 | 0 | 0.27027 | 0 | 0 | 0.096036 | 0 | 0 | 0 | 0 | 0 | 0.351351 | 1 | 0.216216 | false | 0 | 0.054054 | 0 | 0.297297 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
840249229698b08836e92e0d4b04b95967f6b840 | 4,611 | py | Python | sdk/python/pulumi_oci/objectstorage/get_replication_policies.py | EladGabay/pulumi-oci | 6841e27d4a1a7e15c672306b769912efbfd3ba99 | [
"ECL-2.0",
"Apache-2.0"
] | 5 | 2021-08-17T11:14:46.000Z | 2021-12-31T02:07:03.000Z | sdk/python/pulumi_oci/objectstorage/get_replication_policies.py | pulumi-oci/pulumi-oci | 6841e27d4a1a7e15c672306b769912efbfd3ba99 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2021-09-06T11:21:29.000Z | 2021-09-06T11:21:29.000Z | sdk/python/pulumi_oci/objectstorage/get_replication_policies.py | pulumi-oci/pulumi-oci | 6841e27d4a1a7e15c672306b769912efbfd3ba99 | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2021-08-24T23:31:30.000Z | 2022-01-02T19:26:54.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... | 36.888 | 163 | 0.683583 | 479 | 4,611 | 6.348643 | 0.290188 | 0.118711 | 0.026307 | 0.049326 | 0.125617 | 0.052285 | 0.035186 | 0 | 0 | 0 | 0 | 0.00056 | 0.224897 | 4,611 | 124 | 164 | 37.185484 | 0.850308 | 0.207764 | 0 | 0.113924 | 1 | 0 | 0.17379 | 0.085197 | 0 | 0 | 0 | 0 | 0 | 1 | 0.101266 | false | 0 | 0.088608 | 0.037975 | 0.303797 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
84055d437a8c7ec1849af4752450437981a75f47 | 3,785 | py | Python | source/NVDAObjects/IAccessible/adobeFlash.py | SWEN-712/screen-reader-brandonp728 | e30c25ad2d10ce632fac0548696a61a872328f59 | [
"bzip2-1.0.6"
] | null | null | null | source/NVDAObjects/IAccessible/adobeFlash.py | SWEN-712/screen-reader-brandonp728 | e30c25ad2d10ce632fac0548696a61a872328f59 | [
"bzip2-1.0.6"
] | null | null | null | source/NVDAObjects/IAccessible/adobeFlash.py | SWEN-712/screen-reader-brandonp728 | e30c25ad2d10ce632fac0548696a61a872328f59 | [
"bzip2-1.0.6"
] | null | null | null | #NVDAObjects/IAccessible/adobeFlash.py
#A part of NonVisual Desktop Access (NVDA)
#Copyright (C) 2009 NVDA Contributors <http://www.nvda-project.org/>
#This file is covered by the GNU General Public License.
#See the file COPYING for more details.
import winUser
import oleacc
from . import IAccessible, getNVDAObjectFr... | 37.107843 | 177 | 0.796301 | 461 | 3,785 | 6.483731 | 0.433839 | 0.012044 | 0.007026 | 0.018066 | 0.034794 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004615 | 0.141347 | 3,785 | 101 | 178 | 37.475248 | 0.915077 | 0.383091 | 0 | 0.274194 | 0 | 0 | 0.018237 | 0.010855 | 0 | 0 | 0 | 0 | 0 | 1 | 0.145161 | false | 0.032258 | 0.145161 | 0.080645 | 0.548387 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
840fe65bc65612c13fdfb1cfd92e80517f55ed6b | 1,464 | py | Python | backend/farm/serializers/reference_parcel.py | szkkteam/agrosys | a390332202f7200632d2ff3816e1b0f3cc76f586 | [
"MIT"
] | null | null | null | backend/farm/serializers/reference_parcel.py | szkkteam/agrosys | a390332202f7200632d2ff3816e1b0f3cc76f586 | [
"MIT"
] | null | null | null | backend/farm/serializers/reference_parcel.py | szkkteam/agrosys | a390332202f7200632d2ff3816e1b0f3cc76f586 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Common Python library imports
# Pip package imports
from marshmallow import pre_load, post_dump, post_load, validates_schema, ValidationError
# Internal package imports
from backend.extensions.api import api
from backend.api import OneOfSchema, validates, ValidationErro... | 31.148936 | 102 | 0.77459 | 139 | 1,464 | 7.920863 | 0.438849 | 0.054496 | 0.069028 | 0.06267 | 0.269755 | 0.243415 | 0.243415 | 0.243415 | 0.243415 | 0.243415 | 0 | 0.000824 | 0.171448 | 1,464 | 46 | 103 | 31.826087 | 0.906843 | 0.16735 | 0 | 0.32 | 0 | 0 | 0.024814 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.28 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
841b28a5b1f8563977d4ad30c92aa9556679f70f | 1,970 | py | Python | Hard Projects/Password Hacker/hack.py | ankit27kh/JetBrains-Python-Learning-Track | 2d8296f51a5ba4931b9a69cab280301eddeb318e | [
"MIT"
] | null | null | null | Hard Projects/Password Hacker/hack.py | ankit27kh/JetBrains-Python-Learning-Track | 2d8296f51a5ba4931b9a69cab280301eddeb318e | [
"MIT"
] | null | null | null | Hard Projects/Password Hacker/hack.py | ankit27kh/JetBrains-Python-Learning-Track | 2d8296f51a5ba4931b9a69cab280301eddeb318e | [
"MIT"
] | null | null | null | import argparse
import itertools
import json
import socket
import string
import sys
import time
parser = argparse.ArgumentParser(description='Provide IP port')
parser.add_argument('IP', type=str)
parser.add_argument('port', type=int)
args = parser.parse_args()
IP = args.IP
port = args.port
address = (IP, port)
with... | 26.986301 | 74 | 0.495939 | 205 | 1,970 | 4.726829 | 0.390244 | 0.033024 | 0.035088 | 0.043344 | 0.198142 | 0.198142 | 0.198142 | 0.198142 | 0.198142 | 0.198142 | 0 | 0.007444 | 0.386294 | 1,970 | 72 | 75 | 27.361111 | 0.794045 | 0 | 0 | 0.253731 | 0 | 0 | 0.061421 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.119403 | 0.104478 | 0 | 0.104478 | 0.014925 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
841b8281c0321383205b1100fe1cdef330834049 | 1,719 | py | Python | csrgen.py | cristianowa/csr_generator | 462335f3bed500ae8b603c1524e35a9a5e764e26 | [
"Unlicense"
] | null | null | null | csrgen.py | cristianowa/csr_generator | 462335f3bed500ae8b603c1524e35a9a5e764e26 | [
"Unlicense"
] | null | null | null | csrgen.py | cristianowa/csr_generator | 462335f3bed500ae8b603c1524e35a9a5e764e26 | [
"Unlicense"
] | null | null | null | #!/usr/bin/python
import argparse
import pexpect
from commands import getoutput as cmd
parser = argparse.ArgumentParser(description="A wrapper to the openssl CSR() generation")
parser.add_argument("-name", help="key name", dest="name", default="certificate")
parser.add_argument("-country", help="Country Name", dest="... | 46.459459 | 108 | 0.700989 | 231 | 1,719 | 5.112554 | 0.393939 | 0.076207 | 0.143946 | 0.040644 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005316 | 0.124491 | 1,719 | 36 | 109 | 47.75 | 0.779402 | 0.009308 | 0 | 0 | 0 | 0 | 0.336663 | 0.018214 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.034483 | 0.103448 | null | null | 0.068966 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
841d529d48ce2e5f9ff3e33afc5ed921bf3cbf03 | 1,306 | py | Python | sovtokenfees/sovtokenfees/test/helpers/__init__.py | dastardlychimp/token-plugin | 8755bce1424e794285ea6e70bf9bdd05518667c3 | [
"Apache-2.0"
] | null | null | null | sovtokenfees/sovtokenfees/test/helpers/__init__.py | dastardlychimp/token-plugin | 8755bce1424e794285ea6e70bf9bdd05518667c3 | [
"Apache-2.0"
] | null | null | null | sovtokenfees/sovtokenfees/test/helpers/__init__.py | dastardlychimp/token-plugin | 8755bce1424e794285ea6e70bf9bdd05518667c3 | [
"Apache-2.0"
] | 1 | 2020-05-27T10:06:42.000Z | 2020-05-27T10:06:42.000Z | import pytest
from types import SimpleNamespace
from sovtoken.test.helpers.helper_sdk import HelperSdk
from sovtoken.test.helpers.helper_wallet import HelperWallet
from .helper_request import HelperRequest
from .helper_general import HelperGeneral
from .helper_node import HelperNode
# TODO: Have a way to setup help... | 24.185185 | 79 | 0.693721 | 144 | 1,306 | 5.958333 | 0.305556 | 0.073427 | 0.038462 | 0.048951 | 0.153846 | 0.086247 | 0.086247 | 0 | 0 | 0 | 0 | 0 | 0.24732 | 1,306 | 53 | 80 | 24.641509 | 0.872838 | 0.068147 | 0 | 0.333333 | 0 | 0 | 0.022241 | 0 | 0 | 0 | 0 | 0.018868 | 0 | 1 | 0.022222 | false | 0 | 0.155556 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
842dd55d1df88a1dfd99dd86a7475a055c3bb365 | 2,682 | py | Python | server/helpers/reviewjob.py | Simplendi/RUDiag2 | b75cebb7c93515c4ddd8e41ab5c382fe25ac41d8 | [
"Unlicense",
"MIT"
] | null | null | null | server/helpers/reviewjob.py | Simplendi/RUDiag2 | b75cebb7c93515c4ddd8e41ab5c382fe25ac41d8 | [
"Unlicense",
"MIT"
] | null | null | null | server/helpers/reviewjob.py | Simplendi/RUDiag2 | b75cebb7c93515c4ddd8e41ab5c382fe25ac41d8 | [
"Unlicense",
"MIT"
] | null | null | null | import datetime
from contextlib import closing
from framework import Config
from helpers.reviewer import Reviewer
from models.db.test import DbTest
from models.db.testsession import DbTestSession
from models.service.test import Test
from models.service.testsession import TestSession
class ReviewJob():
def __init... | 37.774648 | 126 | 0.573826 | 274 | 2,682 | 5.332117 | 0.244526 | 0.120465 | 0.053388 | 0.041068 | 0.503765 | 0.503765 | 0.503765 | 0.503765 | 0.503765 | 0.503765 | 0 | 0 | 0.354213 | 2,682 | 70 | 127 | 38.314286 | 0.843533 | 0.013796 | 0 | 0.5 | 0 | 0 | 0.021936 | 0.008321 | 0 | 0 | 0 | 0.014286 | 0 | 1 | 0.041667 | false | 0 | 0.166667 | 0 | 0.229167 | 0.041667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8436133e82c8fdcad665789c04c47e2bb1dd6500 | 522 | py | Python | search-algorithms/binary-search/python/recursive-binary-search.py | DKSecurity99/academic-programming | a197cc2388b9ec618461380e47176d56621b0a6d | [
"MIT"
] | 2 | 2021-05-12T13:10:29.000Z | 2021-06-11T10:45:34.000Z | search-algorithms/binary-search/python/recursive-binary-search.py | edmilson-dk/academic-programming | a197cc2388b9ec618461380e47176d56621b0a6d | [
"MIT"
] | null | null | null | search-algorithms/binary-search/python/recursive-binary-search.py | edmilson-dk/academic-programming | a197cc2388b9ec618461380e47176d56621b0a6d | [
"MIT"
] | null | null | null | # O(log n)
def recursiveBinarySearch(vector, left_index, right_index, wanted):
if left_index <= right_index:
pivot = round(left_index + (right_index - left_index) / 2)
if (vector[pivot] == wanted): return pivot
elif vector[pivot] < wanted:
return recursiveBinarySearch(vector, pivot+1, right_index... | 30.705882 | 72 | 0.689655 | 70 | 522 | 5.014286 | 0.357143 | 0.128205 | 0.119658 | 0.162393 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03066 | 0.187739 | 522 | 17 | 73 | 30.705882 | 0.79717 | 0.015326 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0 | 0 | 0.333333 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8448e55c87d7b3919224891bdbfd8d6e6b880801 | 728 | py | Python | Lab_64/challenge01-musters.py | MandoGuardado/2022-01-04-Python | abceb619c1fad9c55e6023b57fbb35d9a8f0e640 | [
"MIT"
] | 1 | 2022-01-14T20:47:47.000Z | 2022-01-14T20:47:47.000Z | Lab_64/challenge01-musters.py | MandoGuardado/2022-01-04-Python | abceb619c1fad9c55e6023b57fbb35d9a8f0e640 | [
"MIT"
] | null | null | null | Lab_64/challenge01-musters.py | MandoGuardado/2022-01-04-Python | abceb619c1fad9c55e6023b57fbb35d9a8f0e640 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
"""Alta3 Research | RZFeeser
Review of Lists and Dictionaries"""
# define a short data set (in real world, we want to read this from a file or API)
munsters = {'endDate': 1966, 'startDate': 1964,\
'names':['Lily', 'Herman', 'Grandpa', 'Eddie', 'Marilyn']} # {} creates dict
# Your solut... | 28 | 86 | 0.65522 | 100 | 728 | 4.77 | 0.6 | 0.067086 | 0.09434 | 0.132075 | 0.144654 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023295 | 0.174451 | 728 | 25 | 87 | 29.12 | 0.770383 | 0.550824 | 0 | 0 | 0 | 0 | 0.254839 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.444444 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
844dbb282bcd281e768b7fda41c2bd5c27c6f65e | 5,217 | py | Python | Cyclical Number Generator.py | Zeta7/Cyclical-Number-Generator | fa1136dd44aca80a7fb7886ee561cce4789f31e4 | [
"MIT"
] | null | null | null | Cyclical Number Generator.py | Zeta7/Cyclical-Number-Generator | fa1136dd44aca80a7fb7886ee561cce4789f31e4 | [
"MIT"
] | null | null | null | Cyclical Number Generator.py | Zeta7/Cyclical-Number-Generator | fa1136dd44aca80a7fb7886ee561cce4789f31e4 | [
"MIT"
] | null | null | null | import sys, os, time
if(sys.platform == "win32"):
clear = "cls"
else:
clear = "clear"
def IsPrime(number):
r = pow(number,0.5)
for i in range(2, int(r)+1):
if(number % i == 0):
return False
return True
def Cicles(p,bFlag):
if(IsPrime(p)):
l = []
cont = 2
... | 42.414634 | 302 | 0.303814 | 402 | 5,217 | 3.477612 | 0.298507 | 0.025751 | 0.034335 | 0.025751 | 0.130901 | 0.130901 | 0.10515 | 0.10515 | 0.10515 | 0.10515 | 0 | 0.00844 | 0.386812 | 5,217 | 122 | 303 | 42.762295 | 0.428571 | 0 | 0 | 0.262295 | 0 | 0.122951 | 0.543607 | 0.075522 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090164 | false | 0 | 0.008197 | 0 | 0.221311 | 0.081967 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
845964304a6d4f67ce726ed38e4129226c18f9a6 | 539 | py | Python | code/python/shirkhan/src/shirkhan/string_tool.py | gheyret/u-open-imla | 744aaf19308dd4c38ce48e62eaba9d225ed22edb | [
"MIT"
] | 2 | 2021-06-17T05:59:01.000Z | 2021-07-31T12:33:12.000Z | code/python/shirkhan/src/shirkhan/string_tool.py | gheyret/u-open-imla | 744aaf19308dd4c38ce48e62eaba9d225ed22edb | [
"MIT"
] | null | null | null | code/python/shirkhan/src/shirkhan/string_tool.py | gheyret/u-open-imla | 744aaf19308dd4c38ce48e62eaba9d225ed22edb | [
"MIT"
] | 2 | 2021-09-18T06:08:56.000Z | 2021-09-22T03:33:09.000Z | import re
def text_to_words(context: str):
"""
从给定内容中去掉所有非母语内容,只保留母语部分
[从给定内容中提取词]
:param context: 需要提出词汇的内容
:return : 返回提取后的词汇集合
"""
context = context.strip()
if len(context) == 0:
return []
context = re.sub("[^چۋېرتيۇڭوپھسداەىقكلزشغۈبنمئلاۆجخگفژٴحعۉۅ]", " ", context) # ... | 23.434783 | 93 | 0.667904 | 57 | 539 | 6 | 0.614035 | 0.163743 | 0.064327 | 0.122807 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002353 | 0.211503 | 539 | 22 | 94 | 24.5 | 0.802353 | 0.170686 | 0 | 0 | 0 | 0 | 0.260143 | 0.169451 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0.090909 | 0.090909 | 0 | 0.363636 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
8459787dd7f79673ed94849774afdd0273c092ac | 851 | py | Python | crpytography/libs/substitution_cipher.py | CheYulin/PythonStudy | 2b68a9cb2f7044d7e5ce9e7c971070eba7a36c07 | [
"MIT"
] | 3 | 2018-03-10T15:14:06.000Z | 2020-06-17T03:13:21.000Z | crpytography/libs/substitution_cipher.py | YcheLanguageStudio/PythonStudy | 2b68a9cb2f7044d7e5ce9e7c971070eba7a36c07 | [
"MIT"
] | null | null | null | crpytography/libs/substitution_cipher.py | YcheLanguageStudio/PythonStudy | 2b68a9cb2f7044d7e5ce9e7c971070eba7a36c07 | [
"MIT"
] | null | null | null | class EngIndexBiMap:
def __init__(self):
self.char2index_dict = dict()
self.index2char_dict = dict()
for i in range(0, 25):
self.char2index_dict[chr(ord('a') + i)] = i
self.index2char_dict[i] = chr(ord('a') + i)
def char2index(self, ch):
return self.char2... | 27.451613 | 110 | 0.649824 | 117 | 851 | 4.452991 | 0.393162 | 0.095969 | 0.103647 | 0.03071 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042683 | 0.229142 | 851 | 30 | 111 | 28.366667 | 0.751524 | 0.018801 | 0 | 0 | 0 | 0 | 0.020408 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.095238 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
845dffdc59a37a5013902a8261354e9d7c734c21 | 3,523 | py | Python | my-project.py | jcg122562/pandas-homework | 6f55ddeac8098ac6fd9c5dd5bd8d3c78a0081fba | [
"MIT"
] | null | null | null | my-project.py | jcg122562/pandas-homework | 6f55ddeac8098ac6fd9c5dd5bd8d3c78a0081fba | [
"MIT"
] | null | null | null | my-project.py | jcg122562/pandas-homework | 6f55ddeac8098ac6fd9c5dd5bd8d3c78a0081fba | [
"MIT"
] | null | null | null | import pandas as pd
import matplotlib.pyplot as plt
import os
# uncomment these two lines so you can see all the records when you print or write instead of dot dot dot ...
# pd.set_option('display.max_columns', None)
# pd.set_option('display.max_rows', None)
def pretty_print(name, to_print):
print(f'{name} ')
... | 33.875 | 117 | 0.690605 | 532 | 3,523 | 4.43985 | 0.362782 | 0.083827 | 0.027519 | 0.035986 | 0.194327 | 0.073666 | 0.020322 | 0 | 0 | 0 | 0 | 0.047922 | 0.152995 | 3,523 | 103 | 118 | 34.203884 | 0.743633 | 0.48084 | 0 | 0.044444 | 0 | 0 | 0.314763 | 0.032312 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022222 | false | 0 | 0.066667 | 0 | 0.088889 | 0.422222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
845e3eda9f1fa948157c4371405ac7980b6125a8 | 4,351 | py | Python | saltysite.py | traaaavis/SaltyTools | 65eb0783e8d0c70eddb458f22694074a725f31d4 | [
"MIT"
] | 1 | 2021-04-18T06:35:24.000Z | 2021-04-18T06:35:24.000Z | saltysite.py | traaaavis/SaltyTools | 65eb0783e8d0c70eddb458f22694074a725f31d4 | [
"MIT"
] | null | null | null | saltysite.py | traaaavis/SaltyTools | 65eb0783e8d0c70eddb458f22694074a725f31d4 | [
"MIT"
] | 1 | 2021-02-08T20:15:20.000Z | 2021-02-08T20:15:20.000Z | import requests
import time
import json
from bs4 import BeautifulSoup
#local imports
import config
class scrape:
def __init__(self, session, request):
"""
Parameters
----------
session : Session
session object that persists website parameters and cookies
... | 38.504425 | 138 | 0.594346 | 471 | 4,351 | 5.388535 | 0.288747 | 0.042553 | 0.056344 | 0.041371 | 0.293144 | 0.228132 | 0.182427 | 0.146572 | 0.119779 | 0.119779 | 0 | 0.003995 | 0.309584 | 4,351 | 113 | 139 | 38.504425 | 0.840879 | 0.227994 | 0 | 0.246753 | 0 | 0 | 0.130241 | 0 | 0 | 0 | 0 | 0.00885 | 0 | 1 | 0.181818 | false | 0.025974 | 0.064935 | 0.090909 | 0.506494 | 0.012987 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
ffbd4e576c14c005ecf0d6746e3f09c9c9315234 | 576 | py | Python | setup.py | zojabutenko/palmetto-py | 643240d2ca23d08e3687b6dd15e3a327d3210f72 | [
"Apache-2.0"
] | null | null | null | setup.py | zojabutenko/palmetto-py | 643240d2ca23d08e3687b6dd15e3a327d3210f72 | [
"Apache-2.0"
] | null | null | null | setup.py | zojabutenko/palmetto-py | 643240d2ca23d08e3687b6dd15e3a327d3210f72 | [
"Apache-2.0"
] | null | null | null | from distutils.core import setup
setup(
name = 'palmettopy',
packages = ['palmettopy'], # this must be the same as the name above
version = 'v3.2',
description = 'Palmetto Python Interface',
author = 'Ivan Ermilov',
author_email = 'ivan.s.ermilov@gmail.com',
url = 'https://github.com/earthquakesan/palmett... | 33.882353 | 88 | 0.685764 | 74 | 576 | 5.297297 | 0.702703 | 0.040816 | 0.071429 | 0.086735 | 0.204082 | 0.204082 | 0.204082 | 0 | 0 | 0 | 0 | 0.008299 | 0.163194 | 576 | 16 | 89 | 36 | 0.804979 | 0.154514 | 0 | 0 | 0 | 0.0625 | 0.455487 | 0.049689 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.0625 | 0 | 0.0625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ffcb7c88b6fc4ac88a4e4240917d2ad9425018c9 | 2,041 | py | Python | app_news/migrations/0001_initial.py | bogdandrienko/kostanay-minerals | d266b3899f8403b5182e1dadf74b1f8bb580d17c | [
"MIT"
] | 1 | 2021-02-13T08:40:51.000Z | 2021-02-13T08:40:51.000Z | app_news/migrations/0001_initial.py | bogdandrienko/chrysotile-minerals | 47a4097e29ee40f2606807e28b2da466dfd7f3f4 | [
"MIT"
] | null | null | null | app_news/migrations/0001_initial.py | bogdandrienko/chrysotile-minerals | 47a4097e29ee40f2606807e28b2da466dfd7f3f4 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.6 on 2021-03-14 08:14
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Article',
fields=[
... | 42.520833 | 116 | 0.584517 | 200 | 2,041 | 5.765 | 0.42 | 0.133565 | 0.049436 | 0.06765 | 0.309627 | 0.309627 | 0.213356 | 0.213356 | 0.137034 | 0.137034 | 0 | 0.015614 | 0.278295 | 2,041 | 47 | 117 | 43.425532 | 0.767142 | 0.022048 | 0 | 0.35 | 1 | 0 | 0.211133 | 0.023069 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.05 | 0 | 0.15 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ffcd3dfd709a73140f3d38b45853ce0d284da261 | 935 | py | Python | backend/apps/users/migrations/0003_auto_20210313_2239.py | JAY-Chan9yu/nrise_backend | f6e26a4dae3eaede97372e5c6877342c2e3d6a0f | [
"MIT"
] | 1 | 2022-01-28T05:56:17.000Z | 2022-01-28T05:56:17.000Z | backend/apps/users/migrations/0003_auto_20210313_2239.py | JAY-Chan9yu/nrise_backend | f6e26a4dae3eaede97372e5c6877342c2e3d6a0f | [
"MIT"
] | null | null | null | backend/apps/users/migrations/0003_auto_20210313_2239.py | JAY-Chan9yu/nrise_backend | f6e26a4dae3eaede97372e5c6877342c2e3d6a0f | [
"MIT"
] | null | null | null | # Generated by Django 3.1.7 on 2021-03-13 22:39
import django.contrib.auth.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0002_user_withdrawal'),
]
operations = [
migrations.AddField(
model_name='user',
... | 37.4 | 342 | 0.663102 | 104 | 935 | 5.836538 | 0.596154 | 0.042834 | 0.056013 | 0.088962 | 0.194399 | 0.128501 | 0 | 0 | 0 | 0 | 0 | 0.037889 | 0.209626 | 935 | 24 | 343 | 38.958333 | 0.783491 | 0.048128 | 0 | 0.222222 | 1 | 0 | 0.22973 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ffd5159531caf39a03fb1e469de48d29d729e6a9 | 3,656 | py | Python | calc_confs_mode_overlap.py | victor-gil-sepulveda/PhD-ANMPythonHelpers | c0e15684cce4aa4da90141b51f043a567a5f8655 | [
"MIT"
] | 1 | 2017-11-01T15:19:10.000Z | 2017-11-01T15:19:10.000Z | calc_confs_mode_overlap.py | victor-gil-sepulveda/PhD-ANMPythonHelpers | c0e15684cce4aa4da90141b51f043a567a5f8655 | [
"MIT"
] | null | null | null | calc_confs_mode_overlap.py | victor-gil-sepulveda/PhD-ANMPythonHelpers | c0e15684cce4aa4da90141b51f043a567a5f8655 | [
"MIT"
] | null | null | null | '''
Created on 26/10/2015
@author: victor
'''
# one time script!
import os
from prody.proteins.pdbfile import parsePDB
from prody.dynamics.anm import ANM
import numpy
from anmichelpers.comparison.comparison import cumulative_overlap, overlap
from anmichelpers.tools.tools import norm
if __name__ == '__main__':
d... | 40.175824 | 114 | 0.700492 | 483 | 3,656 | 5.008282 | 0.242236 | 0.062009 | 0.082679 | 0.099215 | 0.528731 | 0.386523 | 0.340223 | 0.20711 | 0.152956 | 0.152956 | 0 | 0.014676 | 0.198578 | 3,656 | 91 | 115 | 40.175824 | 0.810922 | 0.080963 | 0 | 0.190476 | 0 | 0 | 0.061422 | 0.042965 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.095238 | null | null | 0.015873 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ffd923039634d7af3fdd0629245e34bd4b280c79 | 944 | py | Python | loja/cliente/migrations/0002_auto_20200417_1928.py | stoledo85/django-elaborata | 6a1ec8054f4c45ee0a224ac378086ce967a1a567 | [
"MIT"
] | null | null | null | loja/cliente/migrations/0002_auto_20200417_1928.py | stoledo85/django-elaborata | 6a1ec8054f4c45ee0a224ac378086ce967a1a567 | [
"MIT"
] | null | null | null | loja/cliente/migrations/0002_auto_20200417_1928.py | stoledo85/django-elaborata | 6a1ec8054f4c45ee0a224ac378086ce967a1a567 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.5 on 2020-04-17 22:28
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('cliente', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='endereco',
name='ruaEndereco',
... | 27.764706 | 97 | 0.581568 | 88 | 944 | 6.113636 | 0.568182 | 0.066915 | 0.126394 | 0.156134 | 0.152416 | 0.152416 | 0 | 0 | 0 | 0 | 0 | 0.036641 | 0.306144 | 944 | 33 | 98 | 28.606061 | 0.784733 | 0.047669 | 0 | 0.37037 | 1 | 0 | 0.15942 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.037037 | 0 | 0.148148 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ffe6c4d27e683acd275f705b4bab7a17fd99fe2a | 7,016 | py | Python | filter/gabor.py | yaukwankiu/armor | 6c57df82fe3e7761f43f9fbfe4f3b21882c91436 | [
"CC0-1.0"
] | 1 | 2015-11-06T06:41:33.000Z | 2015-11-06T06:41:33.000Z | filter/gabor.py | yaukwankiu/armor | 6c57df82fe3e7761f43f9fbfe4f3b21882c91436 | [
"CC0-1.0"
] | null | null | null | filter/gabor.py | yaukwankiu/armor | 6c57df82fe3e7761f43f9fbfe4f3b21882c91436 | [
"CC0-1.0"
] | null | null | null | # gabor filter for image processing
"""
reference:
Tropical Cyclone Identification and Tracking System
Using Integrated Neural Oscillatory Elastic Graph
Matching and Hybrid RBF Network Track Mining
Techniques (00846739.pdf)
Raymond S. T. Lee, Member, IEEE, and James N. K. Liu, Member, IEEE
I... | 34.22439 | 118 | 0.620867 | 883 | 7,016 | 4.911665 | 0.302378 | 0.018677 | 0.02398 | 0.031819 | 0.240719 | 0.206364 | 0.182384 | 0.138575 | 0.11644 | 0.099608 | 0 | 0.027715 | 0.244014 | 7,016 | 204 | 119 | 34.392157 | 0.78997 | 0.082953 | 0 | 0.13 | 0 | 0 | 0.13383 | 0.048936 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.12 | null | null | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ffe938d0fed191cb6fc9d3269d888e052c572fcf | 518 | py | Python | cfg_demo.py | gislite/maplet | eb2577eea96775861fd20b949cd4d88cbb6cd7d1 | [
"MIT"
] | 36 | 2017-04-04T15:20:33.000Z | 2021-06-30T09:37:42.000Z | cfg_demo.py | gislite/maplet | eb2577eea96775861fd20b949cd4d88cbb6cd7d1 | [
"MIT"
] | null | null | null | cfg_demo.py | gislite/maplet | eb2577eea96775861fd20b949cd4d88cbb6cd7d1 | [
"MIT"
] | 16 | 2017-02-26T01:01:43.000Z | 2021-03-17T07:47:57.000Z | # -*- coding:utf-8 -*-
'''
User defined Configuration for the application.
'''
DB_CFG = {
'db': 'maplet',
'user': 'maplet',
'pass': '131322',
}
SMTP_CFG = {
'name': '云算笔记',
'host': "smtp.ym.163.com",
'user': "admin@yunsuan.org",
'pass': "pass",
'postfix': 'yunsuan.org',
}
SITE_CFG = ... | 16.709677 | 47 | 0.515444 | 62 | 518 | 4.209677 | 0.758065 | 0.076628 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.080605 | 0.233591 | 518 | 31 | 48 | 16.709677 | 0.576826 | 0.133205 | 0 | 0 | 0 | 0 | 0.445701 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.086957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
08066df6bfc9096e3d5c867f2fbb1f7b147178f6 | 1,078 | py | Python | Python/30DaysofCode/Day 8 Dictionaries and Maps.py | hnwarid/HackerRankExercises | 5f6f710387b61cbf225e51517e702009659f4416 | [
"MIT"
] | null | null | null | Python/30DaysofCode/Day 8 Dictionaries and Maps.py | hnwarid/HackerRankExercises | 5f6f710387b61cbf225e51517e702009659f4416 | [
"MIT"
] | null | null | null | Python/30DaysofCode/Day 8 Dictionaries and Maps.py | hnwarid/HackerRankExercises | 5f6f710387b61cbf225e51517e702009659f4416 | [
"MIT"
] | null | null | null | # Enter your code here. Read input from STDIN. Print output to STDOUT
#with name and number input, divide both and enter into dict
phonebook = {}
number = int(input())
for _ in range(0, number):
item = str(input()).split(" ")
name = item[0]
phonenumber = int(item[1])
phonebook[name] = phonenumber
#... | 26.95 | 69 | 0.630798 | 154 | 1,078 | 4.409091 | 0.376623 | 0.030928 | 0.038292 | 0.050074 | 0.447717 | 0.447717 | 0.377025 | 0.377025 | 0.377025 | 0.377025 | 0 | 0.008772 | 0.25974 | 1,078 | 40 | 70 | 26.95 | 0.842105 | 0.356215 | 0 | 0.296296 | 0 | 0 | 0.030612 | 0 | 0 | 0 | 0 | 0.025 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.148148 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0810b64a8e41ca61872f340e74d03c9e81e90dd1 | 1,269 | py | Python | boston_regression.py | abdoulayegk/deep-learning-demo | 68b9ad6963e07ac2cb9b94b0282f034542a5eecb | [
"MIT"
] | null | null | null | boston_regression.py | abdoulayegk/deep-learning-demo | 68b9ad6963e07ac2cb9b94b0282f034542a5eecb | [
"MIT"
] | null | null | null | boston_regression.py | abdoulayegk/deep-learning-demo | 68b9ad6963e07ac2cb9b94b0282f034542a5eecb | [
"MIT"
] | null | null | null | from pandas.core.algorithms import mode
import tensorflow as tf
from tensorflow import keras
import tensorflow
from tensorflow.keras import optimizers
from tensorflow.keras.layers import Dense
from tensorflow.keras import Sequential
import pandas as pd
from sklearn.model_selection import train_test_split
from tensorflo... | 30.214286 | 109 | 0.77699 | 198 | 1,269 | 4.843434 | 0.459596 | 0.10219 | 0.079249 | 0.052138 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017086 | 0.123719 | 1,269 | 41 | 110 | 30.95122 | 0.845324 | 0.104807 | 0 | 0 | 0 | 0.033333 | 0.135279 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
0826423d7768d36f26cc556b8f44ff454341b0ef | 6,369 | py | Python | toyproblem/sim.py | mrdmnd/portunus | 5b4f7df2159908b15d31b421488db6de9f23f48d | [
"MIT"
] | 2 | 2018-07-03T04:19:11.000Z | 2018-09-30T18:35:37.000Z | toyproblem/sim.py | mrdmnd/policygen | 5b4f7df2159908b15d31b421488db6de9f23f48d | [
"MIT"
] | 1 | 2020-06-06T08:30:52.000Z | 2020-06-06T08:30:52.000Z | toyproblem/sim.py | mrdmnd/portunus | 5b4f7df2159908b15d31b421488db6de9f23f48d | [
"MIT"
] | null | null | null | import random
import collections
import math
class State:
def __init__(self, target_health=1000, energy=100, combo_points=0, gcd_remains=0.0, opportunity_remains=0.0, sim_time=0.0):
self.target_health = target_health
self.energy = energy
self.combo_points = combo_points
self.gcd_rem... | 38.36747 | 146 | 0.678442 | 835 | 6,369 | 4.886228 | 0.177246 | 0.102941 | 0.036765 | 0.030882 | 0.515196 | 0.429657 | 0.429657 | 0.394608 | 0.333824 | 0.333824 | 0 | 0.025493 | 0.236301 | 6,369 | 166 | 147 | 38.36747 | 0.813322 | 0.164233 | 0 | 0.441441 | 0 | 0.009009 | 0.027927 | 0.009181 | 0 | 0 | 0 | 0 | 0 | 1 | 0.171171 | false | 0.018018 | 0.027027 | 0.108108 | 0.396396 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
0826c6cf3ce0f2d9ea5793f1c86f628248bade24 | 1,549 | py | Python | finances/migrations/0002_auto_20210119_1120.py | ericmuh/recruitment-system | d9964e7c48ac8af74995e28f489135c1d8f940be | [
"MIT"
] | 2 | 2021-02-07T12:08:47.000Z | 2021-02-22T07:12:53.000Z | finances/migrations/0002_auto_20210119_1120.py | Paphra/recruitment-cms | 2894d5285a6da4ff47c114377968c8fda95c24b6 | [
"MIT"
] | null | null | null | finances/migrations/0002_auto_20210119_1120.py | Paphra/recruitment-cms | 2894d5285a6da4ff47c114377968c8fda95c24b6 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.5 on 2021-01-19 08:20
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('fina... | 34.422222 | 152 | 0.624274 | 175 | 1,549 | 5.388571 | 0.302857 | 0.059385 | 0.089077 | 0.139979 | 0.555673 | 0.555673 | 0.439024 | 0.439024 | 0.439024 | 0.439024 | 0 | 0.019793 | 0.249839 | 1,549 | 44 | 153 | 35.204545 | 0.791738 | 0.029051 | 0 | 0.405405 | 1 | 0 | 0.09787 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.081081 | 0 | 0.189189 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0832a0deb195404a6db06ce0cea09df1a55d33d5 | 1,599 | py | Python | Main.py | roberto-leandro/ProyectoRedes | ecc44f3cdc36bf908ed810323f7ff142f83c5221 | [
"Unlicense"
] | null | null | null | Main.py | roberto-leandro/ProyectoRedes | ecc44f3cdc36bf908ed810323f7ff142f83c5221 | [
"Unlicense"
] | null | null | null | Main.py | roberto-leandro/ProyectoRedes | ecc44f3cdc36bf908ed810323f7ff142f83c5221 | [
"Unlicense"
] | null | null | null | #!/usr/bin/env python3
import sys
import csv
import os
import multiprocessing
from UDPNode import UDPNode
def spawn_node(node, edges):
neighbors = dict()
for (node_a, node_b), cost in edges.items():
if node_a == node:
neighbors[node_b] = cost
elif node_b == node:
neighb... | 28.553571 | 75 | 0.55222 | 241 | 1,599 | 3.473029 | 0.302905 | 0.065711 | 0.053763 | 0.035842 | 0.195938 | 0.179211 | 0.117085 | 0.117085 | 0.117085 | 0.117085 | 0 | 0.027778 | 0.302064 | 1,599 | 55 | 76 | 29.072727 | 0.722222 | 0.053784 | 0 | 0.136364 | 0 | 0 | 0.122517 | 0 | 0 | 0 | 0 | 0.018182 | 0 | 1 | 0.045455 | false | 0 | 0.113636 | 0 | 0.159091 | 0.022727 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
083585cacd629a69d82e31d5aa5f4fe80952ef2d | 2,794 | py | Python | 01_fibo/analyze.py | Tjorriemorrie/trading | aafa15a6c564bfa86948ab30e33d554172b38a3e | [
"MIT"
] | 2 | 2017-07-02T09:06:28.000Z | 2020-09-11T04:23:14.000Z | 01_fibo/analyze.py | Tjorriemorrie/trading | aafa15a6c564bfa86948ab30e33d554172b38a3e | [
"MIT"
] | 2 | 2021-03-31T19:14:07.000Z | 2021-06-01T23:34:32.000Z | 01_fibo/analyze.py | Tjorriemorrie/trading | aafa15a6c564bfa86948ab30e33d554172b38a3e | [
"MIT"
] | 2 | 2016-03-29T07:51:16.000Z | 2016-10-30T04:53:58.000Z | import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from random import choice
from features import FeatureFactory
def addMaxMins(df, n=2):
'''
get highs and lows for n periods backwards
1 min = 1m
2 min = 2m
4 min = 4m
8 min = 8m
16 min = 16m
32 min = 32m
64 min... | 21.492308 | 78 | 0.511453 | 336 | 2,794 | 4.196429 | 0.416667 | 0.017021 | 0.014894 | 0.012766 | 0.032624 | 0.032624 | 0 | 0 | 0 | 0 | 0 | 0.037486 | 0.350752 | 2,794 | 129 | 79 | 21.658915 | 0.739802 | 0.1267 | 0 | 0 | 0 | 0 | 0.143319 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.071429 | null | null | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0839019d7821cfcc1dd4d3050f54fe970150dff4 | 992 | py | Python | src/ai_package/ai_avoid_bomb.py | vineetjc/pygame-Coin-Fall- | 0d8629afa73f41edb4eea11bf0b7e346008499f1 | [
"MIT"
] | 5 | 2018-12-11T12:38:46.000Z | 2022-02-13T05:29:18.000Z | src/ai_package/ai_avoid_bomb.py | vineetjc/pygame-Coin-Fall- | 0d8629afa73f41edb4eea11bf0b7e346008499f1 | [
"MIT"
] | 56 | 2018-11-27T06:52:57.000Z | 2019-01-05T21:09:55.000Z | src/ai_package/ai_avoid_bomb.py | vineetjc/pygame-Coin-Fall- | 0d8629afa73f41edb4eea11bf0b7e346008499f1 | [
"MIT"
] | 31 | 2018-11-30T23:09:13.000Z | 2019-11-21T04:21:56.000Z | ####################################
# Example AI which moves based on
# the lowest bomb location
####################################
import math
from .ai_base import AI_Base
from src.misc.game_enums import Entity
class AI_Avoid_Bomb(AI_Base):
def __init__(self):
pass
def restart(self):
pas... | 23.069767 | 54 | 0.518145 | 129 | 992 | 3.713178 | 0.395349 | 0.104384 | 0.087683 | 0.058455 | 0.129436 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022866 | 0.33871 | 992 | 42 | 55 | 23.619048 | 0.707317 | 0.056452 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.107143 | false | 0.071429 | 0.107143 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
08420ae7e704fc95acd80329fb400cf648240369 | 773 | py | Python | terragpu/test/test_dataset_segmentation.py | jordancaraballo/xrasterlib | b559caf18ed3e12128ce4f8c9fb75e4f12df950e | [
"Apache-2.0"
] | 7 | 2021-12-14T14:44:43.000Z | 2021-12-14T18:03:41.000Z | terragpu/test/test_dataset_segmentation.py | jordancaraballo/xrasterlib | b559caf18ed3e12128ce4f8c9fb75e4f12df950e | [
"Apache-2.0"
] | 7 | 2021-12-13T17:32:31.000Z | 2021-12-14T15:22:55.000Z | terragpu/test/test_dataset_segmentation.py | nasa-cisto-ai/terragpu | b559caf18ed3e12128ce4f8c9fb75e4f12df950e | [
"Apache-2.0"
] | null | null | null | from terragpu.ai.deep_learning.datasets.segmentation_dataset \
import SegmentationDataset
prepare_data = True
images_regex = '/Users/jacaraba/Desktop/development/ilab/vhr-cloudmask/data/images/*.tif'
labels_regex = '/Users/jacaraba/Desktop/development/ilab/vhr-cloudmask/data/labels/*.tif'
dataset_dir = '/Users/jac... | 35.136364 | 89 | 0.711514 | 101 | 773 | 5.267327 | 0.514851 | 0.06203 | 0.112782 | 0.174812 | 0.306391 | 0.306391 | 0.306391 | 0.306391 | 0.210526 | 0 | 0 | 0.034175 | 0.129366 | 773 | 21 | 90 | 36.809524 | 0.756315 | 0 | 0 | 0 | 0 | 0 | 0.305304 | 0.272962 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 0.052632 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
08468e312dbcecd49b965cb18cf33f06f43d350e | 897 | py | Python | openmaps_auth/urls.py | radiant-maxar/openmaps-auth | 3c4205deae85815ee8a7bfec0a21b1511fbe8640 | [
"Apache-2.0"
] | null | null | null | openmaps_auth/urls.py | radiant-maxar/openmaps-auth | 3c4205deae85815ee8a7bfec0a21b1511fbe8640 | [
"Apache-2.0"
] | null | null | null | openmaps_auth/urls.py | radiant-maxar/openmaps-auth | 3c4205deae85815ee8a7bfec0a21b1511fbe8640 | [
"Apache-2.0"
] | null | null | null | from django.conf import settings
from django.urls import include, path
from . import views
urlpatterns = [
path(f"{settings.BASE_PATH}callback", views.callback, name="callback"),
path(f"{settings.BASE_PATH}index", views.index, name="index"),
path(f"{settings.BASE_PATH}v0/auth/login", views.login, name="op... | 34.5 | 86 | 0.694537 | 124 | 897 | 4.935484 | 0.282258 | 0.065359 | 0.169935 | 0.222222 | 0.356209 | 0.321895 | 0.176471 | 0 | 0 | 0 | 0 | 0.007843 | 0.147157 | 897 | 25 | 87 | 35.88 | 0.792157 | 0.052397 | 0 | 0 | 0 | 0 | 0.380896 | 0.290094 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
085009aff45ac40b6bb0ae04f3dd9125912b6c8a | 305 | py | Python | python/cursoemvideo-python/extras/testes/teste.py | Alex4gtx/estudos | cf5908c543be1b112157b1c95f3d987484ff2505 | [
"MIT"
] | null | null | null | python/cursoemvideo-python/extras/testes/teste.py | Alex4gtx/estudos | cf5908c543be1b112157b1c95f3d987484ff2505 | [
"MIT"
] | null | null | null | python/cursoemvideo-python/extras/testes/teste.py | Alex4gtx/estudos | cf5908c543be1b112157b1c95f3d987484ff2505 | [
"MIT"
] | null | null | null | numero = int(input('digite um numero: '))
u = numero // 1 % 10
d = numero // 10 % 10
c = numero // 100 % 10
m = numero // 1000 % 10
print('analisando numero {}'.format(numero))
print('unidades: {}'.format(u))
print('dezenas: {}'.format(d))
print('centenas: {}'.format(c))
print('milhares: {}'.format(m))
| 25.416667 | 44 | 0.609836 | 43 | 305 | 4.325581 | 0.465116 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.069498 | 0.15082 | 305 | 11 | 45 | 27.727273 | 0.648649 | 0 | 0 | 0 | 0 | 0 | 0.278689 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
085639ad5872b23e0fbe210a12a0d1846833ac06 | 2,317 | py | Python | static/brythonlib/gradepad/grader.py | pythonpad/vue-pythonpad-runner | 52decba9607b3b7b050ee0bf6dd4ef07ae644587 | [
"MIT"
] | 3 | 2021-01-26T16:18:45.000Z | 2021-09-15T00:57:12.000Z | static/brythonlib/gradepad/grader.py | pythonpad/vue-pythonpad-runner | 52decba9607b3b7b050ee0bf6dd4ef07ae644587 | [
"MIT"
] | null | null | null | static/brythonlib/gradepad/grader.py | pythonpad/vue-pythonpad-runner | 52decba9607b3b7b050ee0bf6dd4ef07ae644587 | [
"MIT"
] | 2 | 2021-01-26T16:18:47.000Z | 2021-10-21T20:45:20.000Z | import sys
from .phrases import load_phrase
class Test:
def __init__(self, grader, desc, fail_msg):
self.grader = grader
self.desc = desc
self.fail_msg = fail_msg
self.failed = False
def fail(self):
self.failed = True
def expect(self, value):
... | 28.9625 | 105 | 0.52568 | 282 | 2,317 | 4.148936 | 0.241135 | 0.068376 | 0.071795 | 0.046154 | 0.284615 | 0.167521 | 0.123077 | 0.075214 | 0.075214 | 0.075214 | 0 | 0.000679 | 0.364696 | 2,317 | 80 | 106 | 28.9625 | 0.794158 | 0 | 0 | 0.242424 | 0 | 0 | 0.020708 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0.166667 | 0.030303 | 0 | 0.257576 | 0.227273 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
f22d5a15121cf5983c68800d6a8be0570d19d449 | 7,906 | py | Python | provy/more/debian/security/selinux.py | timgates42/provy | ca3d5e96a2210daf3c1fd4b96e047efff152db14 | [
"MIT"
] | 15 | 2015-01-28T15:49:28.000Z | 2021-09-02T18:49:46.000Z | provy/more/debian/security/selinux.py | timgates42/provy | ca3d5e96a2210daf3c1fd4b96e047efff152db14 | [
"MIT"
] | null | null | null | provy/more/debian/security/selinux.py | timgates42/provy | ca3d5e96a2210daf3c1fd4b96e047efff152db14 | [
"MIT"
] | 3 | 2016-12-05T07:08:11.000Z | 2021-12-26T04:31:05.000Z | import fabric.api
from provy.core import Role
from provy.more.debian.package.aptitude import AptitudeRole
'''
Roles in this namespace are meant to provide `SELinux <http://selinuxproject.org/>`_ management utilities for Debian distributions.
'''
class SELinuxRole(Role):
'''
This role provides `SELinux <http... | 37.827751 | 173 | 0.619403 | 958 | 7,906 | 4.981211 | 0.204593 | 0.033948 | 0.039187 | 0.035834 | 0.583613 | 0.511106 | 0.488684 | 0.45767 | 0.436295 | 0.393965 | 0 | 0.000359 | 0.295092 | 7,906 | 208 | 174 | 38.009615 | 0.855912 | 0.573109 | 0 | 0.090909 | 0 | 0.022727 | 0.156984 | 0.009065 | 0 | 0 | 0 | 0 | 0 | 1 | 0.227273 | false | 0 | 0.068182 | 0 | 0.340909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f236c2e15ac4f06f30b837affffe3154e7a47f89 | 543 | py | Python | tests/median.py | cnpapado/gigmix | 5d0cf33fbb4147bd0f5a28a59a8c908cfb867012 | [
"MIT"
] | null | null | null | tests/median.py | cnpapado/gigmix | 5d0cf33fbb4147bd0f5a28a59a8c908cfb867012 | [
"MIT"
] | null | null | null | tests/median.py | cnpapado/gigmix | 5d0cf33fbb4147bd0f5a28a59a8c908cfb867012 | [
"MIT"
] | null | null | null | import numpy
import sys
import os
sys.path.append(os.path.abspath("/mnt/MyData/UbuntuDesktop/ClosestPair/this_flask/misc/"))
from 'quickselect.py' import *
with open("quickselect.in") as f:
lines=f.readlines()
for index, line in enumerate(lines):
if index%2==0:
k = int(line)
co... | 30.166667 | 90 | 0.618785 | 74 | 543 | 4.527027 | 0.608108 | 0.01791 | 0.077612 | 0.107463 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00716 | 0.228361 | 543 | 17 | 91 | 31.941176 | 0.792363 | 0.051565 | 0 | 0 | 0 | 0 | 0.196881 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.266667 | null | null | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.