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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
47e2ed3f70d37b9f0166bbc8cfe18eb237519c88 | 913 | py | Python | guardian/states/ending.py | alisonbnt/watchtower | 77cdb4731f6903f9c032f11e5ec1889335b814b9 | [
"MIT"
] | 1 | 2016-05-31T19:20:37.000Z | 2016-05-31T19:20:37.000Z | guardian/states/ending.py | alisonbnt/watchtower | 77cdb4731f6903f9c032f11e5ec1889335b814b9 | [
"MIT"
] | null | null | null | guardian/states/ending.py | alisonbnt/watchtower | 77cdb4731f6903f9c032f11e5ec1889335b814b9 | [
"MIT"
] | null | null | null | from .base import *
from colorama import Fore
class EndingState(State):
def run(self, arguments={}):
print()
print_data("This is the end of the journey. You are welcome "
"back at any time in here")
print()
print_data("There will be always creatures in the shado... | 29.451613 | 77 | 0.571742 | 114 | 913 | 4.526316 | 0.649123 | 0.116279 | 0.162791 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.342826 | 913 | 30 | 78 | 30.433333 | 0.86 | 0 | 0 | 0.304348 | 0 | 0 | 0.455641 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.086957 | 0 | 0.173913 | 0.565217 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
47e65e7cc168846b358f8a26eed85963915c08c6 | 17,571 | py | Python | Source_code/Three-terminal_selfenergy_method/figures/thesis_plots_Anna/Three-terminal_selfenergy_method_plots.py | AnnaBirk/Master_project | 67de732bd969ce423e2f9bd246e358c848436816 | [
"MIT"
] | 2 | 2019-11-11T18:04:18.000Z | 2022-01-18T12:39:00.000Z | Source_code/Three-terminal_selfenergy_method/figures/thesis_plots_Anna/Three-terminal_selfenergy_method_plots.py | AnnaBirk/Master_project | 67de732bd969ce423e2f9bd246e358c848436816 | [
"MIT"
] | null | null | null | Source_code/Three-terminal_selfenergy_method/figures/thesis_plots_Anna/Three-terminal_selfenergy_method_plots.py | AnnaBirk/Master_project | 67de732bd969ce423e2f9bd246e358c848436816 | [
"MIT"
] | 1 | 2020-05-16T05:38:52.000Z | 2020-05-16T05:38:52.000Z | """
In this file, we plot already generated data for self-energy model of three-terminal device,
using functions from the module thesis_plot_library.
"""
from thesis_plot_library.thesis_plot_library import \
plot_pcolormesh_4subplots_wzoom_a, \
calc_plot_w... | 48.808333 | 117 | 0.549428 | 2,269 | 17,571 | 3.897752 | 0.179815 | 0.018996 | 0.00882 | 0.004071 | 0.412596 | 0.340344 | 0.295907 | 0.225464 | 0.184193 | 0.153777 | 0 | 0.042377 | 0.362074 | 17,571 | 360 | 118 | 48.808333 | 0.746632 | 0.215526 | 0 | 0.180488 | 1 | 0.014634 | 0.128201 | 0.05753 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.019512 | 0 | 0.019512 | 0.004878 | 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 |
47ece21be503466c0507ceaebe77be2d86605052 | 519 | py | Python | backend/currency_exchanger/wallets/views.py | norbertcyran/currency-exchanger | 8896c1ad3981662d6ca0395e4c0aba6ac93f9eac | [
"MIT"
] | null | null | null | backend/currency_exchanger/wallets/views.py | norbertcyran/currency-exchanger | 8896c1ad3981662d6ca0395e4c0aba6ac93f9eac | [
"MIT"
] | null | null | null | backend/currency_exchanger/wallets/views.py | norbertcyran/currency-exchanger | 8896c1ad3981662d6ca0395e4c0aba6ac93f9eac | [
"MIT"
] | null | null | null | from currency_exchanger.wallets.models import Wallet
from currency_exchanger.wallets.serializers import WalletSerializer
from rest_framework.permissions import IsAuthenticated
from rest_framework.response import Response
from rest_framework.views import APIView
class WalletView(APIView):
permission_classes = [IsA... | 34.6 | 67 | 0.801541 | 58 | 519 | 7.068966 | 0.517241 | 0.058537 | 0.12439 | 0.136585 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136802 | 519 | 14 | 68 | 37.071429 | 0.915179 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.454545 | 0 | 0.818182 | 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 |
47f3670fa15ed640817ada6b5408dd26bd4ad3c2 | 1,941 | py | Python | tests/settings.py | nnsnodnb/twitter-oauth-django | e259edbeb21bac77b87cc6d4366f62290e1d2508 | [
"MIT"
] | null | null | null | tests/settings.py | nnsnodnb/twitter-oauth-django | e259edbeb21bac77b87cc6d4366f62290e1d2508 | [
"MIT"
] | 1 | 2018-07-29T16:45:24.000Z | 2018-07-29T17:55:26.000Z | tests/settings.py | nnsnodnb/twitter-oauth-django | e259edbeb21bac77b87cc6d4366f62290e1d2508 | [
"MIT"
] | 1 | 2019-04-07T05:05:07.000Z | 2019-04-07T05:05:07.000Z | import os
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
DEBUG = True
ADMINS = (
('admin', 'admin@localhost')
)
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(BASE_DIR, 'test_db.sqlite3'),
}
}
TIME_ZONE = 'America/Chic... | 22.569767 | 70 | 0.666151 | 202 | 1,941 | 6.188119 | 0.455446 | 0.1352 | 0.0544 | 0.0224 | 0.0272 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010828 | 0.191139 | 1,941 | 85 | 71 | 22.835294 | 0.78535 | 0 | 0 | 0 | 0 | 0.015625 | 0.524987 | 0.408552 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.015625 | 0 | 0.015625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
47f895999cd43bebc0e37104067507a59dbd53fb | 5,662 | py | Python | web/app.py | aalcala07/home_dashboard | 3a6606f4afc457d44fc238972bc7e8d36a64ba7b | [
"MIT"
] | null | null | null | web/app.py | aalcala07/home_dashboard | 3a6606f4afc457d44fc238972bc7e8d36a64ba7b | [
"MIT"
] | 6 | 2022-02-11T14:14:08.000Z | 2022-02-26T05:15:29.000Z | web/app.py | aalcala07/home_dashboard | 3a6606f4afc457d44fc238972bc7e8d36a64ba7b | [
"MIT"
] | 1 | 2022-02-11T01:19:02.000Z | 2022-02-11T01:19:02.000Z | from flask import Flask, session, render_template, redirect, request, flash, get_flashed_messages, abort
from utilities import generate_secret, store_password, check_password, is_registered, get_device_info, get_display, get_services, get_templates, set_config_key, toggle_service, get_locations, save_service_config
fro... | 29.643979 | 211 | 0.638997 | 674 | 5,662 | 5.192878 | 0.191395 | 0.076 | 0.054286 | 0.032 | 0.254857 | 0.142286 | 0.102857 | 0.102857 | 0.093143 | 0.093143 | 0 | 0.00358 | 0.210703 | 5,662 | 191 | 212 | 29.643979 | 0.779593 | 0.018898 | 0 | 0.223881 | 1 | 0 | 0.175612 | 0.034582 | 0 | 0 | 0 | 0 | 0 | 1 | 0.104478 | false | 0.029851 | 0.029851 | 0.014925 | 0.365672 | 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 |
47fbd3ccf3641e7a764e66aeacf5233828662e2c | 4,182 | py | Python | src/maintenance/verifyarchive.py | secuof/binaryanalysis | 5937fbb7e55f3a0808f31ee4f9e75b859d98c012 | [
"Apache-2.0"
] | 78 | 2016-09-29T08:26:50.000Z | 2022-02-21T23:41:23.000Z | src/maintenance/verifyarchive.py | secuof/binaryanalysis | 5937fbb7e55f3a0808f31ee4f9e75b859d98c012 | [
"Apache-2.0"
] | 7 | 2016-10-14T14:32:00.000Z | 2018-03-17T17:28:42.000Z | src/maintenance/verifyarchive.py | secuof/binaryanalysis | 5937fbb7e55f3a0808f31ee4f9e75b859d98c012 | [
"Apache-2.0"
] | 50 | 2016-10-05T06:22:38.000Z | 2022-02-03T16:08:48.000Z | #!/usr/bin.python
## Binary Analysis Tool
## Copyright 2014 Armijn Hemel for Tjaldur Software Governance Solutions
## Licensed under Apache 2.0, see LICENSE file for details
'''
Script to test integrity of archives. TODO: properly handle ZIP archives
'''
import sys, os, magic, multiprocessing, subprocess
import temp... | 36.365217 | 153 | 0.705404 | 562 | 4,182 | 5.217082 | 0.350534 | 0.066849 | 0.034106 | 0.058322 | 0.359823 | 0.332196 | 0.310368 | 0.310368 | 0.300819 | 0.300819 | 0 | 0.005674 | 0.157102 | 4,182 | 114 | 154 | 36.684211 | 0.826099 | 0.128647 | 0 | 0.305556 | 0 | 0.041667 | 0.119016 | 0 | 0 | 0 | 0 | 0.008772 | 0 | 0 | null | null | 0 | 0.041667 | null | null | 0.041667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
47ffdb20745ce566795fddfa4095e67b1127d6fe | 863 | py | Python | mailing/migrations/0006_auto_20170226_0452.py | salazarpardo/redinnovacion | 3f7c13af0af1887112a0492aea7782871fba0129 | [
"CC-BY-3.0"
] | null | null | null | mailing/migrations/0006_auto_20170226_0452.py | salazarpardo/redinnovacion | 3f7c13af0af1887112a0492aea7782871fba0129 | [
"CC-BY-3.0"
] | null | null | null | mailing/migrations/0006_auto_20170226_0452.py | salazarpardo/redinnovacion | 3f7c13af0af1887112a0492aea7782871fba0129 | [
"CC-BY-3.0"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
import ckeditor_uploader.fields
class Migration(migrations.Migration):
dependencies = [
('mailing', '0005_auto_20170224_1949'),
]
operations = [
migrations.AlterField(
mo... | 27.83871 | 89 | 0.625724 | 78 | 863 | 6.705128 | 0.5 | 0.091778 | 0.126195 | 0.166348 | 0.531549 | 0.531549 | 0.531549 | 0.428298 | 0.428298 | 0.428298 | 0 | 0.026899 | 0.267671 | 863 | 30 | 90 | 28.766667 | 0.800633 | 0.024334 | 0 | 0.458333 | 0 | 0 | 0.122619 | 0.027381 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.25 | 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 |
9a01158b1e97dd149f622c08b046f0ad8986edfd | 13,323 | py | Python | PEATDB/DNA_sequence.py | shambo001/peat | 7a26e896aa9914b084a9064df09ed15df4047cf3 | [
"MIT"
] | 3 | 2016-11-11T06:11:03.000Z | 2021-09-12T22:13:51.000Z | PEATDB/DNA_sequence.py | shambo001/peat | 7a26e896aa9914b084a9064df09ed15df4047cf3 | [
"MIT"
] | null | null | null | PEATDB/DNA_sequence.py | shambo001/peat | 7a26e896aa9914b084a9064df09ed15df4047cf3 | [
"MIT"
] | 2 | 2016-02-15T16:10:36.000Z | 2018-02-27T10:33:21.000Z | #!/usr/bin/env python
#
# Protein Engineering Analysis Tool DataBase (PEATDB)
# Copyright (C) 2010 Damien Farrell & Jens Erik Nielsen
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either ver... | 26.382178 | 110 | 0.513323 | 1,481 | 13,323 | 4.581364 | 0.233626 | 0.068976 | 0.018865 | 0.022402 | 0.279735 | 0.248195 | 0.201179 | 0.147531 | 0.131172 | 0.131172 | 0 | 0.010471 | 0.362006 | 13,323 | 504 | 111 | 26.434524 | 0.787765 | 0.1619 | 0 | 0.421429 | 0 | 0 | 0.029019 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.003571 | 0.053571 | null | null | 0.025 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
9a07c06d0f0b779e2703cf2df4f59b09feb9ce5f | 659 | py | Python | docker-deploy/web-app/Ride_Share/migrations/0018_auto_20200131_2301.py | universebh/ride_share | f5426b13ed256c6d6a0e966e2306da0f5fce8235 | [
"MIT"
] | null | null | null | docker-deploy/web-app/Ride_Share/migrations/0018_auto_20200131_2301.py | universebh/ride_share | f5426b13ed256c6d6a0e966e2306da0f5fce8235 | [
"MIT"
] | null | null | null | docker-deploy/web-app/Ride_Share/migrations/0018_auto_20200131_2301.py | universebh/ride_share | f5426b13ed256c6d6a0e966e2306da0f5fce8235 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.9 on 2020-01-31 23:01
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Ride_Share', '0017_auto_20200131_0607'),
]
operations = [
migrations.AddField(
model_name='ride',
name='avail_seats'... | 27.458333 | 165 | 0.566009 | 70 | 659 | 5.2 | 0.714286 | 0.098901 | 0.126374 | 0.148352 | 0.192308 | 0.192308 | 0 | 0 | 0 | 0 | 0 | 0.06875 | 0.271624 | 659 | 23 | 166 | 28.652174 | 0.689583 | 0.068285 | 0 | 0.352941 | 1 | 0 | 0.176471 | 0.037582 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9a179228d22897429b0065cd93a2337723aa69a2 | 2,046 | py | Python | 001/exercicio6.py | isaacfelipe1/Estrutura_De_Dados_Um_UEA | 79b693d186154b54b7bb0c2dac10cd4cf9886bb3 | [
"Apache-2.0"
] | null | null | null | 001/exercicio6.py | isaacfelipe1/Estrutura_De_Dados_Um_UEA | 79b693d186154b54b7bb0c2dac10cd4cf9886bb3 | [
"Apache-2.0"
] | null | null | null | 001/exercicio6.py | isaacfelipe1/Estrutura_De_Dados_Um_UEA | 79b693d186154b54b7bb0c2dac10cd4cf9886bb3 | [
"Apache-2.0"
] | null | null | null | #6-Faça um programa que receba a temperatura média de cada mês do ano e armazene-as em uma lista. Em seguida, calcule a média anual das temperaturas e mostre a média calculada juntamente com todas as temperaturas acima da média anual, e em que mês elas ocorram (mostrar o mês por extenso: 1- janeiro, 2- fevereiro...).
... | 33 | 318 | 0.543988 | 236 | 2,046 | 4.716102 | 0.351695 | 0.151842 | 0.172507 | 0.226415 | 0.224618 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018086 | 0.351417 | 2,046 | 62 | 319 | 33 | 0.820648 | 0.154936 | 0 | 0.230769 | 0 | 0 | 0.082707 | 0.016773 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.307692 | 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 |
9a1bb8b034211290466c0aaa1b31a3da33aaa028 | 4,255 | py | Python | carbondesign/tags/code_snippet.py | dozymoe/django-carbondesign | 34aed0cfdccfa90fcb5bf2bbd347229815f1417b | [
"MIT"
] | null | null | null | carbondesign/tags/code_snippet.py | dozymoe/django-carbondesign | 34aed0cfdccfa90fcb5bf2bbd347229815f1417b | [
"MIT"
] | null | null | null | carbondesign/tags/code_snippet.py | dozymoe/django-carbondesign | 34aed0cfdccfa90fcb5bf2bbd347229815f1417b | [
"MIT"
] | null | null | null | """
Code Snippet
============
See: https://www.carbondesignsystem.com/components/code-snippet/usage/
Code snippets are strings or small blocks of reusable code that can be copied
and inserted in a code file.
Overview
--------
There are three different variants of code snippets to help cater to varied
line length us... | 34.877049 | 115 | 0.632432 | 603 | 4,255 | 4.386401 | 0.281924 | 0.015879 | 0.011342 | 0.012098 | 0.525142 | 0.505104 | 0.505104 | 0.475614 | 0.475614 | 0.457089 | 0 | 0.057725 | 0.181669 | 4,255 | 121 | 116 | 35.165289 | 0.701608 | 0.145711 | 0 | 0.487805 | 0 | 0.170732 | 0.750556 | 0.287778 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04878 | false | 0 | 0.02439 | 0 | 0.158537 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9a2587a618535ee87657a81c78e1fef31e3cfe46 | 727 | py | Python | tests/collection/collection_meta.py | caputomarcos/mongorest | 57d6b28d75e18afed5cef7160522958153b5be15 | [
"BSD-3-Clause"
] | 16 | 2015-04-18T02:51:09.000Z | 2020-12-15T18:05:16.000Z | tests/collection/collection_meta.py | caputomarcos/mongorest | 57d6b28d75e18afed5cef7160522958153b5be15 | [
"BSD-3-Clause"
] | 8 | 2015-11-24T23:06:03.000Z | 2016-07-21T17:57:59.000Z | tests/collection/collection_meta.py | caputomarcos/mongorest | 57d6b28d75e18afed5cef7160522958153b5be15 | [
"BSD-3-Clause"
] | 2 | 2015-12-04T13:45:32.000Z | 2016-06-11T13:44:53.000Z | # -*- encoding: UTF-8 -*-
from __future__ import absolute_import, unicode_literals
from mongorest.collection import Collection
from mongorest.testcase import TestCase
from mongorest.validator import Validator
class TestCollectionMeta(TestCase):
def test_collection_meta_sets_correct_collection_and_schema_and_all... | 36.35 | 102 | 0.782669 | 81 | 727 | 6.666667 | 0.493827 | 0.072222 | 0.092593 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001603 | 0.141678 | 727 | 19 | 103 | 38.263158 | 0.863782 | 0.031637 | 0 | 0 | 0 | 0 | 0.014245 | 0 | 0 | 0 | 0 | 0 | 0.384615 | 1 | 0.153846 | false | 0 | 0.307692 | 0 | 0.538462 | 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 |
9a275e6be6bb0e51be5594b2a3933f96aaf74dbd | 2,805 | py | Python | Python3/1268.py | rakhi2001/ecom7 | 73790d44605fbd51e8f7e804b9808e364fcfc680 | [
"MIT"
] | 854 | 2018-11-09T08:06:16.000Z | 2022-03-31T06:05:53.000Z | Python3/1268.py | rakhi2001/ecom7 | 73790d44605fbd51e8f7e804b9808e364fcfc680 | [
"MIT"
] | 29 | 2019-06-02T05:02:25.000Z | 2021-11-15T04:09:37.000Z | Python3/1268.py | rakhi2001/ecom7 | 73790d44605fbd51e8f7e804b9808e364fcfc680 | [
"MIT"
] | 347 | 2018-12-23T01:57:37.000Z | 2022-03-12T14:51:21.000Z | __________________________________________________________________________________________________
sample 56 ms submission
class Solution:
def suggestedProducts(self, products: List[str], searchWord: str) -> List[List[str]]:
ans, res = [], []
products.sort()
for i in range(... | 34.62963 | 112 | 0.523708 | 274 | 2,805 | 4.266423 | 0.229927 | 0.035928 | 0.041061 | 0.084688 | 0.321642 | 0.292558 | 0.215569 | 0.215569 | 0.215569 | 0.215569 | 0 | 0.015246 | 0.368627 | 2,805 | 80 | 113 | 35.0625 | 0.644833 | 0 | 0 | 0.393443 | 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 |
9a2b896570dcd16a54251a9f40302a44e65079ff | 351 | py | Python | fibonacci.py | t170815518/CZ1003Introduction_to_ComputationalThinking | 5a36c7d317f99eb0f847aa343683084af838ed3c | [
"MIT"
] | null | null | null | fibonacci.py | t170815518/CZ1003Introduction_to_ComputationalThinking | 5a36c7d317f99eb0f847aa343683084af838ed3c | [
"MIT"
] | 3 | 2019-10-10T06:17:06.000Z | 2019-10-23T08:04:40.000Z | fibonacci.py | t170815518/Introduction_to_ComputationalThinking | 5a36c7d317f99eb0f847aa343683084af838ed3c | [
"MIT"
] | null | null | null | ##sequence = [1,1]
##length_expection = int(input("Please enter the length\
## of Fibonacci to generate:"))
##i = 1
##j = 2
##while len(sequence) <= length_expection:
## sequence.append(i+j)
## i += 1
## j += 1
##print(element for element in sequence)
a = 1
b = 1
while a < 1000:
... | 20.647059 | 59 | 0.535613 | 52 | 351 | 3.576923 | 0.5 | 0.16129 | 0.032258 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048387 | 0.293447 | 351 | 16 | 60 | 21.9375 | 0.701613 | 0.740741 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9a33412e64565debc40a2271c0a58f3e225a8371 | 378 | py | Python | src/401_500/0454_4sum-ii/4sum-ii.py | himichael/LeetCode | d54f48e785af3d47a2a67a95fd3343d2b23f8ae5 | [
"Apache-2.0"
] | 1 | 2019-12-18T06:08:47.000Z | 2019-12-18T06:08:47.000Z | src/401_500/0454_4sum-ii/4sum-ii.py | himichael/LeetCode | d54f48e785af3d47a2a67a95fd3343d2b23f8ae5 | [
"Apache-2.0"
] | 1 | 2019-05-18T09:35:22.000Z | 2019-05-18T09:35:22.000Z | src/401_500/0454_4sum-ii/4sum-ii.py | himichael/LeetCode | d54f48e785af3d47a2a67a95fd3343d2b23f8ae5 | [
"Apache-2.0"
] | null | null | null | class Solution(object):
def fourSumCount(self, A, B, C, D):
"""
:type A: List[int]
:type B: List[int]
:type C: List[int]
:type D: List[int]
:rtype: int
"""
d = dict()
res = 0
for i in A:
for j in B:
sum_ab = i+j
d[sum_ab] = d.setdefault(sum_ab,0)+1
for i in C:
for j in D:
tmp ... | 18 | 40 | 0.526455 | 75 | 378 | 2.626667 | 0.386667 | 0.142132 | 0.167513 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015267 | 0.306878 | 378 | 21 | 41 | 18 | 0.732824 | 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 |
9a344a06c68fd1c4e35a6eb6ff53acdfc552a2dd | 195 | py | Python | tests/test_camera.py | saegersven/robocup | 3ce18d68d99da43ab12c19417c988bdad38d7373 | [
"MIT"
] | null | null | null | tests/test_camera.py | saegersven/robocup | 3ce18d68d99da43ab12c19417c988bdad38d7373 | [
"MIT"
] | null | null | null | tests/test_camera.py | saegersven/robocup | 3ce18d68d99da43ab12c19417c988bdad38d7373 | [
"MIT"
] | null | null | null | import cv2
cap = cv2.VideoCapture(0)
while True:
ret, frame = cap.read()
cv2.imshow("Frame", frame)
if cv2.waitKey(1) == ord('q'):
break
cap.release()
cv2.destroyAllWindows() | 15 | 32 | 0.630769 | 27 | 195 | 4.555556 | 0.703704 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045161 | 0.205128 | 195 | 13 | 33 | 15 | 0.748387 | 0 | 0 | 0 | 0 | 0 | 0.032609 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9a3c1a29ccba3967ed38ac611f8afe164cf1a09f | 2,628 | py | Python | use_ccf_functions.py | szunigaf/CCF_functions | 91d437845c5842674e344a2dc8cb6e5fc1135120 | [
"BSD-3-Clause"
] | 1 | 2021-08-11T00:51:10.000Z | 2021-08-11T00:51:10.000Z | use_ccf_functions.py | szunigaf/CCF_functions | 91d437845c5842674e344a2dc8cb6e5fc1135120 | [
"BSD-3-Clause"
] | null | null | null | use_ccf_functions.py | szunigaf/CCF_functions | 91d437845c5842674e344a2dc8cb6e5fc1135120 | [
"BSD-3-Clause"
] | null | null | null | import sys
sys.path.append("./MODULES/")
from calc_rv_new_chapman import *
import glob
# cp calc_rv_new.py calc_rv_new.pyx
# setup.py (contains calc_rv_new module)
# then:
# python setup.py build_ext --inplace
# define data directory
data_direc = './2019_02_21_SACY_RV_tests/'
# define the mask
#mask_name='R50G2'
#... | 29.2 | 169 | 0.67656 | 435 | 2,628 | 3.834483 | 0.365517 | 0.033573 | 0.043165 | 0.047962 | 0.267386 | 0.233813 | 0.233813 | 0.210432 | 0.168465 | 0.168465 | 0 | 0.033652 | 0.163242 | 2,628 | 89 | 170 | 29.52809 | 0.724875 | 0.355023 | 0 | 0.162162 | 0 | 0.027027 | 0.233213 | 0.032374 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.081081 | null | null | 0.054054 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
9a5c6c48a5bcf64c6b14a0722b31d6670869ab9f | 1,255 | py | Python | geeksforgeeks/majority_element_moore_voting_algo.py | codervikash/online-courses | a60efad23af65080a98e7dd038fb2c750237b781 | [
"MIT"
] | null | null | null | geeksforgeeks/majority_element_moore_voting_algo.py | codervikash/online-courses | a60efad23af65080a98e7dd038fb2c750237b781 | [
"MIT"
] | null | null | null | geeksforgeeks/majority_element_moore_voting_algo.py | codervikash/online-courses | a60efad23af65080a98e7dd038fb2c750237b781 | [
"MIT"
] | null | null | null | #!/usr/bin/python
"""
Majority Element: A majority element in an array A[] of size n is an element that appears more than n/2 times (and hence there is at most one such element).
Write a function which takes an array and emits the majority element (if it exists), otherwise prints NONE as follows:
I/P : 3 3 4 ... | 26.145833 | 156 | 0.603984 | 217 | 1,255 | 3.456221 | 0.364055 | 0.2 | 0.016 | 0.016 | 0.288 | 0.288 | 0.266667 | 0.266667 | 0.266667 | 0.138667 | 0 | 0.047018 | 0.305179 | 1,255 | 48 | 157 | 26.145833 | 0.813073 | 0.012749 | 0 | 0.454545 | 0 | 0 | 0.089256 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9a6227d6727c521e47f49186c3d0ce62d4683721 | 1,270 | py | Python | Web_Crawling_Project/start_Web_Crawling.py | LeeJaeKeun14/Web_Crawling | 4ee9ee6b9af304f050d1068384ef6328a7db07b0 | [
"MIT"
] | 1 | 2019-12-11T02:15:45.000Z | 2019-12-11T02:15:45.000Z | Web_Crawling_Project/start_Web_Crawling.py | Taebyoung/Web_Crawling | c84da0d46a86818cbb2a9fee0e7f935a8ac59c00 | [
"MIT"
] | null | null | null | Web_Crawling_Project/start_Web_Crawling.py | Taebyoung/Web_Crawling | c84da0d46a86818cbb2a9fee0e7f935a8ac59c00 | [
"MIT"
] | 1 | 2019-12-11T02:15:41.000Z | 2019-12-11T02:15:41.000Z |
# !./run.sh
import numpy as np
import pandas as pd
import time
from Web_Crawling import *
diction = mongodb.client.diction.english
QUERY = {}
items = diction.find(QUERY)
dfs = pd.DataFrame(items)
list = np.random.choice(range(len(dfs)), 3)
for i in list:
df = dfs.loc[i]
msg1 = make_msg.make_msg(df, "단... | 27.608696 | 124 | 0.570866 | 206 | 1,270 | 3.393204 | 0.398058 | 0.180258 | 0.141631 | 0.180258 | 0.257511 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036062 | 0.192126 | 1,270 | 45 | 125 | 28.222222 | 0.64425 | 0.007087 | 0 | 0.108108 | 0 | 0.027027 | 0.175676 | 0.047695 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.108108 | 0 | 0.108108 | 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 |
9a6714f5f360ddb97556fe662f7e328bc999bd96 | 988 | py | Python | tests/atmlib_score.py | dxxb/ATMlib2-WIP | 507b9ba436bc5035d5c64b7e4502689329e7d90a | [
"BSD-3-Clause"
] | null | null | null | tests/atmlib_score.py | dxxb/ATMlib2-WIP | 507b9ba436bc5035d5c64b7e4502689329e7d90a | [
"BSD-3-Clause"
] | null | null | null | tests/atmlib_score.py | dxxb/ATMlib2-WIP | 507b9ba436bc5035d5c64b7e4502689329e7d90a | [
"BSD-3-Clause"
] | null | null | null |
import struct
from itertools import chain, accumulate
def concat_bytes(*insn):
return b''.join(chain(insn))
class Score:
def __init__(self, voice_count, pattern_count):
self.voice_count = voice_count
self.pattern_count = pattern_count
assert(pattern_count >= voice_count)
self.patterns = [None]*pattern_c... | 25.333333 | 67 | 0.73583 | 149 | 988 | 4.671141 | 0.342282 | 0.12069 | 0.060345 | 0.054598 | 0.094828 | 0.094828 | 0 | 0 | 0 | 0 | 0 | 0.003501 | 0.132591 | 988 | 38 | 68 | 26 | 0.808635 | 0 | 0 | 0 | 0 | 0 | 0.02229 | 0 | 0 | 0 | 0 | 0 | 0.074074 | 1 | 0.222222 | false | 0 | 0.074074 | 0.037037 | 0.444444 | 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 |
7bd3106979acb014b4f169da23f498a8237729a2 | 970 | py | Python | share_storage.py | KKloveU/ray_RL | b8019d1bbd6672929f845f9d8e9c712c7b02fc0e | [
"MIT"
] | 1 | 2021-07-07T13:59:03.000Z | 2021-07-07T13:59:03.000Z | share_storage.py | KKloveU/ray_RL | b8019d1bbd6672929f845f9d8e9c712c7b02fc0e | [
"MIT"
] | null | null | null | share_storage.py | KKloveU/ray_RL | b8019d1bbd6672929f845f9d8e9c712c7b02fc0e | [
"MIT"
] | null | null | null | import copy
import ray
import torch
@ray.remote
class SharedStorage:
def __init__(self,checkpoint) -> None:
self.current_checkpoint=copy.deepcopy(checkpoint)
self.path='./model_checkpoint/'+self.current_checkpoint["game"]+'.model'
def save_checkpoint(self):
torch.save(self.current_chec... | 31.290323 | 80 | 0.652577 | 115 | 970 | 5.356522 | 0.347826 | 0.142857 | 0.272727 | 0.081169 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.252577 | 970 | 31 | 81 | 31.290323 | 0.849655 | 0 | 0 | 0.153846 | 0 | 0 | 0.029866 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.192308 | false | 0 | 0.115385 | 0.038462 | 0.461538 | 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 |
7bdc3f3f4fc02657f13a602e342f1717d2d6a68a | 850 | py | Python | sol/geometria/1124 - Elevador.py | thiagojobson/PyURI | 93a16c9a4cf4fc22e9f3f545a452fe26e7e761e3 | [
"Unlicense"
] | null | null | null | sol/geometria/1124 - Elevador.py | thiagojobson/PyURI | 93a16c9a4cf4fc22e9f3f545a452fe26e7e761e3 | [
"Unlicense"
] | null | null | null | sol/geometria/1124 - Elevador.py | thiagojobson/PyURI | 93a16c9a4cf4fc22e9f3f545a452fe26e7e761e3 | [
"Unlicense"
] | null | null | null | # 1124 - Elevador
# https://www.urionlinejudge.com.br/judge/pt/problems/view/1124
from math import sqrt, pow
def cabe(L, C, R):
return R*2 <= L and R*2 <= C
def dist(a, b):
return sqrt(pow(b[0] - a[0], 2) + pow(b[1] - a[1], 2))
def main():
while True:
L, C, R1, R2 = map(int, input().split())... | 25 | 71 | 0.536471 | 133 | 850 | 3.308271 | 0.488722 | 0.022727 | 0.040909 | 0.027273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.060449 | 0.318824 | 850 | 33 | 72 | 25.757576 | 0.699482 | 0.256471 | 0 | 0 | 0 | 0 | 0.015974 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0 | 0.052632 | 0.105263 | 0.315789 | 0.105263 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
7bdf23f2a7022d5dc900c1b9dc71ab661565a31f | 361 | py | Python | asanapyexport/util.py | a-ro/asana-pyexport | 7b5e5de79cc15cdb1cb0f99d39768d5831c436b4 | [
"MIT"
] | null | null | null | asanapyexport/util.py | a-ro/asana-pyexport | 7b5e5de79cc15cdb1cb0f99d39768d5831c436b4 | [
"MIT"
] | null | null | null | asanapyexport/util.py | a-ro/asana-pyexport | 7b5e5de79cc15cdb1cb0f99d39768d5831c436b4 | [
"MIT"
] | null | null | null | def user_selection(message, options):
# taken from https://github.com/Asana/python-asana/blob/master/examples/example-create-task.py
option_list = list(options)
print(message)
for i, option in enumerate(option_list):
print(i, ": " + option["name"])
index = int(input("Enter choice (default 0)... | 40.111111 | 98 | 0.68144 | 50 | 361 | 4.84 | 0.72 | 0.123967 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006734 | 0.177285 | 361 | 8 | 99 | 45.125 | 0.808081 | 0.254848 | 0 | 0 | 0 | 0 | 0.11985 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.285714 | 0.285714 | 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 |
7bdf912a10a9f339e0a3edc8aca6d4590361a058 | 11,745 | py | Python | Interface - My Code.py | arunkarthickm/Python-Script---Range-and-Round-Robin-partitioning-and-insert-in-PostgreSQL- | 401bac0f8e4181453a4a1e7aa37b2b7770f6eadb | [
"MIT"
] | null | null | null | Interface - My Code.py | arunkarthickm/Python-Script---Range-and-Round-Robin-partitioning-and-insert-in-PostgreSQL- | 401bac0f8e4181453a4a1e7aa37b2b7770f6eadb | [
"MIT"
] | null | null | null | Interface - My Code.py | arunkarthickm/Python-Script---Range-and-Round-Robin-partitioning-and-insert-in-PostgreSQL- | 401bac0f8e4181453a4a1e7aa37b2b7770f6eadb | [
"MIT"
] | 3 | 2019-10-13T02:34:27.000Z | 2021-06-12T03:39:21.000Z |
import sys
import psycopg2
import timeit
import numbers
import time
DATABASE_NAME = 'dds_assgn1'
lastroundrobintable = 0;
roundrobinpartitions = 0;
rangepartitions = 0;
def getopenconnection(user='postgres', password='1234', dbname='dds_assgn1'):
return psycopg2.connect("dbname='" + dbname + "' user='" + user + ... | 36.588785 | 170 | 0.615581 | 1,274 | 11,745 | 5.616954 | 0.193878 | 0.023617 | 0.023756 | 0.04332 | 0.47303 | 0.433063 | 0.41308 | 0.393935 | 0.390721 | 0.367524 | 0 | 0.012244 | 0.276799 | 11,745 | 320 | 171 | 36.703125 | 0.830233 | 0.08974 | 0 | 0.555556 | 0 | 0.016461 | 0.172321 | 0.014583 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.024691 | 0.020576 | null | null | 0.098765 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7be2d7715f1b8984343d154f8f0c682f3aa74e9a | 1,152 | py | Python | dask_kubernetes/common/utils.py | ddelange/dask-kubernetes | 42bcf9817ea963bf048f9dd06caec1622656302a | [
"BSD-3-Clause"
] | 12 | 2018-02-13T16:45:21.000Z | 2018-03-05T08:18:55.000Z | dask_kubernetes/common/utils.py | ddelange/dask-kubernetes | 42bcf9817ea963bf048f9dd06caec1622656302a | [
"BSD-3-Clause"
] | 22 | 2018-02-05T20:43:30.000Z | 2018-03-01T13:19:03.000Z | dask_kubernetes/common/utils.py | ddelange/dask-kubernetes | 42bcf9817ea963bf048f9dd06caec1622656302a | [
"BSD-3-Clause"
] | 2 | 2018-01-03T03:28:18.000Z | 2018-01-15T11:30:25.000Z | """Utility functions."""
import os
import shutil
import string
def format_labels(labels):
"""Convert a dictionary of labels into a comma separated string"""
if labels:
return ",".join(["{}={}".format(k, v) for k, v in labels.items()])
else:
return ""
def escape(s):
valid_characters =... | 27.428571 | 96 | 0.657986 | 151 | 1,152 | 4.960265 | 0.576159 | 0.024032 | 0.016021 | 0.034713 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005624 | 0.228299 | 1,152 | 41 | 97 | 28.097561 | 0.836895 | 0.260417 | 0 | 0 | 0 | 0 | 0.208845 | 0.067568 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173913 | false | 0 | 0.130435 | 0 | 0.521739 | 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 |
7be579935ce6bfae859cb18091f1ad562911b55f | 705 | py | Python | recommender/main.py | TxConvergentAdmin/f20-bt-impact-local-business | ff59201195090ecd57ac34d54e244c8b2fa34e35 | [
"MIT"
] | null | null | null | recommender/main.py | TxConvergentAdmin/f20-bt-impact-local-business | ff59201195090ecd57ac34d54e244c8b2fa34e35 | [
"MIT"
] | null | null | null | recommender/main.py | TxConvergentAdmin/f20-bt-impact-local-business | ff59201195090ecd57ac34d54e244c8b2fa34e35 | [
"MIT"
] | null | null | null | from script import get_rec
def main(request):
"""Responds to any HTTP request.
Args:
request (flask.Request): HTTP request object.
Returns:
The response text or any set of values that can be turned into a
Response object using
`make_response <http://flask.pocoo.org/do... | 33.571429 | 90 | 0.651064 | 100 | 705 | 4.44 | 0.5 | 0.123874 | 0.054054 | 0.085586 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003759 | 0.24539 | 705 | 20 | 91 | 35.25 | 0.830827 | 0.390071 | 0 | 0 | 0 | 0 | 0.177419 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
7bec8256e70dd4cf3e9142ea54517b3c5e2ae69d | 493 | py | Python | nycTaxis/bin/getRollingAverageDate.py | Strandtasche/nycTaxis | 88b4fcbf9030814f3ccd70fbd04004152da0ca7b | [
"MIT"
] | null | null | null | nycTaxis/bin/getRollingAverageDate.py | Strandtasche/nycTaxis | 88b4fcbf9030814f3ccd70fbd04004152da0ca7b | [
"MIT"
] | null | null | null | nycTaxis/bin/getRollingAverageDate.py | Strandtasche/nycTaxis | 88b4fcbf9030814f3ccd70fbd04004152da0ca7b | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import os
import sys
from nycTaxis import core
from nycTaxis import dataHandler
assert len(sys.argv) == 2, "Usage: 1. Argument - target date, rolling average"
targetDate = sys.argv[1]
taxiDataFrame = dataHandler.loadDataFrame('/home/tobi/Projects/BlueYonder/etc/data.h... | 29 | 108 | 0.752535 | 67 | 493 | 5.537313 | 0.746269 | 0.06469 | 0.097035 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018561 | 0.125761 | 493 | 16 | 109 | 30.8125 | 0.842227 | 0.087221 | 0 | 0 | 0 | 0 | 0.363839 | 0.09375 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0 | false | 0 | 0.444444 | 0 | 0.444444 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7beeea16926f28646f7cef9902663e1b6ce9f35f | 9,102 | py | Python | examples/pest_query.py | vpreston/jetyak-parsing | 2f2ac14a7030962f15aae9272641f623e8ab5412 | [
"MIT"
] | null | null | null | examples/pest_query.py | vpreston/jetyak-parsing | 2f2ac14a7030962f15aae9272641f623e8ab5412 | [
"MIT"
] | null | null | null | examples/pest_query.py | vpreston/jetyak-parsing | 2f2ac14a7030962f15aae9272641f623e8ab5412 | [
"MIT"
] | null | null | null | #!/usr/env/python
'''
This is an example in which all CTD and Optode data is compiled for PEST deployments.
Maintainer: vpreston-at-{whoi, mit}-dot-edu
'''
import numpy as np
import jetyak
import sensors
import jviz
import shapefile
import matplotlib
import gpxpy
import pandas as pd
import copy
import gsw
import mat... | 34.740458 | 120 | 0.587234 | 1,220 | 9,102 | 4.261475 | 0.252459 | 0.022889 | 0.030006 | 0.03693 | 0.347375 | 0.319485 | 0.24774 | 0.221196 | 0.190806 | 0.190806 | 0 | 0.024672 | 0.211822 | 9,102 | 262 | 121 | 34.740458 | 0.700028 | 0.109536 | 0 | 0.235955 | 0 | 0 | 0.137416 | 0.023145 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.106742 | null | null | 0.011236 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7bf57886c617deb5cb8e4d5d793461e6df26a9cc | 489 | py | Python | Lista1_18.py | go4Mor4/Lista1_Python | 199dc91d5280cdabd42f78277d448c0b02482e4c | [
"MIT"
] | 3 | 2020-06-30T05:30:52.000Z | 2021-08-02T20:17:52.000Z | Lista1_18.py | NormanDeveloper/Lista1_Python | 199dc91d5280cdabd42f78277d448c0b02482e4c | [
"MIT"
] | null | null | null | Lista1_18.py | NormanDeveloper/Lista1_Python | 199dc91d5280cdabd42f78277d448c0b02482e4c | [
"MIT"
] | 1 | 2021-03-29T16:30:45.000Z | 2021-03-29T16:30:45.000Z | #Faça um programa que peça o tamanho de um arquivo para download (em MB) e a velocidade de um link de Internet (em Mbps), calcule e informe o tempo aproximado de download do arquivo usando este link (em minutos).
from math import ceil
tamanho = float(input("Digite o tamanho do arquivo: "))
velocidade = float(input... | 44.454545 | 213 | 0.732106 | 75 | 489 | 4.773333 | 0.533333 | 0.044693 | 0.089385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005025 | 0.186094 | 489 | 10 | 214 | 48.9 | 0.894472 | 0 | 0 | 0 | 0 | 0 | 0.389513 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.166667 | null | null | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7bf93438eb532d0567fecba507d488fceef04a61 | 273 | py | Python | newsletter/tests/urls.py | hbuyse/dj-newsletter | 2c032466e648b3c844bea6aae379a5346d9ce677 | [
"MIT"
] | null | null | null | newsletter/tests/urls.py | hbuyse/dj-newsletter | 2c032466e648b3c844bea6aae379a5346d9ce677 | [
"MIT"
] | null | null | null | newsletter/tests/urls.py | hbuyse/dj-newsletter | 2c032466e648b3c844bea6aae379a5346d9ce677 | [
"MIT"
] | null | null | null | # coding=utf-8
"""URLS file for testing."""
# Future
from __future__ import absolute_import, unicode_literals
# Django
from django.conf.urls import include
from django.urls import path
urlpatterns = [
path('', include('newsletter.urls', namespace='newsletter')),
]
| 18.2 | 65 | 0.736264 | 34 | 273 | 5.735294 | 0.588235 | 0.102564 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004255 | 0.139194 | 273 | 14 | 66 | 19.5 | 0.825532 | 0.18315 | 0 | 0 | 0 | 0 | 0.116279 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
7bfa74e1ad919aad6dda76eaaeac14cd1260e1a6 | 1,417 | py | Python | poseidon/base/Files.py | peterkang2001/Poseidon | cfafc01a1f69210dbfd95a0c62e06269eb599034 | [
"Apache-2.0"
] | 2 | 2019-12-27T09:14:38.000Z | 2019-12-27T09:16:29.000Z | poseidon/base/Files.py | CodeMonkey4Fun/Poseidon | cfafc01a1f69210dbfd95a0c62e06269eb599034 | [
"Apache-2.0"
] | 2 | 2021-03-31T20:06:21.000Z | 2021-12-13T20:48:16.000Z | poseidon/base/Files.py | peterkang2001/Poseidon | cfafc01a1f69210dbfd95a0c62e06269eb599034 | [
"Apache-2.0"
] | 1 | 2020-11-13T07:37:01.000Z | 2020-11-13T07:37:01.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Author: kangliang
date: 2019-05-06
"""
import os
from pytest_testconfig import config as pyconfig
class Files:
@staticmethod
def del_allFiles(path):
"""
删除指定目录下的所有文件
:param path: 通过os.path.abspath转换成的string类型
... | 21.8 | 57 | 0.52717 | 150 | 1,417 | 4.793333 | 0.433333 | 0.104312 | 0.05007 | 0.044506 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011905 | 0.347918 | 1,417 | 65 | 57 | 21.8 | 0.766234 | 0.251235 | 0 | 0.185185 | 0 | 0 | 0.061768 | 0.028754 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0.037037 | 0.074074 | 0 | 0.37037 | 0.148148 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d005070e5085177167eb5323961acec176228ab6 | 938 | py | Python | mayan/apps/document_states/migrations/0024_auto_20220305_1627.py | ercusz/Mayan-EDMS | 46accc39f3f252c43b8d9d2b19478ae7f13bd11d | [
"Apache-2.0"
] | null | null | null | mayan/apps/document_states/migrations/0024_auto_20220305_1627.py | ercusz/Mayan-EDMS | 46accc39f3f252c43b8d9d2b19478ae7f13bd11d | [
"Apache-2.0"
] | null | null | null | mayan/apps/document_states/migrations/0024_auto_20220305_1627.py | ercusz/Mayan-EDMS | 46accc39f3f252c43b8d9d2b19478ae7f13bd11d | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.2.24 on 2022-03-05 16:27
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('document_states', '0023_auto_20200930_0726'),
]
operations = [
migrations.AddField(
model_name='workflowstate',
nam... | 32.344828 | 127 | 0.620469 | 103 | 938 | 5.504854 | 0.533981 | 0.047619 | 0.116402 | 0.137566 | 0.433862 | 0.433862 | 0.27866 | 0.27866 | 0 | 0 | 0 | 0.04631 | 0.263326 | 938 | 28 | 128 | 33.5 | 0.77424 | 0.049041 | 0 | 0.363636 | 1 | 0 | 0.239326 | 0.025843 | 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 |
d0086e3775592e627f3b427f3c4fd35990ec6c5d | 332 | py | Python | tartaruga sla.py | talitadeoa/head-first-code | 3f89e5227f0996ed83832c6b848a77a4908e6168 | [
"MIT"
] | null | null | null | tartaruga sla.py | talitadeoa/head-first-code | 3f89e5227f0996ed83832c6b848a77a4908e6168 | [
"MIT"
] | null | null | null | tartaruga sla.py | talitadeoa/head-first-code | 3f89e5227f0996ed83832c6b848a77a4908e6168 | [
"MIT"
] | null | null | null | import turtle
tortuguinha = turtle.Turtle()
tortuguinha.shape('turtle')
tortuguinha.color('red')
def make_shape(t, sides):
angle = 360/sides
for i in range(0,sides):
t.forward(100)
t.right(angle)
make_shape(tortuguinha, 1)
make_shape(tortuguinha, 2)
make_shape(tortuguinha, 10)
make_shape(tort... | 20.75 | 29 | 0.713855 | 47 | 332 | 4.93617 | 0.510638 | 0.193966 | 0.344828 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046595 | 0.159639 | 332 | 16 | 30 | 20.75 | 0.784946 | 0 | 0 | 0 | 0 | 0 | 0.027027 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.076923 | 0 | 0.153846 | 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 |
d00b77842f32ab2676a7c55c3691bbed6195b784 | 434 | py | Python | setup.py | AnRyz/systeminfo | 2a2c222128ecbbd86b2ad7288766d62d8cb595dd | [
"BSD-2-Clause"
] | null | null | null | setup.py | AnRyz/systeminfo | 2a2c222128ecbbd86b2ad7288766d62d8cb595dd | [
"BSD-2-Clause"
] | null | null | null | setup.py | AnRyz/systeminfo | 2a2c222128ecbbd86b2ad7288766d62d8cb595dd | [
"BSD-2-Clause"
] | null | null | null | '''
Created on 22 Feb 2018
@author: Anna
'''
from setuptools import setup
setup(name="sysinfo",
version="0.1",
description="Basic system information for COMP30670",
author="Anna Ryzova",
author_email="anna.ryzova@ucdconnect.ie",
license="GPL3",
packages=['systeminfo'],... | 24.111111 | 74 | 0.615207 | 45 | 434 | 5.844444 | 0.777778 | 0.076046 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058642 | 0.253456 | 434 | 18 | 75 | 24.111111 | 0.753086 | 0.085253 | 0 | 0 | 0 | 0 | 0.412869 | 0.176944 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.083333 | 0 | 0.083333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d00c91f6f7494598a2536c9868e2267812f89dcf | 161 | py | Python | Python/arrays/array_reverse.py | mdoprog/Warehouse | 4afb88a32fc20b613d008b86371d505ddeb07e5a | [
"MIT"
] | null | null | null | Python/arrays/array_reverse.py | mdoprog/Warehouse | 4afb88a32fc20b613d008b86371d505ddeb07e5a | [
"MIT"
] | null | null | null | Python/arrays/array_reverse.py | mdoprog/Warehouse | 4afb88a32fc20b613d008b86371d505ddeb07e5a | [
"MIT"
] | null | null | null | # coding=utf8
# Declaração
vetor = []
for i in range (0, 10):
vetor.append(i)
vetor.reverse() # inverte a lista
for i in vetor:
print(i, end = " ") | 16.1 | 33 | 0.596273 | 25 | 161 | 3.84 | 0.68 | 0.083333 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033333 | 0.254658 | 161 | 10 | 34 | 16.1 | 0.766667 | 0.236025 | 0 | 0 | 0 | 0 | 0.008333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 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 |
d011490829fcffe3f5e73593bb5e8dbac082efef | 4,136 | py | Python | login.py | Jugalcody/Login-dictionary | 22677642d437447711fda17efaecd4b41233bb36 | [
"MIT"
] | 1 | 2022-01-14T17:31:11.000Z | 2022-01-14T17:31:11.000Z | login.py | Jugalcody/Login-dictionary | 22677642d437447711fda17efaecd4b41233bb36 | [
"MIT"
] | null | null | null | login.py | Jugalcody/Login-dictionary | 22677642d437447711fda17efaecd4b41233bb36 | [
"MIT"
] | null | null | null | import tkinter as tk
root=tk.Tk()
from tkinter import messagebox
name=tk.Label(text="user id : ")
name.place(relx=0.13,rely=0.4)
name_entry=tk.Entry()
name_entry.place(relx=0.18,rely=0.4)
pas=tk.Label(text="password : ")
pas.place(relx=0.12,rely=0.45)
pas_entry=tk.Entry()
pas_entry.place(relx=0.18,rely=0.45)
f=ope... | 36.928571 | 178 | 0.404497 | 457 | 4,136 | 3.634573 | 0.317287 | 0.097532 | 0.108368 | 0.036123 | 0.201686 | 0.145093 | 0.05298 | 0 | 0 | 0 | 0 | 0.060925 | 0.472195 | 4,136 | 111 | 179 | 37.261261 | 0.699954 | 0.015474 | 0 | 0.025316 | 0 | 0.012658 | 0.12288 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037975 | false | 0.063291 | 0.037975 | 0 | 0.075949 | 0.012658 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d0161f6c97b7d0835b259fc0064d02e5a98d594e | 2,011 | py | Python | moderation/serializers.py | TheSerbianPhantom/zlostavljani | 9558266da2823d0a6592477880e3a97729726c08 | [
"MIT"
] | null | null | null | moderation/serializers.py | TheSerbianPhantom/zlostavljani | 9558266da2823d0a6592477880e3a97729726c08 | [
"MIT"
] | null | null | null | moderation/serializers.py | TheSerbianPhantom/zlostavljani | 9558266da2823d0a6592477880e3a97729726c08 | [
"MIT"
] | null | null | null | from rest_framework import serializers
from djangoProject.common import ConfessionOrCommentInSerializerUnique, get_current_session
from member.models import User
from . import models
class ReportSerializer(ConfessionOrCommentInSerializerUnique):
voters = serializers.SlugRelatedField(slug_field='handle', many=Tru... | 37.240741 | 108 | 0.693187 | 210 | 2,011 | 6.433333 | 0.419048 | 0.056995 | 0.066617 | 0.048853 | 0.264989 | 0.264989 | 0.264989 | 0.264989 | 0.217617 | 0.122872 | 0 | 0 | 0.191447 | 2,011 | 53 | 109 | 37.943396 | 0.830873 | 0.024366 | 0 | 0.222222 | 0 | 0 | 0.114344 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
d0170a67318db193241291d84d55b1a81ad6d785 | 757 | py | Python | backend/app/route/products/provider.py | LifeLaboratory/virushack | 3578f67b7eef62f555ee0d3207cacf652acda899 | [
"MIT"
] | 2 | 2020-05-05T10:02:44.000Z | 2020-05-05T10:02:46.000Z | backend/app/route/products/provider.py | LifeLaboratory/virushack | 3578f67b7eef62f555ee0d3207cacf652acda899 | [
"MIT"
] | null | null | null | backend/app/route/products/provider.py | LifeLaboratory/virushack | 3578f67b7eef62f555ee0d3207cacf652acda899 | [
"MIT"
] | null | null | null | from app.api.base.base_sql import Sql
from app.api.base import base_name as names
class Provider:
"""
Класс для работы с товарами
"""
@staticmethod
def get_products(args):
"""
Получить товары в наличии у пользователя
:param args:
:return:
"""
query =... | 22.264706 | 73 | 0.659181 | 101 | 757 | 4.792079 | 0.554455 | 0.092975 | 0.041322 | 0.057851 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.252312 | 757 | 33 | 74 | 22.939394 | 0.855124 | 0.11889 | 0 | 0 | 0 | 0 | 0.622549 | 0.05719 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.090909 | 0 | 0.227273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d01efaa27da0b58c43c302637a32f6830fd0553f | 1,087 | py | Python | setup.py | bishtamit/django-searchable-encrypted-fields | dce4afe4aef826fda137dfae0f60c683d5b40a46 | [
"MIT"
] | 1 | 2021-08-21T08:55:03.000Z | 2021-08-21T08:55:03.000Z | setup.py | bishtamit/django-searchable-encrypted-fields | dce4afe4aef826fda137dfae0f60c683d5b40a46 | [
"MIT"
] | null | null | null | setup.py | bishtamit/django-searchable-encrypted-fields | dce4afe4aef826fda137dfae0f60c683d5b40a46 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from setuptools import setup
setup(
name="django-searchable-encrypted-fields",
version="0.1.9",
license="MIT",
description="Django model fields encrypted using Pycryptodome AES-256 GCM.",
long_description=open("README.md").read(),
long_description_content_type="text/markd... | 33.96875 | 80 | 0.623735 | 122 | 1,087 | 5.491803 | 0.532787 | 0.11194 | 0.11194 | 0.116418 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029104 | 0.209752 | 1,087 | 31 | 81 | 35.064516 | 0.750873 | 0.018399 | 0 | 0 | 0 | 0 | 0.560038 | 0.031895 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.035714 | 0 | 0.035714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d0204e7e798a2b0d3c2911f5ed2e120a5e035710 | 1,383 | py | Python | code_all/day12/demo01.py | testcg/python | 4db4bd5d0e44af807d2df80cf8c8980b40cc03c4 | [
"MIT"
] | null | null | null | code_all/day12/demo01.py | testcg/python | 4db4bd5d0e44af807d2df80cf8c8980b40cc03c4 | [
"MIT"
] | null | null | null | code_all/day12/demo01.py | testcg/python | 4db4bd5d0e44af807d2df80cf8c8980b40cc03c4 | [
"MIT"
] | null | null | null | """
继承 - 行为
财产:钱不用孩子挣,但是可以直接花
皇位:江山不用太子打,但是可以直接坐
编程:代码不用子类写,但是可以直接用
"""
# 在生活中,先有父再有子,存在"不劳而获的快感".
# 在程序中,从设计角度讲,先有子类再有父类
# 多个类型,有代码的共性,且都属于一种概念.
# 编码 ,先有父类再有子类
"""
class Teacher:
def say(self):
print("说话")
def teach(self):
print("教学")
class Student:
... | 16.270588 | 44 | 0.606652 | 188 | 1,383 | 4.462766 | 0.31383 | 0.064362 | 0.052443 | 0.053635 | 0.109654 | 0.047676 | 0 | 0 | 0 | 0 | 0 | 0 | 0.240781 | 1,383 | 84 | 45 | 16.464286 | 0.799048 | 0.307303 | 0 | 0 | 0 | 0 | 0.008523 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.2 | 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 |
d027ee0c9f68646eee25e7cd7bcd6cb3b2fc7d0a | 81,091 | py | Python | sigilo.py | pspealman/Project_Impact | af5579eb62f510cbf2db8e27b89efea7f0fcdb6c | [
"MIT"
] | null | null | null | sigilo.py | pspealman/Project_Impact | af5579eb62f510cbf2db8e27b89efea7f0fcdb6c | [
"MIT"
] | null | null | null | sigilo.py | pspealman/Project_Impact | af5579eb62f510cbf2db8e27b89efea7f0fcdb6c | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Sun Feb 9 23:03:48 2020
sigilo - for the generation and analysis of PICRUSt2 output
python sigilo.py --generate_heatmap -i pred_metagenome_unstrat.tsv -sig significant_objects_file -o metagenome
python sigilo.py --ko_enrichment -c pred_metagenome_contrib.tsv -t taxonom... | 39.307319 | 417 | 0.488254 | 9,628 | 81,091 | 3.814396 | 0.059098 | 0.011763 | 0.014159 | 0.009912 | 0.592131 | 0.514472 | 0.428482 | 0.34546 | 0.300939 | 0.273683 | 0 | 0.031256 | 0.397529 | 81,091 | 2,062 | 418 | 39.326382 | 0.720459 | 0.1393 | 0 | 0.338257 | 1 | 0.002954 | 0.072953 | 0.016646 | 0 | 0 | 0 | 0.000485 | 0 | 1 | 0.025111 | false | 0 | 0.005908 | 0 | 0.031019 | 0.022895 | 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 |
d030545cd56140d07b080f1206f57da760fe0d02 | 475 | py | Python | client/migrations/0023_city_region.py | arielprosak/OfficeProject | a5153e601513ee46b8d48f0c8e4f2a0a824bb709 | [
"MIT"
] | 5 | 2020-03-27T11:18:29.000Z | 2020-04-11T21:13:46.000Z | client/migrations/0023_city_region.py | itay-sho/LevEchad | d21d0d40b9f77d5dcec8b4879d72e93a76e46190 | [
"MIT"
] | 160 | 2020-03-25T16:43:20.000Z | 2020-04-12T01:17:53.000Z | client/migrations/0023_city_region.py | arielprosak/OfficeNonProfit | dabe39994efae19342ce3080966cbe767a47f66c | [
"MIT"
] | 5 | 2020-03-26T12:10:50.000Z | 2020-04-11T21:04:50.000Z | # Generated by Django 3.0.4 on 2020-04-16 01:01
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('client', '0022_auto_20200411_1836'),
]
operations = [
migrations.AddField(
model_name='city',
... | 23.75 | 111 | 0.635789 | 57 | 475 | 5.192982 | 0.684211 | 0.081081 | 0.094595 | 0.148649 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086111 | 0.242105 | 475 | 19 | 112 | 25 | 0.736111 | 0.094737 | 0 | 0 | 1 | 0 | 0.116822 | 0.053738 | 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 |
d03b9c46b41a7ff9bb0732af5a193504206fe45b | 1,922 | py | Python | redash/utils/sql_query.py | ScottMnemonic/redash | 221c83b9affd70fe85c24047aa816b1b2ef23525 | [
"BSD-2-Clause"
] | 1 | 2018-12-07T01:55:30.000Z | 2018-12-07T01:55:30.000Z | redash/utils/sql_query.py | ScottMnemonic/redash | 221c83b9affd70fe85c24047aa816b1b2ef23525 | [
"BSD-2-Clause"
] | 8 | 2018-04-10T14:39:53.000Z | 2022-02-13T15:50:30.000Z | redash/utils/sql_query.py | chriszs/redash | d2882c77eb2f093fee3687abe931e68a51b01625 | [
"BSD-2-Clause"
] | 1 | 2020-10-22T15:20:51.000Z | 2020-10-22T15:20:51.000Z | import re
import sqlparse
from redash.utils import mustache_render
def _replace_params(template):
return re.sub('-?{{.+?}}', 'param', template)
def _inside_a_where_clause(a):
if a is None:
return False
else:
return type(a.parent) is sqlparse.sql.Where or _inside_a_where_clause(a.parent)... | 26.694444 | 94 | 0.668054 | 268 | 1,922 | 4.552239 | 0.291045 | 0.02459 | 0.053279 | 0.044262 | 0.166393 | 0.119672 | 0.080328 | 0.080328 | 0.080328 | 0.080328 | 0 | 0 | 0.227367 | 1,922 | 71 | 95 | 27.070423 | 0.821549 | 0 | 0 | 0.1 | 0 | 0 | 0.013528 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.02 | 0.06 | 0.04 | 0.56 | 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 |
d03d52c3e8485f70a7a37c43a277e2d338f26009 | 246 | py | Python | dev/parser_utils.py | sjperkins/awkward-1.0 | 75dbd5d06a012ff9d1da56f898b747cea2b1d2a9 | [
"BSD-3-Clause"
] | null | null | null | dev/parser_utils.py | sjperkins/awkward-1.0 | 75dbd5d06a012ff9d1da56f898b747cea2b1d2a9 | [
"BSD-3-Clause"
] | null | null | null | dev/parser_utils.py | sjperkins/awkward-1.0 | 75dbd5d06a012ff9d1da56f898b747cea2b1d2a9 | [
"BSD-3-Clause"
] | null | null | null | # BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/master/LICENSE
def indent_code(code, indent):
finalcode = ""
for line in code.splitlines():
finalcode += " " * indent + line + "\n"
return finalcode
| 27.333333 | 89 | 0.650407 | 33 | 246 | 4.818182 | 0.757576 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015306 | 0.203252 | 246 | 8 | 90 | 30.75 | 0.795918 | 0.353659 | 0 | 0 | 0 | 0 | 0.019108 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d044b7a44fa189c305472dddbc2d25e7bca09851 | 2,757 | py | Python | commands/misc/info.py | HedTB/OutDashRewrite | ec05fa4c8be93dd57bb94023f103d28ae9285f54 | [
"MIT"
] | 1 | 2022-03-12T07:20:55.000Z | 2022-03-12T07:20:55.000Z | commands/misc/info.py | HedTB/OutDashRewrite | ec05fa4c8be93dd57bb94023f103d28ae9285f54 | [
"MIT"
] | 2 | 2022-03-25T08:24:18.000Z | 2022-03-25T08:28:58.000Z | commands/misc/info.py | HedTB/OutDashRewrite | ec05fa4c8be93dd57bb94023f103d28ae9285f54 | [
"MIT"
] | null | null | null | ## -- IMPORTING -- ##
# MODULES
import disnake
import datetime
import os
from disnake.ext import commands
from dotenv import load_dotenv
load_dotenv()
# FILES
import extra.config as config
## -- VARAIBLES -- ##
permissions = int(os.environ.get("PERMISSIONS"))
## -- COG -- ##
class Info(commands.Cog):
d... | 49.232143 | 405 | 0.651433 | 357 | 2,757 | 4.963585 | 0.336134 | 0.023702 | 0.036117 | 0.042889 | 0.691874 | 0.668172 | 0.668172 | 0.668172 | 0.668172 | 0.668172 | 0 | 0.023799 | 0.192238 | 2,757 | 56 | 406 | 49.232143 | 0.77189 | 0.020675 | 0 | 0.352941 | 0 | 0.117647 | 0.488881 | 0.081417 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.176471 | 0 | 0.264706 | 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 |
d0467300f6e0b437f6ec0557f1e05eb526659f32 | 2,030 | py | Python | api/views.py | informatorio2020com07/grupo3 | f3c11c39008cd35ab5004a5b7599cfdaadd2fd6b | [
"MIT"
] | 1 | 2020-09-08T10:13:59.000Z | 2020-09-08T10:13:59.000Z | api/views.py | informatorio2020com07/grupo3 | f3c11c39008cd35ab5004a5b7599cfdaadd2fd6b | [
"MIT"
] | 1 | 2020-09-22T07:53:34.000Z | 2020-10-03T00:53:23.000Z | api/views.py | informatorio2020com07/grupo3 | f3c11c39008cd35ab5004a5b7599cfdaadd2fd6b | [
"MIT"
] | 2 | 2020-09-16T01:17:50.000Z | 2020-10-01T23:55:13.000Z | # from django.shortcuts import render
# from django.contrib.auth import authenticate
# from django.views.decorators.csrf import csrf_exempt
from rest_framework import viewsets
# from rest_framework.authtoken.models import Token
from rest_framework.decorators import api_view, permission_classes
from rest_framework.perm... | 29.852941 | 86 | 0.715271 | 226 | 2,030 | 6.278761 | 0.411504 | 0.05074 | 0.107822 | 0.039464 | 0.238196 | 0.190275 | 0.190275 | 0.190275 | 0.190275 | 0.111346 | 0 | 0.005542 | 0.2 | 2,030 | 68 | 87 | 29.852941 | 0.868227 | 0.446305 | 0 | 0.16 | 0 | 0 | 0.005607 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.28 | 0.04 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
d0496c5c7f696a84acbe9c26be01931242fea2e0 | 13,843 | py | Python | libs/VManagerSDK/vmanager/models/network_info.py | rgrr/smartmeshsdk | a95f3e4d9e2254d59d326428fef8c77319cd4373 | [
"BSD-3-Clause"
] | 29 | 2015-02-17T14:22:14.000Z | 2021-02-19T06:01:10.000Z | libs/VManagerSDK/vmanager/models/network_info.py | rgrr/smartmeshsdk | a95f3e4d9e2254d59d326428fef8c77319cd4373 | [
"BSD-3-Clause"
] | 104 | 2016-04-10T19:22:20.000Z | 2018-11-20T15:47:14.000Z | libs/VManagerSDK/vmanager/models/network_info.py | rgrr/smartmeshsdk | a95f3e4d9e2254d59d326428fef8c77319cd4373 | [
"BSD-3-Clause"
] | 35 | 2015-07-10T18:58:15.000Z | 2022-03-20T08:56:25.000Z | # coding: utf-8
"""
Copyright 2015 SmartBear Software
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 applica... | 30.626106 | 197 | 0.613523 | 1,701 | 13,843 | 4.747208 | 0.142269 | 0.04161 | 0.117895 | 0.029721 | 0.62613 | 0.559876 | 0.520867 | 0.439752 | 0.383901 | 0.297957 | 0 | 0.002003 | 0.314888 | 13,843 | 451 | 198 | 30.694013 | 0.849431 | 0.448963 | 0 | 0.107143 | 0 | 0 | 0.117945 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.202381 | false | 0 | 0.011905 | 0 | 0.333333 | 0.005952 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d04c7be2fd1e7520ca7adbb6967f603a0abb232c | 979 | py | Python | blog_crypto/blog_crypto/tests/crypto_auth/views/profile_view_test.py | TamarawGuy/crypto_blog | 1865854952f867acde1d1f6909f3d1d3f6f87446 | [
"MIT"
] | null | null | null | blog_crypto/blog_crypto/tests/crypto_auth/views/profile_view_test.py | TamarawGuy/crypto_blog | 1865854952f867acde1d1f6909f3d1d3f6f87446 | [
"MIT"
] | null | null | null | blog_crypto/blog_crypto/tests/crypto_auth/views/profile_view_test.py | TamarawGuy/crypto_blog | 1865854952f867acde1d1f6909f3d1d3f6f87446 | [
"MIT"
] | null | null | null | from django.test import TestCase, Client
from django.urls import reverse
from blog_crypto.crypto_auth.models import CryptoUser, Profile
class ProfileViewTest(TestCase):
def test_profile_view_create_user_and_access_profile_page_return_success(self):
data_sign_up = {
'email': 'viktor@abv.bg',
... | 37.653846 | 83 | 0.665986 | 107 | 979 | 5.897196 | 0.476636 | 0.050713 | 0.085578 | 0.050713 | 0.104596 | 0.104596 | 0 | 0 | 0 | 0 | 0 | 0.020915 | 0.21859 | 979 | 25 | 84 | 39.16 | 0.803922 | 0 | 0 | 0.095238 | 0 | 0 | 0.174668 | 0.064351 | 0 | 0 | 0 | 0 | 0.190476 | 1 | 0.047619 | false | 0.142857 | 0.142857 | 0 | 0.238095 | 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 |
d04ef8d9f0b5200573445545d0ce8a7157cbb2af | 241 | py | Python | gateway/windGateway/__init__.py | Michael-JC/inverstment_analysis | 724bcda7606d3049e6299f7f3390872954f6628f | [
"Apache-2.0"
] | 1 | 2021-05-25T06:34:13.000Z | 2021-05-25T06:34:13.000Z | gateway/windGateway/__init__.py | Michael-JC/inverstment_analysis | 724bcda7606d3049e6299f7f3390872954f6628f | [
"Apache-2.0"
] | null | null | null | gateway/windGateway/__init__.py | Michael-JC/inverstment_analysis | 724bcda7606d3049e6299f7f3390872954f6628f | [
"Apache-2.0"
] | null | null | null | # encoding: UTF-8
from language.chinese import vt_constant
from windGateway import WindGateway
gatewayClass = WindGateway
gatewayName = 'WIND'
gatewayDisplayName = u'万得'
gatewayType = vt_constant.GATEWAYTYPE_DATA
gatewayQryEnabled = False
| 21.909091 | 42 | 0.825726 | 27 | 241 | 7.259259 | 0.740741 | 0.102041 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004695 | 0.116183 | 241 | 10 | 43 | 24.1 | 0.915493 | 0.062241 | 0 | 0 | 0 | 0 | 0.026786 | 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 |
d04fc0f51c435118b73d911f9763d42e9db3ffde | 1,715 | py | Python | examples/red-pitaya/cluster/test.py | Koheron/koheron-sdk | 82b732635f1adf5dd0b04b9290b589c1fc091f29 | [
"MIT"
] | 77 | 2016-09-20T18:44:14.000Z | 2022-03-30T16:04:09.000Z | examples/red-pitaya/cluster/test.py | rsarwar87/koheron-sdk | 02c35bf3c1c29f1029fad18b881dbd193efac5a7 | [
"MIT"
] | 101 | 2016-09-05T15:44:25.000Z | 2022-03-29T09:22:09.000Z | examples/red-pitaya/cluster/test.py | rsarwar87/koheron-sdk | 02c35bf3c1c29f1029fad18b881dbd193efac5a7 | [
"MIT"
] | 34 | 2016-12-12T07:21:57.000Z | 2022-01-12T21:00:52.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os, time
from koheron import command, connect
class Cluster(object):
def __init__(self, client):
self.client = client
@command()
def set_pulse_generator(self, pulse_width, pulse_period):
pass
@command()
def phase_shift(self, in... | 21.708861 | 74 | 0.587755 | 241 | 1,715 | 3.991701 | 0.377593 | 0.08316 | 0.072765 | 0.04158 | 0.049896 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061093 | 0.274636 | 1,715 | 78 | 75 | 21.987179 | 0.712219 | 0.050729 | 0 | 0.25 | 0 | 0 | 0.052372 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.178571 | false | 0.107143 | 0.035714 | 0.035714 | 0.267857 | 0.017857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
d054bbfab5e07f0ea72c7a2658f642acb4eeca98 | 889 | py | Python | main.py | gbanegas/KissECC | 2630998178955a6e68adec34e30802447057c58f | [
"Apache-2.0"
] | 1 | 2017-02-08T16:01:48.000Z | 2017-02-08T16:01:48.000Z | main.py | gbanegas/KissECC | 2630998178955a6e68adec34e30802447057c58f | [
"Apache-2.0"
] | null | null | null | main.py | gbanegas/KissECC | 2630998178955a6e68adec34e30802447057c58f | [
"Apache-2.0"
] | null | null | null | import collections
import math
from edwards_curve import EdwardsCurve
from twistedcurves import TwistedEC
from eddsa import EdDSA
from elgamal import ElGamal
from utils.inversion import Inverse
if __name__ == "__main__":
# Toy examples wih ed25519
a = -1
q = 2**255 - 19
d = -121665 * Inverse().inv(121... | 29.633333 | 74 | 0.686164 | 115 | 889 | 5.121739 | 0.556522 | 0.040747 | 0.067912 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.094964 | 0.218223 | 889 | 29 | 75 | 30.655172 | 0.752518 | 0.026997 | 0 | 0 | 0 | 0 | 0.174971 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.269231 | null | null | 0.269231 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d058334fdbb2fb3a36daf80e495cdc1999a820b7 | 1,018 | py | Python | libs/customwidgets/noconnectionerrorcm.py | mkbeh/CRyptoLab | 424c938c16c9264e99eff71e4c1a27ca65314d42 | [
"MIT"
] | null | null | null | libs/customwidgets/noconnectionerrorcm.py | mkbeh/CRyptoLab | 424c938c16c9264e99eff71e4c1a27ca65314d42 | [
"MIT"
] | 1 | 2021-06-01T22:30:24.000Z | 2021-06-01T22:30:24.000Z | libs/customwidgets/noconnectionerrorcm.py | mkbeh/CRyptoLab | 424c938c16c9264e99eff71e4c1a27ca65314d42 | [
"MIT"
] | 1 | 2021-05-11T23:06:20.000Z | 2021-05-11T23:06:20.000Z | # -*- coding: utf-8 -*-
from kivy.properties import ObjectProperty
from kivy.lang.builder import Builder
from kivy.uix.boxlayout import BoxLayout
Builder.load_string('''
#:import get_path libs.utils.utils.get_path
#:import Window kivy.core.window.Window
<NoConnectionErrorCM>:
btn: btn
orientation: 'vertical... | 24.238095 | 77 | 0.628684 | 124 | 1,018 | 5 | 0.596774 | 0.03871 | 0.041935 | 0.045161 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023684 | 0.253438 | 1,018 | 41 | 78 | 24.829268 | 0.792105 | 0.020629 | 0 | 0 | 0 | 0 | 0.778894 | 0.097487 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.233333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d059d927ea2513e32e6994fba2f0ce36960615ab | 2,537 | py | Python | Tools/freeze/freeze.py | doom38/jython_v2.2.1 | 0803a0c953c294e6d14f9fc7d08edf6a3e630a15 | [
"CNRI-Jython"
] | null | null | null | Tools/freeze/freeze.py | doom38/jython_v2.2.1 | 0803a0c953c294e6d14f9fc7d08edf6a3e630a15 | [
"CNRI-Jython"
] | null | null | null | Tools/freeze/freeze.py | doom38/jython_v2.2.1 | 0803a0c953c294e6d14f9fc7d08edf6a3e630a15 | [
"CNRI-Jython"
] | null | null | null | import Output, sys, os, string
from Freezer import Freezer
class YesNo: pass
class Required: pass
class Options:
def __init__(self, opts, args=None):
if args == None:
args = sys.argv[1:]
ret = {}
index = 0
while index < len(args):
arg = args[index]
if arg[0] == '-':
name = arg[1:]
value ... | 22.06087 | 98 | 0.647615 | 385 | 2,537 | 4.251948 | 0.288312 | 0.024435 | 0.039707 | 0.023824 | 0.045816 | 0.045816 | 0 | 0 | 0 | 0 | 0 | 0.012683 | 0.191959 | 2,537 | 114 | 99 | 22.254386 | 0.785854 | 0.040993 | 0 | 0.02381 | 0 | 0 | 0.090235 | 0.03049 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.02381 | 0.035714 | 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 |
d05c5eb118653743463b8bd39a7c486e28dd1ab6 | 1,316 | py | Python | DjangoTry/testDJ/main/migrations/0001_initial.py | PavelKoksharov/QR-BOOK | 8b05cecd7a3cffcec281f2e17da398ad9e4c5de5 | [
"MIT"
] | null | null | null | DjangoTry/testDJ/main/migrations/0001_initial.py | PavelKoksharov/QR-BOOK | 8b05cecd7a3cffcec281f2e17da398ad9e4c5de5 | [
"MIT"
] | null | null | null | DjangoTry/testDJ/main/migrations/0001_initial.py | PavelKoksharov/QR-BOOK | 8b05cecd7a3cffcec281f2e17da398ad9e4c5de5 | [
"MIT"
] | null | null | null | # Generated by Django 4.0.1 on 2022-01-17 21:56
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Books',
fields=[
('Id', models.AutoField(pr... | 39.878788 | 128 | 0.591185 | 129 | 1,316 | 5.906977 | 0.589147 | 0.144357 | 0.057743 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022822 | 0.267477 | 1,316 | 32 | 129 | 41.125 | 0.767635 | 0.034195 | 0 | 0 | 1 | 0 | 0.189913 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.04 | 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 |
d067e4a32d445f27dc44d7cc4acc25ed9e97f985 | 408 | py | Python | employee/urls.py | Zomba4okk/EmployeesManager | bff29dec7a7b83db79ef3449e19ad51b6fd4df8d | [
"MIT"
] | null | null | null | employee/urls.py | Zomba4okk/EmployeesManager | bff29dec7a7b83db79ef3449e19ad51b6fd4df8d | [
"MIT"
] | null | null | null | employee/urls.py | Zomba4okk/EmployeesManager | bff29dec7a7b83db79ef3449e19ad51b6fd4df8d | [
"MIT"
] | null | null | null | from employee import views
from django.urls import path
urlpatterns = (
path(r'', views.EmployeeListView.as_view(), name='employees_list'),
path(r'create', views.EmployeeCreateView.as_view(), name='employees_create'),
path(r'<int:pk>/delete', views.EmployeeDeleteView.as_view(), name='employee_delete'),
... | 45.333333 | 89 | 0.735294 | 53 | 408 | 5.509434 | 0.433962 | 0.068493 | 0.136986 | 0.130137 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.098039 | 408 | 9 | 90 | 45.333333 | 0.793478 | 0 | 0 | 0 | 0 | 0 | 0.234719 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d0751b536b7ab2a4a9285cf4046821bcfd6a93e3 | 5,016 | py | Python | diplomacy_research/proto/diplomacy_tensorflow/core/protobuf/tensorflow_server_pb2.py | wwongkamjan/dipnet_press | 787263c1b9484698904f525c8d78d0e333e1c0d9 | [
"MIT"
] | 39 | 2019-09-06T13:42:24.000Z | 2022-03-18T18:38:43.000Z | diplomacy_research/proto/diplomacy_tensorflow/core/protobuf/tensorflow_server_pb2.py | wwongkamjan/dipnet_press | 787263c1b9484698904f525c8d78d0e333e1c0d9 | [
"MIT"
] | 9 | 2019-09-19T22:35:32.000Z | 2022-02-24T18:04:57.000Z | diplomacy_research/proto/diplomacy_tensorflow/core/protobuf/tensorflow_server_pb2.py | wwongkamjan/dipnet_press | 787263c1b9484698904f525c8d78d0e333e1c0d9 | [
"MIT"
] | 8 | 2019-10-16T21:09:14.000Z | 2022-02-23T05:20:37.000Z | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: diplomacy_tensorflow/core/protobuf/tensorflow_server.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
fro... | 48.230769 | 691 | 0.790271 | 655 | 5,016 | 5.726718 | 0.235115 | 0.116502 | 0.046921 | 0.057851 | 0.52626 | 0.453746 | 0.419355 | 0.377766 | 0.339376 | 0.278326 | 0 | 0.038708 | 0.098684 | 5,016 | 103 | 692 | 48.699029 | 0.790975 | 0.052831 | 0 | 0.357143 | 1 | 0.02381 | 0.27608 | 0.24784 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d0762ffff39b5d2bada3724ad3d145147cea4f26 | 1,676 | py | Python | bioprocs/bwtool.py | pwwang/biopipen | d53b78aa192fd56a5da457463b099b2aa833b284 | [
"MIT"
] | 2 | 2021-09-10T00:17:52.000Z | 2021-10-10T09:53:09.000Z | bioprocs/bwtool.py | pwwang/biopipen | d53b78aa192fd56a5da457463b099b2aa833b284 | [
"MIT"
] | 1 | 2021-12-02T07:54:09.000Z | 2021-12-02T07:54:09.000Z | bioprocs/bwtool.py | pwwang/biopipen | d53b78aa192fd56a5da457463b099b2aa833b284 | [
"MIT"
] | 2 | 2021-09-10T00:17:54.000Z | 2021-10-10T09:56:40.000Z | """BigWig file operations using bwtool"""
from modkit import Modkit
from pyppl import Proc
from diot import Diot
from . import params, delefactory, procfactory
Modkit().delegate(delefactory())
pBWExtract = proc_factory(
desc = 'Extract features from bigwig file.',
config = Diot(annotate = """
@description:
E... | 31.622642 | 81 | 0.710621 | 229 | 1,676 | 5.187773 | 0.318777 | 0.042088 | 0.063973 | 0.042088 | 0.604377 | 0.506734 | 0.506734 | 0.449495 | 0.383838 | 0.383838 | 0 | 0 | 0.175418 | 1,676 | 52 | 82 | 32.230769 | 0.859624 | 0.020883 | 0 | 0.416667 | 0 | 0 | 0.649541 | 0.061774 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d07bebe3d73bc74bcbcd792c7b1bd6ce6d79c20a | 444 | py | Python | tiramisu/__init__.py | npielawski/torch_tiramisu | fe15d376cc7841aae9c029ea42143d7a5f7d8daf | [
"MIT"
] | 45 | 2020-02-24T08:30:38.000Z | 2021-11-08T10:39:57.000Z | tiramisu/__init__.py | npielawski/torch_tiramisu | fe15d376cc7841aae9c029ea42143d7a5f7d8daf | [
"MIT"
] | null | null | null | tiramisu/__init__.py | npielawski/torch_tiramisu | fe15d376cc7841aae9c029ea42143d7a5f7d8daf | [
"MIT"
] | 2 | 2020-03-02T10:52:40.000Z | 2021-01-20T08:53:01.000Z | from .model import BaseModel
from .tiramisu import DenseUNet, DenseBlock, DenseLayer
from .tiramisu import (
ModuleName,
DEFAULT_MODULE_BANK,
UPSAMPLE2D_NEAREST,
UPSAMPLE2D_PIXELSHUFFLE,
UPSAMPLE2D_TRANPOSE,
)
__all__ = [
"BaseModel",
"DenseUNet",
"DenseBlock",
"DenseLayer",
"Mo... | 20.181818 | 55 | 0.702703 | 38 | 444 | 7.842105 | 0.447368 | 0.080537 | 0.120805 | 0.181208 | 0.563758 | 0.563758 | 0.563758 | 0.563758 | 0.563758 | 0.563758 | 0 | 0.016949 | 0.202703 | 444 | 21 | 56 | 21.142857 | 0.824859 | 0 | 0 | 0 | 0 | 0 | 0.286036 | 0.051802 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.15 | 0 | 0.15 | 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 |
d07c06224e7d82d12f5e613113377c9b4ec2fe10 | 559 | py | Python | algorithmic-toolbox/dynamic-programming/edit_distance.py | chaudharychandan/Coursera-Data-Structures-and-Algorithms | 6d10851d037b22de2b764ecd2c006745ef58435f | [
"MIT"
] | 1 | 2020-10-18T01:08:10.000Z | 2020-10-18T01:08:10.000Z | algorithmic-toolbox/dynamic-programming/edit_distance.py | chaudharychandan/Coursera-Data-Structures-and-Algorithms | 6d10851d037b22de2b764ecd2c006745ef58435f | [
"MIT"
] | null | null | null | algorithmic-toolbox/dynamic-programming/edit_distance.py | chaudharychandan/Coursera-Data-Structures-and-Algorithms | 6d10851d037b22de2b764ecd2c006745ef58435f | [
"MIT"
] | 7 | 2020-04-29T13:25:55.000Z | 2022-02-20T12:49:16.000Z | # Uses python3
def edit_distance(s, t, memo = {}):
if len(s) == 0: return len(t)
if len(t) == 0: return len(s)
if (len(s), len(t)) in memo:
return memo[(len(s), len(t))]
delta = 1 if s[-1] != t[-1] else 0
diag = edit_distance(s[:-1], t[:-1], memo) + delta
vert = edit_distance(s[:-1], t... | 25.409091 | 54 | 0.559928 | 93 | 559 | 3.193548 | 0.258065 | 0.20202 | 0.175084 | 0.080808 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030588 | 0.239714 | 559 | 21 | 55 | 26.619048 | 0.668235 | 0.021467 | 0 | 0 | 0 | 0 | 0.014679 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0 | 0 | 0.214286 | 0.071429 | 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 |
d07c4182436e62b7b9b3ddf02acc3156f411360b | 2,407 | py | Python | database_reader/physionet_databases/mimic3.py | wenh06/database_reader | 784ea882e78791979ab020da403b97ea50b9d075 | [
"MIT"
] | 2 | 2021-02-07T10:32:42.000Z | 2021-05-25T13:56:47.000Z | database_reader/physionet_databases/mimic3.py | DeepPSP/database_reader | 179505ec5c21636b05e916e7b9025e6ef1f388d3 | [
"MIT"
] | 1 | 2021-03-17T15:24:33.000Z | 2021-04-22T15:05:16.000Z | database_reader/physionet_databases/mimic3.py | DeepPSP/database_reader | 179505ec5c21636b05e916e7b9025e6ef1f388d3 | [
"MIT"
] | 2 | 2021-05-25T14:52:58.000Z | 2022-03-18T08:38:57.000Z | # -*- coding: utf-8 -*-
"""
"""
import os
from datetime import datetime
from typing import Union, Optional, Any, List, NoReturn
from numbers import Real
import wfdb
import numpy as np
np.set_printoptions(precision=5, suppress=True)
import pandas as pd
from ..utils.common import (
ArrayLike,
get_record_list_re... | 27.044944 | 247 | 0.64354 | 296 | 2,407 | 5.121622 | 0.591216 | 0.031662 | 0.037599 | 0.031662 | 0.043536 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024229 | 0.245534 | 2,407 | 88 | 248 | 27.352273 | 0.810573 | 0.518488 | 0 | 0.074074 | 0 | 0 | 0.025451 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 0.481481 | 0.037037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d0820f43954c8f7bd655689bf8aeb5e45d64333c | 4,498 | py | Python | core/ctest_const.py | Alex-Lian/openctest | f015ceff442f66f02b6da6a02561c5f79af1d5ad | [
"MIT"
] | 22 | 2020-10-16T21:53:26.000Z | 2022-03-11T07:53:40.000Z | core/ctest_const.py | Alex-Lian/openctest | f015ceff442f66f02b6da6a02561c5f79af1d5ad | [
"MIT"
] | 5 | 2021-06-10T03:32:55.000Z | 2022-01-24T01:30:20.000Z | core/ctest_const.py | Alex-Lian/openctest | f015ceff442f66f02b6da6a02561c5f79af1d5ad | [
"MIT"
] | 7 | 2021-02-08T12:55:59.000Z | 2022-03-03T12:23:54.000Z | # constant for ctest generation
import os
CUR_DIR = os.path.dirname(os.path.realpath(__file__))
APP_DIR = os.path.join(CUR_DIR, "app")
GEN_CTEST_DIR = os.path.join(CUR_DIR, "generate_ctest")
RUN_CTEST_DIR = os.path.join(CUR_DIR, "run_ctest")
HCOMMON = "hadoop-common"
HDFS = "hadoop-hdfs"
HBASE = "hbase-server"
ZOOKE... | 37.483333 | 107 | 0.727434 | 639 | 4,498 | 4.86072 | 0.1518 | 0.07727 | 0.122344 | 0.091758 | 0.588538 | 0.534771 | 0.457824 | 0.322601 | 0.27624 | 0.217643 | 0 | 0 | 0.133615 | 4,498 | 120 | 108 | 37.483333 | 0.797023 | 0.078257 | 0 | 0.074468 | 1 | 0 | 0.225557 | 0.111326 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.010638 | 0.010638 | 0 | 0.010638 | 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 |
d08d8887ccff4dda9ebaed7219b3493cc8e01a9f | 387 | py | Python | app/api/routes/router.py | jmeisele/fastapi-tf | a27e5264910c1516e080b5f3471f8ab293e46df2 | [
"MIT"
] | 1 | 2020-11-17T20:42:38.000Z | 2020-11-17T20:42:38.000Z | app/api/routes/router.py | jmeisele/fastapi-tf | a27e5264910c1516e080b5f3471f8ab293e46df2 | [
"MIT"
] | null | null | null | app/api/routes/router.py | jmeisele/fastapi-tf | a27e5264910c1516e080b5f3471f8ab293e46df2 | [
"MIT"
] | null | null | null | """
Author: Jason Eisele
Date: October 1, 2020
Email: jeisele@shipt.com
Scope: App for Tensorflow Doggo classifier
"""
from fastapi import APIRouter
from app.api.routes import heartbeat, prediction
api_router = APIRouter()
api_router.include_router(heartbeat.router, tags=["health"], prefix="/health")
api_router.includ... | 32.25 | 84 | 0.782946 | 51 | 387 | 5.843137 | 0.607843 | 0.090604 | 0.107383 | 0.147651 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014205 | 0.090439 | 387 | 12 | 84 | 32.25 | 0.832386 | 0.284238 | 0 | 0 | 0 | 0 | 0.114815 | 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 |
d0965616d273b81d5f0bc133f0314f5912198515 | 3,756 | py | Python | jupiter_init.py | xpert98/jupiter-docker | 9360bc863231f354078c231ce94c53114e20e03f | [
"MIT"
] | null | null | null | jupiter_init.py | xpert98/jupiter-docker | 9360bc863231f354078c231ce94c53114e20e03f | [
"MIT"
] | null | null | null | jupiter_init.py | xpert98/jupiter-docker | 9360bc863231f354078c231ce94c53114e20e03f | [
"MIT"
] | null | null | null | import docker
import rsa
import base64
import jwt
import random
import string
import uuid
import argparse
def create_aes_key():
(pubkey, privkey) = rsa.newkeys(512)
aes_key = rsa.randnum.read_random_bits(128)
encrypted_aes_key = rsa.encrypt(aes_key, privkey)
encoded_key = base64.b64encode(encrypted_aes... | 27.617647 | 120 | 0.752396 | 561 | 3,756 | 4.7041 | 0.185383 | 0.075028 | 0.095491 | 0.143236 | 0.462296 | 0.413035 | 0.345585 | 0.253126 | 0.081091 | 0.04244 | 0 | 0.008041 | 0.105964 | 3,756 | 135 | 121 | 27.822222 | 0.777844 | 0.009052 | 0 | 0.126316 | 0 | 0 | 0.139053 | 0.016945 | 0 | 0 | 0 | 0 | 0 | 1 | 0.031579 | false | 0.178947 | 0.084211 | 0 | 0.147368 | 0.147368 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d09fe565246e10010853c0804b3e153e2022d45c | 810 | py | Python | office365/teams/channelCollection.py | andrewcchoi/Office365-REST-Python-Client | 43db12ae532c804c75a3a34f7b0d7d79e30fdac3 | [
"MIT"
] | null | null | null | office365/teams/channelCollection.py | andrewcchoi/Office365-REST-Python-Client | 43db12ae532c804c75a3a34f7b0d7d79e30fdac3 | [
"MIT"
] | null | null | null | office365/teams/channelCollection.py | andrewcchoi/Office365-REST-Python-Client | 43db12ae532c804c75a3a34f7b0d7d79e30fdac3 | [
"MIT"
] | null | null | null | from office365.entity_collection import EntityCollection
from office365.teams.channel import Channel
class ChannelCollection(EntityCollection):
"""Team's collection"""
def __init__(self, context, resource_path=None):
super(ChannelCollection, self).__init__(context, Channel, resource_path)
def ad... | 35.217391 | 94 | 0.690123 | 90 | 810 | 6.066667 | 0.533333 | 0.047619 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009646 | 0.232099 | 810 | 22 | 95 | 36.818182 | 0.868167 | 0.32963 | 0 | 0 | 0 | 0 | 0.044088 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.181818 | 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 |
d0a3c0a9fdefbdf30575199b75466e3fafc2fe3e | 1,116 | py | Python | elkm1_lib/settings.py | gjbadros/elkm1 | bdcde4d82a313f988c98401903596fe8b619c9eb | [
"MIT"
] | 16 | 2018-04-10T16:27:42.000Z | 2021-02-25T22:02:33.000Z | elkm1_lib/settings.py | gjbadros/elkm1 | bdcde4d82a313f988c98401903596fe8b619c9eb | [
"MIT"
] | 36 | 2018-05-02T12:38:24.000Z | 2022-03-31T19:17:34.000Z | elkm1_lib/settings.py | gjbadros/elkm1 | bdcde4d82a313f988c98401903596fe8b619c9eb | [
"MIT"
] | 9 | 2018-04-10T23:28:36.000Z | 2021-09-27T06:30:29.000Z | """Definition of an ElkM1 Custom Value"""
from .const import Max, TextDescriptions
from .elements import Element, Elements
from .message import cp_encode, cw_encode
class Setting(Element):
"""Class representing an Custom Value"""
def __init__(self, index, elk):
super().__init__(index, elk)
se... | 30.162162 | 72 | 0.655914 | 138 | 1,116 | 5.050725 | 0.326087 | 0.094692 | 0.031564 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003468 | 0.22491 | 1,116 | 36 | 73 | 31 | 0.802312 | 0.149642 | 0 | 0 | 0 | 0 | 0.026002 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.227273 | false | 0 | 0.136364 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d0ac43b7a6ebc68895bade29f6bfbd347c1189d2 | 580 | py | Python | flax/util/db_synchronous.py | ReadyNeutron/shitcoin-blockchain | 80add4e545ad22a317244f7fd958d118a5a75c5d | [
"Apache-2.0"
] | 11,902 | 2019-12-05T00:14:29.000Z | 2022-03-31T23:25:37.000Z | chia/util/db_synchronous.py | lahyunLee/gold-blockchain | b9f90babeb58c3c0fa384153ca01ae973e19cffd | [
"Apache-2.0"
] | 5,246 | 2019-12-05T04:00:03.000Z | 2022-03-31T21:33:30.000Z | chia/util/db_synchronous.py | lahyunLee/gold-blockchain | b9f90babeb58c3c0fa384153ca01ae973e19cffd | [
"Apache-2.0"
] | 2,149 | 2019-12-05T11:12:53.000Z | 2022-03-31T06:08:34.000Z | from pathlib import Path
def db_synchronous_on(setting: str, db_path: Path) -> str:
if setting == "on":
return "NORMAL"
if setting == "off":
return "OFF"
if setting == "full":
return "FULL"
# for now, default to synchronous=FULL mode. This can be made more
# sophisticated ... | 26.363636 | 71 | 0.62931 | 79 | 580 | 4.544304 | 0.607595 | 0.075209 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.275862 | 580 | 21 | 72 | 27.619048 | 0.854762 | 0.496552 | 0 | 0.222222 | 0 | 0 | 0.091549 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 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 |
d0b80815f51db4706a0ab2df144968feae2be18b | 1,078 | py | Python | word-finder.py | mwilczek-net/word-finder | 3c85f0ca4373b91bafa944512f65776dd4350941 | [
"Unlicense"
] | null | null | null | word-finder.py | mwilczek-net/word-finder | 3c85f0ca4373b91bafa944512f65776dd4350941 | [
"Unlicense"
] | null | null | null | word-finder.py | mwilczek-net/word-finder | 3c85f0ca4373b91bafa944512f65776dd4350941 | [
"Unlicense"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
import sys
import argparse
def parseArgs():
parser = argparse.ArgumentParser()
parser.add_argument("available", help="Available characters (number of occurence count)", type=str)
parser.add_argument("--any", help="Number of 'any' characters", type=int, default="0"... | 26.292683 | 124 | 0.657699 | 131 | 1,078 | 5.312977 | 0.412214 | 0.063218 | 0.025862 | 0.068966 | 0.077586 | 0.077586 | 0.077586 | 0 | 0 | 0 | 0 | 0.008187 | 0.206865 | 1,078 | 40 | 125 | 26.95 | 0.805848 | 0.048237 | 0 | 0 | 0 | 0 | 0.094912 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.08 | null | null | 0.04 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d0b8325870c2cc15bf72ef3968df743f6971eddb | 1,457 | py | Python | badger_api/requests.py | Badger-Finance/badger-rewards | 798a80d44ba8ff2fb384d7eeb3ebcf76919d5dd4 | [
"MIT"
] | 3 | 2022-01-05T20:33:35.000Z | 2022-02-09T16:07:30.000Z | badger_api/requests.py | Badger-Finance/badger-rewards | 798a80d44ba8ff2fb384d7eeb3ebcf76919d5dd4 | [
"MIT"
] | 341 | 2021-08-04T13:01:21.000Z | 2022-03-31T19:46:30.000Z | badger_api/requests.py | Badger-Finance/badger-rewards | 798a80d44ba8ff2fb384d7eeb3ebcf76919d5dd4 | [
"MIT"
] | 3 | 2021-09-07T12:54:27.000Z | 2021-12-22T13:27:23.000Z | from functools import lru_cache
from typing import Dict, Optional, Tuple
from badger_api.config import get_api_base_path
from helpers.constants import BOOST_CHAINS
from helpers.enums import Network
from helpers.http_client import http_client
badger_api = get_api_base_path()
def fetch_ppfs() -> Optional[Tuple[float,... | 27.490566 | 76 | 0.686342 | 205 | 1,457 | 4.692683 | 0.253659 | 0.072765 | 0.054054 | 0.043659 | 0.175676 | 0.132017 | 0.060291 | 0.060291 | 0 | 0 | 0 | 0.002564 | 0.19698 | 1,457 | 52 | 77 | 28.019231 | 0.819658 | 0.045985 | 0 | 0.060606 | 0 | 0 | 0.0883 | 0.048565 | 0 | 0 | 0 | 0 | 0 | 1 | 0.151515 | false | 0 | 0.181818 | 0.030303 | 0.515152 | 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 |
d0bbf52421c22df954d243beda9f0824d8be13be | 370 | py | Python | account/migrations/0006_auto_20200915_0418.py | IHIMEKPEN/Pegasus-beta | f2c1daf97225ef0bc21c0754de5717de65216bce | [
"MIT"
] | 2 | 2022-01-07T15:06:34.000Z | 2022-03-15T20:17:05.000Z | account/migrations/0006_auto_20200915_0418.py | IHIMEKPEN/Pegasus-beta | f2c1daf97225ef0bc21c0754de5717de65216bce | [
"MIT"
] | null | null | null | account/migrations/0006_auto_20200915_0418.py | IHIMEKPEN/Pegasus-beta | f2c1daf97225ef0bc21c0754de5717de65216bce | [
"MIT"
] | null | null | null | # Generated by Django 2.2 on 2020-09-15 04:18
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('account', '0005_auto_20200914_0912'),
]
operations = [
migrations.RenameField(
model_name='customer',
old_name='session_id',
... | 19.473684 | 47 | 0.594595 | 40 | 370 | 5.3 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115385 | 0.297297 | 370 | 18 | 48 | 20.555556 | 0.7 | 0.116216 | 0 | 0 | 1 | 0 | 0.175385 | 0.070769 | 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 |
d0caebf6147c5c204282468c16fd4aa338cf7efb | 2,404 | py | Python | nano_prom_exporter/__main__.py | angristan/nano_prom_exporter | 4a1154ceac10e516439321bbf43ff7d39ad0b629 | [
"MIT"
] | 4 | 2020-07-26T11:41:54.000Z | 2021-12-07T01:31:54.000Z | nano_prom_exporter/__main__.py | nbeard49/nano_prom_exporter | 57b158b5c5235126a5d59f73ce5c621846ddc297 | [
"MIT"
] | 5 | 2020-09-01T14:33:32.000Z | 2022-02-01T17:26:56.000Z | nano_prom_exporter/__main__.py | nbeard49/nano_prom_exporter | 57b158b5c5235126a5d59f73ce5c621846ddc297 | [
"MIT"
] | 4 | 2020-09-13T11:40:41.000Z | 2021-12-09T03:03:11.000Z | """Nano Prometheus Export to Gateway
This Script allows the user to export specific
nano_node based stats to a prometheus gateway
limiting the amount of attack surface normally
needed for exposing stats like this
This script requires
`promethues_client`
`psutil`
`requests` be installed
"""
import argparse
from socke... | 30.43038 | 77 | 0.68802 | 275 | 2,404 | 5.887273 | 0.403636 | 0.050031 | 0.094503 | 0.098826 | 0.177888 | 0.07412 | 0.07412 | 0.07412 | 0.07412 | 0.07412 | 0 | 0.010209 | 0.185108 | 2,404 | 78 | 78 | 30.820513 | 0.816233 | 0.118552 | 0 | 0.178571 | 0 | 0 | 0.246686 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017857 | false | 0.053571 | 0.125 | 0 | 0.142857 | 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 |
d0d025cac8bd2bb278581c245f6e8a2664fab81b | 392 | py | Python | Zad_Composite/Zad_Composite_Main.py | Paarzivall/Wzorce-Projektowe | aa4136f140ad02c0fc0de45709b5a01ca42b417f | [
"MIT"
] | null | null | null | Zad_Composite/Zad_Composite_Main.py | Paarzivall/Wzorce-Projektowe | aa4136f140ad02c0fc0de45709b5a01ca42b417f | [
"MIT"
] | null | null | null | Zad_Composite/Zad_Composite_Main.py | Paarzivall/Wzorce-Projektowe | aa4136f140ad02c0fc0de45709b5a01ca42b417f | [
"MIT"
] | null | null | null | from Line import Line
from Rectangle import Rectangle
from Text import Text
from Picture import Picture
if __name__ == '__main__':
picture1 = Picture()
picture1.add(Line())
picture1.add(Rectangle())
picture2 = Picture()
picture2.add(Text())
picture2.add(Line())
picture2.add(Rectangle())
... | 19.6 | 31 | 0.681122 | 46 | 392 | 5.630435 | 0.282609 | 0.169884 | 0.11583 | 0.177606 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035032 | 0.19898 | 392 | 20 | 32 | 19.6 | 0.789809 | 0 | 0 | 0.133333 | 0 | 0 | 0.020356 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.266667 | 0 | 0.266667 | 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 |
d0d280638fea566b737fc432e8498e168404875b | 3,908 | py | Python | core/settings.py | kylr42/ecommerce | 764aa4e4656a969338ccea2865cb999ad2dbc520 | [
"MIT"
] | 1 | 2022-02-15T16:14:41.000Z | 2022-02-15T16:14:41.000Z | core/settings.py | kylr42/ecommerce | 764aa4e4656a969338ccea2865cb999ad2dbc520 | [
"MIT"
] | null | null | null | core/settings.py | kylr42/ecommerce | 764aa4e4656a969338ccea2865cb999ad2dbc520 | [
"MIT"
] | null | null | null | import os
import sys
from pathlib import Path
from django.core.management.utils import get_random_secret_key
import dj_database_url
BASE_DIR = Path(__file__).resolve().parent.parent
SECRET_KEY = os.getenv('DJANGO_SECRET_KEY', get_random_secret_key())
DEBUG = os.getenv("DEBUG", "False") == "True"
ALLOWED_HOSTS = os... | 27.138889 | 91 | 0.644575 | 407 | 3,908 | 6.012285 | 0.346437 | 0.079689 | 0.048631 | 0.022885 | 0.149571 | 0.135676 | 0.039232 | 0 | 0 | 0 | 0 | 0.007446 | 0.20957 | 3,908 | 143 | 92 | 27.328671 | 0.78472 | 0.012538 | 0 | 0.052632 | 0 | 0 | 0.47834 | 0.311025 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.061404 | 0.04386 | 0 | 0.04386 | 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 |
d0d6a563171e7baedff4952a2aac31c60e378496 | 6,584 | py | Python | spectramanipulator/settings.py | dmadea/Spectra-Manipulator | ddc1b27cb4f4691096dfa7b2975df350d2eaf40e | [
"MIT"
] | 1 | 2020-07-18T17:46:01.000Z | 2020-07-18T17:46:01.000Z | spectramanipulator/settings.py | dmadea/Spectra-Manipulator | ddc1b27cb4f4691096dfa7b2975df350d2eaf40e | [
"MIT"
] | null | null | null | spectramanipulator/settings.py | dmadea/Spectra-Manipulator | ddc1b27cb4f4691096dfa7b2975df350d2eaf40e | [
"MIT"
] | null | null | null | import json
from spectramanipulator.logger import Logger
# import sys
import os
class Settings(object):
"""Static class containing user settings with static functions for saving and loading to/from json file."""
# settings that starts with '_' will not be saved into a file
# static variables
_config... | 27.548117 | 113 | 0.666464 | 811 | 6,584 | 5.062885 | 0.332922 | 0.031661 | 0.029226 | 0.040916 | 0.228933 | 0.175353 | 0.128592 | 0.09547 | 0.09547 | 0.073064 | 0 | 0.012591 | 0.252126 | 6,584 | 238 | 114 | 27.663866 | 0.821284 | 0.224787 | 0 | 0.080882 | 0 | 0.007353 | 0.116025 | 0.068624 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051471 | false | 0.007353 | 0.080882 | 0 | 0.705882 | 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 |
d0e3b87da648ec5a78e6b2d6277a54ea461542d5 | 377 | py | Python | betel/betel_errors.py | googleinterns/betel | 2daa56081ccc753f5b7eafbd1e9a48e3aca4b657 | [
"Apache-2.0"
] | 1 | 2020-09-21T12:52:33.000Z | 2020-09-21T12:52:33.000Z | betel/betel_errors.py | googleinterns/betel | 2daa56081ccc753f5b7eafbd1e9a48e3aca4b657 | [
"Apache-2.0"
] | null | null | null | betel/betel_errors.py | googleinterns/betel | 2daa56081ccc753f5b7eafbd1e9a48e3aca4b657 | [
"Apache-2.0"
] | 1 | 2020-07-31T09:55:33.000Z | 2020-07-31T09:55:33.000Z | class BetelError(Exception):
"""Raise when an exception occurs."""
class PlayScrapingError(BetelError):
"""Raise when certain attributes can't be found within the Play page."""
class AccessError(BetelError):
"""Raise on URL or HTTP errors."""
def __init__(self, message, exception):
super(Acc... | 29 | 76 | 0.689655 | 44 | 377 | 5.727273 | 0.681818 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.177719 | 377 | 12 | 77 | 31.416667 | 0.812903 | 0.33687 | 0 | 0 | 0 | 0 | 0.017094 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
190106284a0d84dc3a2679a7c6c654e22422ae09 | 919 | py | Python | source/chapters/chapter_01/get_scattered_chunks.py | ZviBaratz/ml_for_neuro | d75455b6d11affbde6e5078494ae00f55fbc208e | [
"CC-BY-4.0"
] | null | null | null | source/chapters/chapter_01/get_scattered_chunks.py | ZviBaratz/ml_for_neuro | d75455b6d11affbde6e5078494ae00f55fbc208e | [
"CC-BY-4.0"
] | null | null | null | source/chapters/chapter_01/get_scattered_chunks.py | ZviBaratz/ml_for_neuro | d75455b6d11affbde6e5078494ae00f55fbc208e | [
"CC-BY-4.0"
] | 2 | 2021-01-13T09:00:28.000Z | 2022-02-14T02:49:52.000Z | """
get_scattered_chunks.py
Definition of the `get_scattered_chunks()` function, used to generate
a subsample of rows for manual review of the dataset.
"""
import numpy as np
import pandas as pd
def get_scattered_chunks(
data: pd.DataFrame, n_chunks: int = 5, chunk_size: int = 3
) -> pd.DataFrame:
"""
R... | 23.564103 | 75 | 0.658324 | 127 | 919 | 4.629921 | 0.425197 | 0.102041 | 0.091837 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00438 | 0.254625 | 919 | 38 | 76 | 24.184211 | 0.854015 | 0.479869 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.181818 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
190ab32d037c2f6bce891894718946198f9d3714 | 6,631 | py | Python | options.py | TomlinsonJ03/4006CEM-Mini-Project | ac2ebcfa5793475d7bfb074034b5aa23cfd1858e | [
"CC0-1.0"
] | null | null | null | options.py | TomlinsonJ03/4006CEM-Mini-Project | ac2ebcfa5793475d7bfb074034b5aa23cfd1858e | [
"CC0-1.0"
] | null | null | null | options.py | TomlinsonJ03/4006CEM-Mini-Project | ac2ebcfa5793475d7bfb074034b5aa23cfd1858e | [
"CC0-1.0"
] | null | null | null | """A dictonary containing every option/button in the map.
xStart, yStart, xEnd, yEnd are all percentiles, which are later multipled by the total width and
height of the map.
Activated is a boolean which changes when the button is placed on the screen.
Ending is a boolean which determines if that option/button is the fi... | 22.944637 | 96 | 0.39255 | 650 | 6,631 | 4.004615 | 0.203077 | 0.075298 | 0.215136 | 0.144065 | 0.66116 | 0.399155 | 0.389166 | 0.389166 | 0.284287 | 0.039186 | 0 | 0.089491 | 0.371437 | 6,631 | 288 | 97 | 23.024306 | 0.535029 | 0.128337 | 0 | 0.586614 | 0 | 0 | 0.268817 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
ef6bdc5e7d2e0e33f3b3812088f60fc1af331da8 | 692 | py | Python | 01_FirstSteps/working_with_for_loops.py | Rockfish/PythonCourse | 1d650e49950d1987d052028139fcdfcb0bbfcc70 | [
"MIT"
] | null | null | null | 01_FirstSteps/working_with_for_loops.py | Rockfish/PythonCourse | 1d650e49950d1987d052028139fcdfcb0bbfcc70 | [
"MIT"
] | null | null | null | 01_FirstSteps/working_with_for_loops.py | Rockfish/PythonCourse | 1d650e49950d1987d052028139fcdfcb0bbfcc70 | [
"MIT"
] | null | null | null | '''
Loops let you walk through a sequence of items, such as items in a list
'''
#
# looping through a list
#
colors = ['black', 'blue', 'brown', 'green', 'purple', 'white', 'yellow']
for color in colors:
print(color)
#
# Looping through a range of numbers
#
for num in range(5):
print(num) # Prints th... | 20.352941 | 85 | 0.625723 | 117 | 692 | 3.700855 | 0.547009 | 0.055427 | 0.055427 | 0.090069 | 0.189376 | 0 | 0 | 0 | 0 | 0 | 0 | 0.079612 | 0.25578 | 692 | 33 | 86 | 20.969697 | 0.761165 | 0.565029 | 0 | 0.333333 | 0 | 0 | 0.129496 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.444444 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
ef6ef803751cbeab6d2e59cbc3ae5fb9deaa7755 | 412 | py | Python | server/core/migrations/0004_auto_20210322_1124.py | e1r0nd/django-drf-react-starter | d04d5fffaa1f17ff0e30b5f6b24fcefdd4594c83 | [
"Apache-2.0"
] | null | null | null | server/core/migrations/0004_auto_20210322_1124.py | e1r0nd/django-drf-react-starter | d04d5fffaa1f17ff0e30b5f6b24fcefdd4594c83 | [
"Apache-2.0"
] | 2 | 2021-09-22T19:51:19.000Z | 2022-02-27T17:19:01.000Z | server/core/migrations/0004_auto_20210322_1124.py | e1r0nd/django-drf-react-starter | d04d5fffaa1f17ff0e30b5f6b24fcefdd4594c83 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.1.4 on 2021-03-22 11:24
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0003_auto_20210322_1114'),
]
operations = [
migrations.AlterField(
model_name='user',
name='email',
... | 21.684211 | 82 | 0.609223 | 46 | 412 | 5.326087 | 0.826087 | 0.073469 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113712 | 0.274272 | 412 | 18 | 83 | 22.888889 | 0.705686 | 0.109223 | 0 | 0 | 1 | 0 | 0.134247 | 0.063014 | 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 |
ef730b47f96d0fc548b168c137be4897b71a1277 | 4,100 | py | Python | backend/api/views.py | add-bakkers/mitou2022-prototype | 3c97aa67adf2e94e78a4f4c4d31c3cd50d7d5b3a | [
"MIT"
] | null | null | null | backend/api/views.py | add-bakkers/mitou2022-prototype | 3c97aa67adf2e94e78a4f4c4d31c3cd50d7d5b3a | [
"MIT"
] | 2 | 2022-03-04T05:58:40.000Z | 2022-03-04T05:58:54.000Z | backend/api/views.py | add-bakkers/mitou2022-prototype | 3c97aa67adf2e94e78a4f4c4d31c3cd50d7d5b3a | [
"MIT"
] | null | null | null | from pdb import post_mortem
from urllib import response
from rest_framework import renderers
from api.models import User,Tag1,Tag2,Sensor,SensorType,Data,File,Analysis
from django.http import Http404
from rest_framework.views import APIView
from rest_framework.response import Response
from rest_framework import status... | 35.964912 | 160 | 0.673902 | 450 | 4,100 | 6.048889 | 0.286667 | 0.036738 | 0.096988 | 0.073475 | 0.223365 | 0.198384 | 0.160911 | 0.160911 | 0.094783 | 0.06025 | 0 | 0.012849 | 0.221707 | 4,100 | 114 | 161 | 35.964912 | 0.840175 | 0.014634 | 0 | 0.152174 | 0 | 0 | 0.048055 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032609 | false | 0 | 0.195652 | 0 | 0.543478 | 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 |
ef7a77afdd2a4970f3d134d1c6d77ec6a3de36de | 2,075 | py | Python | src/api.py | RyanLiu6/recipe-scrambler | dd65b948cb9f6b4ef9905eca248b5abdae52b5c0 | [
"MIT"
] | null | null | null | src/api.py | RyanLiu6/recipe-scrambler | dd65b948cb9f6b4ef9905eca248b5abdae52b5c0 | [
"MIT"
] | null | null | null | src/api.py | RyanLiu6/recipe-scrambler | dd65b948cb9f6b4ef9905eca248b5abdae52b5c0 | [
"MIT"
] | null | null | null | from deepl import Translator
from dotenv import dotenv_values
class TranslationClient:
def __init__(self):
config = dotenv_values(".env")
self.client = Translator(config["API_KEY"])
# Create a target_languages list without English in it
self.target_languages = []
for langu... | 34.583333 | 106 | 0.641928 | 231 | 2,075 | 5.532468 | 0.311688 | 0.153365 | 0.053991 | 0.051643 | 0.186228 | 0.147105 | 0.147105 | 0.147105 | 0.111111 | 0.111111 | 0 | 0 | 0.270843 | 2,075 | 59 | 107 | 35.169492 | 0.844679 | 0.28 | 0 | 0 | 0 | 0 | 0.041213 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.076923 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ef7befd450a35004073942ecc40d2e90d930a9f5 | 1,251 | py | Python | tweet-stream/database.py | felixpeters/tweet-stream | f48f79c28f5923a1aa27a7dd62589fbe830fc330 | [
"MIT"
] | 1 | 2018-10-04T00:59:09.000Z | 2018-10-04T00:59:09.000Z | tweet-stream/database.py | felixpeters/tweet-stream | f48f79c28f5923a1aa27a7dd62589fbe830fc330 | [
"MIT"
] | null | null | null | tweet-stream/database.py | felixpeters/tweet-stream | f48f79c28f5923a1aa27a7dd62589fbe830fc330 | [
"MIT"
] | null | null | null | import sqlite3
from sqlite3 import Error
from .queries import CREATE_TWEETS_TABLE, CREATE_RETWEETS_TABLE, CREATE_QUOTES_TABLE, CREATE_REPLIES_TABLE, INSERT_TWEET, INSERT_RETWEET, INSERT_QUOTE, INSERT_REPLY
def create_connection(path):
conn = sqlite3.connect(path)
return conn
def create_tweets_table(conn):
... | 26.0625 | 164 | 0.731415 | 171 | 1,251 | 5.111111 | 0.175439 | 0.064073 | 0.118993 | 0.146453 | 0.490847 | 0.490847 | 0.358124 | 0.318078 | 0.144165 | 0 | 0 | 0.002868 | 0.163869 | 1,251 | 47 | 165 | 26.617021 | 0.832696 | 0 | 0 | 0.421053 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.236842 | false | 0 | 0.078947 | 0 | 0.447368 | 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 |
ef800f9b1d98c6d9ace8543402cb13bba3426047 | 9,219 | py | Python | src/nn/multilayers.py | nrc-cnrc/Portage-SMT-TAS | 73f5a65de4adfa13008ea9a01758385c97526059 | [
"MIT"
] | null | null | null | src/nn/multilayers.py | nrc-cnrc/Portage-SMT-TAS | 73f5a65de4adfa13008ea9a01758385c97526059 | [
"MIT"
] | null | null | null | src/nn/multilayers.py | nrc-cnrc/Portage-SMT-TAS | 73f5a65de4adfa13008ea9a01758385c97526059 | [
"MIT"
] | null | null | null | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
# @file multilayers.py
# @brief Multi-layer perceptron
# @author Marine Carpuat
#
# Traitement multilingue de textes / Multilingual Text Processing
# Centre de recherche en technologies numériques / Digital Technologies Research Centre
# Conseil national de recherches Can... | 42.87907 | 168 | 0.631847 | 1,333 | 9,219 | 4.244561 | 0.218305 | 0.012195 | 0.009191 | 0.012372 | 0.413397 | 0.364086 | 0.312655 | 0.261223 | 0.261223 | 0.249558 | 0 | 0.017659 | 0.256752 | 9,219 | 214 | 169 | 43.079439 | 0.808085 | 0.13841 | 0 | 0.276423 | 0 | 0 | 0.060139 | 0 | 0 | 0 | 0 | 0 | 0.03252 | 0 | null | null | 0 | 0.04065 | null | null | 0.089431 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ef806ad60a649897f745df3297d6ab1ead273de5 | 481 | py | Python | auto_repair_saas/apps/utils/middleware.py | wangonya/auto-repair-saas | b53e7f098baea8c885daf1b3c7bf2cf1a61ab226 | [
"Apache-2.0"
] | 6 | 2020-12-24T18:19:25.000Z | 2021-09-15T19:19:57.000Z | auto_repair_saas/apps/utils/middleware.py | wangonya/auto-repair-saas | b53e7f098baea8c885daf1b3c7bf2cf1a61ab226 | [
"Apache-2.0"
] | 24 | 2020-12-14T12:32:05.000Z | 2021-09-15T19:19:53.000Z | auto_repair_saas/apps/utils/middleware.py | wangonya/auto-repair-saas | b53e7f098baea8c885daf1b3c7bf2cf1a61ab226 | [
"Apache-2.0"
] | 3 | 2020-12-28T03:10:41.000Z | 2021-01-06T20:37:24.000Z | from threading import local
from django.utils.deprecation import MiddlewareMixin
_user = local() # Global thread-safe variable
class CurrentUserMiddleware(MiddlewareMixin):
"""
Middleware which stores request's user into global thread-safe
variable.
"""
def process_request(self, request):
... | 22.904762 | 66 | 0.698545 | 54 | 481 | 6.074074 | 0.592593 | 0.109756 | 0.097561 | 0.146341 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.222453 | 481 | 20 | 67 | 24.05 | 0.877005 | 0.209979 | 0 | 0 | 0 | 0 | 0.013889 | 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 |
ef8699ebf27f322e67e7498f2ac7281cb88d6c2a | 673 | py | Python | Section_07_Advanced_Functions/5. map_function.py | rodrigoarenas456/CompletePythonGuide | 505ac20c33856a53f1ffe12809ad78161c78a325 | [
"MIT"
] | null | null | null | Section_07_Advanced_Functions/5. map_function.py | rodrigoarenas456/CompletePythonGuide | 505ac20c33856a53f1ffe12809ad78161c78a325 | [
"MIT"
] | null | null | null | Section_07_Advanced_Functions/5. map_function.py | rodrigoarenas456/CompletePythonGuide | 505ac20c33856a53f1ffe12809ad78161c78a325 | [
"MIT"
] | null | null | null | """
map() toma un iterable y devuelve otro iterable
"""
friends = ['Juan', 'Carlos', 'Daniel', 'Ricardo', 'Jhon']
friends_lower = map(lambda x: x.lower(), friends)
print(next(friends_lower))
print(next(friends_lower))
class User:
def __init__(self, username, password):
self.username = username
s... | 23.206897 | 72 | 0.650817 | 84 | 673 | 5.095238 | 0.5 | 0.084112 | 0.074766 | 0.098131 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010969 | 0.187221 | 673 | 28 | 73 | 24.035714 | 0.771481 | 0.123328 | 0 | 0.117647 | 0 | 0 | 0.152921 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0.294118 | 0 | 0.058824 | 0.235294 | 0.117647 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
ef8da9f28021a060a4a39c7df0d6e780fba46fdd | 937 | py | Python | openpype/hosts/standalonepublisher/plugins/publish/validate_simple_unreal_texture_naming.py | Tilix4/OpenPype | 8909bd890170880aa7ec8b673abaa25a9bdf40f2 | [
"MIT"
] | 1 | 2022-02-08T15:40:41.000Z | 2022-02-08T15:40:41.000Z | openpype/hosts/standalonepublisher/plugins/publish/validate_simple_unreal_texture_naming.py | zafrs/OpenPype | 4b8e7e1ed002fc55b31307efdea70b0feaed474f | [
"MIT"
] | 2 | 2022-03-18T01:46:03.000Z | 2022-03-18T01:46:16.000Z | openpype/hosts/standalonepublisher/plugins/publish/validate_simple_unreal_texture_naming.py | zafrs/OpenPype | 4b8e7e1ed002fc55b31307efdea70b0feaed474f | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Validator for correct file naming."""
import pyblish.api
import openpype.api
import re
from openpype.pipeline import PublishXmlValidationError
class ValidateSimpleUnrealTextureNaming(pyblish.api.InstancePlugin):
label = "Validate Unreal Texture Names"
hosts = ["standalonepublisher"]... | 34.703704 | 69 | 0.647812 | 95 | 937 | 6.305263 | 0.557895 | 0.080134 | 0.075125 | 0.066778 | 0.083472 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001404 | 0.240128 | 937 | 26 | 70 | 36.038462 | 0.839888 | 0.060832 | 0 | 0 | 0 | 0 | 0.172769 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.190476 | 0 | 0.52381 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
ef9774ef775e778f12c8f2c3b2b4792d2492644f | 431 | py | Python | lab2.py | bushjd/ia241-github-1 | 42aefc98bb75b8f15e9976fa3cbc688732e3b511 | [
"MIT"
] | null | null | null | lab2.py | bushjd/ia241-github-1 | 42aefc98bb75b8f15e9976fa3cbc688732e3b511 | [
"MIT"
] | null | null | null | lab2.py | bushjd/ia241-github-1 | 42aefc98bb75b8f15e9976fa3cbc688732e3b511 | [
"MIT"
] | null | null | null | """
lab2
"""
#3.1
my_name = 'Tom'
print(my_name.upper())
#3.2
my_id = 123
print(my_id)
#3.3
my_id = your_id = 123
print(my_id)
print(your_id)
#3.4
my_id_str = "123"
print(my_id_str)
#3.5
#print(my_name + my_id) Cannot add string and variable
#3.6
print(my_name + my_id_str)
#3.7
print(my_name * 3)
#3.8
print... | 11.648649 | 65 | 0.654292 | 89 | 431 | 2.966292 | 0.370787 | 0.121212 | 0.166667 | 0.136364 | 0.219697 | 0 | 0 | 0 | 0 | 0 | 0 | 0.089636 | 0.171694 | 431 | 36 | 66 | 11.972222 | 0.64986 | 0.206497 | 0 | 0.142857 | 0 | 0 | 0.20679 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.642857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ef994720ea2a999f0b5e3dfb0c277052b19ae51f | 534 | py | Python | Packs/CommonScripts/Scripts/Cut/Cut_test.py | diCagri/content | c532c50b213e6dddb8ae6a378d6d09198e08fc9f | [
"MIT"
] | 799 | 2016-08-02T06:43:14.000Z | 2022-03-31T11:10:11.000Z | Packs/CommonScripts/Scripts/Cut/Cut_test.py | diCagri/content | c532c50b213e6dddb8ae6a378d6d09198e08fc9f | [
"MIT"
] | 9,317 | 2016-08-07T19:00:51.000Z | 2022-03-31T21:56:04.000Z | Packs/CommonScripts/Scripts/Cut/Cut_test.py | diCagri/content | c532c50b213e6dddb8ae6a378d6d09198e08fc9f | [
"MIT"
] | 1,297 | 2016-08-04T13:59:00.000Z | 2022-03-31T23:43:06.000Z | from Cut import cut
import pytest
@pytest.mark.parametrize('value,delimiter,fields,expected', [
('A-B-C-D-E', '-', '1,5', 'A-E'),
('a,ב,c', ',', '2,3', 'ב,c'),
])
def test_cut(value, delimiter, fields, expected):
"""
Given:
Case 1: A-B-C-D-E to split by - from char 1 to 5
Case 2: a,ב,... | 22.25 | 61 | 0.558052 | 89 | 534 | 3.337079 | 0.393258 | 0.026936 | 0.13468 | 0.188552 | 0.148148 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031088 | 0.277154 | 534 | 23 | 62 | 23.217391 | 0.738342 | 0.389513 | 0 | 0 | 0 | 0 | 0.20922 | 0.109929 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.375 | 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 |
efa1bc25e318f236366550f4fb90355fb3d52fe8 | 812 | py | Python | get_news.py | armoner24/News-Central | dcb2d4319cd868002eea1f7528096e3df4d01760 | [
"Apache-2.0"
] | null | null | null | get_news.py | armoner24/News-Central | dcb2d4319cd868002eea1f7528096e3df4d01760 | [
"Apache-2.0"
] | null | null | null | get_news.py | armoner24/News-Central | dcb2d4319cd868002eea1f7528096e3df4d01760 | [
"Apache-2.0"
] | null | null | null | import urllib2
from bs4 import BeautifulSoup
url="https://news.google.com/topics/CAAqJggKIiBDQkFTRWdvSUwyMHZNRGx1YlY4U0FtVnVHZ0pKVGlnQVAB?hl=en-IN&gl=IN&ceid=IN%3Aen"
page=urllib2.urlopen(url)
soup=BeautifulSoup(page, 'html.parser')
headlines=[]
null=0
material=soup.find_all("span")
for content in material:
h... | 24.606061 | 122 | 0.730296 | 98 | 812 | 6.040816 | 0.602041 | 0.081081 | 0.141892 | 0.212838 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017192 | 0.140394 | 812 | 32 | 123 | 25.375 | 0.830946 | 0 | 0 | 0.222222 | 0 | 0.037037 | 0.214194 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.074074 | 0 | 0.074074 | 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 |
efa566f3eb633e8e87b6ed4e3c40dff1b84ac0f3 | 285 | py | Python | Python/problem001.py | emergent/ProjectEuler | ec1c92cc47fde80efddeb0346d9b0fa511df1f00 | [
"Unlicense"
] | null | null | null | Python/problem001.py | emergent/ProjectEuler | ec1c92cc47fde80efddeb0346d9b0fa511df1f00 | [
"Unlicense"
] | null | null | null | Python/problem001.py | emergent/ProjectEuler | ec1c92cc47fde80efddeb0346d9b0fa511df1f00 | [
"Unlicense"
] | null | null | null | #! /usr/bin/env python3
'''
Problem 1 - Project Euler
http://projecteuler.net/index.php?section=problems&id=001
'''
def summul(n, x):
return int(x * (n // x) * (n // x + 1) / 2)
if __name__ == '__main__':
N = 1000 - 1
print(summul(N, 3) + summul(N, 5) - summul(N, 3 * 5))
| 23.75 | 57 | 0.575439 | 47 | 285 | 3.319149 | 0.659574 | 0.179487 | 0.038462 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071111 | 0.210526 | 285 | 11 | 58 | 25.909091 | 0.622222 | 0.37193 | 0 | 0 | 0 | 0 | 0.046784 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0.2 | 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 | 0 | 1 | 0 | 0 | 0 | 1 |
efa660ca80df5072d1784ccd0e901312159b1017 | 6,269 | py | Python | graph/extras/bfv.py | mazlo/lodcc | dcc3403fe7785c9dc73f09154f397c0ff42f1920 | [
"MIT"
] | 2 | 2018-12-09T16:34:22.000Z | 2021-02-18T23:45:29.000Z | graph/extras/bfv.py | mazlo/lodcc | dcc3403fe7785c9dc73f09154f397c0ff42f1920 | [
"MIT"
] | null | null | null | graph/extras/bfv.py | mazlo/lodcc | dcc3403fe7785c9dc73f09154f397c0ff42f1920 | [
"MIT"
] | 1 | 2018-04-30T08:25:09.000Z | 2018-04-30T08:25:09.000Z | import argparse
import logging as log
import os
import pickle
try:
import psycopg2
import psycopg2.extras
except:
print 'psycogp2 could not be found'
import re
import threading
import xxhash as xh
from graph.building.edgelist import parse_spo
def find_path( dataset ):
""""""
if dataset['path_edge... | 30.285024 | 313 | 0.592439 | 802 | 6,269 | 4.445137 | 0.281796 | 0.040393 | 0.060589 | 0.011781 | 0.200561 | 0.166059 | 0.135203 | 0.118373 | 0.084712 | 0.084712 | 0 | 0.003993 | 0.280906 | 6,269 | 206 | 314 | 30.432039 | 0.786823 | 0.054873 | 0 | 0.171642 | 0 | 0.007463 | 0.199728 | 0.032522 | 0.007463 | 0 | 0 | 0 | 0 | 0 | null | null | 0.007463 | 0.074627 | null | null | 0.007463 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
efa6ecfb7b1568d752b5c8a8e9e287145abdf710 | 1,399 | py | Python | app/core/migrations/0003_auto_20210922_1112.py | itamar27/recipe-app-api | 59e6ce5618b8fd3051bc7cd45fe6573011c8a683 | [
"MIT"
] | null | null | null | app/core/migrations/0003_auto_20210922_1112.py | itamar27/recipe-app-api | 59e6ce5618b8fd3051bc7cd45fe6573011c8a683 | [
"MIT"
] | null | null | null | app/core/migrations/0003_auto_20210922_1112.py | itamar27/recipe-app-api | 59e6ce5618b8fd3051bc7cd45fe6573011c8a683 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.7 on 2021-09-22 11:12
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('auth', '0012_alter_user_first_name_max_length'),
('core', '0002_auto_20210913_1515'... | 39.971429 | 256 | 0.644746 | 163 | 1,399 | 5.368098 | 0.558282 | 0.036571 | 0.032 | 0.050286 | 0.084571 | 0.084571 | 0 | 0 | 0 | 0 | 0 | 0.035681 | 0.238742 | 1,399 | 34 | 257 | 41.147059 | 0.785915 | 0.032166 | 0 | 0.25 | 1 | 0 | 0.244083 | 0.044379 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.107143 | 0 | 0.214286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
efaa0ad9a613a2efd787188d2e19533aaea9cb4a | 12,472 | py | Python | athena/athena/algorithms/DataToNetwork/ReadData.py | aculich/openmappr | c9e5b4cfc974a6eda9cbc8a0ea6f8a96ce35efba | [
"MIT"
] | 19 | 2018-04-05T23:33:33.000Z | 2022-03-24T00:18:20.000Z | athena/athena/algorithms/DataToNetwork/ReadData.py | aculich/openmappr | c9e5b4cfc974a6eda9cbc8a0ea6f8a96ce35efba | [
"MIT"
] | 13 | 2018-01-10T23:31:11.000Z | 2018-07-20T12:55:02.000Z | athena/athena/algorithms/DataToNetwork/ReadData.py | aculich/openmappr | c9e5b4cfc974a6eda9cbc8a0ea6f8a96ce35efba | [
"MIT"
] | 5 | 2018-02-12T05:33:19.000Z | 2019-09-21T22:43:02.000Z | # -*- coding: utf-8 -*-
"""
Created on Thu Sep 18 09:25:00 2014
@author: rich
"""
import sys
import re
import ast
import numpy as np
from collections import Counter
headerQuestion = 'Question'
headerQID = 'qID'
headerQuestionType = 'qAnalysisType'
headerQuestionWeight = 'qWeight'
headerPossibleResponses = 'Possible ... | 44.070671 | 190 | 0.596616 | 1,317 | 12,472 | 5.611238 | 0.213364 | 0.05548 | 0.032476 | 0.012855 | 0.243978 | 0.191881 | 0.16157 | 0.13207 | 0.115291 | 0.100406 | 0 | 0.008078 | 0.305244 | 12,472 | 282 | 191 | 44.22695 | 0.844778 | 0.158275 | 0 | 0.274678 | 0 | 0 | 0.076405 | 0.0102 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.021459 | null | null | 0.021459 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
efaa50cb3c21990ee755ad1c2b63a2e0adc99735 | 2,030 | py | Python | server/tests/factories.py | michael0liver/fullstack-fastapi-vuejs-template | a686b7b71dca04f90538d00b350158cb6d7e9db2 | [
"MIT"
] | 15 | 2020-06-14T05:35:05.000Z | 2021-08-01T15:30:38.000Z | server/tests/factories.py | michael0liver/fullstack-fastapi-vuejs-template | a686b7b71dca04f90538d00b350158cb6d7e9db2 | [
"MIT"
] | 1 | 2022-02-27T19:32:18.000Z | 2022-02-27T19:32:18.000Z | server/tests/factories.py | michael0liver/fullstack-fastapi-vuejs-template | a686b7b71dca04f90538d00b350158cb6d7e9db2 | [
"MIT"
] | 1 | 2021-09-06T03:21:51.000Z | 2021-09-06T03:21:51.000Z | import random
from datetime import datetime
import factory
import pytz
from factory.alchemy import SQLAlchemyModelFactory
from factory.faker import Faker
from factory.fuzzy import FuzzyChoice, FuzzyDateTime, FuzzyText
from app.enums import userenums
from app.models import rolemodels, shopmodels, usermodels
from app.s... | 24.457831 | 69 | 0.685222 | 217 | 2,030 | 6.317972 | 0.470046 | 0.026258 | 0.035011 | 0.039387 | 0.061269 | 0.061269 | 0.061269 | 0.061269 | 0.061269 | 0 | 0 | 0.007629 | 0.225123 | 2,030 | 82 | 70 | 24.756098 | 0.863954 | 0.11133 | 0 | 0.12766 | 0 | 0 | 0.025539 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021277 | false | 0.042553 | 0.234043 | 0 | 0.765957 | 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 |
efb6c50be7b1ef0a4a615bafa9cf296b6bd05bdf | 498 | py | Python | users/migrations/0002_user_enable_email_notifications.py | maverick-labs-pune/wikirumours | 51651aae651fd88468b54d08abb8ec28a93e65fa | [
"MIT"
] | null | null | null | users/migrations/0002_user_enable_email_notifications.py | maverick-labs-pune/wikirumours | 51651aae651fd88468b54d08abb8ec28a93e65fa | [
"MIT"
] | null | null | null | users/migrations/0002_user_enable_email_notifications.py | maverick-labs-pune/wikirumours | 51651aae651fd88468b54d08abb8ec28a93e65fa | [
"MIT"
] | null | null | null | # Generated by Django 3.1.4 on 2021-09-09 13:56
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='user',
name='enable_email_notifications',... | 26.210526 | 159 | 0.644578 | 58 | 498 | 5.448276 | 0.793103 | 0.06962 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051075 | 0.253012 | 498 | 18 | 160 | 27.666667 | 0.798387 | 0.090361 | 0 | 0 | 1 | 0 | 0.308204 | 0.05765 | 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 |
efbc24db87676600b7e8dd769d02d4ae8cccb562 | 1,478 | py | Python | beerpy/units/temperature.py | MrLeeh/beerpy | 1bbec29a39b01a9d8e54c475de29c768dfd27597 | [
"MIT"
] | null | null | null | beerpy/units/temperature.py | MrLeeh/beerpy | 1bbec29a39b01a9d8e54c475de29c768dfd27597 | [
"MIT"
] | null | null | null | beerpy/units/temperature.py | MrLeeh/beerpy | 1bbec29a39b01a9d8e54c475de29c768dfd27597 | [
"MIT"
] | null | null | null | """
Temperature unit
"""
CELSIUS = "°C"
FAHRENHEIT = "°F"
_units = (CELSIUS, FAHRENHEIT)
def _fahrenheit_to_celsius(fahrenheit: float):
return (fahrenheit - 32.0) / 1.8
def _celsius_to_fahrenheit(celsius: float):
return celsius * 1.8 + 32.0
class Temperature:
def __init__(self, value: float, unit:... | 23.09375 | 72 | 0.606901 | 172 | 1,478 | 5.046512 | 0.19186 | 0.134793 | 0.046083 | 0.078341 | 0.31106 | 0.31106 | 0.248848 | 0.080645 | 0 | 0 | 0 | 0.009533 | 0.290257 | 1,478 | 63 | 73 | 23.460317 | 0.816015 | 0.034506 | 0 | 0.390244 | 0 | 0 | 0.031757 | 0 | 0 | 0 | 0 | 0 | 0.02439 | 1 | 0.219512 | false | 0 | 0 | 0.097561 | 0.439024 | 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 |
efc1fcc11acf80973b6ab13919e1394b52022bf9 | 31,776 | py | Python | Telemetry/telemetry.py | stvnrhodes/calsol | d120f375b686bf979115c82b6db29ba5791c28c2 | [
"Apache-2.0"
] | null | null | null | Telemetry/telemetry.py | stvnrhodes/calsol | d120f375b686bf979115c82b6db29ba5791c28c2 | [
"Apache-2.0"
] | null | null | null | Telemetry/telemetry.py | stvnrhodes/calsol | d120f375b686bf979115c82b6db29ba5791c28c2 | [
"Apache-2.0"
] | null | null | null | import os, sys
import datetime
import glob
import math
import json
import urllib
from Queue import Queue, PriorityQueue
import sqlite3 as sql
import struct
import threading
from PySide import QtGui, QtCore
from viewer import config
from viewer.ports import ask_for_port
from viewer.sample import *
#from viewer.sampl... | 39.869511 | 99 | 0.60596 | 3,457 | 31,776 | 5.459358 | 0.180503 | 0.024903 | 0.013564 | 0.012717 | 0.297568 | 0.24845 | 0.194882 | 0.183225 | 0.174641 | 0.159487 | 0 | 0.006426 | 0.29966 | 31,776 | 796 | 100 | 39.919598 | 0.841646 | 0.01926 | 0 | 0.294521 | 0 | 0 | 0.097105 | 0.004091 | 0 | 0 | 0.001469 | 0.001256 | 0 | 0 | null | null | 0 | 0.034247 | null | null | 0.056507 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
efc30361d0e0860f4df57d9e00c9e76215a6ae6f | 265 | py | Python | play/gen_pascal_trangle_2.py | wlmgithub/ecar | 55e8f085485d898db760189e42071a5614023f2d | [
"MIT"
] | null | null | null | play/gen_pascal_trangle_2.py | wlmgithub/ecar | 55e8f085485d898db760189e42071a5614023f2d | [
"MIT"
] | null | null | null | play/gen_pascal_trangle_2.py | wlmgithub/ecar | 55e8f085485d898db760189e42071a5614023f2d | [
"MIT"
] | null | null | null |
import sys
N = sys.argv[1]
N = int(N)
def pascal(n):
res = [ [1] * (i + 1) for i in range(n)]
for i in range(n):
for j in range(1, i):
res[i][j] = res[i-1][j-1] + res[i-1][j]
return res
res = pascal(N)
for i in res:
print(i)
| 15.588235 | 51 | 0.483019 | 55 | 265 | 2.327273 | 0.290909 | 0.046875 | 0.140625 | 0.171875 | 0.210938 | 0.210938 | 0 | 0 | 0 | 0 | 0 | 0.039106 | 0.324528 | 265 | 16 | 52 | 16.5625 | 0.675978 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.083333 | 0 | 0.25 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
efc351975b983c5a01b4ab2838873c374272f088 | 367 | py | Python | prode/blog/api/urls.py | jplegorburu/ProdeOnline | 93827f79c101983d948147e15e34eb90f2089073 | [
"Apache-2.0"
] | null | null | null | prode/blog/api/urls.py | jplegorburu/ProdeOnline | 93827f79c101983d948147e15e34eb90f2089073 | [
"Apache-2.0"
] | null | null | null | prode/blog/api/urls.py | jplegorburu/ProdeOnline | 93827f79c101983d948147e15e34eb90f2089073 | [
"Apache-2.0"
] | null | null | null | from django.urls import path
from . import views
app_name = 'blog'
urlpatterns = [
path('post/',
views.PostListView.as_view(),
name='post_list'),
path('post/<pk>/',
views.PostDetailView.as_view(),
name='post_detail'),
path('post/<pk>/comment/',
views.CommentP... | 20.388889 | 40 | 0.594005 | 42 | 367 | 5.02381 | 0.47619 | 0.113744 | 0.14218 | 0.199052 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.242507 | 367 | 18 | 41 | 20.388889 | 0.758993 | 0 | 0 | 0 | 0 | 0 | 0.1875 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
efcc7159b4b35a97e55486e7e90a1eb5fae44ae3 | 683 | py | Python | Chapter09/chapter9_pexpect_1.py | stavsta/Mastering-Python-Networking-Second-Edition | 9999d2e415a1eb9c653ac3507500da7ddac2b556 | [
"MIT"
] | 107 | 2017-03-31T09:39:47.000Z | 2022-01-10T17:43:12.000Z | Chapter09/chapter9_pexpect_1.py | stavsta/Mastering-Python-Networking-Second-Edition | 9999d2e415a1eb9c653ac3507500da7ddac2b556 | [
"MIT"
] | 3 | 2020-03-29T14:14:43.000Z | 2020-10-29T18:21:09.000Z | Chapter09/chapter9_pexpect_1.py | stavsta/Mastering-Python-Networking-Second-Edition | 9999d2e415a1eb9c653ac3507500da7ddac2b556 | [
"MIT"
] | 98 | 2017-02-25T17:55:43.000Z | 2022-02-20T19:06:06.000Z | import pexpect
def show_version(device, prompt, ip, username, password):
device_prompt = prompt
child = pexpect.spawn('telnet ' + ip)
child.expect('Username:')
child.sendline(username)
child.expect('Password:')
child.sendline(password)
child.expect(device_prompt)
child.sendline('show v... | 28.458333 | 80 | 0.667643 | 86 | 683 | 5.139535 | 0.383721 | 0.099548 | 0.076923 | 0.104072 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039286 | 0.180088 | 683 | 23 | 81 | 29.695652 | 0.75 | 0 | 0 | 0.105263 | 0 | 0 | 0.168622 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0.315789 | 0.052632 | 0 | 0.157895 | 0.105263 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
efd5babaafdcd2859df2c8f27cc18300aace79c9 | 4,005 | py | Python | registros/models.py | pontual/sistema-v1 | 5f63d11083077035326787a56c3ae8b66ee2054c | [
"MIT"
] | 1 | 2020-11-24T19:18:33.000Z | 2020-11-24T19:18:33.000Z | registros/models.py | pontual/sistema-v1 | 5f63d11083077035326787a56c3ae8b66ee2054c | [
"MIT"
] | null | null | null | registros/models.py | pontual/sistema-v1 | 5f63d11083077035326787a56c3ae8b66ee2054c | [
"MIT"
] | null | null | null | from datetime import date
from collections import defaultdict
from django.db import models
from django.db.models import Model
from django.db.models import ImageField, EmailField, DateField
from django.db.models import CharField, IntegerField, BooleanField
from django.db.models import ForeignKey, CASCADE, SET_NULL
fro... | 31.046512 | 107 | 0.678652 | 477 | 4,005 | 5.513627 | 0.262055 | 0.073004 | 0.109506 | 0.045627 | 0.41635 | 0.335361 | 0.228897 | 0.228897 | 0.174905 | 0.137643 | 0 | 0.011465 | 0.21598 | 4,005 | 128 | 108 | 31.289063 | 0.826115 | 0.01598 | 0 | 0.229885 | 0 | 0 | 0.048272 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.114943 | false | 0 | 0.103448 | 0.057471 | 0.735632 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.