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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
881a66b8c5d567be876f01b26aae1838a9ef3f6f | 421 | py | Python | oa/migrations/0004_auto_20171023_1747.py | htwenhe/DJOA | 3c2d384a983e42dedfd72561353ecf9370a02115 | [
"MIT"
] | 1 | 2017-10-31T02:37:37.000Z | 2017-10-31T02:37:37.000Z | oa/migrations/0004_auto_20171023_1747.py | htwenhe/whoa | 3c2d384a983e42dedfd72561353ecf9370a02115 | [
"MIT"
] | 1 | 2017-10-31T01:56:58.000Z | 2017-10-31T01:57:03.000Z | oa/migrations/0004_auto_20171023_1747.py | htwenhe/whoa | 3c2d384a983e42dedfd72561353ecf9370a02115 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.9.13 on 2017-10-23 09:47
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('oa', '0003_auto_20171023_1746'),
]
operations = [
migrations.RenameField(
... | 20.047619 | 48 | 0.598575 | 48 | 421 | 5 | 0.8125 | 0.075 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109272 | 0.28266 | 421 | 20 | 49 | 21.05 | 0.68543 | 0.16152 | 0 | 0 | 1 | 0 | 0.117143 | 0.065714 | 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 |
881a7473f1b598f91ff5fb6ca636049be01b75ae | 836 | py | Python | DateVersioning.py | EinarArnason/DateVersioning | 8e5a5e89218eed6324f71c9377d7342a0fd60cbd | [
"MIT"
] | null | null | null | DateVersioning.py | EinarArnason/DateVersioning | 8e5a5e89218eed6324f71c9377d7342a0fd60cbd | [
"MIT"
] | null | null | null | DateVersioning.py | EinarArnason/DateVersioning | 8e5a5e89218eed6324f71c9377d7342a0fd60cbd | [
"MIT"
] | null | null | null | import time
import subprocess
import sys
import logging
class GitDirectoryError(Exception):
"""Directory not a git repository"""
def generate(directory=".") -> str:
commitDate = 0
try:
commitDate = int(
subprocess.check_output(
"git show -s --format='%ct'", shell=True... | 25.333333 | 71 | 0.600478 | 88 | 836 | 5.602273 | 0.647727 | 0.048682 | 0.052738 | 0.064909 | 0.105477 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003289 | 0.272727 | 836 | 32 | 72 | 26.125 | 0.807566 | 0.035885 | 0 | 0.08 | 1 | 0 | 0.12375 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.16 | 0 | 0.28 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
88209768adc40766b4eb56ddccfe9cdaf5de8651 | 2,530 | py | Python | flask-example/data-server/A.py | YJDoc2/Kerberos-Examples | cc5bb8fcbec52ab84e6f0e88d0843f8c564f0689 | [
"MIT"
] | null | null | null | flask-example/data-server/A.py | YJDoc2/Kerberos-Examples | cc5bb8fcbec52ab84e6f0e88d0843f8c564f0689 | [
"MIT"
] | null | null | null | flask-example/data-server/A.py | YJDoc2/Kerberos-Examples | cc5bb8fcbec52ab84e6f0e88d0843f8c564f0689 | [
"MIT"
] | null | null | null | import json
from flask import Flask, render_template, redirect, Response, jsonify,request
from flask_cors import CORS
from Kerberos import Server,Server_Error
app = Flask(__name__, static_folder='./static', static_url_path='/')
cors = CORS(app)
#! This server uses distinct routes for different type of requests
#? We ... | 38.923077 | 110 | 0.679447 | 384 | 2,530 | 4.369792 | 0.322917 | 0.021454 | 0.033373 | 0.047676 | 0.632896 | 0.632896 | 0.632896 | 0.632896 | 0.632896 | 0.632896 | 0 | 0.010015 | 0.210672 | 2,530 | 65 | 111 | 38.923077 | 0.830245 | 0.366798 | 0 | 0.555556 | 0 | 0 | 0.079345 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.111111 | 0 | 0.277778 | 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 |
882c6ccf86c14fc6738ccff54229e3586e042456 | 1,989 | py | Python | subsurfaceCollabor8/frame_utils.py | digitalcollaboration-collabor8/subsurfaceSampleClient | f5009f3c7740d718392c0a9a2ec6179a51fd28cf | [
"Apache-2.0"
] | null | null | null | subsurfaceCollabor8/frame_utils.py | digitalcollaboration-collabor8/subsurfaceSampleClient | f5009f3c7740d718392c0a9a2ec6179a51fd28cf | [
"Apache-2.0"
] | 3 | 2021-03-08T08:32:39.000Z | 2021-07-29T08:56:49.000Z | subsurfaceCollabor8/frame_utils.py | digitalcollaboration-collabor8/subsurfaceSampleClient | f5009f3c7740d718392c0a9a2ec6179a51fd28cf | [
"Apache-2.0"
] | null | null | null | from pandas import DataFrame
import os
def frame_to_csv(frame:DataFrame,output_file:str,decimal_format=',',
float_format=None,date_format=None,quote_char='"',no_data_repr='',sep=';'):
"""
Converts a pandas dataframe to a csv file
Parameters
----------
output_file -> path to file to write to
d... | 33.15 | 94 | 0.712418 | 287 | 1,989 | 4.69338 | 0.202091 | 0.097996 | 0.088344 | 0.071269 | 0.703786 | 0.663697 | 0.663697 | 0.663697 | 0.663697 | 0.663697 | 0 | 0.001832 | 0.176471 | 1,989 | 59 | 95 | 33.711864 | 0.820513 | 0.497738 | 0 | 0.375 | 0 | 0 | 0.013825 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.125 | 0 | 0.375 | 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 |
882fe548d37c7d24cd165d77437c6ae5e4632773 | 1,562 | py | Python | integrationtest/vm/ha/test_ui_stop.py | sherry546/zstack-woodpecker | 54a37459f2d72ce6820974feaa6eb55772c3d2ce | [
"Apache-2.0"
] | 1 | 2021-03-21T12:41:11.000Z | 2021-03-21T12:41:11.000Z | integrationtest/vm/ha/test_ui_stop.py | sherry546/zstack-woodpecker | 54a37459f2d72ce6820974feaa6eb55772c3d2ce | [
"Apache-2.0"
] | null | null | null | integrationtest/vm/ha/test_ui_stop.py | sherry546/zstack-woodpecker | 54a37459f2d72ce6820974feaa6eb55772c3d2ce | [
"Apache-2.0"
] | 1 | 2017-05-19T06:40:40.000Z | 2017-05-19T06:40:40.000Z | '''
Integration Test for HA mode with UI stop on one node.
@author: Quarkonics
'''
import zstackwoodpecker.test_util as test_util
import zstackwoodpecker.test_state as test_state
import zstackwoodpecker.test_lib as test_lib
import zstackwoodpecker.operations.resource_operations as res_ops
import zstackwoo... | 37.190476 | 97 | 0.733675 | 237 | 1,562 | 4.565401 | 0.320675 | 0.044362 | 0.066543 | 0.036044 | 0.414048 | 0.330869 | 0.330869 | 0.330869 | 0.330869 | 0.330869 | 0 | 0.013975 | 0.175416 | 1,562 | 41 | 98 | 38.097561 | 0.826087 | 0.081306 | 0 | 0.37931 | 0 | 0 | 0.182671 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0.206897 | 0.241379 | 0 | 0.310345 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
8832c2e7a770e80b777ea2950239b133e7919983 | 4,736 | py | Python | scope/device/andor/lowlevel.py | drew-sinha/rpc-scope | 268864097b5b7d123a842f216adc446ec6b32d01 | [
"MIT"
] | 1 | 2017-11-10T17:23:11.000Z | 2017-11-10T17:23:11.000Z | scope/device/andor/lowlevel.py | drew-sinha/rpc-scope | 268864097b5b7d123a842f216adc446ec6b32d01 | [
"MIT"
] | 5 | 2018-08-01T03:05:35.000Z | 2018-11-29T22:11:25.000Z | scope/device/andor/lowlevel.py | drew-sinha/rpc-scope | 268864097b5b7d123a842f216adc446ec6b32d01 | [
"MIT"
] | 3 | 2016-05-25T18:58:35.000Z | 2018-11-29T23:40:45.000Z | # This code is licensed under the MIT License (see LICENSE file for details)
import ctypes
import atexit
# import all the autogenerated functions and definitions
# note: also pulls in common which provides AndorError and several other constants
from . import wrapper
from .wrapper import *
# Provided for reference pu... | 31.157895 | 117 | 0.714949 | 514 | 4,736 | 6.319066 | 0.42607 | 0.063732 | 0.044027 | 0.054187 | 0.152401 | 0.124692 | 0.096675 | 0.062808 | 0.062808 | 0.039409 | 0 | 0.001045 | 0.191934 | 4,736 | 152 | 118 | 31.157895 | 0.847661 | 0.199324 | 0 | 0.055118 | 1 | 0 | 0.305732 | 0.043524 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055118 | false | 0 | 0.031496 | 0 | 0.141732 | 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 |
884592962cd70a31da5127626d57fbccde00c157 | 408 | py | Python | grab-exceptions.py | Plexical/pymod.me | b3bf1a8c6e15fa02d1b58a8f296ba60aae60d18a | [
"MIT"
] | 1 | 2016-06-13T19:17:03.000Z | 2016-06-13T19:17:03.000Z | grab-exceptions.py | Plexical/pymod.me | b3bf1a8c6e15fa02d1b58a8f296ba60aae60d18a | [
"MIT"
] | 3 | 2017-05-10T08:29:20.000Z | 2018-02-07T20:57:16.000Z | grab-exceptions.py | Plexical/pydoc.me | b3bf1a8c6e15fa02d1b58a8f296ba60aae60d18a | [
"MIT"
] | null | null | null | import sys
from pymod import index
from pymod.index import modules
from pymod.mappings import url
out = lambda s: sys.stdout.write(s)
out('{ ')
dom = index.domof('https://docs.python.org/2/library/exceptions.html')
for el in (el for el in dom.findAll('a', {'class': 'headerlink'})
if '-' not in el.attrs['... | 25.5 | 70 | 0.644608 | 63 | 408 | 4.174603 | 0.603175 | 0.102662 | 0.053232 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005764 | 0.14951 | 408 | 15 | 71 | 27.2 | 0.752161 | 0 | 0 | 0 | 0 | 0 | 0.237745 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.363636 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
88466faa8fda4f9d6ebd884891fe47a03fd3b5e7 | 298 | py | Python | run_wrf/configs/test/config_test_jobsched.py | matzegoebel/run_wrf | cbbbb0ec818416d9b24698d369f70ad9ba8cb801 | [
"BSD-2-Clause"
] | 2 | 2021-01-15T11:05:37.000Z | 2021-01-15T11:05:39.000Z | run_wrf/configs/test/config_test_jobsched.py | matzegoebel/run_wrf | cbbbb0ec818416d9b24698d369f70ad9ba8cb801 | [
"BSD-2-Clause"
] | null | null | null | run_wrf/configs/test/config_test_jobsched.py | matzegoebel/run_wrf | cbbbb0ec818416d9b24698d369f70ad9ba8cb801 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Settings for launch_jobs.py
Test settings for automated tests.
To test run with job scheduler
@author: Matthias Göbel
"""
from run_wrf.configs.test.config_test import *
from copy import deepcopy
params = deepcopy(params)
params["vmem"] = 500
| 16.555556 | 46 | 0.728188 | 44 | 298 | 4.863636 | 0.75 | 0.102804 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019763 | 0.151007 | 298 | 17 | 47 | 17.529412 | 0.826087 | 0.54698 | 0 | 0 | 0 | 0 | 0.032258 | 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 |
884a95c1571d9440eebd2ee5b658dea1bc3ebe28 | 5,177 | py | Python | requirements/docutils-0.18/setup.py | QuentinTournier40/AnimationFreeCAD | 8eaff8356ec68b948a721b83a6888b652278db8a | [
"Apache-2.0"
] | null | null | null | requirements/docutils-0.18/setup.py | QuentinTournier40/AnimationFreeCAD | 8eaff8356ec68b948a721b83a6888b652278db8a | [
"Apache-2.0"
] | null | null | null | requirements/docutils-0.18/setup.py | QuentinTournier40/AnimationFreeCAD | 8eaff8356ec68b948a721b83a6888b652278db8a | [
"Apache-2.0"
] | 1 | 2022-02-03T08:03:30.000Z | 2022-02-03T08:03:30.000Z | #!/usr/bin/env python
# $Id: setup.py 8864 2021-10-26 11:46:55Z grubert $
# Copyright: This file has been placed in the public domain.
from __future__ import print_function
import glob
import os
import sys
try:
from setuptools import setup
except ImportError:
print('Error: The "setuptools" module, which is r... | 35.703448 | 78 | 0.603631 | 529 | 5,177 | 5.848771 | 0.465028 | 0.130899 | 0.064641 | 0.05042 | 0.017453 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018902 | 0.254008 | 5,177 | 144 | 79 | 35.951389 | 0.782237 | 0.039985 | 0 | 0.023256 | 0 | 0 | 0.664571 | 0.071385 | 0 | 0 | 0 | 0 | 0 | 1 | 0.007752 | false | 0 | 0.046512 | 0 | 0.062016 | 0.062016 | 0 | 0 | 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 |
8850e891db7232fd18b38c698cdc17d7011b2602 | 2,595 | py | Python | spotify-monitor.py | tmessi/bins | 6fdd738ee44b5dc68849ddb6056667c4170dd603 | [
"MIT"
] | null | null | null | spotify-monitor.py | tmessi/bins | 6fdd738ee44b5dc68849ddb6056667c4170dd603 | [
"MIT"
] | null | null | null | spotify-monitor.py | tmessi/bins | 6fdd738ee44b5dc68849ddb6056667c4170dd603 | [
"MIT"
] | null | null | null | #!/usr/bin/env python2
'''
A simple script to get the playback status of spotify.
This script needs ``dbus-python`` for spotify communication
To run simply::
./spotify-monitor.py <command>
Where command is one of the following::
``playback``
``playing``
'''
# pylint: disable=W0703
import dbus
from db... | 27.315789 | 85 | 0.563391 | 293 | 2,595 | 4.890785 | 0.372014 | 0.025122 | 0.055827 | 0.036288 | 0.124215 | 0.124215 | 0.04187 | 0.04187 | 0 | 0 | 0 | 0.011804 | 0.314451 | 2,595 | 94 | 86 | 27.606383 | 0.793704 | 0.01657 | 0 | 0.264151 | 0 | 0 | 0.182384 | 0.100048 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.056604 | null | null | 0.037736 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8851d7b5290203c0b1a5e1b0bf63d3352db40abc | 787 | py | Python | tests/file-test/test-pyro.py | nelmiux/CS347-Data_Management | 1e9d87097b5a373f9312b0d6b413198e495fd6c0 | [
"CNRI-Jython"
] | null | null | null | tests/file-test/test-pyro.py | nelmiux/CS347-Data_Management | 1e9d87097b5a373f9312b0d6b413198e495fd6c0 | [
"CNRI-Jython"
] | null | null | null | tests/file-test/test-pyro.py | nelmiux/CS347-Data_Management | 1e9d87097b5a373f9312b0d6b413198e495fd6c0 | [
"CNRI-Jython"
] | null | null | null | import sys
sys.path.insert(0, '../Pyro4-4.17')
import Pyro4
from time import clock
"""
log = open('pyro.log', 'w')
times = []
proxy = Pyro4.Proxy("PYRO:example.service@localhost:54642")
for i in range(100) :
local = []
begin = clock()
for files in proxy.getFiles(proxy.getcwd()) :
for file in file... | 24.59375 | 72 | 0.617535 | 116 | 787 | 4.189655 | 0.448276 | 0.049383 | 0.061728 | 0.082305 | 0.337449 | 0.238683 | 0.238683 | 0.238683 | 0.238683 | 0.238683 | 0 | 0.031949 | 0.204574 | 787 | 31 | 73 | 25.387097 | 0.744409 | 0 | 0 | 0 | 0 | 0 | 0.169492 | 0.127119 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.25 | null | null | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
8852b79b5bfc54d623d2ee6424607b818660de24 | 1,358 | py | Python | evaluation/hpt/sizes/plot.py | cucl-srg/Measuring-Burstiness | b9024bf606362d5587773a0c5b892fcb97a3d577 | [
"Apache-2.0"
] | 1 | 2022-03-21T02:26:27.000Z | 2022-03-21T02:26:27.000Z | evaluation/hpt/sizes/plot.py | cucl-srg/Measuring-Burstiness | b9024bf606362d5587773a0c5b892fcb97a3d577 | [
"Apache-2.0"
] | null | null | null | evaluation/hpt/sizes/plot.py | cucl-srg/Measuring-Burstiness | b9024bf606362d5587773a0c5b892fcb97a3d577 | [
"Apache-2.0"
] | 1 | 2020-08-10T16:46:05.000Z | 2020-08-10T16:46:05.000Z | import sys
import matplotlib
import numpy as np
# Avoid errors when running on headless servers.
matplotlib.use('Agg')
import matplotlib.pyplot as plt
if len(sys.argv) != 6:
print "Usage plot.py <data file port 1> <min size> <step size> <max size> <num packets sent>"
sys.exit(1)
width = 20
data_file = sys.ar... | 28.893617 | 97 | 0.658321 | 214 | 1,358 | 4.051402 | 0.420561 | 0.048443 | 0.046136 | 0.032295 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01012 | 0.199558 | 1,358 | 46 | 98 | 29.521739 | 0.787489 | 0.033873 | 0 | 0 | 0 | 0.026316 | 0.176336 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.105263 | null | null | 0.026316 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
885a5fd1a5967b9a6efcaa58fe258ea5b945e757 | 3,120 | py | Python | flask_vgavro_utils/decorators.py | vgavro/flask-vgavro-utils | 01b7caa0241a6b606c228081eea169e51a0d1337 | [
"BSD-2-Clause"
] | null | null | null | flask_vgavro_utils/decorators.py | vgavro/flask-vgavro-utils | 01b7caa0241a6b606c228081eea169e51a0d1337 | [
"BSD-2-Clause"
] | null | null | null | flask_vgavro_utils/decorators.py | vgavro/flask-vgavro-utils | 01b7caa0241a6b606c228081eea169e51a0d1337 | [
"BSD-2-Clause"
] | null | null | null | from functools import wraps
from flask import request, make_response
from .exceptions import ApiError
from .schemas import create_schema, ma_version_lt_300b7
def request_schema(schema_or_dict, extends=None, many=None, cache_schema=True, pass_data=False):
schema_ = create_schema(schema_or_dict, extends)
def... | 31.515152 | 96 | 0.605769 | 375 | 3,120 | 4.858667 | 0.210667 | 0.052689 | 0.069155 | 0.088913 | 0.651482 | 0.651482 | 0.588913 | 0.538419 | 0.538419 | 0.513721 | 0 | 0.010555 | 0.301603 | 3,120 | 98 | 97 | 31.836735 | 0.825608 | 0.049038 | 0 | 0.662162 | 0 | 0 | 0.020678 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.189189 | false | 0.081081 | 0.054054 | 0.013514 | 0.432432 | 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 |
885c26a7ab9bb55b6a5e53e5c4ace165bde1c509 | 1,447 | py | Python | manolo/urls.py | rmaceissoft/django-manolo | 7a447b6b06a5a9a0bbc3ed5daf754721a48bbd76 | [
"BSD-3-Clause"
] | null | null | null | manolo/urls.py | rmaceissoft/django-manolo | 7a447b6b06a5a9a0bbc3ed5daf754721a48bbd76 | [
"BSD-3-Clause"
] | null | null | null | manolo/urls.py | rmaceissoft/django-manolo | 7a447b6b06a5a9a0bbc3ed5daf754721a48bbd76 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.conf import settings
from django.conf.urls import include, url
from django.conf.urls.static import static
from django.urls import path
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
from drf_yasg.views im... | 34.452381 | 105 | 0.704216 | 201 | 1,447 | 4.910448 | 0.338308 | 0.048632 | 0.032421 | 0.051672 | 0.069909 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00317 | 0.127851 | 1,447 | 41 | 106 | 35.292683 | 0.778922 | 0.049067 | 0 | 0 | 0 | 0 | 0.219228 | 0.047342 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
885c8e23ca6cf334dab1eb1260245a09eefae5fc | 2,043 | py | Python | samples/frontend/datagator/rest/decorators.py | liuyu81/datagator-contrib | 813529e211f680732bd1dc9568f5b4f2bdcacdcc | [
"Apache-2.0"
] | 2 | 2015-02-20T02:50:07.000Z | 2017-05-02T19:26:42.000Z | samples/frontend/datagator/rest/decorators.py | liuyu81/datagator-contrib | 813529e211f680732bd1dc9568f5b4f2bdcacdcc | [
"Apache-2.0"
] | null | null | null | samples/frontend/datagator/rest/decorators.py | liuyu81/datagator-contrib | 813529e211f680732bd1dc9568f5b4f2bdcacdcc | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
datagator.rest.decorators
~~~~~~~~~~~~~~~~~~~~~~~~~
:copyright: 2015 by `University of Denver <http://pardee.du.edu/>`_
:license: Apache 2.0, see LICENSE for more details.
"""
import base64
from django.contrib.auth import authenticate, login
from django.core.exceptions imp... | 29.608696 | 78 | 0.600587 | 202 | 2,043 | 5.960396 | 0.450495 | 0.024917 | 0.026578 | 0.043189 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015884 | 0.291238 | 2,043 | 68 | 79 | 30.044118 | 0.815608 | 0.139501 | 0 | 0.078947 | 0 | 0 | 0.099307 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0.052632 | 0.078947 | 0 | 0.421053 | 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 |
885d21f84b46886e1d6a64a22aa7df5e772efb4b | 2,836 | py | Python | src/ui.py | ajstensland/slyther | 176e901120032b94427d634e647cb8940b019f14 | [
"MIT"
] | 9 | 2019-10-15T17:24:09.000Z | 2021-11-07T20:23:43.000Z | src/ui.py | ajstensland/slyther | 176e901120032b94427d634e647cb8940b019f14 | [
"MIT"
] | 21 | 2019-10-17T15:42:04.000Z | 2019-11-14T20:43:55.000Z | src/ui.py | ajstensland/slyther | 176e901120032b94427d634e647cb8940b019f14 | [
"MIT"
] | 4 | 2019-10-27T13:54:03.000Z | 2021-07-09T12:54:02.000Z | from getpass import getpass
import socket
COLORS = {"green" : "\33[92m",
"red" : "\33[91m",
"yellow" : "\33[93m",
"endc" : "\33[0m" }
def print_green(msg):
"""Prints msg in green text."""
print("{0}{1}{2}".format(COLORS["green"], msg, COLORS["endc"]))
def print_yellow(ms... | 26.259259 | 82 | 0.575811 | 358 | 2,836 | 4.497207 | 0.329609 | 0.029814 | 0.02236 | 0.026087 | 0.157143 | 0.103106 | 0.103106 | 0.058385 | 0.058385 | 0 | 0 | 0.015414 | 0.267983 | 2,836 | 107 | 83 | 26.504673 | 0.760116 | 0.255994 | 0 | 0.196429 | 0 | 0 | 0.173267 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.196429 | false | 0.053571 | 0.035714 | 0 | 0.339286 | 0.303571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
885e29d199b2465852d40fecbeb6ea0388645c61 | 972 | py | Python | stack/tests/m_decoded_string_test.py | dhrubach/python-code-recipes | 14356c6adb1946417482eaaf6f42dde4b8351d2f | [
"MIT"
] | null | null | null | stack/tests/m_decoded_string_test.py | dhrubach/python-code-recipes | 14356c6adb1946417482eaaf6f42dde4b8351d2f | [
"MIT"
] | null | null | null | stack/tests/m_decoded_string_test.py | dhrubach/python-code-recipes | 14356c6adb1946417482eaaf6f42dde4b8351d2f | [
"MIT"
] | null | null | null | from stack.m_decoded_string import DecodeString
class TestDecodeString:
def test_lc_data_1(self):
ds = DecodeString()
ans = ds.valueAtIndex_bf("leet2code3", 15)
assert ans == "e"
ans = ds.valueAtIndex_opm("leet2code3", 15)
assert ans == "e"
ans = ds.valueAtIndex_... | 24.3 | 66 | 0.595679 | 115 | 972 | 4.826087 | 0.304348 | 0.072072 | 0.245045 | 0.093694 | 0.677477 | 0.526126 | 0.526126 | 0.151351 | 0.151351 | 0 | 0 | 0.138528 | 0.287037 | 972 | 39 | 67 | 24.923077 | 0.662338 | 0 | 0 | 0.384615 | 0 | 0 | 0.124486 | 0.070988 | 0 | 0 | 0 | 0 | 0.307692 | 1 | 0.153846 | false | 0 | 0.038462 | 0 | 0.230769 | 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 |
885efaccc06cb190fd2ac00927d90705f3efe0f0 | 534 | py | Python | tests/uranium/plot_rho.py | rc/dftatom | fe479fd27a7e0f77c6a88a1949996406ec935ac2 | [
"MIT"
] | 40 | 2015-03-19T16:00:14.000Z | 2021-12-29T03:06:10.000Z | tests/uranium/plot_rho.py | rc/dftatom | fe479fd27a7e0f77c6a88a1949996406ec935ac2 | [
"MIT"
] | 6 | 2015-06-23T21:59:56.000Z | 2019-09-04T20:36:51.000Z | tests/uranium/plot_rho.py | rc/dftatom | fe479fd27a7e0f77c6a88a1949996406ec935ac2 | [
"MIT"
] | 15 | 2015-06-07T15:14:49.000Z | 2021-12-05T07:03:24.000Z | from pylab import plot, show, legend
from numpy import array
from h5py import File
data = File("data.h5")
iter = 2
R = array(data["/%04d/R" % iter])
rho = array(data["/%04d/rho" % iter])
Vtot = array(data["/%04d/V_tot" % iter])
Zeff = -Vtot * R
#for i in range(1, 19):
# P = array(data["/%04d/P%04d" % (iter, i)])... | 22.25 | 47 | 0.571161 | 94 | 534 | 3.234043 | 0.329787 | 0.177632 | 0.236842 | 0.085526 | 0.342105 | 0.263158 | 0.263158 | 0.263158 | 0.263158 | 0.263158 | 0 | 0.061176 | 0.20412 | 534 | 23 | 48 | 23.217391 | 0.654118 | 0.189139 | 0 | 0.25 | 0 | 0 | 0.132558 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1875 | 0 | 0.1875 | 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 |
88601c88f30dcd435b8268d9578887c317aa8098 | 379 | py | Python | src/account/migrations/0002_address_default_add.py | amaan2398/EcommerceWebsiteDjango | 5173d13d60c1276c957161ce0ea37b8de5acddf4 | [
"MIT"
] | 1 | 2020-08-11T01:17:36.000Z | 2020-08-11T01:17:36.000Z | src/account/migrations/0002_address_default_add.py | amaan2398/EcommerceWebsiteDjango | 5173d13d60c1276c957161ce0ea37b8de5acddf4 | [
"MIT"
] | null | null | null | src/account/migrations/0002_address_default_add.py | amaan2398/EcommerceWebsiteDjango | 5173d13d60c1276c957161ce0ea37b8de5acddf4 | [
"MIT"
] | null | null | null | # Generated by Django 3.1 on 2020-08-18 13:17
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('account', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='address',
name='default_add',
... | 19.947368 | 52 | 0.593668 | 39 | 379 | 5.692308 | 0.820513 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067164 | 0.292876 | 379 | 18 | 53 | 21.055556 | 0.761194 | 0.113456 | 0 | 0 | 1 | 0 | 0.110778 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8863c6f90ec7586192322c6a14b72934c7e25e1f | 495 | py | Python | ToDo/todoapp/migrations/0003_auto_20200901_1842.py | UTKx/vigilant-octo-waffle | 77beec55877bb12ebb4d2db5a8f673c32cfe69de | [
"MIT"
] | 1 | 2020-09-04T22:07:23.000Z | 2020-09-04T22:07:23.000Z | ToDo/todoapp/migrations/0003_auto_20200901_1842.py | UTKx/vigilant-octo-waffle | 77beec55877bb12ebb4d2db5a8f673c32cfe69de | [
"MIT"
] | null | null | null | ToDo/todoapp/migrations/0003_auto_20200901_1842.py | UTKx/vigilant-octo-waffle | 77beec55877bb12ebb4d2db5a8f673c32cfe69de | [
"MIT"
] | null | null | null | # Generated by Django 3.1.1 on 2020-09-01 18:42
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('todoapp', '0002_auto_20200719_2021'),
]
operations = [
migrations.AlterField(
model_name='todo'... | 24.75 | 126 | 0.646465 | 57 | 495 | 5.508772 | 0.666667 | 0.076433 | 0.089172 | 0.140127 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081579 | 0.232323 | 495 | 19 | 127 | 26.052632 | 0.744737 | 0.090909 | 0 | 0 | 1 | 0 | 0.140625 | 0.051339 | 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 |
886441bce8027fa3056e6171153d3d8c51ba7d04 | 360 | py | Python | yachter/courses/management/commands/courses_export_static.py | rcoup/yachter | 8a73af1b5205f194000a6eac5974b3751d5d00f5 | [
"Apache-2.0"
] | 1 | 2015-10-09T11:07:32.000Z | 2015-10-09T11:07:32.000Z | yachter/courses/management/commands/courses_export_static.py | rcoup/yachter | 8a73af1b5205f194000a6eac5974b3751d5d00f5 | [
"Apache-2.0"
] | null | null | null | yachter/courses/management/commands/courses_export_static.py | rcoup/yachter | 8a73af1b5205f194000a6eac5974b3751d5d00f5 | [
"Apache-2.0"
] | null | null | null | from django.core.management.base import LabelCommand
from yachter.courses.utils import export_static_html
class Command(LabelCommand):
help = "Export a static HTML/JSON website for browsing the courses."
args = "exportPath"
label = 'path to export dir'
def handle_label(self, export_path, **options):
... | 30 | 72 | 0.75 | 48 | 360 | 5.479167 | 0.666667 | 0.114068 | 0.121673 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172222 | 360 | 11 | 73 | 32.727273 | 0.88255 | 0 | 0 | 0 | 0 | 0 | 0.241667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
8873474612b143bfb3dcc0cc047dd90038304a53 | 3,391 | py | Python | Modulo_01/Aula09-ManipulandoStrings.py | rodrigojackal/Python-Guanabara | 8bfbbbd7b4549b9235d9b6fcb3a0c3d00eb384f2 | [
"MIT"
] | null | null | null | Modulo_01/Aula09-ManipulandoStrings.py | rodrigojackal/Python-Guanabara | 8bfbbbd7b4549b9235d9b6fcb3a0c3d00eb384f2 | [
"MIT"
] | null | null | null | Modulo_01/Aula09-ManipulandoStrings.py | rodrigojackal/Python-Guanabara | 8bfbbbd7b4549b9235d9b6fcb3a0c3d00eb384f2 | [
"MIT"
] | null | null | null | # Aula 09 - Manipulando de cadeias de texto (Strings)
"""
Técnica de Fatiamento
Frase = Curso em Video Python
Frase [9]: letra específica
Frase [9:13]: Vai pegar do 9 ao 12 (menos um no final)
Frase [9:21:2]: Pula de 2 em 2
Frase [:5]: Irá começar no primeiro caracter e terminar no 4 (excluindo o número 5)
Frase [15:... | 33.245098 | 112 | 0.760248 | 568 | 3,391 | 4.538732 | 0.413732 | 0.013576 | 0.030256 | 0.039566 | 0.146625 | 0.117921 | 0.061288 | 0.061288 | 0.055857 | 0.031808 | 0 | 0.022372 | 0.169567 | 3,391 | 101 | 113 | 33.574257 | 0.893111 | 0.017694 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009901 | 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 |
88735f42e1881dd628983cb3ca2947d11d481c02 | 2,575 | py | Python | {{ cookiecutter.repo_name }}/{{ cookiecutter.repo_name }}/models/train.py | vasinkd/cookiecutter-data-science | 3b1be4b701198b73e9701af498381a2c55da9fe6 | [
"MIT"
] | 2 | 2020-03-26T22:06:11.000Z | 2021-04-02T08:52:38.000Z | {{ cookiecutter.repo_name }}/{{ cookiecutter.repo_name }}/models/train.py | vasinkd/cookiecutter-data-science | 3b1be4b701198b73e9701af498381a2c55da9fe6 | [
"MIT"
] | 1 | 2019-10-19T13:36:33.000Z | 2019-10-19T13:36:33.000Z | {{ cookiecutter.repo_name }}/{{ cookiecutter.repo_name }}/models/train.py | vasinkd/cookiecutter-data-science | 3b1be4b701198b73e9701af498381a2c55da9fe6 | [
"MIT"
] | 8 | 2019-10-17T20:32:07.000Z | 2022-03-10T15:28:49.000Z | import optuna
from {{cookiecutter.repo_name}}.utils import check_args_num, \
read_config, set_random_seed, str_hash, file_hash
from {{cookiecutter.repo_name}}.settings import optuna_db_path
def read_inp_file(filepath):
raise NotImplementedError
def write_output(out, filepath):
raise NotImplementedError
... | 28.932584 | 79 | 0.717282 | 337 | 2,575 | 5.130564 | 0.296736 | 0.032389 | 0.07808 | 0.037016 | 0.215153 | 0.201272 | 0.178138 | 0.104106 | 0.104106 | 0.104106 | 0 | 0.00096 | 0.19068 | 2,575 | 88 | 80 | 29.261364 | 0.828695 | 0 | 0 | 0.122449 | 0 | 0 | 0.049819 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.020408 | 0.061224 | 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 |
887ec99957073c1e4d84bfa70941e65fc56ac5fc | 529 | py | Python | utils.py | Ji-Xinyou/DIP-proj-DepthEstimation | 5432c14ce1d0cdc9b8b6ab0a273678ffbe6086bd | [
"MIT"
] | null | null | null | utils.py | Ji-Xinyou/DIP-proj-DepthEstimation | 5432c14ce1d0cdc9b8b6ab0a273678ffbe6086bd | [
"MIT"
] | null | null | null | utils.py | Ji-Xinyou/DIP-proj-DepthEstimation | 5432c14ce1d0cdc9b8b6ab0a273678ffbe6086bd | [
"MIT"
] | null | null | null | import torch
def save_param(model, pth_path):
'''
save the parameters of the model
Args:
model: the model to which the params belong
pth_path: the path where .pth file is saved
'''
torch.save(model.state_dict(), pth_path)
def load_param(model, pth_path):
'''
load t... | 25.190476 | 61 | 0.635161 | 79 | 529 | 4.113924 | 0.341772 | 0.129231 | 0.08 | 0.104615 | 0.381538 | 0.381538 | 0.246154 | 0.246154 | 0.246154 | 0 | 0 | 0 | 0.283554 | 529 | 21 | 62 | 25.190476 | 0.85752 | 0.52741 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8883af6b6c6f6d7fd863836a0ab018f4af35d11b | 1,348 | py | Python | prob-77.py | tushargayan2324/Project_Euler | 874accc918e23337510056d7140cd85a1656dd3e | [
"MIT"
] | null | null | null | prob-77.py | tushargayan2324/Project_Euler | 874accc918e23337510056d7140cd85a1656dd3e | [
"MIT"
] | null | null | null | prob-77.py | tushargayan2324/Project_Euler | 874accc918e23337510056d7140cd85a1656dd3e | [
"MIT"
] | null | null | null | #Project Euler Problem-77
#Author Tushar Gayan
#Multinomial Theorem
import math
import numpy as np
def mod_list(pow,terms):
m = []
for i in range(terms):
if i%pow == 0:
m.append(1)
else:
m.append(0)
return m[::-1]
def prime_check(num):
i... | 18.985915 | 57 | 0.5 | 201 | 1,348 | 3.258706 | 0.268657 | 0.123664 | 0.045802 | 0.091603 | 0.219847 | 0.183206 | 0.183206 | 0.100763 | 0.100763 | 0 | 0 | 0.046838 | 0.366469 | 1,348 | 70 | 58 | 19.257143 | 0.720141 | 0.115727 | 0 | 0.085714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.057143 | null | null | 0.028571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
888a09b848fdd84015221d8d652297a6bccb8e05 | 563 | py | Python | portfolio/2011_krakDK/krak/items.py | 0--key/lib | ba7a85dda2b208adc290508ca617bdc55a5ded22 | [
"Apache-2.0"
] | null | null | null | portfolio/2011_krakDK/krak/items.py | 0--key/lib | ba7a85dda2b208adc290508ca617bdc55a5ded22 | [
"Apache-2.0"
] | null | null | null | portfolio/2011_krakDK/krak/items.py | 0--key/lib | ba7a85dda2b208adc290508ca617bdc55a5ded22 | [
"Apache-2.0"
] | 5 | 2016-03-22T07:40:46.000Z | 2021-05-30T16:12:21.000Z | # Define here the models for your scraped items
#
# See documentation in:
# http://doc.scrapy.org/topics/items.html
from scrapy.item import Item, Field
class KrakItem(Item):
# define the fields for your item here like:
# name = Field()
# pass#
company_name = Field()
company_site_url = Field()
... | 23.458333 | 48 | 0.657194 | 68 | 563 | 5.323529 | 0.588235 | 0.038674 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.238011 | 563 | 23 | 49 | 24.478261 | 0.843823 | 0.301954 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
888d0174a06f5d771e461f6d3b086646f76a87f5 | 569 | py | Python | src/sweetrpg_library_api/application/__init__.py | paulyhedral/sweetrpg-library-api | 0105e963ef4321398aa66d7cb3aa9c2df1c4f375 | [
"MIT"
] | null | null | null | src/sweetrpg_library_api/application/__init__.py | paulyhedral/sweetrpg-library-api | 0105e963ef4321398aa66d7cb3aa9c2df1c4f375 | [
"MIT"
] | 33 | 2021-09-18T23:52:05.000Z | 2022-03-30T12:25:49.000Z | src/sweetrpg_library_api/application/__init__.py | sweetrpg/library-api | 0105e963ef4321398aa66d7cb3aa9c2df1c4f375 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
__author__ = "Paul Schifferer <dm@sweetrpg.com>"
"""
"""
import os
import sentry_sdk
from sentry_sdk.integrations.flask import FlaskIntegration
from sentry_sdk.integrations.redis import RedisIntegration
from sweetrpg_library_api.application import constants
sentry_sdk.init(dsn=os.environ[con... | 28.45 | 78 | 0.680141 | 61 | 569 | 6.114754 | 0.590164 | 0.096515 | 0.069705 | 0.134048 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006757 | 0.219684 | 569 | 19 | 79 | 29.947368 | 0.833333 | 0.036907 | 0 | 0 | 0 | 0 | 0.074212 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.416667 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
888eea6317cde6023d0d320a6a78866a20795e44 | 13,674 | py | Python | isochrones_old.py | timothydmorton/fpp-old | 6a2175d4bd9648b61c244c7463148632f36de631 | [
"MIT"
] | null | null | null | isochrones_old.py | timothydmorton/fpp-old | 6a2175d4bd9648b61c244c7463148632f36de631 | [
"MIT"
] | null | null | null | isochrones_old.py | timothydmorton/fpp-old | 6a2175d4bd9648b61c244c7463148632f36de631 | [
"MIT"
] | null | null | null | """
Compiles stellar model isochrones into an easy-to-access format.
"""
from numpy import *
from scipy.interpolate import LinearNDInterpolator as interpnd
from consts import *
import os,sys,re
import scipy.optimize
#try:
# import pymc as pm
#except:
# print 'isochrones: pymc not loaded! MCMC will not work'
i... | 34.270677 | 152 | 0.52311 | 2,046 | 13,674 | 3.427175 | 0.147116 | 0.010839 | 0.027096 | 0.005705 | 0.286081 | 0.229892 | 0.190816 | 0.16429 | 0.145893 | 0.135625 | 0 | 0.03723 | 0.284993 | 13,674 | 398 | 153 | 34.356784 | 0.679963 | 0.070133 | 0 | 0.217666 | 0 | 0.006309 | 0.0732 | 0.029089 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.003155 | 0.022082 | null | null | 0.009464 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
888f394f188ea661c1605445db9b8d21a4a1470e | 1,263 | py | Python | tests/pterradactyl/util/test_common.py | GiampaoloFalqui/pterradactyl | 3d34f8088784c53e3d0871d8ca81f2381f2c2be9 | [
"Apache-2.0"
] | 2 | 2022-03-31T09:02:49.000Z | 2022-03-31T18:56:52.000Z | tests/pterradactyl/util/test_common.py | GiampaoloFalqui/pterradactyl | 3d34f8088784c53e3d0871d8ca81f2381f2c2be9 | [
"Apache-2.0"
] | 4 | 2021-12-20T18:31:47.000Z | 2022-03-14T16:31:49.000Z | tests/pterradactyl/util/test_common.py | GiampaoloFalqui/pterradactyl | 3d34f8088784c53e3d0871d8ca81f2381f2c2be9 | [
"Apache-2.0"
] | null | null | null | import unittest
from pterradactyl.util import as_list, memoize, merge_dict, lookup
class TestCommonUtil(unittest.TestCase):
def memoize_func(self, *arg, **kwargs):
pass
def test_as_list_string(self):
elem = "3"
r = as_list(elem)
self.assertListEqual(r, list(elem))
def te... | 28.704545 | 66 | 0.588282 | 162 | 1,263 | 4.395062 | 0.351852 | 0.06882 | 0.054775 | 0.058989 | 0.258427 | 0.258427 | 0.258427 | 0.171348 | 0.171348 | 0.171348 | 0 | 0.021345 | 0.258116 | 1,263 | 43 | 67 | 29.372093 | 0.738527 | 0 | 0 | 0.151515 | 0 | 0 | 0.066508 | 0 | 0 | 0 | 0 | 0 | 0.212121 | 1 | 0.242424 | false | 0.030303 | 0.060606 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
88a536261708445fb27628f3196b4050db295eff | 22,042 | py | Python | BAN_main.py | EMBEDDIA/BAN | 5f9cbb383c69f03bf8aa55fc1149f3fb78e1af11 | [
"MIT"
] | 2 | 2021-07-01T16:24:45.000Z | 2021-12-08T06:59:08.000Z | BAN_main.py | EMBEDDIA/BAN | 5f9cbb383c69f03bf8aa55fc1149f3fb78e1af11 | [
"MIT"
] | 1 | 2021-12-08T07:01:46.000Z | 2021-12-08T07:01:46.000Z | BAN_main.py | KristianMiok/BAN | e8afc73c60152186b073d7dacc04e39888ec67fc | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""EN3-BT MCD
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1cnvSgNDexJ0cqrTWGygI_smZ0y8EIWZn
"""
import torch
import numpy as np
import tqdm
import copy
from torch.nn import functional as F
from torch.nn.modules.module import... | 35.957586 | 185 | 0.585881 | 2,750 | 22,042 | 4.485818 | 0.172 | 0.022374 | 0.011349 | 0.009647 | 0.258106 | 0.218628 | 0.199741 | 0.178583 | 0.163586 | 0.152886 | 0 | 0.016398 | 0.311088 | 22,042 | 612 | 186 | 36.01634 | 0.795983 | 0.095545 | 0 | 0.260047 | 1 | 0 | 0.019531 | 0.001867 | 0 | 0 | 0 | 0.001634 | 0.01182 | 1 | 0.06383 | false | 0 | 0.06383 | 0.004728 | 0.189125 | 0.007092 | 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 |
88a59898c3adf079bc749d806b0bcd5596a4b2d8 | 16,974 | py | Python | src/main/python/ui/jriver.py | bmiller/beqdesigner | 36d0c780507a564536038e2c9fc3b03b75dedaf4 | [
"MIT"
] | 16 | 2019-04-12T00:04:56.000Z | 2022-03-15T14:26:56.000Z | src/main/python/ui/jriver.py | bmiller/beqdesigner | 36d0c780507a564536038e2c9fc3b03b75dedaf4 | [
"MIT"
] | 400 | 2018-08-27T10:04:00.000Z | 2022-03-15T21:32:33.000Z | src/main/python/ui/jriver.py | bmiller/beqdesigner | 36d0c780507a564536038e2c9fc3b03b75dedaf4 | [
"MIT"
] | 6 | 2018-09-19T21:02:27.000Z | 2020-10-18T04:11:01.000Z | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'jriver.ui'
#
# Created by: PyQt5 UI code generator 5.15.2
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 import QtCore, QtGui... | 62.175824 | 115 | 0.747143 | 1,413 | 16,974 | 8.924982 | 0.15782 | 0.081358 | 0.061454 | 0.063833 | 0.06312 | 0.026485 | 0.019983 | 0.019983 | 0.019983 | 0.019983 | 0 | 0.007567 | 0.151349 | 16,974 | 272 | 116 | 62.404412 | 0.867893 | 0.015966 | 0 | 0 | 1 | 0 | 0.081462 | 0.001258 | 0 | 0 | 0 | 0 | 0 | 1 | 0.007752 | false | 0 | 0.011628 | 0 | 0.023256 | 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 |
88b1b8b8cd2dc825c7e83bc1234dcf21c35cee9e | 2,406 | py | Python | allhub/users/users.py | srinivasreddy/allhub | ff20858c9984da5c4edd5043c39eed3b6d5d693d | [
"Apache-2.0"
] | 2 | 2019-10-07T15:46:33.000Z | 2019-11-26T04:30:39.000Z | allhub/users/users.py | srinivasreddy/allhub | ff20858c9984da5c4edd5043c39eed3b6d5d693d | [
"Apache-2.0"
] | 1 | 2020-03-09T14:44:04.000Z | 2020-03-09T14:44:04.000Z | allhub/users/users.py | srinivasreddy/allhub | ff20858c9984da5c4edd5043c39eed3b6d5d693d | [
"Apache-2.0"
] | 2 | 2019-10-08T05:22:37.000Z | 2019-10-08T06:20:47.000Z | from allhub.response import Response
from enum import Enum
class SubjectType(Enum):
ORGANIZATION = "organization"
REPOSITORY = "repository"
ISSUE = "issue"
PULL_REQUEST = "pull_request"
NONE = None
class UsersMixin:
def user(self, username):
"""
Provides publicly available i... | 30.846154 | 86 | 0.558188 | 245 | 2,406 | 5.408163 | 0.395918 | 0.090566 | 0.075472 | 0.090566 | 0.277736 | 0.255094 | 0.218868 | 0.218868 | 0.152453 | 0.096604 | 0 | 0.003701 | 0.326268 | 2,406 | 77 | 87 | 31.246753 | 0.813695 | 0.097672 | 0 | 0.192982 | 0 | 0 | 0.143947 | 0.032412 | 0 | 0 | 0 | 0.012987 | 0 | 1 | 0.087719 | false | 0 | 0.035088 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
88b820c740bb5a71614b2fa5da303eb9d7016011 | 1,613 | py | Python | tornado-lab/main8.py | zhyq0826/test-lab | b5b4d1372f2201dc5299bbe8983af18e8d4e1a1a | [
"MIT"
] | null | null | null | tornado-lab/main8.py | zhyq0826/test-lab | b5b4d1372f2201dc5299bbe8983af18e8d4e1a1a | [
"MIT"
] | null | null | null | tornado-lab/main8.py | zhyq0826/test-lab | b5b4d1372f2201dc5299bbe8983af18e8d4e1a1a | [
"MIT"
] | null | null | null | import tornado.ioloop
import tornado.web
import tornado.gen
import logging
from concurrent.futures import ThreadPoolExecutor
logger = logging.getLogger()
logger.setLevel(logging.DEBUG)
executor = ThreadPoolExecutor(max_workers=2)
@tornado.gen.coroutine
def callback():
"""
when a function decorator with corou... | 22.71831 | 78 | 0.691878 | 187 | 1,613 | 5.893048 | 0.406417 | 0.058984 | 0.068966 | 0.098004 | 0.143376 | 0.061706 | 0 | 0 | 0 | 0 | 0 | 0.00921 | 0.192188 | 1,613 | 71 | 79 | 22.71831 | 0.836531 | 0.068816 | 0 | 0.108696 | 0 | 0 | 0.080199 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.152174 | null | null | 0.108696 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
31ef1dd8e273d8cef398fef10de951765faeb7fd | 10,737 | py | Python | ROS/Thymio/controller.py | gyani91/Robotics | 124b9df7ae82e8c9b9ad54c74292585e81c7a3bb | [
"MIT"
] | null | null | null | ROS/Thymio/controller.py | gyani91/Robotics | 124b9df7ae82e8c9b9ad54c74292585e81c7a3bb | [
"MIT"
] | null | null | null | ROS/Thymio/controller.py | gyani91/Robotics | 124b9df7ae82e8c9b9ad54c74292585e81c7a3bb | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import rospy
import sys
import numpy as np
from geometry_msgs.msg import Pose, Twist
from nav_msgs.msg import Odometry
from sensor_msgs.msg import Range
from math import cos, sin, asin, tan, atan2
# msgs and srv for working with the set_model_service
from gazebo_msgs.msg import ModelState
from ga... | 37.28125 | 131 | 0.644593 | 1,438 | 10,737 | 4.585535 | 0.205146 | 0.056718 | 0.03943 | 0.038217 | 0.420079 | 0.320443 | 0.27616 | 0.27525 | 0.186988 | 0.175008 | 0 | 0.011777 | 0.264506 | 10,737 | 287 | 132 | 37.41115 | 0.823224 | 0.14641 | 0 | 0.230769 | 0 | 0 | 0.04153 | 0.015277 | 0 | 0 | 0 | 0.003484 | 0 | 0 | null | null | 0 | 0.076923 | null | null | 0.035897 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
31f50c4b34b2287216379f7b02c2f0676d6b7602 | 636 | py | Python | models/edit.py | DOSYCORPS/correct-the-news | 92509c1bf8ba88fec273b812142f1b3d73312840 | [
"MIT"
] | 1 | 2017-10-16T16:02:33.000Z | 2017-10-16T16:02:33.000Z | models/edit.py | dosyago-corp/correct-the-news | 92509c1bf8ba88fec273b812142f1b3d73312840 | [
"MIT"
] | 3 | 2017-10-19T07:58:42.000Z | 2017-10-21T12:01:46.000Z | models/edit.py | DOSYCORPS/correct-the-news | 92509c1bf8ba88fec273b812142f1b3d73312840 | [
"MIT"
] | null | null | null | from google.appengine.ext import ndb
ATTACHMENTS = [
'beforeBegin',
'afterEnd',
'middle'
]
TYPES = [
'strike',
'insert'
]
class Modification(ndb.Model):
type = ndb.StringProperty(choices=TYPES)
start_index = ndb.IntegerProperty()
trigram_at_start = ndb.StringProperty()
content = ndb.StringProperty(... | 23.555556 | 69 | 0.75 | 66 | 636 | 7.106061 | 0.545455 | 0.217484 | 0.147122 | 0.127932 | 0.136461 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.13522 | 636 | 26 | 70 | 24.461538 | 0.852727 | 0 | 0 | 0 | 0 | 0 | 0.058176 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.590909 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
31f5dfe6cc07ddb8e01d014bf1bbf7cebbdd8060 | 3,800 | py | Python | integrationtest/vm/basic/account/test_multi_users_cli_login.py | sherry546/zstack-woodpecker | 54a37459f2d72ce6820974feaa6eb55772c3d2ce | [
"Apache-2.0"
] | 1 | 2021-03-21T12:41:11.000Z | 2021-03-21T12:41:11.000Z | integrationtest/vm/basic/account/test_multi_users_cli_login.py | sherry546/zstack-woodpecker | 54a37459f2d72ce6820974feaa6eb55772c3d2ce | [
"Apache-2.0"
] | null | null | null | integrationtest/vm/basic/account/test_multi_users_cli_login.py | sherry546/zstack-woodpecker | 54a37459f2d72ce6820974feaa6eb55772c3d2ce | [
"Apache-2.0"
] | 1 | 2017-05-19T06:40:40.000Z | 2017-05-19T06:40:40.000Z | '''
New Integration Test for 2 normal users zstack-cli login
@author: MengLai
'''
import hashlib
import zstackwoodpecker.operations.account_operations as acc_ops
import zstackwoodpecker.test_util as test_util
import zstackwoodpecker.test_lib as test_lib
import zstackwoodpecker.test_state as test_state
import... | 40.860215 | 108 | 0.727105 | 556 | 3,800 | 4.665468 | 0.176259 | 0.037008 | 0.046261 | 0.028913 | 0.532382 | 0.449499 | 0.365844 | 0.333847 | 0.314187 | 0.257132 | 0 | 0.022243 | 0.171842 | 3,800 | 92 | 109 | 41.304348 | 0.802034 | 0.033158 | 0 | 0.243243 | 0 | 0 | 0.201175 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.067568 | false | 0.135135 | 0.121622 | 0 | 0.22973 | 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 |
31ffce463b8361c5e6ba6697268ac0aace1de85c | 483 | py | Python | shop/migrations/0006_auto_20171130_1638.py | zahidkizmaz/VehicleShop | 5a2dc5cc4eb4c4692db9f19108818069250a950a | [
"MIT"
] | 10 | 2017-11-29T17:41:23.000Z | 2020-01-13T14:45:18.000Z | shop/migrations/0006_auto_20171130_1638.py | zahidkizmaz/VehicleShop | 5a2dc5cc4eb4c4692db9f19108818069250a950a | [
"MIT"
] | 1 | 2017-12-15T17:24:42.000Z | 2017-12-17T00:05:54.000Z | shop/migrations/0006_auto_20171130_1638.py | zahidkizmaz/VehicleShop | 5a2dc5cc4eb4c4692db9f19108818069250a950a | [
"MIT"
] | 2 | 2020-03-31T00:01:27.000Z | 2022-01-02T05:45:17.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2017-11-30 16:38
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('shop', '0005_frequentlysearched_latestsearches_soldvehicles_transaction'),
]
operat... | 23 | 84 | 0.641822 | 50 | 483 | 6 | 0.82 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057851 | 0.248447 | 483 | 20 | 85 | 24.15 | 0.768595 | 0.140787 | 0 | 0 | 1 | 0 | 0.182039 | 0.152913 | 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 |
ee0270408f2e8be9f93c82f2617c2e04aaafceac | 646 | py | Python | benchmark/legacy/workload.py | zhangjyr/faas | a40ea1848e6b5428177319285097168faf3253de | [
"MIT"
] | null | null | null | benchmark/legacy/workload.py | zhangjyr/faas | a40ea1848e6b5428177319285097168faf3253de | [
"MIT"
] | null | null | null | benchmark/legacy/workload.py | zhangjyr/faas | a40ea1848e6b5428177319285097168faf3253de | [
"MIT"
] | null | null | null | import sys
import os
from common.invoker import newRequest
from common.invoker import request
from common.invoker import threadize
port = 8080
if len(sys.argv) > 1:
port = int(sys.argv[1])
workload = 10000
req = newRequest(
"GET",
"http://localhost:{0}/".format(port),
headers = {
"X-FUNCTION... | 19.575758 | 64 | 0.648607 | 86 | 646 | 4.825581 | 0.627907 | 0.072289 | 0.122892 | 0.166265 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02682 | 0.19195 | 646 | 32 | 65 | 20.1875 | 0.768199 | 0 | 0 | 0 | 0 | 0 | 0.095975 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ee0422fdb0bb9569ffe5bfce8332b0898922c7e6 | 1,482 | py | Python | src/docs/architecture/demo.py | coding-fastandslow/testing-spring-boot-applications-masterclass | 7564987d4a54e60bf59c4b0eb48ac3736e136904 | [
"MIT"
] | 1 | 2021-06-02T03:46:23.000Z | 2021-06-02T03:46:23.000Z | src/docs/architecture/demo.py | coding-fastandslow/testing-spring-boot-applications-masterclass | 7564987d4a54e60bf59c4b0eb48ac3736e136904 | [
"MIT"
] | 30 | 2021-08-04T02:14:16.000Z | 2022-03-28T02:19:17.000Z | src/docs/architecture/demo.py | coding-fastandslow/testing-spring-boot-applications-masterclass | 7564987d4a54e60bf59c4b0eb48ac3736e136904 | [
"MIT"
] | 1 | 2021-10-08T12:44:38.000Z | 2021-10-08T12:44:38.000Z | from diagrams import Cluster, Diagram, Edge
from diagrams.aws.compute import EC2
from diagrams.aws.database import RDS
from diagrams.aws.integration import SQS
from diagrams.aws.network import ELB
from diagrams.aws.storage import S3
from diagrams.onprem.ci import Jenkins
from diagrams.onprem.client import Client, User,... | 33.681818 | 118 | 0.711876 | 187 | 1,482 | 5.620321 | 0.374332 | 0.159848 | 0.119886 | 0.031399 | 0.038059 | 0.038059 | 0 | 0 | 0 | 0 | 0 | 0.00856 | 0.132928 | 1,482 | 43 | 119 | 34.465116 | 0.809339 | 0.007422 | 0 | 0 | 0 | 0 | 0.161905 | 0.016327 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.378378 | 0 | 0.378378 | 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 |
ee084007853fb17a734c30e770875d1d79a60983 | 193 | py | Python | OOP/ConstructorExample5.py | suprit08/PythonAssignments | 6cab78660d8c77cf573cbea82e4dada19b0fc08c | [
"MIT"
] | null | null | null | OOP/ConstructorExample5.py | suprit08/PythonAssignments | 6cab78660d8c77cf573cbea82e4dada19b0fc08c | [
"MIT"
] | null | null | null | OOP/ConstructorExample5.py | suprit08/PythonAssignments | 6cab78660d8c77cf573cbea82e4dada19b0fc08c | [
"MIT"
] | null | null | null | class Test:
def __init__(self):
self.a=10
self.b=20
def display(self):
print(self.a)
print(self.b)
t=Test()
t.display()
print(t.a,t.b) | 14.846154 | 24 | 0.487047 | 29 | 193 | 3.103448 | 0.413793 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032787 | 0.367876 | 193 | 13 | 25 | 14.846154 | 0.704918 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.3 | 0.3 | 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 |
ee0b88c2d64968744709b3b0f62395d7460bc8b4 | 378 | py | Python | Part_3_advanced/m19_concurrency_II/threading_queue/homework_1_solution/book_book/actions.py | Mikma03/InfoShareacademy_Python_Courses | 3df1008c8c92831bebf1625f960f25b39d6987e6 | [
"MIT"
] | null | null | null | Part_3_advanced/m19_concurrency_II/threading_queue/homework_1_solution/book_book/actions.py | Mikma03/InfoShareacademy_Python_Courses | 3df1008c8c92831bebf1625f960f25b39d6987e6 | [
"MIT"
] | null | null | null | Part_3_advanced/m19_concurrency_II/threading_queue/homework_1_solution/book_book/actions.py | Mikma03/InfoShareacademy_Python_Courses | 3df1008c8c92831bebf1625f960f25b39d6987e6 | [
"MIT"
] | null | null | null | import random
import time
from book_book.books_directory import books_requests_queue
from book_book.rental_request import RentalRequest
def rent_a_book(author: str, title: str, renter_name: str) -> None:
time.sleep(random.randint(0, 1))
rental_request = RentalRequest(author=author, title=title, renter_name=... | 29.076923 | 87 | 0.801587 | 55 | 378 | 5.236364 | 0.472727 | 0.135417 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006006 | 0.119048 | 378 | 12 | 88 | 31.5 | 0.858859 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.5 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
ee11a749896f2dac758fc2f13a4c31bc96f85f10 | 4,852 | py | Python | cs15211/KthSmallestNumberinMultiplicationTable.py | JulyKikuAkita/PythonPrac | 0ba027d9b8bc7c80bc89ce2da3543ce7a49a403c | [
"Apache-2.0"
] | 1 | 2021-07-05T01:53:30.000Z | 2021-07-05T01:53:30.000Z | cs15211/KthSmallestNumberinMultiplicationTable.py | JulyKikuAkita/PythonPrac | 0ba027d9b8bc7c80bc89ce2da3543ce7a49a403c | [
"Apache-2.0"
] | null | null | null | cs15211/KthSmallestNumberinMultiplicationTable.py | JulyKikuAkita/PythonPrac | 0ba027d9b8bc7c80bc89ce2da3543ce7a49a403c | [
"Apache-2.0"
] | 1 | 2018-01-08T07:14:08.000Z | 2018-01-08T07:14:08.000Z | __source__ = 'https://leetcode.com/problems/kth-smallest-number-in-multiplication-table/'
# Time: O()
# Space: O()
#
# Description: Leetcode # 668. Kth Smallest Number in Multiplication Table
#
# Nearly every one have used the Multiplication Table.
# But could you find out the k-th smallest number quickly from the mul... | 25.671958 | 103 | 0.523495 | 716 | 4,852 | 3.52933 | 0.263966 | 0.011872 | 0.016621 | 0.018995 | 0.340325 | 0.300356 | 0.258013 | 0.188366 | 0.171745 | 0.171745 | 0 | 0.042378 | 0.34831 | 4,852 | 189 | 104 | 25.671958 | 0.756799 | 0.172712 | 0 | 0.164179 | 0 | 0.029851 | 0.836724 | 0.005595 | 0 | 0 | 0 | 0 | 0.007463 | 1 | 0.022388 | false | 0 | 0.007463 | 0 | 0.104478 | 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 |
ee1b99ad06589e6918f63fd1de2e355976ecde19 | 7,459 | py | Python | graphics/text/config.py | sergeirocks100/satanicinfestation | 3eff98631b71207ffbf5aa9791e194ebf41e2027 | [
"CC-BY-4.0"
] | 5 | 2020-04-28T02:59:08.000Z | 2022-02-26T20:32:54.000Z | graphics/text/config.py | sergeirocks100/satanicinfestation | 3eff98631b71207ffbf5aa9791e194ebf41e2027 | [
"CC-BY-4.0"
] | null | null | null | graphics/text/config.py | sergeirocks100/satanicinfestation | 3eff98631b71207ffbf5aa9791e194ebf41e2027 | [
"CC-BY-4.0"
] | null | null | null | # SPDX-License-Identifier: BSD-3-Clause
#
# Configuration file for textgen. This file defines the graphic lumps
# that are generated, and the text to show in each one.
#
import re
# Adjustments for character position based on character pairs. Some
# pairs of characters can fit more snugly together, which looks more
#... | 28.14717 | 78 | 0.553962 | 1,057 | 7,459 | 3.808893 | 0.437086 | 0.010432 | 0.014903 | 0.002484 | 0.022355 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030672 | 0.261295 | 7,459 | 264 | 79 | 28.253788 | 0.7 | 0.258882 | 0 | 0.00995 | 1 | 0 | 0.400037 | 0.008261 | 0 | 0 | 0 | 0 | 0 | 1 | 0.00995 | false | 0 | 0.004975 | 0 | 0.019901 | 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 |
ee1bd9711953e27dca2cb44d9b6e0151df623ebc | 1,840 | py | Python | generateFuncdb.py | daeken/GrinningSoul | d35ac197dade35d8a831ffb10fffd2ec93a791ea | [
"Apache-2.0"
] | 94 | 2020-11-22T00:35:08.000Z | 2022-02-22T15:45:41.000Z | generateFuncdb.py | CrackerCat/GrinningSoul | d35ac197dade35d8a831ffb10fffd2ec93a791ea | [
"Apache-2.0"
] | 1 | 2021-05-14T14:18:23.000Z | 2021-05-15T16:03:24.000Z | generateFuncdb.py | CrackerCat/GrinningSoul | d35ac197dade35d8a831ffb10fffd2ec93a791ea | [
"Apache-2.0"
] | 8 | 2020-11-22T10:23:26.000Z | 2022-02-22T08:34:46.000Z | import fnmatch, os, subprocess
from multiprocessing import Pool
import tqdm
sdkPath = subprocess.check_output('xcodebuild -version -sdk iphonesimulator Path', shell=True).strip()
def parseSymbols(fn):
args = [
'headerparser_output/headerparse', fn,
'-ObjC',
'-fmodules',
'-isysroot', sdkPath,
'-I%s/usr/... | 27.462687 | 102 | 0.658696 | 250 | 1,840 | 4.82 | 0.432 | 0.019917 | 0.034855 | 0.019917 | 0.031535 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00981 | 0.169022 | 1,840 | 66 | 103 | 27.878788 | 0.778286 | 0.058696 | 0 | 0.037037 | 0 | 0 | 0.161066 | 0.082271 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.018519 | 0.055556 | null | null | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ee1f75cb3cbebacad1e1938152badf91c6fd14cd | 1,331 | py | Python | src/cli/dcos_vagrant/commands/wait.py | Fabs/dcos-e2e | 8836dfa5b83f9d61e92b8b4bd8b058404a3bdc20 | [
"Apache-2.0"
] | null | null | null | src/cli/dcos_vagrant/commands/wait.py | Fabs/dcos-e2e | 8836dfa5b83f9d61e92b8b4bd8b058404a3bdc20 | [
"Apache-2.0"
] | null | null | null | src/cli/dcos_vagrant/commands/wait.py | Fabs/dcos-e2e | 8836dfa5b83f9d61e92b8b4bd8b058404a3bdc20 | [
"Apache-2.0"
] | null | null | null | """
Tools for waiting for a cluster.
"""
import click
import click_spinner
import urllib3
from cli.common.options import (
superuser_password_option,
superuser_username_option,
)
from ._common import ClusterVMs
from ._options import existing_cluster_id_option
@click.command('wait')
@existing_cluster_id_opt... | 26.62 | 79 | 0.689707 | 164 | 1,331 | 5.347561 | 0.45122 | 0.096921 | 0.052452 | 0.066135 | 0.063854 | 0.063854 | 0 | 0 | 0 | 0 | 0 | 0.002953 | 0.236664 | 1,331 | 49 | 80 | 27.163265 | 0.860236 | 0.042825 | 0 | 0 | 0 | 0 | 0.178257 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027027 | false | 0.108108 | 0.162162 | 0 | 0.216216 | 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 |
ee203c8c6303ac213b7e84dfaa580b41ed282776 | 1,922 | py | Python | Think Complexity/GraphCode.py | henry-zhuang/reading-lists | 128b71b24cd49e346df74bee8126d3d3ef0907df | [
"BSD-2-Clause"
] | 3 | 2017-11-06T06:28:07.000Z | 2021-12-28T07:04:57.000Z | Think Complexity/GraphCode.py | henry-zhuang/reading-lists | 128b71b24cd49e346df74bee8126d3d3ef0907df | [
"BSD-2-Clause"
] | null | null | null | Think Complexity/GraphCode.py | henry-zhuang/reading-lists | 128b71b24cd49e346df74bee8126d3d3ef0907df | [
"BSD-2-Clause"
] | null | null | null | class Graph(dict):
"""A Graph is a dictionary of dictionaris. The outer dictionary maps
from a vertex to an inner dictionary.
The inner dictionary maps from other vertices to edges.
For vertices a and b, graph([a, b], [ab]) maps to the edge that
connects a->b, if it exists."""
def __init__(sel... | 25.972973 | 72 | 0.565557 | 277 | 1,922 | 3.736462 | 0.33574 | 0.038647 | 0.034783 | 0.013527 | 0.181643 | 0.181643 | 0.181643 | 0.181643 | 0.181643 | 0.181643 | 0 | 0.005311 | 0.314256 | 1,922 | 73 | 73 | 26.328767 | 0.77997 | 0 | 0 | 0.117647 | 0 | 0 | 0.072692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.088235 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ee267e6a87dffffb307c371ef839bb7bf075c746 | 618 | py | Python | wormpose/machine_learning/generic_file_writer.py | AntonioCCosta/wormpose | ebd0acf39b92072f00008731e77c5ac2b8ea4406 | [
"BSD-3-Clause"
] | 29 | 2020-05-14T02:58:59.000Z | 2022-03-16T10:06:36.000Z | wormpose/machine_learning/generic_file_writer.py | Tubbz-alt/wormpose | a92c0459f940d6e1f517b90d3a445ad3c0689ed8 | [
"BSD-3-Clause"
] | 8 | 2020-08-14T06:23:14.000Z | 2022-01-03T04:28:58.000Z | wormpose/machine_learning/generic_file_writer.py | Tubbz-alt/wormpose | a92c0459f940d6e1f517b90d3a445ad3c0689ed8 | [
"BSD-3-Clause"
] | 11 | 2020-07-18T20:43:00.000Z | 2022-03-17T18:27:57.000Z | """
Wrapper to save the training data to different file formats
"""
class GenericFileWriter(object):
"""
Write data to different file formats depending on the open_file and write_file functions
"""
def __init__(self, open_file=None, write_file=None):
self.open_file = open_file
self.wr... | 24.72 | 92 | 0.661812 | 88 | 618 | 4.238636 | 0.340909 | 0.107239 | 0.096515 | 0.101877 | 0.235925 | 0.096515 | 0 | 0 | 0 | 0 | 0 | 0 | 0.242718 | 618 | 24 | 93 | 25.75 | 0.797009 | 0.239482 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ee2a78ecf01311256d971e67c7ba46fef93c2320 | 716 | py | Python | TV_equivalent_indicators.py | J0N3X/crypto-backtest-module | 0f2618c4538b25a78f75c7831b9ce3701f33de60 | [
"MIT"
] | 6 | 2021-08-10T14:34:11.000Z | 2022-03-03T19:14:15.000Z | TV_equivalent_indicators.py | J0N3X/crypto-backtest-module | 0f2618c4538b25a78f75c7831b9ce3701f33de60 | [
"MIT"
] | null | null | null | TV_equivalent_indicators.py | J0N3X/crypto-backtest-module | 0f2618c4538b25a78f75c7831b9ce3701f33de60 | [
"MIT"
] | 4 | 2020-11-01T19:46:56.000Z | 2022-03-24T05:47:06.000Z | import pandas as pd
import numpy as np
def rsi_tradingview(ohlc: pd.DataFrame, period):
delta = ohlc["close"].diff()
up = delta.copy()
up[up < 0] = 0
up = pd.Series.ewm(up, alpha=1/period).mean()
down = delta.copy()
down[down > 0] = 0
down *= -1
down = pd.Series.ewm(down, alpha=1/per... | 26.518519 | 123 | 0.586592 | 118 | 716 | 3.550847 | 0.364407 | 0.066826 | 0.071599 | 0.076372 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042553 | 0.212291 | 716 | 27 | 124 | 26.518519 | 0.700355 | 0 | 0 | 0 | 0 | 0 | 0.011158 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.111111 | 0.111111 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
ee327f2d0e55a21aaeef4a1ec21efda3fb98ce69 | 892 | py | Python | app/db_models/main.py | KatlehoGxagxa/kk_secure | 043dfbe9511a3b950686240ae36a6e676b009390 | [
"MIT"
] | null | null | null | app/db_models/main.py | KatlehoGxagxa/kk_secure | 043dfbe9511a3b950686240ae36a6e676b009390 | [
"MIT"
] | null | null | null | app/db_models/main.py | KatlehoGxagxa/kk_secure | 043dfbe9511a3b950686240ae36a6e676b009390 | [
"MIT"
] | null | null | null | import os
from sqlalchemy import create_engine
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker, relationship, backref
Base = declarative_base()
from app.db_models.accounts import Accounts
from app.db_models.association_table import AssociationTable
from app.db_models.o... | 27.030303 | 80 | 0.778027 | 124 | 892 | 5.491935 | 0.459677 | 0.082232 | 0.052863 | 0.088106 | 0.132159 | 0.132159 | 0.132159 | 0.132159 | 0.132159 | 0 | 0 | 0 | 0.119955 | 892 | 32 | 81 | 27.875 | 0.867516 | 0.184978 | 0 | 0 | 0 | 0 | 0.082058 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.533333 | 0 | 0.533333 | 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 |
ee383dc672da93812bf7e31171a62575ecb25dfe | 905 | py | Python | orchestra/forms/fields.py | RubenPX/django-orchestra | 5ab4779e1ae12ec99569d682601b7810587ed381 | [
"Unlicense"
] | 68 | 2015-02-09T10:28:44.000Z | 2022-03-12T11:08:36.000Z | orchestra/forms/fields.py | RubenPX/django-orchestra | 5ab4779e1ae12ec99569d682601b7810587ed381 | [
"Unlicense"
] | 17 | 2015-05-01T18:10:03.000Z | 2021-03-19T21:52:55.000Z | orchestra/forms/fields.py | RubenPX/django-orchestra | 5ab4779e1ae12ec99569d682601b7810587ed381 | [
"Unlicense"
] | 29 | 2015-03-31T04:51:03.000Z | 2022-02-17T02:58:50.000Z | from django import forms
from .widgets import SpanWidget
class MultiSelectFormField(forms.MultipleChoiceField):
""" http://djangosnippets.org/snippets/1200/ """
widget = forms.CheckboxSelectMultiple
def __init__(self, *args, **kwargs):
self.max_choices = kwargs.pop('max_choices', 0)
... | 30.166667 | 82 | 0.667403 | 100 | 905 | 5.85 | 0.57 | 0.068376 | 0.037607 | 0.051282 | 0.071795 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007052 | 0.216575 | 905 | 29 | 83 | 31.206897 | 0.818054 | 0.194475 | 0 | 0.133333 | 0 | 0 | 0.044349 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.133333 | 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 |
ee3b32d88b8afd4ca09f0005b74b567acf3d93ca | 2,171 | py | Python | src/main/python/generate.py | gpanther/fastutil-guava-tests | 8606eb1126874695e58f263610787b7775c98ffb | [
"Apache-2.0"
] | 1 | 2016-03-16T08:36:51.000Z | 2016-03-16T08:36:51.000Z | src/main/python/generate.py | gpanther/fastutil-guava-tests | 8606eb1126874695e58f263610787b7775c98ffb | [
"Apache-2.0"
] | null | null | null | src/main/python/generate.py | gpanther/fastutil-guava-tests | 8606eb1126874695e58f263610787b7775c98ffb | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
import os
import re
import jinja2
def generate_metadata(name, additional_dict=None):
result = {
'package': 'it.unimi.dsi.fastutil.%ss' % name.lower(),
'primitive': name.lower(),
'boxed_class': name
}
result.update(additional_dict or {})
return name, result
kin... | 35.590164 | 104 | 0.634731 | 270 | 2,171 | 4.918519 | 0.411111 | 0.120482 | 0.021084 | 0.025602 | 0.114458 | 0.033133 | 0 | 0 | 0 | 0 | 0 | 0.004051 | 0.204053 | 2,171 | 60 | 105 | 36.183333 | 0.764468 | 0.057117 | 0 | 0 | 1 | 0 | 0.209883 | 0.074364 | 0 | 0 | 0 | 0 | 0 | 1 | 0.06 | false | 0 | 0.06 | 0.02 | 0.18 | 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 |
ee404e6979393de5363253ef67e712dee62d98a1 | 543 | py | Python | loans/migrations/0002_product_organization.py | prateekmohanty63/microfinance | 39839c0d378be4ccc40a9dde5dc38a10773a38a1 | [
"MIT"
] | 1 | 2022-02-25T18:39:44.000Z | 2022-02-25T18:39:44.000Z | loans/migrations/0002_product_organization.py | prateekmohanty63/microfinance | 39839c0d378be4ccc40a9dde5dc38a10773a38a1 | [
"MIT"
] | null | null | null | loans/migrations/0002_product_organization.py | prateekmohanty63/microfinance | 39839c0d378be4ccc40a9dde5dc38a10773a38a1 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.4 on 2022-02-25 05:41
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('organizations', '0002_organizationcustomer'),
('loans', '0001_initial'),
]
operations = [
migration... | 25.857143 | 126 | 0.64825 | 58 | 543 | 5.982759 | 0.689655 | 0.069164 | 0.080692 | 0.126801 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055024 | 0.230203 | 543 | 20 | 127 | 27.15 | 0.77512 | 0.082873 | 0 | 0 | 1 | 0 | 0.201613 | 0.102823 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ee4520a20396d2ea6e82b1e5331b895e66992d37 | 286 | py | Python | service/routing.py | ademuk/features-service | 2c5b448435c7491c0952fd38f31dd8cc987788c4 | [
"MIT"
] | null | null | null | service/routing.py | ademuk/features-service | 2c5b448435c7491c0952fd38f31dd8cc987788c4 | [
"MIT"
] | null | null | null | service/routing.py | ademuk/features-service | 2c5b448435c7491c0952fd38f31dd8cc987788c4 | [
"MIT"
] | null | null | null | from channels import route
from .features import consumers
path = r'^/api/projects/(?P<id>[0-9a-f-]+)/stream/$'
channel_routing = [
route("websocket.connect", consumers.connect_to_project, path=path),
route("websocket.receive", consumers.disconnect_from_project, path=path)
]
| 28.6 | 76 | 0.737762 | 38 | 286 | 5.421053 | 0.631579 | 0.135922 | 0.145631 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007843 | 0.108392 | 286 | 9 | 77 | 31.777778 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0.265734 | 0.146853 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 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 |
ee464501d973897e3ed2b4d73bd1727f9c46ec63 | 4,923 | py | Python | hearts_navigation/scripts/location_goal.py | HeartsBRL/hearts_navigation | 0f1434675bd200741ea8b21381f35b83692de986 | [
"MIT"
] | null | null | null | hearts_navigation/scripts/location_goal.py | HeartsBRL/hearts_navigation | 0f1434675bd200741ea8b21381f35b83692de986 | [
"MIT"
] | null | null | null | hearts_navigation/scripts/location_goal.py | HeartsBRL/hearts_navigation | 0f1434675bd200741ea8b21381f35b83692de986 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# https://github.com/studioimaginaire/phue
import rospy
from geometry_msgs.msg import PoseStamped, Pose, Pose2D
from std_msgs.msg import String
import json
import io
import os
# pose = Pose value
# location = string value
class Location():
def __init__(self):
self.PATH = rospy.ge... | 27.198895 | 109 | 0.549868 | 545 | 4,923 | 4.814679 | 0.26789 | 0.037729 | 0.028582 | 0.030488 | 0.10061 | 0.070884 | 0.04878 | 0.04878 | 0.04878 | 0.04878 | 0 | 0.005919 | 0.347959 | 4,923 | 180 | 110 | 27.35 | 0.811526 | 0.107861 | 0 | 0.096491 | 0 | 0 | 0.082057 | 0.026057 | 0 | 0 | 0 | 0.005556 | 0 | 0 | null | null | 0 | 0.052632 | null | null | 0.04386 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ee61b12145d3742ab35520782261592ec9adb889 | 832 | py | Python | server/api/health.py | lab-grid/labflow | 967c0ac041e2b1000a2624fc3adf1b27fce135c9 | [
"MIT"
] | 4 | 2020-10-20T00:23:28.000Z | 2021-09-14T10:31:02.000Z | server/api/health.py | lab-grid/flow | 967c0ac041e2b1000a2624fc3adf1b27fce135c9 | [
"MIT"
] | 104 | 2020-10-17T22:41:18.000Z | 2021-04-13T18:52:58.000Z | server/api/health.py | lab-grid/labflow | 967c0ac041e2b1000a2624fc3adf1b27fce135c9 | [
"MIT"
] | 2 | 2020-10-17T21:27:52.000Z | 2021-01-10T08:02:47.000Z | from typing import Union
from fastapi import Depends
from fastapi.responses import JSONResponse
from sqlalchemy.orm import Session
from authorization import get_all_roles
from server import app, get_db
from settings import settings
from models import HealthCheck
@app.get('/health', tags=['system'], response_model=He... | 26.83871 | 98 | 0.682692 | 98 | 832 | 5.673469 | 0.510204 | 0.039568 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00625 | 0.230769 | 832 | 30 | 99 | 27.733333 | 0.8625 | 0.033654 | 0 | 0 | 0 | 0 | 0.079801 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.32 | 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 |
ee642f13bf49e8b1507609caffabf3cbde051eab | 369 | py | Python | main.py | Sisyphus141/Password-Encoded | 3353874e0dd8665bb36891616f809aca465f9047 | [
"MIT"
] | null | null | null | main.py | Sisyphus141/Password-Encoded | 3353874e0dd8665bb36891616f809aca465f9047 | [
"MIT"
] | null | null | null | main.py | Sisyphus141/Password-Encoded | 3353874e0dd8665bb36891616f809aca465f9047 | [
"MIT"
] | null | null | null | import hashlib
#take a key
key = str(input("KEY>>> "))
#take a message
password = str(input("MESSAGE>>> "))
#function does does something
#make this more complex or something IDK
password = (key + password + key)
hash1 = hashlib.new("sha256")
password = password.encode("utf-8")
print(password)
has... | 19.421053 | 41 | 0.672087 | 48 | 369 | 5.166667 | 0.5625 | 0.040323 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023179 | 0.181572 | 369 | 18 | 42 | 20.5 | 0.798013 | 0.249322 | 0 | 0 | 0 | 0 | 0.113725 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.555556 | 0.111111 | 0 | 0.111111 | 0.222222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ee6ce037321b65c4af02a18fbc8b39f5c8feab5e | 3,673 | py | Python | DCP_13.py | sgorlick/dailycodingproblem.com-solns | b7e006070fab3c69b0e6a95bd1ce51e642d7f0a0 | [
"MIT"
] | null | null | null | DCP_13.py | sgorlick/dailycodingproblem.com-solns | b7e006070fab3c69b0e6a95bd1ce51e642d7f0a0 | [
"MIT"
] | null | null | null | DCP_13.py | sgorlick/dailycodingproblem.com-solns | b7e006070fab3c69b0e6a95bd1ce51e642d7f0a0 | [
"MIT"
] | null | null | null | #This problem was asked by Amazon.
#Given an integer k and a string s, find the length of the longest substring that contains at most k distinct characters.
#For example, given s = "abcba" and k = 2, the longest substring with k distinct characters is "bcb".
def DCP_13(s,k):
#ciel k by the number of uni... | 26.615942 | 159 | 0.555949 | 565 | 3,673 | 3.59823 | 0.300885 | 0.010821 | 0.026562 | 0.030989 | 0.248893 | 0.201672 | 0.182981 | 0.182981 | 0.172159 | 0.172159 | 0 | 0.02528 | 0.343044 | 3,673 | 137 | 160 | 26.810219 | 0.81724 | 0.665668 | 0 | 0.314286 | 0 | 0.028571 | 0.22333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.085714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ee7168cfeda4b2b5f89ba093e9c94ab09fd2c935 | 658 | py | Python | AwardsApp/migrations/0007_auto_20210720_2237.py | josphat-otieno/project-reviews | 5eaf9334fbd15b95726aee922f936d83e6f3d56f | [
"MIT"
] | null | null | null | AwardsApp/migrations/0007_auto_20210720_2237.py | josphat-otieno/project-reviews | 5eaf9334fbd15b95726aee922f936d83e6f3d56f | [
"MIT"
] | null | null | null | AwardsApp/migrations/0007_auto_20210720_2237.py | josphat-otieno/project-reviews | 5eaf9334fbd15b95726aee922f936d83e6f3d56f | [
"MIT"
] | null | null | null | # Generated by Django 3.2.5 on 2021-07-20 19:37
import cloudinary.models
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('AwardsApp', '0006_userprofile_bio'),
]
operations = [
migrations.AlterField(
model_name='project',
... | 26.32 | 92 | 0.630699 | 66 | 658 | 6.136364 | 0.606061 | 0.118519 | 0.123457 | 0.14321 | 0.291358 | 0.291358 | 0.291358 | 0.291358 | 0.291358 | 0 | 0 | 0.051335 | 0.259878 | 658 | 24 | 93 | 27.416667 | 0.780287 | 0.068389 | 0 | 0.222222 | 1 | 0 | 0.140753 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ee71bab2985f3631fdcc1485aee64b956e3c9e71 | 1,022 | py | Python | Lesson 1/lesson-1-quiz.py | 2series/Data-Structures-and-Algorithms | 68d26dd1e5a21a414321fe70e6fedefd561b0ee9 | [
"MIT"
] | 1 | 2020-02-23T07:40:39.000Z | 2020-02-23T07:40:39.000Z | Lesson 1/lesson-1-quiz.py | 2series/Data-Structures-and-Algorithms | 68d26dd1e5a21a414321fe70e6fedefd561b0ee9 | [
"MIT"
] | null | null | null | Lesson 1/lesson-1-quiz.py | 2series/Data-Structures-and-Algorithms | 68d26dd1e5a21a414321fe70e6fedefd561b0ee9 | [
"MIT"
] | 3 | 2019-12-05T11:04:58.000Z | 2020-02-26T10:42:08.000Z | """input manatees: a list of "manatees", where one manatee is represented by a dictionary
a single manatee has properties like "name", "age", et cetera
n = the number of elements in "manatees"
m = the number of properties per "manatee" (i.e. the number of keys in a manatee dictionary)"""
# Efficiency: O(n)
def example... | 32.967742 | 95 | 0.657534 | 134 | 1,022 | 4.962687 | 0.373134 | 0.075188 | 0.049624 | 0.06015 | 0.084211 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017926 | 0.235812 | 1,022 | 31 | 96 | 32.967742 | 0.833547 | 0.069472 | 0 | 0.105263 | 0 | 0 | 0.066768 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.263158 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ee727f9a4edfd776db2f6156ac18429d56618c95 | 4,490 | py | Python | src/meltano/api/app.py | dotmesh-io/meltano | 4616d44ded9dff4e9ad19a9004349e9baa16ddd5 | [
"MIT"
] | 4 | 2019-12-01T12:47:58.000Z | 2021-02-09T00:42:52.000Z | src/meltano/api/app.py | dotmesh-io/meltano | 4616d44ded9dff4e9ad19a9004349e9baa16ddd5 | [
"MIT"
] | 38 | 2019-12-09T06:53:33.000Z | 2022-03-29T22:29:19.000Z | src/meltano/api/app.py | dotmesh-io/meltano | 4616d44ded9dff4e9ad19a9004349e9baa16ddd5 | [
"MIT"
] | 1 | 2020-11-23T20:47:18.000Z | 2020-11-23T20:47:18.000Z | import datetime
import logging
import logging.handlers
import os
import atexit
from flask import Flask, request, g
from flask_login import current_user
from flask_cors import CORS
from importlib import reload
from urllib.parse import urlsplit
import meltano
from meltano.core.project import Project
from meltano.core.tr... | 29.346405 | 81 | 0.704677 | 496 | 4,490 | 6.211694 | 0.328629 | 0.028562 | 0.038948 | 0.01493 | 0.042843 | 0.042843 | 0.042843 | 0.042843 | 0.042843 | 0 | 0 | 0.001971 | 0.208909 | 4,490 | 152 | 82 | 29.539474 | 0.865428 | 0.042539 | 0 | 0.054054 | 0 | 0 | 0.063899 | 0.024487 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027027 | false | 0.018018 | 0.315315 | 0 | 0.36036 | 0.072072 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ee782ef725478d903e728b0f667018c3fa8766e7 | 20,700 | py | Python | source/scripts/common/Utils.py | hjimmy/glustermg | e43ad5f17b248fa543f0b5d4204baca3c8b18aab | [
"MulanPSL-1.0"
] | null | null | null | source/scripts/common/Utils.py | hjimmy/glustermg | e43ad5f17b248fa543f0b5d4204baca3c8b18aab | [
"MulanPSL-1.0"
] | null | null | null | source/scripts/common/Utils.py | hjimmy/glustermg | e43ad5f17b248fa543f0b5d4204baca3c8b18aab | [
"MulanPSL-1.0"
] | null | null | null | # Copyright (C) 2011 Gluster, Inc. <http://www.gluster.com>
# This file is part of Gluster Management Gateway (GlusterMG).
#
# GlusterMG 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 version 3 of... | 32.394366 | 204 | 0.608454 | 2,437 | 20,700 | 5.127616 | 0.189167 | 0.015125 | 0.021287 | 0.020166 | 0.392125 | 0.354113 | 0.297215 | 0.285291 | 0.263604 | 0.232554 | 0 | 0.012664 | 0.259952 | 20,700 | 638 | 205 | 32.445141 | 0.803055 | 0.080483 | 0 | 0.405458 | 0 | 0.007797 | 0.131562 | 0.029464 | 0.001949 | 0 | 0 | 0 | 0 | 0 | null | null | 0.013645 | 0.023392 | 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 |
ee78cab8fb68e7a82e7fffa023da93ce159c8f3e | 1,243 | py | Python | mnd_utils/video.py | mnicolas94/python_utils | f9491fea3e73c94ef49b5bc844c39b2bc7be8318 | [
"MIT"
] | null | null | null | mnd_utils/video.py | mnicolas94/python_utils | f9491fea3e73c94ef49b5bc844c39b2bc7be8318 | [
"MIT"
] | null | null | null | mnd_utils/video.py | mnicolas94/python_utils | f9491fea3e73c94ef49b5bc844c39b2bc7be8318 | [
"MIT"
] | null | null | null | import cv2 as cv
import numpy as np
def generate_test_video(frames=1000):
"""
Generador de imágenes donde cada imagen tiene el índice de su posición dibujado en el centro
y codificado en el pixel superior izquierdo.
Para decodificar el índice se debe usar lo siguiente:
pixel = image[0][0]
indice = pixel[0]*25... | 30.317073 | 105 | 0.687852 | 212 | 1,243 | 3.95283 | 0.5 | 0.019093 | 0.02148 | 0.040573 | 0.121718 | 0.059666 | 0.059666 | 0.059666 | 0.059666 | 0 | 0 | 0.093842 | 0.176991 | 1,243 | 40 | 106 | 31.075 | 0.725318 | 0.32502 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0.033453 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.090909 | 0.045455 | 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 |
ee89247ec2812106f50e8a446f7d4f2d9336cff8 | 1,075 | py | Python | tests/test_hydrated_dataclass.py | Jasha10/hydra-zen | c229ab37f9ab6be4d1c64cabb646df99d0308027 | [
"MIT"
] | 65 | 2021-06-10T00:02:57.000Z | 2022-03-26T12:31:54.000Z | tests/test_hydrated_dataclass.py | Jasha10/hydra-zen | c229ab37f9ab6be4d1c64cabb646df99d0308027 | [
"MIT"
] | 60 | 2021-06-08T14:10:17.000Z | 2022-03-31T20:51:41.000Z | tests/test_hydrated_dataclass.py | Jasha10/hydra-zen | c229ab37f9ab6be4d1c64cabb646df99d0308027 | [
"MIT"
] | 2 | 2021-07-14T21:06:15.000Z | 2021-09-11T20:16:02.000Z | # Copyright (c) 2022 Massachusetts Institute of Technology
# SPDX-License-Identifier: MIT
from dataclasses import is_dataclass
import pytest
from hydra_zen import hydrated_dataclass, instantiate
def f1(x, y):
pass
def f2(x, y, z):
return x, y, z
@pytest.mark.parametrize("conf2_sig", [True, False])
@pyt... | 21.5 | 62 | 0.686512 | 146 | 1,075 | 4.89726 | 0.363014 | 0.118881 | 0.071329 | 0.030769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.049354 | 0.208372 | 1,075 | 49 | 63 | 21.938776 | 0.790834 | 0.07907 | 0 | 0.064516 | 0 | 0 | 0.018237 | 0 | 0 | 0 | 0 | 0 | 0.258065 | 1 | 0.129032 | false | 0.032258 | 0.096774 | 0.032258 | 0.516129 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
ee9001145ae40affeb5a0f87d550d8ea5a52ee78 | 1,526 | py | Python | data_processing/download_data.py | HusseinLezzaik/Stock-Market-Prediction | 03f6b835466ebee9d4ee5ad217c4ed5c57b60a30 | [
"MIT"
] | null | null | null | data_processing/download_data.py | HusseinLezzaik/Stock-Market-Prediction | 03f6b835466ebee9d4ee5ad217c4ed5c57b60a30 | [
"MIT"
] | null | null | null | data_processing/download_data.py | HusseinLezzaik/Stock-Market-Prediction | 03f6b835466ebee9d4ee5ad217c4ed5c57b60a30 | [
"MIT"
] | null | null | null | import yahoo_fin.stock_info as si
import pandas as pd
import os
def download_data(etfs, time_frames):
# 获取数据并存储
if not os.path.exists('./Data'):
os.makedirs('./Data')
if not os.path.exists('./Data/rawdata'):
os.makedirs('./Data/rawdata')
for ticker in etfs:
for interval in time... | 35.488372 | 89 | 0.539974 | 159 | 1,526 | 5.044025 | 0.421384 | 0.261845 | 0.093516 | 0.112219 | 0.351621 | 0.351621 | 0.299252 | 0.299252 | 0.299252 | 0.299252 | 0 | 0.007042 | 0.348624 | 1,526 | 43 | 89 | 35.488372 | 0.799799 | 0.068152 | 0 | 0.3 | 0 | 0 | 0.081921 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0 | 0.1 | 0 | 0.133333 | 0.033333 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c98aa4f7ed8a5b97ac39613aa73b2d33d7fcd243 | 4,962 | py | Python | 2016/python/day22.py | astonshane/AdventOfCode | 25c7380e73eede3f79287de6a9dedc8314ab7965 | [
"MIT"
] | null | null | null | 2016/python/day22.py | astonshane/AdventOfCode | 25c7380e73eede3f79287de6a9dedc8314ab7965 | [
"MIT"
] | null | null | null | 2016/python/day22.py | astonshane/AdventOfCode | 25c7380e73eede3f79287de6a9dedc8314ab7965 | [
"MIT"
] | null | null | null | import re
import copy
import hashlib
class Node:
def __init__(self, line):
m = re.match(r"\/dev\/grid\/node-x(\d+)-y(\d+)\s+(\d+)T\s+(\d+)T\s+(\d+)T\s+(\d+)%", line)
if m is None:
self.valid = False
return
self.valid = True
self.x = int(m.group(1))
s... | 26.677419 | 98 | 0.414349 | 593 | 4,962 | 3.369309 | 0.212479 | 0.045045 | 0.042042 | 0.006006 | 0.077578 | 0.077578 | 0.05956 | 0.032533 | 0.027027 | 0.027027 | 0 | 0.016709 | 0.445183 | 4,962 | 186 | 99 | 26.677419 | 0.709045 | 0.035873 | 0 | 0.173611 | 0 | 0.006944 | 0.058577 | 0.032218 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.020833 | null | null | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c9954ca69e09619ef1665a4df64483f61ffee3c4 | 1,253 | py | Python | janggi/utils.py | sungho-cho/pyjanggi | cecaaa8f30fb2c2c319bab28197c786576cfe92d | [
"MIT"
] | 1 | 2020-09-23T09:40:59.000Z | 2020-09-23T09:40:59.000Z | janggi/utils.py | sungho-cho/pyjanggi | cecaaa8f30fb2c2c319bab28197c786576cfe92d | [
"MIT"
] | null | null | null | janggi/utils.py | sungho-cho/pyjanggi | cecaaa8f30fb2c2c319bab28197c786576cfe92d | [
"MIT"
] | null | null | null | import logging
import random
from .base.camp import Camp
from .base.formation import Formation
from .game.janggi_game import JanggiGame
from .game.game_log import GameLog
from .ui.game_player import GamePlayer
from .ui.replay_viewer import ReplayViewer
from .proto import log_pb2
logging.basicConfig()
logging.root.set... | 25.571429 | 62 | 0.710295 | 171 | 1,253 | 5.05848 | 0.333333 | 0.03237 | 0.016185 | 0.071676 | 0.076301 | 0.076301 | 0 | 0 | 0 | 0 | 0 | 0.007859 | 0.18755 | 1,253 | 48 | 63 | 26.104167 | 0.841847 | 0.197925 | 0 | 0 | 0 | 0 | 0.002099 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 0.481481 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
c9ab86e75a48317e7194cbc265fb079c04b726b2 | 2,224 | py | Python | ooobuild/lo/document/x_view_data_supplier.py | Amourspirit/ooo_uno_tmpl | 64e0c86fd68f24794acc22d63d8d32ae05dd12b8 | [
"Apache-2.0"
] | null | null | null | ooobuild/lo/document/x_view_data_supplier.py | Amourspirit/ooo_uno_tmpl | 64e0c86fd68f24794acc22d63d8d32ae05dd12b8 | [
"Apache-2.0"
] | null | null | null | ooobuild/lo/document/x_view_data_supplier.py | Amourspirit/ooo_uno_tmpl | 64e0c86fd68f24794acc22d63d8d32ae05dd12b8 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
#
# Copyright 2022 :Barry-Thomas-Paul: Moss
#
# 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 applicab... | 41.185185 | 341 | 0.747752 | 306 | 2,224 | 5.294118 | 0.562092 | 0.037037 | 0.030864 | 0.044444 | 0.062346 | 0.062346 | 0 | 0 | 0 | 0 | 0 | 0.025247 | 0.180755 | 2,224 | 53 | 342 | 41.962264 | 0.863886 | 0.629047 | 0 | 0.133333 | 0 | 0 | 0.229711 | 0.193948 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.266667 | 0 | 0.733333 | 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 |
c9ab9f36bed5aec87ea9576f35b5c24866acecd2 | 634 | py | Python | pyflarum/client/extensions/flarum/FoF_PreventNecrobumping.py | CWKevo/pyflarum | bdf162a6c94e3051843ec7299a4302054927498a | [
"MIT"
] | 9 | 2021-06-23T21:26:29.000Z | 2021-11-16T13:25:34.000Z | pyflarum/client/extensions/flarum/FoF_PreventNecrobumping.py | CWKevo/pyflarum | bdf162a6c94e3051843ec7299a4302054927498a | [
"MIT"
] | 3 | 2021-09-11T00:08:14.000Z | 2022-02-07T15:34:27.000Z | pyflarum/client/extensions/flarum/FoF_PreventNecrobumping.py | CWKevo/pyFlarum | 2c4e17a16b00367f140c3436f7a9148072ddd2d3 | [
"MIT"
] | 1 | 2021-08-18T12:45:14.000Z | 2021-08-18T12:45:14.000Z | import typing as t
from ....extensions import ExtensionMixin
from ...flarum.core.discussions import DiscussionFromBulk
class PreventNecrobumpingDiscussionMixin(DiscussionFromBulk):
@property
def fof_prevent_necrobumping(self) -> t.Optional[int]:
"""
I have no idea what this does either, ... | 23.481481 | 77 | 0.712934 | 59 | 634 | 7.627119 | 0.694915 | 0.126667 | 0.097778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.195584 | 634 | 26 | 78 | 24.384615 | 0.882353 | 0.069401 | 0 | 0 | 0 | 0 | 0.08363 | 0.042705 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.230769 | 0 | 0.769231 | 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 |
c9ad6518f65c2c95cc6e2e31c3f0906ae816c864 | 1,147 | py | Python | Interview Questions/readmail.py | Shivams9/pythoncodecamp | e6cd27f4704a407ee360414a8c9236b254117a59 | [
"MIT"
] | 6 | 2021-08-04T08:15:22.000Z | 2022-02-02T11:15:56.000Z | Interview Questions/readmail.py | Shivams9/pythoncodecamp | e6cd27f4704a407ee360414a8c9236b254117a59 | [
"MIT"
] | 14 | 2021-08-02T06:28:00.000Z | 2022-03-25T10:44:15.000Z | Interview Questions/readmail.py | Shivams9/pythoncodecamp | e6cd27f4704a407ee360414a8c9236b254117a59 | [
"MIT"
] | 6 | 2021-07-16T04:56:41.000Z | 2022-02-16T04:40:06.000Z | # Importing libraries
import imaplib, email
user = 'vsjtestmail@gmail.com'
password = 'TestMa1lPass'
imap_url = 'imap.gmail.com'
# Function to get email content part i.e its body part
def get_body(msg):
if msg.is_multipart():
return get_body(msg.get_payload(0))
else:
return msg.get_payload(None, True)
# Functi... | 24.934783 | 65 | 0.727114 | 186 | 1,147 | 4.419355 | 0.494624 | 0.038929 | 0.03163 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008256 | 0.155187 | 1,147 | 45 | 66 | 25.488889 | 0.840041 | 0.37925 | 0 | 0 | 0 | 0 | 0.129815 | 0.062767 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12 | false | 0.08 | 0.04 | 0 | 0.32 | 0.12 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c9af8bee70751d27aa98a3e3c87e41286832285c | 522 | py | Python | config.py | navidsalehi/blockchain | 0add1e6e4898097360cafd006e391d1b8735da08 | [
"MIT"
] | 2 | 2021-11-30T05:16:39.000Z | 2021-12-01T10:13:29.000Z | config.py | navidsalehi/blockchain | 0add1e6e4898097360cafd006e391d1b8735da08 | [
"MIT"
] | null | null | null | config.py | navidsalehi/blockchain | 0add1e6e4898097360cafd006e391d1b8735da08 | [
"MIT"
] | null | null | null | from dataclasses import dataclass
@dataclass
class Config:
"""Blockchain configs"""
# persistence configs
BLOCKS_FILE_NAME = "data/blocks.json"
MEMPOOL_FILE_NAME = "data/mempool.json"
WALLET_BALANCE_FILE_NAME = "data/balance.json"
SEED_WORDS_FILE_NAME = "data/seed_word_list.txt"
NODE_LIST... | 26.1 | 52 | 0.731801 | 66 | 522 | 5.454545 | 0.5 | 0.111111 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011737 | 0.183908 | 522 | 19 | 53 | 27.473684 | 0.833333 | 0.113027 | 0 | 0 | 0 | 0 | 0.260965 | 0.050439 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.916667 | 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 |
c9bfafc48a06f70a20cac8ad26dc2486eeccba0a | 4,354 | py | Python | MSspeechAPI_class.py | houhry/AutosubBehindWall | 3903ee457d90c31db9a39957ad06468d556023ee | [
"MIT"
] | 14 | 2019-03-14T03:12:25.000Z | 2020-12-23T14:28:05.000Z | MSspeechAPI_class.py | houhry/AutosubBehindWall | 3903ee457d90c31db9a39957ad06468d556023ee | [
"MIT"
] | null | null | null | MSspeechAPI_class.py | houhry/AutosubBehindWall | 3903ee457d90c31db9a39957ad06468d556023ee | [
"MIT"
] | 6 | 2019-03-12T03:46:14.000Z | 2021-12-11T13:55:47.000Z | # -*- coding:utf-8 -*-
import certifi
import pycurl
import requests
import os
import json
import uuid
from StringIO import StringIO
def byteify(input_data):
# convert json to list
if isinstance(input_data, dict):
return {byteify(key): byteify(value) for key, value in input_data.iteritems(... | 36.588235 | 124 | 0.589113 | 477 | 4,354 | 5.197065 | 0.392034 | 0.056474 | 0.02259 | 0.018556 | 0.046793 | 0.025817 | 0.025817 | 0 | 0 | 0 | 0 | 0.008886 | 0.276298 | 4,354 | 119 | 125 | 36.588235 | 0.777848 | 0.103124 | 0 | 0.044944 | 0 | 0 | 0.145662 | 0.029451 | 0.011236 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.078652 | null | null | 0.05618 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c9c3b89ba882bb0aa6a88e4ec97e3255252d24db | 1,565 | py | Python | projects/gettingStarted/CannyStill.py | lucasbrsa/OpenCV3.2 | b6db40bd43dce7847dce1a808fd29bb1b140dea3 | [
"MIT"
] | null | null | null | projects/gettingStarted/CannyStill.py | lucasbrsa/OpenCV3.2 | b6db40bd43dce7847dce1a808fd29bb1b140dea3 | [
"MIT"
] | null | null | null | projects/gettingStarted/CannyStill.py | lucasbrsa/OpenCV3.2 | b6db40bd43dce7847dce1a808fd29bb1b140dea3 | [
"MIT"
] | null | null | null | # CannyStill.py
import cv2
import numpy as np
import os
###################################################################################################
def main():
imgOriginal = cv2.imread("image.jpg") # open image
if imgOriginal is None: # if image was not read ... | 42.297297 | 124 | 0.502236 | 149 | 1,565 | 5.187919 | 0.577181 | 0.054334 | 0.043984 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022161 | 0.307987 | 1,565 | 36 | 125 | 43.472222 | 0.691597 | 0.253674 | 0 | 0.095238 | 0 | 0 | 0.100524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.142857 | null | null | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c9c4069353131d5a64d6da6f767d0fbe4eba61e3 | 212 | py | Python | examples/timeseries_from_dataframe.py | yarikoptic/seaborn | ed4baa32267cc4a44abb40dc243ae75a1d180e85 | [
"MIT",
"BSD-3-Clause"
] | 3 | 2016-01-25T16:54:25.000Z | 2020-05-01T15:15:30.000Z | examples/timeseries_from_dataframe.py | PureW/seaborn | f400d86002c6d4b2d67eb9740adad908e84f8328 | [
"MIT",
"BSD-3-Clause"
] | 1 | 2021-06-23T16:40:53.000Z | 2021-06-23T16:40:53.000Z | examples/timeseries_from_dataframe.py | PureW/seaborn | f400d86002c6d4b2d67eb9740adad908e84f8328 | [
"MIT",
"BSD-3-Clause"
] | 2 | 2019-04-02T19:52:25.000Z | 2021-07-06T21:17:27.000Z | """
Timeseries from DataFrame
=========================
"""
import seaborn as sns
sns.set(style="darkgrid")
gammas = sns.load_dataset("gammas")
sns.tsplot(gammas, "timepoint", "subject", "ROI", "BOLD signal")
| 17.666667 | 64 | 0.617925 | 24 | 212 | 5.416667 | 0.791667 | 0.138462 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108491 | 212 | 11 | 65 | 19.272727 | 0.687831 | 0.240566 | 0 | 0 | 0 | 0 | 0.289474 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 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 |
c9c71fc7edb4fb9a65e3ae3dd552c204669f2537 | 533 | py | Python | bc/ed/definition.py | ajah/represent-canada-data | f79092442767faa0b4babe50a377408e8576c8c4 | [
"OML"
] | null | null | null | bc/ed/definition.py | ajah/represent-canada-data | f79092442767faa0b4babe50a377408e8576c8c4 | [
"OML"
] | null | null | null | bc/ed/definition.py | ajah/represent-canada-data | f79092442767faa0b4babe50a377408e8576c8c4 | [
"OML"
] | null | null | null | from datetime import date
import boundaries
boundaries.register('British Columbia electoral districts',
domain='British Columbia',
last_updated=date(2011, 12, 12),
name_func=boundaries.attr('edname'),
id_func=boundaries.attr('edabbr'),
authority='Elections BC',
source_url='http://www.elections... | 38.071429 | 140 | 0.744841 | 72 | 533 | 5.430556 | 0.708333 | 0.084399 | 0.092072 | 0.097187 | 0.117647 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0.039832 | 0.105066 | 533 | 14 | 141 | 38.071429 | 0.779874 | 0 | 0 | 0 | 0 | 0.166667 | 0.507491 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c9cb7becdd0922382057eaf8cf2a26ecd9e3c101 | 747 | py | Python | setup.py | Coldwave96/PocLibrary | 4bdc069c257f441379e9fd428ac8df7d4f5e9ca9 | [
"Apache-2.0"
] | 11 | 2020-08-24T03:31:23.000Z | 2022-01-15T12:19:31.000Z | setup.py | Coldwave96/PocLibrary | 4bdc069c257f441379e9fd428ac8df7d4f5e9ca9 | [
"Apache-2.0"
] | null | null | null | setup.py | Coldwave96/PocLibrary | 4bdc069c257f441379e9fd428ac8df7d4f5e9ca9 | [
"Apache-2.0"
] | 3 | 2020-08-24T03:31:28.000Z | 2021-09-19T14:54:46.000Z | """
This is a setup.py script generated by py2applet
Usage:
python setup.py py2app
"""
from setuptools import setup
APP = ['PocLibrary.py']
APP_NAME = "PocLibrary"
DATA_FILES = []
OPTIONS = {
'iconfile': 'logo.icns',
'plist': {
'CFBundleName': APP_NAME,
'CFBundleDisplayName': APP_NAME,
... | 21.970588 | 86 | 0.631861 | 77 | 747 | 6.038961 | 0.636364 | 0.060215 | 0.068817 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020619 | 0.220884 | 747 | 33 | 87 | 22.636364 | 0.776632 | 0.111111 | 0 | 0 | 1 | 0 | 0.429878 | 0.108232 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.041667 | 0 | 0.041667 | 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 |
c9d4af05e2b5e939ee1aea3341e906f371d84c8b | 12,560 | py | Python | tests/test_apsw.py | hideaki-t/sqlite-fts-python | 2afdc4ad6d3d7856d801bd3f9106160825f49d00 | [
"MIT"
] | 35 | 2015-05-06T13:37:02.000Z | 2022-01-06T02:52:49.000Z | tests/test_apsw.py | polyrand/sqlite-fts-python | 2afdc4ad6d3d7856d801bd3f9106160825f49d00 | [
"MIT"
] | 18 | 2015-11-21T19:00:57.000Z | 2021-12-31T12:41:08.000Z | tests/test_apsw.py | polyrand/sqlite-fts-python | 2afdc4ad6d3d7856d801bd3f9106160825f49d00 | [
"MIT"
] | 11 | 2015-01-12T12:20:29.000Z | 2021-04-07T21:43:48.000Z | # coding: utf-8
from __future__ import print_function, unicode_literals
import re
import pytest
import sqlitefts as fts
from sqlitefts import fts5, fts5_aux
apsw = pytest.importorskip("apsw")
class SimpleTokenizer(fts.Tokenizer):
_p = re.compile(r"\w+", re.UNICODE)
def tokenize(self, text):
for m... | 34.31694 | 143 | 0.525398 | 1,516 | 12,560 | 4.317282 | 0.145778 | 0.065241 | 0.124064 | 0.1589 | 0.717494 | 0.694576 | 0.662338 | 0.65806 | 0.652712 | 0.645378 | 0 | 0.016123 | 0.328424 | 12,560 | 365 | 144 | 34.410959 | 0.75981 | 0.001035 | 0 | 0.528529 | 0 | 0.003003 | 0.279012 | 0 | 0 | 0 | 0 | 0 | 0.159159 | 1 | 0.027027 | false | 0 | 0.018018 | 0 | 0.057057 | 0.003003 | 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 |
c9d97586e443bc62d5fe8b8784de68a2c4bfe273 | 536 | py | Python | Session1_2018/Practice/karatsuba_multiplication.py | vedantc6/LCode | 43aec4da9cc22ef43e877a16dbee380b98d9089f | [
"MIT"
] | 1 | 2018-09-21T10:51:15.000Z | 2018-09-21T10:51:15.000Z | Session1_2018/Practice/karatsuba_multiplication.py | vedantc6/LCode | 43aec4da9cc22ef43e877a16dbee380b98d9089f | [
"MIT"
] | null | null | null | Session1_2018/Practice/karatsuba_multiplication.py | vedantc6/LCode | 43aec4da9cc22ef43e877a16dbee380b98d9089f | [
"MIT"
] | null | null | null | from math import ceil, floor
def k_multiply(a, b):
if len(str(a)) == 1 or len(str(b)) == 1:
return int(a)*int(b)
n = max(len(str(a)), len(str(b)))
al = a // 10**(n//2)
ar = a % 10**(n//2)
bl = b // 10**(n//2)
br = b % 10**(n//2)
p1 = k_multiply(al, bl)
p2 = k_multiply(ar, br)
... | 26.8 | 59 | 0.507463 | 101 | 536 | 2.544554 | 0.356436 | 0.245136 | 0.077821 | 0.038911 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108586 | 0.261194 | 536 | 19 | 60 | 28.210526 | 0.540404 | 0 | 0 | 0 | 0 | 0 | 0.014925 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.058824 | 0 | 0.235294 | 0.176471 | 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 |
c9dcd26ab8ee7882eebaee13880a0044570deca1 | 787 | py | Python | tests/conftest.py | m-schmoock/lightning | 5ffc516133d07aa653c680cf96d5316a614dbc1f | [
"MIT"
] | 1 | 2021-01-20T05:46:35.000Z | 2021-01-20T05:46:35.000Z | tests/conftest.py | m-schmoock/lightning | 5ffc516133d07aa653c680cf96d5316a614dbc1f | [
"MIT"
] | 5 | 2020-12-16T13:44:59.000Z | 2021-06-06T06:11:12.000Z | tests/conftest.py | m-schmoock/lightning | 5ffc516133d07aa653c680cf96d5316a614dbc1f | [
"MIT"
] | 7 | 2019-10-07T23:53:49.000Z | 2021-11-23T18:26:30.000Z | import pytest
# This function is based upon the example of how to
# "[make] test result information available in fixtures" at:
# https://pytest.org/latest/example/simple.html#making-test-result-information-available-in-fixtures
# and:
# https://github.com/pytest-dev/pytest/issues/288
@pytest.hookimpl(tryfirst=True,... | 32.791667 | 101 | 0.707751 | 109 | 787 | 5.045872 | 0.706422 | 0.036364 | 0.076364 | 0.109091 | 0.145455 | 0.145455 | 0 | 0 | 0 | 0 | 0 | 0.00468 | 0.185515 | 787 | 23 | 102 | 34.217391 | 0.853354 | 0.512071 | 0 | 0 | 0 | 0 | 0.15508 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c9e0e47d0408e03065a4fc6bb39fcef4c8c2b570 | 403 | py | Python | portal/migrations/0017_remove_professor_nome_abreviado.py | leodiasp/abcmobile | 470966239230becc1d52cbd7c2794d9572915dfd | [
"MIT"
] | null | null | null | portal/migrations/0017_remove_professor_nome_abreviado.py | leodiasp/abcmobile | 470966239230becc1d52cbd7c2794d9572915dfd | [
"MIT"
] | null | null | null | portal/migrations/0017_remove_professor_nome_abreviado.py | leodiasp/abcmobile | 470966239230becc1d52cbd7c2794d9572915dfd | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2019-02-13 18:49
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('portal', '0016_auto_20190213_1645'),
]
operations = [
migrations.RemoveField(
... | 20.15 | 48 | 0.622829 | 44 | 403 | 5.477273 | 0.840909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 0.263027 | 403 | 19 | 49 | 21.210526 | 0.700337 | 0.168734 | 0 | 0 | 1 | 0 | 0.156627 | 0.069277 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c9eb836d5b59ca6961666fd615625d09250cf88f | 42,230 | py | Python | bin/toldiff.py | comscope/comsuite | d51c43cad0d15dc3b4d1f45e7df777cdddaa9d6c | [
"BSD-3-Clause"
] | 18 | 2019-06-15T18:08:21.000Z | 2022-01-30T05:01:29.000Z | bin/toldiff.py | comscope/Comsuite | b80ca9f34c519757d337487c489fb655f7598cc2 | [
"BSD-3-Clause"
] | null | null | null | bin/toldiff.py | comscope/Comsuite | b80ca9f34c519757d337487c489fb655f7598cc2 | [
"BSD-3-Clause"
] | 11 | 2019-06-05T02:57:55.000Z | 2021-12-29T02:54:25.000Z | #!/usr/bin/env python
#
# Copyright (C) 2006 Huub van Dam, Science and Technology Facilities Council,
# Daresbury Laboratory.
# All rights reserved.
#
# Developed by: Huub van Dam
# Science and Technology Facilities Council
# Daresbury Laboratory
# C... | 36.499568 | 175 | 0.673336 | 6,076 | 42,230 | 4.599737 | 0.128045 | 0.01102 | 0.017318 | 0.013418 | 0.502934 | 0.45667 | 0.412731 | 0.392515 | 0.363461 | 0.350365 | 0 | 0.011275 | 0.241795 | 42,230 | 1,156 | 176 | 36.531142 | 0.861582 | 0.108288 | 0 | 0.378121 | 0 | 0 | 0.49237 | 0.004188 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.029727 | 0.011891 | null | null | 0.001189 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c9ee06d94f8d8d17974a31803833016ac95dc1d7 | 1,968 | py | Python | test/test_a69DisjointProperties.py | IDLabResearch/lovstats | dd33183574eed692ee89059ff3c6494160dfb8a9 | [
"MIT"
] | 1 | 2018-12-11T13:57:38.000Z | 2018-12-11T13:57:38.000Z | test/test_a69DisjointProperties.py | IDLabResearch/lovstats | dd33183574eed692ee89059ff3c6494160dfb8a9 | [
"MIT"
] | null | null | null | test/test_a69DisjointProperties.py | IDLabResearch/lovstats | dd33183574eed692ee89059ff3c6494160dfb8a9 | [
"MIT"
] | null | null | null | import unittest
import sys
import helpers
sys.path.append('../LODStats')
sys.path.append('../src/restriction-types-stats')
from A69DisjointProperties import A69DisjointProperties
import lodstats
from lodstats import RDFStats
testfile_path = helpers.resources_path
class TestA69DisjointProperties(unittest.TestCase):
... | 41.87234 | 113 | 0.701728 | 202 | 1,968 | 6.663366 | 0.237624 | 0.053492 | 0.040862 | 0.070579 | 0.661218 | 0.661218 | 0.661218 | 0.661218 | 0.661218 | 0.661218 | 0 | 0.022561 | 0.166667 | 1,968 | 47 | 114 | 41.87234 | 0.798171 | 0 | 0 | 0.394737 | 0 | 0 | 0.189436 | 0.135094 | 0 | 0 | 0 | 0 | 0.131579 | 1 | 0.157895 | false | 0 | 0.157895 | 0 | 0.342105 | 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 |
c9ffdbe67a40939dca316bf68000c8d9a8156ccf | 1,477 | py | Python | overlord/views.py | kimani-njoroge/Uber_Clone | 610a242c75e2873897f8dc9458371c32e52d11ef | [
"MIT"
] | null | null | null | overlord/views.py | kimani-njoroge/Uber_Clone | 610a242c75e2873897f8dc9458371c32e52d11ef | [
"MIT"
] | 4 | 2020-06-05T18:47:50.000Z | 2021-09-08T00:00:03.000Z | overlord/views.py | kimani-njoroge/Uber_Clone | 610a242c75e2873897f8dc9458371c32e52d11ef | [
"MIT"
] | null | null | null | from django.contrib.auth.decorators import login_required
from django.shortcuts import render, redirect
from django.contrib.auth import get_user_model
from .forms import DriverSignupForm, RiderSignupForm
from driver.models import Driver
User = get_user_model()
# Create your views here.
def index(request):
return ... | 30.142857 | 92 | 0.65606 | 172 | 1,477 | 5.517442 | 0.284884 | 0.037935 | 0.080084 | 0.097998 | 0.381454 | 0.303477 | 0.240253 | 0.164384 | 0.164384 | 0.164384 | 0 | 0 | 0.234936 | 1,477 | 49 | 92 | 30.142857 | 0.839823 | 0.025728 | 0 | 0.358974 | 0 | 0 | 0.08977 | 0.06263 | 0 | 0 | 0 | 0 | 0 | 1 | 0.102564 | false | 0.051282 | 0.128205 | 0.025641 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
a005c8c77f2a7cfe589eb886411a380fd3864a2b | 4,124 | py | Python | swhlab/analysis/glance.py | swharden/SWHLab | a86c3c65323cec809a4bd4f81919644927094bf5 | [
"MIT"
] | 15 | 2017-03-09T03:08:32.000Z | 2021-11-16T11:31:55.000Z | swhlab/analysis/glance.py | swharden/SWHLab | a86c3c65323cec809a4bd4f81919644927094bf5 | [
"MIT"
] | 2 | 2016-12-06T16:27:54.000Z | 2017-11-04T23:48:49.000Z | swhlab/analysis/glance.py | swharden/SWHLab | a86c3c65323cec809a4bd4f81919644927094bf5 | [
"MIT"
] | 9 | 2016-10-19T13:32:10.000Z | 2020-04-01T21:53:40.000Z | """Methods to generate a SINGLE image to represent any ABF.
There are several categories which are grossly analyzed.
gain function:
* current clamp recording where command traces differ by sweep.
* must also have something that looks like an action potential
* will be analyzed with AP detection information... | 35.247863 | 92 | 0.626576 | 566 | 4,124 | 4.514134 | 0.385159 | 0.039139 | 0.023483 | 0.016438 | 0.16908 | 0.138552 | 0.138552 | 0.138552 | 0.069667 | 0.069667 | 0 | 0.018301 | 0.258002 | 4,124 | 117 | 93 | 35.247863 | 0.816667 | 0.319835 | 0 | 0.25641 | 1 | 0 | 0.060771 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051282 | false | 0 | 0.064103 | 0 | 0.166667 | 0.051282 | 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 |
a00c8ca9d15e99fb1ab604b2860c37b77ff6ba5e | 602 | py | Python | cursoemvideopython/desafio_035.py | edmilsonlibanio/Ola-Mundo-Python | 33fb08da5878f2784983c623df04d2bbdfb30f25 | [
"MIT"
] | null | null | null | cursoemvideopython/desafio_035.py | edmilsonlibanio/Ola-Mundo-Python | 33fb08da5878f2784983c623df04d2bbdfb30f25 | [
"MIT"
] | null | null | null | cursoemvideopython/desafio_035.py | edmilsonlibanio/Ola-Mundo-Python | 33fb08da5878f2784983c623df04d2bbdfb30f25 | [
"MIT"
] | null | null | null | # Desenvolva um programa que leia o comprimento de três retas e diga ao usuário se elas podem ou não formar um triângulo (pesquisar o princípio matemático que explica a formação de um triangulo).
r1 = float(input('Informe o comprimento da primeira reta: '))
r2 = float(input('Informe o comprimento da segunda reta: '))
... | 54.727273 | 195 | 0.709302 | 102 | 602 | 4.186275 | 0.470588 | 0.112412 | 0.119438 | 0.126464 | 0.456674 | 0.456674 | 0.103045 | 0.103045 | 0 | 0 | 0 | 0.036961 | 0.19103 | 602 | 10 | 196 | 60.2 | 0.839836 | 0.320598 | 0 | 0 | 0 | 0 | 0.616708 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.285714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a00ec424e1b91d1ccc45e241094dd421a5923bf0 | 430 | py | Python | codewars/tour.py | Imbafar/Codewars_solutions | 1b1bb2ba59bcea0d609e97df00b0fd14a61771ca | [
"BSD-3-Clause"
] | null | null | null | codewars/tour.py | Imbafar/Codewars_solutions | 1b1bb2ba59bcea0d609e97df00b0fd14a61771ca | [
"BSD-3-Clause"
] | null | null | null | codewars/tour.py | Imbafar/Codewars_solutions | 1b1bb2ba59bcea0d609e97df00b0fd14a61771ca | [
"BSD-3-Clause"
] | null | null | null | # https://www.codewars.com/kata/5536a85b6ed4ee5a78000035
import math
def tour(friends, friend_towns, home_to_town_distances):
arr = []
for a in friends:
for b in friend_towns:
if a in b:
arr.append(home_to_town_distances[b[-1]])
dist = arr[0] + arr[-1]
i = 1
whi... | 25.294118 | 57 | 0.562791 | 65 | 430 | 3.6 | 0.523077 | 0.025641 | 0.08547 | 0.162393 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 0.302326 | 430 | 16 | 58 | 26.875 | 0.696667 | 0.125581 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.076923 | 0 | 0.230769 | 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 |
a0108081c8dab4089a37cbfc386521591e071aeb | 4,088 | py | Python | acos_client/v30/glm/license.py | hthompson-a10/acos-client | d480a4f239ae824c9dc9ea49a94b84a5bd9d33f8 | [
"Apache-2.0"
] | 33 | 2015-02-11T16:42:04.000Z | 2021-08-24T16:06:23.000Z | acos_client/v30/glm/license.py | hthompson-a10/acos-client | d480a4f239ae824c9dc9ea49a94b84a5bd9d33f8 | [
"Apache-2.0"
] | 154 | 2015-01-12T18:46:28.000Z | 2022-01-22T13:59:48.000Z | acos_client/v30/glm/license.py | hthompson-a10/acos-client | d480a4f239ae824c9dc9ea49a94b84a5bd9d33f8 | [
"Apache-2.0"
] | 68 | 2015-01-12T22:29:57.000Z | 2021-07-13T07:21:05.000Z | # Copyright (C) 2021, A10 Networks Inc. All rights reserved.
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requi... | 36.176991 | 84 | 0.604452 | 470 | 4,088 | 5.051064 | 0.287234 | 0.037911 | 0.084246 | 0.060657 | 0.322662 | 0.303286 | 0.278854 | 0.204718 | 0.1369 | 0.1369 | 0 | 0.005944 | 0.300391 | 4,088 | 112 | 85 | 36.5 | 0.824126 | 0.148728 | 0 | 0.233766 | 0 | 0 | 0.133833 | 0.014133 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0.051948 | 0.025974 | 0.012987 | 0.246753 | 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 |
a0114944e8b3edca3a0286ac5a5fb5a714ad3f65 | 310 | py | Python | engine/gamestate.py | Yooooomi/py-drives | 6a9dd1a1684b1b65ab553d91eebc77fe099301e7 | [
"MIT"
] | null | null | null | engine/gamestate.py | Yooooomi/py-drives | 6a9dd1a1684b1b65ab553d91eebc77fe099301e7 | [
"MIT"
] | null | null | null | engine/gamestate.py | Yooooomi/py-drives | 6a9dd1a1684b1b65ab553d91eebc77fe099301e7 | [
"MIT"
] | null | null | null | from engine.gameobject import Gameobject
objects = []
def create(obj: Gameobject):
objects.append(obj)
obj.start()
def delete(obj: Gameobject):
for child in obj.children:
delete(child)
obj.end()
objects.remove(obj)
def find(typ):
for o in objects:
if isinstance(o, typ):
return o
| 16.315789 | 40 | 0.680645 | 44 | 310 | 4.795455 | 0.522727 | 0.161137 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.203226 | 310 | 18 | 41 | 17.222222 | 0.854251 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.071429 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a016b1851ba12bcb3c409fda497f638b8a707e19 | 953 | py | Python | sdk-py/update_user_attributes.py | kg0r0/cognito-examples | 54b7a68a9113b231ead99fa4f531d46243e04566 | [
"MIT"
] | null | null | null | sdk-py/update_user_attributes.py | kg0r0/cognito-examples | 54b7a68a9113b231ead99fa4f531d46243e04566 | [
"MIT"
] | null | null | null | sdk-py/update_user_attributes.py | kg0r0/cognito-examples | 54b7a68a9113b231ead99fa4f531d46243e04566 | [
"MIT"
] | null | null | null | import os
import boto3
from getpass import getpass
from dotenv import load_dotenv
dotenv_path = os.path.join(os.path.dirname(__file__), ".env")
load_dotenv(dotenv_path)
client = boto3.client("cognito-idp", region_name=os.getenv("REGION_NAME"))
username = input("[*] Enter Your Email Address: ")
password = getpass("[*]... | 27.228571 | 74 | 0.704092 | 107 | 953 | 6.065421 | 0.429907 | 0.046225 | 0.049307 | 0.061633 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0025 | 0.160546 | 953 | 34 | 75 | 28.029412 | 0.80875 | 0 | 0 | 0 | 0 | 0 | 0.268625 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.142857 | 0.142857 | 0 | 0.142857 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
a01f36af66f5f536cdcfeccc977f7396f86e0837 | 15,082 | py | Python | home/.local/share/tkthemes/clearlooks/create_imgs.py | ssokolow/profile | 09f2a842077909d883a08b546659516deec7d719 | [
"MIT"
] | 9 | 2015-04-14T22:27:40.000Z | 2022-02-23T05:33:00.000Z | home/.local/share/tkthemes/clearlooks/create_imgs.py | ssokolow/profile | 09f2a842077909d883a08b546659516deec7d719 | [
"MIT"
] | 10 | 2018-06-18T07:57:56.000Z | 2021-10-04T06:47:19.000Z | home/.local/share/tkthemes/clearlooks/create_imgs.py | ssokolow/profile | 09f2a842077909d883a08b546659516deec7d719 | [
"MIT"
] | 9 | 2015-04-14T22:27:42.000Z | 2017-11-21T11:34:23.000Z | #!/usr/bin/env python
# -*- mode: python; coding: koi8-r; -*-
import os
import gtk, gobject
imdir = 'images'
imtype = 'png'
background = '#efebe7'
#fill_color = 0xff000000 # red
fill_color = int('ff000000', 16)
if not os.path.exists(imdir):
os.mkdir(imdir)
gc = None
def draw_rect():
global ... | 34.045147 | 79 | 0.579631 | 2,060 | 15,082 | 4.058738 | 0.118447 | 0.066978 | 0.053104 | 0.036598 | 0.631743 | 0.601244 | 0.560698 | 0.435474 | 0.347327 | 0.319101 | 0 | 0.022 | 0.282721 | 15,082 | 442 | 80 | 34.122172 | 0.750878 | 0.079698 | 0 | 0.345679 | 0 | 0 | 0.071382 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.006173 | null | null | 0.009259 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a01fef4f0de34d121af8b1cbdb955d6acb92f36a | 4,687 | py | Python | coil_COMdistance.py | Johanu/MDAnalysis_scripts | f44d2b32bb916daa3bd61e9f3ad636db503293bf | [
"MIT"
] | null | null | null | coil_COMdistance.py | Johanu/MDAnalysis_scripts | f44d2b32bb916daa3bd61e9f3ad636db503293bf | [
"MIT"
] | null | null | null | coil_COMdistance.py | Johanu/MDAnalysis_scripts | f44d2b32bb916daa3bd61e9f3ad636db503293bf | [
"MIT"
] | null | null | null | from __future__ import division
import matplotlib.pyplot as plt
import MDAnalysis as md
import numpy as np
def calculate_dists(gro_file, xtc_file):
u = md.Universe(gro_file, xtc_file)
select_group1 = u.selectAtoms("backbone and (resnum 50 or resnum 51)")
select_group2 = u.selectAtoms("backbone and (resnum ... | 39.058333 | 103 | 0.667164 | 724 | 4,687 | 4.073204 | 0.180939 | 0.037979 | 0.029841 | 0.031197 | 0.306205 | 0.25195 | 0.199729 | 0.179383 | 0.14649 | 0.118684 | 0 | 0.068504 | 0.218263 | 4,687 | 119 | 104 | 39.386555 | 0.736354 | 0.070834 | 0 | 0.056075 | 0 | 0 | 0.142693 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.037383 | null | null | 0.121495 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
4e41eecc288939d5378c49ce5811a41875918b72 | 1,091 | py | Python | authorization/migrations/0002_auto_20200207_2011.py | KariSpace/CRM_Sedicomm | cb19e90ca99c7a50a1841afbfb878191f62dec5c | [
"MIT"
] | null | null | null | authorization/migrations/0002_auto_20200207_2011.py | KariSpace/CRM_Sedicomm | cb19e90ca99c7a50a1841afbfb878191f62dec5c | [
"MIT"
] | null | null | null | authorization/migrations/0002_auto_20200207_2011.py | KariSpace/CRM_Sedicomm | cb19e90ca99c7a50a1841afbfb878191f62dec5c | [
"MIT"
] | null | null | null | # Generated by Django 2.2.4 on 2020-02-07 18:11
from django.db import migrations, models
import django.db.models.deletion
import jsonfield.fields
class Migration(migrations.Migration):
dependencies = [
('authorization', '0001_initial'),
]
operations = [
migrations.CreateModel(
... | 32.088235 | 122 | 0.604033 | 114 | 1,091 | 5.684211 | 0.5 | 0.049383 | 0.064815 | 0.101852 | 0.280864 | 0.185185 | 0.185185 | 0.185185 | 0.185185 | 0.185185 | 0 | 0.0275 | 0.266728 | 1,091 | 33 | 123 | 33.060606 | 0.7825 | 0.041247 | 0 | 0.185185 | 1 | 0 | 0.101533 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.222222 | 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 |
4e533f314e5c3e66781f51a4229383e5a116f3ac | 803 | py | Python | Curso_Python_3_UDEMY/POO/desafio_carro.py | DanilooSilva/Cursos_de_Python | 8f167a4c6e16f01601e23b6f107578aa1454472d | [
"MIT"
] | null | null | null | Curso_Python_3_UDEMY/POO/desafio_carro.py | DanilooSilva/Cursos_de_Python | 8f167a4c6e16f01601e23b6f107578aa1454472d | [
"MIT"
] | null | null | null | Curso_Python_3_UDEMY/POO/desafio_carro.py | DanilooSilva/Cursos_de_Python | 8f167a4c6e16f01601e23b6f107578aa1454472d | [
"MIT"
] | null | null | null | class Carro:
def __init__(self, velocidadeMaxima):
self.velocidadeMaxima = velocidadeMaxima
self.velocidade = 0
def acelerar(self, delta=5):
if self.velocidade < self.velocidadeMaxima:
self.velocidade += delta
else:
self.velocidade = 180
return se... | 28.678571 | 83 | 0.608966 | 93 | 803 | 5.107527 | 0.333333 | 0.324211 | 0.126316 | 0.084211 | 0.425263 | 0.307368 | 0 | 0 | 0 | 0 | 0 | 0.047452 | 0.291407 | 803 | 28 | 84 | 28.678571 | 0.787346 | 0 | 0 | 0.181818 | 0 | 0 | 0.098259 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136364 | false | 0 | 0 | 0 | 0.272727 | 0.090909 | 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 |
4e59aa0341bec9390bf565218344a25a6e72bf84 | 2,420 | py | Python | tests/views/test_delete.py | fvalverd/AutoApi | 3ceb320fe6a36d24032df121e335a8470fb929af | [
"MIT"
] | 6 | 2015-04-28T13:03:04.000Z | 2021-08-24T19:15:53.000Z | tests/views/test_delete.py | fvalverd/AutoApi | 3ceb320fe6a36d24032df121e335a8470fb929af | [
"MIT"
] | 6 | 2017-06-19T20:59:10.000Z | 2020-05-22T16:22:28.000Z | tests/views/test_delete.py | fvalverd/AutoApi | 3ceb320fe6a36d24032df121e335a8470fb929af | [
"MIT"
] | 2 | 2015-11-10T14:38:39.000Z | 2017-05-18T05:46:03.000Z | # -*- coding: utf-8 -*-
import json
import unittest
from .. import MoviesTest
class TestDeleteResource(MoviesTest):
def setUp(self):
self.setUpClass()
super(TestDeleteResource, self).setUp()
def test_delete_invalid_id(self):
response = self.app.delete('/%s/movies/a1' % self.api, hea... | 35.588235 | 108 | 0.638843 | 293 | 2,420 | 5.122867 | 0.180887 | 0.087941 | 0.107262 | 0.075949 | 0.791472 | 0.712192 | 0.686875 | 0.608261 | 0.586942 | 0.586942 | 0 | 0.017773 | 0.209504 | 2,420 | 67 | 109 | 36.119403 | 0.766858 | 0.008678 | 0 | 0.431373 | 0 | 0 | 0.09053 | 0.009595 | 0 | 0 | 0 | 0 | 0.235294 | 1 | 0.156863 | false | 0 | 0.058824 | 0 | 0.254902 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4e699a095a31850ba8f572b972a6266ffa8b3893 | 1,909 | py | Python | swagger.py | edwardw1987/swagger | 69b868523834811537af5265b47eb0bd94c42c2f | [
"MIT"
] | null | null | null | swagger.py | edwardw1987/swagger | 69b868523834811537af5265b47eb0bd94c42c2f | [
"MIT"
] | null | null | null | swagger.py | edwardw1987/swagger | 69b868523834811537af5265b47eb0bd94c42c2f | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# @Author: edward
# @Date: 2016-05-12 14:11:21
# @Last Modified by: edward
# @Last Modified time: 2016-05-12 17:29:48
from functools import partial
# api = swagger.docs(Api(app), apiVersion='0.1',
# basePath='http://localhost:5000',
# resourcePath='/',
... | 25.118421 | 64 | 0.550026 | 222 | 1,909 | 4.545045 | 0.387387 | 0.048563 | 0.039643 | 0.038652 | 0.072349 | 0.055501 | 0 | 0 | 0 | 0 | 0 | 0.033308 | 0.32373 | 1,909 | 75 | 65 | 25.453333 | 0.748257 | 0.223153 | 0 | 0 | 0 | 0 | 0.085813 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.021277 | null | null | 0.06383 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
4e69d114d4d24a38c5a1cd7288544f6fdd2af296 | 1,947 | py | Python | test/train_net.py | gregdeon/simple-ann | 80f1d239d15b820162d5de93766290bca81f7bd3 | [
"MIT"
] | 1 | 2018-08-07T03:27:23.000Z | 2018-08-07T03:27:23.000Z | test/train_net.py | gregdeon/simple-ann | 80f1d239d15b820162d5de93766290bca81f7bd3 | [
"MIT"
] | null | null | null | test/train_net.py | gregdeon/simple-ann | 80f1d239d15b820162d5de93766290bca81f7bd3 | [
"MIT"
] | null | null | null | # train-net.py
# Use the neural network module to detect simple signals
import numpy as np
import matplotlib.pyplot as plt
import random
from src.net import Net
def main():
""" Step 1: make dataset """
random.seed()
# Make 3 inputs - 1 base and 2 added inputs
sig_len = 10
y_base = np.array([1, 2,... | 30.421875 | 82 | 0.580894 | 328 | 1,947 | 3.362805 | 0.329268 | 0.050771 | 0.027199 | 0.049864 | 0.116047 | 0.094288 | 0.06709 | 0.06709 | 0.06709 | 0.06709 | 0 | 0.057021 | 0.279404 | 1,947 | 64 | 83 | 30.421875 | 0.729152 | 0.269132 | 0 | 0 | 0 | 0 | 0.008384 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.125 | null | null | 0.03125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
4e6dab17c24195e50268c9d3fbe8629caaa109c4 | 17,866 | py | Python | tcm-py/tcm_fabric.py | Datera/lio-utils | 0ac9091c1ff7a52d5435a4f4449e82637142e06e | [
"Apache-2.0"
] | 8 | 2015-04-02T21:44:47.000Z | 2021-07-15T08:31:28.000Z | tcm-py/tcm_fabric.py | Datera/lio-utils | 0ac9091c1ff7a52d5435a4f4449e82637142e06e | [
"Apache-2.0"
] | null | null | null | tcm-py/tcm_fabric.py | Datera/lio-utils | 0ac9091c1ff7a52d5435a4f4449e82637142e06e | [
"Apache-2.0"
] | 8 | 2015-06-18T14:30:21.000Z | 2021-03-25T19:51:03.000Z | #!/usr/bin/python
import os, sys, shutil
import subprocess as sub
import string
import re
import datetime, time
import optparse
target_root = "/sys/kernel/config/target/"
spec_root = "/var/target/fabric/"
def fabric_err(msg):
print >> sys.stderr, msg
sys.exit(1)
def fabric_configfs_dump(fabric_name, fabric_root, m... | 32.9631 | 144 | 0.640378 | 2,514 | 17,866 | 4.290374 | 0.099045 | 0.062118 | 0.021695 | 0.02596 | 0.564157 | 0.49351 | 0.380122 | 0.356944 | 0.283145 | 0.238643 | 0 | 0.005127 | 0.22484 | 17,866 | 541 | 145 | 33.02403 | 0.773702 | 0.094929 | 0 | 0.415423 | 0 | 0 | 0.173983 | 0.004774 | 0 | 0 | 0 | 0.001848 | 0 | 0 | null | null | 0 | 0.014925 | null | null | 0.129353 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
4e6eb09628c21128f6237f44dd57b2bfd0a093f8 | 12,321 | py | Python | vmflib2/games/hl2mp.py | Trainzack/vmflib2 | 9bc9803b3c8c644346b5a5eb864c0deaf544d8a6 | [
"BSD-2-Clause"
] | 1 | 2021-02-11T17:52:48.000Z | 2021-02-11T17:52:48.000Z | vmflib2/games/hl2mp.py | Trainzack/vmflib2 | 9bc9803b3c8c644346b5a5eb864c0deaf544d8a6 | [
"BSD-2-Clause"
] | null | null | null | vmflib2/games/hl2mp.py | Trainzack/vmflib2 | 9bc9803b3c8c644346b5a5eb864c0deaf544d8a6 | [
"BSD-2-Clause"
] | 1 | 2021-02-12T18:56:51.000Z | 2021-02-12T18:56:51.000Z | """
Helper classes for creating maps in any Source Engine game that uses hl2mp.fgd.
This file was auto-generated by import_fgd.py on 2020-01-19 09:11:14.977620.
"""
from vmflib2.vmf import *
class FilterActivatorTeam(Entity):
"""
Auto-generated from hl2mp.fgd, line 30.
A filter that filters by the team o... | 57.306977 | 840 | 0.692152 | 1,626 | 12,321 | 5.192497 | 0.224477 | 0.005211 | 0.010423 | 0.011726 | 0.440365 | 0.436812 | 0.423428 | 0.377946 | 0.370129 | 0.348099 | 0 | 0.014485 | 0.221167 | 12,321 | 214 | 841 | 57.574766 | 0.865361 | 0.500609 | 0 | 0.35443 | 1 | 0 | 0.162149 | 0.014726 | 0 | 0 | 0 | 0.009346 | 0 | 1 | 0.075949 | false | 0 | 0.012658 | 0 | 0.164557 | 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 |
4e72b83d81906c88261b3bf53646c5b537fd803e | 13,598 | py | Python | tick/array_test/tests/array_memory_test.py | sumau/tick | 1b56924a35463e12f7775bc0aec182364f26f2c6 | [
"BSD-3-Clause"
] | 411 | 2017-03-30T15:22:05.000Z | 2022-03-27T01:58:34.000Z | tick/array_test/tests/array_memory_test.py | saurabhdash/tick | bbc561804eb1fdcb4c71b9e3e2d83a66e7b13a48 | [
"BSD-3-Clause"
] | 345 | 2017-04-13T14:53:20.000Z | 2022-03-26T00:46:22.000Z | tick/array_test/tests/array_memory_test.py | saurabhdash/tick | bbc561804eb1fdcb4c71b9e3e2d83a66e7b13a48 | [
"BSD-3-Clause"
] | 102 | 2017-04-25T11:47:53.000Z | 2022-02-15T11:45:49.000Z | # License: BSD 3 clause
import gc
import unittest
import weakref
import numpy as np
import scipy
from scipy.sparse import csr_matrix
from tick.array.build.array import tick_double_sparse2d_from_file
from tick.array.build.array import tick_double_sparse2d_to_file
from tick.array_test.build import array_test as test
... | 36.652291 | 175 | 0.599941 | 1,630 | 13,598 | 4.793865 | 0.129448 | 0.030714 | 0.028283 | 0.029178 | 0.789224 | 0.729716 | 0.696954 | 0.597901 | 0.531354 | 0.48925 | 0 | 0.025832 | 0.308207 | 13,598 | 370 | 176 | 36.751351 | 0.804826 | 0.144212 | 0 | 0.633588 | 0 | 0 | 0.021982 | 0 | 0 | 0 | 0 | 0 | 0.194656 | 1 | 0.064886 | false | 0 | 0.080153 | 0 | 0.179389 | 0.015267 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4e744f117ca425c6d830404575c231f03329052e | 20,731 | py | Python | workspace/plug/maya/lynxinode/scripts/python/lxCommand/template/nodeTemplate.py | no7hings/Lynxi | 43c745198a714c2e5aca86c6d7a014adeeb9abf7 | [
"MIT"
] | 2 | 2018-03-06T03:33:55.000Z | 2019-03-26T03:25:11.000Z | workspace/plug/maya/lynxinode/scripts/python/lxCommand/template/nodeTemplate.py | no7hings/lynxi | 43c745198a714c2e5aca86c6d7a014adeeb9abf7 | [
"MIT"
] | null | null | null | workspace/plug/maya/lynxinode/scripts/python/lxCommand/template/nodeTemplate.py | no7hings/lynxi | 43c745198a714c2e5aca86c6d7a014adeeb9abf7 | [
"MIT"
] | null | null | null | # encoding=utf-8
import re
#
import types
# noinspection PyUnresolvedReferences
import maya.mel as mel
# noinspection PyUnresolvedReferences
import maya.cmds as cmds
#
_objectStore = {}
#
def pyToMelProc(pyObj, args=(), returnType=None, procName=None, useName=False, procPrefix='pyToMel_'):
melParams = []
pyPa... | 29.871758 | 139 | 0.589262 | 1,946 | 20,731 | 6.161871 | 0.156732 | 0.014011 | 0.015845 | 0.010008 | 0.314486 | 0.249771 | 0.198149 | 0.171295 | 0.15053 | 0.136019 | 0 | 0.004905 | 0.29193 | 20,731 | 693 | 140 | 29.914863 | 0.811976 | 0.006416 | 0 | 0.441536 | 0 | 0.001745 | 0.067073 | 0.008482 | 0 | 0 | 0 | 0 | 0.00349 | 0 | null | null | 0.048866 | 0.008726 | null | null | 0.00349 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
4e7a0f3a33cc53fa5588171ed4ecc80f2e9996b8 | 411 | py | Python | python/RASCUNHOS/criargrafico.py | raquelmachado4993/omundodanarrativagit | eb8cebcc74514ba8449fab5f9dc5e9a93a826850 | [
"MIT"
] | null | null | null | python/RASCUNHOS/criargrafico.py | raquelmachado4993/omundodanarrativagit | eb8cebcc74514ba8449fab5f9dc5e9a93a826850 | [
"MIT"
] | null | null | null | python/RASCUNHOS/criargrafico.py | raquelmachado4993/omundodanarrativagit | eb8cebcc74514ba8449fab5f9dc5e9a93a826850 | [
"MIT"
] | null | null | null | import matplotlib.pyplot
meses = ['Janeiro','Fevereiro','Marco','Abril','Maio','Junho']
valores = [105235, 107697, 110256, 109236, 108859, 109986]
matplotlib.pyplot.plot(meses, valores)
matplotlib.pyplot.title('Faturamento no primeiro semestre de 2017')
matplotlib.pyplot.xlabel('Meses')
matplotlib.pyplot.ylabel('Fatur... | 34.25 | 67 | 0.766423 | 51 | 411 | 6.176471 | 0.686275 | 0.355556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.112861 | 0.072993 | 411 | 11 | 68 | 37.363636 | 0.713911 | 0 | 0 | 0 | 0 | 0 | 0.263415 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.