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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c0af1d8dfb445d9fd685a4816ad94e4fe327c9c5 | 1,851 | py | Python | perkeepy/jsonsign/camlisig.py | aviau/perkeepy | 5eb5a555eb594d3f400c785540e737bb4cc68530 | [
"Apache-2.0"
] | 5 | 2021-01-11T21:29:06.000Z | 2021-10-12T20:03:35.000Z | perkeepy/jsonsign/camlisig.py | aviau/perkeepy | 5eb5a555eb594d3f400c785540e737bb4cc68530 | [
"Apache-2.0"
] | null | null | null | perkeepy/jsonsign/camlisig.py | aviau/perkeepy | 5eb5a555eb594d3f400c785540e737bb4cc68530 | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 The Perkeepy Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 34.277778 | 74 | 0.672069 | 242 | 1,851 | 4.946281 | 0.42562 | 0.108605 | 0.206349 | 0.026734 | 0.155388 | 0.11863 | 0.055138 | 0 | 0 | 0 | 0 | 0.008433 | 0.231226 | 1,851 | 53 | 75 | 34.924528 | 0.832748 | 0.363047 | 0 | 0.083333 | 0 | 0 | 0.068966 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0 | 0 | 0.208333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c0b24d80ff788b1d77b755258166f8ffe40b0d66 | 4,756 | py | Python | cogs/InviteRole.py | yutarou12/ChIn-RoleBot | 737c93c44935d3317a23d578f928e20b30231d6b | [
"MIT"
] | null | null | null | cogs/InviteRole.py | yutarou12/ChIn-RoleBot | 737c93c44935d3317a23d578f928e20b30231d6b | [
"MIT"
] | null | null | null | cogs/InviteRole.py | yutarou12/ChIn-RoleBot | 737c93c44935d3317a23d578f928e20b30231d6b | [
"MIT"
] | null | null | null | from typing import Optional
import discord
from discord.ext import commands
class InviteRole(commands.Cog):
def __init__(self, bot):
self.bot = bot
self.db = self.bot.db
@commands.command()
@commands.has_permissions(administrator=True)
async def list(self, ctx):
"""サーバーに設定されて... | 41.719298 | 91 | 0.589361 | 520 | 4,756 | 5.280769 | 0.2 | 0.040787 | 0.061544 | 0.175164 | 0.55244 | 0.440277 | 0.37764 | 0.264749 | 0.226875 | 0.184632 | 0 | 0.00119 | 0.293103 | 4,756 | 113 | 92 | 42.088496 | 0.815586 | 0 | 0 | 0.363636 | 0 | 0 | 0.1178 | 0.031732 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022727 | false | 0 | 0.034091 | 0 | 0.147727 | 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 |
c0b2cf5af82b302b520c0c1a04bed32485039f75 | 566 | py | Python | setup.py | labrusca/CommonDrcom | 8ce71ab5e83f8f71f5281853c7899fd75b80019b | [
"Apache-2.0"
] | 5 | 2017-10-08T08:22:09.000Z | 2021-04-06T02:28:23.000Z | setup.py | labrusca/CommonDrcom | 8ce71ab5e83f8f71f5281853c7899fd75b80019b | [
"Apache-2.0"
] | null | null | null | setup.py | labrusca/CommonDrcom | 8ce71ab5e83f8f71f5281853c7899fd75b80019b | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from distutils.core import setup
import py2exe
includes = ["encodings", "encodings.*"]
options = {"py2exe":
{"compressed": 1,
"optimize": 2,
"ascii": 1,
"includes": includes,
"bundle_files": 3
}
}
setup(
version = "6.0.0-alpha",
description = "... | 22.64 | 100 | 0.568905 | 64 | 566 | 4.984375 | 0.78125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024943 | 0.220848 | 566 | 24 | 101 | 23.583333 | 0.696145 | 0.109541 | 0 | 0 | 0 | 0 | 0.352 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.105263 | 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 |
c0b59ca8a862d245dcfb93fc6d73408e96422d97 | 879 | py | Python | applications/resume/migrations/0005_languageskill.py | AminHCE/__aminhce__ | ffe53a7f08da207d2df9fdc9216d94e5c956f379 | [
"BSD-3-Clause"
] | 3 | 2021-02-17T05:43:08.000Z | 2021-02-19T13:25:41.000Z | applications/resume/migrations/0005_languageskill.py | AminHCE/__aminhce__ | ffe53a7f08da207d2df9fdc9216d94e5c956f379 | [
"BSD-3-Clause"
] | null | null | null | applications/resume/migrations/0005_languageskill.py | AminHCE/__aminhce__ | ffe53a7f08da207d2df9fdc9216d94e5c956f379 | [
"BSD-3-Clause"
] | null | null | null | # Generated by Django 3.1.6 on 2021-02-12 20:59
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('resume', '0004_link'),
]
operations = [
migrations.CreateModel(
name='LanguageSkill',
fields=[
('id'... | 30.310345 | 114 | 0.522184 | 75 | 879 | 6.053333 | 0.72 | 0.198238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038851 | 0.326507 | 879 | 28 | 115 | 31.392857 | 0.728041 | 0.051195 | 0 | 0 | 1 | 0 | 0.114183 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c0b8f66021704f49450ad2354eb8c28a71fac6d8 | 856 | py | Python | tests/test_linkedqueue.py | qige96/reskeeper | e701f638145ac187ad3641aa3d6563b4a4406e25 | [
"MIT"
] | 2 | 2019-04-04T12:10:07.000Z | 2019-04-04T15:01:13.000Z | tests/test_linkedqueue.py | qige96/reskeeper | e701f638145ac187ad3641aa3d6563b4a4406e25 | [
"MIT"
] | null | null | null | tests/test_linkedqueue.py | qige96/reskeeper | e701f638145ac187ad3641aa3d6563b4a4406e25 | [
"MIT"
] | null | null | null | import unittest
from reskeeper import availsets
class QueueAddTestCase(unittest.TestCase):
def setUp(self):
self.lq = availsets.LinkedQueue()
def test_add_head(self):
self.lq.add(1)
self.lq.add(2)
self.lq.add(3)
self.assertEqual(self.lq.head.item, 3)
self.asse... | 23.777778 | 51 | 0.621495 | 116 | 856 | 4.517241 | 0.267241 | 0.171756 | 0.103053 | 0.240458 | 0.641221 | 0.5 | 0.442748 | 0.442748 | 0.442748 | 0.442748 | 0 | 0.018663 | 0.248832 | 856 | 35 | 52 | 24.457143 | 0.796268 | 0 | 0 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.28 | 1 | 0.2 | false | 0 | 0.08 | 0 | 0.36 | 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 |
c0ba99fbafd1c706e79706d0d810028296be9552 | 3,973 | py | Python | PyBank/main.py | mforoohi/Python-Challenge | cd8d89509dfe16102b55d08fab8499bd7358fab4 | [
"CNRI-Python",
"RSA-MD"
] | null | null | null | PyBank/main.py | mforoohi/Python-Challenge | cd8d89509dfe16102b55d08fab8499bd7358fab4 | [
"CNRI-Python",
"RSA-MD"
] | null | null | null | PyBank/main.py | mforoohi/Python-Challenge | cd8d89509dfe16102b55d08fab8499bd7358fab4 | [
"CNRI-Python",
"RSA-MD"
] | null | null | null | {
"cells": [
{
"cell_type": "code",
"execution_count": 108,
"id": "25569a41",
"metadata": {},
"outputs": [],
"source": [
"import os\n",
"import csv \n",
"from statistics import mean"
]
},
{
"cell_type": "code",
"execution_count": 109,
"id": "2cbb873b",
"metadata": {},... | 26.486667 | 123 | 0.505663 | 443 | 3,973 | 4.399549 | 0.282167 | 0.014366 | 0.060031 | 0.035916 | 0.326321 | 0.246793 | 0.22627 | 0.216521 | 0.173422 | 0.124166 | 0 | 0.033434 | 0.247168 | 3,973 | 149 | 124 | 26.66443 | 0.618188 | 0 | 0 | 0.261745 | 0 | 0 | 0.500629 | 0.097408 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.020134 | 0 | 0.020134 | 0.04698 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c0bd1c99326017b0ca8488fce1c466db1fddb47c | 1,954 | py | Python | app.py | isabella232/snap-prescreener-prototype | 293f295a9357b705a05bac0ccca55248f2fc063c | [
"CC0-1.0"
] | 1 | 2021-04-16T23:57:04.000Z | 2021-04-16T23:57:04.000Z | app.py | 18F/snap-prescreener-prototype | 293f295a9357b705a05bac0ccca55248f2fc063c | [
"CC0-1.0"
] | 2 | 2020-04-01T16:16:05.000Z | 2020-04-29T17:50:05.000Z | app.py | isabella232/snap-prescreener-prototype | 293f295a9357b705a05bac0ccca55248f2fc063c | [
"CC0-1.0"
] | 1 | 2021-01-12T10:16:30.000Z | 2021-01-12T10:16:30.000Z | import os
import requests
from flask import Flask, render_template, request
from flask_httpauth import HTTPBasicAuth
from os import path
from snap_financial_factors.benefit_estimate.snap_estimate_entrypoint import SnapEstimateEntrypoint
def create_app():
app = Flask(__name__)
auth = HTTPBasicAuth()
if pa... | 29.606061 | 99 | 0.640737 | 229 | 1,954 | 5.222707 | 0.379913 | 0.045151 | 0.043478 | 0.033445 | 0.043478 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.273286 | 1,954 | 65 | 100 | 30.061538 | 0.842254 | 0.095189 | 0 | 0.086957 | 0 | 0 | 0.096994 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0.130435 | 0.152174 | 0.021739 | 0.391304 | 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 |
c0d24c64b90850a1d029178a87618fa7ee733c5a | 461 | py | Python | week-4-python_numPy_and_Pandas_I/practice-questions-1/2.py | sourabhedake/upgrad-python-bootcamp | 2bbec872de8dc650c664adc46c39e72e254e6620 | [
"MIT"
] | 1 | 2022-02-03T17:54:36.000Z | 2022-02-03T17:54:36.000Z | week-4-python_numPy_and_Pandas_I/practice-questions-1/2.py | sourabhedake/upgrad-python-bootcamp | 2bbec872de8dc650c664adc46c39e72e254e6620 | [
"MIT"
] | null | null | null | week-4-python_numPy_and_Pandas_I/practice-questions-1/2.py | sourabhedake/upgrad-python-bootcamp | 2bbec872de8dc650c664adc46c39e72e254e6620 | [
"MIT"
] | null | null | null | # Percentile
# Description
# Calculate the 60th percentile of the given NumPy array.
# Input: 1D array
# Output: Value of 60th percentile rounded off to two decimal places
# Sample Input 1: [11, 22, 33, 44 ,55 ,66, 77]
# Sample Output 1: 50.6
# Sample Input 2: [-1, 2, 0, 1, 3, 5, 3, 2, 1]
# Sample Output 2: 2.0
import ... | 28.8125 | 68 | 0.691974 | 85 | 461 | 3.741176 | 0.588235 | 0.08805 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106383 | 0.184382 | 461 | 16 | 69 | 28.8125 | 0.739362 | 0.698482 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
c0dcaf834c09853463cf6547dff2748e44895034 | 1,257 | py | Python | member_profile/migrations/0003_additionaleducation.py | OnGridSystems/RobotVeraWebApp | 01cee658a3983fcaf128b40bb99c1a4272e90c07 | [
"MIT"
] | 11 | 2018-06-13T10:10:11.000Z | 2021-06-05T08:23:43.000Z | member_profile/migrations/0003_additionaleducation.py | OnGridSystems/RobotVeraWebApp | 01cee658a3983fcaf128b40bb99c1a4272e90c07 | [
"MIT"
] | 5 | 2021-03-19T23:41:21.000Z | 2022-03-12T00:37:18.000Z | member_profile/migrations/0003_additionaleducation.py | OnGridSystems/RobotVeraWebApp | 01cee658a3983fcaf128b40bb99c1a4272e90c07 | [
"MIT"
] | 5 | 2018-08-17T16:09:33.000Z | 2021-06-06T05:32:10.000Z | # Generated by Django 2.0.3 on 2018-08-06 06:23
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('member_profile', '0002_auto_20180730_1320'),
]
operations = [
migrations.CreateModel(
name='Addi... | 40.548387 | 116 | 0.571201 | 118 | 1,257 | 5.949153 | 0.576271 | 0.034188 | 0.039886 | 0.062678 | 0.125356 | 0.125356 | 0.125356 | 0.125356 | 0.125356 | 0 | 0 | 0.043673 | 0.289578 | 1,257 | 30 | 117 | 41.9 | 0.742441 | 0.0358 | 0 | 0 | 1 | 0 | 0.176033 | 0.03719 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.08 | 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 |
c0e7b026ebf7b012fbbea3d6164f573c955247a0 | 380 | py | Python | dora/services/migrations/0007_rename_location_kind_service_location_kinds.py | francoisromain/dora-back | 868491097d12b9a23135db3d91bc6495431e8237 | [
"MIT"
] | 1 | 2022-01-03T22:12:45.000Z | 2022-01-03T22:12:45.000Z | dora/services/migrations/0007_rename_location_kind_service_location_kinds.py | francoisromain/dora-back | 868491097d12b9a23135db3d91bc6495431e8237 | [
"MIT"
] | 2 | 2022-03-17T18:04:11.000Z | 2022-03-18T14:55:27.000Z | dora/services/migrations/0007_rename_location_kind_service_location_kinds.py | francoisromain/dora-back | 868491097d12b9a23135db3d91bc6495431e8237 | [
"MIT"
] | 1 | 2022-01-03T09:02:54.000Z | 2022-01-03T09:02:54.000Z | # Generated by Django 3.2.5 on 2021-08-20 10:02
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("services", "0006_auto_20210819_1608"),
]
operations = [
migrations.RenameField(
model_name="service",
old_name="location_kin... | 20 | 48 | 0.602632 | 41 | 380 | 5.390244 | 0.829268 | 0.108597 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114815 | 0.289474 | 380 | 18 | 49 | 21.111111 | 0.703704 | 0.118421 | 0 | 0 | 1 | 0 | 0.195195 | 0.069069 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c0f95db49a7e3c4b883497492013e47098dc8eb6 | 261 | py | Python | my_study/mm/d.py | zhangyage/Python-oldboy | a95c1b465929e2be641e425fcb5e15b366800831 | [
"Apache-2.0"
] | 1 | 2020-06-04T08:44:09.000Z | 2020-06-04T08:44:09.000Z | my_study/mm/d.py | zhangyage/Python-oldboy | a95c1b465929e2be641e425fcb5e15b366800831 | [
"Apache-2.0"
] | null | null | null | my_study/mm/d.py | zhangyage/Python-oldboy | a95c1b465929e2be641e425fcb5e15b366800831 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding:utf-8 -*-
info={'name':'ccorz',
'job':'IT',
'company':'ali',
'age':'18',
'map':{'china':'beijing','american':'huafu'}
}
print(info)
print(info.items())
for key,val in info.items():
print key,val | 16.3125 | 50 | 0.536398 | 35 | 261 | 4 | 0.771429 | 0.128571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014286 | 0.195402 | 261 | 16 | 51 | 16.3125 | 0.652381 | 0.157088 | 0 | 0 | 0 | 0 | 0.260274 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.3 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
8d0a23de70c33384201ca756c2f71ef7c6d9f075 | 2,330 | py | Python | mamana/templates/gwascatb83tob37.py | grbot/agd | 920accc524a5cbf4a452f5ee8431e765fb1da433 | [
"MIT"
] | null | null | null | mamana/templates/gwascatb83tob37.py | grbot/agd | 920accc524a5cbf4a452f5ee8431e765fb1da433 | [
"MIT"
] | null | null | null | mamana/templates/gwascatb83tob37.py | grbot/agd | 920accc524a5cbf4a452f5ee8431e765fb1da433 | [
"MIT"
] | 2 | 2017-06-01T09:41:36.000Z | 2017-12-05T13:35:12.000Z | #!/home/mamana/miniconda3/envs/ngs_py27/bin/python
'''
'''
import argparse,sys
parser = argparse.ArgumentParser()
parser.add_argument("--toBed", help="BED file to extract columns")
parser.add_argument("--outBed", help="BED output of extracted columns")
parser.add_argument("--mappedBed", help="BED mapped")
parser.add_... | 29.871795 | 76 | 0.526609 | 300 | 2,330 | 4.066667 | 0.25 | 0.039344 | 0.069672 | 0.036066 | 0.197541 | 0.183607 | 0.118033 | 0.118033 | 0.118033 | 0.118033 | 0 | 0.03487 | 0.27382 | 2,330 | 78 | 77 | 29.871795 | 0.68617 | 0.02103 | 0 | 0.233333 | 0 | 0 | 0.082441 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.016667 | null | null | 0.016667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
8d0b588ab0d3a8a3bc99642b2071ebce084a5e0b | 15,118 | py | Python | apps/repackage/views.py | mozilla/FlightDeck | 61d66783252ac1318c990e342877a26c64f59062 | [
"BSD-3-Clause"
] | 6 | 2015-04-24T03:10:44.000Z | 2020-12-27T19:46:33.000Z | apps/repackage/views.py | mozilla/FlightDeck | 61d66783252ac1318c990e342877a26c64f59062 | [
"BSD-3-Clause"
] | null | null | null | apps/repackage/views.py | mozilla/FlightDeck | 61d66783252ac1318c990e342877a26c64f59062 | [
"BSD-3-Clause"
] | 5 | 2015-09-18T19:58:31.000Z | 2020-01-28T05:46:55.000Z | """
repackage.views
---------------
"""
import commonware
import simplejson
from django.conf import settings
from django.http import (HttpResponse, HttpResponseBadRequest,
HttpResponseForbidden)
from django.views.decorators.csrf import csrf_exempt
from django.views.decorators.http import require_POST
from djan... | 38.273418 | 87 | 0.591679 | 1,670 | 15,118 | 5.236527 | 0.152096 | 0.036592 | 0.036821 | 0.016467 | 0.533676 | 0.430646 | 0.350829 | 0.30829 | 0.291824 | 0.279817 | 0 | 0.002001 | 0.305662 | 15,118 | 394 | 88 | 38.370558 | 0.831095 | 0.034925 | 0 | 0.486301 | 0 | 0 | 0.166844 | 0.002049 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.041096 | 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 |
2389a7c048e6ad6c95647aaa3ea248e2a95b5566 | 5,727 | py | Python | qcodes_measurements/plot/local/ImageItem.py | QNLSydney/qcodes-measurements | 09dd8dfeaa1b413484ce058df08f99df2640271e | [
"MIT"
] | 2 | 2021-03-03T11:49:09.000Z | 2021-08-14T11:37:21.000Z | qcodes_measurements/plot/local/ImageItem.py | QNLSydney/qcodes-measurements | 09dd8dfeaa1b413484ce058df08f99df2640271e | [
"MIT"
] | null | null | null | qcodes_measurements/plot/local/ImageItem.py | QNLSydney/qcodes-measurements | 09dd8dfeaa1b413484ce058df08f99df2640271e | [
"MIT"
] | 1 | 2018-06-14T23:35:43.000Z | 2018-06-14T23:35:43.000Z | import numpy as np
from qcodes import Parameter, ArrayParameter
from .RemoteProcessWrapper import RPGWrappedBase, ensure_ndarray, get_remote
from .ExtendedDataItem import ExtendedDataItem
from .ColorMap import ColorMap
class HistogramLUTItem(RPGWrappedBase):
_base = "HistogramLUTItem"
def __init__(self, *arg... | 33.887574 | 97 | 0.643967 | 640 | 5,727 | 5.470313 | 0.2375 | 0.056555 | 0.053413 | 0.051414 | 0.326478 | 0.280491 | 0.249643 | 0.217081 | 0.195944 | 0.169666 | 0 | 0.001847 | 0.243583 | 5,727 | 169 | 98 | 33.887574 | 0.806325 | 0.083814 | 0 | 0.286957 | 0 | 0 | 0.06702 | 0.004324 | 0 | 0 | 0 | 0 | 0 | 1 | 0.226087 | false | 0.008696 | 0.043478 | 0.043478 | 0.417391 | 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 |
238edd3936af3702189e814da8eca8eb909b370e | 979 | py | Python | tools/importer.py | misaelnieto/mallonga | ad67093f90a700d8ab741282d17334b06a80e651 | [
"MIT"
] | null | null | null | tools/importer.py | misaelnieto/mallonga | ad67093f90a700d8ab741282d17334b06a80e651 | [
"MIT"
] | 4 | 2021-03-19T01:18:35.000Z | 2021-06-04T22:46:31.000Z | tools/importer.py | misaelnieto/mallonga | ad67093f90a700d8ab741282d17334b06a80e651 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import csv
import string
import random
import json
def random_hash():
"""
TODO: This is just a placeholder function. We will remove it later
"""
alphabet = string.ascii_letters + string.digits
return ''.join(random.choices(alphabet, k=8))
data = []
with open('links.csv') as ... | 25.102564 | 70 | 0.517875 | 115 | 979 | 4.382609 | 0.634783 | 0.039683 | 0.051587 | 0.051587 | 0.075397 | 0.075397 | 0 | 0 | 0 | 0 | 0 | 0.062121 | 0.325843 | 979 | 39 | 71 | 25.102564 | 0.701515 | 0.089888 | 0 | 0 | 0 | 0 | 0.202055 | 0.054795 | 0 | 0 | 0 | 0.025641 | 0 | 1 | 0.032258 | false | 0 | 0.16129 | 0 | 0.225806 | 0.096774 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
239f1a333daf2d0abbdb0d0e103688194d4d4875 | 1,638 | py | Python | dianhua/worker/crawler/china_telecom/henan/response_data.py | Svolcano/python_exercise | a50e05891cc7f1fbb40ebcae324b09b6a14473d2 | [
"MIT"
] | 6 | 2015-07-09T08:47:08.000Z | 2020-05-16T10:47:31.000Z | dianhua/worker/crawler/china_telecom/henan/response_data.py | Svolcano/python_exercise | a50e05891cc7f1fbb40ebcae324b09b6a14473d2 | [
"MIT"
] | 7 | 2019-03-27T04:13:12.000Z | 2022-03-02T14:54:56.000Z | dianhua/worker/crawler/china_telecom/henan/response_data.py | Svolcano/python_exercise | a50e05891cc7f1fbb40ebcae324b09b6a14473d2 | [
"MIT"
] | 2 | 2019-06-21T06:46:28.000Z | 2019-12-23T09:31:09.000Z | # -*- coding: utf-8 -*-
import re
import sys
import traceback
from lxml import etree
reload(sys)
sys.setdefaultencoding("utf8")
# 账单
def phone_bill_data(self, html, searchMonth):
try:
html_data = html.text
all_fee = re.findall(ur'费用总计.*?(\d+\.?\d*)', html_data, re.S)
if not all_fee:
... | 37.227273 | 81 | 0.559829 | 213 | 1,638 | 4.046948 | 0.328639 | 0.089327 | 0.063805 | 0.058005 | 0.186775 | 0.186775 | 0.085847 | 0.046404 | 0 | 0 | 0 | 0.00919 | 0.269231 | 1,638 | 44 | 81 | 37.227273 | 0.710944 | 0.014652 | 0 | 0 | 0 | 0 | 0.218983 | 0.043424 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.102564 | 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 |
23b026d6bc3548bd696ff9f0cde9e3fc86b89ecd | 559 | py | Python | profiles_api/models.py | VinodChoudhari/profiles-rest-api | aa81adcadca3d03d64b7c23ba9f0b7fadd846719 | [
"MIT"
] | null | null | null | profiles_api/models.py | VinodChoudhari/profiles-rest-api | aa81adcadca3d03d64b7c23ba9f0b7fadd846719 | [
"MIT"
] | 5 | 2020-06-17T09:18:57.000Z | 2022-02-10T11:39:07.000Z | profiles_api/models.py | VinodChoudhari/profiles-rest-api | aa81adcadca3d03d64b7c23ba9f0b7fadd846719 | [
"MIT"
] | null | null | null | from django.db import models
from django.contrib.auth.models import AbstractBaseUser
from django.contrib.auth.models import PermissionsMixin
# Create your models here.
class UserProfile(AbstractBaseUser, Permission):
"""Database model fo users in the system"""
email = models.EmailField(max_length=255, unique=T... | 32.882353 | 58 | 0.760286 | 67 | 559 | 6.253731 | 0.656716 | 0.071599 | 0.081146 | 0.100239 | 0.157518 | 0.157518 | 0 | 0 | 0 | 0 | 0 | 0.012632 | 0.150268 | 559 | 16 | 59 | 34.9375 | 0.869474 | 0.112701 | 0 | 0 | 0 | 0 | 0.010204 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.272727 | 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 |
23b562eb6358fba17dd5151203ff4ca67c2ea1d7 | 40,657 | py | Python | lib/python2.7/site-packages/samba/netcmd/gpo.py | abankalarm/pth-toolkit | bbd6bb0c7ba9c43c557c87e22fb2a72b20560f9f | [
"BSD-2-Clause"
] | 480 | 2015-02-03T11:59:43.000Z | 2022-03-21T13:23:29.000Z | lib/python2.7/site-packages/samba/netcmd/gpo.py | brianwrf/pth-toolkit | 3641cdc76c0f52275315c9b18bf08b22521bd4d7 | [
"BSD-2-Clause"
] | 6 | 2015-02-03T14:06:12.000Z | 2021-05-11T12:07:02.000Z | lib/python2.7/site-packages/samba/netcmd/gpo.py | brianwrf/pth-toolkit | 3641cdc76c0f52275315c9b18bf08b22521bd4d7 | [
"BSD-2-Clause"
] | 137 | 2015-02-05T13:31:57.000Z | 2022-02-23T09:44:18.000Z | # implement samba_tool gpo commands
#
# Copyright Andrew Tridgell 2010
# Copyright Amitay Isaacs 2011-2012 <amitay@gmail.com>
#
# based on C implementation by Guenther Deschner and Wilco Baan Hofman
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public L... | 34.513582 | 151 | 0.57808 | 4,827 | 40,657 | 4.735446 | 0.09364 | 0.020474 | 0.021043 | 0.011156 | 0.641745 | 0.588853 | 0.543267 | 0.522924 | 0.503544 | 0.478738 | 0 | 0.003997 | 0.304695 | 40,657 | 1,177 | 152 | 34.542906 | 0.804592 | 0.044765 | 0 | 0.532452 | 0 | 0 | 0.139123 | 0.009899 | 0 | 0 | 0 | 0.00085 | 0 | 0 | null | null | 0 | 0.022837 | 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 |
23cf4f74e2563cea86120e0a15cd5e542231c1a6 | 493 | py | Python | Social network/posts/migrations/0002_auto_20210113_0204.py | alirezaryahi/Django-Social-Network | c14119762c1075c8efe80f373c763ae3b3a1d726 | [
"MIT"
] | null | null | null | Social network/posts/migrations/0002_auto_20210113_0204.py | alirezaryahi/Django-Social-Network | c14119762c1075c8efe80f373c763ae3b3a1d726 | [
"MIT"
] | null | null | null | Social network/posts/migrations/0002_auto_20210113_0204.py | alirezaryahi/Django-Social-Network | c14119762c1075c8efe80f373c763ae3b3a1d726 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.5 on 2021-01-12 22:34
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('posts', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='post',
na... | 24.65 | 143 | 0.628803 | 53 | 493 | 5.792453 | 0.754717 | 0.065147 | 0.130293 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050398 | 0.235294 | 493 | 19 | 144 | 25.947368 | 0.763926 | 0.091278 | 0 | 0 | 1 | 0 | 0.08296 | 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 |
23d11d4bd9dcd5a07d2be21ec20bf7d717c15470 | 3,776 | py | Python | ample/util/tests/test_mtz_util.py | fsimkovic/ample | c3c2196ca292e831e3cd8d15e3d3079bb6609848 | [
"BSD-3-Clause"
] | 6 | 2017-03-17T14:43:14.000Z | 2021-08-06T07:07:14.000Z | ample/util/tests/test_mtz_util.py | fsimkovic/ample | c3c2196ca292e831e3cd8d15e3d3079bb6609848 | [
"BSD-3-Clause"
] | 47 | 2017-03-17T14:37:09.000Z | 2021-01-28T10:22:15.000Z | ample/util/tests/test_mtz_util.py | fsimkovic/ample | c3c2196ca292e831e3cd8d15e3d3079bb6609848 | [
"BSD-3-Clause"
] | 6 | 2017-09-26T08:45:09.000Z | 2020-03-19T14:26:49.000Z | """Test functions for util.mtz_util"""
import os
import sys
import unittest
from ample import constants
from ample.util import mtz_util
class Test(unittest.TestCase):
@classmethod
def setUpClass(cls):
cls.thisd = os.path.abspath(os.path.dirname(__file__))
cls.ample_share = constants.SHARE_DIR... | 38.530612 | 104 | 0.644597 | 509 | 3,776 | 4.640472 | 0.194499 | 0.095258 | 0.029636 | 0.035563 | 0.698137 | 0.666808 | 0.623201 | 0.623201 | 0.623201 | 0.623201 | 0 | 0.011394 | 0.209746 | 3,776 | 97 | 105 | 38.927835 | 0.780161 | 0.123941 | 0 | 0.384615 | 0 | 0 | 0.189797 | 0.027938 | 0 | 0 | 0 | 0 | 0.261538 | 1 | 0.107692 | false | 0 | 0.076923 | 0 | 0.215385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
23d9076fa229f32e4ab79ffe70092e9c12e00e5b | 7,689 | py | Python | src/step04_yelp_parse.py | nuowang/doctorsnapshot | 2f9b680986314ded1d9c468884d84cdf91bdb69f | [
"MIT"
] | 6 | 2018-03-04T07:33:10.000Z | 2021-12-03T11:28:47.000Z | src/step04_yelp_parse.py | nuowang/DoctorSnapshot | 2f9b680986314ded1d9c468884d84cdf91bdb69f | [
"MIT"
] | null | null | null | src/step04_yelp_parse.py | nuowang/DoctorSnapshot | 2f9b680986314ded1d9c468884d84cdf91bdb69f | [
"MIT"
] | 5 | 2018-04-21T00:34:58.000Z | 2020-04-13T05:15:07.000Z | #!/usr/bin/env python3
# Created by Nuo Wang.
# Last modified on 8/16/2017.
# Required libraries.
import urllib
from bs4 import BeautifulSoup
import pandas as pd
import numpy as np
# The review counts here is the list generated from step 3. I just manually copied it over.
review_counts_SF = ['2', '64', '10', '9', '26... | 61.512 | 1,032 | 0.58135 | 1,078 | 7,689 | 3.972171 | 0.235622 | 0.03106 | 0.041102 | 0.026156 | 0.36922 | 0.347968 | 0.289584 | 0.268099 | 0.252686 | 0.252686 | 0 | 0.064467 | 0.235401 | 7,689 | 124 | 1,033 | 62.008065 | 0.663888 | 0.149954 | 0 | 0.084337 | 0 | 0.012048 | 0.196527 | 0.032268 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.048193 | 0 | 0.048193 | 0.024096 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
23d9f94602238aa6f7ab79ec13fb355e5d1c0a08 | 1,569 | py | Python | scripts/misc/get_ops.py | qedsoftware/geotrellis | 5d79887e6fdb3a0aacdfa729a52eb46453789a08 | [
"Apache-2.0"
] | 2 | 2016-09-25T07:00:34.000Z | 2020-01-22T11:51:09.000Z | scripts/misc/get_ops.py | qedsoftware/geotrellis | 5d79887e6fdb3a0aacdfa729a52eb46453789a08 | [
"Apache-2.0"
] | null | null | null | scripts/misc/get_ops.py | qedsoftware/geotrellis | 5d79887e6fdb3a0aacdfa729a52eb46453789a08 | [
"Apache-2.0"
] | null | null | null | from operation import *
def error(msg):
print "ERROR: %s" % msg
exit(1)
def run():
oc = OperationsConstructor('/home/rob/proj/gt/geotrellis/src/main/scala/geotrellis',
'/home/rob/proj/gt/geotrellis/target/scala-2.10/api')
(i,op_classes) = oc.get_operations()
if not o... | 34.108696 | 139 | 0.471638 | 179 | 1,569 | 4.044693 | 0.463687 | 0.062155 | 0.033149 | 0.035912 | 0.118785 | 0.055249 | 0.055249 | 0 | 0 | 0 | 0 | 0.0059 | 0.351816 | 1,569 | 45 | 140 | 34.866667 | 0.705998 | 0.031867 | 0 | 0.057143 | 0 | 0.028571 | 0.402512 | 0.146728 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.028571 | null | null | 0.057143 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
23e0f0dbe04303dd7f1486e26bea786a562f0ab4 | 598 | py | Python | algorithmic-toolbox/w5/knapsack/knapsack.py | macsz/coursera-data-structures-and-algorithms | 20e05438929ea964a8f39b1769a1f4649f9efc62 | [
"Apache-2.0"
] | null | null | null | algorithmic-toolbox/w5/knapsack/knapsack.py | macsz/coursera-data-structures-and-algorithms | 20e05438929ea964a8f39b1769a1f4649f9efc62 | [
"Apache-2.0"
] | null | null | null | algorithmic-toolbox/w5/knapsack/knapsack.py | macsz/coursera-data-structures-and-algorithms | 20e05438929ea964a8f39b1769a1f4649f9efc62 | [
"Apache-2.0"
] | null | null | null | # Uses python3
import sys
def optimal_weight(W, wt):
# write your code here
n = len(wt)
# K = [n+1][W+1]
K = [[0 for i in range(W+1)] for j in range(n+1)]
for i in range(0, n+1):
for w in range(0, W+1):
if i==0 or w==0:
K[i][w] = 0
elif wt[i-1] <= w:
... | 26 | 70 | 0.444816 | 114 | 598 | 2.245614 | 0.342105 | 0.046875 | 0.046875 | 0.046875 | 0.0625 | 0.0625 | 0.0625 | 0 | 0 | 0 | 0 | 0.048969 | 0.351171 | 598 | 22 | 71 | 27.181818 | 0.610825 | 0.080268 | 0 | 0 | 0 | 0 | 0.014652 | 0 | 0 | 0 | 0 | 0.045455 | 0 | 1 | 0.058824 | false | 0 | 0.058824 | 0 | 0.176471 | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
23e3a9ce10eef6283f49f3040c09e5ace282f39d | 1,779 | py | Python | 题源分类/LeetCode/LeetCode日刷/python/108.将有序数组转换为二叉搜索树.py | ZhengyangXu/Algorithm-Daily-Practice | 3017a3d476fc9a857026190ea4fae2911058df59 | [
"MIT"
] | null | null | null | 题源分类/LeetCode/LeetCode日刷/python/108.将有序数组转换为二叉搜索树.py | ZhengyangXu/Algorithm-Daily-Practice | 3017a3d476fc9a857026190ea4fae2911058df59 | [
"MIT"
] | null | null | null | 题源分类/LeetCode/LeetCode日刷/python/108.将有序数组转换为二叉搜索树.py | ZhengyangXu/Algorithm-Daily-Practice | 3017a3d476fc9a857026190ea4fae2911058df59 | [
"MIT"
] | null | null | null | #
# @lc app=leetcode.cn id=108 lang=python3
#
# [108] 将有序数组转换为二叉搜索树
#
# https://leetcode-cn.com/problems/convert-sorted-array-to-binary-search-tree/description/
#
# algorithms
# Easy (74.50%)
# Likes: 655
# Dislikes: 0
# Total Accepted: 128.6K
# Total Submissions: 172.5K
# Testcase Example: '[-10,-3,0,5,9]'
#
# ... | 21.178571 | 90 | 0.487915 | 194 | 1,779 | 4.479381 | 0.417526 | 0.06214 | 0.009206 | 0.011507 | 0.478711 | 0.464902 | 0.464902 | 0.464902 | 0.464902 | 0.464902 | 0 | 0.052489 | 0.378865 | 1,779 | 83 | 91 | 21.433735 | 0.729412 | 0.573356 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0 | 0 | 0.545455 | 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 |
23ec59cf717b8a42db62a42f2e0c9856485c0613 | 858 | py | Python | .archive/trash.py | mghelton/qsys | 410ec5d526baadeb6c22537af27ff75088434fd8 | [
"MIT"
] | 3 | 2021-01-02T12:07:16.000Z | 2021-01-18T01:45:20.000Z | .archive/trash.py | gagehelton/qsys | 410ec5d526baadeb6c22537af27ff75088434fd8 | [
"MIT"
] | 1 | 2020-10-25T15:00:31.000Z | 2020-10-25T15:00:31.000Z | .archive/trash.py | mghelton/qsys | 410ec5d526baadeb6c22537af27ff75088434fd8 | [
"MIT"
] | null | null | null | def old_test():
core = Core(User='',Password='',ip='192.168.61.2')
core.start()
#gain = Control(parent=core,Name='gain',ValueType=int)
cg = ChangeGroup(parent=core,Id='mygroup')
#create some control objects
for i in range(1,10):
l = Control(parent=core,Name='Mixer6x9Output{}Label'... | 28.6 | 92 | 0.575758 | 111 | 858 | 4.441441 | 0.495496 | 0.10142 | 0.137931 | 0.170385 | 0.359026 | 0.146045 | 0.146045 | 0 | 0 | 0 | 0 | 0.031397 | 0.257576 | 858 | 29 | 93 | 29.586207 | 0.742543 | 0.09324 | 0 | 0 | 0 | 0 | 0.126289 | 0.027062 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0.047619 | 0 | 0 | 0.047619 | 0.142857 | 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 |
23edd5a2568b5d5bc33786ddbe2d27d6364efb11 | 1,557 | py | Python | review/migrations/0015_auto_20180123_1815.py | PeoplesMomentum/mxv | 3ad06cc8d3db43c63f24a80a5709aed3ade94789 | [
"MIT"
] | 6 | 2017-12-13T18:28:16.000Z | 2019-12-13T06:06:34.000Z | review/migrations/0015_auto_20180123_1815.py | PeoplesMomentum/mxv | 3ad06cc8d3db43c63f24a80a5709aed3ade94789 | [
"MIT"
] | 159 | 2017-11-05T16:48:20.000Z | 2020-07-17T09:38:18.000Z | review/migrations/0015_auto_20180123_1815.py | PeoplesMomentum/mxv | 3ad06cc8d3db43c63f24a80a5709aed3ade94789 | [
"MIT"
] | 2 | 2018-06-30T19:34:57.000Z | 2018-10-17T11:09:41.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2018-01-23 18:15
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_depende... | 35.386364 | 149 | 0.617855 | 161 | 1,557 | 5.782609 | 0.478261 | 0.034372 | 0.045113 | 0.070892 | 0.410311 | 0.410311 | 0.317938 | 0.317938 | 0.317938 | 0.317938 | 0 | 0.032062 | 0.258831 | 1,557 | 43 | 150 | 36.209302 | 0.774697 | 0.043674 | 0 | 0.361111 | 1 | 0 | 0.107672 | 0.015478 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.194444 | 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 |
23f208aa021fe24335929ef41225a001c2d0e915 | 853 | py | Python | comparer/migrations/0009_auto_20210715_1412.py | dzejkobi/institution-comparisoner | 3f7ff16bd2b5065a95607bf895c9d28f8e9182a4 | [
"MIT"
] | null | null | null | comparer/migrations/0009_auto_20210715_1412.py | dzejkobi/institution-comparisoner | 3f7ff16bd2b5065a95607bf895c9d28f8e9182a4 | [
"MIT"
] | null | null | null | comparer/migrations/0009_auto_20210715_1412.py | dzejkobi/institution-comparisoner | 3f7ff16bd2b5065a95607bf895c9d28f8e9182a4 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.12 on 2021-07-15 14:12
from django.db import migrations, models
import imagekit.models.fields
class Migration(migrations.Migration):
dependencies = [
('comparer', '0008_remove_rankingbrowserpluginmodel_show_categories'),
]
operations = [
migrations.AlterField(
... | 34.12 | 198 | 0.634232 | 86 | 853 | 6.186047 | 0.662791 | 0.052632 | 0.075188 | 0.109023 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040541 | 0.219226 | 853 | 24 | 199 | 35.541667 | 0.758258 | 0.053927 | 0 | 0.222222 | 1 | 0 | 0.224845 | 0.096894 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9b02b1440f4285074e736fba1127afb8e982d20f | 1,485 | py | Python | {{cookiecutter.project_slug}}/settings/development.py | yunior22/django-cookie | a879f8f0388ad4e7bf4950f73f7423652b3d71c6 | [
"BSD-3-Clause"
] | 1 | 2022-02-24T21:46:30.000Z | 2022-02-24T21:46:30.000Z | {{cookiecutter.project_slug}}/settings/development.py | yunior22/django-cookie | a879f8f0388ad4e7bf4950f73f7423652b3d71c6 | [
"BSD-3-Clause"
] | null | null | null | {{cookiecutter.project_slug}}/settings/development.py | yunior22/django-cookie | a879f8f0388ad4e7bf4950f73f7423652b3d71c6 | [
"BSD-3-Clause"
] | null | null | null | from config.settings import * # noqa
from config.settings import env
# GENERAL
# ------------------------------------------------------------------------------
# https://docs.djangoproject.com/en/dev/ref/settings/#debug
DEBUG = env.bool('APP_DEBUG', True)
# https://docs.djangoproject.com/en/dev/ref/settings/#secret-k... | 30.306122 | 80 | 0.478788 | 134 | 1,485 | 5.201493 | 0.373134 | 0.064562 | 0.157819 | 0.17934 | 0.403156 | 0.403156 | 0.294118 | 0.294118 | 0 | 0 | 0 | 0.00163 | 0.173737 | 1,485 | 48 | 81 | 30.9375 | 0.566422 | 0.450505 | 0 | 0.178571 | 0 | 0 | 0.355528 | 0.125628 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.035714 | 0.071429 | 0 | 0.071429 | 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 |
9b0baf6d11c00e7ab86e1c1a8cae3597c78299c0 | 559 | py | Python | test/ResultsAndPrizes/joker/test_joker_results_for_several_draws.py | FearFactor1/SPA | a05aaa924c5bebb52cd508ebdf7fd3b81c49fac7 | [
"Apache-2.0"
] | 1 | 2019-12-05T06:50:54.000Z | 2019-12-05T06:50:54.000Z | test/ResultsAndPrizes/joker/test_joker_results_for_several_draws.py | FearFactor1/SPA | a05aaa924c5bebb52cd508ebdf7fd3b81c49fac7 | [
"Apache-2.0"
] | null | null | null | test/ResultsAndPrizes/joker/test_joker_results_for_several_draws.py | FearFactor1/SPA | a05aaa924c5bebb52cd508ebdf7fd3b81c49fac7 | [
"Apache-2.0"
] | null | null | null | # Джокер + Результаты нескольких тиражей
def test_joker_results_for_several_draws(app):
app.ResultAndPrizes.open_page_results_and_prizes()
app.ResultAndPrizes.click_game_joker()
app.ResultAndPrizes.click_results_for_several_draws()
app.ResultAndPrizes.click_ok_for_several_draws_modal_window()
app... | 43 | 82 | 0.833631 | 71 | 559 | 6.056338 | 0.492958 | 0.334884 | 0.104651 | 0.102326 | 0.306977 | 0.190698 | 0 | 0 | 0 | 0 | 0 | 0.005941 | 0.096601 | 559 | 13 | 83 | 43 | 0.845545 | 0.067979 | 0 | 0 | 0 | 0 | 0.032692 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9b0c030d448251432cb22ebae1929e044830f7dc | 241 | py | Python | KHK Light Show/KHK Light Show/Test/Main.py | KappaEtaKappa/Sound-To-Disco | 0ee48660b0da581767727d5baea931725cac880b | [
"MIT"
] | null | null | null | KHK Light Show/KHK Light Show/Test/Main.py | KappaEtaKappa/Sound-To-Disco | 0ee48660b0da581767727d5baea931725cac880b | [
"MIT"
] | null | null | null | KHK Light Show/KHK Light Show/Test/Main.py | KappaEtaKappa/Sound-To-Disco | 0ee48660b0da581767727d5baea931725cac880b | [
"MIT"
] | null | null | null | from LightController import *
lc = lightcontroller()
print "Welcome to Light Tester"
print ""
raw_input("Press Enter to begin...")
for i in range(12):
print "{} - ON" .format(i)
lc.lightOn(i, 1)
raw_input()
lc.lightOff(i)
| 17.214286 | 36 | 0.647303 | 35 | 241 | 4.4 | 0.685714 | 0.103896 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015707 | 0.207469 | 241 | 13 | 37 | 18.538462 | 0.790576 | 0 | 0 | 0 | 0 | 0 | 0.219917 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1 | null | null | 0.3 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
9b10500bc0085f4733600a03d1a3e8f454545a43 | 30,589 | py | Python | Sims/CDPOP_v1.2.26_20150321/src/CDPOP.py | karljarvis/MortSims | d386c458d3ffdf5f5e20500fdb5e0737ab4a141a | [
"MIT"
] | null | null | null | Sims/CDPOP_v1.2.26_20150321/src/CDPOP.py | karljarvis/MortSims | d386c458d3ffdf5f5e20500fdb5e0737ab4a141a | [
"MIT"
] | null | null | null | Sims/CDPOP_v1.2.26_20150321/src/CDPOP.py | karljarvis/MortSims | d386c458d3ffdf5f5e20500fdb5e0737ab4a141a | [
"MIT"
] | null | null | null | # CDPOP.py
# Author: Erin L Landguth
# Created: February 2008
# v 1.2 Release: December 2011
# ----------------------------------------------------------------------------
# General CDPOP information
appName = "CDPOP"
appVers = "version 1.2.25"
appRele = "2015.02.09-00:00:00MST"
authorNames = "Erin L Landguth"
# -----... | 39.066411 | 373 | 0.648763 | 3,258 | 30,589 | 6.046041 | 0.180172 | 0.038989 | 0.046299 | 0.03574 | 0.344451 | 0.329932 | 0.304041 | 0.250533 | 0.212001 | 0.212001 | 0 | 0.013602 | 0.178005 | 30,589 | 783 | 374 | 39.066411 | 0.769806 | 0.178888 | 0 | 0.18591 | 0 | 0.003914 | 0.161523 | 0.002806 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.017613 | null | null | 0.09589 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
9b11dde2e151cf7c20dc5d12375a4b5d7ab45ae9 | 1,236 | py | Python | tools/find_external_names.py | rosaann/kaggle-hpa | b59ddd3232d01484dea446bedcee9dfe0f461bac | [
"BSD-2-Clause"
] | null | null | null | tools/find_external_names.py | rosaann/kaggle-hpa | b59ddd3232d01484dea446bedcee9dfe0f461bac | [
"BSD-2-Clause"
] | null | null | null | tools/find_external_names.py | rosaann/kaggle-hpa | b59ddd3232d01484dea446bedcee9dfe0f461bac | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Feb 28 10:19:16 2019
@author: zl
"""
import os
import argparse
import glob
import shutil
from collections import defaultdict
import tqdm
import numpy as np
import pandas as pd
from PIL import Image
import imagehash
def parse_args():
parser = arg... | 25.75 | 77 | 0.645631 | 167 | 1,236 | 4.57485 | 0.51497 | 0.036649 | 0.052356 | 0.034031 | 0.054974 | 0.054974 | 0 | 0 | 0 | 0 | 0 | 0.016615 | 0.220874 | 1,236 | 48 | 78 | 25.75 | 0.776739 | 0.133495 | 0 | 0 | 0 | 0 | 0.092803 | 0.019886 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.333333 | 0 | 0.433333 | 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 |
9b15c30645da29a96aef0334237e8f45d082e0a8 | 4,013 | py | Python | loaf.py | frenzykryger/loaf | aa791a9ca2bb23abf2c87ca372663ffb6458a1fa | [
"Apache-2.0"
] | 1 | 2015-11-01T16:30:21.000Z | 2015-11-01T16:30:21.000Z | loaf.py | frenzykryger/loaf | aa791a9ca2bb23abf2c87ca372663ffb6458a1fa | [
"Apache-2.0"
] | null | null | null | loaf.py | frenzykryger/loaf | aa791a9ca2bb23abf2c87ca372663ffb6458a1fa | [
"Apache-2.0"
] | null | null | null | '''
Created on Feb 27, 2012
@author: bfilippov
'''
import getopt
import re
import os
from sys import argv
from sys import exit
from lettuce import Feature
def usage():
return """ %(name)s usage:
%(name)s -h
%(name)s --help :Display this message
%(name)s test1.test -p Given,When,Then,And
... | 29.07971 | 117 | 0.569649 | 505 | 4,013 | 4.322772 | 0.257426 | 0.022904 | 0.018323 | 0.025653 | 0.089785 | 0.021072 | 0 | 0 | 0 | 0 | 0 | 0.006074 | 0.302517 | 4,013 | 137 | 118 | 29.291971 | 0.773848 | 0 | 0 | 0.117117 | 0 | 0.018018 | 0.195103 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.009009 | 0.09009 | 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 |
9b16520899ae0648329847f4526e737e596834b8 | 1,182 | py | Python | shapes/rhombus_test.py | marina-kaz/programming-2021-19fpl | cb5e250067634f6f773339c2ecb62804ba2bc7b8 | [
"MIT"
] | null | null | null | shapes/rhombus_test.py | marina-kaz/programming-2021-19fpl | cb5e250067634f6f773339c2ecb62804ba2bc7b8 | [
"MIT"
] | null | null | null | shapes/rhombus_test.py | marina-kaz/programming-2021-19fpl | cb5e250067634f6f773339c2ecb62804ba2bc7b8 | [
"MIT"
] | null | null | null | """
Programming for linguists
Tests for Rhombus class.
"""
import unittest
from shapes.rhombus import Rhombus
class RhombusTestCase(unittest.TestCase):
"""
This Case of tests checks the functionality of the implementation of Rhombus
"""
def test_rhombus_get_uid(self):
"""
Creates a r... | 25.695652 | 80 | 0.614213 | 142 | 1,182 | 5 | 0.302817 | 0.070423 | 0.067606 | 0.107042 | 0.483099 | 0.483099 | 0.44507 | 0.270423 | 0.270423 | 0.270423 | 0 | 0.02619 | 0.28934 | 1,182 | 45 | 81 | 26.266667 | 0.819048 | 0.326565 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.266667 | 1 | 0.266667 | false | 0 | 0.133333 | 0 | 0.466667 | 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 |
9b1c8f14fb9e119e27015c1df1b1f533ceb4e300 | 1,143 | py | Python | models/VGG_Trucated.py | rohitkuk/SRGAN | 695599b578560fa724ae333339de3cfa854ae078 | [
"CC0-1.0"
] | 4 | 2021-06-08T08:57:46.000Z | 2021-06-13T17:40:05.000Z | models/VGG_Trucated.py | rohitkuk/SRGAN | 695599b578560fa724ae333339de3cfa854ae078 | [
"CC0-1.0"
] | null | null | null | models/VGG_Trucated.py | rohitkuk/SRGAN | 695599b578560fa724ae333339de3cfa854ae078 | [
"CC0-1.0"
] | 1 | 2021-07-28T10:26:13.000Z | 2021-07-28T10:26:13.000Z | import torch.nn as nn
import torchvision
class TruncatedVGG19(nn.Module):
"""
A truncated VGG19 network, such that its output is the 'feature map obtained by the j-th convolution (after activation)
before the i-th maxpooling layer within the VGG19 network', as defined in the paper.
Used to calculate th... | 45.72 | 129 | 0.68329 | 160 | 1,143 | 4.74375 | 0.51875 | 0.105402 | 0.047431 | 0.034256 | 0.14361 | 0.108037 | 0.108037 | 0.108037 | 0.108037 | 0.108037 | 0 | 0.029579 | 0.230971 | 1,143 | 25 | 130 | 45.72 | 0.833902 | 0.569554 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
9b1d020f2e32e070242171514eab163391505c04 | 2,070 | py | Python | lif_mean_variance.py | achilleas-k/brian-scripts | 4d2d8c9a53e7202b60c78716e8b1a9d521293c54 | [
"Apache-2.0"
] | null | null | null | lif_mean_variance.py | achilleas-k/brian-scripts | 4d2d8c9a53e7202b60c78716e8b1a9d521293c54 | [
"Apache-2.0"
] | null | null | null | lif_mean_variance.py | achilleas-k/brian-scripts | 4d2d8c9a53e7202b60c78716e8b1a9d521293c54 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
from brian import *
import neurotools as nt
duration = 1*second
N_sims = 3
lif_eq = ['dV/dt = (V_rest-V)/tau_mem : volt']
V_rest = 0*mV
V_reset = 0*mV
V_th = 10*volt # to study "threshold-free" potential
t_refr = 2*ms
tau_mem = 10*ms
N_in = [100, 100, 100]
f_in = [10*Hz, 10*Hz, 10*Hz]
DV_s = [0... | 31.363636 | 73 | 0.648309 | 424 | 2,070 | 2.908019 | 0.240566 | 0.048662 | 0.053528 | 0.022709 | 0.214923 | 0.142741 | 0.090835 | 0.074615 | 0.051906 | 0.051906 | 0 | 0.05 | 0.169082 | 2,070 | 65 | 74 | 31.846154 | 0.66686 | 0.068599 | 0 | 0 | 0 | 0.018868 | 0.096724 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.037736 | null | null | 0.056604 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
9b216a1fa248cf24754c30afb3f76554d0f4d7ef | 444 | py | Python | lib/api/censys/main.py | yatere/POC-T | 1daffa4706f842d354d07585e087a8a23453a49c | [
"DOC"
] | 1 | 2021-01-10T15:48:33.000Z | 2021-01-10T15:48:33.000Z | lib/api/censys/main.py | yatere/POC-T | 1daffa4706f842d354d07585e087a8a23453a49c | [
"DOC"
] | null | null | null | lib/api/censys/main.py | yatere/POC-T | 1daffa4706f842d354d07585e087a8a23453a49c | [
"DOC"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# author = i@cdxy.me
# project = https://github.com/Xyntax/POC-T
import censys.certificates
UID = "login for API key"
SECRET = "login for API secret"
certificates = censys.certificates.CensysCertificates(UID, SECRET)
fields = ["parsed.subject_dn", "parsed.fingerprint_sha... | 27.75 | 86 | 0.731982 | 61 | 444 | 5.229508 | 0.704918 | 0.112853 | 0.068966 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012788 | 0.119369 | 444 | 15 | 87 | 29.6 | 0.803069 | 0.231982 | 0 | 0 | 0 | 0 | 0.421365 | 0.142433 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.142857 | null | null | 0.285714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9b2528772fdf61de9a3b383e35a52906852fc5e8 | 684 | py | Python | setup.py | qchenevier/simplepath | 48f48950210a4c0efa6d48b280522ef09f7166b8 | [
"WTFPL"
] | null | null | null | setup.py | qchenevier/simplepath | 48f48950210a4c0efa6d48b280522ef09f7166b8 | [
"WTFPL"
] | null | null | null | setup.py | qchenevier/simplepath | 48f48950210a4c0efa6d48b280522ef09f7166b8 | [
"WTFPL"
] | null | null | null | # setup.py
from setuptools import setup, find_packages
import simplepath
setup(
name='simplepath',
version=simplepath.__version__,
packages=find_packages(),
author="Quentin Chenevier",
author_email="",
description="Helping working with complex directory arborescences",
long_description=ope... | 26.307692 | 71 | 0.669591 | 71 | 684 | 6.295775 | 0.760563 | 0.053691 | 0.111857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012658 | 0.19152 | 684 | 25 | 72 | 27.36 | 0.79566 | 0.108187 | 0 | 0 | 0 | 0 | 0.383855 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.105263 | 0 | 0.105263 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f19395de40b20d75046e2c930d9ee732d6a570d9 | 1,414 | py | Python | ja_social/migrations/0011_auto_20161023_0648.py | Bryconc/JA-Social | 09cb13eb3bf2c5b526670188ef24f3571efd0776 | [
"MIT"
] | null | null | null | ja_social/migrations/0011_auto_20161023_0648.py | Bryconc/JA-Social | 09cb13eb3bf2c5b526670188ef24f3571efd0776 | [
"MIT"
] | null | null | null | ja_social/migrations/0011_auto_20161023_0648.py | Bryconc/JA-Social | 09cb13eb3bf2c5b526670188ef24f3571efd0776 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10.2 on 2016-10-23 06:48
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('ja_social', '0010_auto_20161023_0513'),
]
operations = [
migrations.AlterFi... | 67.333333 | 998 | 0.662659 | 182 | 1,414 | 5.082418 | 0.395604 | 0.054054 | 0.090811 | 0.032432 | 0.536216 | 0.328649 | 0.078919 | 0.078919 | 0 | 0 | 0 | 0.030198 | 0.180339 | 1,414 | 20 | 999 | 70.7 | 0.767903 | 0.048091 | 0 | 0 | 1 | 0 | 0.590469 | 0.017126 | 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 |
f195734864bc293d3700880cd4577540167ac9da | 1,227 | py | Python | tools/tools_threads.py | yoyonel/powerline-shell-TDD | 556aabb6ddf7fe2594cff177092c47db8ca3946b | [
"MIT"
] | null | null | null | tools/tools_threads.py | yoyonel/powerline-shell-TDD | 556aabb6ddf7fe2594cff177092c47db8ca3946b | [
"MIT"
] | null | null | null | tools/tools_threads.py | yoyonel/powerline-shell-TDD | 556aabb6ddf7fe2594cff177092c47db8ca3946b | [
"MIT"
] | null | null | null | __author__ = 'latty'
import threading
def find_active_thread(name):
"""
urls:
- stackoverflow.com/questions/9868653/find-first-list-item-that-matches-criteria
- https://docs.python.org/2/library/threading.html#threading.enumerate
:param name:
:type name: str
:return:
:rtype: Thread
... | 19.47619 | 90 | 0.621842 | 132 | 1,227 | 5.613636 | 0.424242 | 0.075574 | 0.064777 | 0.080972 | 0.508772 | 0.508772 | 0.508772 | 0.466937 | 0.466937 | 0.288799 | 0 | 0.009112 | 0.284434 | 1,227 | 63 | 91 | 19.47619 | 0.834852 | 0.255094 | 0 | 0.666667 | 0 | 0 | 0.00612 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.133333 | 0.033333 | 0 | 0.266667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
f199c649f887fc2ab3dd2bf61c7f849914fd485e | 895 | py | Python | aiocloudpayments/endpoints/orders/create.py | drforse/aiocloudpayments | 25b8827250279335d037754dca6978bc79c9b18d | [
"MIT"
] | null | null | null | aiocloudpayments/endpoints/orders/create.py | drforse/aiocloudpayments | 25b8827250279335d037754dca6978bc79c9b18d | [
"MIT"
] | null | null | null | aiocloudpayments/endpoints/orders/create.py | drforse/aiocloudpayments | 25b8827250279335d037754dca6978bc79c9b18d | [
"MIT"
] | null | null | null | from ..base import CpEndpoint, Request
from ...typehints import NUMERIC
from ...types.order import Order
class CpOrdersCreateEndpoint(CpEndpoint):
__returning__ = Order
amount: NUMERIC
currency: str = None
description: str
email: str = None
require_confirmation: bool = None
send_email: bo... | 27.121212 | 86 | 0.663687 | 112 | 895 | 5.053571 | 0.482143 | 0.123675 | 0.053004 | 0.063604 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.252514 | 895 | 32 | 87 | 27.96875 | 0.846039 | 0 | 0 | 0 | 0 | 0 | 0.040223 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0.107143 | 0.035714 | 0.857143 | 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 |
f19a7a8a537de34a91141716f99db23244b8353d | 382 | py | Python | rocketbuild/generate_python.py | saltyJeff/rocket-build | 8c9ad9bea5aa9274de92c839f75ef2f0cfc44515 | [
"MIT"
] | null | null | null | rocketbuild/generate_python.py | saltyJeff/rocket-build | 8c9ad9bea5aa9274de92c839f75ef2f0cfc44515 | [
"MIT"
] | null | null | null | rocketbuild/generate_python.py | saltyJeff/rocket-build | 8c9ad9bea5aa9274de92c839f75ef2f0cfc44515 | [
"MIT"
] | null | null | null | def generate_python(fields):
pkgSize = 0
pkgStr = '<'
for field in fields:
pkgSize += field.fieldType.length
pkgStr += field.fieldType.charCode
pyStr = 'PACKAGE_LEN = '+str(pkgSize)+'\n'
pyStr += 'PACKAGE_CODE = "'+pkgStr+'"\n'
pyStr += 'PACKAGE_FIELDS = ' + list(
m... | 25.466667 | 46 | 0.581152 | 43 | 382 | 4.976744 | 0.581395 | 0.168224 | 0.121495 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003597 | 0.272251 | 382 | 15 | 47 | 25.466667 | 0.766187 | 0 | 0 | 0 | 1 | 0 | 0.138381 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f1a0087ccd6f0aed8e3c71937a75cf06050d674b | 1,584 | py | Python | emu-control-labels/ecl.py | Japi42/ECL | fa5e9f792285f6096ad90361309032640669e16b | [
"MIT"
] | null | null | null | emu-control-labels/ecl.py | Japi42/ECL | fa5e9f792285f6096ad90361309032640669e16b | [
"MIT"
] | 1 | 2021-11-04T00:55:37.000Z | 2021-11-04T00:55:37.000Z | emu-control-labels/ecl.py | Japi42/ECL | fa5e9f792285f6096ad90361309032640669e16b | [
"MIT"
] | null | null | null | #!/usr/bin/python3
from ECL_config import ECL_config
from ECL_config import main_config
from ECL_core import updateControls
from Controls import main_controller
import time
import argparse
import sys
def getOptions(args=sys.argv[1:]):
parser = argparse.ArgumentParser(description="ECL - Emulator Controls Label. \... | 29.333333 | 99 | 0.743056 | 202 | 1,584 | 5.732673 | 0.425743 | 0.046632 | 0.088083 | 0.032815 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003658 | 0.136995 | 1,584 | 53 | 100 | 29.886792 | 0.843453 | 0.13447 | 0 | 0 | 0 | 0 | 0.179017 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0 | 0.333333 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
f1a023f50d9f76e4f86076d3935e2076635fe4cd | 304 | py | Python | core-python-basic-knowledge/iteration_and_iterables/list_comprehensions.py | hassonor/core-python | 92672aa72c1474061df5247a2dd4dfd9fab1642a | [
"MIT"
] | 1 | 2022-03-09T20:58:33.000Z | 2022-03-09T20:58:33.000Z | core-python-basic-knowledge/iteration_and_iterables/list_comprehensions.py | hassonor/core-python | 92672aa72c1474061df5247a2dd4dfd9fab1642a | [
"MIT"
] | null | null | null | core-python-basic-knowledge/iteration_and_iterables/list_comprehensions.py | hassonor/core-python | 92672aa72c1474061df5247a2dd4dfd9fab1642a | [
"MIT"
] | null | null | null | """
List Comprehension Syntax:
[expr(item) for item in iterable]
"""
from math import factorial
f = [len(str(factorial(x))) for x in range(20)]
print(f)
words = "Why sometimes I have believed as many as six impossible things before berekfast".split()
print(words)
print([len(word) for word in words])
| 21.714286 | 97 | 0.723684 | 49 | 304 | 4.489796 | 0.693878 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007752 | 0.151316 | 304 | 13 | 98 | 23.384615 | 0.844961 | 0.197368 | 0 | 0 | 0 | 0 | 0.334746 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
f1b3fc8bbbab89e42dafab4b7003f0ec0c85873c | 3,143 | py | Python | lab_10.py | ofiro21-meet/meet2019y1lab10 | f805157dcecaf1918721e95a473f009f3361ceec | [
"MIT"
] | null | null | null | lab_10.py | ofiro21-meet/meet2019y1lab10 | f805157dcecaf1918721e95a473f009f3361ceec | [
"MIT"
] | null | null | null | lab_10.py | ofiro21-meet/meet2019y1lab10 | f805157dcecaf1918721e95a473f009f3361ceec | [
"MIT"
] | null | null | null | x = 0
score = x
# Question One
print("What are the plants and trees release into the air?")
answer_1 = input("a)air\nb)oxygen\nc)music\nd)zak's fart \n:")
if answer_1.lower() == "b" or answer_1.lower() == "oxygen":
print("Correct")
x = x + 1
else:
print("Incorrect, it's oxygen")
# Question Two
print("... | 30.514563 | 106 | 0.659879 | 518 | 3,143 | 3.945946 | 0.295367 | 0.039139 | 0.014677 | 0.034247 | 0.488748 | 0.444716 | 0.434442 | 0.434442 | 0.402153 | 0.328278 | 0 | 0.045204 | 0.190582 | 3,143 | 102 | 107 | 30.813725 | 0.758255 | 0.048361 | 0 | 0.527027 | 0 | 0.027027 | 0.52317 | 0.053392 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.418919 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
f1b4775fafbf14c45007b2a4ccb5ff4d8126ebde | 567 | py | Python | default_scripts_submissions/dummy_baseline.py | PaulRaid/H-index-prediction | a3f97feb7c6cf35c19a8f065264fa0a1d66c9f40 | [
"MIT"
] | null | null | null | default_scripts_submissions/dummy_baseline.py | PaulRaid/H-index-prediction | a3f97feb7c6cf35c19a8f065264fa0a1d66c9f40 | [
"MIT"
] | null | null | null | default_scripts_submissions/dummy_baseline.py | PaulRaid/H-index-prediction | a3f97feb7c6cf35c19a8f065264fa0a1d66c9f40 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import os
import pandas as pd
import numpy as np
import networkx as nx
# read training data
df_train = pd.read_csv('train.csv', dtype={'author': np.int64, 'hindex': np.float32})
n_train = df_train.shape[0]
# read test data
df_test = pd.read_csv('test.csv', dtype={'auth... | 18.9 | 85 | 0.691358 | 94 | 567 | 4.031915 | 0.489362 | 0.063325 | 0.047493 | 0.084433 | 0.110818 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022358 | 0.132275 | 567 | 29 | 86 | 19.551724 | 0.747967 | 0.188713 | 0 | 0 | 0 | 0 | 0.170354 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.363636 | 0 | 0.363636 | 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 |
f1b4e56da451d98571829a693e32d8a1a2ea0f32 | 763 | py | Python | agate/utils.py | captainsafia/agate | 14f41d13f72160a374d2504d9c9ade958f543eab | [
"MIT"
] | null | null | null | agate/utils.py | captainsafia/agate | 14f41d13f72160a374d2504d9c9ade958f543eab | [
"MIT"
] | null | null | null | agate/utils.py | captainsafia/agate | 14f41d13f72160a374d2504d9c9ade958f543eab | [
"MIT"
] | 1 | 2019-11-26T03:25:18.000Z | 2019-11-26T03:25:18.000Z | #!/usr/bin/env python
"""
This module contains common utilities used in agate.
"""
from functools import wraps
def memoize(func):
"""
Dead-simple memoize decorator for instance methods that take no arguments.
This is especially useful since so many of our classes are immutable.
"""
memo = None
... | 19.075 | 78 | 0.629096 | 99 | 763 | 4.767677 | 0.656566 | 0.042373 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.29751 | 763 | 39 | 79 | 19.564103 | 0.880597 | 0.419397 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.0625 | 0.0625 | 0.75 | 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 |
f1badcbcf6f3e10ad5523e75551e609d83b32bbc | 641 | py | Python | tests/metrics/utils.py | JakeNeyer/MLServer | a283d3c0008c944b28cdd39c2ffec73f59296603 | [
"Apache-2.0"
] | null | null | null | tests/metrics/utils.py | JakeNeyer/MLServer | a283d3c0008c944b28cdd39c2ffec73f59296603 | [
"Apache-2.0"
] | null | null | null | tests/metrics/utils.py | JakeNeyer/MLServer | a283d3c0008c944b28cdd39c2ffec73f59296603 | [
"Apache-2.0"
] | null | null | null | from typing import List, Optional
from prometheus_client import Metric
from prometheus_client.parser import text_string_to_metric_families
from ..utils import RESTClient
class MetricsClient(RESTClient):
async def metrics(self) -> List[Metric]:
endpoint = f"http://{self._http_server}/metrics"
res... | 26.708333 | 70 | 0.719189 | 81 | 641 | 5.493827 | 0.469136 | 0.062921 | 0.089888 | 0.080899 | 0.116854 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.199688 | 641 | 23 | 71 | 27.869565 | 0.867446 | 0 | 0 | 0 | 0 | 0 | 0.053042 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.266667 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
f1ce93e82fff6d7cecf3cec7195bedc76c0de56e | 6,185 | py | Python | src/window/0.py | ytyaru/Python.curses.Wrapper.20210614081536 | 6ba138fd13bb7df2e1dd4fa5b344b6df230db51d | [
"CC0-1.0"
] | null | null | null | src/window/0.py | ytyaru/Python.curses.Wrapper.20210614081536 | 6ba138fd13bb7df2e1dd4fa5b344b6df230db51d | [
"CC0-1.0"
] | null | null | null | src/window/0.py | ytyaru/Python.curses.Wrapper.20210614081536 | 6ba138fd13bb7df2e1dd4fa5b344b6df230db51d | [
"CC0-1.0"
] | null | null | null | #!/usr/bin/env python3
# coding: utf8
import os, curses, curses.panel
# windowにてカーソル関係のAPIを使う。
class Curses:
Screen = None
Windows = []
Pads = []
@classmethod
def run(cls):
curses.wrapper(Curses.__main)
@classmethod
def __main(cls, screen, *args, **kwargs):
Curses.Screen = s... | 39.14557 | 105 | 0.570574 | 952 | 6,185 | 3.538866 | 0.122899 | 0.053428 | 0.032651 | 0.009498 | 0.531909 | 0.415257 | 0.349362 | 0.290591 | 0.255565 | 0.224102 | 0 | 0.027877 | 0.27502 | 6,185 | 157 | 106 | 39.394904 | 0.723461 | 0.343411 | 0 | 0.19802 | 0 | 0 | 0.024415 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.227723 | false | 0.039604 | 0.009901 | 0.059406 | 0.346535 | 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 |
f1d284317bf10c1f6211c0f5789f057194f9c4d3 | 360 | py | Python | src/fractal/world/fractum/placement/pulse/cyclic.py | jedhsu/fractal | 97833ddc5063fae72352cf590738fef508c02f0c | [
"MIT"
] | null | null | null | src/fractal/world/fractum/placement/pulse/cyclic.py | jedhsu/fractal | 97833ddc5063fae72352cf590738fef508c02f0c | [
"MIT"
] | null | null | null | src/fractal/world/fractum/placement/pulse/cyclic.py | jedhsu/fractal | 97833ddc5063fae72352cf590738fef508c02f0c | [
"MIT"
] | null | null | null | """
CyclicSchedule(base, mid, term; n, xmid=0.45, xback=0.90)
Return the [`PLSchedule`](@ref) that is typically used for cyclic
learning rate scheduling.
"""
def Circularly(base, mid, term; n, xmid=0.45, xback=0.90,):
nmid = floor(Int, xmid * n)
nback = floor(Int, xback * n)
return PLSchedule([1, nm... | 27.692308 | 67 | 0.641667 | 56 | 360 | 4.125 | 0.535714 | 0.090909 | 0.095238 | 0.103896 | 0.233766 | 0.233766 | 0.233766 | 0.233766 | 0.233766 | 0.233766 | 0 | 0.044521 | 0.188889 | 360 | 12 | 68 | 30 | 0.746575 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f1dcd01856970a59a68656ec653623d252055f9b | 150 | py | Python | Testing/test.py | Magical-Man/PythonProjects | fe0c7170254644e414cc998f2dabb87bf1a521a9 | [
"MIT"
] | null | null | null | Testing/test.py | Magical-Man/PythonProjects | fe0c7170254644e414cc998f2dabb87bf1a521a9 | [
"MIT"
] | null | null | null | Testing/test.py | Magical-Man/PythonProjects | fe0c7170254644e414cc998f2dabb87bf1a521a9 | [
"MIT"
] | null | null | null | import random
var = [0, 1, 2, 3, 4]
random = random.choice(var)
if random == 1 or 2 or 3:
print("Yes")
elif random == 4 or 5:
print("NO")
| 12.5 | 27 | 0.566667 | 28 | 150 | 3.035714 | 0.571429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 0.266667 | 150 | 11 | 28 | 13.636364 | 0.681818 | 0 | 0 | 0 | 0 | 0 | 0.033333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.285714 | 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 |
f1e2892057db3813ac7ec332c0f0762258d63e6b | 628 | py | Python | bflib/skills/cleric.py | ChrisLR/BasicDungeonRL | b293d40bd9a0d3b7aec41b5e1d58441165997ff1 | [
"MIT"
] | 3 | 2017-10-28T11:28:38.000Z | 2018-09-12T09:47:00.000Z | bflib/skills/cleric.py | ChrisLR/BasicDungeonRL | b293d40bd9a0d3b7aec41b5e1d58441165997ff1 | [
"MIT"
] | null | null | null | bflib/skills/cleric.py | ChrisLR/BasicDungeonRL | b293d40bd9a0d3b7aec41b5e1d58441165997ff1 | [
"MIT"
] | null | null | null | from bflib.characters import abilityscores
from bflib.characters.classes import Cleric
from bflib.skills import listing
from bflib.skills.base import Skill
@listing.register
class Ceremony(Skill):
name = "Ceremony"
related_stat = abilityscores.Wisdom
natural = False
character_class = Cleric
@listing... | 21.655172 | 45 | 0.748408 | 70 | 628 | 6.628571 | 0.371429 | 0.077586 | 0.12931 | 0.168103 | 0.422414 | 0.422414 | 0.422414 | 0.422414 | 0.267241 | 0 | 0 | 0 | 0.184713 | 628 | 28 | 46 | 22.428571 | 0.90625 | 0 | 0 | 0.5 | 0 | 0 | 0.046178 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 0.863636 | 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 |
f1e644e71d3bda71e31e303e4333e90c01dd3f26 | 666 | py | Python | congo/maintenance/logs/filters.py | integree/django-congo | f79804fd246e0fcddc7b13c059014081ee982d2c | [
"MIT"
] | 1 | 2017-12-11T23:47:27.000Z | 2017-12-11T23:47:27.000Z | congo/maintenance/logs/filters.py | integree/django-congo | f79804fd246e0fcddc7b13c059014081ee982d2c | [
"MIT"
] | null | null | null | congo/maintenance/logs/filters.py | integree/django-congo | f79804fd246e0fcddc7b13c059014081ee982d2c | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import logging
from congo.conf import settings
class IgnoreCommonErrors(logging.Filter):
def filter(self, record):
exc_text = getattr(record, 'exc_text', None)
# common_errors = [
# "AttributeError: 'NoneType' object has no attribute 'get_object_by_attrs'... | 30.272727 | 89 | 0.611111 | 74 | 666 | 5.324324 | 0.702703 | 0.121827 | 0.06599 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002165 | 0.306306 | 666 | 21 | 90 | 31.714286 | 0.850649 | 0.418919 | 0 | 0 | 0 | 0 | 0.022284 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
f1e7f2b117a5deef174415a64c6fb3c622683f86 | 1,734 | py | Python | tests/test_action_interface_vrrp_vip.py | cognifloyd/stackstorm-vdx | 0ae8b783cdc3e3fe467050268ea7d10de493e3ca | [
"Apache-2.0"
] | 164 | 2015-01-17T16:08:33.000Z | 2021-08-03T02:34:07.000Z | tests/test_action_interface_vrrp_vip.py | cognifloyd/stackstorm-vdx | 0ae8b783cdc3e3fe467050268ea7d10de493e3ca | [
"Apache-2.0"
] | 442 | 2015-01-01T11:19:01.000Z | 2017-09-06T23:26:17.000Z | tests/test_action_interface_vrrp_vip.py | cognifloyd/stackstorm-vdx | 0ae8b783cdc3e3fe467050268ea7d10de493e3ca | [
"Apache-2.0"
] | 202 | 2015-01-13T00:37:40.000Z | 2020-11-07T11:30:10.000Z | """Generated test for checking pynos based actions
"""
import xml.etree.ElementTree as ET
from st2tests.base import BaseActionTestCase
from interface_vrrp_vip import interface_vrrp_vip
__all__ = [
'TestInterfaceVrrpVip'
]
class MockCallback(object): # pylint:disable=too-few-public-methods
"""Class to hold m... | 29.389831 | 79 | 0.588812 | 185 | 1,734 | 5.378378 | 0.475676 | 0.060302 | 0.048241 | 0.01005 | 0.058291 | 0.058291 | 0 | 0 | 0 | 0 | 0 | 0.022961 | 0.271626 | 1,734 | 58 | 80 | 29.896552 | 0.764846 | 0.146482 | 0 | 0 | 1 | 0.078947 | 0.286501 | 0.190771 | 0 | 0 | 0 | 0 | 0.026316 | 1 | 0.052632 | false | 0.026316 | 0.078947 | 0 | 0.236842 | 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 |
f1eb88f0730e9a4400b2948b721738b9bbcc6834 | 3,958 | py | Python | pybrewer/test/tests.py | anov/PyBrewer | ba4ca095e6e5d474efb447a927a21e1f4f42ccbe | [
"MIT"
] | null | null | null | pybrewer/test/tests.py | anov/PyBrewer | ba4ca095e6e5d474efb447a927a21e1f4f42ccbe | [
"MIT"
] | 1 | 2018-01-13T20:54:11.000Z | 2018-01-13T20:54:11.000Z | pybrewer/test/tests.py | anov/PyBrewer | ba4ca095e6e5d474efb447a927a21e1f4f42ccbe | [
"MIT"
] | null | null | null | import unittest
from selector import BrewSelector
from brew import *
from collections import defaultdict
class SelectorTest(unittest.TestCase):
def setUp(self):
self.empty_bs=BrewSelector(empty=True)
self.brew_9=Brew('sequential', ['#F7FCFD', '#E5F5F9', '#CCECE6','#99D8C9', '#66C2A4', '#41AE76', '#238B45', '#00... | 55.746479 | 236 | 0.703133 | 523 | 3,958 | 5.122371 | 0.198853 | 0.106383 | 0.044793 | 0.065696 | 0.546473 | 0.479657 | 0.399776 | 0.383725 | 0.211273 | 0.126166 | 0 | 0.081537 | 0.085902 | 3,958 | 71 | 237 | 55.746479 | 0.658928 | 0 | 0 | 0.074074 | 0 | 0 | 0.231119 | 0 | 0 | 0 | 0 | 0 | 0.351852 | 1 | 0.240741 | false | 0 | 0.074074 | 0 | 0.351852 | 0.074074 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
f1ef326645b505ece4a4d7c4345104c121142d11 | 122 | py | Python | baekjoon/11653.py | jiyeoun/PS | 855ec59fe7844daf102fde713eab48c88cbc5419 | [
"MIT"
] | null | null | null | baekjoon/11653.py | jiyeoun/PS | 855ec59fe7844daf102fde713eab48c88cbc5419 | [
"MIT"
] | null | null | null | baekjoon/11653.py | jiyeoun/PS | 855ec59fe7844daf102fde713eab48c88cbc5419 | [
"MIT"
] | null | null | null | import math
n=int(input())
a=2
for i in range(n-1):
if n%a==0:
n=n//a
print(a)
else:
a+=1 | 12.2 | 20 | 0.442623 | 25 | 122 | 2.16 | 0.64 | 0.074074 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 0.377049 | 122 | 10 | 21 | 12.2 | 0.657895 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0.111111 | 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 |
f1efddceb95628a490c975883617466524d349d7 | 5,904 | py | Python | tests/TestStoredData.py | morgenst/pyfluka | 6dd3aa8cc29cfce0b2f084fb6b08bdebd2233298 | [
"MIT"
] | null | null | null | tests/TestStoredData.py | morgenst/pyfluka | 6dd3aa8cc29cfce0b2f084fb6b08bdebd2233298 | [
"MIT"
] | null | null | null | tests/TestStoredData.py | morgenst/pyfluka | 6dd3aa8cc29cfce0b2f084fb6b08bdebd2233298 | [
"MIT"
] | null | null | null | __author__ = 'marcusmorgenstern'
__mail__ = ''
import unittest
from collections import OrderedDict
from math import sqrt
from pyfluka.base import _global_data
from pyfluka.utils import ureg
from pyfluka.base.StoredData import StoredData
from pyfluka.utils import PhysicsQuantities as PQ
class TestStoredData(unittes... | 47.612903 | 114 | 0.60044 | 679 | 5,904 | 5.038292 | 0.145803 | 0.064309 | 0.061386 | 0.067524 | 0.695118 | 0.633148 | 0.602455 | 0.541947 | 0.509792 | 0.505992 | 0 | 0.044364 | 0.251694 | 5,904 | 123 | 115 | 48 | 0.729968 | 0 | 0 | 0.208333 | 0 | 0 | 0.051491 | 0 | 0 | 0 | 0 | 0 | 0.229167 | 1 | 0.239583 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f1f7bee2a7a0161ec40f953f4faa1e4023256687 | 538 | py | Python | setup.py | thebenwaters/aio-bernhard | 890d9cb77d89c138bcd6593528c801b86e3c3e51 | [
"Apache-2.0"
] | 5 | 2017-11-15T08:27:15.000Z | 2020-08-12T11:48:09.000Z | setup.py | thebenwaters/aio-bernhard | 890d9cb77d89c138bcd6593528c801b86e3c3e51 | [
"Apache-2.0"
] | null | null | null | setup.py | thebenwaters/aio-bernhard | 890d9cb77d89c138bcd6593528c801b86e3c3e51 | [
"Apache-2.0"
] | null | null | null | from setuptools import setup
def get_version():
with open('VERSION') as v:
return v.read()
setup(name='aiobernhard',
description='An async bernhard client',
version=get_version(),
packages=['aiobernhard'],
url='https://github.com/thebenwaters/aio-bernhard',
author='Ben Waer... | 23.391304 | 57 | 0.6171 | 57 | 538 | 5.754386 | 0.754386 | 0.060976 | 0.152439 | 0.158537 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009804 | 0.241636 | 538 | 22 | 58 | 24.454545 | 0.794118 | 0 | 0 | 0 | 0 | 0 | 0.392193 | 0.042751 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | true | 0 | 0.058824 | 0 | 0.176471 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f1f85769225beae9fa85a59ca8355d500fc80d59 | 944 | py | Python | modules/interaction/interaction_linear.py | lastBird/NNCF | bf5dd2a4992e5cbb968e744b891ba5bd8e565bfe | [
"MIT"
] | 40 | 2017-06-19T16:36:50.000Z | 2021-05-26T08:57:06.000Z | modules/interaction/interaction_linear.py | lastBird/NNCF | bf5dd2a4992e5cbb968e744b891ba5bd8e565bfe | [
"MIT"
] | 1 | 2018-09-28T02:16:15.000Z | 2018-09-29T20:47:13.000Z | modules/interaction/interaction_linear.py | lastBird/NNCF | bf5dd2a4992e5cbb968e744b891ba5bd8e565bfe | [
"MIT"
] | 18 | 2017-06-23T14:40:17.000Z | 2020-11-23T05:11:47.000Z | import numpy as np
import keras.backend as K
from keras.layers import Layer
class LinearLayer(Layer):
""" linear regression score by using ids of user/item """
def __init__(self, num_user, num_item, **kwargs):
super(LinearLayer, self).__init__(**kwargs)
self.b_u = K.variable(np.zeros((num_user... | 39.333333 | 87 | 0.633475 | 155 | 944 | 3.632258 | 0.341935 | 0.106572 | 0.042629 | 0.095915 | 0.227353 | 0.092362 | 0.092362 | 0.092362 | 0.092362 | 0 | 0 | 0.012048 | 0.208686 | 944 | 23 | 88 | 41.043478 | 0.741633 | 0.111229 | 0 | 0 | 0 | 0 | 0.021635 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.176471 | 0.058824 | 0.529412 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
f1fea6e9e115c16ad174b5aa2c51c60f4cb8e68a | 1,247 | py | Python | mobao/views/view.py | fengzhongdege/mobao | e1117ab992d2baac21998423a88ee5efcfcfeaa5 | [
"Apache-2.0"
] | null | null | null | mobao/views/view.py | fengzhongdege/mobao | e1117ab992d2baac21998423a88ee5efcfcfeaa5 | [
"Apache-2.0"
] | null | null | null | mobao/views/view.py | fengzhongdege/mobao | e1117ab992d2baac21998423a88ee5efcfcfeaa5 | [
"Apache-2.0"
] | null | null | null | from mobao import app
from flask import render_template, request, g, redirect, url_for, session
from mobao.models import product, user
@app.route('/')
@app.route('/list')
def list_product():
return render_template('list.html', products=product.get_product_all())
@app.route('/login', methods=['GET', 'POST'])
def... | 27.108696 | 75 | 0.632719 | 153 | 1,247 | 4.993464 | 0.287582 | 0.086387 | 0.109948 | 0.13089 | 0.200262 | 0.200262 | 0.086387 | 0 | 0 | 0 | 0 | 0 | 0.226143 | 1,247 | 45 | 76 | 27.711111 | 0.79171 | 0 | 0 | 0.305556 | 0 | 0 | 0.126806 | 0.017657 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.083333 | 0.083333 | 0.027778 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
7b0a78f56bf66790926c242e83343a7f7b6b9135 | 1,309 | py | Python | fastaProcessing/fastaAddIUPAC.py | linlifeng/llbio | 962f6abda8e8a576cb0bf4d73d3a5c4ef9b1a04b | [
"MIT"
] | null | null | null | fastaProcessing/fastaAddIUPAC.py | linlifeng/llbio | 962f6abda8e8a576cb0bf4d73d3a5c4ef9b1a04b | [
"MIT"
] | null | null | null | fastaProcessing/fastaAddIUPAC.py | linlifeng/llbio | 962f6abda8e8a576cb0bf4d73d3a5c4ef9b1a04b | [
"MIT"
] | null | null | null | #!/usr/bin/env python
'''
1. fasta file
2. conversion file: format:
chrM 210 A R
chrM 16184 C Y
chrM 663 A R
chrM 9477 G R
chrM 15326 A R
chrM 13368 G R
chrM 16274 G R
chrM 6962 G R
chrM 499 G R
'''
from sys im... | 24.240741 | 94 | 0.545455 | 184 | 1,309 | 3.836957 | 0.467391 | 0.049575 | 0.033994 | 0.03966 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051744 | 0.320856 | 1,309 | 53 | 95 | 24.698113 | 0.742407 | 0.015279 | 0 | 0.060606 | 0 | 0 | 0.086653 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.090909 | null | null | 0.030303 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7b1204431e1d9128ab6a05f6aeec581aa76f1413 | 878 | py | Python | myfav_lite_server/api/serializers.py | EroCode/lite.myfav.link | d459eaf555f67d1860b6659aa66df757edcc3e6f | [
"MIT"
] | null | null | null | myfav_lite_server/api/serializers.py | EroCode/lite.myfav.link | d459eaf555f67d1860b6659aa66df757edcc3e6f | [
"MIT"
] | 10 | 2021-03-19T00:45:20.000Z | 2022-02-27T01:00:47.000Z | myfav_lite_server/api/serializers.py | EroCode/lite.myfav.link | d459eaf555f67d1860b6659aa66df757edcc3e6f | [
"MIT"
] | null | null | null | from django.contrib.auth.models import User
from rest_framework import serializers
from taggit_serializer.serializers import TagListSerializerField, TaggitSerializer
from api.models import CategoryEntry, LinkEntry
class UserSerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = User
... | 35.12 | 99 | 0.72779 | 83 | 878 | 7.626506 | 0.542169 | 0.042654 | 0.066351 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170843 | 878 | 25 | 100 | 35.12 | 0.869505 | 0 | 0 | 0.166667 | 0 | 0 | 0.100114 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
7b15cec6e0fc8cc12209b1f7c632ce385f42068a | 531 | py | Python | src/index_db_k-shell.py | joigno/cloudlight | 8a6510047abd97e0bf3a568322205beb56fa5260 | [
"BSD-3-Clause"
] | 3 | 2020-08-21T00:18:50.000Z | 2020-10-21T17:40:47.000Z | src/index_db_k-shell.py | joigno/cloudlight | 8a6510047abd97e0bf3a568322205beb56fa5260 | [
"BSD-3-Clause"
] | null | null | null | src/index_db_k-shell.py | joigno/cloudlight | 8a6510047abd97e0bf3a568322205beb56fa5260 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/python
'''
Created on Jun 7, 2010
@author: jose
'''
#!/usr/bin/python
from cloudlight import BigGraph
import sys
filename = len(sys.argv) > 1 and sys.argv[1] or None
debug = True
if not filename:
print 'Error: first argument missing, input filename with BigGraph archive!'
exit(-1)
# cache si... | 17.129032 | 80 | 0.713748 | 78 | 531 | 4.782051 | 0.615385 | 0.072386 | 0.064343 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027335 | 0.173258 | 531 | 30 | 81 | 17.7 | 0.822323 | 0.112994 | 0 | 0 | 0 | 0 | 0.28436 | 0.049763 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.153846 | null | null | 0.230769 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7b15d243c47e75691cb835b794907df23de970ed | 881 | py | Python | kapkan/orders/forms.py | Aleksey-Mikh/Kapkan_DJANGO_V2 | 1faec43ddc983a9bc5f670245d98c738de42e071 | [
"Apache-2.0"
] | null | null | null | kapkan/orders/forms.py | Aleksey-Mikh/Kapkan_DJANGO_V2 | 1faec43ddc983a9bc5f670245d98c738de42e071 | [
"Apache-2.0"
] | null | null | null | kapkan/orders/forms.py | Aleksey-Mikh/Kapkan_DJANGO_V2 | 1faec43ddc983a9bc5f670245d98c738de42e071 | [
"Apache-2.0"
] | null | null | null | from django import forms
from .models import Order
from captcha.fields import CaptchaField
class OrderCreateForm(forms.ModelForm):
captcha = CaptchaField()
class Meta:
model = Order
fields = ('first_name', 'last_name', 'middle_name', 'email', 'address', 'phone', 'comment_for_order')
w... | 41.952381 | 109 | 0.614075 | 99 | 881 | 5.363636 | 0.30303 | 0.131827 | 0.158192 | 0.224105 | 0.483992 | 0.483992 | 0.418079 | 0.220339 | 0 | 0 | 0 | 0 | 0.208854 | 881 | 20 | 110 | 44.05 | 0.761836 | 0 | 0 | 0 | 0 | 0 | 0.297389 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.176471 | 0 | 0.352941 | 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 |
7b172ce30f843195e2883a3b767b128c9f7989f9 | 826 | py | Python | content/urls.py | 0lidaxiang/WeArt | 088bc2cdc7c653d4e4a84dea8f70cc86e12a8db9 | [
"BSD-3-Clause"
] | 1 | 2017-07-12T14:53:45.000Z | 2017-07-12T14:53:45.000Z | content/urls.py | 0lidaxiang/WeArt | 088bc2cdc7c653d4e4a84dea8f70cc86e12a8db9 | [
"BSD-3-Clause"
] | null | null | null | content/urls.py | 0lidaxiang/WeArt | 088bc2cdc7c653d4e4a84dea8f70cc86e12a8db9 | [
"BSD-3-Clause"
] | null | null | null | from django.conf.urls import include, url
from django.contrib import admin
from content.view.createContent import *
from content.view.getContent import *
from content.view.readerGetContent import *
from content.view.readerWriteAContent import *
from content.view.readerGetChapterContent import *
urlpatterns = [
... | 39.333333 | 63 | 0.744552 | 68 | 826 | 9.044118 | 0.352941 | 0.089431 | 0.121951 | 0.136585 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121065 | 826 | 20 | 64 | 41.3 | 0.847107 | 0.027845 | 0 | 0 | 0 | 0 | 0.228464 | 0.121099 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.388889 | 0 | 0.388889 | 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 |
7b1b47183313d2abe78e697a0331d818875aaf90 | 1,964 | py | Python | super_admin/views/authorization.py | chaitphani/company-emp-proj-auth | 1e86c78d50e23d8bbd7779d7848578f7e920e656 | [
"MIT"
] | null | null | null | super_admin/views/authorization.py | chaitphani/company-emp-proj-auth | 1e86c78d50e23d8bbd7779d7848578f7e920e656 | [
"MIT"
] | null | null | null | super_admin/views/authorization.py | chaitphani/company-emp-proj-auth | 1e86c78d50e23d8bbd7779d7848578f7e920e656 | [
"MIT"
] | null | null | null | from super_admin.models import User
from rest_framework import viewsets,status
from rest_framework.response import Response
from django.contrib.auth import authenticate
from rest_framework.permissions import AllowAny
from super_admin.helper import get_token_data
class RegisterAPI(viewsets.ViewSet):
permission_cla... | 35.071429 | 122 | 0.611507 | 211 | 1,964 | 5.50237 | 0.369668 | 0.066322 | 0.082687 | 0.049096 | 0.382429 | 0.33764 | 0.33764 | 0.30491 | 0.30491 | 0.225668 | 0 | 0.01311 | 0.300917 | 1,964 | 55 | 123 | 35.709091 | 0.832484 | 0 | 0 | 0.282609 | 0 | 0 | 0.067788 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0.065217 | 0.130435 | 0 | 0.391304 | 0.021739 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
7b1c20f127564b6794dfa56fe2569b9ddf5c634b | 170 | py | Python | home/urls.py | shukranjs/E-commerce-project | 047a509c78d9dc9ba65910349383df1e3d7228bd | [
"MIT"
] | 2 | 2021-07-07T07:19:44.000Z | 2021-08-19T19:20:14.000Z | home/urls.py | Emrahgs/E-commerce-project | 4c0ee3444701c3c1782e6b6cf75b7c63aee32371 | [
"MIT"
] | null | null | null | home/urls.py | Emrahgs/E-commerce-project | 4c0ee3444701c3c1782e6b6cf75b7c63aee32371 | [
"MIT"
] | null | null | null | from django.urls import path
from home.views import *
app_name = 'home'
urlpatterns = [
path('', index, name='home'),
path('about/', about,name='about'),
] | 17 | 39 | 0.623529 | 22 | 170 | 4.772727 | 0.545455 | 0.152381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 170 | 10 | 40 | 17 | 0.772059 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 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 |
7b2d415dddde2df08407e3a88347bfb11d2e8095 | 1,909 | py | Python | network/metrics.py | aledelmo/KDCompression | 030e7331f72ac8977964b6adb65d268c23d59130 | [
"Apache-2.0"
] | null | null | null | network/metrics.py | aledelmo/KDCompression | 030e7331f72ac8977964b6adb65d268c23d59130 | [
"Apache-2.0"
] | null | null | null | network/metrics.py | aledelmo/KDCompression | 030e7331f72ac8977964b6adb65d268c23d59130 | [
"Apache-2.0"
] | null | null | null | import torch
import torch.nn.functional as F
class DiceScore:
def __init__(self):
self._dice_scores = []
self.axis = (2, 3, 4)
self.smooth = 1e-7
def reset(self):
self._dice_scores = []
def update(self, y_pred, y_true):
y_pred = torch.sigmoid(y_pred)
numer... | 30.790323 | 106 | 0.630173 | 272 | 1,909 | 4.128676 | 0.238971 | 0.053428 | 0.0748 | 0.058771 | 0.430098 | 0.430098 | 0.412289 | 0.341941 | 0.341941 | 0.183437 | 0 | 0.011789 | 0.244631 | 1,909 | 61 | 107 | 31.295082 | 0.76699 | 0 | 0 | 0.272727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.227273 | false | 0 | 0.045455 | 0.045455 | 0.386364 | 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 |
7b310b70e79fd27ec541a83836f90e52ebffb922 | 701 | py | Python | battleships/__main__.py | dsardelic/Battleships | a66440e308e83e3f6e21ee39b85a283fc2105949 | [
"MIT"
] | 1 | 2021-11-30T22:50:41.000Z | 2021-11-30T22:50:41.000Z | battleships/__main__.py | dsardelic/Battleships | a66440e308e83e3f6e21ee39b85a283fc2105949 | [
"MIT"
] | null | null | null | battleships/__main__.py | dsardelic/Battleships | a66440e308e83e3f6e21ee39b85a283fc2105949 | [
"MIT"
] | null | null | null | """Battleships package entry module."""
import sys
import params
from battleships import puzzle
def run() -> None:
"""Run the puzzle solver.
The results are written in the default output file whose path is
defined in the params module.
This function catches any previously uncaught exceptions (at l... | 24.172414 | 79 | 0.666191 | 92 | 701 | 4.945652 | 0.684783 | 0.021978 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009579 | 0.25535 | 701 | 28 | 80 | 25.035714 | 0.862069 | 0.472183 | 0 | 0 | 0 | 0 | 0.041916 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | true | 0 | 0.272727 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9e3257eb2e3d2c09ec25044ced85488a7a145362 | 600 | py | Python | re_flags_dotall.py | Kalpavrikshika/python_modules | 9f338ab006dd5653fd7f65ff253bc50e0fd61fc6 | [
"Apache-2.0"
] | 1 | 2018-07-02T03:37:03.000Z | 2018-07-02T03:37:03.000Z | re_flags_dotall.py | Kalpavrikshika/python_modules | 9f338ab006dd5653fd7f65ff253bc50e0fd61fc6 | [
"Apache-2.0"
] | null | null | null | re_flags_dotall.py | Kalpavrikshika/python_modules | 9f338ab006dd5653fd7f65ff253bc50e0fd61fc6 | [
"Apache-2.0"
] | null | null | null | import re
text = 'This is some text -- with punctuation.\nA second line'
pattern = r'.+'
no_newlines = re.compile(pattern)
'''Dotall is a flag related to multiline.Dot character matches
everything in the input text except newline character.'''
#matches anything except a newline character.
dotall = re.compile(patter... | 30 | 63 | 0.696667 | 86 | 600 | 4.837209 | 0.44186 | 0.072115 | 0.076923 | 0.081731 | 0.134615 | 0.134615 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148333 | 600 | 20 | 64 | 30 | 0.81409 | 0.073333 | 0 | 0.153846 | 0 | 0 | 0.275862 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.076923 | 0.461538 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
9e354db44a0ec581a1c125a14752e1a7e3086b5e | 1,903 | py | Python | tests/_jslib/test_jslib_util.py | ynsnf/apysc | b10ffaf76ec6beb187477d0a744fca00e3efc3fb | [
"MIT"
] | 16 | 2021-04-16T02:01:29.000Z | 2022-01-01T08:53:49.000Z | tests/_jslib/test_jslib_util.py | ynsnf/apysc | b10ffaf76ec6beb187477d0a744fca00e3efc3fb | [
"MIT"
] | 613 | 2021-03-24T03:37:38.000Z | 2022-03-26T10:58:37.000Z | tests/_jslib/test_jslib_util.py | simon-ritchie/apyscript | c319f8ab2f1f5f7fad8d2a8b4fc06e7195476279 | [
"MIT"
] | 2 | 2021-06-20T07:32:58.000Z | 2021-12-26T08:22:11.000Z | import os
import shutil
from random import randint
from typing import Any
from typing import Dict
from typing import List
from retrying import retry
from apysc._jslib import jslib_util
from tests import testing_helper
@retry(stop_max_attempt_number=15, wait_fixed=randint(10, 3000))
def test_get_jslib_... | 33.385965 | 68 | 0.730426 | 289 | 1,903 | 4.411765 | 0.249135 | 0.076863 | 0.047059 | 0.059608 | 0.479216 | 0.388235 | 0.362353 | 0.30902 | 0.202353 | 0.202353 | 0 | 0.020382 | 0.174987 | 1,903 | 56 | 69 | 33.982143 | 0.79172 | 0 | 0 | 0.139535 | 0 | 0 | 0.090417 | 0.016243 | 0 | 0 | 0 | 0 | 0.186047 | 1 | 0.093023 | true | 0 | 0.209302 | 0 | 0.302326 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9e3900a8ac514ce0b74309cbf13798406aa9ac51 | 3,830 | py | Python | python_data/network_figure.py | younhapan/ystdoc | a3fee3c48fc4e35b26b70ab7d9f123be059a4a7a | [
"Apache-2.0"
] | null | null | null | python_data/network_figure.py | younhapan/ystdoc | a3fee3c48fc4e35b26b70ab7d9f123be059a4a7a | [
"Apache-2.0"
] | null | null | null | python_data/network_figure.py | younhapan/ystdoc | a3fee3c48fc4e35b26b70ab7d9f123be059a4a7a | [
"Apache-2.0"
] | null | null | null |
# -*- coding: utf-8 -*-
import pandas as pd
import numpy as np
import codecs
import networkx as nx
import matplotlib.pyplot as plt
""" 第一步:读取数据并获取姓名 """
data = pd.read_csv("data.csv",encoding ="gb2312") #中文乱码
print data[:4]
print data[u'姓名'] #获取某一列数据
print type(data[u'姓名'])
name = []
for n in data[u'姓名']:
name.... | 24.87013 | 119 | 0.652742 | 645 | 3,830 | 3.753488 | 0.255814 | 0.034696 | 0.006196 | 0.023131 | 0.315159 | 0.246592 | 0.244114 | 0.244114 | 0.228005 | 0.228005 | 0 | 0.036932 | 0.172846 | 3,830 | 153 | 120 | 25.03268 | 0.727273 | 0.1047 | 0 | 0.210526 | 0 | 0 | 0.087971 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.094737 | null | null | 0.115789 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
9e40584ddcd4c9afe3bed5a3764901f6659e472e | 191 | py | Python | core/api/urls.py | ikcam/django-skeleton | c07e5c1de41e5d1ea32ebe4e27fd4e577191893c | [
"BSD-3-Clause"
] | 3 | 2017-04-26T10:15:49.000Z | 2019-10-13T14:13:44.000Z | core/api/urls.py | ikcam/django-skeleton | c07e5c1de41e5d1ea32ebe4e27fd4e577191893c | [
"BSD-3-Clause"
] | null | null | null | core/api/urls.py | ikcam/django-skeleton | c07e5c1de41e5d1ea32ebe4e27fd4e577191893c | [
"BSD-3-Clause"
] | null | null | null | from django.urls import path, include
urlpatterns = [
path(
'panel/',
include(
('panel.api.urls', 'panel'),
namespace='panel'
)
),
]
| 14.692308 | 40 | 0.465969 | 16 | 191 | 5.5625 | 0.625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.39267 | 191 | 12 | 41 | 15.916667 | 0.767241 | 0 | 0 | 0 | 0 | 0 | 0.157068 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9e4ae196f8b558ecfac5fc7d2b612899f53872ec | 533 | py | Python | backend/Students/students_api/models.py | aposum23/StudentsDjango | bb33adc5c443081c96084012c11f4aca039af8e3 | [
"MIT"
] | 1 | 2022-03-08T21:27:13.000Z | 2022-03-08T21:27:13.000Z | backend/Students/students_api/models.py | aposum23/StudentsDjango | bb33adc5c443081c96084012c11f4aca039af8e3 | [
"MIT"
] | null | null | null | backend/Students/students_api/models.py | aposum23/StudentsDjango | bb33adc5c443081c96084012c11f4aca039af8e3 | [
"MIT"
] | null | null | null | from django.db import models
class Students(models.Model):
name = models.TextField()
stud_date = models.DateField()
stud_group = models.TextField()
cours = models.IntegerField()
individual = models.BooleanField()
photography = models.ImageField(upload_to='images/')
class Sections(models.Mode... | 26.65 | 67 | 0.737336 | 59 | 533 | 6.576271 | 0.525424 | 0.085052 | 0.092784 | 0.123711 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15197 | 533 | 19 | 68 | 28.052632 | 0.858407 | 0 | 0 | 0 | 0 | 0 | 0.013133 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 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 |
9e59437205d2e0eacdd095985e9285337e149b2e | 613 | py | Python | ts_unittest/case_api/runAllApi.py | carter-gao/AutoTestFramework | 3dcf4fac3da02db8ddd27c0cc18a2fa02064871e | [
"Apache-2.0"
] | 1 | 2022-01-23T06:52:01.000Z | 2022-01-23T06:52:01.000Z | ts_unittest/case_api/runAllApi.py | carter-gao/AutoTestFramework | 3dcf4fac3da02db8ddd27c0cc18a2fa02064871e | [
"Apache-2.0"
] | null | null | null | ts_unittest/case_api/runAllApi.py | carter-gao/AutoTestFramework | 3dcf4fac3da02db8ddd27c0cc18a2fa02064871e | [
"Apache-2.0"
] | 3 | 2020-03-31T03:44:03.000Z | 2021-01-10T13:42:32.000Z | # coding:utf-8
"""
***主程序:执行定制化接口测试用例集***
"""
from common import publicFunctions
from common.sendEmail import Email
from common.constant import api_case_top_path
from common.api.apiOperateExcel import BackupOrNewFile, AnalyzeResults
if __name__ == '__main__':
# 执行全量接口测试
# 先备份上次的回写结果文件
BackupOrNewFile().... | 22.703704 | 75 | 0.747145 | 70 | 613 | 6.2 | 0.628571 | 0.092166 | 0.046083 | 0.064516 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001927 | 0.153344 | 613 | 26 | 76 | 23.576923 | 0.834297 | 0.137031 | 0 | 0 | 0 | 0 | 0.081395 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
9e5bd0f907f7335e846a6cd3495b2f17ea55a9c0 | 2,455 | py | Python | plugins/tinder.py | vlajbert/skiptrace3 | f0330bb43ef3295bf5706f2e7b07eeb384caba43 | [
"Apache-2.0"
] | 9 | 2020-08-29T12:04:04.000Z | 2022-03-31T11:27:52.000Z | plugins/tinder.py | vlajbert/skiptrace3 | f0330bb43ef3295bf5706f2e7b07eeb384caba43 | [
"Apache-2.0"
] | null | null | null | plugins/tinder.py | vlajbert/skiptrace3 | f0330bb43ef3295bf5706f2e7b07eeb384caba43 | [
"Apache-2.0"
] | 6 | 2020-11-30T16:09:13.000Z | 2021-09-21T16:40:11.000Z | from __future__ import print_function
from __future__ import absolute_import
#
# Tinder Module - illwill
#
import re
import logging
import requests
from plugins.base import PageGrabber
from .colors import BodyColors as bc
try:
import __builtin__ as bi
except:
import builtins as bi
class TinderGrabber(PageGrabb... | 33.175676 | 110 | 0.495316 | 279 | 2,455 | 4.286738 | 0.344086 | 0.080268 | 0.053512 | 0.054348 | 0.250836 | 0.229097 | 0.20485 | 0.091973 | 0.091973 | 0 | 0 | 0.000623 | 0.345825 | 2,455 | 73 | 111 | 33.630137 | 0.744085 | 0.052546 | 0 | 0.432836 | 0 | 0 | 0.121604 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014925 | false | 0.059701 | 0.134328 | 0 | 0.208955 | 0.149254 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
9e62a76d024f88a28aae85d5f83f9212b7838a68 | 1,594 | py | Python | api_python/middlewares.py | PacoCoca/api_python | 43613e597ce28ecaca181e89570cc5dbff7104a2 | [
"MIT"
] | null | null | null | api_python/middlewares.py | PacoCoca/api_python | 43613e597ce28ecaca181e89570cc5dbff7104a2 | [
"MIT"
] | null | null | null | api_python/middlewares.py | PacoCoca/api_python | 43613e597ce28ecaca181e89570cc5dbff7104a2 | [
"MIT"
] | null | null | null | from api_python.services import auth, user
import functools
from werkzeug.exceptions import Unauthorized
from jwt import PyJWTError
from flask import g, request
def is_logged(f):
"""
Check if the user is providing a valid token
Parameters
----------
f : function
The function that need th... | 24.151515 | 97 | 0.604141 | 192 | 1,594 | 4.989583 | 0.364583 | 0.036534 | 0.034447 | 0.045929 | 0.306889 | 0.306889 | 0.093946 | 0.093946 | 0.093946 | 0 | 0 | 0.001802 | 0.303639 | 1,594 | 65 | 98 | 24.523077 | 0.861261 | 0.435383 | 0 | 0.521739 | 0 | 0 | 0.035578 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173913 | false | 0 | 0.217391 | 0 | 0.565217 | 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 |
9e6567b5e16652101be20c4dc84a0a51c80276ef | 1,985 | py | Python | setup.py | JohnGiorgi/allennlp-multi-label-classification | 2038ea8e0d441df9b953712383a4b1322cd40f55 | [
"Apache-2.0"
] | 10 | 2020-07-20T18:48:25.000Z | 2022-02-24T20:06:20.000Z | setup.py | JohnGiorgi/allennlp-multi-label-classification | 2038ea8e0d441df9b953712383a4b1322cd40f55 | [
"Apache-2.0"
] | 149 | 2020-07-20T13:21:22.000Z | 2022-03-01T21:02:57.000Z | setup.py | JohnGiorgi/allennlp-multi-label-document-classification | 2038ea8e0d441df9b953712383a4b1322cd40f55 | [
"Apache-2.0"
] | 2 | 2020-10-22T09:10:21.000Z | 2021-10-18T05:47:07.000Z | # -*- coding: utf-8 -*-
# DO NOT EDIT THIS FILE!
# This file has been autogenerated by dephell <3
# https://github.com/dephell/dephell
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
import os.path
readme = ''
here = os.path.abspath(os.path.dirname(__file__))
readme_pa... | 32.540984 | 81 | 0.610076 | 237 | 1,985 | 5.033755 | 0.548523 | 0.025147 | 0.035205 | 0.065381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036352 | 0.210076 | 1,985 | 60 | 82 | 33.083333 | 0.72449 | 0.063476 | 0 | 0.039216 | 1 | 0 | 0.484358 | 0.098166 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.078431 | 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 |
9e6ec9a075e04e6db7bd9b5581fab75ef286132f | 1,661 | py | Python | setup.py | thejunkwareproject/junkware-bot | 58beb15eeece13ea210d35d9fd5ee43b0804ec87 | [
"CC0-1.0"
] | 1 | 2016-02-18T12:50:58.000Z | 2016-02-18T12:50:58.000Z | setup.py | thejunkwareproject/junkware-bot | 58beb15eeece13ea210d35d9fd5ee43b0804ec87 | [
"CC0-1.0"
] | 4 | 2016-02-18T12:51:23.000Z | 2016-02-20T17:10:08.000Z | setup.py | thejunkwareproject/junk-generator | 58beb15eeece13ea210d35d9fd5ee43b0804ec87 | [
"CC0-1.0"
] | null | null | null | # junkware setup.py
"""Setup script for Junwkare."""
import os
import sys
try:
from setuptools import setup, find_packages
except ImportError:
from distutils.core import setup, find_packages
# Leave the following line to match the regexp [0-9]*\.[0-9]*\.[0-9]*
version = "0.0.1" # [major].[minor].[release]
... | 30.759259 | 99 | 0.642384 | 188 | 1,661 | 5.595745 | 0.664894 | 0.034221 | 0.028517 | 0.043726 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00777 | 0.225166 | 1,661 | 53 | 100 | 31.339623 | 0.809635 | 0.117399 | 0 | 0.04878 | 0 | 0 | 0.402749 | 0.031615 | 0 | 0 | 0 | 0.018868 | 0 | 1 | 0 | false | 0 | 0.121951 | 0 | 0.121951 | 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 |
9e72222b43c53953de94f6aefe69029a96e48ab6 | 596 | py | Python | ThreeBotPackages/vesting_dashboard/scripts/export.py | threefoldfoundation/tft-stellar | b36460e8dba547923778273b53fe4f0e06996db0 | [
"Apache-2.0"
] | 7 | 2020-02-05T16:10:46.000Z | 2021-04-28T10:39:20.000Z | ThreeBotPackages/vesting_dashboard/scripts/export.py | threefoldfoundation/tft-stellar | b36460e8dba547923778273b53fe4f0e06996db0 | [
"Apache-2.0"
] | 379 | 2020-01-13T10:22:21.000Z | 2022-03-23T08:59:57.000Z | ThreeBotPackages/vesting_dashboard/scripts/export.py | threefoldfoundation/tft-stellar | b36460e8dba547923778273b53fe4f0e06996db0 | [
"Apache-2.0"
] | 3 | 2020-01-24T09:56:44.000Z | 2020-08-03T21:02:38.000Z | #!/usr/bin/env python
# pylint: disable=no-value-for-parameter
import click
import os, sys
import json
from jumpscale.core.base import StoredFactory
current_full_path = os.path.dirname(os.path.abspath(__file__))
sys.path.append(current_full_path + "/../models/")
from models import VestingEntry
vesting_entry_model = ... | 25.913043 | 71 | 0.766779 | 82 | 596 | 5.280488 | 0.634146 | 0.083141 | 0.117783 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115772 | 596 | 23 | 72 | 25.913043 | 0.821632 | 0.098993 | 0 | 0 | 0 | 0 | 0.113806 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.357143 | 0 | 0.428571 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
9e7afb945292faf7c0c54ef62a4c8eb8503b07da | 3,631 | py | Python | sphecius/translators/morse.py | douglasdaly/sphecius | df8fc8dd2add157c6360c2b66cb22ac6f0241051 | [
"MIT"
] | 1 | 2019-09-26T01:08:20.000Z | 2019-09-26T01:08:20.000Z | sphecius/translators/morse.py | douglasdaly/sphecius | df8fc8dd2add157c6360c2b66cb22ac6f0241051 | [
"MIT"
] | null | null | null | sphecius/translators/morse.py | douglasdaly/sphecius | df8fc8dd2add157c6360c2b66cb22ac6f0241051 | [
"MIT"
] | 1 | 2019-09-26T01:08:19.000Z | 2019-09-26T01:08:19.000Z | # -*- coding: utf-8 -*-
"""
morse.py
Class for converting between English and morse code
@author: Douglas Daly
@date: 1/6/2017
"""
#
# Class Definition
#
class Morse(object):
"""
Morse Code Translation Class
"""
def __init__(self):
""" Default Constructor
"""
dict_tup ... | 28.367188 | 75 | 0.449463 | 372 | 3,631 | 4.091398 | 0.271505 | 0.260184 | 0.042707 | 0.029566 | 0.123522 | 0.026281 | 0.026281 | 0 | 0 | 0 | 0 | 0.00904 | 0.360231 | 3,631 | 127 | 76 | 28.590551 | 0.646147 | 0.126962 | 0 | 0.058824 | 0 | 0 | 0.066174 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0 | 0 | 0.117647 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9e7be5160bffb25a0a034ede911c56f131307d15 | 41,915 | py | Python | webenmr/controllers/accessGIT.py | andreagia/WEBNMR | 512a8cc04cf69300796585feae722614501389a9 | [
"Apache-2.0"
] | null | null | null | webenmr/controllers/accessGIT.py | andreagia/WEBNMR | 512a8cc04cf69300796585feae722614501389a9 | [
"Apache-2.0"
] | null | null | null | webenmr/controllers/accessGIT.py | andreagia/WEBNMR | 512a8cc04cf69300796585feae722614501389a9 | [
"Apache-2.0"
] | null | null | null | import logging
import os
import hashlib
import random
import shutil
from pylons import request,response, session, tmpl_context as c
from pylons.controllers.util import abort, redirect
from pylons import config
import pycurl
from sqlalchemy.sql import and_
from webenmr.lib.base import *
from webenmr.lib import x509_cert... | 43.30062 | 237 | 0.51268 | 4,428 | 41,915 | 4.752936 | 0.117209 | 0.015632 | 0.025658 | 0.011404 | 0.66597 | 0.62677 | 0.60458 | 0.573126 | 0.545377 | 0.529127 | 0 | 0.016996 | 0.361303 | 41,915 | 967 | 238 | 43.345398 | 0.769153 | 0.156722 | 0 | 0.554745 | 0 | 0.00292 | 0.162966 | 0.016615 | 0 | 0 | 0 | 0.001034 | 0 | 0 | null | null | 0.018978 | 0.039416 | null | null | 0.131387 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
9e8004636dbcd91f6412315f03adf87555f078d4 | 703 | py | Python | PrintUniqueReadSupport.py | EichlerLab/chm1_scripts | 55d1783139f4ccc6e41c79812920785b1eaea65e | [
"MIT"
] | 5 | 2016-04-21T20:00:01.000Z | 2020-03-12T16:35:55.000Z | PrintUniqueReadSupport.py | EichlerLab/chm1_scripts | 55d1783139f4ccc6e41c79812920785b1eaea65e | [
"MIT"
] | null | null | null | PrintUniqueReadSupport.py | EichlerLab/chm1_scripts | 55d1783139f4ccc6e41c79812920785b1eaea65e | [
"MIT"
] | 8 | 2015-09-15T07:08:06.000Z | 2021-07-13T02:25:12.000Z | #!/usr/bin/env python
import sys
if (sys.argv[1] == "-"):
inFile = sys.stdin
else:
inFile = open(sys.argv[1])
v=False
if (len(sys.argv) > 1 and sys.argv[2] == "-v"):
v=True
for line in inFile:
vals = line.split()
reads = vals[3].split(';')
readNames = {}
for read in reads:
bas... | 21.96875 | 47 | 0.523471 | 93 | 703 | 3.956989 | 0.419355 | 0.076087 | 0.065217 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018293 | 0.300142 | 703 | 31 | 48 | 22.677419 | 0.729675 | 0.02845 | 0 | 0.076923 | 0 | 0 | 0.013196 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.038462 | 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 |
9e8f5c7b4a4879cf0edee85527dbbfe288a210ad | 342 | py | Python | Strings/Check Palindrome.py | SaiPrasanth212/Coding-ninjas-Introduction-To-Python | f6aabc3b7b0f2ae82e2870c8f2bd1f37e3fe3005 | [
"MIT"
] | 2 | 2021-12-13T19:28:40.000Z | 2022-03-07T16:36:29.000Z | Strings/Check Palindrome.py | SaiPrasanth212/Coding-ninjas-Introduction-To-Python | f6aabc3b7b0f2ae82e2870c8f2bd1f37e3fe3005 | [
"MIT"
] | null | null | null | Strings/Check Palindrome.py | SaiPrasanth212/Coding-ninjas-Introduction-To-Python | f6aabc3b7b0f2ae82e2870c8f2bd1f37e3fe3005 | [
"MIT"
] | null | null | null |
from sys import stdin
def isPalindrome(string):
i = 0
j = len(string) - 1
while(i < j):
if string[i] != string[j]:
return False
i = i + 1
j = j - 1
return True
#main
string = stdin.readline().strip();
ans = isPalindrome(string)
if ans :
print('true')
else ... | 14.25 | 34 | 0.523392 | 46 | 342 | 3.891304 | 0.5 | 0.201117 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017857 | 0.345029 | 342 | 23 | 35 | 14.869565 | 0.78125 | 0.011696 | 0 | 0 | 0 | 0 | 0.026866 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.0625 | 0 | 0.25 | 0.125 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9e919d814c47eb7e25a5d12794efe3a5c7e565cc | 1,373 | py | Python | Autonomous/auto_trav/scripts/p3.py | leander-dsouza/URC-2019 | 6773e6b66dfb840bdbb4463441e8a855b42b1123 | [
"MIT"
] | 5 | 2020-05-10T11:03:48.000Z | 2022-01-17T07:00:40.000Z | Autonomous/auto_trav/scripts/p3.py | leander-dsouza/URC-2019 | 6773e6b66dfb840bdbb4463441e8a855b42b1123 | [
"MIT"
] | null | null | null | Autonomous/auto_trav/scripts/p3.py | leander-dsouza/URC-2019 | 6773e6b66dfb840bdbb4463441e8a855b42b1123 | [
"MIT"
] | 3 | 2020-07-13T14:11:12.000Z | 2022-01-07T18:05:05.000Z | #!/usr/bin/env python
import pyrealsense2 as rs
import rospy
from std_msgs.msg import String
lsum=0
rsum=0
val="Straight"
def distfunc():
global rsum,lsum,val
try:
pipeline = rs.pipeline()
pipeline.start()
while True:
frames = pipeline.wait_for_frames()
depth = frames.get_depth_frame... | 24.963636 | 64 | 0.573197 | 185 | 1,373 | 4.151351 | 0.405405 | 0.072917 | 0.03125 | 0.057292 | 0.097656 | 0.097656 | 0.097656 | 0.097656 | 0.097656 | 0 | 0 | 0.047771 | 0.313911 | 1,373 | 54 | 65 | 25.425926 | 0.767516 | 0.014567 | 0 | 0.26 | 0 | 0 | 0.06287 | 0.017012 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.04 | 0.06 | null | null | 0.06 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
9e9cf4c96e4cb21881fc00c5e8bad0d94ffbbed3 | 8,062 | py | Python | qmeq/approach/base/neumann1.py | gedaskir/test-deploy-qmeq | 47f1176df5341a0f251657c299a4a98aaac40833 | [
"BSD-2-Clause"
] | 16 | 2016-12-14T09:21:16.000Z | 2022-02-23T08:01:45.000Z | qmeq/approach/base/neumann1.py | gedaskir/test-deploy-qmeq | 47f1176df5341a0f251657c299a4a98aaac40833 | [
"BSD-2-Clause"
] | 3 | 2018-02-03T19:13:01.000Z | 2021-06-09T14:10:28.000Z | qmeq/approach/base/neumann1.py | gedaskir/test-deploy-qmeq | 47f1176df5341a0f251657c299a4a98aaac40833 | [
"BSD-2-Clause"
] | 7 | 2017-07-09T04:46:42.000Z | 2021-04-26T16:27:55.000Z | """Module containing python functions, which generate first order 1vN kernel."""
import numpy as np
import itertools
from ...wrappers.mytypes import complexnp
from ...wrappers.mytypes import doublenp
from ...specfunc.specfunc import func_1vN
from ..aprclass import Approach
# ---------------------------------------... | 43.815217 | 102 | 0.490573 | 963 | 8,062 | 4.004154 | 0.149533 | 0.026971 | 0.020747 | 0.028527 | 0.44139 | 0.369295 | 0.28138 | 0.26582 | 0.245073 | 0.158973 | 0 | 0.02493 | 0.338254 | 8,062 | 183 | 103 | 44.054645 | 0.697844 | 0.173034 | 0 | 0.252033 | 1 | 0 | 0.000773 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04065 | false | 0 | 0.04878 | 0 | 0.105691 | 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 |
9ea3f2529f1f36c045a6ff35053f4b75b1e36971 | 758 | py | Python | pytglib/api/functions/get_user_privacy_setting_rules.py | iTeam-co/pytglib | e5e75e0a85f89b77762209b32a61b0a883c0ae61 | [
"MIT"
] | 6 | 2019-10-30T08:57:27.000Z | 2021-02-08T14:17:43.000Z | pytglib/api/functions/get_user_privacy_setting_rules.py | iTeam-co/python-telegram | e5e75e0a85f89b77762209b32a61b0a883c0ae61 | [
"MIT"
] | 1 | 2021-08-19T05:44:10.000Z | 2021-08-19T07:14:56.000Z | pytglib/api/functions/get_user_privacy_setting_rules.py | iTeam-co/python-telegram | e5e75e0a85f89b77762209b32a61b0a883c0ae61 | [
"MIT"
] | 5 | 2019-12-04T05:30:39.000Z | 2021-05-21T18:23:32.000Z |
from ..utils import Object
class GetUserPrivacySettingRules(Object):
"""
Returns the current privacy settings
Attributes:
ID (:obj:`str`): ``GetUserPrivacySettingRules``
Args:
setting (:class:`telegram.api.types.UserPrivacySetting`):
The privacy setting
Returns:
... | 22.969697 | 65 | 0.647757 | 65 | 758 | 7.492308 | 0.553846 | 0.053388 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.246702 | 758 | 32 | 66 | 23.6875 | 0.85289 | 0.387863 | 0 | 0 | 0 | 0 | 0.143902 | 0.126829 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.1 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
9ea556467a846b73441e808e5b8a8902e9906e64 | 6,662 | py | Python | caterings/migrations/0001_initial.py | HotStew/respa | 04f39efb15b4f4206a122e665f8377c7198e1f25 | [
"MIT"
] | 49 | 2015-10-21T06:25:31.000Z | 2022-03-20T07:24:20.000Z | caterings/migrations/0001_initial.py | HotStew/respa | 04f39efb15b4f4206a122e665f8377c7198e1f25 | [
"MIT"
] | 728 | 2015-06-24T13:26:54.000Z | 2022-03-24T12:18:41.000Z | caterings/migrations/0001_initial.py | digipointtku/respa | a529e0df4d3f072df7801adb5bf97a5f4abd1243 | [
"MIT"
] | 46 | 2015-06-26T10:52:57.000Z | 2021-12-17T09:38:25.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10.7 on 2017-05-15 12:37
from __future__ import unicode_literals
from django.conf import settings
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dep... | 56.940171 | 192 | 0.625488 | 681 | 6,662 | 5.903084 | 0.167401 | 0.13408 | 0.085821 | 0.056716 | 0.627612 | 0.588308 | 0.565174 | 0.555721 | 0.555721 | 0.532587 | 0 | 0.010501 | 0.24242 | 6,662 | 116 | 193 | 57.431034 | 0.786011 | 0.010207 | 0 | 0.425926 | 1 | 0 | 0.238355 | 0.037324 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.046296 | 0 | 0.083333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9ea77b517563e166095c1e3c0bebc9d0c59178ec | 429 | py | Python | example/fib3.py | onesuper/Easylab | 552608815b0d7e8a9f5ac988e96e3acf3dafc45c | [
"MIT"
] | 1 | 2015-02-02T12:21:06.000Z | 2015-02-02T12:21:06.000Z | example/fib3.py | onesuper/Easylab | 552608815b0d7e8a9f5ac988e96e3acf3dafc45c | [
"MIT"
] | null | null | null | example/fib3.py | onesuper/Easylab | 552608815b0d7e8a9f5ac988e96e3acf3dafc45c | [
"MIT"
] | null | null | null | #!/usr/bin/python
# O(1) fibonacci
import sys
import easylab.easylab as e
from math import sqrt
# read argumeny
if len(sys.argv ) < 2:
print "wrong arguments"
sys.exit(1)
N = int(sys.argv[1])
easylab = e.Easylab("fib3")
easylab.start()
# go
r = int(((1+sqrt(5))/2)**N/sqrt(5))
easylab.end()
# log it
log... | 13 | 56 | 0.648019 | 71 | 429 | 3.915493 | 0.56338 | 0.05036 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025352 | 0.172494 | 429 | 32 | 57 | 13.40625 | 0.757746 | 0.128205 | 0 | 0 | 0 | 0 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.2 | null | null | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9ea9aa0e44d5de2c9e717bda205a15166aed1635 | 1,139 | py | Python | base/tests/functional_tests.py | mevlanaayas/Skywalker | 48174024d05538a69b5dd8eec2ed581da82ae286 | [
"MIT"
] | null | null | null | base/tests/functional_tests.py | mevlanaayas/Skywalker | 48174024d05538a69b5dd8eec2ed581da82ae286 | [
"MIT"
] | null | null | null | base/tests/functional_tests.py | mevlanaayas/Skywalker | 48174024d05538a69b5dd8eec2ed581da82ae286 | [
"MIT"
] | null | null | null | """
What I call functional tests, some people prefer to call acceptance tests, or end-to-end
tests. The main point is that these kinds of tests look at how the whole application func‐
tions, from the outside. Another term is black box test, because the test doesn’t know
anything about the internals of the system under ... | 32.542857 | 110 | 0.687445 | 167 | 1,139 | 4.622754 | 0.640719 | 0.071244 | 0.041451 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011416 | 0.230904 | 1,139 | 34 | 111 | 33.5 | 0.868721 | 0.502195 | 0 | 0 | 0 | 0 | 0.139241 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 1 | 0.25 | false | 0 | 0.166667 | 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 |
9eb6174a025f4fb8f2a979ce744351aee5ea744f | 935 | py | Python | accounting_integrations/general/migrations/0002_file.py | fylein/fyle-accounting-integrations | f1b4d01c815235dff9070f3f79313a3234be9b66 | [
"MIT"
] | 1 | 2019-05-22T06:17:24.000Z | 2019-05-22T06:17:24.000Z | accounting_integrations/general/migrations/0002_file.py | fylein/fyle-accounting-integrations | f1b4d01c815235dff9070f3f79313a3234be9b66 | [
"MIT"
] | null | null | null | accounting_integrations/general/migrations/0002_file.py | fylein/fyle-accounting-integrations | f1b4d01c815235dff9070f3f79313a3234be9b66 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.1 on 2019-05-16 11:28
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('contenttypes', '0002_remove_content_type_name'),
('general', '0001_initial'),
]
operations = [
migr... | 34.62963 | 128 | 0.602139 | 97 | 935 | 5.670103 | 0.670103 | 0.043636 | 0.050909 | 0.08 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037196 | 0.252406 | 935 | 26 | 129 | 35.961538 | 0.749642 | 0.048128 | 0 | 0 | 1 | 0 | 0.170045 | 0.059685 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.25 | 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 |
9ec34ac76e0cdc5d06303965ec6b6d97697db9a3 | 1,676 | py | Python | Solver/PrimitiveMonteCarloMethod.py | y701311/Othello | f8a46ebc0dbc4e9fcac237482aaf8e54babffcef | [
"MIT"
] | 2 | 2022-02-04T15:52:50.000Z | 2022-02-09T01:26:24.000Z | Solver/PrimitiveMonteCarloMethod.py | y701311/Othello | f8a46ebc0dbc4e9fcac237482aaf8e54babffcef | [
"MIT"
] | 1 | 2022-02-04T16:05:17.000Z | 2022-02-04T16:30:33.000Z | Solver/PrimitiveMonteCarloMethod.py | y701311/Othello | f8a46ebc0dbc4e9fcac237482aaf8e54babffcef | [
"MIT"
] | null | null | null | import numpy as np
from copy import deepcopy
from Board.Board import Board
from Board.Disc import Disc
from Solver.Solver import Solver
from Location.Location import Location
# 原始モンテカルロ法
class PrimitiveMonteCarloMethod(Solver):
def __init__(self, samplingNum:int=100) -> None:
self.samplingNum = samplingN... | 32.230769 | 82 | 0.615155 | 142 | 1,676 | 7.225352 | 0.422535 | 0.05848 | 0.02729 | 0.08577 | 0.126706 | 0.126706 | 0.126706 | 0 | 0 | 0 | 0 | 0.007779 | 0.309666 | 1,676 | 51 | 83 | 32.862745 | 0.878997 | 0.061456 | 0 | 0.055556 | 0 | 0 | 0.002556 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0.055556 | 0.166667 | 0 | 0.361111 | 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 |
7b4a27ba21dba5bbc3b913cdc0783ab219efcb6d | 379 | py | Python | month05/DataStructure/day03_course/day03_code/binaryTreeExercise02.py | chaofan-zheng/python_learning_code | 5d05848911d55aa49eaee4afd7ffd80536fad7aa | [
"Apache-2.0"
] | null | null | null | month05/DataStructure/day03_course/day03_code/binaryTreeExercise02.py | chaofan-zheng/python_learning_code | 5d05848911d55aa49eaee4afd7ffd80536fad7aa | [
"Apache-2.0"
] | null | null | null | month05/DataStructure/day03_course/day03_code/binaryTreeExercise02.py | chaofan-zheng/python_learning_code | 5d05848911d55aa49eaee4afd7ffd80536fad7aa | [
"Apache-2.0"
] | null | null | null | """一个青蛙一次可以跳1级台阶或2级台阶,一共有n级台阶,问青蛙跳到顶部有几种跳法?(递归)"""
# 思路:找规律
# t=1 1
# t = 2 2
# t = 3 3
# t = 4 5
# t = 5 8
# 发现是一个斐波那契数列
# 思路2 递归f(n)
# 考虑最后一跳
# 最后一跳 跳1级台阶,有f(n-1)种跳法
# 最后一跳 跳2级台阶,有f(n-2)种跳法
# 总的跳法种类f(n)=f(n-1)+f(n-2)
def f(n):
# 递归的出口
# 因为有两个递归,所以要写两个递归的出口
if n == 1:
return 1
if n == 2:
... | 13.535714 | 50 | 0.522427 | 72 | 379 | 2.75 | 0.444444 | 0.050505 | 0.030303 | 0.040404 | 0.060606 | 0.060606 | 0 | 0 | 0 | 0 | 0 | 0.096296 | 0.287599 | 379 | 27 | 51 | 14.037037 | 0.637037 | 0.567282 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.571429 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
7b4c3785bebf365ee2a55795f19deb8b6dd2d7b6 | 5,303 | py | Python | pkgs/ops-pkg/src/genie/libs/ops/msdp/iosxe/tests/msdp_output.py | miott/genielibs | 6464642cdd67aa2367bdbb12561af4bb060e5e62 | [
"Apache-2.0"
] | 94 | 2018-04-30T20:29:15.000Z | 2022-03-29T13:40:31.000Z | pkgs/ops-pkg/src/genie/libs/ops/msdp/iosxe/tests/msdp_output.py | miott/genielibs | 6464642cdd67aa2367bdbb12561af4bb060e5e62 | [
"Apache-2.0"
] | 67 | 2018-12-06T21:08:09.000Z | 2022-03-29T18:00:46.000Z | pkgs/ops-pkg/src/genie/libs/ops/msdp/iosxe/tests/msdp_output.py | miott/genielibs | 6464642cdd67aa2367bdbb12561af4bb060e5e62 | [
"Apache-2.0"
] | 49 | 2018-06-29T18:59:03.000Z | 2022-03-10T02:07:59.000Z | '''
MSDP Genie Ops Object Outputs for IOSXE
'''
class MsdpOutput(object):
# 'show ip msdp peer'
ShowIpMsdpPeer = {
'vrf': {
'default': {
'peer': {
'10.1.100.4': {
'session_state': 'Up',
'pe... | 41.108527 | 71 | 0.239487 | 331 | 5,303 | 3.634441 | 0.287009 | 0.01995 | 0.0399 | 0.040732 | 0.463009 | 0.407315 | 0.33749 | 0.269327 | 0.269327 | 0.269327 | 0 | 0.112766 | 0.645484 | 5,303 | 128 | 72 | 41.429688 | 0.527128 | 0.01584 | 0 | 0.559322 | 0 | 0 | 0.233812 | 0.013974 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0.033898 | 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 |
7b4c83fbff397309226262acc1b3cddf56c25ce5 | 634 | py | Python | projectmanager/migrations/0015_auto_20200925_0025.py | leonolan2020/phoenix | b5956a7003e548f01255cbd5d0d76cfd0ac77a81 | [
"MIT"
] | 1 | 2020-09-19T21:56:40.000Z | 2020-09-19T21:56:40.000Z | projectmanager/migrations/0015_auto_20200925_0025.py | leonolan2020/phoenix | b5956a7003e548f01255cbd5d0d76cfd0ac77a81 | [
"MIT"
] | null | null | null | projectmanager/migrations/0015_auto_20200925_0025.py | leonolan2020/phoenix | b5956a7003e548f01255cbd5d0d76cfd0ac77a81 | [
"MIT"
] | 5 | 2020-09-18T18:53:03.000Z | 2020-10-21T14:42:00.000Z | # Generated by Django 3.1 on 2020-09-24 20:55
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('projectmanager', '0014_workunit_childs'),
]
operations = [
migrations.RemoveField(
model_name='wo... | 26.416667 | 158 | 0.62776 | 67 | 634 | 5.835821 | 0.58209 | 0.061381 | 0.071611 | 0.112532 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038055 | 0.253943 | 634 | 23 | 159 | 27.565217 | 0.788584 | 0.067823 | 0 | 0.235294 | 1 | 0 | 0.154499 | 0.039049 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.117647 | 0 | 0.294118 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7b5a589af603f64ae6459814301cea0f42017f62 | 387 | py | Python | Music_Pro/store/migrations/0003_moneda_descripcion.py | sc2-zobka/Music_Pro | 7d81f49787ac8a4571a3f3b129c44d8cc2386806 | [
"MIT"
] | 1 | 2021-06-29T02:39:07.000Z | 2021-06-29T02:39:07.000Z | Music_Pro/store/migrations/0003_moneda_descripcion.py | sc2-zobka/Music_Pro | 7d81f49787ac8a4571a3f3b129c44d8cc2386806 | [
"MIT"
] | null | null | null | Music_Pro/store/migrations/0003_moneda_descripcion.py | sc2-zobka/Music_Pro | 7d81f49787ac8a4571a3f3b129c44d8cc2386806 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.3 on 2021-07-01 06:51
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('store', '0002_moneda'),
]
operations = [
migrations.AddField(
model_name='moneda',
name='descripcion',
f... | 20.368421 | 62 | 0.586563 | 41 | 387 | 5.463415 | 0.804878 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076364 | 0.289406 | 387 | 18 | 63 | 21.5 | 0.738182 | 0.116279 | 0 | 0 | 1 | 0 | 0.097059 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7b5d13541548f08305f0bfccc116ef17943ff9a6 | 1,728 | py | Python | Maverick/Config.py | Lumin0ux/Maverick | 4ca5c0d212f473f1687ae62bb520b48fcb817740 | [
"MIT"
] | null | null | null | Maverick/Config.py | Lumin0ux/Maverick | 4ca5c0d212f473f1687ae62bb520b48fcb817740 | [
"MIT"
] | null | null | null | Maverick/Config.py | Lumin0ux/Maverick | 4ca5c0d212f473f1687ae62bb520b48fcb817740 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Configuration
"""
import os
import sys
class Config(object):
def update_fromfile(self, filepath=None):
if filepath is None:
return
sys.path.append(os.path.dirname(filepath))
name, _ = os.path.splitext(os.path.basename(filepath))
... | 21.6 | 70 | 0.506366 | 166 | 1,728 | 5.054217 | 0.578313 | 0.021454 | 0.021454 | 0.033373 | 0.126341 | 0.126341 | 0.126341 | 0.126341 | 0.126341 | 0.126341 | 0 | 0.00455 | 0.364005 | 1,728 | 79 | 71 | 21.873418 | 0.758872 | 0.033565 | 0 | 0.101695 | 0 | 0 | 0.095449 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033898 | false | 0 | 0.050847 | 0 | 0.559322 | 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 |
7b5d5e2b1d2dc1518484b3ce335216cda28b43df | 1,694 | py | Python | bstgames/tests/test_views.py | lucasazevedo/bstgames | ef03edc39c7a06995250fa0bc5d1dccf1ec1414e | [
"MIT"
] | null | null | null | bstgames/tests/test_views.py | lucasazevedo/bstgames | ef03edc39c7a06995250fa0bc5d1dccf1ec1414e | [
"MIT"
] | null | null | null | bstgames/tests/test_views.py | lucasazevedo/bstgames | ef03edc39c7a06995250fa0bc5d1dccf1ec1414e | [
"MIT"
] | null | null | null | from django.test import TestCase
from django.urls import reverse_lazy
from django.contrib.auth import get_user_model
from bstgames.models import GamePlatform
class HomeViewTestCase(TestCase):
def setUp(self):
for x in range(10):
GamePlatform.objects.create(platform=f'platform_{x}')
def ... | 36.826087 | 85 | 0.707792 | 202 | 1,694 | 5.782178 | 0.30198 | 0.056507 | 0.081336 | 0.068493 | 0.465753 | 0.378425 | 0.378425 | 0.268836 | 0.268836 | 0.268836 | 0 | 0.007919 | 0.180047 | 1,694 | 45 | 86 | 37.644444 | 0.832973 | 0 | 0 | 0.264706 | 0 | 0 | 0.077922 | 0.012987 | 0 | 0 | 0 | 0 | 0.264706 | 1 | 0.147059 | false | 0.088235 | 0.117647 | 0 | 0.323529 | 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 |
7b5d66ad3e4bba1906b6b28736c198c1370a677f | 47,569 | py | Python | tests/test_ahp.py | leeeeeeeee2/AHPy | 5a6468957402e57753a40833f08e4e6015f37952 | [
"MIT"
] | 36 | 2020-04-29T21:27:27.000Z | 2022-03-24T17:39:35.000Z | tests/test_ahp.py | leeeeeeeee2/AHPy | 5a6468957402e57753a40833f08e4e6015f37952 | [
"MIT"
] | 7 | 2021-06-25T16:30:19.000Z | 2022-01-25T08:30:21.000Z | tests/test_ahp.py | leeeeeeeee2/AHPy | 5a6468957402e57753a40833f08e4e6015f37952 | [
"MIT"
] | 15 | 2020-07-22T07:58:19.000Z | 2022-03-08T10:23:26.000Z | import itertools
import pytest
import ahpy
# Example from Saaty, Thomas L., 'Decision making with the analytic hierarchy process,'
# Int. J. Services Sciences, 1:1, 2008, pp. 83-98.
drinks = {('coffee', 'wine'): 9, ('coffee', 'tea'): 5, ('coffee', 'beer'): 2, ('coffee', 'soda'): 1,
('coffee', 'milk'): 1,
... | 75.148499 | 138 | 0.315394 | 3,684 | 47,569 | 3.990499 | 0.106949 | 0.050881 | 0.007619 | 0.02544 | 0.45031 | 0.410244 | 0.365485 | 0.325692 | 0.264948 | 0.23359 | 0 | 0.110551 | 0.545713 | 47,569 | 632 | 139 | 75.267405 | 0.56969 | 0.014463 | 0 | 0.254237 | 0 | 0 | 0.18521 | 0.000555 | 0 | 0 | 0 | 0 | 0.045198 | 1 | 0.047081 | false | 0.018832 | 0.00565 | 0 | 0.052731 | 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 |
7b64cb8632979433249edc53f7cbf9b810581d89 | 228 | py | Python | Curso/Challenges/URI/1116DividingXByY.py | DavidBitner/Aprendizado-Python | e1dcf18f9473c697fc2302f34a2d3e025ca6c969 | [
"MIT"
] | null | null | null | Curso/Challenges/URI/1116DividingXByY.py | DavidBitner/Aprendizado-Python | e1dcf18f9473c697fc2302f34a2d3e025ca6c969 | [
"MIT"
] | null | null | null | Curso/Challenges/URI/1116DividingXByY.py | DavidBitner/Aprendizado-Python | e1dcf18f9473c697fc2302f34a2d3e025ca6c969 | [
"MIT"
] | null | null | null | entrada = int(input())
for i in range(0, entrada):
A, B = input().split(" ")
x, y = int(A), int(B)
if y == 0:
print("divisao impossivel")
else:
resultado = x / y
print(f"{resultado:.1f}")
| 22.8 | 35 | 0.5 | 33 | 228 | 3.454545 | 0.636364 | 0.035088 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019108 | 0.311404 | 228 | 9 | 36 | 25.333333 | 0.707006 | 0 | 0 | 0 | 0 | 0 | 0.149123 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.222222 | 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.