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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e67e2b8d5cc36e4de07019122375c2f2fc7e621b | 765 | py | Python | ucs-python/create_ucs_sp_template.py | movinalot/ucs | dc0d37784592d6d78f46efee40c86b6f7ac928b4 | [
"MIT"
] | null | null | null | ucs-python/create_ucs_sp_template.py | movinalot/ucs | dc0d37784592d6d78f46efee40c86b6f7ac928b4 | [
"MIT"
] | null | null | null | ucs-python/create_ucs_sp_template.py | movinalot/ucs | dc0d37784592d6d78f46efee40c86b6f7ac928b4 | [
"MIT"
] | 2 | 2020-06-17T15:49:37.000Z | 2021-01-28T07:21:21.000Z | """
create_ucs_sp_template.py
Purpose:
UCS Manager Create a UCS Service Profile Template
Author:
John McDonough (jomcdono@cisco.com) github: (@movinalot)
Cisco Systems, Inc.
"""
from ucsmsdk.ucshandle import UcsHandle
from ucsmsdk.mometa.ls.LsServer import LsServer
from ucsmsdk.mometa.org.OrgOrg import Or... | 19.125 | 60 | 0.732026 | 104 | 765 | 5.211538 | 0.490385 | 0.055351 | 0.062731 | 0.04428 | 0.177122 | 0.070111 | 0 | 0 | 0 | 0 | 0 | 0.001534 | 0.147712 | 765 | 39 | 61 | 19.615385 | 0.829755 | 0.237909 | 0 | 0.086957 | 0 | 0 | 0.177391 | 0.04 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.043478 | 0.130435 | 0 | 0.130435 | 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 | 0 | 0 | 1 | 0 |
e67f72e9b27124ae9fe286846ee45d52e71dc993 | 4,105 | py | Python | epab/core/config.py | 132nd-etcher/epab | 5226d3a36580f8cc50cf5dcac426adb1350a2c9b | [
"MIT"
] | 2 | 2018-12-13T06:49:10.000Z | 2018-12-13T07:37:49.000Z | epab/core/config.py | etcher-be/epab | 5226d3a36580f8cc50cf5dcac426adb1350a2c9b | [
"MIT"
] | 109 | 2018-08-22T04:25:56.000Z | 2019-10-17T05:10:21.000Z | epab/core/config.py | etcher-be/epab | 5226d3a36580f8cc50cf5dcac426adb1350a2c9b | [
"MIT"
] | 1 | 2018-02-25T05:53:18.000Z | 2018-02-25T05:53:18.000Z | # coding=utf-8
"""
Handles EPAB's config file
"""
import logging
import pathlib
import elib_config
CHANGELOG_DISABLE = elib_config.ConfigValueBool(
'changelog', 'disable', description='Disable changelog building', default=False
)
CHANGELOG_FILE_PATH = elib_config.ConfigValuePath(
'changelog', 'file_path', de... | 34.495798 | 107 | 0.747138 | 496 | 4,105 | 5.935484 | 0.316532 | 0.095109 | 0.091712 | 0.017663 | 0.096467 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008422 | 0.132278 | 4,105 | 118 | 108 | 34.788136 | 0.81808 | 0.031181 | 0 | 0.020833 | 0 | 0 | 0.285316 | 0.00557 | 0 | 0 | 0 | 0 | 0 | 1 | 0.010417 | false | 0.010417 | 0.03125 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e67fead92c8110015c821a38623a6b98e6c63185 | 5,793 | py | Python | create_flask_app.py | Creativity-Hub/create_flask_app | 4c4e2c7360c7773f6f5e3d2fd30e310777650f57 | [
"MIT"
] | 2 | 2020-08-05T04:33:20.000Z | 2020-08-06T23:03:40.000Z | create_flask_app.py | Creativity-Hub/create_flask_app | 4c4e2c7360c7773f6f5e3d2fd30e310777650f57 | [
"MIT"
] | null | null | null | create_flask_app.py | Creativity-Hub/create_flask_app | 4c4e2c7360c7773f6f5e3d2fd30e310777650f57 | [
"MIT"
] | null | null | null | import os
import argparse
def check_for_pkg(pkg):
try:
exec("import " + pkg)
except:
os.system("pip3 install --user " + pkg)
def create_flask_app(app='flask_app', threading=False, wsgiserver=False, unwanted_warnings=False, logging=False, further_logging=False, site_endpoints=None, endpoints=None, request_endpoi... | 39.141892 | 335 | 0.666494 | 763 | 5,793 | 4.943644 | 0.235911 | 0.043743 | 0.016702 | 0.021209 | 0.200954 | 0.156416 | 0.102333 | 0.082185 | 0.062036 | 0.062036 | 0 | 0.005339 | 0.12705 | 5,793 | 147 | 336 | 39.408163 | 0.740558 | 0 | 0 | 0.191667 | 0 | 0.041667 | 0.399793 | 0.113758 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016667 | false | 0 | 0.066667 | 0 | 0.083333 | 0.058333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
e680d5976ff70e83c58f67740990b745a8b0973b | 1,835 | py | Python | examples/flaskr/flaskr/__init__.py | Flared/flask-sqlalchemy | e73abd51d957a4436bca6b5eadbf5d63771cf5ef | [
"BSD-3-Clause"
] | 2 | 2020-04-09T15:28:49.000Z | 2020-04-18T02:55:16.000Z | examples/flaskr/flaskr/__init__.py | Flared/flask-sqlalchemy | e73abd51d957a4436bca6b5eadbf5d63771cf5ef | [
"BSD-3-Clause"
] | null | null | null | examples/flaskr/flaskr/__init__.py | Flared/flask-sqlalchemy | e73abd51d957a4436bca6b5eadbf5d63771cf5ef | [
"BSD-3-Clause"
] | 1 | 2020-06-19T11:49:30.000Z | 2020-06-19T11:49:30.000Z | import os
import click
from flask import Flask
from flask.cli import with_appcontext
from flask_sqlalchemy import SQLAlchemy
__version__ = (1, 0, 0, "dev")
db = SQLAlchemy()
def create_app(test_config=None):
"""Create and configure an instance of the Flask application."""
app = Flask(__name__, instance_rel... | 27.38806 | 80 | 0.689918 | 261 | 1,835 | 4.670498 | 0.409962 | 0.029532 | 0.031993 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00208 | 0.214169 | 1,835 | 66 | 81 | 27.80303 | 0.843273 | 0.294823 | 0 | 0 | 0 | 0 | 0.076863 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081081 | false | 0 | 0.162162 | 0 | 0.27027 | 0.054054 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e6821c09b4a2b0ae38dad98719d218377bec1dfe | 1,516 | py | Python | conversions/decimal_to_binary.py | smukk9/Python | 5f4da5d616926dbe77ece828986b8d19c7d65cb5 | [
"MIT"
] | 6 | 2020-06-23T11:56:55.000Z | 2021-10-03T17:21:34.000Z | conversions/decimal_to_binary.py | smukk9/Python | 5f4da5d616926dbe77ece828986b8d19c7d65cb5 | [
"MIT"
] | 3 | 2020-06-08T07:03:15.000Z | 2020-06-08T08:41:22.000Z | conversions/decimal_to_binary.py | smukk9/Python | 5f4da5d616926dbe77ece828986b8d19c7d65cb5 | [
"MIT"
] | 2 | 2020-06-26T09:16:11.000Z | 2020-07-01T08:55:48.000Z | """Convert a Decimal Number to a Binary Number."""
def decimal_to_binary(num: int) -> str:
"""
Convert a Integer Decimal Number to a Binary Number as str.
>>> decimal_to_binary(0)
'0b0'
>>> decimal_to_binary(2)
'0b10'
>>> decimal_to_binary(7)
'0b111'
... | 25.266667 | 77 | 0.558047 | 184 | 1,516 | 4.467391 | 0.347826 | 0.087591 | 0.145985 | 0.121655 | 0.549878 | 0.501217 | 0.43309 | 0.43309 | 0.3309 | 0.184915 | 0 | 0.038911 | 0.3219 | 1,516 | 59 | 78 | 25.694915 | 0.7607 | 0.437335 | 0 | 0 | 0 | 0 | 0.172727 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.047619 | 0 | 0.238095 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e684146ff5ca787d26fd1c2feebd83d974744890 | 1,725 | py | Python | algorithms_keeper/parser/rules/use_fstring.py | Fongeme/algorithms-keeper | ea80d9342b4d2efd246a6bc409889ed780accf08 | [
"MIT"
] | 50 | 2021-02-27T04:13:11.000Z | 2022-03-29T04:34:01.000Z | algorithms_keeper/parser/rules/use_fstring.py | dedsec-9/algorithms-keeper | 0d98e4e24e239524c48d9eab19c493ac288ecf83 | [
"MIT"
] | 52 | 2021-08-09T22:40:20.000Z | 2022-03-07T16:56:36.000Z | algorithms_keeper/parser/rules/use_fstring.py | dedsec-9/algorithms-keeper | 0d98e4e24e239524c48d9eab19c493ac288ecf83 | [
"MIT"
] | 22 | 2021-04-28T06:56:27.000Z | 2022-03-13T07:27:45.000Z | import libcst as cst
import libcst.matchers as m
from fixit import CstLintRule
from fixit import InvalidTestCase as Invalid
from fixit import ValidTestCase as Valid
class UseFstringRule(CstLintRule):
MESSAGE: str = (
"As mentioned in the [Contributing Guidelines]"
+ "(https://github.com/TheAlgori... | 33.173077 | 85 | 0.576232 | 195 | 1,725 | 5.076923 | 0.517949 | 0.027273 | 0.045455 | 0.028283 | 0.038384 | 0.038384 | 0 | 0 | 0 | 0 | 0 | 0.004045 | 0.283478 | 1,725 | 51 | 86 | 33.823529 | 0.796926 | 0.068986 | 0 | 0.095238 | 0 | 0.02381 | 0.30025 | 0.031211 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.119048 | 0 | 0.261905 | 0.02381 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
e685406479e82ae52847e5dad03d1463ba77358b | 5,000 | py | Python | SiMon/visualization.py | Jennyx18/SiMon | 522432ff708954ac37050609cfd6f42dd96467e4 | [
"BSD-2-Clause"
] | 9 | 2017-03-04T08:00:58.000Z | 2021-04-03T18:18:40.000Z | SiMon/visualization.py | Jennyx18/SiMon | 522432ff708954ac37050609cfd6f42dd96467e4 | [
"BSD-2-Clause"
] | 52 | 2016-09-23T14:06:06.000Z | 2021-08-05T12:21:29.000Z | SiMon/visualization.py | Jennyx18/SiMon | 522432ff708954ac37050609cfd6f42dd96467e4 | [
"BSD-2-Clause"
] | 4 | 2016-09-15T02:09:42.000Z | 2021-06-15T11:42:58.000Z | import os
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import numpy as np
import math
from datetime import datetime
from matplotlib.colors import ListedColormap, BoundaryNorm
from matplotlib.collections import LineCollection
from matplotlib import cm
from SiMon.simulation import Simulation
f... | 32.894737 | 102 | 0.4948 | 593 | 5,000 | 4.026981 | 0.350759 | 0.035176 | 0.027638 | 0.023451 | 0.049414 | 0.028894 | 0 | 0 | 0 | 0 | 0 | 0.014594 | 0.397 | 5,000 | 152 | 103 | 32.894737 | 0.777446 | 0.1288 | 0 | 0.115044 | 0 | 0 | 0.036296 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026549 | false | 0 | 0.115044 | 0 | 0.159292 | 0.00885 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
e6855e47f2ad7aa6ba42d8fa11c100eb19915033 | 3,700 | py | Python | bin/psm/oil_jet.py | ChrisBarker-NOAA/tamoc | c797cbb6fee28d788b76d21cc5b0cc0df5444ba8 | [
"MIT"
] | 18 | 2016-02-24T01:48:41.000Z | 2021-11-05T03:18:24.000Z | bin/psm/oil_jet.py | ChrisBarker-NOAA/tamoc | c797cbb6fee28d788b76d21cc5b0cc0df5444ba8 | [
"MIT"
] | 16 | 2016-08-09T07:06:35.000Z | 2021-12-23T19:38:37.000Z | bin/psm/oil_jet.py | ChrisBarker-NOAA/tamoc | c797cbb6fee28d788b76d21cc5b0cc0df5444ba8 | [
"MIT"
] | 9 | 2017-03-01T01:22:27.000Z | 2021-09-17T12:13:40.000Z | """
Particle Size Models: Pure Oil Jet
===================================
Use the ``TAMOC`` `particle_size_models` module to simulate a laboratory
scale pure oil jet into water. This script demonstrates the typical steps
involved in using the `particle_size_models.PureJet` object, which requires
specification of all... | 38.947368 | 78 | 0.635946 | 548 | 3,700 | 4.20438 | 0.374088 | 0.036458 | 0.054688 | 0.027778 | 0.211806 | 0.167535 | 0.12934 | 0.12934 | 0.12934 | 0.12934 | 0 | 0.041164 | 0.238378 | 3,700 | 95 | 79 | 38.947368 | 0.776437 | 0.451622 | 0 | 0.093023 | 0 | 0 | 0.322661 | 0.064032 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.093023 | 0 | 0.093023 | 0.372093 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
e6862496cf199e7f27dd40deb80fa8e54704b966 | 1,121 | py | Python | tron/Nubs/hal.py | sdss/tron | 886c5c5fb6341ad85e4a9f5d6f5ecb6bbc0d8322 | [
"BSD-3-Clause"
] | null | null | null | tron/Nubs/hal.py | sdss/tron | 886c5c5fb6341ad85e4a9f5d6f5ecb6bbc0d8322 | [
"BSD-3-Clause"
] | null | null | null | tron/Nubs/hal.py | sdss/tron | 886c5c5fb6341ad85e4a9f5d6f5ecb6bbc0d8322 | [
"BSD-3-Clause"
] | null | null | null | import os.path
import tron.Misc
from tron import g, hub
from tron.Hub.Command.Encoders.ASCIICmdEncoder import ASCIICmdEncoder
from tron.Hub.Nub.SocketActorNub import SocketActorNub
from tron.Hub.Reply.Decoders.ASCIIReplyDecoder import ASCIIReplyDecoder
name = 'hal'
def start(poller):
cfg = tron.Misc.cfg.get(g.... | 24.369565 | 77 | 0.637823 | 136 | 1,121 | 5.257353 | 0.514706 | 0.044755 | 0.046154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00464 | 0.231044 | 1,121 | 45 | 78 | 24.911111 | 0.824826 | 0.046387 | 0 | 0 | 0 | 0 | 0.060918 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.176471 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e68781e0de8404ad5b22f8d2f250a25084af55ff | 1,092 | py | Python | extensions/domain.py | anubhavsinha98/oppia | 9a64ea2e91d2f471ce22bd39da77b43dccd5b51f | [
"Apache-2.0"
] | 1 | 2019-08-31T17:06:41.000Z | 2019-08-31T17:06:41.000Z | extensions/domain.py | anubhavsinha98/oppia | 9a64ea2e91d2f471ce22bd39da77b43dccd5b51f | [
"Apache-2.0"
] | null | null | null | extensions/domain.py | anubhavsinha98/oppia | 9a64ea2e91d2f471ce22bd39da77b43dccd5b51f | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
#
# Copyright 2014 The Oppia Authors. 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... | 35.225806 | 77 | 0.746337 | 150 | 1,092 | 5.34 | 0.66 | 0.074906 | 0.032459 | 0.03995 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010033 | 0.178571 | 1,092 | 30 | 78 | 36.4 | 0.882943 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e6889a8d19aba99a640a29f5b573f28a57dbd412 | 1,727 | py | Python | rbc/externals/stdio.py | guilhermeleobas/rbc | 4b568b91c6ce3ef7727fee001169302c3803c4fd | [
"BSD-3-Clause"
] | null | null | null | rbc/externals/stdio.py | guilhermeleobas/rbc | 4b568b91c6ce3ef7727fee001169302c3803c4fd | [
"BSD-3-Clause"
] | null | null | null | rbc/externals/stdio.py | guilhermeleobas/rbc | 4b568b91c6ce3ef7727fee001169302c3803c4fd | [
"BSD-3-Clause"
] | null | null | null | """https://en.cppreference.com/w/c/io
"""
from rbc import irutils
from llvmlite import ir
from rbc.targetinfo import TargetInfo
from numba.core import cgutils, extending
from numba.core import types as nb_types
from rbc.errors import NumbaTypeError # some errors are available for Numba >= 0.55
int32_t = ir.IntType(3... | 28.783333 | 92 | 0.682687 | 229 | 1,727 | 4.973799 | 0.388646 | 0.036874 | 0.039508 | 0.033363 | 0.317823 | 0.317823 | 0.215979 | 0.215979 | 0.215979 | 0.215979 | 0 | 0.010249 | 0.209033 | 1,727 | 59 | 93 | 29.271186 | 0.823572 | 0.191662 | 0 | 0.375 | 0 | 0 | 0.048041 | 0.020695 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15625 | false | 0 | 0.1875 | 0 | 0.40625 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e689526fba8d369acce37c9eab4574f56f8a1f4b | 991 | py | Python | setup.py | clach04/discoverhue | 8f35cbc8ff9b5aab80b8be0443427058c1da51ed | [
"MIT"
] | 10 | 2017-09-26T22:34:38.000Z | 2021-11-19T22:37:59.000Z | setup.py | clach04/discoverhue | 8f35cbc8ff9b5aab80b8be0443427058c1da51ed | [
"MIT"
] | 7 | 2018-02-04T19:38:03.000Z | 2021-10-30T13:20:33.000Z | setup.py | clach04/discoverhue | 8f35cbc8ff9b5aab80b8be0443427058c1da51ed | [
"MIT"
] | 4 | 2019-06-28T15:26:45.000Z | 2022-01-20T02:26:05.000Z | from setuptools import setup
try:
import pypandoc
long_description = pypandoc.convert_file('README.md', 'rst', extra_args=())
except ImportError:
import codecs
long_description = codecs.open('README.md', encoding='utf-8').read()
long_description = '\n'.join(long_description.splitlines())
setup(
n... | 26.078947 | 79 | 0.649849 | 106 | 991 | 5.981132 | 0.669811 | 0.141956 | 0.118297 | 0.123028 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012674 | 0.203835 | 991 | 37 | 80 | 26.783784 | 0.790875 | 0 | 0 | 0 | 0 | 0 | 0.388496 | 0.0222 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.137931 | 0 | 0.137931 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e68a7efe5fb704c535ff7a5982b5a18ddc07817d | 6,024 | py | Python | utils/logmmse.py | dbonattoj/Real-Time-Voice-Cloning | 7ce361b0e900cb0fad4289884f526578ba276481 | [
"MIT"
] | 3 | 2020-07-10T02:23:00.000Z | 2021-08-17T12:35:09.000Z | utils/logmmse.py | amoliu/Real-Time-Voice-Cloning | 7808d6f80aa9bbaffe367fde07b1c6f96cd3697e | [
"MIT"
] | 1 | 2020-09-30T09:29:57.000Z | 2020-10-31T15:38:50.000Z | utils/logmmse.py | amoliu/Real-Time-Voice-Cloning | 7808d6f80aa9bbaffe367fde07b1c6f96cd3697e | [
"MIT"
] | 5 | 2020-04-23T10:52:30.000Z | 2021-08-17T12:35:19.000Z | # The MIT License (MIT)
#
# Copyright (c) 2015 braindead
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modif... | 36.957055 | 100 | 0.659529 | 926 | 6,024 | 4.177106 | 0.292657 | 0.054292 | 0.015512 | 0.019648 | 0.192347 | 0.153568 | 0.096949 | 0.05455 | 0.04757 | 0.031024 | 0 | 0.03681 | 0.242364 | 6,024 | 162 | 101 | 37.185185 | 0.810692 | 0.3667 | 0 | 0.022472 | 0 | 0 | 0.035405 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044944 | false | 0 | 0.044944 | 0 | 0.224719 | 0.011236 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e68aea4ed97106ccbd90e2eca6ee1a3772751cb0 | 3,780 | py | Python | lib/core/session.py | 6un9-h0-Dan/CIRTKit | 58b8793ada69320ffdbdd4ecdc04a3bb2fa83c37 | [
"MIT"
] | 97 | 2017-12-18T15:19:28.000Z | 2022-03-25T07:10:00.000Z | lib/core/session.py | robertdigital/CIRTKit | 58b8793ada69320ffdbdd4ecdc04a3bb2fa83c37 | [
"MIT"
] | 1 | 2019-01-29T16:29:27.000Z | 2019-01-29T16:29:27.000Z | lib/core/session.py | robertdigital/CIRTKit | 58b8793ada69320ffdbdd4ecdc04a3bb2fa83c37 | [
"MIT"
] | 21 | 2018-04-04T18:12:13.000Z | 2021-06-12T09:40:58.000Z | # This file is part of Viper - https://github.com/viper-framework/viper
# See the file 'LICENSE' for copying permission.
import time
import datetime
from lib.common.out import *
from lib.common.objects import File
from lib.core.database import Database
from lib.core.investigation import __project__
class Session(ob... | 36 | 101 | 0.603439 | 509 | 3,780 | 4.385069 | 0.29666 | 0.072581 | 0.024194 | 0.035842 | 0.12724 | 0.05914 | 0.05914 | 0.05914 | 0.030466 | 0.030466 | 0 | 0.007722 | 0.314815 | 3,780 | 104 | 102 | 36.346154 | 0.854054 | 0.22328 | 0 | 0.164179 | 0 | 0 | 0.085704 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.089552 | false | 0.014925 | 0.089552 | 0 | 0.268657 | 0.089552 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
e68c5bbc6721a5ef393bdd04f567f863f9c93e3b | 3,810 | py | Python | tests/ut/datavisual/common/test_error_handler.py | zengchen1024/mindinsight | 228a448b46707e889efc1fb23502158e27ab56ca | [
"Apache-2.0"
] | null | null | null | tests/ut/datavisual/common/test_error_handler.py | zengchen1024/mindinsight | 228a448b46707e889efc1fb23502158e27ab56ca | [
"Apache-2.0"
] | null | null | null | tests/ut/datavisual/common/test_error_handler.py | zengchen1024/mindinsight | 228a448b46707e889efc1fb23502158e27ab56ca | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 36.990291 | 98 | 0.683727 | 464 | 3,810 | 5.387931 | 0.30819 | 0.0384 | 0.054 | 0.0368 | 0.578 | 0.578 | 0.5496 | 0.4756 | 0.3796 | 0.3796 | 0 | 0.015589 | 0.208661 | 3,810 | 102 | 99 | 37.352941 | 0.813599 | 0.24357 | 0 | 0.589286 | 0 | 0 | 0.099013 | 0 | 0 | 0 | 0 | 0 | 0.160714 | 1 | 0.107143 | false | 0 | 0.125 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e68dece75266882db686c493e81051a931627936 | 5,118 | py | Python | src/.ipynb_checkpoints/headpose_model-checkpoint.py | geochri/Intel_Edge_AI-Computer_Pointer_controller | 068947fa0cbe0c5d1b74e2c0eb69a85bbc439131 | [
"MIT"
] | null | null | null | src/.ipynb_checkpoints/headpose_model-checkpoint.py | geochri/Intel_Edge_AI-Computer_Pointer_controller | 068947fa0cbe0c5d1b74e2c0eb69a85bbc439131 | [
"MIT"
] | 3 | 2021-03-19T14:38:26.000Z | 2022-03-12T00:43:27.000Z | src/.ipynb_checkpoints/headpose_model-checkpoint.py | geochri/Intel_Edge_AI-Computer_Pointer_controller | 068947fa0cbe0c5d1b74e2c0eb69a85bbc439131 | [
"MIT"
] | null | null | null | '''
This is a sample class for a model. You may choose to use it as-is or make any changes to it.
This has been provided just to give you an idea of how to structure your model class.
'''
from openvino.inference_engine import IENetwork, IECore
import numpy as np
import os
import cv2
import sys
class Model_HeadPose:
... | 41.609756 | 107 | 0.59789 | 636 | 5,118 | 4.685535 | 0.27044 | 0.030537 | 0.026175 | 0.021477 | 0.365772 | 0.263423 | 0.252349 | 0.252349 | 0.230201 | 0.204698 | 0 | 0.006941 | 0.296209 | 5,118 | 123 | 108 | 41.609756 | 0.820378 | 0.314771 | 0 | 0.151515 | 0 | 0 | 0.115198 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.075758 | 0 | 0.227273 | 0.121212 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
e692205969e07efd17736b63f7c1d2bf34e22ac0 | 833 | py | Python | Contests/Snackdown19_Qualifier/CHEFPRMS.py | PK-100/Competitive_Programming | d0863feaaa99462b2999e85dcf115f7a6c08bb8d | [
"MIT"
] | 70 | 2018-06-25T21:20:15.000Z | 2022-03-24T03:55:17.000Z | Contests/Snackdown19_Qualifier/CHEFPRMS.py | An3sha/Competitive_Programming | ee7eadf51939a360d0b004d787ebabda583e92f0 | [
"MIT"
] | 4 | 2018-09-04T13:12:20.000Z | 2021-06-20T08:29:12.000Z | Contests/Snackdown19_Qualifier/CHEFPRMS.py | An3sha/Competitive_Programming | ee7eadf51939a360d0b004d787ebabda583e92f0 | [
"MIT"
] | 24 | 2018-12-26T05:15:32.000Z | 2022-01-23T23:04:54.000Z | import math
def square(n):
tmp=round(math.sqrt(n))
if tmp*tmp==n:
return False
else:
return True
def semprime(n):
ch = 0
if square(n)==False:
return False
for i in range(2, int(math.sqrt(n)) + 1):
while n%i==0:
n//=i
ch+=1
if ch... | 21.921053 | 53 | 0.457383 | 129 | 833 | 2.945736 | 0.248062 | 0.036842 | 0.047368 | 0.057895 | 0.184211 | 0.121053 | 0.121053 | 0.121053 | 0.121053 | 0 | 0 | 0.029126 | 0.381753 | 833 | 37 | 54 | 22.513514 | 0.708738 | 0.094838 | 0 | 0.314286 | 0 | 0 | 0.006649 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085714 | false | 0 | 0.028571 | 0 | 0.285714 | 0.057143 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e692fc94ab5c1ffa86ca1f2d1e72224d55aaebca | 8,474 | py | Python | make_base_container.py | thiagodasilva/runway | a5455e885302df534fcfff0470881fbd2ad8eed5 | [
"Apache-2.0"
] | null | null | null | make_base_container.py | thiagodasilva/runway | a5455e885302df534fcfff0470881fbd2ad8eed5 | [
"Apache-2.0"
] | null | null | null | make_base_container.py | thiagodasilva/runway | a5455e885302df534fcfff0470881fbd2ad8eed5 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
import argparse
import os
import random
import requests
import sys
import tempfile
import uuid
from libs import colorprint
from libs.cli import run_command
SCRIPT_DIR = os.path.abspath(os.path.dirname(__file__))
# assume well-known lvm volume group on host
# ...later we'll figure out how to ... | 36.683983 | 116 | 0.628039 | 950 | 8,474 | 5.350526 | 0.235789 | 0.02833 | 0.015345 | 0.022624 | 0.325595 | 0.228015 | 0.171749 | 0.171749 | 0.144009 | 0.126697 | 0 | 0.038862 | 0.274251 | 8,474 | 230 | 117 | 36.843478 | 0.787642 | 0.132405 | 0 | 0.209877 | 0 | 0 | 0.149945 | 0.005772 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0.006173 | 0.148148 | 0.006173 | 0.271605 | 0.061728 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
e693812c79b01a653cf7ed97ebf4b0c9deae4584 | 1,687 | py | Python | exercicios_antigos/ex_01.py | jfklima/prog_pratica | 72c795e3372e46f04ce0c92c05187aec651777cf | [
"MIT"
] | null | null | null | exercicios_antigos/ex_01.py | jfklima/prog_pratica | 72c795e3372e46f04ce0c92c05187aec651777cf | [
"MIT"
] | null | null | null | exercicios_antigos/ex_01.py | jfklima/prog_pratica | 72c795e3372e46f04ce0c92c05187aec651777cf | [
"MIT"
] | null | null | null | """Criar uma função que retorne min e max de uma sequência numérica
aleatória.
Só pode usar if, comparações, recursão e funções que sejam de sua
autoria.
Se quiser usar laços também pode.
Deve informar via docstring qual é a complexidade de tempo e espaço da
sua solução
"""
from math import inf
def minimo_e_maxim... | 23.760563 | 72 | 0.627742 | 227 | 1,687 | 4.550661 | 0.343612 | 0.131655 | 0.050339 | 0.043562 | 0.212972 | 0.116167 | 0.116167 | 0.116167 | 0.116167 | 0.116167 | 0 | 0.038843 | 0.28275 | 1,687 | 70 | 73 | 24.1 | 0.814876 | 0.318317 | 0 | 0.272727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.151515 | false | 0 | 0.030303 | 0 | 0.424242 | 0.030303 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e693c2c06b451b4433b40c8836d35627ae32d7b5 | 806 | py | Python | docs/demos/theme_explorer/util.py | harisbal/dash-bootstrap-components | d7c91c08e0821ccfd81330db912cde71ec57c171 | [
"Apache-2.0"
] | 1 | 2021-05-08T08:21:41.000Z | 2021-05-08T08:21:41.000Z | docs/demos/theme_explorer/util.py | harisbal/dash-bootstrap-components | d7c91c08e0821ccfd81330db912cde71ec57c171 | [
"Apache-2.0"
] | null | null | null | docs/demos/theme_explorer/util.py | harisbal/dash-bootstrap-components | d7c91c08e0821ccfd81330db912cde71ec57c171 | [
"Apache-2.0"
] | null | null | null | import dash_bootstrap_components as dbc
import dash_html_components as html
DBC_DOCS = (
"https://dash-bootstrap-components.opensource.faculty.ai/docs/components/"
)
def make_subheading(label, link):
slug = label.replace(" ", "")
heading = html.H2(
html.Span(
[
label,... | 23.028571 | 78 | 0.473945 | 79 | 806 | 4.683544 | 0.544304 | 0.054054 | 0.124324 | 0.097297 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006237 | 0.403226 | 806 | 34 | 79 | 23.705882 | 0.762994 | 0 | 0 | 0.172414 | 0 | 0 | 0.233251 | 0.052109 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0.068966 | 0 | 0.137931 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e693c649026985a8de2994906ab2b8b27870d123 | 2,858 | py | Python | pytorch_toolbox/visualization/visdom_logger.py | MathGaron/pytorch_toolbox | 2afd13e50ba71dfce66467a4b070d9b922668502 | [
"MIT"
] | 10 | 2018-02-26T04:51:11.000Z | 2021-10-01T02:30:37.000Z | pytorch_toolbox/visualization/visdom_logger.py | MathGaron/pytorch_toolbox | 2afd13e50ba71dfce66467a4b070d9b922668502 | [
"MIT"
] | 9 | 2017-11-16T16:11:16.000Z | 2020-02-13T13:10:55.000Z | pytorch_toolbox/visualization/visdom_logger.py | MathGaron/pytorch_toolbox | 2afd13e50ba71dfce66467a4b070d9b922668502 | [
"MIT"
] | 7 | 2018-02-12T19:06:14.000Z | 2021-03-25T19:13:51.000Z | '''
The visualization class provides an easy access to some of the visdom functionalities
Accept as input a number that will be ploted over time or an image of type np.ndarray
'''
from visdom import Visdom
import numpy as np
import numbers
class VisdomLogger:
items_iterator = {}
items_to_visualize = {}
w... | 35.283951 | 120 | 0.569979 | 357 | 2,858 | 4.507003 | 0.336134 | 0.048477 | 0.03729 | 0.04972 | 0.24363 | 0.210068 | 0.181479 | 0.181479 | 0.181479 | 0.181479 | 0 | 0.001053 | 0.335199 | 2,858 | 80 | 121 | 35.725 | 0.845789 | 0.246326 | 0 | 0.389831 | 0 | 0 | 0.094349 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.067797 | false | 0 | 0.050847 | 0 | 0.20339 | 0.050847 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
e698cce58860b9d7c8249a1734c7596543b84bc7 | 1,843 | py | Python | defects4cpp/errors/argparser.py | HansolChoe/defects4cpp | cb9e3db239c50e6ec38127cec117865f0ee7a5cf | [
"MIT"
] | 10 | 2021-06-23T01:53:19.000Z | 2022-03-31T03:14:01.000Z | defects4cpp/errors/argparser.py | HansolChoe/defects4cpp | cb9e3db239c50e6ec38127cec117865f0ee7a5cf | [
"MIT"
] | 34 | 2021-05-27T01:09:04.000Z | 2022-03-28T07:53:35.000Z | defects4cpp/errors/argparser.py | HansolChoe/defects4cpp | cb9e3db239c50e6ec38127cec117865f0ee7a5cf | [
"MIT"
] | 6 | 2021-09-03T07:16:56.000Z | 2022-03-29T07:30:35.000Z | from pathlib import Path
from typing import Dict
from errors.common.exception import DppError
class DppArgparseError(DppError):
pass
class DppArgparseTaxonomyNotFoundError(DppArgparseError):
def __init__(self, taxonomy_name: str):
super().__init__(f"taxonomy '{taxonomy_name}' does not exist")
... | 29.253968 | 90 | 0.683668 | 196 | 1,843 | 6.081633 | 0.306122 | 0.060403 | 0.073826 | 0.158557 | 0.058725 | 0.058725 | 0 | 0 | 0 | 0 | 0 | 0 | 0.213239 | 1,843 | 62 | 91 | 29.725806 | 0.822069 | 0 | 0 | 0.139535 | 0 | 0.023256 | 0.162778 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.186047 | false | 0.023256 | 0.069767 | 0 | 0.465116 | 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 | 0 | 0 | 1 | 0 |
e69993a645167fee1fbafcf116e0729c914350fa | 15,381 | py | Python | fold_cur_trans.py | lucasforever24/arcface_noonan | 9d805a0d4d478e347a9084ad6ce24fe4c8dc5e65 | [
"MIT"
] | null | null | null | fold_cur_trans.py | lucasforever24/arcface_noonan | 9d805a0d4d478e347a9084ad6ce24fe4c8dc5e65 | [
"MIT"
] | null | null | null | fold_cur_trans.py | lucasforever24/arcface_noonan | 9d805a0d4d478e347a9084ad6ce24fe4c8dc5e65 | [
"MIT"
] | null | null | null | import cv2
from PIL import Image
import argparse
from pathlib import Path
from multiprocessing import Process, Pipe,Value,Array
import torch
from config import get_config
from mtcnn import MTCNN
from Learner_trans_tf import face_learner
from utils import load_facebank, draw_box_name, prepare_facebank, save_label_score,... | 44.453757 | 124 | 0.594565 | 1,997 | 15,381 | 4.354532 | 0.161242 | 0.013109 | 0.029324 | 0.024149 | 0.367985 | 0.273459 | 0.207452 | 0.152714 | 0.127875 | 0.120515 | 0 | 0.007363 | 0.275925 | 15,381 | 345 | 125 | 44.582609 | 0.773458 | 0.076653 | 0 | 0.173913 | 0 | 0 | 0.115918 | 0.005269 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.075099 | 0 | 0.075099 | 0.055336 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
e699c205aa18e90414c7e2eebb09f229e7cbf13e | 2,603 | py | Python | examples/tryclass.py | manahter/dirio | c33fcd6c114ffb275d7147156c7041389fab6cfc | [
"MIT"
] | null | null | null | examples/tryclass.py | manahter/dirio | c33fcd6c114ffb275d7147156c7041389fab6cfc | [
"MIT"
] | null | null | null | examples/tryclass.py | manahter/dirio | c33fcd6c114ffb275d7147156c7041389fab6cfc | [
"MIT"
] | null | null | null | import time
class TryClass:
value = 1
valu = 2
val = 3
va = 4
v = 5
def __init__(self, value=4):
print("Created TryClass :", self)
self.value = value
def metod1(self, value, val2=""):
self.value += value
print(f"\t>>> metod 1, add: {value}, now value : {se... | 30.988095 | 128 | 0.594314 | 382 | 2,603 | 3.921466 | 0.287958 | 0.053405 | 0.044059 | 0.032043 | 0.206275 | 0.18024 | 0.150868 | 0.11482 | 0.082777 | 0.082777 | 0 | 0.045502 | 0.257011 | 2,603 | 83 | 129 | 31.361446 | 0.729059 | 0.013446 | 0 | 0.034483 | 0 | 0.051724 | 0.310426 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086207 | false | 0 | 0.051724 | 0 | 0.293103 | 0.362069 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
e69c64799a3175f6ca7da109f5305d614b082638 | 487 | py | Python | arrays/jump2/Solution.py | shahbagdadi/py-algo-n-ds | ff689534b771ddb4869b001b20a0e21b4896bb0a | [
"MIT"
] | null | null | null | arrays/jump2/Solution.py | shahbagdadi/py-algo-n-ds | ff689534b771ddb4869b001b20a0e21b4896bb0a | [
"MIT"
] | null | null | null | arrays/jump2/Solution.py | shahbagdadi/py-algo-n-ds | ff689534b771ddb4869b001b20a0e21b4896bb0a | [
"MIT"
] | null | null | null | from typing import List
import sys
class Solution:
def jump(self, nums: List[int]) -> int:
if len(nums) <=1: return 0
l , r , jumps = 0, nums[0] , 1
while r < len(nums)-1 :
jumps += 1
# you can land anywhere between l & r+1 in a jump and then use Num[i] to jump from ... | 27.055556 | 100 | 0.523614 | 85 | 487 | 3 | 0.529412 | 0.031373 | 0.062745 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044164 | 0.349076 | 487 | 18 | 101 | 27.055556 | 0.760252 | 0.176591 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.142857 | 0 | 0.357143 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e69c81543af0469c06adb5c970083f2d456e2ede | 1,881 | py | Python | share/tests.py | shared-tw/shared-tw | 90dcf92744b4e0ec9e9aa085026b5543c9c3922c | [
"MIT"
] | 2 | 2021-12-09T10:39:37.000Z | 2022-02-22T09:01:26.000Z | share/tests.py | shared-tw/backend | 90dcf92744b4e0ec9e9aa085026b5543c9c3922c | [
"MIT"
] | 3 | 2021-07-03T12:56:38.000Z | 2021-07-04T05:53:43.000Z | share/tests.py | shared-tw/shared-tw | 90dcf92744b4e0ec9e9aa085026b5543c9c3922c | [
"MIT"
] | null | null | null | import unittest
from . import states
class DonationStateTestCase(unittest.TestCase):
def test_approve_pending_state(self):
approve_pending_statue = states.PendingApprovalState()
approved_event = states.DonationApprovedEvent()
self.assertIsInstance(
approve_pending_statue.appl... | 33 | 80 | 0.700159 | 156 | 1,881 | 8.128205 | 0.217949 | 0.138801 | 0.094637 | 0.080442 | 0.646688 | 0.507886 | 0.129338 | 0.129338 | 0.129338 | 0 | 0 | 0 | 0.233918 | 1,881 | 56 | 81 | 33.589286 | 0.879944 | 0 | 0 | 0.302326 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.186047 | 1 | 0.069767 | false | 0 | 0.046512 | 0 | 0.139535 | 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 | 0 | 0 | 1 | 0 |
e69ec2353a5fed95b6dce8a05f828517c6009931 | 2,137 | py | Python | app/extensions.py | grow/airpress | b46e951b27b8216f51f0fade3695049455866825 | [
"MIT"
] | 1 | 2017-07-07T20:15:14.000Z | 2017-07-07T20:15:14.000Z | app/extensions.py | grow/airpress | b46e951b27b8216f51f0fade3695049455866825 | [
"MIT"
] | 4 | 2020-03-24T15:24:51.000Z | 2021-06-01T21:42:43.000Z | app/extensions.py | grow/airpress | b46e951b27b8216f51f0fade3695049455866825 | [
"MIT"
] | 1 | 2016-12-15T00:03:13.000Z | 2016-12-15T00:03:13.000Z | from jinja2 import nodes
from jinja2.ext import Extension
class FragmentCacheExtension(Extension):
# a set of names that trigger the extension.
tags = set(['cache'])
def __init__(self, environment):
super(FragmentCacheExtension, self).__init__(environment)
# add the defaults to the envir... | 37.491228 | 75 | 0.630323 | 282 | 2,137 | 4.677305 | 0.393617 | 0.04928 | 0.052312 | 0.063685 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001318 | 0.289658 | 2,137 | 56 | 76 | 38.160714 | 0.867589 | 0.380908 | 0 | 0.071429 | 0 | 0 | 0.034562 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.107143 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e6a26bf564f5d9a437cee65264d1566e43a4893e | 10,198 | py | Python | flatlander/runner/experiment_runner.py | wullli/flatlander | 2c7fbd3d025f2a05c40895ec735a92d7a6bfb1ad | [
"MIT"
] | 3 | 2020-12-30T04:18:42.000Z | 2022-03-17T13:15:30.000Z | flatlander/runner/experiment_runner.py | wullli/flatlander | 2c7fbd3d025f2a05c40895ec735a92d7a6bfb1ad | [
"MIT"
] | null | null | null | flatlander/runner/experiment_runner.py | wullli/flatlander | 2c7fbd3d025f2a05c40895ec735a92d7a6bfb1ad | [
"MIT"
] | null | null | null | import os
from argparse import ArgumentParser
from pathlib import Path
import gym
import ray
import ray.tune.result as ray_results
import yaml
from gym.spaces import Tuple
from ray.cluster_utils import Cluster
from ray.rllib.utils import try_import_tf, try_import_torch
from ray.tune import run_experiments, register_en... | 44.72807 | 115 | 0.585507 | 1,175 | 10,198 | 4.812766 | 0.205957 | 0.032184 | 0.037135 | 0.032184 | 0.260654 | 0.174182 | 0.102564 | 0.097259 | 0.06649 | 0.06649 | 0 | 0.003515 | 0.30251 | 10,198 | 227 | 116 | 44.92511 | 0.791509 | 0.02324 | 0 | 0.088542 | 0 | 0 | 0.150794 | 0.010348 | 0 | 0 | 0 | 0.004405 | 0 | 1 | 0.041667 | false | 0 | 0.140625 | 0 | 0.203125 | 0.020833 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
e6a4e0e5dfdac6166da22e4d8c2409f996b05e0d | 7,273 | py | Python | syslib/utils_keywords.py | rahulmah/sample-cloud-native-toolchain-tutorial-20170720084529291 | 08540c0f083a25b5b4e7a4c839080fe54383038c | [
"Apache-2.0"
] | 1 | 2019-01-19T09:32:18.000Z | 2019-01-19T09:32:18.000Z | syslib/utils_keywords.py | rahulmah/sample-cloud-native-toolchain-tutorial-20170720084529291 | 08540c0f083a25b5b4e7a4c839080fe54383038c | [
"Apache-2.0"
] | null | null | null | syslib/utils_keywords.py | rahulmah/sample-cloud-native-toolchain-tutorial-20170720084529291 | 08540c0f083a25b5b4e7a4c839080fe54383038c | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
r"""
This module contains keyword functions to supplement robot's built in
functions and use in test where generic robot keywords don't support.
"""
import time
from robot.libraries.BuiltIn import BuiltIn
from robot.libraries import DateTime
import re
###########################################... | 32.61435 | 79 | 0.54063 | 793 | 7,273 | 4.851198 | 0.248424 | 0.077983 | 0.036392 | 0.030933 | 0.397713 | 0.3647 | 0.334546 | 0.31843 | 0.31843 | 0.300754 | 0 | 0.027405 | 0.262478 | 7,273 | 222 | 80 | 32.761261 | 0.689784 | 0.586828 | 0 | 0.210526 | 0 | 0 | 0.020125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.070175 | 0 | 0.210526 | 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 | 0 | 0 | 1 | 0 |
e6a5f147ff440a3daeccaecdee477658d01cb25a | 4,044 | py | Python | DBParser/DBMove.py | lelle1234/Db2Utils | 55570a1afbe6d4abe61c31952bc178c2443f4e5b | [
"Apache-2.0"
] | 4 | 2020-02-27T13:56:37.000Z | 2022-02-07T23:07:24.000Z | DBParser/DBMove.py | lelle1234/Db2Utils | 55570a1afbe6d4abe61c31952bc178c2443f4e5b | [
"Apache-2.0"
] | null | null | null | DBParser/DBMove.py | lelle1234/Db2Utils | 55570a1afbe6d4abe61c31952bc178c2443f4e5b | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python3
import ibm_db
import getopt
import sys
import os
from toposort import toposort_flatten
db = None
host = "localhost"
port = "50000"
user = None
pwd = None
outfile = None
targetdb = None
try:
opts, args = getopt.getopt(sys.argv[1:], "h:d:P:u:p:o:t:")
except getopt.GetoptError:
sys.exit(-1)
f... | 29.304348 | 157 | 0.633778 | 605 | 4,044 | 4.117355 | 0.261157 | 0.026094 | 0.052188 | 0.044962 | 0.340426 | 0.264151 | 0.23043 | 0.175833 | 0.175833 | 0.175833 | 0 | 0.006975 | 0.220079 | 4,044 | 137 | 158 | 29.518248 | 0.782815 | 0.014342 | 0 | 0.218182 | 0 | 0.045455 | 0.464456 | 0.018588 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.045455 | 0.009091 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
e6a6b8f37ebe80036ee8d9a83872d377cb863d68 | 732 | py | Python | utils/glove.py | MirunaPislar/Word2vec | e9dd01488f081a7b8d7c00a0b21efe0d401d4927 | [
"MIT"
] | 13 | 2018-05-19T22:29:27.000Z | 2022-03-25T13:28:17.000Z | utils/glove.py | MirunaPislar/Word2vec | e9dd01488f081a7b8d7c00a0b21efe0d401d4927 | [
"MIT"
] | 1 | 2019-01-14T09:55:50.000Z | 2019-01-25T22:17:03.000Z | utils/glove.py | MirunaPislar/Word2vec | e9dd01488f081a7b8d7c00a0b21efe0d401d4927 | [
"MIT"
] | 6 | 2018-05-19T22:29:29.000Z | 2022-03-11T12:00:37.000Z | import numpy as np
DEFAULT_FILE_PATH = "utils/datasets/glove.6B.50d.txt"
def loadWordVectors(tokens, filepath=DEFAULT_FILE_PATH, dimensions=50):
"""Read pretrained GloVe vectors"""
wordVectors = np.zeros((len(tokens), dimensions))
with open(filepath) as ifs:
for line in ifs:
line = lin... | 33.272727 | 71 | 0.577869 | 86 | 732 | 4.872093 | 0.581395 | 0.052506 | 0.071599 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014141 | 0.32377 | 732 | 21 | 72 | 34.857143 | 0.832323 | 0.039617 | 0 | 0.111111 | 0 | 0 | 0.081779 | 0.044476 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.055556 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e6ab4939fc5a6bc71ee2ae80221a8f7dd6549b7a | 2,753 | py | Python | gremlin-python/src/main/jython/setup.py | EvKissle/tinkerpop | 84195e38fc22a1a089c345fade9c75711e6cfdfe | [
"Apache-2.0"
] | null | null | null | gremlin-python/src/main/jython/setup.py | EvKissle/tinkerpop | 84195e38fc22a1a089c345fade9c75711e6cfdfe | [
"Apache-2.0"
] | null | null | null | gremlin-python/src/main/jython/setup.py | EvKissle/tinkerpop | 84195e38fc22a1a089c345fade9c75711e6cfdfe | [
"Apache-2.0"
] | null | null | null | '''
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this ... | 32.388235 | 104 | 0.682528 | 363 | 2,753 | 5.044077 | 0.443526 | 0.0639 | 0.040961 | 0.017477 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016093 | 0.187432 | 2,753 | 84 | 105 | 32.77381 | 0.802414 | 0.335634 | 0 | 0.037037 | 0 | 0 | 0.362135 | 0.067694 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 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 | 0 | 0 | 1 | 0 |
e6ab63dd0a627fd5e3fd6b78f7716ef38a63c388 | 1,112 | py | Python | src/_bar.py | yoshihikosuzuki/plotly_light | cef2465486e9147e27feae1193a1b4487e4fc543 | [
"MIT"
] | null | null | null | src/_bar.py | yoshihikosuzuki/plotly_light | cef2465486e9147e27feae1193a1b4487e4fc543 | [
"MIT"
] | null | null | null | src/_bar.py | yoshihikosuzuki/plotly_light | cef2465486e9147e27feae1193a1b4487e4fc543 | [
"MIT"
] | null | null | null | from typing import Optional, Sequence
import plotly.graph_objects as go
def bar(x: Sequence,
y: Sequence,
text: Optional[Sequence] = None,
width: Optional[int] = None,
col: Optional[str] = None,
opacity: float = 1,
name: Optional[str] = None,
show_legend: bool = ... | 31.771429 | 62 | 0.539568 | 129 | 1,112 | 4.589147 | 0.44186 | 0.050676 | 0.050676 | 0.064189 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001441 | 0.375899 | 1,112 | 34 | 63 | 32.705882 | 0.851585 | 0.340827 | 0 | 0 | 0 | 0 | 0.014577 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.1 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e6acb4fde9c00fed8d158a1a19ae4c34b7d7d64e | 4,029 | py | Python | pennylane/templates/subroutines/arbitrary_unitary.py | doomhammerhell/pennylane | f147f22d8d99ba5891edd45a6a1f7dd679c8a23c | [
"Apache-2.0"
] | 3 | 2021-02-22T18:30:55.000Z | 2021-02-23T10:54:58.000Z | pennylane/templates/subroutines/arbitrary_unitary.py | doomhammerhell/pennylane | f147f22d8d99ba5891edd45a6a1f7dd679c8a23c | [
"Apache-2.0"
] | null | null | null | pennylane/templates/subroutines/arbitrary_unitary.py | doomhammerhell/pennylane | f147f22d8d99ba5891edd45a6a1f7dd679c8a23c | [
"Apache-2.0"
] | 1 | 2021-03-27T09:03:15.000Z | 2021-03-27T09:03:15.000Z | # Copyright 2018-2021 Xanadu Quantum Technologies Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or... | 31.476563 | 107 | 0.647803 | 569 | 4,029 | 4.483304 | 0.377856 | 0.024696 | 0.010584 | 0.015288 | 0.056448 | 0.025872 | 0.025872 | 0.025872 | 0.025872 | 0 | 0 | 0.011682 | 0.256391 | 4,029 | 127 | 108 | 31.724409 | 0.839786 | 0.540581 | 0 | 0 | 0 | 0 | 0.04483 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.071429 | 0 | 0.380952 | 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 | 0 | 0 | 1 | 0 |
e6aec9eead70cf9709e4908f8e9466e087fc8de3 | 5,271 | py | Python | vae_celeba.py | aidiary/generative-models-pytorch | c9ae23a4ecbe4bf8f82dbaf9e4e3e1e61530e6b0 | [
"MIT"
] | null | null | null | vae_celeba.py | aidiary/generative-models-pytorch | c9ae23a4ecbe4bf8f82dbaf9e4e3e1e61530e6b0 | [
"MIT"
] | null | null | null | vae_celeba.py | aidiary/generative-models-pytorch | c9ae23a4ecbe4bf8f82dbaf9e4e3e1e61530e6b0 | [
"MIT"
] | null | null | null | import pytorch_lightning as pl
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
from pytorch_lightning.loggers import TensorBoardLogger
from torch.utils.data import DataLoader
from torchvision import transforms
from torchvision.datasets import CelebA
class Encoder(nn.Modu... | 31.189349 | 103 | 0.592677 | 652 | 5,271 | 4.599693 | 0.214724 | 0.032011 | 0.029343 | 0.045348 | 0.466822 | 0.414138 | 0.389463 | 0.372124 | 0.315438 | 0.302434 | 0 | 0.043502 | 0.293493 | 5,271 | 168 | 104 | 31.375 | 0.761815 | 0.003605 | 0 | 0.379845 | 0 | 0 | 0.024581 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.093023 | false | 0 | 0.069767 | 0 | 0.255814 | 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 | 0 | 0 | 1 | 0 |
e6afcad02c1d49dbed0f7930d88f9219376906a4 | 2,686 | py | Python | data/process_data.py | julat/DisasterResponse | 140489e521a96dc2ff9c9a95f0ce4e99403f03af | [
"MIT"
] | null | null | null | data/process_data.py | julat/DisasterResponse | 140489e521a96dc2ff9c9a95f0ce4e99403f03af | [
"MIT"
] | null | null | null | data/process_data.py | julat/DisasterResponse | 140489e521a96dc2ff9c9a95f0ce4e99403f03af | [
"MIT"
] | null | null | null | # Import libraries
import sys
import pandas as pd
from sqlalchemy import create_engine
def load_data(messages_filepath, categories_filepath):
"""
Load the data from the disaster response csvs
Parameters:
messages_filepath (str): Path to messages csv
categories_filepath (str): Path to categories csv... | 28.574468 | 80 | 0.652271 | 320 | 2,686 | 5.334375 | 0.33125 | 0.056239 | 0.076157 | 0.079672 | 0.093732 | 0.049209 | 0 | 0 | 0 | 0 | 0 | 0.004883 | 0.237528 | 2,686 | 94 | 81 | 28.574468 | 0.828613 | 0.208861 | 0 | 0.045455 | 0 | 0 | 0.228518 | 0.020437 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.068182 | 0 | 0.204545 | 0.113636 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
e6b027e44688ca01138133b153494c3bc7370758 | 3,658 | py | Python | contrail-controller/files/plugins/check_contrail_status_controller.py | atsgen/tf-charms | 81110aef700b2f227654d52709614ddb3d62ba17 | [
"Apache-2.0"
] | null | null | null | contrail-controller/files/plugins/check_contrail_status_controller.py | atsgen/tf-charms | 81110aef700b2f227654d52709614ddb3d62ba17 | [
"Apache-2.0"
] | null | null | null | contrail-controller/files/plugins/check_contrail_status_controller.py | atsgen/tf-charms | 81110aef700b2f227654d52709614ddb3d62ba17 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
import subprocess
import sys
import json
SERVICES = {
'control': [
'control',
'nodemgr',
'named',
'dns',
],
'config-database': [
'nodemgr',
'zookeeper',
'rabbitmq',
'cassandra',
],
'webui': [
'web',
... | 29.739837 | 193 | 0.54538 | 394 | 3,658 | 4.982234 | 0.294416 | 0.121243 | 0.051961 | 0.048395 | 0.511971 | 0.379012 | 0.379012 | 0.34539 | 0.34539 | 0.29241 | 0 | 0.01221 | 0.328321 | 3,658 | 122 | 194 | 29.983607 | 0.786732 | 0.005741 | 0 | 0.377358 | 0 | 0 | 0.203795 | 0.034103 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028302 | false | 0 | 0.028302 | 0 | 0.075472 | 0.075472 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
e6b042b87a1d5f3672a72f7fa6b5679e20f39682 | 2,693 | py | Python | leaderboard-server/leaderboard-server.py | harnitsignalfx/skogaming | c860219c89149d686106dfb7a93d27df39830842 | [
"MIT"
] | 1 | 2021-03-01T20:56:24.000Z | 2021-03-01T20:56:24.000Z | leaderboard-server/leaderboard-server.py | harnitsignalfx/skogaming | c860219c89149d686106dfb7a93d27df39830842 | [
"MIT"
] | null | null | null | leaderboard-server/leaderboard-server.py | harnitsignalfx/skogaming | c860219c89149d686106dfb7a93d27df39830842 | [
"MIT"
] | 1 | 2021-02-20T17:36:47.000Z | 2021-02-20T17:36:47.000Z | from flask import Flask, jsonify, request
from flask_cors import CORS, cross_origin
import simplejson as json
from leaderboard.leaderboard import Leaderboard
import uwsgidecorators
import signalfx
app = Flask(__name__)
app.config['CORS_HEADERS'] = 'Content-Type'
cors = CORS(app)
highscore_lb_starship = Leaderboard('... | 26.663366 | 95 | 0.649833 | 309 | 2,693 | 5.553398 | 0.307443 | 0.032051 | 0.052448 | 0.060606 | 0.339161 | 0.339161 | 0.283217 | 0.254079 | 0.212121 | 0.085082 | 0 | 0.019475 | 0.180097 | 2,693 | 100 | 96 | 26.93 | 0.757699 | 0.027479 | 0 | 0.287879 | 0 | 0 | 0.21445 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.090909 | 0.015152 | 0.287879 | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
e6b183e72d2aff2b604bbf82d32e69244b409f59 | 1,591 | py | Python | meshio/_cli/_info.py | jorgensd/meshio | 0600ac9e9e8d1e1a27d5f3f2f4235414f4482cac | [
"MIT"
] | 1 | 2020-09-01T11:26:15.000Z | 2020-09-01T11:26:15.000Z | meshio/_cli/_info.py | jorgensd/meshio | 0600ac9e9e8d1e1a27d5f3f2f4235414f4482cac | [
"MIT"
] | null | null | null | meshio/_cli/_info.py | jorgensd/meshio | 0600ac9e9e8d1e1a27d5f3f2f4235414f4482cac | [
"MIT"
] | null | null | null | import argparse
import numpy as np
from .._helpers import read, reader_map
from ._helpers import _get_version_text
def info(argv=None):
# Parse command line arguments.
parser = _get_info_parser()
args = parser.parse_args(argv)
# read mesh data
mesh = read(args.infile, file_format=args.input_for... | 26.966102 | 87 | 0.637335 | 201 | 1,591 | 4.885572 | 0.437811 | 0.03666 | 0.033605 | 0.028513 | 0.038697 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001704 | 0.262099 | 1,591 | 58 | 88 | 27.431034 | 0.834753 | 0.085481 | 0 | 0.095238 | 0 | 0 | 0.164828 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.095238 | 0 | 0.166667 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e6b2c4874559385c0807dca69b9f07a62e9a1d08 | 1,324 | py | Python | ccslink/Zip.py | Data-Linkage/ccslink | ee1105888d43c6a2b307deb96ddede34d03a965f | [
"MIT"
] | null | null | null | ccslink/Zip.py | Data-Linkage/ccslink | ee1105888d43c6a2b307deb96ddede34d03a965f | [
"MIT"
] | null | null | null | ccslink/Zip.py | Data-Linkage/ccslink | ee1105888d43c6a2b307deb96ddede34d03a965f | [
"MIT"
] | null | null | null | import os, shutil
from CCSLink import Spark_Session as SS
def add_zipped_dependency(zip_from, zip_target):
"""
This method creates a zip of the code to be sent to the executors.
It essentially zips the Python packages installed by PIP and
submits them via addPyFile in the current PySpark context
E... | 33.1 | 70 | 0.676737 | 199 | 1,324 | 4.40201 | 0.507538 | 0.062785 | 0.027397 | 0.025114 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002004 | 0.246224 | 1,324 | 39 | 71 | 33.948718 | 0.875752 | 0.563444 | 0 | 0 | 0 | 0 | 0.129032 | 0.074004 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.153846 | 0 | 0.230769 | 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 | 0 | 0 | 1 | 0 |
e6b2fbff1fb4792ec87b5e0830c85e32ea769936 | 2,484 | py | Python | moltemplate/nbody_Angles.py | Mopolino8/moltemplate | 363df364fcb012e8e4beb7bc616a77d696b8b707 | [
"BSD-3-Clause"
] | null | null | null | moltemplate/nbody_Angles.py | Mopolino8/moltemplate | 363df364fcb012e8e4beb7bc616a77d696b8b707 | [
"BSD-3-Clause"
] | null | null | null | moltemplate/nbody_Angles.py | Mopolino8/moltemplate | 363df364fcb012e8e4beb7bc616a77d696b8b707 | [
"BSD-3-Clause"
] | 1 | 2019-11-24T17:32:28.000Z | 2019-11-24T17:32:28.000Z | try:
from .nbody_graph_search import Ugraph
except (SystemError, ValueError):
# not installed as a package
from nbody_graph_search import Ugraph
# This file defines how 3-body angle interactions are generated by moltemplate
# by default. It can be overridden by supplying your own custom file.
# To fi... | 42.827586 | 79 | 0.68599 | 409 | 2,484 | 4.149144 | 0.400978 | 0.00825 | 0.007071 | 0.023571 | 0.068356 | 0.068356 | 0 | 0 | 0 | 0 | 0 | 0.0384 | 0.245169 | 2,484 | 57 | 80 | 43.578947 | 0.866667 | 0.771739 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.133333 | 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 | 0 | 0 | 0 | 0 | 1 | 0 |
e6b3c1a04d6b23957a4328b1a4d335f1079479f3 | 8,099 | py | Python | extras/usd/examples/usdMakeFileVariantModelAsset/usdMakeFileVariantModelAsset.py | DougRogers-DigitalFish/USD | d8a405a1344480f859f025c4f97085143efacb53 | [
"BSD-2-Clause"
] | 3,680 | 2016-07-26T18:28:11.000Z | 2022-03-31T09:55:05.000Z | extras/usd/examples/usdMakeFileVariantModelAsset/usdMakeFileVariantModelAsset.py | DougRogers-DigitalFish/USD | d8a405a1344480f859f025c4f97085143efacb53 | [
"BSD-2-Clause"
] | 1,759 | 2016-07-26T19:19:59.000Z | 2022-03-31T21:24:00.000Z | extras/usd/examples/usdMakeFileVariantModelAsset/usdMakeFileVariantModelAsset.py | DougRogers-DigitalFish/USD | d8a405a1344480f859f025c4f97085143efacb53 | [
"BSD-2-Clause"
] | 904 | 2016-07-26T18:33:40.000Z | 2022-03-31T09:55:16.000Z | #!/pxrpythonsubst
#
# Copyright 2016 Pixar
#
# Licensed under the Apache License, Version 2.0 (the "Apache License")
# with the following modification; you may not use this file except in
# compliance with the Apache License and the following modification to it:
# Section 6. Trademarks. is deleted and replaced with:
#
... | 44.256831 | 85 | 0.684159 | 991 | 8,099 | 5.56004 | 0.380424 | 0.011434 | 0.020327 | 0.011434 | 0.050091 | 0.025771 | 0.011252 | 0 | 0 | 0 | 0 | 0.004056 | 0.238918 | 8,099 | 182 | 86 | 44.5 | 0.889844 | 0.416224 | 0 | 0.119565 | 0 | 0 | 0.192489 | 0.015236 | 0 | 0 | 0 | 0.005495 | 0 | 1 | 0.01087 | false | 0 | 0.043478 | 0 | 0.130435 | 0.065217 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
e6b3c20df06992b958887a2ed1583c032b8b6295 | 7,079 | py | Python | src/main.py | fbdp1202/pyukf_kinect_body_tracking | c44477149cfc22abfe9121c2604dc284c93fbd42 | [
"MIT"
] | 7 | 2020-04-23T06:03:10.000Z | 2022-01-16T21:16:23.000Z | src/main.py | fbdp1202/pyukf_kinect_body_tracking | c44477149cfc22abfe9121c2604dc284c93fbd42 | [
"MIT"
] | null | null | null | src/main.py | fbdp1202/pyukf_kinect_body_tracking | c44477149cfc22abfe9121c2604dc284c93fbd42 | [
"MIT"
] | 3 | 2020-07-12T15:07:52.000Z | 2021-12-05T09:27:18.000Z | import sys
import os
sys.path.append('./code/')
from skeleton import Skeleton
from read_data import *
from calibration import Calibration
from ukf_filter import ukf_Filter_Controler
from canvas import Canvas
from regression import *
import time
from functools import wraps
import os
def check_time(function):
@wraps... | 34.198068 | 368 | 0.759288 | 1,166 | 7,079 | 4.249571 | 0.127787 | 0.078708 | 0.05328 | 0.066599 | 0.574975 | 0.526942 | 0.456105 | 0.354188 | 0.332795 | 0.302926 | 0 | 0.009957 | 0.120356 | 7,079 | 206 | 369 | 34.364078 | 0.785772 | 0.016669 | 0 | 0.288235 | 0 | 0 | 0.039667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.064706 | 0.011765 | 0.276471 | 0.035294 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
e6b3d6bc9a4bc463c1dd688594551748653895d4 | 2,683 | py | Python | cfgov/scripts/initial_data.py | Mario-Kart-Felix/cfgov-refresh | 7978fedeb7aaf4d96a87720e6545567085e056a9 | [
"CC0-1.0"
] | 1 | 2019-12-29T17:50:07.000Z | 2019-12-29T17:50:07.000Z | cfgov/scripts/initial_data.py | ascott1/cfgov-refresh | 9c916aaed3a48110a199eb4675474290a51f815d | [
"CC0-1.0"
] | 1 | 2021-04-22T01:09:52.000Z | 2021-04-22T01:09:52.000Z | cfgov/scripts/initial_data.py | ascott1/cfgov-refresh | 9c916aaed3a48110a199eb4675474290a51f815d | [
"CC0-1.0"
] | 1 | 2021-02-02T08:59:38.000Z | 2021-02-02T08:59:38.000Z | from __future__ import print_function
import json
import os
from django.conf import settings
from django.contrib.auth.hashers import make_password
from django.contrib.auth.models import User
from wagtail.wagtailcore.models import Page, Site
from v1.models import HomePage, BrowseFilterablePage
def run():
print(... | 34.844156 | 97 | 0.666045 | 327 | 2,683 | 5.266055 | 0.281346 | 0.083624 | 0.037747 | 0.036585 | 0.213705 | 0.188153 | 0.114983 | 0.114983 | 0.114983 | 0.084785 | 0 | 0.006826 | 0.235557 | 2,683 | 76 | 98 | 35.302632 | 0.832765 | 0.060007 | 0 | 0.135593 | 0 | 0 | 0.057234 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016949 | false | 0.033898 | 0.135593 | 0 | 0.152542 | 0.033898 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
e6b40095f02ec8f60d6c2306673d054478953aba | 1,456 | py | Python | Scripts/compareOutputs.py | harmim/vut-avs-project1 | d36e6b5cdebce748d2bdf2afc43950968ecf0a91 | [
"MIT"
] | null | null | null | Scripts/compareOutputs.py | harmim/vut-avs-project1 | d36e6b5cdebce748d2bdf2afc43950968ecf0a91 | [
"MIT"
] | null | null | null | Scripts/compareOutputs.py | harmim/vut-avs-project1 | d36e6b5cdebce748d2bdf2afc43950968ecf0a91 | [
"MIT"
] | null | null | null | # Simple python3 script to compare output with a reference output.
# Usage: python3 compareOutputs.py testOutput.h5 testRefOutput.h5
import sys
import h5py
import numpy as np
if len(sys.argv) != 3:
print("Expected two arguments. Output and reference output file.")
sys.exit(1)
filename = sys.argv[1]
ref_filen... | 26.472727 | 89 | 0.666896 | 239 | 1,456 | 3.970711 | 0.334728 | 0.044257 | 0.02529 | 0.029505 | 0.101159 | 0.052687 | 0.052687 | 0.052687 | 0.052687 | 0 | 0 | 0.029094 | 0.173764 | 1,456 | 54 | 90 | 26.962963 | 0.759767 | 0.087912 | 0 | 0.131579 | 0 | 0 | 0.270943 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.078947 | 0 | 0.078947 | 0.368421 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
e6b741334252c43868c1ae3bb0661b811481f368 | 1,048 | py | Python | src/zvt/recorders/em/meta/em_stockhk_meta_recorder.py | vishalbelsare/zvt | d55051147274c0a4157f08ec60908c781a323c8f | [
"MIT"
] | 2,032 | 2019-04-16T14:10:32.000Z | 2022-03-31T12:40:13.000Z | src/zvt/recorders/em/meta/em_stockhk_meta_recorder.py | vishalbelsare/zvt | d55051147274c0a4157f08ec60908c781a323c8f | [
"MIT"
] | 162 | 2019-05-07T09:57:46.000Z | 2022-03-25T16:23:08.000Z | src/zvt/recorders/em/meta/em_stockhk_meta_recorder.py | vishalbelsare/zvt | d55051147274c0a4157f08ec60908c781a323c8f | [
"MIT"
] | 755 | 2019-04-30T10:25:16.000Z | 2022-03-29T17:50:49.000Z | # -*- coding: utf-8 -*-
from zvt.contract.api import df_to_db
from zvt.contract.recorder import Recorder
from zvt.domain.meta.stockhk_meta import Stockhk
from zvt.recorders.em import em_api
class EMStockhkRecorder(Recorder):
provider = "em"
data_schema = Stockhk
def run(self):
df_south = em_api.... | 33.806452 | 115 | 0.711832 | 151 | 1,048 | 4.589404 | 0.337748 | 0.060606 | 0.025974 | 0.046176 | 0.40404 | 0.37518 | 0.308802 | 0.308802 | 0.20202 | 0.20202 | 0 | 0.001149 | 0.169847 | 1,048 | 30 | 116 | 34.933333 | 0.795402 | 0.043893 | 0 | 0 | 0 | 0 | 0.059059 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.190476 | 0 | 0.380952 | 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 | 0 | 0 | 1 | 0 |
e6b7cb0bb44951e0d2ab9c8433c064285f85c4f7 | 6,362 | py | Python | src/main.py | yanwunhao/auto-mshts | 7a4b690bbb6ae55e2f6fad77d176c2c0822db7a0 | [
"MIT"
] | null | null | null | src/main.py | yanwunhao/auto-mshts | 7a4b690bbb6ae55e2f6fad77d176c2c0822db7a0 | [
"MIT"
] | null | null | null | src/main.py | yanwunhao/auto-mshts | 7a4b690bbb6ae55e2f6fad77d176c2c0822db7a0 | [
"MIT"
] | null | null | null | from util.io import read_setting_json, read_0h_data, read_24h_data, draw_single_curve
from util.convert import split_array_into_samples, calculate_avg_of_sample, convert_to_percentage
from util.calculus import calculate_summary_of_sample, fit_sigmoid_curve
import matplotlib.pyplot as plt
import numpy as np
import csv
... | 31.651741 | 133 | 0.735618 | 909 | 6,362 | 4.786579 | 0.161716 | 0.031027 | 0.04045 | 0.05516 | 0.235808 | 0.176971 | 0.128246 | 0.074925 | 0.074925 | 0.051942 | 0 | 0.019285 | 0.168658 | 6,362 | 200 | 134 | 31.81 | 0.803365 | 0.08708 | 0 | 0.136691 | 0 | 0 | 0.05733 | 0.003626 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.043165 | 0 | 0.043165 | 0.007194 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
e6b8a82e6b0282dee965fc93d3c31abaae481d21 | 6,492 | py | Python | twisted/names/root.py | twonds/twisted | d6e270a465d371c3bed01bf369af497b77eb9f1e | [
"Unlicense",
"MIT"
] | 1 | 2021-01-27T19:11:21.000Z | 2021-01-27T19:11:21.000Z | twisted/names/root.py | twonds/twisted | d6e270a465d371c3bed01bf369af497b77eb9f1e | [
"Unlicense",
"MIT"
] | null | null | null | twisted/names/root.py | twonds/twisted | d6e270a465d371c3bed01bf369af497b77eb9f1e | [
"Unlicense",
"MIT"
] | 3 | 2017-01-04T01:24:15.000Z | 2020-06-18T16:14:56.000Z | # -*- test-case-name: twisted.names.test.test_rootresolve -*-
# Copyright (c) 2001-2009 Twisted Matrix Laboratories.
# See LICENSE for details.
"""
Resolver implementation for querying successive authoritative servers to
lookup a record, starting from the root nameservers.
@author: Jp Calderone
todo::
robustify ... | 33.989529 | 91 | 0.59658 | 742 | 6,492 | 5.169811 | 0.269542 | 0.006257 | 0.014338 | 0.013556 | 0.202815 | 0.191345 | 0.180396 | 0.158498 | 0.138686 | 0.112617 | 0 | 0.006545 | 0.2939 | 6,492 | 190 | 92 | 34.168421 | 0.830279 | 0.26525 | 0 | 0.209677 | 0 | 0 | 0.016181 | 0 | 0 | 0 | 0 | 0.005263 | 0.008065 | 1 | 0.129032 | false | 0.008065 | 0.032258 | 0 | 0.306452 | 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 | 0 | 0 | 1 | 0 |
e6b8dc6f73954e378a1c4ed802de05ace9457d1e | 2,056 | py | Python | tools/apply_colormap_dir.py | edwardyehuang/iDS | 36bde3a9e887eb7e1a8d88956cf041909ee84da4 | [
"MIT"
] | null | null | null | tools/apply_colormap_dir.py | edwardyehuang/iDS | 36bde3a9e887eb7e1a8d88956cf041909ee84da4 | [
"MIT"
] | null | null | null | tools/apply_colormap_dir.py | edwardyehuang/iDS | 36bde3a9e887eb7e1a8d88956cf041909ee84da4 | [
"MIT"
] | null | null | null | # ================================================================
# MIT License
# Copyright (c) 2021 edwardyehuang (https://github.com/edwardyehuang)
# ================================================================
import os, sys
rootpath = os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir, os.pard... | 25.073171 | 89 | 0.651751 | 264 | 2,056 | 4.859848 | 0.344697 | 0.049104 | 0.023383 | 0.029618 | 0.071707 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01962 | 0.181907 | 2,056 | 81 | 90 | 25.382716 | 0.743163 | 0.101654 | 0 | 0 | 0 | 0 | 0.098263 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044444 | false | 0 | 0.2 | 0 | 0.244444 | 0.022222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
e6b94f55392b1866e86cdeb5f1344d92e8c4dea3 | 6,007 | py | Python | EDScoutCore/JournalInterface.py | bal6765/ed-scout | 0c2ee6141a5cd86a660c2319d7c4be61614b13fb | [
"MIT"
] | null | null | null | EDScoutCore/JournalInterface.py | bal6765/ed-scout | 0c2ee6141a5cd86a660c2319d7c4be61614b13fb | [
"MIT"
] | null | null | null | EDScoutCore/JournalInterface.py | bal6765/ed-scout | 0c2ee6141a5cd86a660c2319d7c4be61614b13fb | [
"MIT"
] | null | null | null | from inspect import signature
import json
import time
import os
import glob
import logging
from pathlib import Path
from watchdog.observers import Observer
from watchdog.observers.polling import PollingObserver
from watchdog.events import PatternMatchingEventHandler
from EDScoutCore.FileSystemUpdatePrompter... | 34.522989 | 164 | 0.632096 | 699 | 6,007 | 5.201717 | 0.307582 | 0.042354 | 0.020627 | 0.025303 | 0.070682 | 0.04813 | 0.04813 | 0.04813 | 0.037954 | 0.037954 | 0 | 0.00234 | 0.288497 | 6,007 | 173 | 165 | 34.722543 | 0.848386 | 0.095389 | 0 | 0.041322 | 0 | 0 | 0.078652 | 0.005523 | 0 | 0 | 0 | 0 | 0 | 1 | 0.132231 | false | 0.008264 | 0.090909 | 0 | 0.272727 | 0.024793 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
e6ba0dc97e3a9015e73a33e1fbadd9852c0606ea | 1,355 | py | Python | labs-python/lab9/add_files.py | xR86/ml-stuff | 2a1b79408897171b78032ff2531ab6f8b18be6c4 | [
"MIT"
] | 3 | 2018-12-11T03:03:15.000Z | 2020-02-11T19:38:07.000Z | labs-python/lab9/add_files.py | xR86/ml-stuff | 2a1b79408897171b78032ff2531ab6f8b18be6c4 | [
"MIT"
] | 6 | 2017-05-31T20:58:32.000Z | 2021-02-16T23:13:15.000Z | labs-python/lab9/add_files.py | xR86/ml-stuff | 2a1b79408897171b78032ff2531ab6f8b18be6c4 | [
"MIT"
] | null | null | null | import sqlite3
conn = sqlite3.connect('example.db')
c = conn.cursor()
import os
import hashlib
import time
def get_file_md5(filePath):
h = hashlib.md5()
h.update(open(filePath,"rb").read())
return h.hexdigest()
def get_file_sha256(filePath):
h = hashlib.sha256()
h.update(open(filePath,"rb").read())
return h.... | 22.966102 | 83 | 0.710701 | 216 | 1,355 | 4.194444 | 0.291667 | 0.054084 | 0.060706 | 0.059603 | 0.238411 | 0.143488 | 0.103753 | 0.103753 | 0.103753 | 0.103753 | 0 | 0.021496 | 0.141697 | 1,355 | 59 | 84 | 22.966102 | 0.757524 | 0.066421 | 0 | 0.108108 | 0 | 0 | 0.114806 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081081 | false | 0 | 0.108108 | 0 | 0.243243 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e6bacf59de7852cf3a5c740a8171a4aa7144b26c | 4,083 | py | Python | Replication Python and R Codes/Figure_6/cMCA_ESS2018_LABCON_org.py | tzuliu/Contrastive-Multiple-Correspondence-Analysis-cMCA | a59a5c36dd5d4ac04205627827e792322742462d | [
"MIT"
] | 3 | 2020-09-25T07:11:46.000Z | 2022-02-08T05:07:34.000Z | Replication Python and R Codes/Figure_6/cMCA_ESS2018_LABCON_org.py | tzuliu/Contrastive-Multiple-Correspondence-Analysis-cMCA | a59a5c36dd5d4ac04205627827e792322742462d | [
"MIT"
] | null | null | null | Replication Python and R Codes/Figure_6/cMCA_ESS2018_LABCON_org.py | tzuliu/Contrastive-Multiple-Correspondence-Analysis-cMCA | a59a5c36dd5d4ac04205627827e792322742462d | [
"MIT"
] | 1 | 2021-02-06T16:44:44.000Z | 2021-02-06T16:44:44.000Z | import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import prince
from sklearn import utils
from sklearn.cluster import DBSCAN
import itertools
from cmca import CMCA
from ccmca import CCMCA
from matplotlib import rc
plt.style.use('ggplot')
df = pd.read_csv("./uk2018.csv")
df["prtclcgb"].replace({5: ... | 35.198276 | 140 | 0.624051 | 715 | 4,083 | 3.384615 | 0.234965 | 0.024793 | 0.042975 | 0.059504 | 0.338843 | 0.186364 | 0.097107 | 0.090909 | 0.065289 | 0.065289 | 0 | 0.060983 | 0.152584 | 4,083 | 115 | 141 | 35.504348 | 0.638439 | 0.01445 | 0 | 0 | 0 | 0 | 0.164428 | 0.006716 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020619 | false | 0 | 0.103093 | 0 | 0.123711 | 0.082474 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
e6bb99021b44144da731911de204a7afc66e8789 | 1,196 | py | Python | Solutions/077.py | ruppysuppy/Daily-Coding-Problem-Solutions | 37d061215a9af2ce39c51f8816c83039914c0d0b | [
"MIT"
] | 70 | 2021-03-18T05:22:40.000Z | 2022-03-30T05:36:50.000Z | Solutions/077.py | ungaro/Daily-Coding-Problem-Solutions | 37d061215a9af2ce39c51f8816c83039914c0d0b | [
"MIT"
] | null | null | null | Solutions/077.py | ungaro/Daily-Coding-Problem-Solutions | 37d061215a9af2ce39c51f8816c83039914c0d0b | [
"MIT"
] | 30 | 2021-03-18T05:22:43.000Z | 2022-03-17T10:25:18.000Z | """
Problem:
Given a list of possibly overlapping intervals, return a new list of intervals where
all overlapping intervals have been merged.
The input list is not necessarily ordered in any way.
For example, given [(1, 3), (5, 8), (4, 10), (20, 25)], you should return
[(1, 3), (4, 10), (20, 25)].
"""
from typing i... | 26 | 84 | 0.622074 | 173 | 1,196 | 4.16763 | 0.404624 | 0.104022 | 0.027739 | 0.038835 | 0.231623 | 0.098474 | 0.098474 | 0.098474 | 0.083218 | 0.083218 | 0 | 0.055677 | 0.234114 | 1,196 | 45 | 85 | 26.577778 | 0.731441 | 0.296823 | 0 | 0.210526 | 0 | 0 | 0.010363 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.052632 | 0 | 0.157895 | 0.105263 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e6bbb3606fdfbd374577782a243b3f2af19f5e8d | 3,163 | py | Python | slackbot_wems/chris/slacklib.py | wray/wems | 69caedfb8906f04175196d610a1ca516db01f72a | [
"MIT"
] | 4 | 2016-11-10T21:43:01.000Z | 2017-02-24T21:36:45.000Z | slackbot_wems/chris/slacklib.py | wray/wems | 69caedfb8906f04175196d610a1ca516db01f72a | [
"MIT"
] | 1 | 2019-04-26T10:48:34.000Z | 2019-05-18T15:59:35.000Z | slackbot_wems/chris/slacklib.py | wray/wems | 69caedfb8906f04175196d610a1ca516db01f72a | [
"MIT"
] | 8 | 2016-11-09T22:25:14.000Z | 2019-04-26T19:53:37.000Z | import time
import emoji
# Put your commands here
COMMAND1 = "testing testing"
COMMAND2 = "roger roger"
BLUEON = str("blue on")
BLUEOFF = str("blue off")
REDON = str("red on")
REDOFF = str("red off")
GREENON = str("green on")
GREENOFF = str("green off")
YELLOWON = str("yellow on")
YELLOWOFF = str("yellow off")
CL... | 26.140496 | 88 | 0.607651 | 403 | 3,163 | 4.736973 | 0.290323 | 0.080671 | 0.102148 | 0.113148 | 0.223153 | 0.116291 | 0 | 0 | 0 | 0 | 0 | 0.019442 | 0.251976 | 3,163 | 120 | 89 | 26.358333 | 0.787405 | 0.095163 | 0 | 0 | 0 | 0 | 0.184043 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025974 | false | 0 | 0.064935 | 0 | 0.103896 | 0.064935 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
e6bde93bee8b10728e74b15763f724d08484c86a | 4,640 | py | Python | homeassistant/components/tasmota/discovery.py | yura505/core | 0fc5f4b0421c6c5204d3ccb562153ac3836441a9 | [
"Apache-2.0"
] | null | null | null | homeassistant/components/tasmota/discovery.py | yura505/core | 0fc5f4b0421c6c5204d3ccb562153ac3836441a9 | [
"Apache-2.0"
] | null | null | null | homeassistant/components/tasmota/discovery.py | yura505/core | 0fc5f4b0421c6c5204d3ccb562153ac3836441a9 | [
"Apache-2.0"
] | null | null | null | """Support for MQTT discovery."""
import asyncio
import logging
from hatasmota.discovery import (
TasmotaDiscovery,
get_device_config as tasmota_get_device_config,
get_entities_for_platform as tasmota_get_entities_for_platform,
get_entity as tasmota_get_entity,
has_entities_with_platform as tasmota... | 37.419355 | 88 | 0.694612 | 525 | 4,640 | 5.727619 | 0.182857 | 0.073495 | 0.02993 | 0.02993 | 0.372132 | 0.227802 | 0.08979 | 0.035916 | 0 | 0 | 0 | 0 | 0.236207 | 4,640 | 123 | 89 | 37.723577 | 0.848476 | 0.031897 | 0 | 0.122222 | 0 | 0 | 0.079082 | 0.042208 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022222 | false | 0 | 0.066667 | 0 | 0.111111 | 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 | 0 | 0 | 1 | 0 |
e6be7a1b7add8b9481d98005ea50f939d83dd351 | 15,696 | py | Python | tfx/components/infra_validator/executor.py | TimoKerr/tfx | 10d13d57eeac21514fed73118cb43464dada67f1 | [
"Apache-2.0"
] | 1 | 2021-05-10T10:41:06.000Z | 2021-05-10T10:41:06.000Z | tfx/components/infra_validator/executor.py | TimoKerr/tfx | 10d13d57eeac21514fed73118cb43464dada67f1 | [
"Apache-2.0"
] | null | null | null | tfx/components/infra_validator/executor.py | TimoKerr/tfx | 10d13d57eeac21514fed73118cb43464dada67f1 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC. 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 required by applicable law or a... | 39.24 | 83 | 0.73248 | 1,952 | 15,696 | 5.627049 | 0.215676 | 0.031136 | 0.025492 | 0.021031 | 0.31819 | 0.270302 | 0.193645 | 0.165696 | 0.122178 | 0.093955 | 0 | 0.003496 | 0.198203 | 15,696 | 399 | 84 | 39.338346 | 0.869289 | 0.257964 | 0 | 0.238636 | 0 | 0 | 0.061587 | 0.005424 | 0 | 0 | 0 | 0.002506 | 0 | 1 | 0.056818 | false | 0.015152 | 0.121212 | 0 | 0.215909 | 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 | 0 | 0 | 1 | 0 |
e6bfbff8f4c4eb14d73dd394e1c8390a8c552bf9 | 18,474 | py | Python | metr-la/model/Double_C_STTN.py | happys2333/DL-2021-fall | e110d737d1a70c8238f2de3278e6aebce07c7a66 | [
"Apache-2.0"
] | 1 | 2022-02-11T12:24:08.000Z | 2022-02-11T12:24:08.000Z | metr-la/model/Double_C_STTN.py | happys2333/DL-2021-fall | e110d737d1a70c8238f2de3278e6aebce07c7a66 | [
"Apache-2.0"
] | null | null | null | metr-la/model/Double_C_STTN.py | happys2333/DL-2021-fall | e110d737d1a70c8238f2de3278e6aebce07c7a66 | [
"Apache-2.0"
] | null | null | null | # from folder workMETRLA
# MODEL CODE
# -*- coding: utf-8 -*-
"""
Created on Mon Sep 28 10:28:06 2020
@author: wb
"""
import torch
import torch.nn as nn
import math
# from GCN_models import GCN
# from One_hot_encoder import One_hot_encoder
import torch.nn.functional as F
import numpy as np
from sc... | 36.654762 | 228 | 0.566742 | 2,499 | 18,474 | 3.991997 | 0.134854 | 0.056836 | 0.011427 | 0.008821 | 0.542502 | 0.510225 | 0.451183 | 0.440758 | 0.418805 | 0.379912 | 0 | 0.019945 | 0.316066 | 18,474 | 503 | 229 | 36.727634 | 0.769608 | 0.265075 | 0 | 0.469595 | 0 | 0 | 0.015434 | 0 | 0 | 0 | 0 | 0 | 0.006757 | 1 | 0.074324 | false | 0 | 0.033784 | 0 | 0.179054 | 0.010135 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
e6c52e70a50ff76dae5fa9533aa70b45708e60ab | 19,221 | py | Python | bin/train_vit.py | ramizdundar/Chexpert | 6a5f005f1df421538182ad8497725b78e6de29be | [
"Apache-2.0"
] | null | null | null | bin/train_vit.py | ramizdundar/Chexpert | 6a5f005f1df421538182ad8497725b78e6de29be | [
"Apache-2.0"
] | null | null | null | bin/train_vit.py | ramizdundar/Chexpert | 6a5f005f1df421538182ad8497725b78e6de29be | [
"Apache-2.0"
] | null | null | null | import sys
import os
import argparse
import logging
import json
import time
import subprocess
from shutil import copyfile
import numpy as np
from sklearn import metrics
from easydict import EasyDict as edict
import torch
from torch.utils.data import DataLoader
import torch.nn.functional as F
from torch.nn import DataP... | 38.908907 | 78 | 0.542115 | 2,370 | 19,221 | 4.157806 | 0.121519 | 0.029836 | 0.018977 | 0.025878 | 0.594682 | 0.56779 | 0.532068 | 0.500812 | 0.484981 | 0.452202 | 0 | 0.007144 | 0.32272 | 19,221 | 493 | 79 | 38.98783 | 0.749808 | 0.006867 | 0 | 0.49409 | 0 | 0 | 0.115625 | 0 | 0 | 0 | 0 | 0 | 0.002364 | 1 | 0.01182 | false | 0 | 0.052009 | 0 | 0.070922 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e6c580f84de62db4b9d20acb6cce98ce88761586 | 262 | py | Python | Sets/the capaint s room.py | AndreasGeiger/hackerrank-python | a436c207e62b32f70a6b4279bb641a3c4d90e112 | [
"MIT"
] | null | null | null | Sets/the capaint s room.py | AndreasGeiger/hackerrank-python | a436c207e62b32f70a6b4279bb641a3c4d90e112 | [
"MIT"
] | null | null | null | Sets/the capaint s room.py | AndreasGeiger/hackerrank-python | a436c207e62b32f70a6b4279bb641a3c4d90e112 | [
"MIT"
] | null | null | null | groupSize = input()
groups = list(map(int,input().split(' ')))
tmpArray1 = set()
tmpArray2 = set()
for i in groups:
if i in tmpArray1:
tmpArray2.discard(i)
else:
tmpArray1.add(i)
tmpArray2.add(i)
for i in tmpArray2:
print(i)
| 18.714286 | 42 | 0.603053 | 36 | 262 | 4.388889 | 0.5 | 0.056962 | 0.075949 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035897 | 0.255725 | 262 | 13 | 43 | 20.153846 | 0.774359 | 0 | 0 | 0 | 0 | 0 | 0.003817 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e6c6e8aaf6429afdb1edbeda8513d241f632fc14 | 6,867 | py | Python | src/oictest/setup.py | rohe/oictest | f6f0800220befd5983b8cb34a5c984f98855d089 | [
"Apache-2.0"
] | 32 | 2015-01-02T20:15:17.000Z | 2020-02-15T20:46:25.000Z | src/oictest/setup.py | rohe/oictest | f6f0800220befd5983b8cb34a5c984f98855d089 | [
"Apache-2.0"
] | 8 | 2015-02-23T19:48:53.000Z | 2016-01-20T08:24:05.000Z | src/oictest/setup.py | rohe/oictest | f6f0800220befd5983b8cb34a5c984f98855d089 | [
"Apache-2.0"
] | 17 | 2015-01-02T20:15:22.000Z | 2022-03-22T22:58:28.000Z | import copy
import json
from oic.utils.authn.client import CLIENT_AUTHN_METHOD
from oic.utils.keyio import KeyJar
from oic.utils.keyio import KeyBundle
__author__ = 'roland'
import logging
logger = logging.getLogger(__name__)
class OIDCError(Exception):
pass
def flow2sequence(operations, item):
flow = o... | 28.6125 | 80 | 0.553371 | 761 | 6,867 | 4.77661 | 0.254928 | 0.022008 | 0.016506 | 0.018157 | 0.038514 | 0.019257 | 0.019257 | 0 | 0 | 0 | 0 | 0.002674 | 0.346585 | 6,867 | 240 | 81 | 28.6125 | 0.807444 | 0.1481 | 0 | 0.127517 | 0 | 0 | 0.090278 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.053691 | false | 0.040268 | 0.040268 | 0 | 0.154362 | 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 | 0 | 0 | 1 | 0 |
e6c8040bae19150daa4afa3909164f31bd76f5c3 | 2,696 | py | Python | HLTrigger/Configuration/python/HLT_75e33/modules/hltPFPuppiNoLep_cfi.py | PKUfudawei/cmssw | 8fbb5ce74398269c8a32956d7c7943766770c093 | [
"Apache-2.0"
] | 1 | 2021-11-30T16:24:46.000Z | 2021-11-30T16:24:46.000Z | HLTrigger/Configuration/python/HLT_75e33/modules/hltPFPuppiNoLep_cfi.py | PKUfudawei/cmssw | 8fbb5ce74398269c8a32956d7c7943766770c093 | [
"Apache-2.0"
] | 4 | 2021-11-29T13:57:56.000Z | 2022-03-29T06:28:36.000Z | HLTrigger/Configuration/python/HLT_75e33/modules/hltPFPuppiNoLep_cfi.py | PKUfudawei/cmssw | 8fbb5ce74398269c8a32956d7c7943766770c093 | [
"Apache-2.0"
] | 1 | 2021-11-30T16:16:05.000Z | 2021-11-30T16:16:05.000Z | import FWCore.ParameterSet.Config as cms
hltPFPuppiNoLep = cms.EDProducer("PuppiProducer",
DeltaZCut = cms.double(0.1),
DeltaZCutForChargedFromPUVtxs = cms.double(0.2),
EtaMaxCharged = cms.double(99999.0),
EtaMaxPhotons = cms.double(2.5),
EtaMinUseDeltaZ = cms.double(-1.0),
MinPuppiWeight = cms... | 37.971831 | 65 | 0.563427 | 300 | 2,696 | 5.063333 | 0.29 | 0.112574 | 0.052666 | 0.028966 | 0.347597 | 0.326531 | 0.271231 | 0.271231 | 0.215932 | 0.215932 | 0 | 0.066737 | 0.299703 | 2,696 | 70 | 66 | 38.514286 | 0.737818 | 0 | 0 | 0.289855 | 0 | 0 | 0.030415 | 0.02003 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.014493 | 0 | 0.014493 | 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 | 0 | 0 | 1 | 0 |
e6c97a9ee684956ae509733d7e8dff568dd9da66 | 623 | py | Python | hpotter/src/lazy_init.py | LarsenClose/dr.hpotter | ef6199ab563a92f3e4916277dbde9217126f36a9 | [
"MIT"
] | 1 | 2021-08-15T09:24:20.000Z | 2021-08-15T09:24:20.000Z | hpotter/src/lazy_init.py | LarsenClose/dr.hpotter | ef6199ab563a92f3e4916277dbde9217126f36a9 | [
"MIT"
] | 18 | 2021-02-01T21:58:20.000Z | 2021-05-24T17:10:25.000Z | hpotter/src/lazy_init.py | LarsenClose/dr.hpotter | ef6199ab563a92f3e4916277dbde9217126f36a9 | [
"MIT"
] | 1 | 2021-06-19T12:49:54.000Z | 2021-06-19T12:49:54.000Z | ''' Wrap an __init__ function so that I don't have to assign all the
parameters to a self. variable. '''
# https://stackoverflow.com/questions/5048329/python-decorator-for-automatic-binding-init-arguments
import inspect
from functools import wraps
def lazy_init(init):
''' Create an annotation to assign all the p... | 28.318182 | 99 | 0.686998 | 88 | 623 | 4.761364 | 0.613636 | 0.038186 | 0.052506 | 0.066826 | 0.186158 | 0.186158 | 0.186158 | 0.186158 | 0.186158 | 0 | 0 | 0.026263 | 0.205457 | 623 | 21 | 100 | 29.666667 | 0.820202 | 0.46549 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 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 | 0 | 0 | 0 | 0 | 1 | 0 |
e6cb19760623f02a584f4187adb3490f5de6005b | 781 | py | Python | main.py | technojam/MLian | 7632c5c7d4c44b1d87de9ab23c1ed7293962ca49 | [
"MIT"
] | 1 | 2021-12-18T19:54:45.000Z | 2021-12-18T19:54:45.000Z | main.py | technojam/MLian | 7632c5c7d4c44b1d87de9ab23c1ed7293962ca49 | [
"MIT"
] | 2 | 2021-12-18T19:50:08.000Z | 2021-12-18T19:52:20.000Z | main.py | technojam/MLian | 7632c5c7d4c44b1d87de9ab23c1ed7293962ca49 | [
"MIT"
] | 1 | 2022-03-01T14:13:27.000Z | 2022-03-01T14:13:27.000Z | # def register_feed():
import os
import cv2
path = '/UserImage'
cam = cv2.VideoCapture(0)
name=input("Name: ")
cv2.namedWindow("test")
img_counter = 0
while True:
ret, frame = cam.read()
if not ret:
print("failed to grab frame")
break
else:
cv2.imshow("test", frame)
k = c... | 22.314286 | 66 | 0.541613 | 92 | 781 | 4.51087 | 0.597826 | 0.072289 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039474 | 0.318822 | 781 | 35 | 67 | 22.314286 | 0.740602 | 0.175416 | 0 | 0.083333 | 0 | 0 | 0.150235 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e6cb563badebdde1d425f141d7f04f5b497ea2ae | 2,643 | py | Python | models/train.py | Hiwyl/keras_cnn_finetune | f424302a72c8d05056a9af6f9b293003acb8398d | [
"MIT"
] | 1 | 2019-09-30T01:07:03.000Z | 2019-09-30T01:07:03.000Z | models/train.py | Hiwyl/keras_cnn_finetune | f424302a72c8d05056a9af6f9b293003acb8398d | [
"MIT"
] | null | null | null | models/train.py | Hiwyl/keras_cnn_finetune | f424302a72c8d05056a9af6f9b293003acb8398d | [
"MIT"
] | null | null | null | # -*- encoding: utf-8 -*-
'''
@Author : lance
@Email : wangyl306@163.com
'''
import time
from model_cx.inceptionresnet import inceptionresnet
from model_cx.vgg19two import vgg19_all_lr
from model_cx.inceptionv3 import inceptionv3
from model_cx.densenet import densenet
from model_cx.nasnet import nas... | 31.094118 | 90 | 0.623156 | 309 | 2,643 | 5.122977 | 0.187702 | 0.065698 | 0.106759 | 0.159191 | 0.589387 | 0.589387 | 0.574226 | 0.574226 | 0.541377 | 0.481996 | 0 | 0.035024 | 0.276201 | 2,643 | 85 | 91 | 31.094118 | 0.792473 | 0.404843 | 0 | 0.292683 | 0 | 0 | 0.029717 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.268293 | 0 | 0.268293 | 0.243902 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
e6cb633a5c540a02c577994bd8b8eebe64755249 | 3,275 | py | Python | src/probnum/randprocs/markov/integrator/_preconditioner.py | alpiges/probnum | 2e4153cb0df559984e09ec74487ef6c9d3f6d464 | [
"MIT"
] | null | null | null | src/probnum/randprocs/markov/integrator/_preconditioner.py | alpiges/probnum | 2e4153cb0df559984e09ec74487ef6c9d3f6d464 | [
"MIT"
] | 40 | 2021-04-12T07:56:29.000Z | 2022-03-28T00:18:18.000Z | src/probnum/randprocs/markov/integrator/_preconditioner.py | alpiges/probnum | 2e4153cb0df559984e09ec74487ef6c9d3f6d464 | [
"MIT"
] | null | null | null | """Coordinate changes in state space models."""
import abc
try:
# cached_property is only available in Python >=3.8
from functools import cached_property
except ImportError:
from cached_property import cached_property
import numpy as np
import scipy.special # for vectorised factorial
from probnum impor... | 34.114583 | 101 | 0.685802 | 402 | 3,275 | 5.482587 | 0.460199 | 0.038113 | 0.025408 | 0.016334 | 0.071688 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005636 | 0.241527 | 3,275 | 95 | 102 | 34.473684 | 0.881643 | 0.409466 | 0 | 0.081633 | 0 | 0 | 0.020321 | 0.012834 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0.020408 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e6cc468eac9d6881bb54cbc2d585ee21f2641f3f | 2,345 | py | Python | allauth/socialaccount/providers/linkedin/provider.py | mina-gaid/scp | 38e1cd303d4728a987df117f666ce194e241ed1a | [
"MIT"
] | 1 | 2018-04-06T21:36:59.000Z | 2018-04-06T21:36:59.000Z | allauth/socialaccount/providers/linkedin/provider.py | mina-gaid/scp | 38e1cd303d4728a987df117f666ce194e241ed1a | [
"MIT"
] | 6 | 2020-06-05T18:44:19.000Z | 2022-01-13T00:48:56.000Z | allauth/socialaccount/providers/linkedin/provider.py | mina-gaid/scp | 38e1cd303d4728a987df117f666ce194e241ed1a | [
"MIT"
] | 1 | 2022-02-01T17:19:28.000Z | 2022-02-01T17:19:28.000Z | from allauth.socialaccount import providers
from allauth.socialaccount.providers.base import ProviderAccount
from allauth.socialaccount.providers.oauth.provider import OAuthProvider
from allauth.socialaccount import app_settings
class LinkedInAccount(ProviderAccount):
def get_profile_url(self):
return se... | 34.485294 | 78 | 0.594456 | 262 | 2,345 | 5.179389 | 0.274809 | 0.051584 | 0.082535 | 0.103169 | 0.181282 | 0.181282 | 0.100221 | 0.06927 | 0.06927 | 0.06927 | 0 | 0 | 0.301066 | 2,345 | 67 | 79 | 35 | 0.827944 | 0.072921 | 0 | 0 | 0 | 0 | 0.121715 | 0.011065 | 0 | 0 | 0 | 0 | 0 | 1 | 0.14 | false | 0.02 | 0.08 | 0.06 | 0.48 | 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 | 0 | 0 | 1 | 0 |
e6ccbdf212404d1bb840cdf710923204e7c1baa5 | 4,744 | py | Python | game2048/myNew.py | CCTQL/2048-api | a75316a90e9a7c8c9171e39e1d1fc24cbac3ba1a | [
"Apache-2.0"
] | null | null | null | game2048/myNew.py | CCTQL/2048-api | a75316a90e9a7c8c9171e39e1d1fc24cbac3ba1a | [
"Apache-2.0"
] | null | null | null | game2048/myNew.py | CCTQL/2048-api | a75316a90e9a7c8c9171e39e1d1fc24cbac3ba1a | [
"Apache-2.0"
] | null | null | null | import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
from torchvision import datasets
from torch.autograd import Variable
from sklearn.model_selection import train_test_split
import time
import pandas as pd
import numpy as np
import csv
batch_size = 128
NUM_EPOC... | 27.421965 | 87 | 0.572513 | 627 | 4,744 | 4.135566 | 0.244019 | 0.032395 | 0.025453 | 0.020825 | 0.378326 | 0.352102 | 0.271886 | 0.271886 | 0.271886 | 0.271886 | 0 | 0.055006 | 0.275717 | 4,744 | 173 | 88 | 27.421965 | 0.699651 | 0.086847 | 0 | 0.344 | 0 | 0 | 0.028937 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.024 | false | 0 | 0.088 | 0 | 0.128 | 0.024 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
e6cda14ca91ba1556d929a926bfc87a16ab1f726 | 371 | py | Python | tests/test_arr_add_value.py | dboyliao/TaipeiPy-pybind11-buffer-array | 22e764d9fbf605950c0de10e3a341de36bc9bf89 | [
"MIT"
] | 1 | 2022-03-17T10:01:45.000Z | 2022-03-17T10:01:45.000Z | tests/test_arr_add_value.py | dboyliao/TaipeiPy-pybind11-buffer-array | 22e764d9fbf605950c0de10e3a341de36bc9bf89 | [
"MIT"
] | null | null | null | tests/test_arr_add_value.py | dboyliao/TaipeiPy-pybind11-buffer-array | 22e764d9fbf605950c0de10e3a341de36bc9bf89 | [
"MIT"
] | null | null | null | import numpy as np
import mylib
def test_arr_add_value():
for _ in range(10):
shape = np.random.randint(1, 10, size=np.random.randint(3, 10)).tolist()
in_arr = np.random.rand(*shape).astype(np.double)
ok = np.allclose(mylib.array_add_value(in_arr, np.pi), in_arr + np.pi)
if not ok... | 28.538462 | 80 | 0.638814 | 59 | 371 | 3.864407 | 0.576271 | 0.105263 | 0.092105 | 0.078947 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027972 | 0.229111 | 371 | 12 | 81 | 30.916667 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0.043127 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 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 | 0 | 0 | 0 | 0 | 1 | 0 |
e6cea1b013c7155bc06629fbf31e017bbe14f52f | 658 | py | Python | tests/test_units/test_mapper_str.py | frewsxcv/routes | 7690fc1016e56739855435fb54c96acccfa29009 | [
"MIT"
] | 1 | 2015-11-08T12:58:16.000Z | 2015-11-08T12:58:16.000Z | tests/test_units/test_mapper_str.py | frewsxcv/routes | 7690fc1016e56739855435fb54c96acccfa29009 | [
"MIT"
] | null | null | null | tests/test_units/test_mapper_str.py | frewsxcv/routes | 7690fc1016e56739855435fb54c96acccfa29009 | [
"MIT"
] | null | null | null | import unittest
from routes import Mapper
class TestMapperStr(unittest.TestCase):
def test_str(self):
m = Mapper()
m.connect('/{controller}/{action}')
m.connect('entries', '/entries', controller='entry', action='index')
m.connect('entry', '/entries/{id}', controller='entry',... | 34.631579 | 91 | 0.582067 | 67 | 658 | 5.641791 | 0.507463 | 0.063492 | 0.111111 | 0.116402 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.273556 | 658 | 18 | 92 | 36.555556 | 0.790795 | 0 | 0 | 0 | 0 | 0 | 0.315625 | 0.06875 | 0 | 0 | 0 | 0 | 0.066667 | 1 | 0.066667 | false | 0 | 0.133333 | 0 | 0.266667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e6cfd0714854720779418d4a80b8997e25e611e3 | 3,227 | py | Python | python-function-files-dictionaries/week4-assignment1.py | MauMendes/python3-programming-specialization | 8bd259f0ac559c6004baa0e759b6ec4bc25e1320 | [
"MIT"
] | null | null | null | python-function-files-dictionaries/week4-assignment1.py | MauMendes/python3-programming-specialization | 8bd259f0ac559c6004baa0e759b6ec4bc25e1320 | [
"MIT"
] | null | null | null | python-function-files-dictionaries/week4-assignment1.py | MauMendes/python3-programming-specialization | 8bd259f0ac559c6004baa0e759b6ec4bc25e1320 | [
"MIT"
] | null | null | null | #1) Write a function, sublist, that takes in a list of numbers as the parameter. In the function, use a while loop to return a sublist of the input list.
# The sublist should contain the same values of the original list up until it reaches the number 5 (it should not contain the number 5).
def sublist(input_lst):
... | 37.091954 | 168 | 0.664084 | 559 | 3,227 | 3.758497 | 0.218247 | 0.041885 | 0.028558 | 0.014279 | 0.536887 | 0.482627 | 0.462637 | 0.462637 | 0.447406 | 0.411233 | 0 | 0.020912 | 0.259064 | 3,227 | 86 | 169 | 37.523256 | 0.8578 | 0.556864 | 0 | 0.686567 | 0 | 0 | 0.009174 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074627 | false | 0 | 0 | 0 | 0.149254 | 0.089552 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
e6d14bad54d6d5d7401435412b7045fd99c1fc0a | 25,605 | py | Python | saas/backend/apps/group/views.py | Canway-shiisa/bk-iam-saas | 73c3770d9647c9cc8d515427cd1d053d8af9d071 | [
"MIT"
] | null | null | null | saas/backend/apps/group/views.py | Canway-shiisa/bk-iam-saas | 73c3770d9647c9cc8d515427cd1d053d8af9d071 | [
"MIT"
] | null | null | null | saas/backend/apps/group/views.py | Canway-shiisa/bk-iam-saas | 73c3770d9647c9cc8d515427cd1d053d8af9d071 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
TencentBlueKing is pleased to support the open source community by making 蓝鲸智云-权限中心(BlueKing-IAM) available.
Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved.
Licensed under the MIT License (the "License"); you may not use this file except in compliance with th... | 36.216407 | 117 | 0.696348 | 2,751 | 25,605 | 6.251545 | 0.149764 | 0.010583 | 0.022735 | 0.028724 | 0.505175 | 0.455925 | 0.422317 | 0.370334 | 0.330038 | 0.306605 | 0 | 0.004705 | 0.203163 | 25,605 | 706 | 118 | 36.267705 | 0.83821 | 0.047803 | 0 | 0.388446 | 0 | 0 | 0.049475 | 0.002634 | 0 | 0 | 0 | 0 | 0 | 1 | 0.049801 | false | 0 | 0.067729 | 0.003984 | 0.294821 | 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 | 0 | 0 | 1 | 0 |
e6d16a8a093216b78956e0c3642e48c0a64c8778 | 5,188 | py | Python | towers.py | fillest/7drl2013 | 96d291dce08a85d3871713c99f3a036de482d6ca | [
"MIT"
] | 1 | 2015-05-19T08:12:49.000Z | 2015-05-19T08:12:49.000Z | towers.py | fillest/7drl2013 | 96d291dce08a85d3871713c99f3a036de482d6ca | [
"MIT"
] | null | null | null | towers.py | fillest/7drl2013 | 96d291dce08a85d3871713c99f3a036de482d6ca | [
"MIT"
] | null | null | null | import util
import libtcodpy as tcod
import enemies
import operator
class Missile (util.Entity):
sym = '*'
color = tcod.white
class BasicMissile (Missile):
color = tcod.yellow
class IceMissile (Missile):
color = tcod.light_blue
class AoeMissile (Missile):
color = tcod.red
class Building (util.Entity):
sym ... | 24.018519 | 92 | 0.664418 | 802 | 5,188 | 4.168329 | 0.168329 | 0.069997 | 0.061023 | 0.021538 | 0.311397 | 0.189949 | 0.141789 | 0.114269 | 0.040084 | 0.040084 | 0 | 0.013468 | 0.198535 | 5,188 | 215 | 93 | 24.130233 | 0.790524 | 0.044526 | 0 | 0.189024 | 0 | 0 | 0.005862 | 0 | 0 | 0 | 0 | 0.004651 | 0.006098 | 1 | 0.121951 | false | 0.006098 | 0.02439 | 0 | 0.445122 | 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 | 0 | 0 | 1 | 0 |
e6d351ce6a88251c74a7d12532c34a2b0ba6f8b1 | 795 | py | Python | python/mandelbrot.py | lukasjoc/random | 5be080b424f02491fb219634902fc0cc192aff6c | [
"0BSD"
] | 1 | 2020-11-09T19:32:43.000Z | 2020-11-09T19:32:43.000Z | python/mandelbrot.py | lukasjoc/random | 5be080b424f02491fb219634902fc0cc192aff6c | [
"0BSD"
] | null | null | null | python/mandelbrot.py | lukasjoc/random | 5be080b424f02491fb219634902fc0cc192aff6c | [
"0BSD"
] | null | null | null | #!/usr/bin/python3
from PIL import Image
from numpy import complex, array
from tqdm import tqdm
import colorsys
W=512
#W=142
def mandelbrot(x, y):
def get_colors(i):
color = 255 * array(colorsys.hsv_to_rgb(i / 255.0, 1.0, 0.5))
return tuple(color.astype(int))
c, cc = 0, complex(x, y)
fo... | 22.714286 | 69 | 0.52956 | 132 | 795 | 3.098485 | 0.431818 | 0.01467 | 0.0489 | 0.06846 | 0.08802 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066908 | 0.304403 | 795 | 34 | 70 | 23.382353 | 0.672694 | 0.027673 | 0 | 0 | 0 | 0 | 0.032425 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0.16 | 0 | 0.36 | 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 | 0 | 0 | 1 | 0 |
e6d3938d66694895ff110b11b2560698b6722338 | 9,672 | py | Python | tests/unit/commands/test_deploy.py | tonyreina/mlt | ee490ebdeb5aa6924dbfc0a067a0653754c470f4 | [
"Apache-2.0"
] | 1 | 2021-11-29T10:35:20.000Z | 2021-11-29T10:35:20.000Z | tests/unit/commands/test_deploy.py | tonyreina/mlt | ee490ebdeb5aa6924dbfc0a067a0653754c470f4 | [
"Apache-2.0"
] | null | null | null | tests/unit/commands/test_deploy.py | tonyreina/mlt | ee490ebdeb5aa6924dbfc0a067a0653754c470f4 | [
"Apache-2.0"
] | 1 | 2020-02-22T01:04:15.000Z | 2020-02-22T01:04:15.000Z | #
# -*- coding: utf-8 -*-
#
# Copyright (c) 2018 Intel Corporation
#
# 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 app... | 34.791367 | 85 | 0.652089 | 1,170 | 9,672 | 5.117949 | 0.189744 | 0.040414 | 0.034736 | 0.022211 | 0.456747 | 0.427856 | 0.389112 | 0.369572 | 0.361389 | 0.313293 | 0 | 0.007494 | 0.241212 | 9,672 | 277 | 86 | 34.916968 | 0.808421 | 0.087055 | 0 | 0.430769 | 0 | 0 | 0.129501 | 0.036238 | 0 | 0 | 0 | 0 | 0.066667 | 1 | 0.117949 | false | 0 | 0.030769 | 0.05641 | 0.220513 | 0.010256 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
e6d61cff66c7d3846169dfff6eca952a90b72ddd | 1,940 | py | Python | packages/mccomponents/tests/mccomponentsbpmodule/sample/Broadened_E_Q_Kernel_TestCase.py | mcvine/mcvine | 42232534b0c6af729628009bed165cd7d833789d | [
"BSD-3-Clause"
] | 5 | 2017-01-16T03:59:47.000Z | 2020-06-23T02:54:19.000Z | packages/mccomponents/tests/mccomponentsbpmodule/sample/Broadened_E_Q_Kernel_TestCase.py | mcvine/mcvine | 42232534b0c6af729628009bed165cd7d833789d | [
"BSD-3-Clause"
] | 293 | 2015-10-29T17:45:52.000Z | 2022-01-07T16:31:09.000Z | packages/mccomponents/tests/mccomponentsbpmodule/sample/Broadened_E_Q_Kernel_TestCase.py | mcvine/mcvine | 42232534b0c6af729628009bed165cd7d833789d | [
"BSD-3-Clause"
] | 1 | 2019-05-25T00:53:31.000Z | 2019-05-25T00:53:31.000Z | #!/usr/bin/env python
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Jiao Lin
# California Institute of Technology
# (C) 2006-2010 All Rights Reserved
#
# {LicenseText}
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~... | 23.373494 | 80 | 0.491753 | 207 | 1,940 | 4.439614 | 0.516908 | 0.015234 | 0.035909 | 0.055495 | 0.054407 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037677 | 0.343299 | 1,940 | 82 | 81 | 23.658537 | 0.683673 | 0.209278 | 0 | 0.042553 | 0 | 0 | 0.084433 | 0.038259 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042553 | false | 0.021277 | 0.170213 | 0 | 0.276596 | 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 | 0 | 0 | 1 | 0 |
e6d751bc3f23bc91c2716777ca9ac12139d4b799 | 6,325 | py | Python | Model_setup/NEISO_data_file/downsampling_generators_v1.py | keremakdemir/ISONE_UCED | 11ce34c5ac5d34dcab771640f41c0d2ce4ab21f9 | [
"MIT"
] | null | null | null | Model_setup/NEISO_data_file/downsampling_generators_v1.py | keremakdemir/ISONE_UCED | 11ce34c5ac5d34dcab771640f41c0d2ce4ab21f9 | [
"MIT"
] | null | null | null | Model_setup/NEISO_data_file/downsampling_generators_v1.py | keremakdemir/ISONE_UCED | 11ce34c5ac5d34dcab771640f41c0d2ce4ab21f9 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Fri Apr 24 18:45:34 2020
@author: kakdemi
"""
import pandas as pd
#importing generators
all_generators = pd.read_excel('generators2.xlsx', sheet_name='NEISO generators (dispatch)')
#getting all oil generators
all_oil = all_generators[all_generators['typ']=='oil'].copy()
#gett... | 47.201493 | 100 | 0.68253 | 1,067 | 6,325 | 3.660731 | 0.135895 | 0.116743 | 0.139785 | 0.091398 | 0.528418 | 0.454941 | 0.314132 | 0.180748 | 0 | 0 | 0 | 0.03114 | 0.147036 | 6,325 | 133 | 101 | 47.556391 | 0.692864 | 0.113043 | 0 | 0 | 0 | 0 | 0.103991 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.010526 | false | 0 | 0.010526 | 0 | 0.031579 | 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 | 0 | 0 | 1 | 0 |
e6d7ef175de941485b4682919229774de09d58bb | 307 | py | Python | GUI1.py | otmanabdoun/IHM-Python | 624e961c2f6966b98bf2c1bc4dd276b812954ba1 | [
"Apache-2.0"
] | 3 | 2021-12-08T10:34:55.000Z | 2022-01-17T21:02:40.000Z | GUI1.py | otmanabdoun/IHM-Python | 624e961c2f6966b98bf2c1bc4dd276b812954ba1 | [
"Apache-2.0"
] | null | null | null | GUI1.py | otmanabdoun/IHM-Python | 624e961c2f6966b98bf2c1bc4dd276b812954ba1 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Tue Nov 16 19:47:41 2021
@author: User
"""
import tkinter as tk
racine = tk . Tk ()
label = tk . Label ( racine , text ="J ' adore Python !")
bouton = tk . Button ( racine , text =" Quitter ", command = racine . destroy )
label . pack ()
bouton . pack () | 23.615385 | 80 | 0.579805 | 42 | 307 | 4.238095 | 0.714286 | 0.078652 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057018 | 0.257329 | 307 | 13 | 81 | 23.615385 | 0.723684 | 0.237785 | 0 | 0 | 0 | 0 | 0.125581 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e6d83253f8c1c21cef502fbe86bb43dc1f2be4ac | 2,579 | py | Python | app/routes/v1/endpoints/clickup.py | ertyurk/bugme | 5a3ef3e089e0089055074c1c896c3fdc76600e93 | [
"MIT"
] | null | null | null | app/routes/v1/endpoints/clickup.py | ertyurk/bugme | 5a3ef3e089e0089055074c1c896c3fdc76600e93 | [
"MIT"
] | null | null | null | app/routes/v1/endpoints/clickup.py | ertyurk/bugme | 5a3ef3e089e0089055074c1c896c3fdc76600e93 | [
"MIT"
] | null | null | null | from fastapi import APIRouter, status, Body, HTTPException
from fastapi.encoders import jsonable_encoder
from starlette.responses import JSONResponse
from app.models.common import *
from app.models.clickup import *
from app.database.crud.clickup import *
router = APIRouter()
@router.get("/", response_description="C... | 31.839506 | 88 | 0.6867 | 275 | 2,579 | 6.28 | 0.294545 | 0.06601 | 0.06022 | 0.06601 | 0.259988 | 0.140127 | 0.086856 | 0.086856 | 0.086856 | 0.086856 | 0 | 0.006969 | 0.221016 | 2,579 | 80 | 89 | 32.2375 | 0.852663 | 0 | 0 | 0.161765 | 0 | 0 | 0.24273 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.088235 | 0 | 0.161765 | 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 | 0 | 0 | 1 | 0 |
e6d9219a9f3da8435460a41632a908023dbaa338 | 2,668 | py | Python | cellfinder_core/main.py | npeschke/cellfinder-core | 7a86a7d2c879c94da529ec6140f7e5c3f02bf288 | [
"BSD-3-Clause"
] | 5 | 2021-01-22T11:40:01.000Z | 2021-09-10T07:16:05.000Z | cellfinder_core/main.py | npeschke/cellfinder-core | 7a86a7d2c879c94da529ec6140f7e5c3f02bf288 | [
"BSD-3-Clause"
] | 38 | 2021-01-22T11:50:29.000Z | 2022-03-11T11:04:06.000Z | cellfinder_core/main.py | npeschke/cellfinder-core | 7a86a7d2c879c94da529ec6140f7e5c3f02bf288 | [
"BSD-3-Clause"
] | 12 | 2021-06-18T09:57:24.000Z | 2022-03-06T13:03:18.000Z | """
N.B imports are within functions to prevent tensorflow being imported before
it's warnings are silenced
"""
import os
import logging
from imlib.general.logging import suppress_specific_logs
tf_suppress_log_messages = [
"multiprocessing can interact badly with TensorFlow"
]
def main(
signal_array,
ba... | 25.653846 | 78 | 0.664168 | 335 | 2,668 | 4.958209 | 0.441791 | 0.030102 | 0.031306 | 0.050572 | 0.068633 | 0.045756 | 0.045756 | 0 | 0 | 0 | 0 | 0.031424 | 0.260495 | 2,668 | 103 | 79 | 25.902913 | 0.810441 | 0.137931 | 0 | 0.123457 | 0 | 0 | 0.083774 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.024691 | false | 0 | 0.08642 | 0 | 0.123457 | 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 | 0 | 0 | 1 | 0 |
e6d9b9257b4bb7dd1463fcb578829bc893311e39 | 1,378 | py | Python | server.py | rezist-ro/rezistenta.tv | 0c0dfa4842061baf2b575688588c5d77cfdba427 | [
"MIT"
] | null | null | null | server.py | rezist-ro/rezistenta.tv | 0c0dfa4842061baf2b575688588c5d77cfdba427 | [
"MIT"
] | null | null | null | server.py | rezist-ro/rezistenta.tv | 0c0dfa4842061baf2b575688588c5d77cfdba427 | [
"MIT"
] | null | null | null | # coding=utf-8
import dateutil.parser
import flask
import json
import os
import time
import urllib
import yaml
EPISODES = yaml.load(open("episodes.yaml").read())
app = flask.Flask(__name__,
static_path="/assets",
static_folder="assets")
app.jinja_env.filters["strftime"] = \
... | 25.054545 | 68 | 0.592163 | 157 | 1,378 | 5.101911 | 0.464968 | 0.029963 | 0.027466 | 0.044944 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00202 | 0.281567 | 1,378 | 54 | 69 | 25.518519 | 0.807071 | 0.008708 | 0 | 0 | 0 | 0 | 0.135631 | 0.015396 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.166667 | 0.047619 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e6dce6f716b933d2a36c1e77462d5b0eb2326793 | 5,449 | py | Python | transformer.py | ghafran/KerasPersonLab | fcd80b62247aee8bd1d41ff91e31c822950f561e | [
"MIT"
] | null | null | null | transformer.py | ghafran/KerasPersonLab | fcd80b62247aee8bd1d41ff91e31c822950f561e | [
"MIT"
] | null | null | null | transformer.py | ghafran/KerasPersonLab | fcd80b62247aee8bd1d41ff91e31c822950f561e | [
"MIT"
] | null | null | null | import numpy as np
from math import cos, sin, pi
import cv2
import random
from config import config, TransformationParams
from data_prep import map_coco_to_personlab
class AugmentSelection:
def __init__(self, flip=False, degree = 0., crop = (0,0), scale = 1.):
self.flip = flip
self.degree = degre... | 41.915385 | 142 | 0.599193 | 693 | 5,449 | 4.58153 | 0.287157 | 0.008819 | 0.040315 | 0.021417 | 0.322205 | 0.225512 | 0.200315 | 0.200315 | 0.200315 | 0.098898 | 0 | 0.035106 | 0.278583 | 5,449 | 129 | 143 | 42.24031 | 0.772577 | 0.215452 | 0 | 0.126582 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007752 | 0 | 1 | 0.063291 | false | 0 | 0.075949 | 0 | 0.21519 | 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 | 0 | 0 | 1 | 0 |
e6dee5544a49eb20feb56cbcfdbdf81cda6aae63 | 10,859 | py | Python | NLP/UNIMO/src/finetune/visual_entailment.py | zhangyimi/Research | 866f91d9774a38d205d6e9a3b1ee6293748261b3 | [
"Apache-2.0"
] | 1,319 | 2020-02-14T10:42:07.000Z | 2022-03-31T15:42:18.000Z | NLP/UNIMO/src/finetune/visual_entailment.py | green9989/Research | 94519a72e7936c77f62a31709634b72c09aabf74 | [
"Apache-2.0"
] | 192 | 2020-02-14T02:53:34.000Z | 2022-03-31T02:25:48.000Z | NLP/UNIMO/src/finetune/visual_entailment.py | green9989/Research | 94519a72e7936c77f62a31709634b72c09aabf74 | [
"Apache-2.0"
] | 720 | 2020-02-14T02:12:38.000Z | 2022-03-31T12:21:15.000Z | # Copyright (c) 2021 PaddlePaddle Authors. 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 required by app... | 38.644128 | 115 | 0.634773 | 1,511 | 10,859 | 4.25546 | 0.212442 | 0.054743 | 0.012442 | 0.014152 | 0.259565 | 0.211353 | 0.170295 | 0.154121 | 0.120684 | 0.11042 | 0 | 0.016177 | 0.254259 | 10,859 | 280 | 116 | 38.782143 | 0.777846 | 0.077447 | 0 | 0.2 | 0 | 0 | 0.057375 | 0.011957 | 0 | 0 | 0 | 0 | 0.004762 | 1 | 0.028571 | false | 0 | 0.057143 | 0 | 0.119048 | 0.014286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
e6df6e5deaed8c701c0957596bd842d1b7c2b65f | 923 | py | Python | leetcode/102-Medium-Binary-Tree-Level-Order-Traversal/answer.py | vaishali-bariwal/Practice-Coding-Questions | 747bfcb1cb2be5340daa745f2b9938f0ee87c9ac | [
"Unlicense"
] | 25 | 2018-05-22T15:18:50.000Z | 2022-01-08T02:41:46.000Z | leetcode/102-Medium-Binary-Tree-Level-Order-Traversal/answer.py | vaishali-bariwal/Practice-Coding-Questions | 747bfcb1cb2be5340daa745f2b9938f0ee87c9ac | [
"Unlicense"
] | 1 | 2019-05-24T16:55:27.000Z | 2019-05-24T16:55:27.000Z | leetcode/102-Medium-Binary-Tree-Level-Order-Traversal/answer.py | vaishali-bariwal/Practice-Coding-Questions | 747bfcb1cb2be5340daa745f2b9938f0ee87c9ac | [
"Unlicense"
] | 18 | 2018-09-20T15:39:26.000Z | 2022-03-02T21:38:22.000Z | #!/usr/bin/python3
#------------------------------------------------------------------------------
# Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
def levelOrder(self, root):
... | 26.371429 | 79 | 0.40195 | 84 | 923 | 4.369048 | 0.464286 | 0.081744 | 0.081744 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007962 | 0.31961 | 923 | 34 | 80 | 27.147059 | 0.576433 | 0.406284 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e6e0a15a9ec84da1c3d497af8bd4ec8d117edbbd | 4,291 | py | Python | sparsely_lstmvae_main.py | pengkangzaia/usad | 937a29c24632cfa31e0c626cd5b058b3af74ef94 | [
"BSD-3-Clause"
] | null | null | null | sparsely_lstmvae_main.py | pengkangzaia/usad | 937a29c24632cfa31e0c626cd5b058b3af74ef94 | [
"BSD-3-Clause"
] | null | null | null | sparsely_lstmvae_main.py | pengkangzaia/usad | 937a29c24632cfa31e0c626cd5b058b3af74ef94 | [
"BSD-3-Clause"
] | null | null | null | from model.sparsely_lstm_vae import *
import torch.utils.data as data_utils
from sklearn import preprocessing
from utils.eval_methods import *
device = get_default_device()
# Read data
# normal = pd.read_csv("data/SWaT_Dataset_Normal_v1.csv") # , nrows=1000)
normal = pd.read_csv("data/SWaT/SWaT_Dataset_Normal_v1.csv... | 41.660194 | 152 | 0.723141 | 657 | 4,291 | 4.496195 | 0.242009 | 0.088016 | 0.037915 | 0.03893 | 0.458362 | 0.435342 | 0.342925 | 0.283683 | 0.283683 | 0.256601 | 0 | 0.035355 | 0.096947 | 4,291 | 102 | 153 | 42.068627 | 0.726968 | 0.189699 | 0 | 0.05 | 0 | 0 | 0.051817 | 0.027695 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.066667 | 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 | 0 | 0 | 1 | 0 |
e6e20c3e769f1a5e89011c872f7f4c1dc10d94e8 | 542 | py | Python | src/demo/tasks.py | MexsonFernandes/AsynchronousTasks-Django-Celery-RabbitMQ-Redis | b64b31cec4ccf8e0dca2cfe9faba40da647b94f7 | [
"Apache-2.0"
] | 1 | 2019-01-17T09:16:06.000Z | 2019-01-17T09:16:06.000Z | src/demo/tasks.py | MexsonFernandes/Asynchronous_Tasks-Django-Celery-RabbitMQ-Redis | b64b31cec4ccf8e0dca2cfe9faba40da647b94f7 | [
"Apache-2.0"
] | 7 | 2019-10-20T18:47:34.000Z | 2022-02-10T07:42:18.000Z | src/demo/tasks.py | MexsonFernandes/AsynchronousTasks-Django-Celery-RabbitMQ-Redis | b64b31cec4ccf8e0dca2cfe9faba40da647b94f7 | [
"Apache-2.0"
] | 2 | 2019-10-20T18:47:59.000Z | 2022-03-02T12:31:54.000Z | from __future__ import absolute_import, unicode_literals
from dcs.celeryconf import app
import time
from django.core.mail import EmailMessage
@app.task(bind=True, ignore_result=False, max_retries=3)
def demo_task1(self):
result = {
'val1': 1,
'val2': 2,
'val3': 3,
}
print("hellp")
... | 25.809524 | 91 | 0.680812 | 68 | 542 | 5.235294 | 0.720588 | 0.050562 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027586 | 0.197417 | 542 | 20 | 92 | 27.1 | 0.790805 | 0 | 0 | 0 | 0 | 0 | 0.177449 | 0.092421 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.235294 | 0 | 0.352941 | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e6e829827c4e2ffcbb07be400f025860fb9ae813 | 10,409 | py | Python | keras/models.py | kalyc/keras-apache-mxnet | 5497ebd50a45ccc446b8944ebbe11fb7721a5533 | [
"MIT"
] | 300 | 2018-04-04T05:01:21.000Z | 2022-02-25T18:56:04.000Z | keras/models.py | kalyc/keras-apache-mxnet | 5497ebd50a45ccc446b8944ebbe11fb7721a5533 | [
"MIT"
] | 163 | 2018-04-03T17:41:22.000Z | 2021-09-03T16:44:04.000Z | keras/models.py | kalyc/keras-apache-mxnet | 5497ebd50a45ccc446b8944ebbe11fb7721a5533 | [
"MIT"
] | 72 | 2018-04-21T06:42:30.000Z | 2021-12-26T06:02:42.000Z | """Model-related utilities.
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from . import backend as K
from .utils.generic_utils import has_arg
from .utils.generic_utils import to_list
from .engine.input_layer import Input
from .engine.input_layer import... | 41.142292 | 77 | 0.593525 | 1,202 | 10,409 | 4.941764 | 0.155574 | 0.072727 | 0.022896 | 0.022222 | 0.524916 | 0.428283 | 0.369697 | 0.341751 | 0.334848 | 0.304882 | 0 | 0.001893 | 0.340186 | 10,409 | 252 | 78 | 41.305556 | 0.862988 | 0.265539 | 0 | 0.176471 | 0 | 0 | 0.07296 | 0 | 0 | 0 | 0 | 0 | 0.006536 | 1 | 0.026144 | false | 0 | 0.117647 | 0.006536 | 0.189542 | 0.006536 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
e6e86dd990b3c5cac611e5ac9c031855b2eafefb | 2,223 | py | Python | mmgp/kernels/wavelet_slice.py | axdahl/SC-MMGP | c6cd9d9de66bb7074925a4b6485f10a74bdd9f68 | [
"Apache-2.0"
] | null | null | null | mmgp/kernels/wavelet_slice.py | axdahl/SC-MMGP | c6cd9d9de66bb7074925a4b6485f10a74bdd9f68 | [
"Apache-2.0"
] | null | null | null | mmgp/kernels/wavelet_slice.py | axdahl/SC-MMGP | c6cd9d9de66bb7074925a4b6485f10a74bdd9f68 | [
"Apache-2.0"
] | null | null | null | '''
Wavelet kernel
slice allows kernel operation on feature subset
active_dims is iterable of feature dimensions to extract
input_dim must equal dimension defined by active_dims
'''
import numpy as np
import tensorflow as tf
from .. import util
from . import kernel
from .kernel_extras import *
class WaveletSlice(ke... | 34.734375 | 113 | 0.597391 | 322 | 2,223 | 4.034161 | 0.254658 | 0.026944 | 0.04234 | 0.046189 | 0.301001 | 0.227098 | 0.17398 | 0.17398 | 0.17398 | 0.17398 | 0 | 0.043452 | 0.264957 | 2,223 | 63 | 114 | 35.285714 | 0.75153 | 0.141251 | 0 | 0.102564 | 0 | 0 | 0.003692 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.128205 | 0.076923 | 0.435897 | 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 | 0 | 0 | 1 | 0 |
e6e91782ecbf3d082de6c4e80c1d94b9a36175e3 | 8,084 | py | Python | transform.py | latenite4/python3 | 30e367471ba48e5fc0fb07327b636fcb9959e3e0 | [
"Apache-2.0"
] | null | null | null | transform.py | latenite4/python3 | 30e367471ba48e5fc0fb07327b636fcb9959e3e0 | [
"Apache-2.0"
] | null | null | null | transform.py | latenite4/python3 | 30e367471ba48e5fc0fb07327b636fcb9959e3e0 | [
"Apache-2.0"
] | null | null | null |
#!/usr/bin/python3
#program to parse png images and change images
# cmd: python3 transform.py
# you must have local input/ and output/ directories
#
# name: R. Melton
# date: 12/27/20
# cmdline: python transform.py cmd show image='city.png' --ulx=1 --uly=2 --brx=0 --bry=9
# python transform.py show city.png
#... | 35.30131 | 162 | 0.671326 | 1,317 | 8,084 | 3.951405 | 0.191344 | 0.032283 | 0.037471 | 0.026902 | 0.410454 | 0.342813 | 0.307264 | 0.293428 | 0.285742 | 0.259224 | 0 | 0.017413 | 0.204354 | 8,084 | 229 | 163 | 35.30131 | 0.791667 | 0.336838 | 0 | 0.384 | 0 | 0 | 0.130246 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.072 | false | 0 | 0.048 | 0 | 0.168 | 0.112 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
e6e98c6da8123831026901d34d51a2a66f9be3c8 | 4,563 | py | Python | plugins/wyr.py | Jeglet/pcbot | 89178d4982151adb2fadfacdc3080e46cda9e891 | [
"MIT"
] | null | null | null | plugins/wyr.py | Jeglet/pcbot | 89178d4982151adb2fadfacdc3080e46cda9e891 | [
"MIT"
] | null | null | null | plugins/wyr.py | Jeglet/pcbot | 89178d4982151adb2fadfacdc3080e46cda9e891 | [
"MIT"
] | null | null | null | """ Would you rather? This plugin includes would you rather functionality
"""
import asyncio
import random
import re
import discord
import bot
import plugins
from pcbot import Config
client = plugins.client # type: bot.Client
db = Config("would-you-rather", data=dict(timeout=10, responses=["**{name}** would **{cho... | 34.308271 | 114 | 0.601359 | 585 | 4,563 | 4.676923 | 0.31453 | 0.015351 | 0.030702 | 0.046053 | 0.035088 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008732 | 0.272189 | 4,563 | 132 | 115 | 34.568182 | 0.815116 | 0.150121 | 0 | 0.1375 | 0 | 0 | 0.154236 | 0.008725 | 0 | 0 | 0 | 0 | 0.05 | 1 | 0.025 | false | 0 | 0.0875 | 0.0125 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e6e9911a23d6bd5acc93e8e6fe7c90d813721358 | 5,690 | py | Python | suit_tool/argparser.py | bergzand/suit-manifest-generator | da82651a8b02fd4d7261e826cc70b5c862dd94ea | [
"Apache-2.0"
] | 16 | 2018-03-16T23:56:47.000Z | 2022-01-23T14:14:09.000Z | suit_tool/argparser.py | bergzand/suit-manifest-generator | da82651a8b02fd4d7261e826cc70b5c862dd94ea | [
"Apache-2.0"
] | 23 | 2018-06-05T14:30:23.000Z | 2021-02-15T20:53:09.000Z | suit_tool/argparser.py | bergzand/suit-manifest-generator | da82651a8b02fd4d7261e826cc70b5c862dd94ea | [
"Apache-2.0"
] | 10 | 2018-03-16T23:56:52.000Z | 2020-07-21T16:36:46.000Z | # -*- coding: utf-8 -*-
# ----------------------------------------------------------------------------
# Copyright 2019-2020 ARM Limited or its affiliates
#
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the... | 55.784314 | 142 | 0.649561 | 737 | 5,690 | 4.884668 | 0.290366 | 0.065 | 0.118056 | 0.070278 | 0.273889 | 0.253056 | 0.235833 | 0.216944 | 0.216944 | 0.216944 | 0 | 0.005869 | 0.161511 | 5,690 | 101 | 143 | 56.336634 | 0.74869 | 0.168541 | 0 | 0 | 0 | 0.016393 | 0.252071 | 0.007008 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065574 | false | 0 | 0.098361 | 0 | 0.229508 | 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 | 0 | 0 | 1 | 0 |
e6e9b0500db4a76f7cfddf89a8acd023b1673bdb | 437 | py | Python | python/process/process_pool.py | y2ghost/study | c5278611b0a732fe19e3d805c0c079e530b1d3b2 | [
"MIT"
] | null | null | null | python/process/process_pool.py | y2ghost/study | c5278611b0a732fe19e3d805c0c079e530b1d3b2 | [
"MIT"
] | null | null | null | python/process/process_pool.py | y2ghost/study | c5278611b0a732fe19e3d805c0c079e530b1d3b2 | [
"MIT"
] | null | null | null | import random
import time
from multiprocessing import Pool
def worker(name: str) -> None:
print(f'Started worker {name}')
worker_time = random.choice(range(1, 5))
time.sleep(worker_time)
print(f'{name} worker finished in {worker_time} seconds')
if __name__ == '__main__':
process_names = [f'compu... | 24.277778 | 61 | 0.686499 | 62 | 437 | 4.612903 | 0.532258 | 0.104895 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014045 | 0.185355 | 437 | 17 | 62 | 25.705882 | 0.789326 | 0.036613 | 0 | 0 | 0 | 0 | 0.210024 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.25 | 0 | 0.333333 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e6e9e879bcf76ce5cfbee781823873ae94cc9222 | 45,541 | py | Python | Project/Support-NotSourced/generic_pydicom_ns.py | mazalgarab-git/OSICpypy | 003fb0b146c9ed711f05475e6cc7563bf549f230 | [
"CC0-1.0"
] | 1 | 2020-12-18T14:39:24.000Z | 2020-12-18T14:39:24.000Z | Project/Support-NotSourced/generic_pydicom_ns.py | mazalgarab-git/OSICpypy | 003fb0b146c9ed711f05475e6cc7563bf549f230 | [
"CC0-1.0"
] | null | null | null | Project/Support-NotSourced/generic_pydicom_ns.py | mazalgarab-git/OSICpypy | 003fb0b146c9ed711f05475e6cc7563bf549f230 | [
"CC0-1.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Mon Sep 7 11:48:59 2020
@author: mazal
"""
"""
=========================================
Support functions of pydicom (Not sourced)
=========================================
Purpose: Create support functions for the pydicom project
"""
"""
Test mode 1 | Basics... | 41.973272 | 186 | 0.603215 | 4,457 | 45,541 | 5.976442 | 0.118914 | 0.055412 | 0.033037 | 0.013215 | 0.387206 | 0.293389 | 0.231858 | 0.192852 | 0.166573 | 0.127004 | 0 | 0.016036 | 0.251005 | 45,541 | 1,085 | 187 | 41.973272 | 0.764878 | 0.135526 | 0 | 0.322684 | 0 | 0 | 0.163236 | 0.090468 | 0 | 0 | 0 | 0 | 0 | 1 | 0.007987 | false | 0 | 0.046326 | 0 | 0.0623 | 0.186901 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
e6e9ffb5e0649025342ebb242012d9b21913b192 | 8,378 | py | Python | paperscraper/scrapers/keywords.py | ahmed-shariff/scraper | 52bed967db7e08e438daaa8dfa8d9338567ad7c2 | [
"MIT"
] | 1 | 2021-11-19T02:56:22.000Z | 2021-11-19T02:56:22.000Z | paperscraper/scrapers/keywords.py | ahmed-shariff/scraper | 52bed967db7e08e438daaa8dfa8d9338567ad7c2 | [
"MIT"
] | 1 | 2021-11-19T03:42:58.000Z | 2022-03-29T16:32:16.000Z | paperscraper/scrapers/keywords.py | ahmed-shariff/scraper | 52bed967db7e08e438daaa8dfa8d9338567ad7c2 | [
"MIT"
] | 1 | 2021-11-19T02:56:28.000Z | 2021-11-19T02:56:28.000Z | import re
regex = re.compile(r'[\n\r\t]')
def acm_digital_library(soup):
try:
keywords = set()
keywords_parent_ol = soup.find('ol', class_="rlist organizational-chart")
keywords_divs = keywords_parent_ol.findChildren('div', recursive=True)
for kw_parent in keywords_divs:
... | 38.608295 | 247 | 0.62509 | 1,032 | 8,378 | 4.905039 | 0.19186 | 0.045041 | 0.030818 | 0.032003 | 0.435994 | 0.378507 | 0.350454 | 0.350454 | 0.323785 | 0.323785 | 0 | 0.005214 | 0.267486 | 8,378 | 216 | 248 | 38.787037 | 0.818315 | 0.140368 | 0 | 0.432927 | 0 | 0 | 0.145639 | 0.033106 | 0 | 0 | 0 | 0.00463 | 0 | 1 | 0.079268 | false | 0.006098 | 0.006098 | 0.018293 | 0.219512 | 0.04878 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
e6ea376dac46236ea3d4ce92ad3215d1dbffb660 | 6,642 | py | Python | topobank/publication/models.py | ContactEngineering/TopoBank | 12710c24cc158801db20f030c3e0638060e24a0e | [
"MIT",
"BSD-3-Clause"
] | 3 | 2021-12-03T19:11:07.000Z | 2021-12-27T17:14:39.000Z | topobank/publication/models.py | ContactEngineering/TopoBank | 12710c24cc158801db20f030c3e0638060e24a0e | [
"MIT",
"BSD-3-Clause"
] | 268 | 2021-03-19T13:57:00.000Z | 2022-03-31T20:58:26.000Z | topobank/publication/models.py | ContactEngineering/TopoBank | 12710c24cc158801db20f030c3e0638060e24a0e | [
"MIT",
"BSD-3-Clause"
] | null | null | null | from django.db import models
from django.urls import reverse
from django.utils import timezone
from django.utils.safestring import mark_safe
from django.conf import settings
MAX_LEN_AUTHORS_FIELD = 512
CITATION_FORMAT_FLAVORS = ['html', 'ris', 'bibtex', 'biblatex']
DEFAULT_KEYWORDS = ['surface', 'topography']
class... | 36.696133 | 107 | 0.579645 | 745 | 6,642 | 5.024161 | 0.302013 | 0.041143 | 0.013358 | 0.025648 | 0.238312 | 0.206519 | 0.180069 | 0.100454 | 0.100454 | 0.075341 | 0 | 0.012743 | 0.279283 | 6,642 | 180 | 108 | 36.9 | 0.769166 | 0.124812 | 0 | 0.341085 | 0 | 0.007752 | 0.236697 | 0.029717 | 0.015504 | 0 | 0 | 0 | 0 | 1 | 0.093023 | false | 0 | 0.03876 | 0.023256 | 0.310078 | 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 | 0 | 0 | 1 | 0 |
e6eb31b711fe08af2de8afcc37c668f59c3bdd16 | 1,579 | py | Python | day_22_b.py | Gyaha/AOC2020 | fbabae9acd7d274b84bc0c64f2665dfba9f008ca | [
"MIT"
] | null | null | null | day_22_b.py | Gyaha/AOC2020 | fbabae9acd7d274b84bc0c64f2665dfba9f008ca | [
"MIT"
] | null | null | null | day_22_b.py | Gyaha/AOC2020 | fbabae9acd7d274b84bc0c64f2665dfba9f008ca | [
"MIT"
] | null | null | null | def play_recursively_combat(p1: list, p2: list) -> bool:
rounds = set()
winner = None
while len(p1) > 0 and len(p2) > 0:
r = tuple(p1 + [-1] + p2)
if r in rounds:
return True
else:
rounds.add(r)
c1 = p1.pop(0)
c2 = p2.pop(0)
if c1 <= ... | 17.544444 | 62 | 0.542115 | 239 | 1,579 | 3.430962 | 0.364017 | 0.04878 | 0.076829 | 0.084146 | 0.136585 | 0.07561 | 0 | 0 | 0 | 0 | 0 | 0.072165 | 0.324256 | 1,579 | 89 | 63 | 17.741573 | 0.696345 | 0 | 0 | 0.1 | 0 | 0 | 0.082964 | 0 | 0 | 0 | 0 | 0 | 0.028571 | 1 | 0.071429 | false | 0 | 0.014286 | 0 | 0.157143 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e6efe17c4e6e08ec55040433cf5ea1ff20fecb68 | 528 | py | Python | src/ping.py | jnsougata/rich-embed | 95901e590f00c4e4eabeb99c8f06bb5f90718d80 | [
"MIT"
] | null | null | null | src/ping.py | jnsougata/rich-embed | 95901e590f00c4e4eabeb99c8f06bb5f90718d80 | [
"MIT"
] | null | null | null | src/ping.py | jnsougata/rich-embed | 95901e590f00c4e4eabeb99c8f06bb5f90718d80 | [
"MIT"
] | null | null | null | import discord
import app_util
class Ping(app_util.Cog):
def __init__(self, bot: app_util.Bot):
self.bot = bot
@app_util.Cog.command(
command=app_util.SlashCommand(
name='ping', description='shows avg ping of client'
),
guild_id=877399405056102431
)
async ... | 24 | 94 | 0.662879 | 74 | 528 | 4.527027 | 0.513514 | 0.146269 | 0.089552 | 0.077612 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05569 | 0.217803 | 528 | 21 | 95 | 25.142857 | 0.755448 | 0 | 0 | 0 | 0 | 0 | 0.111742 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.133333 | 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 | 0 | 0 | 0 | 0 | 1 | 0 |
e6f05425230fc70414cb78c1b2738e7f0e282ac0 | 2,017 | py | Python | 2020/24/visualization.py | AlbertVeli/AdventOfCode | 3d3473695318a0686fac720a1a21dd3629f09e33 | [
"Unlicense"
] | null | null | null | 2020/24/visualization.py | AlbertVeli/AdventOfCode | 3d3473695318a0686fac720a1a21dd3629f09e33 | [
"Unlicense"
] | null | null | null | 2020/24/visualization.py | AlbertVeli/AdventOfCode | 3d3473695318a0686fac720a1a21dd3629f09e33 | [
"Unlicense"
] | 1 | 2021-12-04T10:37:09.000Z | 2021-12-04T10:37:09.000Z | #!/usr/bin/env python3
import sys
import re
import numpy as np
from PIL import Image
moves = { 'e': (2, 0), 'se': (1, 2), 'sw': (-1, 2), 'w': (-2, 0), 'nw': (-1, -2), 'ne': (1, -2) }
# Save (x, y): True/False in tiles. True = black, False = white.
tiles = {}
for line in open(sys.argv[1]).read().splitlines():
po... | 24.901235 | 97 | 0.511155 | 331 | 2,017 | 3.090634 | 0.350453 | 0.013685 | 0.02737 | 0.02346 | 0.017595 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041066 | 0.311849 | 2,017 | 80 | 98 | 25.2125 | 0.695965 | 0.115022 | 0 | 0.034483 | 0 | 0 | 0.030968 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051724 | false | 0 | 0.068966 | 0 | 0.137931 | 0.051724 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
e6f0fc4f8d5c7522b3b6e45957a0edd9bcec2662 | 16,451 | py | Python | experimental/tracing/bin/diff_heap_profiler.py | BearerPipelineTest/catapult | 3800a67cd916200046a50748893bbd0dcf3d7f4a | [
"BSD-3-Clause"
] | 1,894 | 2015-04-17T18:29:53.000Z | 2022-03-28T22:41:06.000Z | experimental/tracing/bin/diff_heap_profiler.py | BearerPipelineTest/catapult | 3800a67cd916200046a50748893bbd0dcf3d7f4a | [
"BSD-3-Clause"
] | 4,640 | 2015-07-08T16:19:08.000Z | 2019-12-02T15:01:27.000Z | experimental/tracing/bin/diff_heap_profiler.py | atuchin-m/catapult | 108ea3e2ec108e68216b1250a3d79cc642600294 | [
"BSD-3-Clause"
] | 698 | 2015-06-02T19:18:35.000Z | 2022-03-29T16:57:15.000Z | #!/usr/bin/env python
# Copyright 2017 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from __future__ import absolute_import
from __future__ import print_function
import argparse
import gzip
import json
import os
import s... | 32.005837 | 152 | 0.636253 | 2,007 | 16,451 | 5.046338 | 0.155954 | 0.010071 | 0.011947 | 0.010367 | 0.229759 | 0.17032 | 0.143661 | 0.093207 | 0.073855 | 0.057662 | 0 | 0.008292 | 0.24497 | 16,451 | 513 | 153 | 32.068226 | 0.807101 | 0.096651 | 0 | 0.167102 | 0 | 0 | 0.108296 | 0.004932 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05483 | false | 0 | 0.023499 | 0.002611 | 0.112272 | 0.007833 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
e6f21f20dc1c7283a540aac397169a7429e851b1 | 3,743 | py | Python | mne_bids/commands/mne_bids_raw_to_bids.py | kingjr/mne-bids | 3a4543076912cebbc89a5f0b9433cda1b9e288b8 | [
"BSD-3-Clause"
] | null | null | null | mne_bids/commands/mne_bids_raw_to_bids.py | kingjr/mne-bids | 3a4543076912cebbc89a5f0b9433cda1b9e288b8 | [
"BSD-3-Clause"
] | null | null | null | mne_bids/commands/mne_bids_raw_to_bids.py | kingjr/mne-bids | 3a4543076912cebbc89a5f0b9433cda1b9e288b8 | [
"BSD-3-Clause"
] | null | null | null | """Write raw files to BIDS format.
example usage: $ mne_bids raw_to_bids --subject_id sub01 --task rest
--raw data.edf --bids_root new_path
"""
# Authors: Teon Brooks <teon.brooks@gmail.com>
# Stefan Appelhoff <stefan.appelhoff@mailbox.org>
#
# License: BSD (3-clause)
import mne_bids
from mne_bids import wr... | 41.588889 | 77 | 0.594176 | 477 | 3,743 | 4.45912 | 0.297694 | 0.06347 | 0.105783 | 0.018336 | 0.076164 | 0.027268 | 0 | 0 | 0 | 0 | 0 | 0.004458 | 0.280791 | 3,743 | 89 | 78 | 42.05618 | 0.785661 | 0.078547 | 0 | 0.030303 | 0 | 0 | 0.287212 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015152 | false | 0.015152 | 0.060606 | 0 | 0.075758 | 0.030303 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e6f290178fbe89e1c3a852359d5e4b95ce0dd4ec | 1,460 | py | Python | lab1oop.py | NastiaK/NewRepository | d1907fc2e159dc1831071d7c79e20bbfb47fb822 | [
"MIT"
] | null | null | null | lab1oop.py | NastiaK/NewRepository | d1907fc2e159dc1831071d7c79e20bbfb47fb822 | [
"MIT"
] | null | null | null | lab1oop.py | NastiaK/NewRepository | d1907fc2e159dc1831071d7c79e20bbfb47fb822 | [
"MIT"
] | null | null | null | class Calculations:
def __init__(self, first, second):
self.first = first
self.second = second
def add(self):
print(self.first + self.second)
def subtract(self):
print(self.first - self.second)
def multiply(self):
print(self.first * self.second)
... | 29.795918 | 119 | 0.489041 | 150 | 1,460 | 4.68 | 0.326667 | 0.076923 | 0.106838 | 0.102564 | 0.273504 | 0.273504 | 0.235043 | 0.102564 | 0 | 0 | 0 | 0.020501 | 0.39863 | 1,460 | 48 | 120 | 30.416667 | 0.779043 | 0 | 0 | 0.097561 | 0 | 0 | 0.137394 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.146341 | false | 0 | 0 | 0 | 0.170732 | 0.195122 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |