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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ce39a6bdc68fb5b522e73f0685bff9049452ed8c | 2,447 | py | Python | app/api/operator_api.py | deepzec/Apfell | 36ad56e21cd7e2f6cf50e83ccd27faa0c5cc6b0d | [
"BSD-3-Clause"
] | 1 | 2018-12-25T05:18:06.000Z | 2018-12-25T05:18:06.000Z | app/api/operator_api.py | deepzec/Apfell | 36ad56e21cd7e2f6cf50e83ccd27faa0c5cc6b0d | [
"BSD-3-Clause"
] | null | null | null | app/api/operator_api.py | deepzec/Apfell | 36ad56e21cd7e2f6cf50e83ccd27faa0c5cc6b0d | [
"BSD-3-Clause"
] | null | null | null | from app import apfell, db_objects, auth
from sanic.response import json
from app.database_models.model import Operator
from sanic import response
from sanic.exceptions import abort
from app import crypto
from sanic_auth import User
# ------------ OPERATORS ------------------------
@apfell.route("/api/v1.0/operators/... | 34.957143 | 94 | 0.626073 | 322 | 2,447 | 4.686335 | 0.26087 | 0.047714 | 0.064944 | 0.059642 | 0.424122 | 0.377071 | 0.332008 | 0.23393 | 0.187541 | 0.162359 | 0 | 0.014166 | 0.221087 | 2,447 | 70 | 95 | 34.957143 | 0.777545 | 0.066612 | 0 | 0.357143 | 0 | 0 | 0.197807 | 0.046491 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.071429 | 0.125 | 0 | 0.285714 | 0.017857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ce422b1cf11f2925e90e0ab1ee4fbde8aafda24e | 2,933 | py | Python | tests/test_decorator_anonymous_dataframe_pandas.py | christianhelle/autofaker | d5395e8d22c5a1fc11ce7b3a22a5c46b52a2a188 | [
"MIT"
] | null | null | null | tests/test_decorator_anonymous_dataframe_pandas.py | christianhelle/autofaker | d5395e8d22c5a1fc11ce7b3a22a5c46b52a2a188 | [
"MIT"
] | 1 | 2022-02-06T21:18:34.000Z | 2022-02-06T21:18:34.000Z | tests/test_decorator_anonymous_dataframe_pandas.py | christianhelle/autofaker | d5395e8d22c5a1fc11ce7b3a22a5c46b52a2a188 | [
"MIT"
] | null | null | null | import unittest
from dataclasses import dataclass
import pandas
from autofaker import autopandas, fakepandas, autodata
class SimpleClassA:
id = -1
name: 'test'
text = 'test'
class SimpleClassB:
def __init__(self, id: int, name: str, text: str):
self.text = text
self.name = name
... | 29.928571 | 107 | 0.74804 | 341 | 2,933 | 6.11437 | 0.167155 | 0.143885 | 0.109353 | 0.100719 | 0.678177 | 0.633094 | 0.577458 | 0.557794 | 0.486331 | 0.486331 | 0 | 0.005348 | 0.171156 | 2,933 | 97 | 108 | 30.237113 | 0.852324 | 0 | 0 | 0.411765 | 0 | 0 | 0.002728 | 0 | 0 | 0 | 0 | 0 | 0.205882 | 1 | 0.220588 | false | 0 | 0.058824 | 0 | 0.470588 | 0.044118 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
cbf6dc157191b8ec464d162f46de6eeab42a6b61 | 2,555 | py | Python | application.py | Samb55/AWS | a5963557a7f6f4cc2bf4de8af7dc0b260dc2b982 | [
"MIT"
] | 1 | 2021-04-15T17:01:20.000Z | 2021-04-15T17:01:20.000Z | application.py | Samb55/AWS | a5963557a7f6f4cc2bf4de8af7dc0b260dc2b982 | [
"MIT"
] | null | null | null | application.py | Samb55/AWS | a5963557a7f6f4cc2bf4de8af7dc0b260dc2b982 | [
"MIT"
] | null | null | null | from flask import Flask, render_template, request, redirect, url_for, session
from flaskext.mysql import MySQL
import bcrypt
application=app = Flask(__name__ , static_url_path='/static')
app.secret_key = '^A%DJAJU^JJ123'
#app.config['SESSION_TYPE'] = 'filesystem'
app.config['MYSQL_DATABASE_HOST'] = 'endpoint of the da... | 32.341772 | 113 | 0.632485 | 317 | 2,555 | 4.971609 | 0.290221 | 0.088832 | 0.114213 | 0.055838 | 0.318528 | 0.270305 | 0.224619 | 0.140863 | 0.079949 | 0 | 0 | 0.004948 | 0.209002 | 2,555 | 78 | 114 | 32.75641 | 0.774864 | 0.016047 | 0 | 0.21875 | 0 | 0 | 0.246319 | 0.009152 | 0 | 0 | 0 | 0 | 0 | 1 | 0.109375 | false | 0.109375 | 0.046875 | 0.0625 | 0.328125 | 0.015625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
cbf715cf9abce4cc77ce06ce8a949a29a805903f | 645 | py | Python | woid/apps/services/migrations/0006_auto_20150902_1522.py | emognato/project | 49b3fb4f3c6036380a65b8eb2d1f86fb88067c0a | [
"Apache-2.0"
] | 229 | 2015-11-26T14:31:16.000Z | 2022-02-13T20:59:28.000Z | woid/apps/services/migrations/0006_auto_20150902_1522.py | emognato/project | 49b3fb4f3c6036380a65b8eb2d1f86fb88067c0a | [
"Apache-2.0"
] | 10 | 2016-10-19T04:58:12.000Z | 2021-06-10T21:31:10.000Z | woid/apps/services/migrations/0006_auto_20150902_1522.py | gsdeeksha/makeiteasy | e05afc739dabf6fcd76ca1511b3f8a0395879d61 | [
"Apache-2.0"
] | 160 | 2015-11-23T19:48:24.000Z | 2022-02-08T16:13:51.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('services', '0005_auto_20150901_1253'),
]
operations = [
migrations.AlterField(
model_name='story',
n... | 25.8 | 133 | 0.576744 | 70 | 645 | 5.114286 | 0.671429 | 0.111732 | 0.139665 | 0.162011 | 0.212291 | 0.212291 | 0 | 0 | 0 | 0 | 0 | 0.038462 | 0.274419 | 645 | 24 | 134 | 26.875 | 0.726496 | 0.032558 | 0 | 0.333333 | 0 | 0 | 0.115756 | 0.036977 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.277778 | 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 |
cbf8fa189686d3ffc86eb73fd6a8c7fab18e269f | 1,409 | py | Python | functions/exercise/02_add_and_subtract.py | Galchov/python-fundamentals | 4939bdd1c66a7b458fd9ffd0a01d714de26724b5 | [
"MIT"
] | null | null | null | functions/exercise/02_add_and_subtract.py | Galchov/python-fundamentals | 4939bdd1c66a7b458fd9ffd0a01d714de26724b5 | [
"MIT"
] | null | null | null | functions/exercise/02_add_and_subtract.py | Galchov/python-fundamentals | 4939bdd1c66a7b458fd9ffd0a01d714de26724b5 | [
"MIT"
] | null | null | null | def sum_numbers(first_int, second_int):
"""Returns the sum of the two integers"""
result = first_int + second_int
return result
def subtract(third_int):
"""Returns the difference between the
result of sum_numbers and the third integer"""
diff = sum_numbers(first_int=number_1, second_int=numbe... | 24.719298 | 75 | 0.684883 | 217 | 1,409 | 4.165899 | 0.16129 | 0.077434 | 0.061947 | 0.075221 | 0.547566 | 0.450221 | 0.369469 | 0.316372 | 0.316372 | 0.238938 | 0 | 0.028269 | 0.196593 | 1,409 | 57 | 76 | 24.719298 | 0.770318 | 0.58907 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0 | 0 | 0.357143 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cbfa386555e0fb49fdd3bdc31bc4714f09665fdc | 3,894 | py | Python | htsinfer_barcode_kmer.v2.py | buffalo0124/python_practice | 0cee4944f05373c3e42e15538382d6e8ebda0f45 | [
"MIT"
] | null | null | null | htsinfer_barcode_kmer.v2.py | buffalo0124/python_practice | 0cee4944f05373c3e42e15538382d6e8ebda0f45 | [
"MIT"
] | null | null | null | htsinfer_barcode_kmer.v2.py | buffalo0124/python_practice | 0cee4944f05373c3e42e15538382d6e8ebda0f45 | [
"MIT"
] | null | null | null | """Infer potential barcode k-mers from sample data"""
from enum import Enum
from typing import List, Tuble
class Outcomes(Enum):
invalid_nuc_requested = "invalid_nucleotide_requested"
invalid_number_requested = "invalid_number_requested"
def group_kmers(input_kmers: List[str], kmer_size: float) -> List[str]... | 38.94 | 123 | 0.530303 | 419 | 3,894 | 4.823389 | 0.293556 | 0.026719 | 0.07719 | 0.030678 | 0.031667 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012074 | 0.404468 | 3,894 | 99 | 124 | 39.333333 | 0.859422 | 0.165126 | 0 | 0.054054 | 0 | 0 | 0.050696 | 0.028969 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.054054 | null | null | 0.027027 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
02059988974c26b786ef4bcd7779cc241f38fdaf | 13,054 | py | Python | tests/test_package_fetcher.py | UnitedTraders/centos-package-cron | 83fc8db7877d3f3f8845a70c1109081374eced16 | [
"BSD-2-Clause"
] | null | null | null | tests/test_package_fetcher.py | UnitedTraders/centos-package-cron | 83fc8db7877d3f3f8845a70c1109081374eced16 | [
"BSD-2-Clause"
] | null | null | null | tests/test_package_fetcher.py | UnitedTraders/centos-package-cron | 83fc8db7877d3f3f8845a70c1109081374eced16 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/python
# coding: latin-1
import unittest
import sys
import os
from centos_package_cron import package_fetcher
from mock import Mock
from centos_package_cron import mockable_execute
class ChangeLogParserTestCase(unittest.TestCase):
def testGet_log_version_nums_selinux(self):
# arrange
pa... | 34.903743 | 154 | 0.654665 | 1,565 | 13,054 | 5.284345 | 0.192971 | 0.05925 | 0.027932 | 0.063482 | 0.713543 | 0.655381 | 0.603507 | 0.572672 | 0.557678 | 0.547884 | 0 | 0.050344 | 0.231577 | 13,054 | 373 | 155 | 34.997319 | 0.7741 | 0.047801 | 0 | 0.441176 | 0 | 0.029412 | 0.238924 | 0.024378 | 0 | 0 | 0 | 0 | 0.205882 | 0 | null | null | 0 | 0.029412 | null | null | 0.029412 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
021af8ec6d18e02ed39bba773445a558584e8141 | 172,087 | py | Python | madgraph/various/banner.py | jlrainbolt/MG5_v2_6_1 | 241f0c6f309342d6e8b813284467b2edd393c7d6 | [
"NCSA"
] | null | null | null | madgraph/various/banner.py | jlrainbolt/MG5_v2_6_1 | 241f0c6f309342d6e8b813284467b2edd393c7d6 | [
"NCSA"
] | null | null | null | madgraph/various/banner.py | jlrainbolt/MG5_v2_6_1 | 241f0c6f309342d6e8b813284467b2edd393c7d6 | [
"NCSA"
] | null | null | null | ################################################################################
#
# Copyright (c) 2011 The MadGraph5_aMC@NLO Development team and Contributors
#
# This file is a part of the MadGraph5_aMC@NLO project, an application which
# automatically generates Feynman diagrams and matrix elements for arbitrary
# h... | 44.779339 | 634 | 0.529645 | 19,835 | 172,087 | 4.445677 | 0.079405 | 0.029848 | 0.049943 | 0.02631 | 0.432638 | 0.367907 | 0.322953 | 0.272794 | 0.247709 | 0.222658 | 0 | 0.016963 | 0.352874 | 172,087 | 3,842 | 635 | 44.790994 | 0.774869 | 0.07581 | 0 | 0.340837 | 0 | 0.019346 | 0.182444 | 0.0159 | 0 | 0 | 0 | 0 | 0.005276 | 0 | null | null | 0.004221 | 0.01407 | null | null | 0.002814 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
022083d1fecab641bc684b6a2a46a6b66ddaf97f | 290 | py | Python | scrapy/apsnypress/scripts/Remove_json_duplicates.py | Plkmoi/Multilingual-Parallel-Corpus | b42360e45459d4c9f3236bb19e372c4a4c2e2557 | [
"CC0-1.0"
] | 11 | 2020-08-07T19:08:13.000Z | 2022-02-18T08:49:19.000Z | scrapy/apsnypress/scripts/Remove_json_duplicates.py | Plkmoi/Multilingual-Parallel-Corpus | b42360e45459d4c9f3236bb19e372c4a4c2e2557 | [
"CC0-1.0"
] | 90 | 2020-07-09T09:07:20.000Z | 2022-03-23T09:18:09.000Z | scrapy/apsnypress/scripts/Remove_json_duplicates.py | Plkmoi/Multilingual-Parallel-Corpus | b42360e45459d4c9f3236bb19e372c4a4c2e2557 | [
"CC0-1.0"
] | 3 | 2020-08-07T19:04:55.000Z | 2021-06-13T07:02:32.000Z | import re
import io
import json
# Format the date and sort by date for ru
with open('../data_ru.json', 'r') as f:
data_ru = json.load(f)
unique = { each['name'] : each for each in data_ru }
with open('../data_ru_see.json', 'w') as outfile:
json.dump(unique, outfile, indent = 1)
| 22.307692 | 52 | 0.658621 | 52 | 290 | 3.576923 | 0.557692 | 0.129032 | 0.107527 | 0.150538 | 0.172043 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004274 | 0.193103 | 290 | 12 | 53 | 24.166667 | 0.790598 | 0.134483 | 0 | 0 | 0 | 0 | 0.160643 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
0220b17f7569b3246216c50884dc87ca07e40d64 | 12,286 | py | Python | skelm/elm_large.py | GrumpySapiens/scikit-elm | 799ecbddc3a4feffac52be0f71b441705cd445a1 | [
"MIT"
] | 13 | 2019-08-15T11:14:55.000Z | 2022-02-17T06:32:16.000Z | skelm/elm_large.py | EspinosaLeal/scikit-elm | 7fa426476b515826c16fc33ec491e9f2fb0f9d42 | [
"MIT"
] | 1 | 2021-09-30T20:05:28.000Z | 2021-09-30T20:05:41.000Z | skelm/elm_large.py | EspinosaLeal/scikit-elm | 7fa426476b515826c16fc33ec491e9f2fb0f9d42 | [
"MIT"
] | 6 | 2021-01-29T04:42:51.000Z | 2021-12-22T08:16:57.000Z | import numpy as np
from sklearn.base import RegressorMixin
from sklearn.metrics import pairwise_distances
from sklearn.utils.validation import check_is_fitted, check_array
import dask.array as da
import dask.dataframe as dd
from .elm import BasicELM
from dask.distributed import Client, LocalCluster, wait
from .utils ... | 37.230303 | 120 | 0.608986 | 1,660 | 12,286 | 4.359036 | 0.274699 | 0.018657 | 0.010779 | 0.011747 | 0.134881 | 0.102681 | 0.072968 | 0.072968 | 0.0644 | 0.0644 | 0 | 0.011465 | 0.304249 | 12,286 | 329 | 121 | 37.343465 | 0.835049 | 0.398014 | 0 | 0.166667 | 0 | 0 | 0.062283 | 0.004345 | 0 | 0 | 0 | 0.045593 | 0 | 1 | 0.057692 | false | 0.025641 | 0.064103 | 0 | 0.185897 | 0.019231 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
02225f2b0c87fc71ea4b037e7898899dd4908f73 | 856 | py | Python | server/player/admin.py | Xelia/mahjong-portal | 1baa2eab57875a64a7f09537d1f43872b577f205 | [
"MIT"
] | null | null | null | server/player/admin.py | Xelia/mahjong-portal | 1baa2eab57875a64a7f09537d1f43872b577f205 | [
"MIT"
] | null | null | null | server/player/admin.py | Xelia/mahjong-portal | 1baa2eab57875a64a7f09537d1f43872b577f205 | [
"MIT"
] | null | null | null | from django import forms
from django.contrib import admin
from player.models import Player
from player.tenhou.models import TenhouNickname
class PlayerForm(forms.ModelForm):
class Meta:
model = Player
exclude = ['first_name', 'last_name']
class TenhouNicknameInline(admin.TabularInline):
mo... | 23.777778 | 96 | 0.702103 | 102 | 856 | 5.647059 | 0.509804 | 0.078125 | 0.034722 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001439 | 0.188084 | 856 | 35 | 97 | 24.457143 | 0.827338 | 0 | 0 | 0 | 0 | 0 | 0.169393 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.173913 | 0.043478 | 0.782609 | 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 |
022404a1606666b6f6ad003c1665afb4b7fd7c29 | 1,510 | py | Python | tests/test_boogie_output_parser.py | sreeja/soteria_tool | c6332520b06dae7bc76737683614ab4225ef0608 | [
"MIT"
] | 2 | 2019-03-25T10:57:04.000Z | 2022-02-16T13:44:05.000Z | tests/test_boogie_output_parser.py | sreeja/soteria_tool | c6332520b06dae7bc76737683614ab4225ef0608 | [
"MIT"
] | null | null | null | tests/test_boogie_output_parser.py | sreeja/soteria_tool | c6332520b06dae7bc76737683614ab4225ef0608 | [
"MIT"
] | 1 | 2022-02-16T13:44:16.000Z | 2022-02-16T13:44:16.000Z | from soteria.debug_support.boogie_output_parser import BoogieOutputParser
class TestBoogieOutputParser:
sample1 = '''input(168,1): Error BP5002: A precondition for this call might not hold.
input(146,1): Related location: This is the precondition that might not hold.
Execution trace:
input(164,2): anon0
input(... | 47.1875 | 116 | 0.734437 | 215 | 1,510 | 5.083721 | 0.325581 | 0.051235 | 0.076853 | 0.073193 | 0.592864 | 0.592864 | 0.485819 | 0.485819 | 0.452882 | 0.37054 | 0 | 0.077476 | 0.170861 | 1,510 | 32 | 117 | 47.1875 | 0.795527 | 0 | 0 | 0.185185 | 0 | 0.111111 | 0.622766 | 0.103243 | 0 | 0 | 0 | 0 | 0.259259 | 1 | 0.037037 | false | 0 | 0.037037 | 0 | 0.185185 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
02310b1c59a76dfc8cb3d902b26abd4a5cca6c69 | 10,606 | py | Python | src/server/handlers/peewee_orm.py | w4n9H/pyfdfs | b866bdc8b77c5b76b7453a1f57b4c1c67808e1d6 | [
"MIT"
] | 26 | 2016-03-18T08:57:30.000Z | 2022-03-30T17:08:35.000Z | src/server/handlers/peewee_orm.py | w4n9H/pyfdfs | b866bdc8b77c5b76b7453a1f57b4c1c67808e1d6 | [
"MIT"
] | null | null | null | src/server/handlers/peewee_orm.py | w4n9H/pyfdfs | b866bdc8b77c5b76b7453a1f57b4c1c67808e1d6 | [
"MIT"
] | 9 | 2016-11-07T13:29:56.000Z | 2022-03-08T02:38:51.000Z | # !/usr/bin/env python
# -*- coding: utf-8 -*-
"""
@author: mango
@contact: w4n9@sina.com
@create: 16/2/18
"""
__author__ = "mango"
__version__ = "0.1"
import peewee
from peewee import MySQLDatabase, CompositeKey
from playhouse.pool import PooledMySQLDatabase
from settings import MYSQL_CONFIG
from settings import ... | 29.625698 | 117 | 0.528192 | 1,177 | 10,606 | 4.513169 | 0.146134 | 0.048193 | 0.044804 | 0.057982 | 0.618788 | 0.55064 | 0.521084 | 0.490023 | 0.457078 | 0.457078 | 0 | 0.015027 | 0.378842 | 10,606 | 357 | 118 | 29.708683 | 0.791287 | 0.033377 | 0 | 0.621005 | 0 | 0 | 0.021025 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.009132 | 0.022831 | null | null | 0.004566 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
023147082576754bcee5a6e36f99dfba5fe21356 | 2,668 | py | Python | custom/iii_2_xml2yolo.py | jason-su/UCGNet | 649209404119fb96cbf8b8f172575d025c1e9fb6 | [
"BSD-3-Clause"
] | null | null | null | custom/iii_2_xml2yolo.py | jason-su/UCGNet | 649209404119fb96cbf8b8f172575d025c1e9fb6 | [
"BSD-3-Clause"
] | null | null | null | custom/iii_2_xml2yolo.py | jason-su/UCGNet | 649209404119fb96cbf8b8f172575d025c1e9fb6 | [
"BSD-3-Clause"
] | null | null | null | # coding:utf-8
# xml2txt
import xml.etree.ElementTree as ET
import os
import shutil
from Constants import train_name_txt_1000, crop_1000_xml_dir, train_txt_dir_1000, yolo_trainval_txt_1000, crop_1000_img_dir
classes = ['ignored regions','pedestrian','people','bicycle','car','van','truck','tricycle','awning-tricycl... | 29.644444 | 168 | 0.601199 | 440 | 2,668 | 3.638636 | 0.327273 | 0.026234 | 0.029981 | 0.026234 | 0.036227 | 0.028732 | 0 | 0 | 0 | 0 | 0.02961 | 0.038588 | 0.203523 | 2,668 | 89 | 169 | 29.977528 | 0.677647 | 0.222639 | 0 | 0.06 | 0 | 0 | 0.088293 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.08 | 0 | 0.14 | 0.02 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
0233c012284203181e3454cfaec5e337f5fe8d57 | 477 | py | Python | anijung/migrations/0003_auto_20200307_1654.py | NullFull/anijung | c708b1997c84c2e161cec51d2588799fb41a5d1d | [
"MIT"
] | 1 | 2020-03-31T06:02:47.000Z | 2020-03-31T06:02:47.000Z | anijung/migrations/0003_auto_20200307_1654.py | NullFull/anijung | c708b1997c84c2e161cec51d2588799fb41a5d1d | [
"MIT"
] | 6 | 2021-06-02T00:38:21.000Z | 2022-03-07T11:50:14.000Z | anijung/migrations/0003_auto_20200307_1654.py | NullFull/anijung | c708b1997c84c2e161cec51d2588799fb41a5d1d | [
"MIT"
] | null | null | null | # Generated by Django 2.2.10 on 2020-03-07 07:54
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('anijung', '0002_quote'),
]
operations = [
migrations.AlterField(
model_name='quote',
... | 23.85 | 123 | 0.631027 | 56 | 477 | 5.321429 | 0.625 | 0.080537 | 0.09396 | 0.147651 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055402 | 0.243187 | 477 | 19 | 124 | 25.105263 | 0.770083 | 0.096436 | 0 | 0 | 1 | 0 | 0.088578 | 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 |
0233e862d31223e4408716ff8f735b1f1fc93654 | 3,023 | py | Python | model-optimizer/unit_tests/extensions/front/kaldi/tdnn_component_replacer_test.py | monroid/openvino | 8272b3857ef5be0aaa8abbf7bd0d5d5615dc40b6 | [
"Apache-2.0"
] | 2,406 | 2020-04-22T15:47:54.000Z | 2022-03-31T10:27:37.000Z | model-optimizer/unit_tests/extensions/front/kaldi/tdnn_component_replacer_test.py | thomas-yanxin/openvino | 031e998a15ec738c64cc2379d7f30fb73087c272 | [
"Apache-2.0"
] | 4,948 | 2020-04-22T15:12:39.000Z | 2022-03-31T18:45:42.000Z | model-optimizer/unit_tests/extensions/front/kaldi/tdnn_component_replacer_test.py | thomas-yanxin/openvino | 031e998a15ec738c64cc2379d7f30fb73087c272 | [
"Apache-2.0"
] | 991 | 2020-04-23T18:21:09.000Z | 2022-03-31T18:40:57.000Z | # Copyright (C) 2018-2021 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import unittest
import numpy as np
from generator import generator, generate
from extensions.front.kaldi.tdnn_component_replacer import TdnnComponentReplacer
from mo.utils.ir_engine.compare_graphs import compare_graphs
from unit_tests.... | 39.776316 | 103 | 0.558717 | 322 | 3,023 | 5.024845 | 0.304348 | 0.050062 | 0.009271 | 0.007417 | 0.10445 | 0.052534 | 0.017923 | 0.017923 | 0.017923 | 0.012361 | 0 | 0.027239 | 0.283493 | 3,023 | 75 | 104 | 40.306667 | 0.71976 | 0.025471 | 0 | 0.035088 | 1 | 0 | 0.149507 | 0 | 0 | 0 | 0 | 0 | 0.017544 | 1 | 0.035088 | false | 0 | 0.105263 | 0 | 0.175439 | 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 |
0234abdc1926a66a17e77cc29309970e3e371b1d | 6,923 | py | Python | examples/matching_queries_to_indexes/main.py | dhermes/endpoints-proto-datastore | 99bed0b39762a86606dd22de57b5eaf1cfa8f40f | [
"Apache-2.0"
] | 91 | 2015-01-03T01:19:55.000Z | 2020-06-10T05:59:57.000Z | examples/matching_queries_to_indexes/main.py | dhermes/endpoints-proto-datastore | 99bed0b39762a86606dd22de57b5eaf1cfa8f40f | [
"Apache-2.0"
] | 52 | 2015-01-06T18:17:22.000Z | 2019-06-18T22:23:36.000Z | examples/matching_queries_to_indexes/main.py | dhermes/endpoints-proto-datastore | 99bed0b39762a86606dd22de57b5eaf1cfa8f40f | [
"Apache-2.0"
] | 44 | 2015-01-07T01:57:56.000Z | 2022-03-12T03:38:35.000Z | # If you have not yet seen the source in basic_with_auth/main.py and
# paging/main.py, please take a look.
# In this sample we use a custom Enum for the "order" property in queries
# to strictly control the indexes used and make sure we have corresponding
# indexes created in index.yaml.
import endpoints
from google... | 47.095238 | 80 | 0.734364 | 1,049 | 6,923 | 4.795043 | 0.249762 | 0.017495 | 0.009543 | 0.008946 | 0.100795 | 0.085885 | 0.063221 | 0.037773 | 0.037773 | 0.037773 | 0 | 0.003608 | 0.199336 | 6,923 | 146 | 81 | 47.417808 | 0.903843 | 0.684819 | 0 | 0.046512 | 0 | 0 | 0.089439 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.093023 | false | 0 | 0.139535 | 0.046512 | 0.534884 | 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 |
0234bf942fb2595eae35732a5d655cfc9e64b0cc | 380 | py | Python | misc/Prague19/build/app3.py | NimbleStorage/container-examples | b97ad1cde30bbaa798974a05de3e4dee713f52de | [
"Apache-2.0"
] | 6 | 2019-08-22T17:45:07.000Z | 2020-07-10T08:16:39.000Z | misc/Prague19/build/app3.py | drajen/container-examples | ccf23c68e0de0160d34a9db95b9dde73da0322d8 | [
"Apache-2.0"
] | null | null | null | misc/Prague19/build/app3.py | drajen/container-examples | ccf23c68e0de0160d34a9db95b9dde73da0322d8 | [
"Apache-2.0"
] | 3 | 2018-10-01T20:52:13.000Z | 2019-11-15T04:49:56.000Z | #!/usr/bin/env python
import os
import time
import datetime
from os import path
if not os.path.exists('data'):
os.mkdir('data')
while True:
log = "%s logging app3 from %s LoadAVG-1m: %s\n" \
% (datetime.datetime.now(), os.uname()[1], round(os.getloadavg()[0],2))
f = open("data/log.txt", "a")
... | 20 | 79 | 0.605263 | 62 | 380 | 3.709677 | 0.629032 | 0.069565 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02 | 0.210526 | 380 | 18 | 80 | 21.111111 | 0.746667 | 0.052632 | 0 | 0 | 0 | 0 | 0.169916 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.285714 | null | null | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0237fee7ec74b4f210bbf738d7502db6a98f7e47 | 288 | py | Python | src/lingcomp/similarity/enums.py | CharlottePouw/interpreting-complexity | b9a73c0aff18e4c6b4209a6511d00639494c70da | [
"Apache-2.0"
] | 2 | 2020-12-18T12:26:22.000Z | 2020-12-19T18:47:07.000Z | src/lingcomp/similarity/enums.py | CharlottePouw/interpreting-complexity | b9a73c0aff18e4c6b4209a6511d00639494c70da | [
"Apache-2.0"
] | null | null | null | src/lingcomp/similarity/enums.py | CharlottePouw/interpreting-complexity | b9a73c0aff18e4c6b4209a6511d00639494c70da | [
"Apache-2.0"
] | 1 | 2021-05-19T13:39:45.000Z | 2021-05-19T13:39:45.000Z | from enum import Enum
class SimilarityFunction(Enum):
RSA = "RSA"
PWCCA = "PWCCA"
class SimilarityStrategy(Enum):
CLS_TOKEN = "cls_token"
REDUCE_MEAN = "reduce_mean"
PER_TOKEN = "per_token"
class SimilarityPlotMode(Enum):
INTER = "inter"
INTRA = "intra"
| 16 | 31 | 0.670139 | 33 | 288 | 5.666667 | 0.484848 | 0.085562 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.225694 | 288 | 17 | 32 | 16.941176 | 0.838565 | 0 | 0 | 0 | 0 | 0 | 0.163194 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
02382c9efce6a13b2bbe8e7af72f6da5a04d7080 | 1,733 | py | Python | c2t/config.py | ilil01/qdt | 2921fb121f8c6e8cd29bd82fc4b591cb92abab78 | [
"BSD-3-Clause"
] | 29 | 2017-12-22T17:25:56.000Z | 2022-03-03T08:27:01.000Z | c2t/config.py | ilil01/qdt | 2921fb121f8c6e8cd29bd82fc4b591cb92abab78 | [
"BSD-3-Clause"
] | 33 | 2019-11-26T17:21:14.000Z | 2021-08-23T03:28:12.000Z | c2t/config.py | ilil01/qdt | 2921fb121f8c6e8cd29bd82fc4b591cb92abab78 | [
"BSD-3-Clause"
] | 7 | 2017-12-22T17:14:59.000Z | 2022-01-30T19:52:03.000Z | __all__ = [
"C2TConfig"
, "Run"
, "get_new_rsp"
, "DebugClient"
, "DebugServer"
, "TestBuilder"
]
from collections import (
namedtuple
)
from common import (
pypath
)
with pypath("..pyrsp"):
from pyrsp.rsp import (
RSP,
archmap
)
# CPU Testing Tool configuration component... | 20.388235 | 70 | 0.573572 | 198 | 1,733 | 4.772727 | 0.39899 | 0.031746 | 0.034921 | 0.035979 | 0.050794 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005137 | 0.326024 | 1,733 | 84 | 71 | 20.630952 | 0.803938 | 0.043855 | 0 | 0.060606 | 0 | 0 | 0.090085 | 0 | 0 | 0 | 0 | 0.011905 | 0 | 1 | 0.106061 | false | 0 | 0.045455 | 0.030303 | 0.257576 | 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 |
02483757785da93c9448c77c25ae31288ce27091 | 6,523 | py | Python | tests/all/fields/id.py | stuaxo/python-stdnet | 78db5320bdedc3f28c5e4f38cda13a4469e35db7 | [
"BSD-3-Clause"
] | 61 | 2015-01-13T23:41:10.000Z | 2021-09-14T03:23:59.000Z | tests/all/fields/id.py | drscream/python-stdnet | 78db5320bdedc3f28c5e4f38cda13a4469e35db7 | [
"BSD-3-Clause"
] | 4 | 2015-02-28T08:57:14.000Z | 2020-12-29T17:14:43.000Z | tests/all/fields/id.py | drscream/python-stdnet | 78db5320bdedc3f28c5e4f38cda13a4469e35db7 | [
"BSD-3-Clause"
] | 12 | 2015-01-01T09:23:06.000Z | 2021-09-16T08:09:13.000Z | '''AutoId, CompositeId and custom Id tests.'''
from uuid import uuid4
from random import randint
import pulsar
import stdnet
from stdnet import FieldError
from stdnet.utils import test
from examples.models import Task, WordBook, SimpleModel, Instrument
def genid():
return str(uuid4())[:8]
cl... | 36.038674 | 89 | 0.579641 | 808 | 6,523 | 4.642327 | 0.165842 | 0.143962 | 0.036257 | 0.010664 | 0.326313 | 0.301253 | 0.2506 | 0.17382 | 0.151426 | 0.130099 | 0 | 0.022947 | 0.285145 | 6,523 | 181 | 90 | 36.038674 | 0.781471 | 0.004446 | 0 | 0.28 | 0 | 0 | 0.03171 | 0.003721 | 0 | 0 | 0 | 0 | 0.386667 | 0 | null | null | 0 | 0.053333 | 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 |
02498263b7bd7e6db782b1a9073193b3f7e92b5f | 862 | py | Python | libs/physicalparameters.py | dpttw/SEMimage | 08492dee6c1ef8d494f5a2fcd5f9621e815ba8a0 | [
"MIT"
] | null | null | null | libs/physicalparameters.py | dpttw/SEMimage | 08492dee6c1ef8d494f5a2fcd5f9621e815ba8a0 | [
"MIT"
] | null | null | null | libs/physicalparameters.py | dpttw/SEMimage | 08492dee6c1ef8d494f5a2fcd5f9621e815ba8a0 | [
"MIT"
] | 2 | 2016-11-08T17:00:36.000Z | 2021-10-03T23:01:52.000Z | def chemelements():
periodic_elements = ["Ac","Al","Ag","Am","Ar","As","At","Au","B","Ba","Bh","Bi","Be",
"Bk","Br","C","Ca","Cd","Ce","Cf","Cl","Cm","Co","Cr","Cs","Cu",
"Db","Dy","Er","Es","Eu","F","Fe","Fm","Fr","Ga","Gd","Ge","H",
"He","Hf","Hg","Ho... | 61.571429 | 88 | 0.331787 | 125 | 862 | 2.272 | 0.984 | 0.112676 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25174 | 862 | 13 | 89 | 66.307692 | 0.44031 | 0 | 0 | 0 | 0 | 0 | 0.267981 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
024d76ff765ea3366cbe39bcc800aa7235ed2402 | 1,662 | py | Python | gifspool/verification.py | DenysGurin/gifsta | fd1195dce4b62c210b7726b67b3fcf5389139040 | [
"MIT"
] | null | null | null | gifspool/verification.py | DenysGurin/gifsta | fd1195dce4b62c210b7726b67b3fcf5389139040 | [
"MIT"
] | null | null | null | gifspool/verification.py | DenysGurin/gifsta | fd1195dce4b62c210b7726b67b3fcf5389139040 | [
"MIT"
] | null | null | null | import re
USERNAME_RE = re.compile(r"^[a-zA-Z0-9_-]{3,20}$")
PASSWORD_RE = re.compile(r"^.{3,20}$")
EMAIL_RE = re.compile(r'^[\S]+@[\S]+\.[\S]+$')
USERNAME_ERROR = "That's not a valid username."
PASSWORD_ERROR = "That wasn't a valid password."
V_PASSWORD_ERROR = "Your passwords didn't match."
EMAIL_ERROR =... | 27.7 | 115 | 0.669675 | 233 | 1,662 | 4.592275 | 0.266094 | 0.071963 | 0.070093 | 0.098131 | 0.104673 | 0.104673 | 0 | 0 | 0 | 0 | 0 | 0.016492 | 0.197353 | 1,662 | 60 | 116 | 27.7 | 0.785607 | 0.141998 | 0 | 0.135135 | 0 | 0 | 0.182019 | 0.015475 | 0 | 0 | 0 | 0 | 0 | 1 | 0.108108 | false | 0.27027 | 0.027027 | 0.081081 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
024dd23bceed44b10060ea122bdfea4671ceb856 | 3,108 | py | Python | proyectos/2/MartinezNestor/main.py | Ricardo191998/sistop-2020-1 | a37d2a880995a870ebfeebe7e098e4aefb3cd179 | [
"CC-BY-4.0"
] | 13 | 2019-08-07T13:48:14.000Z | 2021-08-31T23:23:35.000Z | proyectos/2/MartinezNestor/main.py | Ricardo191998/sistop-2020-1 | a37d2a880995a870ebfeebe7e098e4aefb3cd179 | [
"CC-BY-4.0"
] | 48 | 2019-08-07T03:15:54.000Z | 2019-11-21T16:53:45.000Z | proyectos/2/MartinezNestor/main.py | Ricardo191998/sistop-2020-1 | a37d2a880995a870ebfeebe7e098e4aefb3cd179 | [
"CC-BY-4.0"
] | 47 | 2019-08-07T01:44:34.000Z | 2021-11-05T02:31:25.000Z | from threading import Thread, Semaphore
from random import randint
from time import sleep
#global array to denote the airplanes in the air
planes = []
tracks = []
planes_landed = -1
passengersDownloaded = 0
mutex = Semaphore(1)
ops = Semaphore(0)
bus = Semaphore(0)
landingTrack = Semaphore(0)
airplane = Semaphore(1... | 24.28125 | 101 | 0.681789 | 436 | 3,108 | 4.727064 | 0.252294 | 0.069869 | 0.032023 | 0.02523 | 0.14556 | 0.124212 | 0.082484 | 0.03639 | 0 | 0 | 0 | 0.013158 | 0.19305 | 3,108 | 127 | 102 | 24.472441 | 0.808612 | 0.015122 | 0 | 0.264957 | 0 | 0 | 0.12549 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.119658 | false | 0.17094 | 0.025641 | 0.008547 | 0.230769 | 0.068376 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
024f39b80b97d74f7d25b80945cd40bac512e020 | 3,845 | py | Python | test/test.py | gelm0/huffman_python | 3bd7f92761dc383ed78adb94e35f9650ea6016a0 | [
"MIT"
] | null | null | null | test/test.py | gelm0/huffman_python | 3bd7f92761dc383ed78adb94e35f9650ea6016a0 | [
"MIT"
] | null | null | null | test/test.py | gelm0/huffman_python | 3bd7f92761dc383ed78adb94e35f9650ea6016a0 | [
"MIT"
] | null | null | null | import os
import sys
import filecmp
import unittest
from compression import huffmantree, huffman
def test_compress(file_name):
with open(file_name, 'rb') as fin:
data_read = fin.read()
compressed_data = huffman.encode_data(data_read)
decompressed_data = huffman.decode_data(compressed_data)... | 38.069307 | 82 | 0.662939 | 469 | 3,845 | 5.03838 | 0.183369 | 0.060939 | 0.126957 | 0.152349 | 0.72408 | 0.710537 | 0.67245 | 0.67245 | 0.641981 | 0.598815 | 0 | 0.007216 | 0.243173 | 3,845 | 100 | 83 | 38.45 | 0.804811 | 0 | 0 | 0.325 | 0 | 0 | 0.029909 | 0 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.15 | false | 0 | 0.0625 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0252c79412ee0c5113fa6aeeab360cb2c451074f | 555 | py | Python | src/api/migrations/0020_auto_20210322_2218.py | opnfv/laas | 35b9f39178cc502a5283a1b37a65f7dd0838ae05 | [
"Apache-2.0"
] | 2 | 2020-10-31T15:03:20.000Z | 2021-03-22T16:29:15.000Z | src/api/migrations/0020_auto_20210322_2218.py | opnfv/laas | 35b9f39178cc502a5283a1b37a65f7dd0838ae05 | [
"Apache-2.0"
] | 13 | 2019-12-04T23:29:42.000Z | 2022-03-02T04:53:53.000Z | src/api/migrations/0020_auto_20210322_2218.py | opnfv/laas | 35b9f39178cc502a5283a1b37a65f7dd0838ae05 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.2 on 2021-03-22 22:18
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('api', '0019_auto_20210322_1823'),
]
operations = [
migrations.AddField(
model_name='apilog',
name='method',
... | 23.125 | 62 | 0.576577 | 58 | 555 | 5.396552 | 0.655172 | 0.057508 | 0.095847 | 0.121406 | 0.185304 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088312 | 0.306306 | 555 | 23 | 63 | 24.130435 | 0.724675 | 0.077477 | 0 | 0.235294 | 1 | 0 | 0.101961 | 0.045098 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
025303ce13944cb038882a1e7edc81fb7950895b | 423 | py | Python | util/i18n.py | schocco/mds-web | 10b5abcb8f5a47d4ba486b18991ffa13bcf60d8a | [
"MIT"
] | null | null | null | util/i18n.py | schocco/mds-web | 10b5abcb8f5a47d4ba486b18991ffa13bcf60d8a | [
"MIT"
] | 14 | 2015-01-04T22:09:41.000Z | 2015-08-07T10:06:50.000Z | util/i18n.py | schocco/mds-web | 10b5abcb8f5a47d4ba486b18991ffa13bcf60d8a | [
"MIT"
] | null | null | null | import json
from django.core.serializers.json import DjangoJSONEncoder
from tastypie.serializers import Serializer
class CustomJSONSerializer(Serializer):
def to_json(self, data, options=None):
options = options or {}
data = self.to_simple(data, options)
return json.dumps(data, cls=Djang... | 26.4375 | 58 | 0.711584 | 50 | 423 | 5.96 | 0.48 | 0.053691 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.208038 | 423 | 16 | 59 | 26.4375 | 0.889552 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.272727 | 0 | 0.727273 | 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 |
02566d2b4b9fef084377668ec4276fc8dd5b1657 | 285 | py | Python | packages/PIPS/validation/Demo/TutorialPPoPP2010.sub/pii.py | DVSR1966/par4all | 86b33ca9da736e832b568c5637a2381f360f1996 | [
"MIT"
] | 51 | 2015-01-31T01:51:39.000Z | 2022-02-18T02:01:50.000Z | packages/PIPS/validation/Demo/TutorialPPoPP2010.sub/pii.py | DVSR1966/par4all | 86b33ca9da736e832b568c5637a2381f360f1996 | [
"MIT"
] | 7 | 2017-05-29T09:29:00.000Z | 2019-03-11T16:01:39.000Z | packages/PIPS/validation/Demo/TutorialPPoPP2010.sub/pii.py | DVSR1966/par4all | 86b33ca9da736e832b568c5637a2381f360f1996 | [
"MIT"
] | 12 | 2015-03-26T08:05:38.000Z | 2022-02-18T02:01:51.000Z | import pyps
from pipscc import pipscc
class Pii(pipscc):
def changes(self, ws):
def thefilter(module):
return len(module.code()) < 3
ws.filter(thefilter).inlining()
if __name__ == '__main__':
thecompiler = Pii()
thecompiler.run()
| 15.833333 | 41 | 0.6 | 32 | 285 | 5.09375 | 0.71875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004902 | 0.284211 | 285 | 17 | 42 | 16.764706 | 0.794118 | 0 | 0 | 0 | 0 | 0 | 0.02807 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0.1 | 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 |
02572b36cf1106233ab432e9c5d3362034be833c | 941 | py | Python | src/league_client_api/lockfile/api.py | pralphv/lol_15ff | 8f5adf0b1297f76d6ccec0b1b86e4a3d204d04d6 | [
"MIT"
] | null | null | null | src/league_client_api/lockfile/api.py | pralphv/lol_15ff | 8f5adf0b1297f76d6ccec0b1b86e4a3d204d04d6 | [
"MIT"
] | null | null | null | src/league_client_api/lockfile/api.py | pralphv/lol_15ff | 8f5adf0b1297f76d6ccec0b1b86e4a3d204d04d6 | [
"MIT"
] | null | null | null | from functools import lru_cache
from typing import Dict
import base64
try:
from ..league_process import find_path_of_league
except ValueError:
from src.league_client_api.league_process import find_path_of_league
def _read_lockfile() -> Dict:
path = find_path_of_league()
with open(path, 'r') as f:
... | 30.354839 | 98 | 0.70457 | 125 | 941 | 5.032 | 0.384 | 0.076312 | 0.047695 | 0.076312 | 0.308426 | 0.308426 | 0.308426 | 0.197138 | 0.197138 | 0 | 0 | 0.01261 | 0.157279 | 941 | 30 | 99 | 31.366667 | 0.78058 | 0 | 0 | 0 | 0 | 0 | 0.126461 | 0.022317 | 0 | 0 | 0 | 0 | 0 | 1 | 0.130435 | false | 0.217391 | 0.217391 | 0 | 0.434783 | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
025b2cfa4e32fe00736e9496770c250d380078ef | 3,033 | py | Python | http/server.py | luchosr/dht11Streams | f51922257c4aa4703556f546e43cf3a3219d203f | [
"Apache-2.0"
] | null | null | null | http/server.py | luchosr/dht11Streams | f51922257c4aa4703556f546e43cf3a3219d203f | [
"Apache-2.0"
] | null | null | null | http/server.py | luchosr/dht11Streams | f51922257c4aa4703556f546e43cf3a3219d203f | [
"Apache-2.0"
] | null | null | null | #from sense_hat import SenseHat
from collections import OrderedDict
sense=SenseHat()
sense.clear()
import time
import config
import requests
import json
import RPi.GPIO as GPIO
import dht11
while True:
# Get Unix timestamp
timestamp = int(time.time())
# Get Temp/Press/Hum values
temp = sense.get_temp... | 24.459677 | 76 | 0.502803 | 294 | 3,033 | 5.05102 | 0.282313 | 0.060606 | 0.076768 | 0.084175 | 0.174411 | 0.070034 | 0.070034 | 0.070034 | 0.070034 | 0.070034 | 0 | 0.006012 | 0.341906 | 3,033 | 123 | 77 | 24.658537 | 0.737976 | 0 | 0 | 0 | 0 | 0 | 0.159583 | 0.044908 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.175 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
025c4795a685fdcb75ef809a9c9ba6333fc5c25c | 1,703 | py | Python | ferris/core/forms/monkey.py | palladius/gae-ferris-ricc | e6d9d8d4aadeae10eb258b94b6fe5912c8630b36 | [
"MIT"
] | 2 | 2015-03-04T07:05:57.000Z | 2015-03-04T07:06:00.000Z | ferris/core/forms/monkey.py | palladius/gae-ferris-ricc | e6d9d8d4aadeae10eb258b94b6fe5912c8630b36 | [
"MIT"
] | null | null | null | ferris/core/forms/monkey.py | palladius/gae-ferris-ricc | e6d9d8d4aadeae10eb258b94b6fe5912c8630b36 | [
"MIT"
] | null | null | null | import wtforms.ext.appengine.ndb as wtfndb
import wtforms
from google.appengine.ext import ndb
from . import fields
### Additional Converters
def add_convertor(property_type, converter_func):
setattr(wtfndb.ModelConverter, 'convert_%s' % property_type, converter_func)
def convert_UserProperty(self, model, prop,... | 32.75 | 99 | 0.749853 | 200 | 1,703 | 6.22 | 0.35 | 0.048232 | 0.052251 | 0.076367 | 0.166399 | 0.103698 | 0.103698 | 0.103698 | 0.103698 | 0.103698 | 0 | 0.002038 | 0.135643 | 1,703 | 51 | 100 | 33.392157 | 0.843071 | 0.118027 | 0 | 0 | 0 | 0 | 0.084289 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.193548 | false | 0.032258 | 0.129032 | 0.032258 | 0.516129 | 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 |
025e9bcd92ebe5ad9d38c65319151c87eaae1638 | 3,654 | py | Python | tests/testGaussQuad.py | A-CGray/FEMpy | ba351d87460a5275ea49fda5c1acf153d7c280fe | [
"Apache-2.0"
] | null | null | null | tests/testGaussQuad.py | A-CGray/FEMpy | ba351d87460a5275ea49fda5c1acf153d7c280fe | [
"Apache-2.0"
] | 6 | 2021-11-15T00:52:52.000Z | 2022-03-23T01:36:17.000Z | tests/testGaussQuad.py | A-CGray/FEMpy | ba351d87460a5275ea49fda5c1acf153d7c280fe | [
"Apache-2.0"
] | 1 | 2021-12-27T18:40:04.000Z | 2021-12-27T18:40:04.000Z | """
==============================================================================
Gauss Quadrature unit tests
==============================================================================
@File : testGaussQuad.py
@Date : 2021/07/29
@Author : Alasdair Christison Gray
@Description : Unit tests for FEMpy's ... | 36.54 | 105 | 0.52381 | 465 | 3,654 | 4.036559 | 0.223656 | 0.021311 | 0.01918 | 0.01918 | 0.544486 | 0.342568 | 0.291422 | 0.291422 | 0.291422 | 0.291422 | 0 | 0.073828 | 0.177066 | 3,654 | 99 | 106 | 36.909091 | 0.550382 | 0.265463 | 0 | 0.263158 | 0 | 0 | 0.003004 | 0 | 0 | 0 | 0 | 0 | 0.122807 | 1 | 0.210526 | false | 0 | 0.070175 | 0 | 0.368421 | 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 |
025f100dd7b4e71977981bc67c4982dc069035a3 | 3,236 | py | Python | records/views.py | devanshudave12/telustravel_finalproject | 8b169dc3063e6cbbb4804a08837360ddd765651f | [
"MIT"
] | null | null | null | records/views.py | devanshudave12/telustravel_finalproject | 8b169dc3063e6cbbb4804a08837360ddd765651f | [
"MIT"
] | null | null | null | records/views.py | devanshudave12/telustravel_finalproject | 8b169dc3063e6cbbb4804a08837360ddd765651f | [
"MIT"
] | null | null | null | from django.shortcuts import render, redirect
from django.contrib import messages
from django.contrib.auth.models import User, auth
from django.db import IntegrityError
# Create your views here.
# defined the variable login
def login(request):
if request.method == 'POST': # if the request is post then follow th... | 45.577465 | 79 | 0.583436 | 366 | 3,236 | 5.13388 | 0.221311 | 0.046833 | 0.038318 | 0.044705 | 0.021288 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003751 | 0.340853 | 3,236 | 70 | 80 | 46.228571 | 0.877168 | 0.291409 | 0 | 0.306122 | 0 | 0 | 0.097431 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.061224 | false | 0.142857 | 0.081633 | 0 | 0.326531 | 0.040816 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
026a7ec67d772e9bd9b70b3ddc5deb401f0e3756 | 3,797 | py | Python | Backend-Frontend/src/controllers/controller.py | DanielCamachoFonseca/Flask-app-demo | 7e89e0ed38510fc20e5eaacf239af0059e343ec0 | [
"MIT"
] | null | null | null | Backend-Frontend/src/controllers/controller.py | DanielCamachoFonseca/Flask-app-demo | 7e89e0ed38510fc20e5eaacf239af0059e343ec0 | [
"MIT"
] | null | null | null | Backend-Frontend/src/controllers/controller.py | DanielCamachoFonseca/Flask-app-demo | 7e89e0ed38510fc20e5eaacf239af0059e343ec0 | [
"MIT"
] | null | null | null | #En este modulo se almacenan todas las rutas del proyecto
from flask import request, render_template, redirect, flash
from flask.views import MethodView #Este modulo importa la logica de la clase MethodView
from src.db import mysql
class IndexController(MethodView): #Heredo de methodview
def get(self):
w... | 43.147727 | 209 | 0.607058 | 450 | 3,797 | 5.113333 | 0.282222 | 0.057366 | 0.039113 | 0.044329 | 0.421556 | 0.389396 | 0.35289 | 0.345937 | 0.302912 | 0.302912 | 0 | 0 | 0.288912 | 3,797 | 87 | 210 | 43.643678 | 0.852222 | 0.182776 | 0 | 0.565217 | 0 | 0.014493 | 0.224668 | 0.007122 | 0 | 0 | 0 | 0.011494 | 0 | 1 | 0.101449 | false | 0 | 0.043478 | 0.014493 | 0.304348 | 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 |
0274ed1b997e0cac0ecb6012d51298d82028bdf8 | 316 | py | Python | src/env_objects/enum/TileType.py | Mighstye/uqac_tp3IA_RobotSauveVie | da66b5948a4bfdd3c1816a7585024608e8acec55 | [
"MIT"
] | null | null | null | src/env_objects/enum/TileType.py | Mighstye/uqac_tp3IA_RobotSauveVie | da66b5948a4bfdd3c1816a7585024608e8acec55 | [
"MIT"
] | null | null | null | src/env_objects/enum/TileType.py | Mighstye/uqac_tp3IA_RobotSauveVie | da66b5948a4bfdd3c1816a7585024608e8acec55 | [
"MIT"
] | null | null | null | """
Enum for all the possible type of Tile and a String version of them to make them possible to print
Thus, our Expert system use these String versions
"""
from enum import Enum
class TileType(Enum):
DUST = 'D'
FIRE = 'F'
HUMAN = 'H'
ROBOT = 'A'
RUINS = 'R'
WARM = 'W'
UNKNOWN = '?'
| 17.555556 | 98 | 0.617089 | 48 | 316 | 4.0625 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.281646 | 316 | 17 | 99 | 18.588235 | 0.859031 | 0.468354 | 0 | 0 | 0 | 0 | 0.04375 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
0279ad7f215cb66893e1f999e16dc23db0ba1bcc | 6,321 | py | Python | s3tests/roundtrip.py | ilv-ludmila/s3-tests | a06f5784df0c0481430d32eb9142722c8b219bab | [
"MIT"
] | 3 | 2018-03-27T23:48:22.000Z | 2021-11-27T19:10:14.000Z | s3tests/roundtrip.py | ilv-ludmila/s3-tests | a06f5784df0c0481430d32eb9142722c8b219bab | [
"MIT"
] | null | null | null | s3tests/roundtrip.py | ilv-ludmila/s3-tests | a06f5784df0c0481430d32eb9142722c8b219bab | [
"MIT"
] | 1 | 2021-11-27T19:10:04.000Z | 2021-11-27T19:10:04.000Z | import gevent
import gevent.pool
import gevent.queue
import gevent.monkey; gevent.monkey.patch_all()
import itertools
import optparse
import os
import sys
import time
import traceback
import random
import yaml
import realistic
import common
NANOSECOND = int(1e9)
def writer(bucket, objname, fp, queue):
key = buck... | 28.731818 | 99 | 0.556716 | 691 | 6,321 | 5.033285 | 0.295224 | 0.056067 | 0.034503 | 0.026452 | 0.420932 | 0.400805 | 0.324324 | 0.284071 | 0.284071 | 0.284071 | 0 | 0.005989 | 0.339661 | 6,321 | 219 | 100 | 28.863014 | 0.827264 | 0.065338 | 0 | 0.424581 | 0 | 0 | 0.088041 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.078212 | null | null | 0.022346 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
0279b3d114dd0302c25dbf29b556a8ab8d10c2fc | 3,631 | py | Python | float_display_dialog_ui.py | boeglinw/DFE | c34018e0a7a4a37f3d8ca38d6200f825db179846 | [
"MIT"
] | null | null | null | float_display_dialog_ui.py | boeglinw/DFE | c34018e0a7a4a37f3d8ca38d6200f825db179846 | [
"MIT"
] | null | null | null | float_display_dialog_ui.py | boeglinw/DFE | c34018e0a7a4a37f3d8ca38d6200f825db179846 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'float_display_dialog.ui'
#
# Created by: PyQt5 UI code generator 5.9.2
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_FloatDisplayDialog(object):
def setupUi(self, FloatDisp... | 56.734375 | 106 | 0.759846 | 325 | 3,631 | 8.415385 | 0.335385 | 0.058501 | 0.051188 | 0.022669 | 0.127971 | 0.070201 | 0 | 0 | 0 | 0 | 0 | 0.00969 | 0.147342 | 3,631 | 63 | 107 | 57.634921 | 0.873708 | 0.053153 | 0 | 0 | 1 | 0 | 0.096793 | 0.012536 | 0 | 0 | 0 | 0 | 0 | 1 | 0.039216 | false | 0 | 0.019608 | 0 | 0.078431 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
65f0585f2fc00e314f811f50a747348cbd51003f | 6,183 | py | Python | tencentcloud/facefusion/v20181201/facefusion_client.py | PlasticMem/tencentcloud-sdk-python | 666db85623d51d640a165907a19aef5fba53b38d | [
"Apache-2.0"
] | 465 | 2018-04-27T09:54:59.000Z | 2022-03-29T02:18:01.000Z | tencentcloud/facefusion/v20181201/facefusion_client.py | PlasticMem/tencentcloud-sdk-python | 666db85623d51d640a165907a19aef5fba53b38d | [
"Apache-2.0"
] | 91 | 2018-04-27T09:48:11.000Z | 2022-03-12T08:04:04.000Z | tencentcloud/facefusion/v20181201/facefusion_client.py | PlasticMem/tencentcloud-sdk-python | 666db85623d51d640a165907a19aef5fba53b38d | [
"Apache-2.0"
] | 232 | 2018-05-02T08:02:46.000Z | 2022-03-30T08:02:48.000Z | # -*- coding: utf8 -*-
# Copyright (c) 2017-2021 THL A29 Limited, a Tencent company. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses... | 42.9375 | 160 | 0.634805 | 566 | 6,183 | 6.90636 | 0.309187 | 0.081862 | 0.071374 | 0.073676 | 0.627015 | 0.611665 | 0.563571 | 0.442313 | 0.442313 | 0.442313 | 0 | 0.029625 | 0.262979 | 6,183 | 144 | 161 | 42.9375 | 0.828176 | 0.346919 | 0 | 0.761905 | 0 | 0 | 0.104988 | 0.007835 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.047619 | 0 | 0.190476 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
65fb39a1ad237aae86187b448b4caaa5087dfc1a | 2,034 | py | Python | emojiwatch/apps.py | posita/emojiwatch-django | 62080e70ef51c6939105d3cd67eb04d1a41ba274 | [
"MIT"
] | null | null | null | emojiwatch/apps.py | posita/emojiwatch-django | 62080e70ef51c6939105d3cd67eb04d1a41ba274 | [
"MIT"
] | 1 | 2018-04-25T00:01:18.000Z | 2018-04-25T00:01:18.000Z | emojiwatch/apps.py | posita/emojiwatch-django | 62080e70ef51c6939105d3cd67eb04d1a41ba274 | [
"MIT"
] | 1 | 2019-04-05T18:51:34.000Z | 2019-04-05T18:51:34.000Z | # -*- encoding: utf-8 -*-
# ======================================================================
"""
Copyright and other protections apply. Please see the accompanying
:doc:`LICENSE <LICENSE>` and :doc:`CREDITS <CREDITS>` file(s) for rights
and restrictions governing use of this software. All rights not
expressly wai... | 37.666667 | 170 | 0.577679 | 201 | 2,034 | 5.741294 | 0.557214 | 0.048527 | 0.062392 | 0.031196 | 0.188908 | 0.188908 | 0.135182 | 0.135182 | 0.135182 | 0.135182 | 0 | 0.009632 | 0.132252 | 2,034 | 53 | 171 | 38.377358 | 0.644193 | 0.641101 | 0 | 0 | 0 | 0 | 0.10922 | 0.053901 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.380952 | 0 | 0.571429 | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
65fce7ad7e2ad73a475bd98f2b4de2b66833f704 | 606 | py | Python | oms_cms/backend/menu/management/commands/addmenu.py | Hamel007/oms_cms | a120b27932fe1bd89f2c621c181b80b19caba0e0 | [
"BSD-3-Clause"
] | null | null | null | oms_cms/backend/menu/management/commands/addmenu.py | Hamel007/oms_cms | a120b27932fe1bd89f2c621c181b80b19caba0e0 | [
"BSD-3-Clause"
] | null | null | null | oms_cms/backend/menu/management/commands/addmenu.py | Hamel007/oms_cms | a120b27932fe1bd89f2c621c181b80b19caba0e0 | [
"BSD-3-Clause"
] | null | null | null | from django.core.management.base import BaseCommand
from oms_cms.backend.menu.models import Menu, MenuItem
class Command(BaseCommand):
help = 'Add menu'
def handle(self, *args, **options):
menu = Menu.objects.create(name="Верхнее")
MenuItem.objects.create(title="Главная", name="home", menu=me... | 31.894737 | 87 | 0.684818 | 81 | 606 | 5.074074 | 0.493827 | 0.097324 | 0.153285 | 0.189781 | 0.265207 | 0.155718 | 0 | 0 | 0 | 0 | 0 | 0.007952 | 0.169967 | 606 | 18 | 88 | 33.666667 | 0.809145 | 0 | 0 | 0 | 0 | 0 | 0.120861 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.181818 | 0 | 0.454545 | 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 |
5a002c39a4dd30d999d0bc54de6ed3e87d0f19ad | 1,940 | py | Python | src/robotide/lib/robot/running/randomizer.py | ludovicurbain/SWIFT-RIDE | ab72df08a57101c433bfa5ad44949d9983e4e611 | [
"ECL-2.0",
"Apache-2.0"
] | 775 | 2015-01-12T06:54:09.000Z | 2022-03-25T05:18:05.000Z | src/robotide/lib/robot/running/randomizer.py | ludovicurbain/SWIFT-RIDE | ab72df08a57101c433bfa5ad44949d9983e4e611 | [
"ECL-2.0",
"Apache-2.0"
] | 2,191 | 2015-05-19T16:49:09.000Z | 2022-03-28T21:38:34.000Z | src/robotide/lib/robot/running/randomizer.py | ludovicurbain/SWIFT-RIDE | ab72df08a57101c433bfa5ad44949d9983e4e611 | [
"ECL-2.0",
"Apache-2.0"
] | 382 | 2015-01-24T08:41:44.000Z | 2022-03-13T10:14:20.000Z | # Copyright 2008-2015 Nokia Networks
# Copyright 2016- Robot Framework Foundation
#
# 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
... | 35.925926 | 79 | 0.667526 | 246 | 1,940 | 5.158537 | 0.46748 | 0.092199 | 0.074862 | 0.025217 | 0.052009 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014364 | 0.246392 | 1,940 | 53 | 80 | 36.603774 | 0.853625 | 0.358763 | 0 | 0.071429 | 0 | 0 | 0.039967 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.178571 | false | 0.071429 | 0.071429 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
5a015faa15bb3cdc6eb9c348edb1909b6b32528e | 10,256 | py | Python | sdk/python/pulumi_mongodbatlas/get_private_link_endpoint_service.py | pulumi/pulumi-mongodbatlas | 0d5c085dcfd871b56fb4cf582620260b70caa07a | [
"ECL-2.0",
"Apache-2.0"
] | 9 | 2020-04-28T19:12:30.000Z | 2022-03-22T23:04:46.000Z | sdk/python/pulumi_mongodbatlas/get_private_link_endpoint_service.py | pulumi/pulumi-mongodbatlas | 0d5c085dcfd871b56fb4cf582620260b70caa07a | [
"ECL-2.0",
"Apache-2.0"
] | 59 | 2020-06-12T12:12:52.000Z | 2022-03-28T18:14:50.000Z | sdk/python/pulumi_mongodbatlas/get_private_link_endpoint_service.py | pulumi/pulumi-mongodbatlas | 0d5c085dcfd871b56fb4cf582620260b70caa07a | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2020-09-25T21:22:08.000Z | 2021-08-30T20:06:18.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 ... | 46.618182 | 347 | 0.707683 | 1,195 | 10,256 | 5.702929 | 0.141423 | 0.099046 | 0.037417 | 0.057227 | 0.390756 | 0.256787 | 0.189435 | 0.103448 | 0.047836 | 0.01438 | 0 | 0.000124 | 0.212071 | 10,256 | 219 | 348 | 46.83105 | 0.843212 | 0.154739 | 0 | 0.086093 | 1 | 0 | 0.1847 | 0.081745 | 0 | 0 | 0 | 0 | 0 | 1 | 0.10596 | false | 0 | 0.033113 | 0.02649 | 0.251656 | 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 |
5a0582a68f5600fd84377c98484e57cc73717c07 | 2,680 | py | Python | netbox_prometheus_sd/tests/utils.py | johanfleury/netbox-plugin-prometheus-sd | b7c079b94374dd246be0499ff584171542d10cbf | [
"MIT"
] | 27 | 2021-06-02T01:38:15.000Z | 2022-03-10T22:27:04.000Z | netbox_prometheus_sd/tests/utils.py | johanfleury/netbox-plugin-prometheus-sd | b7c079b94374dd246be0499ff584171542d10cbf | [
"MIT"
] | 10 | 2021-06-22T06:28:34.000Z | 2022-03-28T11:12:54.000Z | netbox_prometheus_sd/tests/utils.py | johanfleury/netbox-plugin-prometheus-sd | b7c079b94374dd246be0499ff584171542d10cbf | [
"MIT"
] | 6 | 2021-08-29T19:29:38.000Z | 2022-03-09T17:19:08.000Z | from dcim.models.devices import DeviceType, Manufacturer
from dcim.models.sites import Site
from dcim.models import Device, DeviceRole, Platform
from ipam.models import IPAddress
from tenancy.models import Tenant, TenantGroup
from virtualization.models import (
Cluster,
ClusterGroup,
ClusterType,
Virt... | 28.817204 | 88 | 0.666791 | 365 | 2,680 | 4.706849 | 0.208219 | 0.110594 | 0.132712 | 0.199069 | 0.338184 | 0.24447 | 0.122235 | 0.036088 | 0 | 0 | 0 | 0.026964 | 0.197388 | 2,680 | 92 | 89 | 29.130435 | 0.771734 | 0 | 0 | 0.109589 | 0 | 0 | 0.084328 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.109589 | false | 0 | 0.082192 | 0.068493 | 0.30137 | 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 |
5a0cd9d80e60b519717e7a59e6ec22754eda9ae0 | 528 | py | Python | examples/test_ftp.py | gitdachong/lasttester | 4c637d7704e9d577050e666f6ce01fc5d3752044 | [
"MIT"
] | null | null | null | examples/test_ftp.py | gitdachong/lasttester | 4c637d7704e9d577050e666f6ce01fc5d3752044 | [
"MIT"
] | null | null | null | examples/test_ftp.py | gitdachong/lasttester | 4c637d7704e9d577050e666f6ce01fc5d3752044 | [
"MIT"
] | null | null | null | from lasttester.components.configs.ftp import Configurer
import os
config = Configurer({
'name':'ftp',
'config_body':{
'host':'47.52.143.180',
'port':'21',
'username':'test123',
'password':'weiwei123456',
}
})
key,value = config.parse()[0]
ftp = value.get('ftp')
print(ftp)... | 24 | 59 | 0.625 | 65 | 528 | 5.061538 | 0.692308 | 0.054711 | 0.066869 | 0.121581 | 0.145897 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064588 | 0.149621 | 528 | 21 | 60 | 25.142857 | 0.668151 | 0.25 | 0 | 0 | 0 | 0 | 0.283163 | 0.07398 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.0625 | 0.125 | 0 | 0.125 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
5a13e715afeb739a6c89649a6db77cf7b9ba4814 | 5,658 | py | Python | mordor_magic/mordor_app/views.py | Far4Ru/mordor-magic-2 | 7082ae8cc0b12154f74f4f58f9cad8f0325a8f57 | [
"MIT"
] | null | null | null | mordor_magic/mordor_app/views.py | Far4Ru/mordor-magic-2 | 7082ae8cc0b12154f74f4f58f9cad8f0325a8f57 | [
"MIT"
] | null | null | null | mordor_magic/mordor_app/views.py | Far4Ru/mordor-magic-2 | 7082ae8cc0b12154f74f4f58f9cad8f0325a8f57 | [
"MIT"
] | null | null | null | from datetime import datetime
from itertools import chain
from rest_framework.response import Response
from rest_framework.views import APIView
from .models import User, Character
from .serializers import *
from rest_framework import generics
from rest_framework.permissions import IsAuthenticated, IsAdminUser
from res... | 35.584906 | 106 | 0.694062 | 552 | 5,658 | 6.972826 | 0.21558 | 0.046765 | 0.091452 | 0.105742 | 0.451286 | 0.435698 | 0.368927 | 0.368927 | 0.313328 | 0.247857 | 0 | 0.003165 | 0.218098 | 5,658 | 158 | 107 | 35.810127 | 0.866863 | 0 | 0 | 0.492188 | 0 | 0 | 0.013432 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054688 | false | 0 | 0.078125 | 0 | 0.515625 | 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 |
5a1ae997eb29a3781e1b5ad3e66613d04a43de98 | 3,019 | py | Python | xls/dslx/import_routines.py | isabella232/xls | ec1fd4868bee8a0964ced09885b5691afc2c67e4 | [
"Apache-2.0"
] | null | null | null | xls/dslx/import_routines.py | isabella232/xls | ec1fd4868bee8a0964ced09885b5691afc2c67e4 | [
"Apache-2.0"
] | null | null | null | xls/dslx/import_routines.py | isabella232/xls | ec1fd4868bee8a0964ced09885b5691afc2c67e4 | [
"Apache-2.0"
] | null | null | null | # Lint as: python3
#
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | 34.306818 | 80 | 0.703875 | 445 | 3,019 | 4.689888 | 0.447191 | 0.020125 | 0.034499 | 0.015812 | 0.10254 | 0.10254 | 0.10254 | 0.045999 | 0.045999 | 0.045999 | 0 | 0.00746 | 0.200729 | 3,019 | 87 | 81 | 34.701149 | 0.857439 | 0.468698 | 0 | 0.146341 | 0 | 0 | 0.078608 | 0 | 0 | 0 | 0 | 0 | 0.04878 | 1 | 0.02439 | false | 0 | 0.317073 | 0 | 0.390244 | 0.02439 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5a1e674567c9e2391cc86026212739ed48cb3c53 | 1,548 | py | Python | growser/commands/github.py | JohnnyPeng18/growser | 59399e27079fee96ef617358c09d818f2400887d | [
"MIT"
] | null | null | null | growser/commands/github.py | JohnnyPeng18/growser | 59399e27079fee96ef617358c09d818f2400887d | [
"MIT"
] | null | null | null | growser/commands/github.py | JohnnyPeng18/growser | 59399e27079fee96ef617358c09d818f2400887d | [
"MIT"
] | null | null | null | from growser.cmdr import Command
class UpdateFromGitHubAPI(Command):
def __init__(self, name):
self.name = name
def __repr__(self):
return '<{} {}>'.format(self.__class__.__name__, self.name)
class BatchUpdateFromGitHubAPI(Command):
def __init__(self, limit: int, batch_size: int, rating... | 39.692308 | 80 | 0.650517 | 195 | 1,548 | 4.974359 | 0.420513 | 0.049485 | 0.028866 | 0.037113 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02808 | 0.286822 | 1,548 | 38 | 81 | 40.736842 | 0.850543 | 0.542636 | 0 | 0 | 0 | 0 | 0.011885 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.071429 | 0.071429 | 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 |
5a26e27415e7fabfeec3d732e2aa5c27729e5d78 | 1,004 | py | Python | corehq/apps/domain/views/repeaters.py | rochakchauhan/commcare-hq | aa7ab3c2d0c51fe10f2b51b08101bb4b5a376236 | [
"BSD-3-Clause"
] | null | null | null | corehq/apps/domain/views/repeaters.py | rochakchauhan/commcare-hq | aa7ab3c2d0c51fe10f2b51b08101bb4b5a376236 | [
"BSD-3-Clause"
] | 1 | 2021-06-02T04:45:16.000Z | 2021-06-02T04:45:16.000Z | corehq/apps/domain/views/repeaters.py | rochakchauhan/commcare-hq | aa7ab3c2d0c51fe10f2b51b08101bb4b5a376236 | [
"BSD-3-Clause"
] | null | null | null | from django.contrib import messages
from django.http import HttpResponseRedirect
from django.utils.translation import ugettext as _
from django.views.decorators.http import require_POST
import csv
from corehq.apps.domain.utils import send_repeater_payloads
from corehq.apps.users.decorators import require_can_edit_web... | 38.615385 | 105 | 0.75498 | 136 | 1,004 | 5.352941 | 0.485294 | 0.054945 | 0.038462 | 0.046703 | 0.06044 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001179 | 0.155378 | 1,004 | 25 | 106 | 40.16 | 0.857311 | 0 | 0 | 0 | 0 | 0 | 0.14243 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.333333 | 0 | 0.428571 | 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 |
5a2b6a82070bd71b5db99416ced45e4c2bf98030 | 2,493 | py | Python | cfg/base/Config.py | vancebs/EasyCoding3 | e78db51096ba07ef1b274becca4817a00ca0ef31 | [
"Apache-2.0"
] | null | null | null | cfg/base/Config.py | vancebs/EasyCoding3 | e78db51096ba07ef1b274becca4817a00ca0ef31 | [
"Apache-2.0"
] | null | null | null | cfg/base/Config.py | vancebs/EasyCoding3 | e78db51096ba07ef1b274becca4817a00ca0ef31 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# coding=utf-8
from GlobalConfig import GlobalConfig
class Config(GlobalConfig):
cfgName = 'NA'
# global config
# cfgGlobalBaseDir = 'NA'
# cfgGlobalUrlRepoPull = 'NA'
# cfgGlobalUrlRepoPush = 'NA'
# cfgGlobalUserName = 'NA'
# cfgGlobalUserEmail = 'NA'
cfgGlobalBack... | 34.625 | 107 | 0.61773 | 203 | 2,493 | 7.408867 | 0.399015 | 0.043883 | 0.051862 | 0.067819 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003784 | 0.257922 | 2,493 | 71 | 108 | 35.112676 | 0.809189 | 0.159647 | 0 | 0 | 0 | 0 | 0.16185 | 0.011561 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020408 | false | 0 | 0.020408 | 0 | 0.510204 | 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 |
5a32606c6f2c1d28f62d3ed41fdc57b6031a046f | 2,148 | py | Python | stocks.py | arii/fun | 1c5052281f22dc7cad1cb450cb59a5ce3280c07b | [
"MIT"
] | null | null | null | stocks.py | arii/fun | 1c5052281f22dc7cad1cb450cb59a5ce3280c07b | [
"MIT"
] | null | null | null | stocks.py | arii/fun | 1c5052281f22dc7cad1cb450cb59a5ce3280c07b | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import urllib2, urllib, json
def get_query(stocks):
start_date = "2015-03-02"
hist_select = "select Close from yahoo.finance.historicaldata where symbol in "
curr_select = "select LastTradePriceOnly from yahoo.finance.quote where symbol in "
names = "(%s)" % ','.join(['"%s"'% s ... | 39.777778 | 345 | 0.58892 | 300 | 2,148 | 4.09 | 0.486667 | 0.04564 | 0.02282 | 0.01304 | 0.122249 | 0.122249 | 0.122249 | 0.122249 | 0.122249 | 0.122249 | 0 | 0.022579 | 0.21648 | 2,148 | 53 | 346 | 40.528302 | 0.706477 | 0.009311 | 0 | 0.1 | 0 | 0.05 | 0.312647 | 0.051716 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.025 | null | null | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5a35ebb810e836ae3309f17e2e8fd93715cda1dd | 12,096 | py | Python | src/oci/core/models/update_drg_attachment_details.py | LaudateCorpus1/oci-python-sdk | b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | src/oci/core/models/update_drg_attachment_details.py | LaudateCorpus1/oci-python-sdk | b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | src/oci/core/models/update_drg_attachment_details.py | LaudateCorpus1/oci-python-sdk | b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | # coding: utf-8
# Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved.
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c... | 38.4 | 245 | 0.689484 | 1,466 | 12,096 | 5.446794 | 0.143247 | 0.062617 | 0.054101 | 0.033813 | 0.774703 | 0.693926 | 0.601378 | 0.528491 | 0.511209 | 0.465874 | 0 | 0.002391 | 0.239418 | 12,096 | 314 | 246 | 38.522293 | 0.865543 | 0.632027 | 0 | 0.0875 | 0 | 0 | 0.129846 | 0.038462 | 0 | 0 | 0 | 0 | 0 | 1 | 0.225 | false | 0 | 0.025 | 0.025 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5a386c3f3056d87139286d7e358bda1c0c281925 | 230 | py | Python | Mailautomation.py | akpythonyt/Mystuffs | 9a7d4198ea0d3907af510e118ea8fa9ecdc5f4db | [
"MIT"
] | 47 | 2020-11-12T10:52:17.000Z | 2022-03-05T22:44:48.000Z | Mailautomation.py | SahityaRoy/AKpythoncodes | 331428e9b157f3a8e6f35987417fa022956047d5 | [
"MIT"
] | 1 | 2022-02-24T16:24:26.000Z | 2022-02-24T16:24:26.000Z | Mailautomation.py | SahityaRoy/AKpythoncodes | 331428e9b157f3a8e6f35987417fa022956047d5 | [
"MIT"
] | 45 | 2020-10-26T09:58:12.000Z | 2022-03-20T05:42:29.000Z | import yagmail
receiver = "reciever email"
message = ("Hello there from Yagmai",'Test1.pdf')
sender = yagmail.SMTP("sender email")
sender.send(
to=receiver,
subject="Yagmail test with attachment",
contents=message
)
| 19.166667 | 49 | 0.713043 | 28 | 230 | 5.857143 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005208 | 0.165217 | 230 | 11 | 50 | 20.909091 | 0.848958 | 0 | 0 | 0 | 0 | 0 | 0.373913 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 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 |
5a3cdaa558c879936fe89e93c0ca3c51d806ad07 | 1,491 | py | Python | archive/old_poly_conversion.py | HypenauticPulse/HypeCAS | ffe0cf9825c870304875e19b0309ab3cad7f39d2 | [
"MIT"
] | 1 | 2020-06-08T03:05:35.000Z | 2020-06-08T03:05:35.000Z | archive/old_poly_conversion.py | HypenauticPulse/HypeCAS | ffe0cf9825c870304875e19b0309ab3cad7f39d2 | [
"MIT"
] | null | null | null | archive/old_poly_conversion.py | HypenauticPulse/HypeCAS | ffe0cf9825c870304875e19b0309ab3cad7f39d2 | [
"MIT"
] | null | null | null | def poly_conversion_array(eq, var):
poly = eq.split()
coeffPower = []
i = 1
while i < len(poly):
poly.insert(i, poly[i] + poly[i + 1])
poly.pop(i + 1)
poly.pop(i + 1)
i += 1
for j in poly:
cp = j.split(var)
if len(cp) == 1:
cp.append(0)
... | 30.428571 | 59 | 0.33937 | 166 | 1,491 | 3.036145 | 0.168675 | 0.047619 | 0.071429 | 0.087302 | 0.615079 | 0.555556 | 0.515873 | 0.515873 | 0.515873 | 0.515873 | 0 | 0.034188 | 0.529175 | 1,491 | 49 | 60 | 30.428571 | 0.683761 | 0 | 0 | 0.608696 | 0 | 0 | 0.002011 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021739 | false | 0 | 0 | 0 | 0.043478 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5a422be7bffa6239f22c39de313ef4372e06612d | 16,762 | py | Python | env.py | hiwonjoon/cs391-reinforce | 51207ae0ab0171a8200597a30e893f4ae0abd3e2 | [
"MIT"
] | 4 | 2017-04-17T04:47:37.000Z | 2017-12-18T08:17:12.000Z | env.py | hiwonjoon/cs391-reinforce | 51207ae0ab0171a8200597a30e893f4ae0abd3e2 | [
"MIT"
] | null | null | null | env.py | hiwonjoon/cs391-reinforce | 51207ae0ab0171a8200597a30e893f4ae0abd3e2 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import better_exceptions
import random
import numpy as np
import math
from asciimatics.screen import Screen
class ViolateRule() :
def __init__(self,message):
self.message = message
class World(object) :
line_alloc = [1,2,2,1,1] #side_walk, road, road, side_walk, traffic_light
... | 39.255269 | 124 | 0.546892 | 2,292 | 16,762 | 3.847295 | 0.126091 | 0.027784 | 0.022681 | 0.020413 | 0.384441 | 0.272171 | 0.211726 | 0.180313 | 0.143683 | 0.1066 | 0 | 0.022332 | 0.321441 | 16,762 | 426 | 125 | 39.347418 | 0.752066 | 0.086505 | 0 | 0.266082 | 0 | 0 | 0.020449 | 0 | 0 | 0 | 0 | 0.002347 | 0.008772 | 0 | null | null | 0.008772 | 0.01462 | null | null | 0.01462 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5a443ef8bfcf906dbcd1a0fad3d7b6c50bf510e5 | 2,283 | py | Python | bounca/certificate_engine/tests/test_key.py | warthog9/bounca | f83a372fcfa6e9874c81c785fd0ebdb49842eba3 | [
"Apache-2.0"
] | null | null | null | bounca/certificate_engine/tests/test_key.py | warthog9/bounca | f83a372fcfa6e9874c81c785fd0ebdb49842eba3 | [
"Apache-2.0"
] | null | null | null | bounca/certificate_engine/tests/test_key.py | warthog9/bounca | f83a372fcfa6e9874c81c785fd0ebdb49842eba3 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
from django.test import TestCase
from cryptography.hazmat.primitives.asymmetric import rsa
from bounca.certificate_engine.ssl.key import Key
class KeyTest(TestCase):
def test_generate_private_key_2048(self):
keyhandler = Key()
keyhandler.create_key(2048)
self.assertEqua... | 35.123077 | 86 | 0.686378 | 283 | 2,283 | 5.293286 | 0.212014 | 0.064085 | 0.069426 | 0.043391 | 0.656208 | 0.539386 | 0.539386 | 0.37717 | 0.331776 | 0.331776 | 0 | 0.029477 | 0.21244 | 2,283 | 64 | 87 | 35.671875 | 0.803671 | 0.005694 | 0 | 0.34 | 0 | 0 | 0.113757 | 0.072751 | 0 | 0 | 0 | 0 | 0.24 | 1 | 0.16 | false | 0.3 | 0.06 | 0 | 0.24 | 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 |
5a45be86703112e998bece6976ca41c9f35c4386 | 1,959 | py | Python | examples/sponsored_reserves.py | adeebabdulsalam/py-stellar-base | 4aa7982ab5f3416ecdc4bc8920c6fa0decb180ee | [
"Apache-2.0"
] | 1 | 2018-01-12T00:25:40.000Z | 2018-01-12T00:25:40.000Z | examples/sponsored_reserves.py | adeebabdulsalam/py-stellar-base | 4aa7982ab5f3416ecdc4bc8920c6fa0decb180ee | [
"Apache-2.0"
] | 6 | 2018-06-08T10:28:46.000Z | 2019-04-15T21:15:14.000Z | examples/sponsored_reserves.py | adeebabdulsalam/py-stellar-base | 4aa7982ab5f3416ecdc4bc8920c6fa0decb180ee | [
"Apache-2.0"
] | null | null | null | from stellar_sdk import Server, TransactionBuilder, Keypair, Network
sponsor_secret = "SAOJHTVFCYVKUMPNQI7RUSI566GKWXP7RXOHP4SV6JAVUQKSIWGPZFPJ"
new_account_secret = "SCN5D72JHQAHUHGIA23SLS3LBYCPHJWD7HLYNJRBBZIG4PD74UCGQBYM"
sponsor_keypair = Keypair.from_secret(sponsor_secret)
newly_created_keypair = Keypair.from_se... | 43.533333 | 110 | 0.866769 | 231 | 1,959 | 6.883117 | 0.255411 | 0.073585 | 0.090566 | 0.072327 | 0.351572 | 0.277358 | 0.251572 | 0.251572 | 0.251572 | 0.183648 | 0 | 0.012568 | 0.06585 | 1,959 | 44 | 111 | 44.522727 | 0.856284 | 0.082695 | 0 | 0.305556 | 0 | 0 | 0.083147 | 0.0625 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.083333 | 0.027778 | 0 | 0.027778 | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
5a47ed25ebfdbc5e859ff36daeb1ce1ba9788052 | 2,905 | py | Python | web/public.py | mingziV5/NiuB | 808c6750a59726ce96aa7d806ccf7613f9eeda00 | [
"Apache-2.0"
] | null | null | null | web/public.py | mingziV5/NiuB | 808c6750a59726ce96aa7d806ccf7613f9eeda00 | [
"Apache-2.0"
] | null | null | null | web/public.py | mingziV5/NiuB | 808c6750a59726ce96aa7d806ccf7613f9eeda00 | [
"Apache-2.0"
] | null | null | null | #coding:utf-8
from __future__ import unicode_literals
from flask import Flask, render_template, session, redirect, request
from . import app
import requests
import json
import utils
headers = {'Content-Type': 'application/json'}
data = {
'jsonrpc': '2.0',
'id': 1,
}
def get_api():
return 'http... | 31.236559 | 77 | 0.584165 | 364 | 2,905 | 4.56044 | 0.21978 | 0.066265 | 0.084337 | 0.057831 | 0.583735 | 0.572289 | 0.527711 | 0.484337 | 0.484337 | 0.484337 | 0 | 0.002233 | 0.22926 | 2,905 | 92 | 78 | 31.576087 | 0.739169 | 0.004131 | 0 | 0.428571 | 0 | 0 | 0.161826 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.071429 | null | null | 0.035714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5a489d6523764a64ed095b1c8842af01982ae125 | 1,399 | py | Python | Listboxapps_by2.py | gauravssnl/Symbian-Python-Files | 59d5c5ad0ea5c7c4ac28b1e1ee6443ed2d354502 | [
"MIT"
] | 7 | 2018-05-28T11:55:07.000Z | 2022-03-26T16:45:00.000Z | Listboxapps_by2.py | gauravssnl/Symbian-Python-Files | 59d5c5ad0ea5c7c4ac28b1e1ee6443ed2d354502 | [
"MIT"
] | null | null | null | Listboxapps_by2.py | gauravssnl/Symbian-Python-Files | 59d5c5ad0ea5c7c4ac28b1e1ee6443ed2d354502 | [
"MIT"
] | 3 | 2019-04-23T19:28:12.000Z | 2020-03-27T10:38:02.000Z | import e32,appuifw,os
from graphics import *
import geticon
import multimbm
import applist
limit=2
entries=[]
def listapps():
global entries,limit
lapp=applist.applist()
lapp1=[(el[1],el[0]) for el in lapp]
lmbm=[]
entries=[]
c=0
uidno=0xa89fd974
puz2=geticon.get(uid... | 21.19697 | 92 | 0.563259 | 190 | 1,399 | 4.094737 | 0.384211 | 0.046272 | 0.097686 | 0.020566 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044625 | 0.295211 | 1,399 | 65 | 93 | 21.523077 | 0.744422 | 0 | 0 | 0.115385 | 0 | 0 | 0.043478 | 0 | 0 | 0 | 0.007496 | 0 | 0 | 0 | null | null | 0 | 0.096154 | null | null | 0.038462 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5a503802e5f68208914ccf0551017203a983e13d | 516 | py | Python | scripts/mapping-test.py | mwinding/play | 26d1c80eb68c28f911e6816d62ba5a6b54ca45bc | [
"MIT"
] | null | null | null | scripts/mapping-test.py | mwinding/play | 26d1c80eb68c28f911e6816d62ba5a6b54ca45bc | [
"MIT"
] | null | null | null | scripts/mapping-test.py | mwinding/play | 26d1c80eb68c28f911e6816d62ba5a6b54ca45bc | [
"MIT"
] | null | null | null | # %%
# test out geopy
import os
os.chdir(os.path.dirname(os.getcwd())) # make directory one step up the current directory
from geopy.geocoders import Nominatim
geolocator = Nominatim(user_agent='test_agent')
location = geolocator.geocode('175 5th Avenue NYC')
print(location.address)
print((location.latitude, location... | 23.454545 | 89 | 0.755814 | 72 | 516 | 5.375 | 0.611111 | 0.100775 | 0.124031 | 0.170543 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013072 | 0.110465 | 516 | 21 | 90 | 24.571429 | 0.830065 | 0.217054 | 0 | 0 | 0 | 0 | 0.123737 | 0.05303 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3 | 0 | 0.3 | 0.2 | 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 |
5a61d83c7f63295207e8218aa8ae51e9d4414b78 | 24,239 | py | Python | python/kungfu/longfist/longfist_structs.py | dfhljf/kungfu | ebbc9e21f3b2efad743c402f453d7487d8d3f961 | [
"Apache-2.0"
] | 3 | 2019-05-15T16:28:31.000Z | 2019-06-30T03:25:12.000Z | python/kungfu/longfist/longfist_structs.py | dfhljf/kungfu | ebbc9e21f3b2efad743c402f453d7487d8d3f961 | [
"Apache-2.0"
] | null | null | null | python/kungfu/longfist/longfist_structs.py | dfhljf/kungfu | ebbc9e21f3b2efad743c402f453d7487d8d3f961 | [
"Apache-2.0"
] | 2 | 2018-11-05T17:51:59.000Z | 2019-07-14T01:15:48.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# auto generated by struct_info_parser.py, please DO NOT edit!!!
from ctypes import *
import longfist_constants as lf
from longfist_structs_sniffer import *
class LFMarketDataField(Structure):
_fields_ = [
("TradingDay", c_char * 13), # 交易日
("Instru... | 32.104636 | 73 | 0.570238 | 2,235 | 24,239 | 6.019687 | 0.247427 | 0.085328 | 0.006689 | 0.016947 | 0.26572 | 0.224394 | 0.187454 | 0.181805 | 0.161736 | 0.14583 | 0 | 0.024493 | 0.247081 | 24,239 | 754 | 74 | 32.147215 | 0.712712 | 0.110896 | 0 | 0.345205 | 1 | 0 | 0.348512 | 0.01036 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.00411 | 0 | 0.042466 | 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 |
5a698906bf394cc4631906211be60478a5f28211 | 971 | py | Python | eha/apps/users/schema/mutations/user_mutations.py | Niyitangasam/e-ha-backend | 19cbc3716b7de4759354bebb910e735ff2d78b81 | [
"Apache-2.0"
] | null | null | null | eha/apps/users/schema/mutations/user_mutations.py | Niyitangasam/e-ha-backend | 19cbc3716b7de4759354bebb910e735ff2d78b81 | [
"Apache-2.0"
] | 6 | 2020-06-05T20:21:54.000Z | 2021-09-22T18:19:49.000Z | eha/apps/users/schema/mutations/user_mutations.py | Niyitangasam/e-ha-backend | 19cbc3716b7de4759354bebb910e735ff2d78b81 | [
"Apache-2.0"
] | null | null | null | import graphene
from eha.users.models import User
from eha.users.schema.types.user_type import UserType
class CreateUser(graphene.Mutation):
"""
Mutation to create a new user
"""
user = graphene.Field(UserType)
class Arguments:
username = graphene.String(required=True)
email... | 31.322581 | 59 | 0.639547 | 105 | 971 | 5.87619 | 0.504762 | 0.158833 | 0.142626 | 0.168558 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.262616 | 971 | 31 | 60 | 31.322581 | 0.861732 | 0.029866 | 0 | 0 | 0 | 0 | 0.060541 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0.047619 | 0.142857 | 0 | 0.52381 | 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 |
5a74e1b17f083a28ffd9e39247020d7c3771124e | 1,591 | py | Python | contacts/migrations/0001_initial.py | Ratgor/iLikeit-voting-platform | 34c833d89b2dc04672db23a134c126a809446a0c | [
"FSFAP"
] | null | null | null | contacts/migrations/0001_initial.py | Ratgor/iLikeit-voting-platform | 34c833d89b2dc04672db23a134c126a809446a0c | [
"FSFAP"
] | null | null | null | contacts/migrations/0001_initial.py | Ratgor/iLikeit-voting-platform | 34c833d89b2dc04672db23a134c126a809446a0c | [
"FSFAP"
] | null | null | null | # Generated by Django 3.1.2 on 2021-02-13 16:28
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations = [
... | 41.868421 | 139 | 0.59648 | 157 | 1,591 | 5.929936 | 0.420382 | 0.058002 | 0.083781 | 0.10956 | 0.465091 | 0.41783 | 0.349087 | 0.349087 | 0.296455 | 0.296455 | 0 | 0.012942 | 0.271527 | 1,591 | 37 | 140 | 43 | 0.790337 | 0.028284 | 0 | 0.333333 | 1 | 0 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5a762d86125187344859722c44f5a963e1f74a2e | 516 | py | Python | SSLChecker/sharedcode/results.py | tdensmore/SSLChecker | bc9736e3a84cd8bf95bd5734075e0a5d523b269b | [
"Apache-2.0"
] | null | null | null | SSLChecker/sharedcode/results.py | tdensmore/SSLChecker | bc9736e3a84cd8bf95bd5734075e0a5d523b269b | [
"Apache-2.0"
] | null | null | null | SSLChecker/sharedcode/results.py | tdensmore/SSLChecker | bc9736e3a84cd8bf95bd5734075e0a5d523b269b | [
"Apache-2.0"
] | null | null | null | # Setters for the results dictionary
def set_error(name, message):
global _error
_error = {}
_error = {"Hostname": name, "Message": message}
return _error
def new():
return {
'Hostname': None,
'IP': None,
'MD5': None,
'View':... | 19.111111 | 51 | 0.505814 | 50 | 516 | 5.08 | 0.46 | 0.070866 | 0.11811 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003086 | 0.372093 | 516 | 26 | 52 | 19.846154 | 0.780864 | 0.065891 | 0 | 0 | 0 | 0 | 0.095833 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0 | 0.058824 | 0.352941 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5a7796a2832f322c6689436cf701fd93c38a0bc6 | 2,321 | py | Python | setup.py | marineam/nagcat | 445d0efe1fb2ec93c31d1f9d8fa0c0563189ffaf | [
"Apache-2.0"
] | null | null | null | setup.py | marineam/nagcat | 445d0efe1fb2ec93c31d1f9d8fa0c0563189ffaf | [
"Apache-2.0"
] | null | null | null | setup.py | marineam/nagcat | 445d0efe1fb2ec93c31d1f9d8fa0c0563189ffaf | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import os
import stat
from glob import glob
from distutils import log
from distutils.core import setup
from distutils.extension import Extension
from distutils.command.build_py import build_py as du_build_py
from twisted.python.dist import getPackages
# distutils doesn't provide a way to make so... | 37.435484 | 73 | 0.617406 | 278 | 2,321 | 5.010791 | 0.482014 | 0.040201 | 0.019383 | 0.045944 | 0.076095 | 0.076095 | 0 | 0 | 0 | 0 | 0 | 0.006407 | 0.260233 | 2,321 | 61 | 74 | 38.04918 | 0.804892 | 0.113313 | 0 | 0 | 0 | 0 | 0.266926 | 0.120312 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.020833 | 0.208333 | 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 |
5a786e74b6c163da655ef5b8d686c9deab607470 | 1,475 | py | Python | nonrepeating.py | crsiebler/NonRepeatingString | 5b15399b6a8b0fe353e9b3a1e6bf5895819f3e46 | [
"MIT"
] | null | null | null | nonrepeating.py | crsiebler/NonRepeatingString | 5b15399b6a8b0fe353e9b3a1e6bf5895819f3e46 | [
"MIT"
] | null | null | null | nonrepeating.py | crsiebler/NonRepeatingString | 5b15399b6a8b0fe353e9b3a1e6bf5895819f3e46 | [
"MIT"
] | null | null | null | from queue import Queue
"""Script to find the first non-repeating string in a stream.
This module reads a file called stream.txt to create a stream of strings. As a string is received, return the first
non-repeating string in the stream.
Example:
$ python nonrepeating.py
Todo:
* Add input argument for ... | 23.412698 | 116 | 0.634576 | 207 | 1,475 | 4.463768 | 0.391304 | 0.077922 | 0.073593 | 0.099567 | 0.106061 | 0.106061 | 0.075758 | 0.075758 | 0 | 0 | 0 | 0.004664 | 0.27322 | 1,475 | 62 | 117 | 23.790323 | 0.857276 | 0.298305 | 0 | 0.086957 | 0 | 0 | 0.029557 | 0 | 0 | 0 | 0 | 0.016129 | 0 | 1 | 0.130435 | false | 0 | 0.043478 | 0 | 0.26087 | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
5a78efbb865dd171eeedb53afd2f9bd16cd68341 | 2,678 | py | Python | snippets/microbit/microbit/__init__.py | owainkenwayucl/Garbage | 5be86b340845b753c976cc6f17356f73b673d5a5 | [
"MIT"
] | null | null | null | snippets/microbit/microbit/__init__.py | owainkenwayucl/Garbage | 5be86b340845b753c976cc6f17356f73b673d5a5 | [
"MIT"
] | null | null | null | snippets/microbit/microbit/__init__.py | owainkenwayucl/Garbage | 5be86b340845b753c976cc6f17356f73b673d5a5 | [
"MIT"
] | null | null | null |
import tkinter as tk
import time
# Routine for non-implemented features.
def NOTIMPLEMENTED():
print(">>> Not implemented <<<")
# Simulate the face buttons.
class MicrobitButton(tk.Button):
def setup(self):
self.presses = 0
self.state = False
self.bind("<Button-1>", self.bpress)
self.bind("<ButtonRelease-1... | 21.95082 | 76 | 0.644884 | 444 | 2,678 | 3.763514 | 0.256757 | 0.033513 | 0.0383 | 0.016756 | 0.120886 | 0.120886 | 0.120886 | 0.120886 | 0.120886 | 0.099342 | 0 | 0.029425 | 0.187827 | 2,678 | 122 | 77 | 21.95082 | 0.738851 | 0.034354 | 0 | 0.271739 | 0 | 0 | 0.028273 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217391 | false | 0 | 0.021739 | 0.043478 | 0.326087 | 0.01087 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5a8291bf366983ff742901f495b2eb177f01e66c | 231 | py | Python | deepclaw/driver/arms/Inverse_Kinematics/ikpy/logs.py | Nokkxz/ME336-Yellow-Team-Project | 5b6d65ecb134049ba3c5d27c37f521ada79a913f | [
"MIT"
] | 5 | 2020-06-24T03:47:00.000Z | 2021-10-13T03:35:38.000Z | deepclaw/driver/arms/Inverse_Kinematics/ikpy/logs.py | Nokkxz/ME336-Yellow-Team-Project | 5b6d65ecb134049ba3c5d27c37f521ada79a913f | [
"MIT"
] | null | null | null | deepclaw/driver/arms/Inverse_Kinematics/ikpy/logs.py | Nokkxz/ME336-Yellow-Team-Project | 5b6d65ecb134049ba3c5d27c37f521ada79a913f | [
"MIT"
] | 3 | 2020-06-18T09:25:39.000Z | 2021-04-18T03:51:08.000Z | # coding= utf8
import logging
logger = logging.getLogger("ikpy")
stream_handler = logging.StreamHandler()
logger.setLevel(logging.WARNING)
logger.addHandler(stream_handler)
def set_log_level(level):
logger.setLevel(level)
| 16.5 | 40 | 0.78355 | 28 | 231 | 6.321429 | 0.607143 | 0.146893 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004854 | 0.108225 | 231 | 13 | 41 | 17.769231 | 0.854369 | 0.051948 | 0 | 0 | 0 | 0 | 0.018605 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.285714 | 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 |
ce46c94da8bf0c673db89d8a99d7c37a7527b45b | 1,267 | py | Python | server/processes/serializers/workflow_task_instance_execution_serializer.py | CloudReactor/task_manager | 464ca74371064fabb9a21b1f5bacba30360932ab | [
"Fair"
] | null | null | null | server/processes/serializers/workflow_task_instance_execution_serializer.py | CloudReactor/task_manager | 464ca74371064fabb9a21b1f5bacba30360932ab | [
"Fair"
] | 6 | 2021-11-01T01:35:40.000Z | 2022-02-11T03:33:06.000Z | server/processes/serializers/workflow_task_instance_execution_serializer.py | CloudReactor/task_manager | 464ca74371064fabb9a21b1f5bacba30360932ab | [
"Fair"
] | null | null | null | import logging
from rest_framework import serializers
from rest_flex_fields.serializers import FlexFieldsSerializerMixin
from ..models import WorkflowTaskInstanceExecution
from .workflow_task_instance_execution_base_serializer import WorkflowTaskInstanceExecutionBaseSerializer
from .serializer_helpers impo... | 33.342105 | 106 | 0.730071 | 105 | 1,267 | 8.514286 | 0.466667 | 0.058166 | 0.067114 | 0.060403 | 0.17226 | 0.17226 | 0.17226 | 0.17226 | 0.17226 | 0.17226 | 0 | 0 | 0.212313 | 1,267 | 37 | 107 | 34.243243 | 0.895792 | 0.127861 | 0 | 0.095238 | 0 | 0 | 0.14751 | 0.042146 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.47619 | 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 |
ce47ee799132ae232d17b00c6b1deecbda03a42c | 470 | py | Python | order/models/person.py | annaos/scc-storage-order | 8e2a0e47027bc90670ef6cf16d06414be83376d6 | [
"MIT"
] | null | null | null | order/models/person.py | annaos/scc-storage-order | 8e2a0e47027bc90670ef6cf16d06414be83376d6 | [
"MIT"
] | null | null | null | order/models/person.py | annaos/scc-storage-order | 8e2a0e47027bc90670ef6cf16d06414be83376d6 | [
"MIT"
] | null | null | null | from django.contrib.auth.models import AbstractUser
from django.db import models
class Person(AbstractUser):
institute = models.CharField(max_length=100, null=True, blank=True)
orders = models.ManyToManyField(
'order.Order',
through='PersonOrder',
related_name="%(app_label)s_%(class)s... | 27.647059 | 71 | 0.682979 | 58 | 470 | 5.275862 | 0.62069 | 0.065359 | 0.078431 | 0.084967 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007937 | 0.195745 | 470 | 16 | 72 | 29.375 | 0.801587 | 0 | 0 | 0 | 0 | 0 | 0.165957 | 0.117021 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.166667 | 0.083333 | 0.583333 | 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 |
ce4da5ed53e330b753e69f604ce17d7dd9f4a4f1 | 771 | py | Python | src/dict/months.py | sungheeyun/PythonLectures | 3a748672bf5b39568b2f42e813a0b9402711ad8e | [
"Unlicense"
] | null | null | null | src/dict/months.py | sungheeyun/PythonLectures | 3a748672bf5b39568b2f42e813a0b9402711ad8e | [
"Unlicense"
] | null | null | null | src/dict/months.py | sungheeyun/PythonLectures | 3a748672bf5b39568b2f42e813a0b9402711ad8e | [
"Unlicense"
] | null | null | null | import json
if __name__ == "__main__":
with open("months.json") as fid:
months_ = json.load(fid)
months = dict()
for key, value in months_.items():
months[int(key)] = value
print("The dictionary contains the following keys: ", months.keys())
print("The dictionary contains the fo... | 22.676471 | 78 | 0.592737 | 98 | 771 | 4.561224 | 0.326531 | 0.17226 | 0.100671 | 0.058166 | 0.187919 | 0.187919 | 0.187919 | 0 | 0 | 0 | 0 | 0.006849 | 0.242542 | 771 | 33 | 79 | 23.363636 | 0.758562 | 0 | 0 | 0.166667 | 0 | 0 | 0.190661 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.041667 | 0 | 0.041667 | 0.541667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ce5557217be65234c33914217b7bb4aea7ff6840 | 530 | py | Python | underdog_fastapi/underdog_fastapi/api/schemas.py | ericmbernier/ericbernier-blog-posts | 6dc2a825e44a92b981bbff34b9fca4495afaabd3 | [
"MIT"
] | 9 | 2021-01-04T22:36:47.000Z | 2022-03-23T00:23:21.000Z | underdog_fastapi/underdog_fastapi/api/schemas.py | ericmbernier/ericbernier-blog-posts | 6dc2a825e44a92b981bbff34b9fca4495afaabd3 | [
"MIT"
] | 2 | 2021-06-09T00:33:55.000Z | 2021-07-27T01:58:36.000Z | underdog_fastapi/underdog_fastapi/api/schemas.py | ericmbernier/ericbernier-blog-posts | 6dc2a825e44a92b981bbff34b9fca4495afaabd3 | [
"MIT"
] | 4 | 2021-06-02T13:27:28.000Z | 2022-01-14T08:24:33.000Z | from pydantic import BaseModel
from typing import List
from underdog_fastapi.underdog.team import Team
class PlayerBase(BaseModel):
first_name: str
last_name: str
adp: float = None
projected_points: float = None
team_name: str
team_abbreviation: Team
class Player(PlayerBase):
id: int
... | 18.275862 | 47 | 0.715094 | 68 | 530 | 5.382353 | 0.514706 | 0.057377 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.228302 | 530 | 28 | 48 | 18.928571 | 0.894866 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.15 | 0 | 0.95 | 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 |
ce57776b6ca41ef6bb5bad5e8b0c09c3e81f5895 | 526 | py | Python | measure_mate/migrations/0024_assessment_status.py | niche-tester/measure-mate | c3acba57747bcb89fe0c6b9509ec90f04a581506 | [
"MIT"
] | 15 | 2015-12-14T02:20:31.000Z | 2022-01-30T04:36:39.000Z | measure_mate/migrations/0024_assessment_status.py | rloomans/measure-mate | e89f9c8e1faa1920496f1c997f6d87ec0f9bd7c2 | [
"MIT"
] | 1,403 | 2017-02-16T01:00:04.000Z | 2022-03-15T21:12:13.000Z | measure_mate/migrations/0024_assessment_status.py | rloomans/measure-mate | e89f9c8e1faa1920496f1c997f6d87ec0f9bd7c2 | [
"MIT"
] | 10 | 2015-12-18T01:30:46.000Z | 2022-01-30T04:36:41.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.9.5 on 2016-04-11 11:46
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('measure_mate', '0023_auto_20160330_0145'),
]
operations = [
migrations.AddFi... | 25.047619 | 119 | 0.61597 | 64 | 526 | 4.890625 | 0.765625 | 0.031949 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0875 | 0.239544 | 526 | 20 | 120 | 26.3 | 0.695 | 0.127376 | 0 | 0 | 1 | 0 | 0.157895 | 0.050439 | 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 |
ce648afbfc20bb58c8947562e98cabb665cb0555 | 642 | py | Python | Web_Crawling/python-crawler/chapter_9/whoosh_indexer.py | devming0322/2021-K-Digital-Training | 2803492a9c533945de7c4054dce1e1c102260cdc | [
"MIT"
] | 11 | 2021-06-01T00:08:01.000Z | 2021-09-04T02:41:55.000Z | Web_Crawling/python-crawler/chapter_9/whoosh_indexer.py | devming0322/2021-K-Digital-Training | 2803492a9c533945de7c4054dce1e1c102260cdc | [
"MIT"
] | 1 | 2021-05-28T08:44:39.000Z | 2021-06-01T01:11:04.000Z | Web_Crawling/python-crawler/chapter_9/whoosh_indexer.py | devming0322/2021-K-Digital-Training | 2803492a9c533945de7c4054dce1e1c102260cdc | [
"MIT"
] | 12 | 2021-06-01T00:27:05.000Z | 2021-07-01T04:25:27.000Z | import os
import sys
import time
import w3lib.html
from dashboard_crawler import get_dashboard_posts
from whoosh_lib import get_or_create_index
if __name__ == '__main__':
# 인덱스 핸들러 읽어 들이기
ix = get_or_create_index()
# 인덱스 쓰기 전용 writer 객체 만들기
writer = ix.writer()
# 대시보드의 글 추출하기
d... | 22.928571 | 56 | 0.624611 | 86 | 642 | 4.360465 | 0.569767 | 0.149333 | 0.090667 | 0.085333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004444 | 0.299065 | 642 | 27 | 57 | 23.777778 | 0.828889 | 0.147975 | 0 | 0 | 0 | 0 | 0.048733 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
ce662ce24ec2a09d60b82dbfd8edc03ee5041448 | 1,297 | py | Python | modules/db_connectors/mssql.py | Infosecurity-LLC/unicon_v2 | 2ac16becb3a173e15fa5a085b7e6183a66ccf85e | [
"Apache-2.0"
] | 1 | 2022-02-04T10:01:55.000Z | 2022-02-04T10:01:55.000Z | modules/db_connectors/mssql.py | Infosecurity-LLC/unicon_v2 | 2ac16becb3a173e15fa5a085b7e6183a66ccf85e | [
"Apache-2.0"
] | null | null | null | modules/db_connectors/mssql.py | Infosecurity-LLC/unicon_v2 | 2ac16becb3a173e15fa5a085b7e6183a66ccf85e | [
"Apache-2.0"
] | 1 | 2022-02-04T10:01:58.000Z | 2022-02-04T10:01:58.000Z | import pymssql
import logging
import sys
logger = logging.getLogger(__name__)
class DbaseException(Exception):
pass
class SelectorMSSQL:
def __init__(self, device, db_setting):
self.cursor = None
self.device = device
try:
self.connection = pymssql.connect(server=db_setti... | 34.131579 | 111 | 0.561295 | 129 | 1,297 | 5.472868 | 0.457364 | 0.076487 | 0.056657 | 0.067989 | 0.084986 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001179 | 0.346184 | 1,297 | 37 | 112 | 35.054054 | 0.831368 | 0.059368 | 0 | 0.068966 | 0 | 0.034483 | 0.131363 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103448 | false | 0.068966 | 0.103448 | 0 | 0.310345 | 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 |
ce68903a59a42ba7e08a305d11de304e473aaad0 | 747 | py | Python | algorithms/delete-node-in-a-linked-list.py | jiangyx3915/leetcode | 23ab43921fb1f355734e958e700fce6aef70f388 | [
"MIT"
] | null | null | null | algorithms/delete-node-in-a-linked-list.py | jiangyx3915/leetcode | 23ab43921fb1f355734e958e700fce6aef70f388 | [
"MIT"
] | null | null | null | algorithms/delete-node-in-a-linked-list.py | jiangyx3915/leetcode | 23ab43921fb1f355734e958e700fce6aef70f388 | [
"MIT"
] | null | null | null | """
description: delete-node-in-a-linked-list(删除链表中的节点)
author: jiangyx3915
date: 2018/10/13
请编写一个函数,使其可以删除某个链表中给定的(非末尾)节点,你将只被给定要求被删除的节点。
现有一个链表 -- head = [4,5,1,9],它可以表示为:
4 -> 5 -> 1 -> 9
说明:
链表至少包含两个节点。
链表中所有节点的值都是唯一的。
给定的节点为非末尾节点并且一定是链表中的一个有效节点。
不要从你的函数中返回任何结果。
结题思路
由于没有办法得到node的前节点,我们只... | 20.75 | 74 | 0.645248 | 86 | 747 | 5.55814 | 0.686047 | 0.050209 | 0.012552 | 0.016736 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035088 | 0.236948 | 747 | 35 | 75 | 21.342857 | 0.803509 | 0.763052 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ce6b24dbff7288da4595d3442d420c4e13d73fc9 | 7,701 | py | Python | utils/get_data_hbag/pb/cut_in_pb2.py | NovemberChopin/GuideLine | d49b3b527a5e54f3ee734c8d5245efb89150d594 | [
"MIT"
] | null | null | null | utils/get_data_hbag/pb/cut_in_pb2.py | NovemberChopin/GuideLine | d49b3b527a5e54f3ee734c8d5245efb89150d594 | [
"MIT"
] | null | null | null | utils/get_data_hbag/pb/cut_in_pb2.py | NovemberChopin/GuideLine | d49b3b527a5e54f3ee734c8d5245efb89150d594 | [
"MIT"
] | 1 | 2022-02-28T11:58:47.000Z | 2022-02-28T11:58:47.000Z | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: cut_in.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflec... | 30.318898 | 651 | 0.722244 | 1,017 | 7,701 | 5.169125 | 0.163225 | 0.053262 | 0.047936 | 0.041849 | 0.548792 | 0.48735 | 0.475747 | 0.455963 | 0.448735 | 0.415256 | 0 | 0.04553 | 0.144397 | 7,701 | 253 | 652 | 30.438735 | 0.752314 | 0.043111 | 0 | 0.628959 | 1 | 0.004525 | 0.146332 | 0.084103 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.027149 | 0 | 0.027149 | 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 |
ce6fe88a5fe8a46b3825aef0dff85cf1b77fe2f3 | 195 | py | Python | app.py | helionagamachi/S3Share | 145b3043d3830d0692d4450149ba1bfad41af61a | [
"Apache-2.0"
] | null | null | null | app.py | helionagamachi/S3Share | 145b3043d3830d0692d4450149ba1bfad41af61a | [
"Apache-2.0"
] | null | null | null | app.py | helionagamachi/S3Share | 145b3043d3830d0692d4450149ba1bfad41af61a | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
from aws_cdk import core
from aws_cdk.aws_s3 import Bucket
from s3_share.s3_share_stack import S3ShareStack
app = core.App()
S3ShareStack(app, "s3-share")
app.synth()
| 15 | 48 | 0.769231 | 33 | 195 | 4.363636 | 0.484848 | 0.145833 | 0.138889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041176 | 0.128205 | 195 | 12 | 49 | 16.25 | 0.805882 | 0.107692 | 0 | 0 | 0 | 0 | 0.046243 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
ce760cc088114df69320f6e852cd8a3a48a05b4f | 14,841 | py | Python | sdk/python/pulumi_azure_native/servicebus/v20170401/rule.py | sebtelko/pulumi-azure-native | 711ec021b5c73da05611c56c8a35adb0ce3244e4 | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_native/servicebus/v20170401/rule.py | sebtelko/pulumi-azure-native | 711ec021b5c73da05611c56c8a35adb0ce3244e4 | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_native/servicebus/v20170401/rule.py | sebtelko/pulumi-azure-native | 711ec021b5c73da05611c56c8a35adb0ce3244e4 | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | 43.908284 | 499 | 0.650832 | 1,645 | 14,841 | 5.589058 | 0.100912 | 0.078965 | 0.056341 | 0.030998 | 0.727757 | 0.583424 | 0.500109 | 0.433326 | 0.417229 | 0.326952 | 0 | 0.004364 | 0.243515 | 14,841 | 337 | 500 | 44.038576 | 0.814554 | 0.214743 | 0 | 0.339623 | 1 | 0 | 0.156043 | 0.047467 | 0 | 0 | 0 | 0 | 0 | 1 | 0.141509 | false | 0.004717 | 0.037736 | 0 | 0.264151 | 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 |
ce79a2ff88bf0225a399ec214a5a02422c4786d8 | 302 | py | Python | mofa/assistants/migrations/0008_delete_dummyassistant.py | BoxInABoxICT/BoxPlugin | ad351978faa37ab867a86d2f4023a2b3e5a2ce19 | [
"Apache-2.0"
] | null | null | null | mofa/assistants/migrations/0008_delete_dummyassistant.py | BoxInABoxICT/BoxPlugin | ad351978faa37ab867a86d2f4023a2b3e5a2ce19 | [
"Apache-2.0"
] | 5 | 2020-06-06T01:07:51.000Z | 2021-06-09T18:52:55.000Z | mofa/assistants/migrations/0008_delete_dummyassistant.py | BoxInABoxICT/BoxPlugin | ad351978faa37ab867a86d2f4023a2b3e5a2ce19 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.2.6 on 2020-01-28 12:30
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('assistants', '0007_dummyassistant'),
]
operations = [
migrations.DeleteModel(
name='DummyAssistant',
),
]
| 17.764706 | 47 | 0.612583 | 30 | 302 | 6.133333 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.087156 | 0.278146 | 302 | 16 | 48 | 18.875 | 0.756881 | 0.149007 | 0 | 0 | 1 | 0 | 0.168627 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 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 |
ce81893018e821ee7f12dd9bb44d7d7698c17e03 | 2,987 | py | Python | scripts/mu_sims_exon.py | stephenrong/mutation-paper | 66b8740f28e0cb2864e8b5889658b42c6f9ba314 | [
"Unlicense"
] | null | null | null | scripts/mu_sims_exon.py | stephenrong/mutation-paper | 66b8740f28e0cb2864e8b5889658b42c6f9ba314 | [
"Unlicense"
] | null | null | null | scripts/mu_sims_exon.py | stephenrong/mutation-paper | 66b8740f28e0cb2864e8b5889658b42c6f9ba314 | [
"Unlicense"
] | 1 | 2021-05-20T17:31:50.000Z | 2021-05-20T17:31:50.000Z | #!/usr/bin/env python
from __future__ import division
import sys
import gzip
from mu_sims_module import *
from numpy.random import randint
# # # real sequences
if __name__ == '__main__':
iter_start = int(sys.argv[1])
iter_end = int(sys.argv[2])
np.random.seed(iter_start+2)
# import mut_matrix
mut_file = "../dat... | 43.289855 | 260 | 0.711416 | 460 | 2,987 | 4.273913 | 0.25 | 0.040692 | 0.042726 | 0.054934 | 0.569176 | 0.537131 | 0.537131 | 0.537131 | 0.506612 | 0.506612 | 0 | 0.009852 | 0.116505 | 2,987 | 68 | 261 | 43.926471 | 0.735127 | 0.183127 | 0 | 0.35 | 0 | 0 | 0.249071 | 0.041718 | 0.025 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.125 | 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 |
ce8570fe7638118806e0b29a93b5c0937f197937 | 915 | py | Python | h2o-py/tests/testdir_algos/psvm/pyunit_svm_svmguide3.py | ahmedengu/h2o-3 | ac2c0a6fbe7f8e18078278bf8a7d3483d41aca11 | [
"Apache-2.0"
] | 6,098 | 2015-05-22T02:46:12.000Z | 2022-03-31T16:54:51.000Z | h2o-py/tests/testdir_algos/psvm/pyunit_svm_svmguide3.py | ahmedengu/h2o-3 | ac2c0a6fbe7f8e18078278bf8a7d3483d41aca11 | [
"Apache-2.0"
] | 2,517 | 2015-05-23T02:10:54.000Z | 2022-03-30T17:03:39.000Z | h2o-py/tests/testdir_algos/psvm/pyunit_svm_svmguide3.py | ahmedengu/h2o-3 | ac2c0a6fbe7f8e18078278bf8a7d3483d41aca11 | [
"Apache-2.0"
] | 2,199 | 2015-05-22T04:09:55.000Z | 2022-03-28T22:20:45.000Z | from __future__ import print_function
import sys
sys.path.insert(1,"../../../")
import h2o
from tests import pyunit_utils
from h2o.estimators.psvm import H2OSupportVectorMachineEstimator
def svm_svmguide3():
svmguide3 = h2o.import_file(pyunit_utils.locate("smalldata/svm_test/svmguide3scale.svm"))
svmguide3_te... | 36.6 | 110 | 0.774863 | 120 | 915 | 5.6 | 0.55 | 0.065476 | 0.03869 | 0.056548 | 0.178571 | 0.178571 | 0.178571 | 0.178571 | 0.178571 | 0.178571 | 0 | 0.038605 | 0.122404 | 915 | 24 | 111 | 38.125 | 0.798257 | 0.099454 | 0 | 0 | 0 | 0 | 0.119367 | 0.096224 | 0 | 0 | 0 | 0 | 0.058824 | 1 | 0.058824 | false | 0 | 0.411765 | 0 | 0.470588 | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
ce8f0dfd6d4f0fec876520336e0588da785c102c | 2,889 | py | Python | app/services/user_services.py | rarenicks/donna-backend | c6ca7ef60e9ee2a140a957184c72f9dcd0d76ff8 | [
"MIT"
] | null | null | null | app/services/user_services.py | rarenicks/donna-backend | c6ca7ef60e9ee2a140a957184c72f9dcd0d76ff8 | [
"MIT"
] | null | null | null | app/services/user_services.py | rarenicks/donna-backend | c6ca7ef60e9ee2a140a957184c72f9dcd0d76ff8 | [
"MIT"
] | 3 | 2020-10-12T02:12:50.000Z | 2021-03-17T23:37:06.000Z | from flask import jsonify
from ast import literal_eval
from app import db
from app.models.office import User, Location
def validate_and_add_user(form):
status, new_user = validate_and_save_user(form, skip_location=False)
if status:
return jsonify(success=True, item=new_user.to_dict())
else:
... | 37.519481 | 130 | 0.680512 | 408 | 2,889 | 4.620098 | 0.227941 | 0.048276 | 0.05305 | 0.033952 | 0.242971 | 0.185676 | 0.174005 | 0.13687 | 0.13687 | 0.046684 | 0 | 0.007909 | 0.212184 | 2,889 | 76 | 131 | 38.013158 | 0.820299 | 0.005192 | 0 | 0.164179 | 0 | 0 | 0.062674 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.119403 | false | 0.089552 | 0.059701 | 0.029851 | 0.38806 | 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 |
ce8f52b48e05ca7ab3363adbfb795d1f0461e0f9 | 2,865 | py | Python | cdsso/contrib/register/signals.py | ASU-CodeDevils/sso.codedevils.org | 98bc2009c4616f948c30d8ad8509dd5b8d9fa5e7 | [
"MIT"
] | null | null | null | cdsso/contrib/register/signals.py | ASU-CodeDevils/sso.codedevils.org | 98bc2009c4616f948c30d8ad8509dd5b8d9fa5e7 | [
"MIT"
] | 6 | 2020-10-18T10:56:47.000Z | 2021-04-18T20:01:23.000Z | cdsso/contrib/register/signals.py | ASU-CodeDevils/sso.codedevils.org | 98bc2009c4616f948c30d8ad8509dd5b8d9fa5e7 | [
"MIT"
] | null | null | null | from django.conf import settings
from django.db.models.signals import post_save, pre_save
from django.dispatch import receiver
from .models import KnownMember, StudentRegistration
from .tasks import notify_sds_registration, register_on_slack
from .utils import email_user_complete_registration
@receiver(pre_save, sen... | 38.716216 | 93 | 0.707155 | 326 | 2,865 | 6 | 0.294479 | 0.056237 | 0.042945 | 0.03681 | 0.119632 | 0.062372 | 0.062372 | 0 | 0 | 0 | 0 | 0 | 0.24014 | 2,865 | 73 | 94 | 39.246575 | 0.898484 | 0.241885 | 0 | 0.195652 | 0 | 0 | 0.016068 | 0.016068 | 0 | 0 | 0 | 0.013699 | 0 | 1 | 0.043478 | false | 0 | 0.130435 | 0 | 0.173913 | 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 |
ce944dfe6a30528596e3588a5af01b1ac2c7f6f2 | 465 | py | Python | libweasyl/libweasyl/alembic/versions/088e13f2ae70_add_journal_content_column.py | greysteil/wzl-test | 0f863b9e7c58e5861437618bd590126ca323140c | [
"Apache-2.0"
] | 1 | 2019-02-15T04:21:48.000Z | 2019-02-15T04:21:48.000Z | libweasyl/libweasyl/alembic/versions/088e13f2ae70_add_journal_content_column.py | kfkitsune/wzl-test | 27297ccb42e24d652a29aa82f5a667c7d9a6d8de | [
"Apache-2.0"
] | 254 | 2017-12-23T19:36:43.000Z | 2020-04-14T21:46:13.000Z | libweasyl/libweasyl/alembic/versions/088e13f2ae70_add_journal_content_column.py | greysteil/wzl-test | 0f863b9e7c58e5861437618bd590126ca323140c | [
"Apache-2.0"
] | 1 | 2017-12-23T18:42:16.000Z | 2017-12-23T18:42:16.000Z | """Add journal content column
Revision ID: 088e13f2ae70
Revises: 7147da2a1adf
Create Date: 2017-08-21 04:34:29.541975
"""
# revision identifiers, used by Alembic.
revision = '088e13f2ae70'
down_revision = '7147da2a1adf'
from alembic import op
import sqlalchemy as sa
def upgrade():
op.add_column('journal', sa.... | 20.217391 | 80 | 0.748387 | 61 | 465 | 5.672131 | 0.704918 | 0.080925 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.120603 | 0.144086 | 465 | 22 | 81 | 21.136364 | 0.748744 | 0.333333 | 0 | 0 | 0 | 0 | 0.31457 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 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 |
ce95389026970b0889ad541d41b1c3149220d8e9 | 6,392 | py | Python | bpcs/text_to_image.py | BburnN123/bpcs | f53caede7e202ce07b51890f028b9caf73a22937 | [
"MIT"
] | 20 | 2017-04-25T21:07:24.000Z | 2022-03-30T11:11:47.000Z | bpcs/text_to_image.py | BburnN123/bpcs | f53caede7e202ce07b51890f028b9caf73a22937 | [
"MIT"
] | 4 | 2016-04-06T01:19:27.000Z | 2020-09-26T18:38:29.000Z | bpcs/text_to_image.py | BburnN123/bpcs | f53caede7e202ce07b51890f028b9caf73a22937 | [
"MIT"
] | 12 | 2017-04-02T23:10:46.000Z | 2022-03-21T03:43:55.000Z | import re
import string
from math import sqrt
import numpy as np
from PIL import Image
from .test_utils import show_html_diff
def digits_in_base_as_tuple(x, base):
"""
x is int
base is int
gets the digits of x in the new base
e.g. digits_in_base_as_tuple(20, 2) == (1,0,1,0,0)
... | 33.291667 | 96 | 0.596683 | 921 | 6,392 | 3.942454 | 0.233442 | 0.036354 | 0.023134 | 0.020655 | 0.242633 | 0.177086 | 0.114018 | 0.087579 | 0.051776 | 0.04076 | 0 | 0.02354 | 0.282228 | 6,392 | 191 | 97 | 33.465969 | 0.767873 | 0.12234 | 0 | 0.081967 | 0 | 0 | 0.053409 | 0.006513 | 0 | 0 | 0 | 0 | 0.04918 | 0 | null | null | 0 | 0.04918 | null | null | 0.02459 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ce9789bc216a9883918613ed4fdff0ce4bd79787 | 17,087 | py | Python | libHC/hcLab.py | cknd/synchrony | 1478f602211ed4bc45331c8bd0124fe1d558aca9 | [
"MIT"
] | 5 | 2017-05-16T11:32:03.000Z | 2022-03-08T20:59:40.000Z | libHC/hcLab.py | cknd/synchrony | 1478f602211ed4bc45331c8bd0124fe1d558aca9 | [
"MIT"
] | null | null | null | libHC/hcLab.py | cknd/synchrony | 1478f602211ed4bc45331c8bd0124fe1d558aca9 | [
"MIT"
] | 3 | 2018-06-19T14:21:23.000Z | 2021-12-21T13:40:08.000Z | """
experiment setup, running & evaluation
CK 2014
"""
import copy
import numpy as np
import networkx as nx
import hcWrapSim as wrp
import hcNetworks as net
import hcPlotting as plo
from hcUtil import printprogress
from matplotlib import pyplot as plt
from numpy.random import RandomState
# provide a fixed set of rando... | 43.258228 | 161 | 0.618599 | 2,168 | 17,087 | 4.799816 | 0.211716 | 0.007207 | 0.009418 | 0.015472 | 0.233615 | 0.207861 | 0.167884 | 0.164232 | 0.131943 | 0.112339 | 0 | 0.010875 | 0.284251 | 17,087 | 394 | 162 | 43.36802 | 0.839984 | 0.044186 | 0 | 0.174528 | 0 | 0 | 0.046878 | 0 | 0 | 0 | 0 | 0 | 0.018868 | 0 | null | null | 0 | 0.042453 | null | null | 0.037736 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ce9951625d06a23675705c58d1b4593ff0072f05 | 3,894 | bzl | Python | third_party/cabal2bazel/bzl/cabal_paths.bzl | matthewbauer/hazel | 8c35d68fd2a34e2abe0b0ad2b454a2107051f72a | [
"Apache-2.0"
] | null | null | null | third_party/cabal2bazel/bzl/cabal_paths.bzl | matthewbauer/hazel | 8c35d68fd2a34e2abe0b0ad2b454a2107051f72a | [
"Apache-2.0"
] | null | null | null | third_party/cabal2bazel/bzl/cabal_paths.bzl | matthewbauer/hazel | 8c35d68fd2a34e2abe0b0ad2b454a2107051f72a | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 33.282051 | 93 | 0.663842 | 522 | 3,894 | 4.827586 | 0.388889 | 0.027778 | 0.020635 | 0.012698 | 0.019841 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003985 | 0.226759 | 3,894 | 116 | 94 | 33.568966 | 0.832946 | 0.554186 | 0 | 0 | 0 | 0 | 0.151057 | 0.064048 | 0 | 0 | 0 | 0.017241 | 0 | 1 | 0.040816 | false | 0 | 0 | 0 | 0.061224 | 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 |
ce99a1dec21f519ac84f2a34168a49c2764d3ab1 | 2,152 | py | Python | engine/batch_operation.py | sakshitantak/NLPActionExtraction | 0b6a93deb49313d5bb3bf62ef4a2954d8347ba18 | [
"CC0-1.0"
] | null | null | null | engine/batch_operation.py | sakshitantak/NLPActionExtraction | 0b6a93deb49313d5bb3bf62ef4a2954d8347ba18 | [
"CC0-1.0"
] | null | null | null | engine/batch_operation.py | sakshitantak/NLPActionExtraction | 0b6a93deb49313d5bb3bf62ef4a2954d8347ba18 | [
"CC0-1.0"
] | null | null | null | """file to deal with batch operations"""
import sys
import json
import xlwt
import extract_info
from fit_sheet_wrapper import FitSheetWrapper
from xlwt import Workbook
import random
# from desk import *
import requests
import pandas as pd
import numpy as np
import nltk
import json
import csv
from nltk.corpus import st... | 25.927711 | 100 | 0.679368 | 329 | 2,152 | 4.349544 | 0.3769 | 0.016771 | 0.061495 | 0.037736 | 0.150943 | 0.11181 | 0.078966 | 0.026555 | 0 | 0 | 0 | 0.018234 | 0.18448 | 2,152 | 82 | 101 | 26.243902 | 0.797151 | 0.207714 | 0 | 0.125 | 0 | 0 | 0.111247 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.339286 | 0 | 0.339286 | 0.035714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ce9a5ab91b0dee178127ba8c512a1e3db02d1b07 | 2,642 | py | Python | operators/nsm-operator-registry/python/pulumi_pulumi_kubernetes_crds_operators_nsm_operator_registry/nsm/v1alpha1/outputs.py | pulumi/pulumi-kubernetes-crds | 372c4c0182f6b899af82d6edaad521aa14f22150 | [
"Apache-2.0"
] | null | null | null | operators/nsm-operator-registry/python/pulumi_pulumi_kubernetes_crds_operators_nsm_operator_registry/nsm/v1alpha1/outputs.py | pulumi/pulumi-kubernetes-crds | 372c4c0182f6b899af82d6edaad521aa14f22150 | [
"Apache-2.0"
] | 2 | 2020-09-18T17:12:23.000Z | 2020-12-30T19:40:56.000Z | operators/nsm-operator-registry/python/pulumi_pulumi_kubernetes_crds_operators_nsm_operator_registry/nsm/v1alpha1/outputs.py | pulumi/pulumi-kubernetes-crds | 372c4c0182f6b899af82d6edaad521aa14f22150 | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by crd2pulumi. ***
# *** 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
from ... import _utilities, _tables
__all__ = [
'... | 27.810526 | 80 | 0.629447 | 296 | 2,642 | 5.347973 | 0.307432 | 0.123184 | 0.072015 | 0.060013 | 0.39482 | 0.286797 | 0.229943 | 0.093493 | 0.093493 | 0.093493 | 0 | 0.001042 | 0.273656 | 2,642 | 94 | 81 | 28.106383 | 0.823867 | 0.25511 | 0 | 0.326531 | 1 | 0 | 0.102666 | 0.04878 | 0 | 0 | 0 | 0 | 0 | 1 | 0.183673 | false | 0 | 0.102041 | 0.061224 | 0.469388 | 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 |
cea933234f61208c7e4cee8cd2530668c9310862 | 332 | py | Python | rotv_apps/navigations/admin.py | ivellios/django-rotv-apps | 95aad945debd0e60d210057c0605928483e213a8 | [
"MIT"
] | 1 | 2017-12-05T13:24:23.000Z | 2017-12-05T13:24:23.000Z | rotv_apps/navigations/admin.py | ivellios/django-rotv-apps | 95aad945debd0e60d210057c0605928483e213a8 | [
"MIT"
] | 9 | 2017-11-22T23:29:48.000Z | 2022-03-11T23:11:34.000Z | rotv_apps/navigations/admin.py | ivellios/django-rotv-apps | 95aad945debd0e60d210057c0605928483e213a8 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from django.contrib import admin
from .models import Nav
class NavAdmin(admin.ModelAdmin):
list_display = ['__unicode__', 'parent', 'subnav_type', 'slug', ]
search_fields = ['name', ]
list_filter = ['parent', ]
prepopulated_fields = {'slug': ('name',)}
admin.site.register(Nav... | 23.714286 | 69 | 0.656627 | 38 | 332 | 5.5 | 0.710526 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003623 | 0.168675 | 332 | 13 | 70 | 25.538462 | 0.753623 | 0.063253 | 0 | 0 | 0 | 0 | 0.161812 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
ceade3e4f8b87656052ab2924cccc6407c414d11 | 1,519 | py | Python | tests/bugs/core_3737_test.py | FirebirdSQL/firebird-qa | 96af2def7f905a06f178e2a80a2c8be4a4b44782 | [
"MIT"
] | 1 | 2022-02-05T11:37:13.000Z | 2022-02-05T11:37:13.000Z | tests/bugs/core_3737_test.py | FirebirdSQL/firebird-qa | 96af2def7f905a06f178e2a80a2c8be4a4b44782 | [
"MIT"
] | 1 | 2021-09-03T11:47:00.000Z | 2021-09-03T12:42:10.000Z | tests/bugs/core_3737_test.py | FirebirdSQL/firebird-qa | 96af2def7f905a06f178e2a80a2c8be4a4b44782 | [
"MIT"
] | 1 | 2021-06-30T14:14:16.000Z | 2021-06-30T14:14:16.000Z | #coding:utf-8
#
# id: bugs.core_3737
# title: EXECUTE BLOCK parameters definitions are not respected and may cause wrong behavior related to character sets
# decription:
# tracker_id: CORE-3737
# min_versions: ['3.0']
# versions: 3.0
# qmid: None
import pytest
from firebird.qa import ... | 23.369231 | 125 | 0.637261 | 211 | 1,519 | 4.383886 | 0.42654 | 0.025946 | 0.058378 | 0.068108 | 0.245405 | 0.214054 | 0.214054 | 0.214054 | 0.214054 | 0.105946 | 0 | 0.060241 | 0.235023 | 1,519 | 64 | 126 | 23.734375 | 0.7358 | 0.192232 | 0 | 0.292683 | 0 | 0.073171 | 0.604938 | 0 | 0 | 0 | 0 | 0 | 0.02439 | 1 | 0.02439 | false | 0 | 0.04878 | 0 | 0.073171 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ceadf186ab075f60a5f5fed7b6292bbd1c2ba70f | 3,081 | py | Python | django/engagementmanager/rest/checklist_set_state.py | onap/vvp-engagementmgr | 8d2108708e7c55cc753b956563c535177f92d0d9 | [
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | django/engagementmanager/rest/checklist_set_state.py | onap/vvp-engagementmgr | 8d2108708e7c55cc753b956563c535177f92d0d9 | [
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | django/engagementmanager/rest/checklist_set_state.py | onap/vvp-engagementmgr | 8d2108708e7c55cc753b956563c535177f92d0d9 | [
"Apache-2.0",
"CC-BY-4.0"
] | 1 | 2021-10-19T15:17:09.000Z | 2021-10-19T15:17:09.000Z | #
# ============LICENSE_START==========================================
# org.onap.vvp/engagementmgr
# ===================================================================
# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
# ===================================================================
#
# Unless ... | 42.791667 | 76 | 0.687764 | 352 | 3,081 | 5.940341 | 0.389205 | 0.057389 | 0.024868 | 0.030607 | 0.373027 | 0.373027 | 0.319464 | 0.294596 | 0.294596 | 0.294596 | 0 | 0.004713 | 0.173645 | 3,081 | 71 | 77 | 43.394366 | 0.816182 | 0.538786 | 0 | 0.074074 | 0 | 0 | 0.023878 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.37037 | 0 | 0.481481 | 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 |
ceb5ad3fd29c442a674f6259946963a01ac44265 | 1,033 | py | Python | utils/test/test_rf.py | lejeunel/glia | 24b763a230627951139010cd07b0d0ff2356a365 | [
"MIT"
] | null | null | null | utils/test/test_rf.py | lejeunel/glia | 24b763a230627951139010cd07b0d0ff2356a365 | [
"MIT"
] | null | null | null | utils/test/test_rf.py | lejeunel/glia | 24b763a230627951139010cd07b0d0ff2356a365 | [
"MIT"
] | null | null | null | from os.path import join as pjoin
from skimage import io, segmentation
import matplotlib.pyplot as plt
from glia import libglia
import numpy as np
import os
import sys
if __name__ == "__main__":
n, D = 2000, 4
X = np.random.randn(n, D)
Xarea0 = np.abs(np.random.uniform(0.01, 0.05, size=n))
Xarea1 = np... | 25.195122 | 58 | 0.638916 | 157 | 1,033 | 4.095541 | 0.420382 | 0.049767 | 0.021773 | 0.040435 | 0.034215 | 0.034215 | 0 | 0 | 0 | 0 | 0 | 0.041413 | 0.205227 | 1,033 | 40 | 59 | 25.825 | 0.741778 | 0.208132 | 0 | 0 | 0 | 0 | 0.042131 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.318182 | 0 | 0.318182 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
cebc76d2df64d29d20b145fa75a990dbba14fec2 | 903 | py | Python | AzureFunctionProj/TestHttpTrigger/__init__.py | tys-hiroshi/BacklogApiProcessing | b04d9f8681987c3b179d4be0ceabd9aabd551367 | [
"MIT"
] | 2 | 2018-11-23T13:41:11.000Z | 2018-11-23T23:47:36.000Z | AzureFunctionProj/TestHttpTrigger/__init__.py | tys-hiroshi/BacklogApiProcessing | b04d9f8681987c3b179d4be0ceabd9aabd551367 | [
"MIT"
] | 6 | 2018-11-19T04:41:30.000Z | 2018-12-13T03:58:45.000Z | AzureFunctionProj/TestHttpTrigger/__init__.py | tys-hiroshi/BacklogApiProcessing | b04d9f8681987c3b179d4be0ceabd9aabd551367 | [
"MIT"
] | 3 | 2018-11-23T13:55:41.000Z | 2019-12-10T05:28:19.000Z | import logging
import azure.functions as func
from backlogapiprocessmodule import *
def main(req: func.HttpRequest) -> func.HttpResponse:
logging.info('-------Python HTTP trigger function processed a request.')
configFilePath = '/home/site/wwwroot/BacklogApiTimerTrigger/config.yml'
loggingConfigFi... | 32.25 | 91 | 0.638981 | 96 | 903 | 5.958333 | 0.604167 | 0.083916 | 0.052448 | 0.129371 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004545 | 0.269103 | 903 | 27 | 92 | 33.444444 | 0.862121 | 0 | 0 | 0.086957 | 0 | 0 | 0.285388 | 0.127854 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0.086957 | 0.130435 | 0 | 0.26087 | 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 |
cebead73c1e524033021ca093d5671e9fe8556a8 | 3,747 | py | Python | iutest/dependencies.py | mgland/iutest | 6bad2b9bdd696a43580741da4237fc21b2880c6c | [
"MIT"
] | 10 | 2020-09-11T12:38:37.000Z | 2021-09-24T04:21:33.000Z | iutest/dependencies.py | mgland/iutest | 6bad2b9bdd696a43580741da4237fc21b2880c6c | [
"MIT"
] | 4 | 2020-08-24T01:46:15.000Z | 2021-04-20T21:07:41.000Z | iutest/dependencies.py | mgland/iutest | 6bad2b9bdd696a43580741da4237fc21b2880c6c | [
"MIT"
] | 1 | 2021-06-29T10:24:51.000Z | 2021-06-29T10:24:51.000Z | # Copyright 2019-2020 by Wenfeng Gao, MGLAND animation studio. All rights reserved.
# This file is part of IUTest, and is released under the "MIT License Agreement".
# Please see the LICENSE file that should have been included as part of this package.
import logging
logger = logging.getLogger(__name__)
class _Error... | 24.490196 | 88 | 0.611689 | 398 | 3,747 | 5.540201 | 0.278894 | 0.034921 | 0.025397 | 0.038095 | 0.353288 | 0.318821 | 0.269841 | 0.269841 | 0.164626 | 0.164626 | 0 | 0.004619 | 0.306645 | 3,747 | 152 | 89 | 24.651316 | 0.844111 | 0.142247 | 0 | 0.46 | 0 | 0 | 0.051037 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.23 | false | 0 | 0.16 | 0.1 | 0.65 | 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 |
cec1e0ae957385af4d8109caf32d3b19fe69e966 | 4,268 | py | Python | thing/models/characterdetails.py | skyride/evething-2 | e0778a539b7f8a56667b2508293ca7e9f515283f | [
"BSD-2-Clause"
] | 21 | 2017-05-24T00:06:07.000Z | 2019-08-06T04:31:18.000Z | thing/models/characterdetails.py | skyride/evething-2 | e0778a539b7f8a56667b2508293ca7e9f515283f | [
"BSD-2-Clause"
] | 11 | 2017-05-23T23:58:57.000Z | 2018-05-27T03:21:30.000Z | thing/models/characterdetails.py | skyride/evething-2 | e0778a539b7f8a56667b2508293ca7e9f515283f | [
"BSD-2-Clause"
] | 10 | 2017-06-08T18:23:51.000Z | 2021-09-05T06:03:59.000Z | # ------------------------------------------------------------------------------
# Copyright (c) 2010-2013, EVEthing team
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification,
# are permitted provided that the following conditions are met:
#
# Redistributions of... | 36.169492 | 88 | 0.683927 | 510 | 4,268 | 5.539216 | 0.392157 | 0.035044 | 0.025487 | 0.069027 | 0.28354 | 0.208496 | 0.163894 | 0.079292 | 0.079292 | 0.048142 | 0 | 0.009982 | 0.201968 | 4,268 | 117 | 89 | 36.478632 | 0.819436 | 0.35075 | 0 | 0.075758 | 0 | 0 | 0.064575 | 0.007661 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136364 | false | 0 | 0.075758 | 0.090909 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
cec71ba65a834a5938adc7385442de1099afd7ec | 873 | py | Python | valid-parantheses.py | ahmetavc/leetcoding | 5f85a579400ce73a4cd626a7bcbf7efb2039bb23 | [
"MIT"
] | null | null | null | valid-parantheses.py | ahmetavc/leetcoding | 5f85a579400ce73a4cd626a7bcbf7efb2039bb23 | [
"MIT"
] | null | null | null | valid-parantheses.py | ahmetavc/leetcoding | 5f85a579400ce73a4cd626a7bcbf7efb2039bb23 | [
"MIT"
] | null | null | null | # https://leetcode.com/problems/valid-parentheses/
class Solution:
def isValid(self, s: str) -> bool:
stack = []
for c in s:
if c == ')':
if len(stack) > 0 and stack[-1] == '(':
stack.pop()
else:
return Fal... | 24.942857 | 55 | 0.317297 | 73 | 873 | 3.794521 | 0.410959 | 0.043321 | 0.086643 | 0.158845 | 0.548736 | 0.505415 | 0.505415 | 0.505415 | 0.505415 | 0.505415 | 0 | 0.018767 | 0.572738 | 873 | 34 | 56 | 25.676471 | 0.723861 | 0.054983 | 0 | 0.458333 | 0 | 0 | 0.00729 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0 | 0 | 0.291667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cec7f54514a2f2f3bbf8112f3788b3e74942dd63 | 1,634 | py | Python | misopy/parse_gene.py | michalkouril/altanalyze | e721c79c56f7b0022516ff5456ebaa14104c933b | [
"Apache-2.0"
] | 73 | 2015-08-17T03:21:32.000Z | 2022-01-02T17:37:56.000Z | misopy/parse_gene.py | michalkouril/altanalyze | e721c79c56f7b0022516ff5456ebaa14104c933b | [
"Apache-2.0"
] | 43 | 2017-07-30T03:30:04.000Z | 2022-03-26T04:46:05.000Z | misopy/parse_gene.py | michalkouril/altanalyze | e721c79c56f7b0022516ff5456ebaa14104c933b | [
"Apache-2.0"
] | 30 | 2015-08-26T07:21:43.000Z | 2021-12-09T02:53:25.000Z | import os
import misopy
import misopy.gff_utils as gff_utils
def parseGene(pickle_filename, event):
"""
Parse a pickled gene.
"""
if not os.path.isfile(pickle_filename):
raise Exception, "Error: no filename %s" %(pickle_filename)
gff_genes = gff_utils.load_indexed_gff_file(pickle_filename)... | 32.68 | 83 | 0.574051 | 197 | 1,634 | 4.461929 | 0.319797 | 0.040956 | 0.096701 | 0.086462 | 0.120592 | 0.120592 | 0.120592 | 0.079636 | 0 | 0 | 0 | 0 | 0.323745 | 1,634 | 49 | 84 | 33.346939 | 0.795475 | 0 | 0 | 0 | 0 | 0 | 0.067043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.081081 | 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 |
cecee9aafbc56c1904ea68df71920fb5ada7abc7 | 2,190 | py | Python | app/mailgun.py | taeram/stratagem | e437c87ce013934dcfb9ccbeed3fef9108f06203 | [
"MIT"
] | null | null | null | app/mailgun.py | taeram/stratagem | e437c87ce013934dcfb9ccbeed3fef9108f06203 | [
"MIT"
] | null | null | null | app/mailgun.py | taeram/stratagem | e437c87ce013934dcfb9ccbeed3fef9108f06203 | [
"MIT"
] | null | null | null | from app import app
from flask import url_for
from flask.ext.script import Manager, prompt
from database import db, \
Domain
import requests
manager = Manager(usage="Manage Mailgun setup")
@manager.command
def setup():
"""Setup a new domain in Mailgun"""
stratagem_domain_name = prompt("Wh... | 32.205882 | 124 | 0.609589 | 273 | 2,190 | 4.765568 | 0.373626 | 0.099923 | 0.049193 | 0.058417 | 0.313605 | 0.279785 | 0.279785 | 0.238278 | 0.238278 | 0.238278 | 0 | 0.007403 | 0.259817 | 2,190 | 67 | 125 | 32.686567 | 0.795188 | 0.071233 | 0 | 0.313725 | 0 | 0 | 0.268806 | 0.040622 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.098039 | null | null | 0.019608 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ced4f13a0da99c41aa9764855bfcd55a81a8fd74 | 308 | py | Python | eka/core/data.py | viswanc/eka | edb0aa373f74ec297d0e35e9cd6d564264322698 | [
"MIT"
] | 1 | 2019-11-03T16:03:59.000Z | 2019-11-03T16:03:59.000Z | eka/core/data.py | viswanc/eka | edb0aa373f74ec297d0e35e9cd6d564264322698 | [
"MIT"
] | null | null | null | eka/core/data.py | viswanc/eka | edb0aa373f74ec297d0e35e9cd6d564264322698 | [
"MIT"
] | null | null | null | r"""
Eka - Data.
"""
import pkg_resources
# Exports
pluginsEntryPoint = 'eka.plugins.classes'
Plugins = {EntryPoint.name: EntryPoint for EntryPoint in pkg_resources.iter_entry_points(pluginsEntryPoint)} # #Note: A dictionary is maintained, as there wasn't a way to load a plugin without knowing its distro.
| 34.222222 | 212 | 0.779221 | 43 | 308 | 5.488372 | 0.790698 | 0.101695 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12987 | 308 | 8 | 213 | 38.5 | 0.880597 | 0.392857 | 0 | 0 | 0 | 0 | 0.107345 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.